]> git.sur5r.net Git - openldap/blob - configure
Update copyright for next release
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.18 2009/01/21 01:26:41 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46   echo "#! /bin/sh" >conf$$.sh
47   echo  "exit 0"   >>conf$$.sh
48   chmod +x conf$$.sh
49   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50     PATH_SEPARATOR=';'
51   else
52     PATH_SEPARATOR=:
53   fi
54   rm -f conf$$.sh
55 fi
56
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59   as_unset=unset
60 else
61   as_unset=false
62 fi
63
64
65 # IFS
66 # We need space, tab and new line, in precisely that order.  Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
71 '
72 IFS=" ""        $as_nl"
73
74 # Find who we are.  Look in the path if we contain no directory separator.
75 case $0 in
76   *[\\/]* ) as_myself=$0 ;;
77   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
79 do
80   IFS=$as_save_IFS
81   test -z "$as_dir" && as_dir=.
82   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
85
86      ;;
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91   as_myself=$0
92 fi
93 if test ! -f "$as_myself"; then
94   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95   { (exit 1); exit 1; }
96 fi
97
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
105
106 # NLS nuisances.
107 for as_var in \
108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110   LC_TELEPHONE LC_TIME
111 do
112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113     eval $as_var=C; export $as_var
114   else
115     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116   fi
117 done
118
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
122   as_expr=expr
123 else
124   as_expr=false
125 fi
126
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128   as_basename=basename
129 else
130   as_basename=false
131 fi
132
133
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137          X"$0" : 'X\(//\)$' \| \
138          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140     sed '/^.*\/\([^/][^/]*\)\/*$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\/\)$/{
145             s//\1/
146             q
147           }
148           /^X\/\(\/\).*/{
149             s//\1/
150             q
151           }
152           s/.*/./; q'`
153
154 # CDPATH.
155 $as_unset CDPATH
156
157
158 if test "x$CONFIG_SHELL" = x; then
159   if (eval ":") 2>/dev/null; then
160   as_have_required=yes
161 else
162   as_have_required=no
163 fi
164
165   if test $as_have_required = yes &&     (eval ":
166 (as_func_return () {
167   (exit \$1)
168 }
169 as_func_success () {
170   as_func_return 0
171 }
172 as_func_failure () {
173   as_func_return 1
174 }
175 as_func_ret_success () {
176   return 0
177 }
178 as_func_ret_failure () {
179   return 1
180 }
181
182 exitcode=0
183 if as_func_success; then
184   :
185 else
186   exitcode=1
187   echo as_func_success failed.
188 fi
189
190 if as_func_failure; then
191   exitcode=1
192   echo as_func_failure succeeded.
193 fi
194
195 if as_func_ret_success; then
196   :
197 else
198   exitcode=1
199   echo as_func_ret_success failed.
200 fi
201
202 if as_func_ret_failure; then
203   exitcode=1
204   echo as_func_ret_failure succeeded.
205 fi
206
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208   :
209 else
210   exitcode=1
211   echo positional parameters were not saved.
212 fi
213
214 test \$exitcode = 0) || { (exit 1); exit 1; }
215
216 (
217   as_lineno_1=\$LINENO
218   as_lineno_2=\$LINENO
219   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
222   :
223 else
224   as_candidate_shells=
225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
228   IFS=$as_save_IFS
229   test -z "$as_dir" && as_dir=.
230   case $as_dir in
231          /*)
232            for as_base in sh bash ksh sh5; do
233              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234            done;;
235        esac
236 done
237 IFS=$as_save_IFS
238
239
240       for as_shell in $as_candidate_shells $SHELL; do
241          # Try only shells that exist, to save several forks.
242          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243                 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245   emulate sh
246   NULLCMD=:
247   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248   # is contrary to our usage.  Disable this feature.
249   alias -g '${1+"$@"}'='"$@"'
250   setopt NO_GLOB_SUBST
251 else
252   case `(set -o) 2>/dev/null` in
253   *posix*) set -o posix ;;
254 esac
255
256 fi
257
258
259 :
260 _ASEOF
261 }; then
262   CONFIG_SHELL=$as_shell
263                as_have_required=yes
264                if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266   emulate sh
267   NULLCMD=:
268   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in
274   *posix*) set -o posix ;;
275 esac
276
277 fi
278
279
280 :
281 (as_func_return () {
282   (exit $1)
283 }
284 as_func_success () {
285   as_func_return 0
286 }
287 as_func_failure () {
288   as_func_return 1
289 }
290 as_func_ret_success () {
291   return 0
292 }
293 as_func_ret_failure () {
294   return 1
295 }
296
297 exitcode=0
298 if as_func_success; then
299   :
300 else
301   exitcode=1
302   echo as_func_success failed.
303 fi
304
305 if as_func_failure; then
306   exitcode=1
307   echo as_func_failure succeeded.
308 fi
309
310 if as_func_ret_success; then
311   :
312 else
313   exitcode=1
314   echo as_func_ret_success failed.
315 fi
316
317 if as_func_ret_failure; then
318   exitcode=1
319   echo as_func_ret_failure succeeded.
320 fi
321
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
323   :
324 else
325   exitcode=1
326   echo positional parameters were not saved.
327 fi
328
329 test $exitcode = 0) || { (exit 1); exit 1; }
330
331 (
332   as_lineno_1=$LINENO
333   as_lineno_2=$LINENO
334   test "x$as_lineno_1" != "x$as_lineno_2" &&
335   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337 _ASEOF
338 }; then
339   break
340 fi
341
342 fi
343
344       done
345
346       if test "x$CONFIG_SHELL" != x; then
347   for as_var in BASH_ENV ENV
348         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349         done
350         export CONFIG_SHELL
351         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 fi
353
354
355     if test $as_have_required = no; then
356   echo This script requires a shell more modern than all the
357       echo shells that I found on your system.  Please install a
358       echo modern shell, or manually run the script under such a
359       echo shell if you do have one.
360       { (exit 1); exit 1; }
361 fi
362
363
364 fi
365
366 fi
367
368
369
370 (eval "as_func_return () {
371   (exit \$1)
372 }
373 as_func_success () {
374   as_func_return 0
375 }
376 as_func_failure () {
377   as_func_return 1
378 }
379 as_func_ret_success () {
380   return 0
381 }
382 as_func_ret_failure () {
383   return 1
384 }
385
386 exitcode=0
387 if as_func_success; then
388   :
389 else
390   exitcode=1
391   echo as_func_success failed.
392 fi
393
394 if as_func_failure; then
395   exitcode=1
396   echo as_func_failure succeeded.
397 fi
398
399 if as_func_ret_success; then
400   :
401 else
402   exitcode=1
403   echo as_func_ret_success failed.
404 fi
405
406 if as_func_ret_failure; then
407   exitcode=1
408   echo as_func_ret_failure succeeded.
409 fi
410
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412   :
413 else
414   exitcode=1
415   echo positional parameters were not saved.
416 fi
417
418 test \$exitcode = 0") || {
419   echo No shell found that supports shell functions.
420   echo Please tell autoconf@gnu.org about your system,
421   echo including any error possibly output before this
422   echo message
423 }
424
425
426
427   as_lineno_1=$LINENO
428   as_lineno_2=$LINENO
429   test "x$as_lineno_1" != "x$as_lineno_2" &&
430   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433   # uniformly replaced by the line number.  The first 'sed' inserts a
434   # line-number line after each line using $LINENO; the second 'sed'
435   # does the real work.  The second script uses 'N' to pair each
436   # line-number line with the line containing $LINENO, and appends
437   # trailing '-' during substitution so that $LINENO is not a special
438   # case at line end.
439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440   # scripts with optimization help from Paolo Bonzini.  Blame Lee
441   # E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459    { (exit 1); exit 1; }; }
460
461   # Don't try to exec as it changes $[0], causing all sort of problems
462   # (the dirname of $[0] is not the place where we might find the
463   # original and so on.  Autoconf is especially sensitive to this).
464   . "./$as_me.lineno"
465   # Exit status is that of the last command.
466   exit
467 }
468
469
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471   as_dirname=dirname
472 else
473   as_dirname=false
474 fi
475
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479   case `echo 'x\c'` in
480   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481   *)   ECHO_C='\c';;
482   esac;;
483 *)
484   ECHO_N='-n';;
485 esac
486
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
489   as_expr=expr
490 else
491   as_expr=false
492 fi
493
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496   rm -f conf$$.dir/conf$$.file
497 else
498   rm -f conf$$.dir
499   mkdir conf$$.dir
500 fi
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s='ln -s'
504   # ... but there are two gotchas:
505   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507   # In both cases, we have to default to `cp -p'.
508   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509     as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511   as_ln_s=ln
512 else
513   as_ln_s='cp -p'
514 fi
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
517
518 if mkdir -p . 2>/dev/null; then
519   as_mkdir_p=:
520 else
521   test -d ./-p && rmdir ./-p
522   as_mkdir_p=false
523 fi
524
525 if test -x / >/dev/null 2>&1; then
526   as_test_x='test -x'
527 else
528   if ls -dL / >/dev/null 2>&1; then
529     as_ls_L_option=L
530   else
531     as_ls_L_option=
532   fi
533   as_test_x='
534     eval sh -c '\''
535       if test -d "$1"; then
536         test -d "$1/.";
537       else
538         case $1 in
539         -*)set "./$1";;
540         esac;
541         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542         ???[sx]*):;;*)false;;esac;fi
543     '\'' sh
544   '
545 fi
546 as_executable_p=$as_test_x
547
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 case X$ECHO in
561 X*--fallback-echo)
562   # Remove one level of quotation (which was required for Make).
563   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564   ;;
565 esac
566
567 echo=${ECHO-echo}
568 if test "X$1" = X--no-reexec; then
569   # Discard the --no-reexec flag, and continue.
570   shift
571 elif test "X$1" = X--fallback-echo; then
572   # Avoid inline document here, it may be left over
573   :
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575   # Yippee, $echo works!
576   :
577 else
578   # Restart under the correct shell.
579   exec $SHELL "$0" --no-reexec ${1+"$@"}
580 fi
581
582 if test "X$1" = X--fallback-echo; then
583   # used as fallback echo
584   shift
585   cat <<EOF
586 $*
587 EOF
588   exit 0
589 fi
590
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 # if CDPATH is set.
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601        echo_test_string=`eval $cmd` &&
602        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603     then
604       break
605     fi
606   done
607 fi
608
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611    test "X$echo_testing_string" = "X$echo_test_string"; then
612   :
613 else
614   # The Solaris, AIX, and Digital Unix default echo programs unquote
615   # backslashes.  This makes it impossible to quote backslashes using
616   #   echo "$something" | sed 's/\\/\\\\/g'
617   #
618   # So, first we look for a working echo in the user's PATH.
619
620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621   for dir in $PATH /usr/ucb; do
622     IFS="$lt_save_ifs"
623     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626        test "X$echo_testing_string" = "X$echo_test_string"; then
627       echo="$dir/echo"
628       break
629     fi
630   done
631   IFS="$lt_save_ifs"
632
633   if test "X$echo" = Xecho; then
634     # We didn't find a better echo, so look for alternatives.
635     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637        test "X$echo_testing_string" = "X$echo_test_string"; then
638       # This shell has a builtin print -r that does the trick.
639       echo='print -r'
640     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641          test "X$CONFIG_SHELL" != X/bin/ksh; then
642       # If we have ksh, try running configure again with it.
643       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644       export ORIGINAL_CONFIG_SHELL
645       CONFIG_SHELL=/bin/ksh
646       export CONFIG_SHELL
647       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648     else
649       # Try using printf.
650       echo='printf %s\n'
651       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653          test "X$echo_testing_string" = "X$echo_test_string"; then
654         # Cool, printf works
655         :
656       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657            test "X$echo_testing_string" = 'X\t' &&
658            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659            test "X$echo_testing_string" = "X$echo_test_string"; then
660         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661         export CONFIG_SHELL
662         SHELL="$CONFIG_SHELL"
663         export SHELL
664         echo="$CONFIG_SHELL $0 --fallback-echo"
665       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666            test "X$echo_testing_string" = 'X\t' &&
667            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668            test "X$echo_testing_string" = "X$echo_test_string"; then
669         echo="$CONFIG_SHELL $0 --fallback-echo"
670       else
671         # maybe with a smaller string...
672         prev=:
673
674         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676           then
677             break
678           fi
679           prev="$cmd"
680         done
681
682         if test "$prev" != 'sed 50q "$0"'; then
683           echo_test_string=`eval $prev`
684           export echo_test_string
685           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686         else
687           # Oops.  We lost completely, so just stick with echo.
688           echo=echo
689         fi
690       fi
691     fi
692   fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 ECHO=$echo
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 OPENLDAP_LIBRELEASE
843 OPENLDAP_LIBVERSION
844 OPENLDAP_RELEASE_DATE
845 top_builddir
846 ldap_subdir
847 CC
848 AR
849 CFLAGS
850 LDFLAGS
851 CPPFLAGS
852 ac_ct_CC
853 EXEEXT
854 OBJEXT
855 DEPDIR
856 am__include
857 am__quote
858 AMDEP_TRUE
859 AMDEP_FALSE
860 AMDEPBACKSLASH
861 CCDEPMODE
862 am__fastdepCC_TRUE
863 am__fastdepCC_FALSE
864 GREP
865 EGREP
866 LN_S
867 ECHO
868 RANLIB
869 DLLTOOL
870 AS
871 OBJDUMP
872 CPP
873 LIBTOOL
874 PERLBIN
875 OL_MKDEP
876 OL_MKDEP_FLAGS
877 LTSTATIC
878 MYSQL
879 LIBOBJS
880 LIBSRCS
881 PLAT
882 WITH_SASL
883 WITH_TLS
884 WITH_MODULES_ENABLED
885 WITH_ACI_ENABLED
886 BUILD_THREAD
887 BUILD_LIBS_DYNAMIC
888 BUILD_SLAPD
889 BUILD_SLAPI
890 SLAPD_SLAPI_DEPEND
891 BUILD_BDB
892 BUILD_DNSSRV
893 BUILD_HDB
894 BUILD_LDAP
895 BUILD_META
896 BUILD_MONITOR
897 BUILD_NDB
898 BUILD_NULL
899 BUILD_PASSWD
900 BUILD_RELAY
901 BUILD_PERL
902 BUILD_SHELL
903 BUILD_SOCK
904 BUILD_SQL
905 BUILD_ACCESSLOG
906 BUILD_AUDITLOG
907 BUILD_COLLECT
908 BUILD_CONSTRAINT
909 BUILD_DDS
910 BUILD_DENYOP
911 BUILD_DYNGROUP
912 BUILD_DYNLIST
913 BUILD_LASTMOD
914 BUILD_MEMBEROF
915 BUILD_PPOLICY
916 BUILD_PROXYCACHE
917 BUILD_REFINT
918 BUILD_RETCODE
919 BUILD_RWM
920 BUILD_SEQMOD
921 BUILD_SYNCPROV
922 BUILD_TRANSLUCENT
923 BUILD_UNIQUE
924 BUILD_VALSORT
925 LDAP_LIBS
926 SLAPD_LIBS
927 BDB_LIBS
928 SLAPD_NDB_LIBS
929 SLAPD_NDB_INCS
930 LTHREAD_LIBS
931 LUTIL_LIBS
932 WRAP_LIBS
933 SLAPD_MODULES_CPPFLAGS
934 SLAPD_MODULES_LDFLAGS
935 SLAPD_NO_STATIC
936 SLAPD_STATIC_BACKENDS
937 SLAPD_DYNAMIC_BACKENDS
938 SLAPD_STATIC_OVERLAYS
939 SLAPD_DYNAMIC_OVERLAYS
940 PERL_CPPFLAGS
941 SLAPD_PERL_LDFLAGS
942 MOD_PERL_LDFLAGS
943 KRB4_LIBS
944 KRB5_LIBS
945 SASL_LIBS
946 GSSAPI_LIBS
947 TLS_LIBS
948 MODULES_LIBS
949 SLAPI_LIBS
950 LIBSLAPI
951 LIBSLAPITOOLS
952 AUTH_LIBS
953 ICU_LIBS
954 SLAPD_SLP_LIBS
955 SLAPD_GMP_LIBS
956 SLAPD_SQL_LDFLAGS
957 SLAPD_SQL_LIBS
958 SLAPD_SQL_INCLUDES
959 LTLIBOBJS'
960 ac_subst_files=''
961       ac_precious_vars='build_alias
962 host_alias
963 target_alias
964 CC
965 CFLAGS
966 LDFLAGS
967 LIBS
968 CPPFLAGS
969 CPP'
970
971
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
977 cache_file=/dev/null
978 exec_prefix=NONE
979 no_create=
980 no_recursion=
981 prefix=NONE
982 program_prefix=NONE
983 program_suffix=NONE
984 program_transform_name=s,x,x,
985 silent=
986 site=
987 srcdir=
988 verbose=
989 x_includes=NONE
990 x_libraries=NONE
991
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE}'
1009 infodir='${datarootdir}/info'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1017
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1021 do
1022   # If the previous option needs an argument, assign it.
1023   if test -n "$ac_prev"; then
1024     eval $ac_prev=\$ac_option
1025     ac_prev=
1026     continue
1027   fi
1028
1029   case $ac_option in
1030   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031   *)    ac_optarg=yes ;;
1032   esac
1033
1034   # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1036   case $ac_dashdash$ac_option in
1037   --)
1038     ac_dashdash=yes ;;
1039
1040   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041     ac_prev=bindir ;;
1042   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043     bindir=$ac_optarg ;;
1044
1045   -build | --build | --buil | --bui | --bu)
1046     ac_prev=build_alias ;;
1047   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048     build_alias=$ac_optarg ;;
1049
1050   -cache-file | --cache-file | --cache-fil | --cache-fi \
1051   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052     ac_prev=cache_file ;;
1053   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055     cache_file=$ac_optarg ;;
1056
1057   --config-cache | -C)
1058     cache_file=config.cache ;;
1059
1060   -datadir | --datadir | --datadi | --datad)
1061     ac_prev=datadir ;;
1062   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063     datadir=$ac_optarg ;;
1064
1065   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066   | --dataroo | --dataro | --datar)
1067     ac_prev=datarootdir ;;
1068   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070     datarootdir=$ac_optarg ;;
1071
1072   -disable-* | --disable-*)
1073     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077    { (exit 1); exit 1; }; }
1078     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1079     eval enable_$ac_feature=no ;;
1080
1081   -docdir | --docdir | --docdi | --doc | --do)
1082     ac_prev=docdir ;;
1083   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084     docdir=$ac_optarg ;;
1085
1086   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087     ac_prev=dvidir ;;
1088   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089     dvidir=$ac_optarg ;;
1090
1091   -enable-* | --enable-*)
1092     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096    { (exit 1); exit 1; }; }
1097     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1098     eval enable_$ac_feature=\$ac_optarg ;;
1099
1100   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102   | --exec | --exe | --ex)
1103     ac_prev=exec_prefix ;;
1104   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106   | --exec=* | --exe=* | --ex=*)
1107     exec_prefix=$ac_optarg ;;
1108
1109   -gas | --gas | --ga | --g)
1110     # Obsolete; use --with-gas.
1111     with_gas=yes ;;
1112
1113   -help | --help | --hel | --he | -h)
1114     ac_init_help=long ;;
1115   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116     ac_init_help=recursive ;;
1117   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118     ac_init_help=short ;;
1119
1120   -host | --host | --hos | --ho)
1121     ac_prev=host_alias ;;
1122   -host=* | --host=* | --hos=* | --ho=*)
1123     host_alias=$ac_optarg ;;
1124
1125   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126     ac_prev=htmldir ;;
1127   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128   | --ht=*)
1129     htmldir=$ac_optarg ;;
1130
1131   -includedir | --includedir | --includedi | --included | --include \
1132   | --includ | --inclu | --incl | --inc)
1133     ac_prev=includedir ;;
1134   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135   | --includ=* | --inclu=* | --incl=* | --inc=*)
1136     includedir=$ac_optarg ;;
1137
1138   -infodir | --infodir | --infodi | --infod | --info | --inf)
1139     ac_prev=infodir ;;
1140   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141     infodir=$ac_optarg ;;
1142
1143   -libdir | --libdir | --libdi | --libd)
1144     ac_prev=libdir ;;
1145   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146     libdir=$ac_optarg ;;
1147
1148   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149   | --libexe | --libex | --libe)
1150     ac_prev=libexecdir ;;
1151   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152   | --libexe=* | --libex=* | --libe=*)
1153     libexecdir=$ac_optarg ;;
1154
1155   -localedir | --localedir | --localedi | --localed | --locale)
1156     ac_prev=localedir ;;
1157   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158     localedir=$ac_optarg ;;
1159
1160   -localstatedir | --localstatedir | --localstatedi | --localstated \
1161   | --localstate | --localstat | --localsta | --localst | --locals)
1162     ac_prev=localstatedir ;;
1163   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165     localstatedir=$ac_optarg ;;
1166
1167   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168     ac_prev=mandir ;;
1169   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170     mandir=$ac_optarg ;;
1171
1172   -nfp | --nfp | --nf)
1173     # Obsolete; use --without-fp.
1174     with_fp=no ;;
1175
1176   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177   | --no-cr | --no-c | -n)
1178     no_create=yes ;;
1179
1180   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182     no_recursion=yes ;;
1183
1184   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186   | --oldin | --oldi | --old | --ol | --o)
1187     ac_prev=oldincludedir ;;
1188   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191     oldincludedir=$ac_optarg ;;
1192
1193   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194     ac_prev=prefix ;;
1195   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196     prefix=$ac_optarg ;;
1197
1198   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199   | --program-pre | --program-pr | --program-p)
1200     ac_prev=program_prefix ;;
1201   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203     program_prefix=$ac_optarg ;;
1204
1205   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206   | --program-suf | --program-su | --program-s)
1207     ac_prev=program_suffix ;;
1208   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210     program_suffix=$ac_optarg ;;
1211
1212   -program-transform-name | --program-transform-name \
1213   | --program-transform-nam | --program-transform-na \
1214   | --program-transform-n | --program-transform- \
1215   | --program-transform | --program-transfor \
1216   | --program-transfo | --program-transf \
1217   | --program-trans | --program-tran \
1218   | --progr-tra | --program-tr | --program-t)
1219     ac_prev=program_transform_name ;;
1220   -program-transform-name=* | --program-transform-name=* \
1221   | --program-transform-nam=* | --program-transform-na=* \
1222   | --program-transform-n=* | --program-transform-=* \
1223   | --program-transform=* | --program-transfor=* \
1224   | --program-transfo=* | --program-transf=* \
1225   | --program-trans=* | --program-tran=* \
1226   | --progr-tra=* | --program-tr=* | --program-t=*)
1227     program_transform_name=$ac_optarg ;;
1228
1229   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230     ac_prev=pdfdir ;;
1231   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232     pdfdir=$ac_optarg ;;
1233
1234   -psdir | --psdir | --psdi | --psd | --ps)
1235     ac_prev=psdir ;;
1236   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237     psdir=$ac_optarg ;;
1238
1239   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240   | -silent | --silent | --silen | --sile | --sil)
1241     silent=yes ;;
1242
1243   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244     ac_prev=sbindir ;;
1245   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246   | --sbi=* | --sb=*)
1247     sbindir=$ac_optarg ;;
1248
1249   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251   | --sharedst | --shareds | --shared | --share | --shar \
1252   | --sha | --sh)
1253     ac_prev=sharedstatedir ;;
1254   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257   | --sha=* | --sh=*)
1258     sharedstatedir=$ac_optarg ;;
1259
1260   -site | --site | --sit)
1261     ac_prev=site ;;
1262   -site=* | --site=* | --sit=*)
1263     site=$ac_optarg ;;
1264
1265   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266     ac_prev=srcdir ;;
1267   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268     srcdir=$ac_optarg ;;
1269
1270   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271   | --syscon | --sysco | --sysc | --sys | --sy)
1272     ac_prev=sysconfdir ;;
1273   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275     sysconfdir=$ac_optarg ;;
1276
1277   -target | --target | --targe | --targ | --tar | --ta | --t)
1278     ac_prev=target_alias ;;
1279   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280     target_alias=$ac_optarg ;;
1281
1282   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283     verbose=yes ;;
1284
1285   -version | --version | --versio | --versi | --vers | -V)
1286     ac_init_version=: ;;
1287
1288   -with-* | --with-*)
1289     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292       { echo "$as_me: error: invalid package name: $ac_package" >&2
1293    { (exit 1); exit 1; }; }
1294     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1295     eval with_$ac_package=\$ac_optarg ;;
1296
1297   -without-* | --without-*)
1298     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299     # Reject names that are not valid shell variable names.
1300     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301       { echo "$as_me: error: invalid package name: $ac_package" >&2
1302    { (exit 1); exit 1; }; }
1303     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1304     eval with_$ac_package=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326    { (exit 1); exit 1; }; }
1327     ;;
1328
1329   *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334    { (exit 1); exit 1; }; }
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   { echo "$as_me: error: missing argument to $ac_option" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 # Be sure to have absolute directory names.
1356 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357                 datadir sysconfdir sharedstatedir localstatedir includedir \
1358                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359                 libdir localedir mandir
1360 do
1361   eval ac_val=\$$ac_var
1362   case $ac_val in
1363     [\\/$]* | ?:[\\/]* )  continue;;
1364     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365   esac
1366   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367    { (exit 1); exit 1; }; }
1368 done
1369
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379   if test "x$build_alias" = x; then
1380     cross_compiling=maybe
1381     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382     If a cross compiler is detected then cross compile mode will be used." >&2
1383   elif test "x$build_alias" != "x$host_alias"; then
1384     cross_compiling=yes
1385   fi
1386 fi
1387
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391 test "$silent" = yes && exec 6>/dev/null
1392
1393
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397   { echo "$as_me: error: Working directory cannot be determined" >&2
1398    { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400   { echo "$as_me: error: pwd does not report name of working directory" >&2
1401    { (exit 1); exit 1; }; }
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406   ac_srcdir_defaulted=yes
1407   # Try the directory containing this script, then the parent directory.
1408   ac_confdir=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410          X"$0" : 'X\(//\)[^/]' \| \
1411          X"$0" : 'X\(//\)$' \| \
1412          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1413 echo X"$0" |
1414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415             s//\1/
1416             q
1417           }
1418           /^X\(\/\/\)[^/].*/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\/\)$/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\).*/{
1427             s//\1/
1428             q
1429           }
1430           s/.*/./; q'`
1431   srcdir=$ac_confdir
1432   if test ! -r "$srcdir/$ac_unique_file"; then
1433     srcdir=..
1434   fi
1435 else
1436   ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441    { (exit 1); exit 1; }; }
1442 fi
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 ac_abs_confdir=`(
1445         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446    { (exit 1); exit 1; }; }
1447         pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450   srcdir=.
1451 fi
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for ac_var in $ac_precious_vars; do
1459   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460   eval ac_env_${ac_var}_value=\$${ac_var}
1461   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463 done
1464
1465 #
1466 # Report the --help message.
1467 #
1468 if test "$ac_init_help" = "long"; then
1469   # Omit some internal or obsolete options to make the list less imposing.
1470   # This message is too long to be a string in the A/UX 3.1 sh.
1471   cat <<_ACEOF
1472 \`configure' configures this package to adapt to many kinds of systems.
1473
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE.  See below for descriptions of some of the useful variables.
1478
1479 Defaults for the options are specified in brackets.
1480
1481 Configuration:
1482   -h, --help              display this help and exit
1483       --help=short        display options specific to this package
1484       --help=recursive    display the short help of all the included packages
1485   -V, --version           display version information and exit
1486   -q, --quiet, --silent   do not print \`checking...' messages
1487       --cache-file=FILE   cache test results in FILE [disabled]
1488   -C, --config-cache      alias for \`--cache-file=config.cache'
1489   -n, --no-create         do not create output files
1490       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1491
1492 Installation directories:
1493   --prefix=PREFIX         install architecture-independent files in PREFIX
1494                           [$ac_default_prefix]
1495   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1496                           [PREFIX]
1497
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1502
1503 For better control, use the options below.
1504
1505 Fine tuning of the installation directories:
1506   --bindir=DIR           user executables [EPREFIX/bin]
1507   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1508   --libexecdir=DIR       program executables [EPREFIX/libexec]
1509   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1510   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1511   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1512   --libdir=DIR           object code libraries [EPREFIX/lib]
1513   --includedir=DIR       C header files [PREFIX/include]
1514   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1515   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1516   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1517   --infodir=DIR          info documentation [DATAROOTDIR/info]
1518   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1519   --mandir=DIR           man documentation [DATAROOTDIR/man]
1520   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1521   --htmldir=DIR          html documentation [DOCDIR]
1522   --dvidir=DIR           dvi documentation [DOCDIR]
1523   --pdfdir=DIR           pdf documentation [DOCDIR]
1524   --psdir=DIR            ps documentation [DOCDIR]
1525 _ACEOF
1526
1527   cat <<\_ACEOF
1528
1529 Program names:
1530   --program-prefix=PREFIX            prepend PREFIX to installed program names
1531   --program-suffix=SUFFIX            append SUFFIX to installed program names
1532   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1533
1534 System types:
1535   --build=BUILD     configure for building on BUILD [guessed]
1536   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1537   --target=TARGET   configure for building compilers for TARGET [HOST]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542
1543   cat <<\_ACEOF
1544
1545 Optional Features:
1546   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1547   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1548   --enable-debug          enable debugging no|yes|traditional [yes]
1549   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1550   --enable-syslog         enable syslog support [auto]
1551   --enable-proctitle      enable proctitle support [yes]
1552   --enable-ipv6           enable IPv6 support [auto]
1553   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1554
1555 SLAPD (Standalone LDAP Daemon) Options:
1556   --enable-slapd          enable building slapd [yes]
1557     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1558     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1559     --enable-cleartext    enable cleartext passwords [yes]
1560     --enable-crypt        enable crypt(3) passwords [no]
1561     --enable-lmpasswd     enable LAN Manager passwords [no]
1562     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1563     --enable-modules      enable dynamic module support [no]
1564     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1565     --enable-rlookups     enable reverse lookups of client hostnames [no]
1566     --enable-slapi        enable SLAPI support (experimental) [no]
1567     --enable-slp          enable SLPv2 support [no]
1568     --enable-wrappers     enable tcp wrapper support [no]
1569
1570 SLAPD Backend Options:
1571     --enable-backends     enable all available backends no|yes|mod
1572     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1573     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1574     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1575     --enable-ldap         enable ldap backend no|yes|mod [no]
1576     --enable-meta         enable metadirectory backend no|yes|mod [no]
1577     --enable-monitor      enable monitor backend no|yes|mod [yes]
1578     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1579     --enable-null         enable null backend no|yes|mod [no]
1580     --enable-passwd       enable passwd backend no|yes|mod [no]
1581     --enable-perl         enable perl backend no|yes|mod [no]
1582     --enable-relay        enable relay backend no|yes|mod [yes]
1583     --enable-shell        enable shell backend no|yes|mod [no]
1584     --enable-sock         enable sock backend no|yes|mod [no]
1585     --enable-sql          enable sql backend no|yes|mod [no]
1586
1587 SLAPD Overlay Options:
1588     --enable-overlays     enable all available overlays no|yes|mod
1589     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1590     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1591     --enable-collect      Collect overlay no|yes|mod [no]
1592     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1593     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1594     --enable-deref        Dereference overlay no|yes|mod [no]
1595     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1596     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1597     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1598     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1599     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1600     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1601     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1602     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1603     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1604     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1605     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1606     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1607     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1608
1609 Library Generation & Linking Options
1610   --enable-static[=PKGS]  build static libraries [default=yes]
1611   --enable-shared[=PKGS]  build shared libraries [default=yes]
1612   --enable-fast-install[=PKGS]
1613                           optimize for fast installation [default=yes]
1614   --disable-dependency-tracking  speeds up one-time build
1615   --enable-dependency-tracking   do not reject slow dependency extractors
1616   --disable-libtool-lock  avoid locking (might break parallel builds)
1617
1618 Optional Packages:
1619   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1620   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1621   --with-subdir=DIR       change default subdirectory used for installs
1622   --with-cyrus-sasl       with Cyrus SASL support [auto]
1623   --with-fetch            with fetch(3) URL support [auto]
1624   --with-gssapi           with GSSAPI support [auto]
1625   --with-threads          with threads [auto]
1626   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1627   --with-yielding-select  with implicitly yielding select [auto]
1628   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1629   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1630   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1631   --with-pic              try to use only PIC/non-PIC objects [default=use
1632                           both]
1633   --with-tags[=TAGS]      include additional configurations [automatic]
1634
1635 See INSTALL file for further details.
1636
1637 Some influential environment variables:
1638   CC          C compiler command
1639   CFLAGS      C compiler flags
1640   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1641               nonstandard directory <lib dir>
1642   LIBS        libraries to pass to the linker, e.g. -l<library>
1643   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1644               you have headers in a nonstandard directory <include dir>
1645   CPP         C preprocessor
1646
1647 Use these variables to override the choices made by `configure' or to help
1648 it to find libraries and programs with nonstandard names/locations.
1649
1650 _ACEOF
1651 ac_status=$?
1652 fi
1653
1654 if test "$ac_init_help" = "recursive"; then
1655   # If there are subdirs, report their specific --help.
1656   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657     test -d "$ac_dir" || continue
1658     ac_builddir=.
1659
1660 case "$ac_dir" in
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *)
1663   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1664   # A ".." for each directory in $ac_dir_suffix.
1665   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1666   case $ac_top_builddir_sub in
1667   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669   esac ;;
1670 esac
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1675
1676 case $srcdir in
1677   .)  # We are building in place.
1678     ac_srcdir=.
1679     ac_top_srcdir=$ac_top_builddir_sub
1680     ac_abs_top_srcdir=$ac_pwd ;;
1681   [\\/]* | ?:[\\/]* )  # Absolute name.
1682     ac_srcdir=$srcdir$ac_dir_suffix;
1683     ac_top_srcdir=$srcdir
1684     ac_abs_top_srcdir=$srcdir ;;
1685   *) # Relative name.
1686     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687     ac_top_srcdir=$ac_top_build_prefix$srcdir
1688     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 esac
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
1692     cd "$ac_dir" || { ac_status=$?; continue; }
1693     # Check for guested configure.
1694     if test -f "$ac_srcdir/configure.gnu"; then
1695       echo &&
1696       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697     elif test -f "$ac_srcdir/configure"; then
1698       echo &&
1699       $SHELL "$ac_srcdir/configure" --help=recursive
1700     else
1701       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702     fi || ac_status=$?
1703     cd "$ac_pwd" || { ac_status=$?; break; }
1704   done
1705 fi
1706
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1709   cat <<\_ACEOF
1710 configure
1711 generated by GNU Autoconf 2.61
1712
1713 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1714 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1717
1718 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1719 Restrictions apply, see COPYRIGHT and LICENSE files.
1720 _ACEOF
1721   exit
1722 fi
1723 cat >config.log <<_ACEOF
1724 This file contains any messages produced by compilers while
1725 running configure, to aid debugging if configure makes a mistake.
1726
1727 It was created by $as_me, which was
1728 generated by GNU Autoconf 2.61.  Invocation command line was
1729
1730   $ $0 $@
1731
1732 _ACEOF
1733 exec 5>>config.log
1734 {
1735 cat <<_ASUNAME
1736 ## --------- ##
1737 ## Platform. ##
1738 ## --------- ##
1739
1740 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1741 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1742 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1743 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1744 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1745
1746 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1747 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1748
1749 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1750 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1751 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1752 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1753 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1754 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1755 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1756
1757 _ASUNAME
1758
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1761 do
1762   IFS=$as_save_IFS
1763   test -z "$as_dir" && as_dir=.
1764   echo "PATH: $as_dir"
1765 done
1766 IFS=$as_save_IFS
1767
1768 } >&5
1769
1770 cat >&5 <<_ACEOF
1771
1772
1773 ## ----------- ##
1774 ## Core tests. ##
1775 ## ----------- ##
1776
1777 _ACEOF
1778
1779
1780 # Keep a trace of the command line.
1781 # Strip out --no-create and --no-recursion so they do not pile up.
1782 # Strip out --silent because we don't want to record it for future runs.
1783 # Also quote any args containing shell meta-characters.
1784 # Make two passes to allow for proper duplicate-argument suppression.
1785 ac_configure_args=
1786 ac_configure_args0=
1787 ac_configure_args1=
1788 ac_must_keep_next=false
1789 for ac_pass in 1 2
1790 do
1791   for ac_arg
1792   do
1793     case $ac_arg in
1794     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1795     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1796     | -silent | --silent | --silen | --sile | --sil)
1797       continue ;;
1798     *\'*)
1799       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1800     esac
1801     case $ac_pass in
1802     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1803     2)
1804       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1805       if test $ac_must_keep_next = true; then
1806         ac_must_keep_next=false # Got value, back to normal.
1807       else
1808         case $ac_arg in
1809           *=* | --config-cache | -C | -disable-* | --disable-* \
1810           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1811           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1812           | -with-* | --with-* | -without-* | --without-* | --x)
1813             case "$ac_configure_args0 " in
1814               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1815             esac
1816             ;;
1817           -* ) ac_must_keep_next=true ;;
1818         esac
1819       fi
1820       ac_configure_args="$ac_configure_args '$ac_arg'"
1821       ;;
1822     esac
1823   done
1824 done
1825 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1826 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1827
1828 # When interrupted or exit'd, cleanup temporary files, and complete
1829 # config.log.  We remove comments because anyway the quotes in there
1830 # would cause problems or look ugly.
1831 # WARNING: Use '\'' to represent an apostrophe within the trap.
1832 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1833 trap 'exit_status=$?
1834   # Save into config.log some information that might help in debugging.
1835   {
1836     echo
1837
1838     cat <<\_ASBOX
1839 ## ---------------- ##
1840 ## Cache variables. ##
1841 ## ---------------- ##
1842 _ASBOX
1843     echo
1844     # The following way of writing the cache mishandles newlines in values,
1845 (
1846   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1847     eval ac_val=\$$ac_var
1848     case $ac_val in #(
1849     *${as_nl}*)
1850       case $ac_var in #(
1851       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1852 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1853       esac
1854       case $ac_var in #(
1855       _ | IFS | as_nl) ;; #(
1856       *) $as_unset $ac_var ;;
1857       esac ;;
1858     esac
1859   done
1860   (set) 2>&1 |
1861     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1862     *${as_nl}ac_space=\ *)
1863       sed -n \
1864         "s/'\''/'\''\\\\'\'''\''/g;
1865           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1866       ;; #(
1867     *)
1868       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1869       ;;
1870     esac |
1871     sort
1872 )
1873     echo
1874
1875     cat <<\_ASBOX
1876 ## ----------------- ##
1877 ## Output variables. ##
1878 ## ----------------- ##
1879 _ASBOX
1880     echo
1881     for ac_var in $ac_subst_vars
1882     do
1883       eval ac_val=\$$ac_var
1884       case $ac_val in
1885       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1886       esac
1887       echo "$ac_var='\''$ac_val'\''"
1888     done | sort
1889     echo
1890
1891     if test -n "$ac_subst_files"; then
1892       cat <<\_ASBOX
1893 ## ------------------- ##
1894 ## File substitutions. ##
1895 ## ------------------- ##
1896 _ASBOX
1897       echo
1898       for ac_var in $ac_subst_files
1899       do
1900         eval ac_val=\$$ac_var
1901         case $ac_val in
1902         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903         esac
1904         echo "$ac_var='\''$ac_val'\''"
1905       done | sort
1906       echo
1907     fi
1908
1909     if test -s confdefs.h; then
1910       cat <<\_ASBOX
1911 ## ----------- ##
1912 ## confdefs.h. ##
1913 ## ----------- ##
1914 _ASBOX
1915       echo
1916       cat confdefs.h
1917       echo
1918     fi
1919     test "$ac_signal" != 0 &&
1920       echo "$as_me: caught signal $ac_signal"
1921     echo "$as_me: exit $exit_status"
1922   } >&5
1923   rm -f core *.core core.conftest.* &&
1924     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1925     exit $exit_status
1926 ' 0
1927 for ac_signal in 1 2 13 15; do
1928   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1929 done
1930 ac_signal=0
1931
1932 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1933 rm -f -r conftest* confdefs.h
1934
1935 # Predefined preprocessor variables.
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_NAME "$PACKAGE_NAME"
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1949 _ACEOF
1950
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1954 _ACEOF
1955
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1959 _ACEOF
1960
1961
1962 # Let the site file select an alternate cache file if it wants to.
1963 # Prefer explicitly selected file to automatically selected ones.
1964 if test -n "$CONFIG_SITE"; then
1965   set x "$CONFIG_SITE"
1966 elif test "x$prefix" != xNONE; then
1967   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1968 else
1969   set x "$ac_default_prefix/share/config.site" \
1970         "$ac_default_prefix/etc/config.site"
1971 fi
1972 shift
1973 for ac_site_file
1974 do
1975   if test -r "$ac_site_file"; then
1976     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1977 echo "$as_me: loading site script $ac_site_file" >&6;}
1978     sed 's/^/| /' "$ac_site_file" >&5
1979     . "$ac_site_file"
1980   fi
1981 done
1982
1983
1984 # Check that the precious variables saved in the cache have kept the same
1985 # value.
1986 ac_cache_corrupted=false
1987 for ac_var in $ac_precious_vars; do
1988   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1989   eval ac_new_set=\$ac_env_${ac_var}_set
1990   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1991   eval ac_new_val=\$ac_env_${ac_var}_value
1992   case $ac_old_set,$ac_new_set in
1993     set,)
1994       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996       ac_cache_corrupted=: ;;
1997     ,set)
1998       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000       ac_cache_corrupted=: ;;
2001     ,);;
2002     *)
2003       if test "x$ac_old_val" != "x$ac_new_val"; then
2004         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2005 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2006         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2007 echo "$as_me:   former value:  $ac_old_val" >&2;}
2008         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2009 echo "$as_me:   current value: $ac_new_val" >&2;}
2010         ac_cache_corrupted=:
2011       fi;;
2012   esac
2013   # Pass precious variables to config.status.
2014   if test "$ac_new_set" = set; then
2015     case $ac_new_val in
2016     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2017     *) ac_arg=$ac_var=$ac_new_val ;;
2018     esac
2019     case " $ac_configure_args " in
2020       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2021       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2022     esac
2023   fi
2024 done
2025 if $ac_cache_corrupted; then
2026   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2027 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2028   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2029 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2030    { (exit 1); exit 1; }; }
2031 fi
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049 ac_ext=c
2050 ac_cpp='$CPP $CPPFLAGS'
2051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082 ac_aux_dir=
2083 for ac_dir in build "$srcdir"/build; do
2084   if test -f "$ac_dir/install-sh"; then
2085     ac_aux_dir=$ac_dir
2086     ac_install_sh="$ac_aux_dir/install-sh -c"
2087     break
2088   elif test -f "$ac_dir/install.sh"; then
2089     ac_aux_dir=$ac_dir
2090     ac_install_sh="$ac_aux_dir/install.sh -c"
2091     break
2092   elif test -f "$ac_dir/shtool"; then
2093     ac_aux_dir=$ac_dir
2094     ac_install_sh="$ac_aux_dir/shtool install -c"
2095     break
2096   fi
2097 done
2098 if test -z "$ac_aux_dir"; then
2099   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2100 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2101    { (exit 1); exit 1; }; }
2102 fi
2103
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2111
2112
2113 eval `$ac_aux_dir/version.sh`
2114 if test -z "$OL_STRING"; then
2115         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2116 echo "$as_me: error: could not determine version" >&2;}
2117    { (exit 1); exit 1; }; }
2118 fi
2119
2120 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2121         ac_cv_shtool="$ac_aux_dir/shtool"
2122 else
2123         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2124 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2125    { (exit 1); exit 1; }; }
2126 fi
2127
2128 SHTOOL="$ac_cv_shtool"
2129
2130 TB="" TN=""
2131 if test -t 1; then
2132         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2133         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2134 fi
2135
2136 OPENLDAP_CVS=""
2137 if test -d $ac_aux_dir/CVS; then
2138         OPENLDAP_CVS="(from CVS sources) "
2139 fi
2140
2141 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2142
2143 # Make sure we can run config.sub.
2144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2145   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2146 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2147    { (exit 1); exit 1; }; }
2148
2149 { echo "$as_me:$LINENO: checking build system type" >&5
2150 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2151 if test "${ac_cv_build+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   ac_build_alias=$build_alias
2155 test "x$ac_build_alias" = x &&
2156   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2157 test "x$ac_build_alias" = x &&
2158   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160    { (exit 1); exit 1; }; }
2161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2162   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2164    { (exit 1); exit 1; }; }
2165
2166 fi
2167 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168 echo "${ECHO_T}$ac_cv_build" >&6; }
2169 case $ac_cv_build in
2170 *-*-*) ;;
2171 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2172 echo "$as_me: error: invalid value of canonical build" >&2;}
2173    { (exit 1); exit 1; }; };;
2174 esac
2175 build=$ac_cv_build
2176 ac_save_IFS=$IFS; IFS='-'
2177 set x $ac_cv_build
2178 shift
2179 build_cpu=$1
2180 build_vendor=$2
2181 shift; shift
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2184 build_os=$*
2185 IFS=$ac_save_IFS
2186 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2187
2188
2189 { echo "$as_me:$LINENO: checking host system type" >&5
2190 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2191 if test "${ac_cv_host+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   if test "x$host_alias" = x; then
2195   ac_cv_host=$ac_cv_build
2196 else
2197   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2199 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2200    { (exit 1); exit 1; }; }
2201 fi
2202
2203 fi
2204 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205 echo "${ECHO_T}$ac_cv_host" >&6; }
2206 case $ac_cv_host in
2207 *-*-*) ;;
2208 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2209 echo "$as_me: error: invalid value of canonical host" >&2;}
2210    { (exit 1); exit 1; }; };;
2211 esac
2212 host=$ac_cv_host
2213 ac_save_IFS=$IFS; IFS='-'
2214 set x $ac_cv_host
2215 shift
2216 host_cpu=$1
2217 host_vendor=$2
2218 shift; shift
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2221 host_os=$*
2222 IFS=$ac_save_IFS
2223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2224
2225
2226 { echo "$as_me:$LINENO: checking target system type" >&5
2227 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2228 if test "${ac_cv_target+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test "x$target_alias" = x; then
2232   ac_cv_target=$ac_cv_host
2233 else
2234   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2235     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2236 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2237    { (exit 1); exit 1; }; }
2238 fi
2239
2240 fi
2241 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2242 echo "${ECHO_T}$ac_cv_target" >&6; }
2243 case $ac_cv_target in
2244 *-*-*) ;;
2245 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2246 echo "$as_me: error: invalid value of canonical target" >&2;}
2247    { (exit 1); exit 1; }; };;
2248 esac
2249 target=$ac_cv_target
2250 ac_save_IFS=$IFS; IFS='-'
2251 set x $ac_cv_target
2252 shift
2253 target_cpu=$1
2254 target_vendor=$2
2255 shift; shift
2256 # Remember, the first character of IFS is used to create $*,
2257 # except with old shells:
2258 target_os=$*
2259 IFS=$ac_save_IFS
2260 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2261
2262
2263 # The aliases save the names the user supplied, while $host etc.
2264 # will get canonicalized.
2265 test -n "$target_alias" &&
2266   test "$program_prefix$program_suffix$program_transform_name" = \
2267     NONENONEs,x,x, &&
2268   program_prefix=${target_alias}-
2269
2270 am__api_version="1.9"
2271 # Find a good install program.  We prefer a C program (faster),
2272 # so one script is as good as another.  But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2277 # AIX /bin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # OS/2's system install, which has a completely different semantic
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2286 if test -z "$INSTALL"; then
2287 if test "${ac_cv_path_install+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293   IFS=$as_save_IFS
2294   test -z "$as_dir" && as_dir=.
2295   # Account for people who put trailing slashes in PATH elements.
2296 case $as_dir/ in
2297   ./ | .// | /cC/* | \
2298   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2299   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2300   /usr/ucb/* ) ;;
2301   *)
2302     # OSF1 and SCO ODT 3.0 have their own names for install.
2303     # Don't use installbsd from OSF since it installs stuff as root
2304     # by default.
2305     for ac_prog in ginstall scoinst install; do
2306       for ac_exec_ext in '' $ac_executable_extensions; do
2307         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2308           if test $ac_prog = install &&
2309             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310             # AIX install.  It has an incompatible calling convention.
2311             :
2312           elif test $ac_prog = install &&
2313             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2314             # program-specific install script used by HP pwplus--don't use.
2315             :
2316           else
2317             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2318             break 3
2319           fi
2320         fi
2321       done
2322     done
2323     ;;
2324 esac
2325 done
2326 IFS=$as_save_IFS
2327
2328
2329 fi
2330   if test "${ac_cv_path_install+set}" = set; then
2331     INSTALL=$ac_cv_path_install
2332   else
2333     # As a last resort, use the slow shell script.  Don't cache a
2334     # value for INSTALL within a source directory, because that will
2335     # break other packages using the cache if that directory is
2336     # removed, or if the value is a relative name.
2337     INSTALL=$ac_install_sh
2338   fi
2339 fi
2340 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2341 echo "${ECHO_T}$INSTALL" >&6; }
2342
2343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2344 # It thinks the first close brace ends the variable substitution.
2345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2346
2347 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2348
2349 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2350
2351 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2352 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2353 # Just in case
2354 sleep 1
2355 echo timestamp > conftest.file
2356 # Do `set' in a subshell so we don't clobber the current shell's
2357 # arguments.  Must try -L first in case configure is actually a
2358 # symlink; some systems play weird games with the mod time of symlinks
2359 # (eg FreeBSD returns the mod time of the symlink's containing
2360 # directory).
2361 if (
2362    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2363    if test "$*" = "X"; then
2364       # -L didn't work.
2365       set X `ls -t $srcdir/configure conftest.file`
2366    fi
2367    rm -f conftest.file
2368    if test "$*" != "X $srcdir/configure conftest.file" \
2369       && test "$*" != "X conftest.file $srcdir/configure"; then
2370
2371       # If neither matched, then we have a broken ls.  This can happen
2372       # if, for instance, CONFIG_SHELL is bash and it inherits a
2373       # broken ls alias from the environment.  This has actually
2374       # happened.  Such a system could not be considered "sane".
2375       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2376 alias in your environment" >&5
2377 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2378 alias in your environment" >&2;}
2379    { (exit 1); exit 1; }; }
2380    fi
2381
2382    test "$2" = conftest.file
2383    )
2384 then
2385    # Ok.
2386    :
2387 else
2388    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2389 Check your system clock" >&5
2390 echo "$as_me: error: newly created file is older than distributed files!
2391 Check your system clock" >&2;}
2392    { (exit 1); exit 1; }; }
2393 fi
2394 { echo "$as_me:$LINENO: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6; }
2396 test "$program_prefix" != NONE &&
2397   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2398 # Use a double $ so make ignores it.
2399 test "$program_suffix" != NONE &&
2400   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2401 # Double any \ or $.  echo might interpret backslashes.
2402 # By default was `s,x,x', remove it if useless.
2403 cat <<\_ACEOF >conftest.sed
2404 s/[\\$]/&&/g;s/;s,x,x,$//
2405 _ACEOF
2406 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2407 rm -f conftest.sed
2408
2409 # expand $ac_aux_dir to an absolute path
2410 am_aux_dir=`cd $ac_aux_dir && pwd`
2411
2412 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2413 # Use eval to expand $SHELL
2414 if eval "$MISSING --run true"; then
2415   am_missing_run="$MISSING --run "
2416 else
2417   am_missing_run=
2418   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2419 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2420 fi
2421
2422 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2423   # We used to keeping the `.' as first argument, in order to
2424   # allow $(mkdir_p) to be used without argument.  As in
2425   #   $(mkdir_p) $(somedir)
2426   # where $(somedir) is conditionally defined.  However this is wrong
2427   # for two reasons:
2428   #  1. if the package is installed by a user who cannot write `.'
2429   #     make install will fail,
2430   #  2. the above comment should most certainly read
2431   #     $(mkdir_p) $(DESTDIR)$(somedir)
2432   #     so it does not work when $(somedir) is undefined and
2433   #     $(DESTDIR) is not.
2434   #  To support the latter case, we have to write
2435   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2436   #  so the `.' trick is pointless.
2437   mkdir_p='mkdir -p --'
2438 else
2439   # On NextStep and OpenStep, the `mkdir' command does not
2440   # recognize any option.  It will interpret all options as
2441   # directories to create, and then abort because `.' already
2442   # exists.
2443   for d in ./-p ./--version;
2444   do
2445     test -d $d && rmdir $d
2446   done
2447   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2448   if test -f "$ac_aux_dir/mkinstalldirs"; then
2449     mkdir_p='$(mkinstalldirs)'
2450   else
2451     mkdir_p='$(install_sh) -d'
2452   fi
2453 fi
2454
2455 for ac_prog in gawk mawk nawk awk
2456 do
2457   # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_AWK+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$AWK"; then
2465   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474     ac_cv_prog_AWK="$ac_prog"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480 IFS=$as_save_IFS
2481
2482 fi
2483 fi
2484 AWK=$ac_cv_prog_AWK
2485 if test -n "$AWK"; then
2486   { echo "$as_me:$LINENO: result: $AWK" >&5
2487 echo "${ECHO_T}$AWK" >&6; }
2488 else
2489   { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2491 fi
2492
2493
2494   test -n "$AWK" && break
2495 done
2496
2497 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2498 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2499 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2500 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   cat >conftest.make <<\_ACEOF
2504 SHELL = /bin/sh
2505 all:
2506         @echo '@@@%%%=$(MAKE)=@@@%%%'
2507 _ACEOF
2508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2509 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2510   *@@@%%%=?*=@@@%%%*)
2511     eval ac_cv_prog_make_${ac_make}_set=yes;;
2512   *)
2513     eval ac_cv_prog_make_${ac_make}_set=no;;
2514 esac
2515 rm -f conftest.make
2516 fi
2517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2518   { echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6; }
2520   SET_MAKE=
2521 else
2522   { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524   SET_MAKE="MAKE=${MAKE-make}"
2525 fi
2526
2527 rm -rf .tst 2>/dev/null
2528 mkdir .tst 2>/dev/null
2529 if test -d .tst; then
2530   am__leading_dot=.
2531 else
2532   am__leading_dot=_
2533 fi
2534 rmdir .tst 2>/dev/null
2535
2536 # test to see if srcdir already configured
2537 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2538    test -f $srcdir/config.status; then
2539   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2540 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2541    { (exit 1); exit 1; }; }
2542 fi
2543
2544 # test whether we have cygpath
2545 if test -z "$CYGPATH_W"; then
2546   if (cygpath --version) >/dev/null 2>/dev/null; then
2547     CYGPATH_W='cygpath -w'
2548   else
2549     CYGPATH_W=echo
2550   fi
2551 fi
2552
2553
2554 # Define the identity of the package.
2555  PACKAGE=$OL_PACKAGE
2556  VERSION=$OL_VERSION
2557
2558
2559 # Some tools Automake needs.
2560
2561 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2562
2563
2564 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2565
2566
2567 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2568
2569
2570 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2571
2572
2573 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2574
2575 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2576
2577 # Installed binaries are usually stripped using `strip' when the user
2578 # run `make install-strip'.  However `strip' might not be the right
2579 # tool to use in cross-compilation environments, therefore Automake
2580 # will honor the `STRIP' environment variable to overrule this program.
2581 if test "$cross_compiling" != no; then
2582   if test -n "$ac_tool_prefix"; then
2583   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}strip; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_STRIP+set}" = set; then
2588   echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590   if test -n "$STRIP"; then
2591   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596   IFS=$as_save_IFS
2597   test -z "$as_dir" && as_dir=.
2598   for ac_exec_ext in '' $ac_executable_extensions; do
2599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602     break 2
2603   fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 STRIP=$ac_cv_prog_STRIP
2611 if test -n "$STRIP"; then
2612   { echo "$as_me:$LINENO: result: $STRIP" >&5
2613 echo "${ECHO_T}$STRIP" >&6; }
2614 else
2615   { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2617 fi
2618
2619
2620 fi
2621 if test -z "$ac_cv_prog_STRIP"; then
2622   ac_ct_STRIP=$STRIP
2623   # Extract the first word of "strip", so it can be a program name with args.
2624 set dummy strip; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   if test -n "$ac_ct_STRIP"; then
2631   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638   for ac_exec_ext in '' $ac_executable_extensions; do
2639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640     ac_cv_prog_ac_ct_STRIP="strip"
2641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2651 if test -n "$ac_ct_STRIP"; then
2652   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2653 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2654 else
2655   { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2657 fi
2658
2659   if test "x$ac_ct_STRIP" = x; then
2660     STRIP=":"
2661   else
2662     case $cross_compiling:$ac_tool_warned in
2663 yes:)
2664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet.  If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&5
2667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2668 whose name does not start with the host triplet.  If you think this
2669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2670 ac_tool_warned=yes ;;
2671 esac
2672     STRIP=$ac_ct_STRIP
2673   fi
2674 else
2675   STRIP="$ac_cv_prog_STRIP"
2676 fi
2677
2678 fi
2679 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2680
2681 # We need awk for the "check" target.  The system "awk" is bad on
2682 # some platforms.
2683 # Always define AMTAR for backward compatibility.
2684
2685 AMTAR=${AMTAR-"${am_missing_run}tar"}
2686
2687 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2688
2689
2690
2691
2692
2693 cat >>confdefs.h <<_ACEOF
2694 #define OPENLDAP_PACKAGE "$PACKAGE"
2695 _ACEOF
2696
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define OPENLDAP_VERSION "$VERSION"
2700 _ACEOF
2701
2702
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define LDAP_VENDOR_VERSION $OL_API_INC
2706 _ACEOF
2707
2708
2709 cat >>confdefs.h <<_ACEOF
2710 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2711 _ACEOF
2712
2713
2714 cat >>confdefs.h <<_ACEOF
2715 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2716 _ACEOF
2717
2718
2719 cat >>confdefs.h <<_ACEOF
2720 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2721 _ACEOF
2722
2723
2724 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2725
2726 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2727
2728 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2729
2730
2731
2732
2733
2734
2735
2736 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2737
2738 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2739
2740 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2741
2742
2743 { echo "$as_me:$LINENO: checking configure arguments" >&5
2744 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2745
2746
2747 top_builddir=`pwd`
2748
2749 ldap_subdir="/openldap"
2750
2751
2752 # Check whether --with-subdir was given.
2753 if test "${with_subdir+set}" = set; then
2754   withval=$with_subdir; case "$withval" in
2755         no) ldap_subdir=""
2756                 ;;
2757         yes)
2758                 ;;
2759         /*|\\*)
2760                 ldap_subdir="$withval"
2761                 ;;
2762         *)
2763                 ldap_subdir="/$withval"
2764                 ;;
2765 esac
2766
2767 fi
2768
2769
2770 # OpenLDAP --enable-debug
2771
2772         # Check whether --enable-debug was given.
2773 if test "${enable_debug+set}" = set; then
2774   enableval=$enable_debug;
2775         ol_arg=invalid
2776         for ol_val in no yes traditional ; do
2777                 if test "$enableval" = "$ol_val" ; then
2778                         ol_arg="$ol_val"
2779                 fi
2780         done
2781         if test "$ol_arg" = "invalid" ; then
2782                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2783 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2784    { (exit 1); exit 1; }; }
2785         fi
2786         ol_enable_debug="$ol_arg"
2787
2788 else
2789         ol_enable_debug=yes
2790 fi
2791
2792 # end --enable-debug
2793 # OpenLDAP --enable-dynamic
2794
2795         # Check whether --enable-dynamic was given.
2796 if test "${enable_dynamic+set}" = set; then
2797   enableval=$enable_dynamic;
2798         ol_arg=invalid
2799         for ol_val in auto yes no ; do
2800                 if test "$enableval" = "$ol_val" ; then
2801                         ol_arg="$ol_val"
2802                 fi
2803         done
2804         if test "$ol_arg" = "invalid" ; then
2805                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2806 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2807    { (exit 1); exit 1; }; }
2808         fi
2809         ol_enable_dynamic="$ol_arg"
2810
2811 else
2812         ol_enable_dynamic=no
2813 fi
2814
2815 # end --enable-dynamic
2816 # OpenLDAP --enable-syslog
2817
2818         # Check whether --enable-syslog was given.
2819 if test "${enable_syslog+set}" = set; then
2820   enableval=$enable_syslog;
2821         ol_arg=invalid
2822         for ol_val in auto yes no ; do
2823                 if test "$enableval" = "$ol_val" ; then
2824                         ol_arg="$ol_val"
2825                 fi
2826         done
2827         if test "$ol_arg" = "invalid" ; then
2828                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2829 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2830    { (exit 1); exit 1; }; }
2831         fi
2832         ol_enable_syslog="$ol_arg"
2833
2834 else
2835         ol_enable_syslog=auto
2836 fi
2837
2838 # end --enable-syslog
2839 # OpenLDAP --enable-proctitle
2840
2841         # Check whether --enable-proctitle was given.
2842 if test "${enable_proctitle+set}" = set; then
2843   enableval=$enable_proctitle;
2844         ol_arg=invalid
2845         for ol_val in auto yes no ; do
2846                 if test "$enableval" = "$ol_val" ; then
2847                         ol_arg="$ol_val"
2848                 fi
2849         done
2850         if test "$ol_arg" = "invalid" ; then
2851                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2852 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2853    { (exit 1); exit 1; }; }
2854         fi
2855         ol_enable_proctitle="$ol_arg"
2856
2857 else
2858         ol_enable_proctitle=yes
2859 fi
2860
2861 # end --enable-proctitle
2862 ol_enable_referrals=${ol_enable_referrals-no}
2863 # OpenLDAP --enable-ipv6
2864
2865         # Check whether --enable-ipv6 was given.
2866 if test "${enable_ipv6+set}" = set; then
2867   enableval=$enable_ipv6;
2868         ol_arg=invalid
2869         for ol_val in auto yes no ; do
2870                 if test "$enableval" = "$ol_val" ; then
2871                         ol_arg="$ol_val"
2872                 fi
2873         done
2874         if test "$ol_arg" = "invalid" ; then
2875                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2876 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2877    { (exit 1); exit 1; }; }
2878         fi
2879         ol_enable_ipv6="$ol_arg"
2880
2881 else
2882         ol_enable_ipv6=auto
2883 fi
2884
2885 # end --enable-ipv6
2886 # OpenLDAP --enable-local
2887
2888         # Check whether --enable-local was given.
2889 if test "${enable_local+set}" = set; then
2890   enableval=$enable_local;
2891         ol_arg=invalid
2892         for ol_val in auto yes no ; do
2893                 if test "$enableval" = "$ol_val" ; then
2894                         ol_arg="$ol_val"
2895                 fi
2896         done
2897         if test "$ol_arg" = "invalid" ; then
2898                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2899 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2900    { (exit 1); exit 1; }; }
2901         fi
2902         ol_enable_local="$ol_arg"
2903
2904 else
2905         ol_enable_local=auto
2906 fi
2907
2908 # end --enable-local
2909
2910 # OpenLDAP --with-cyrus_sasl
2911
2912 # Check whether --with-cyrus_sasl was given.
2913 if test "${with_cyrus_sasl+set}" = set; then
2914   withval=$with_cyrus_sasl;
2915         ol_arg=invalid
2916         for ol_val in auto yes no  ; do
2917                 if test "$withval" = "$ol_val" ; then
2918                         ol_arg="$ol_val"
2919                 fi
2920         done
2921         if test "$ol_arg" = "invalid" ; then
2922                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2923 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2924    { (exit 1); exit 1; }; }
2925         fi
2926         ol_with_cyrus_sasl="$ol_arg"
2927
2928 else
2929         ol_with_cyrus_sasl="auto"
2930 fi
2931 # end --with-cyrus_sasl
2932
2933 # OpenLDAP --with-fetch
2934
2935 # Check whether --with-fetch was given.
2936 if test "${with_fetch+set}" = set; then
2937   withval=$with_fetch;
2938         ol_arg=invalid
2939         for ol_val in auto yes no  ; do
2940                 if test "$withval" = "$ol_val" ; then
2941                         ol_arg="$ol_val"
2942                 fi
2943         done
2944         if test "$ol_arg" = "invalid" ; then
2945                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2946 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2947    { (exit 1); exit 1; }; }
2948         fi
2949         ol_with_fetch="$ol_arg"
2950
2951 else
2952         ol_with_fetch="auto"
2953 fi
2954 # end --with-fetch
2955
2956 # OpenLDAP --with-gssapi
2957
2958 # Check whether --with-gssapi was given.
2959 if test "${with_gssapi+set}" = set; then
2960   withval=$with_gssapi;
2961         ol_arg=invalid
2962         for ol_val in auto yes no  ; do
2963                 if test "$withval" = "$ol_val" ; then
2964                         ol_arg="$ol_val"
2965                 fi
2966         done
2967         if test "$ol_arg" = "invalid" ; then
2968                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-gssapi" >&5
2969 echo "$as_me: error: bad value $withval for --with-gssapi" >&2;}
2970    { (exit 1); exit 1; }; }
2971         fi
2972         ol_with_gssapi="$ol_arg"
2973
2974 else
2975         ol_with_gssapi="auto"
2976 fi
2977 # end --with-gssapi
2978
2979 # OpenLDAP --with-threads
2980
2981 # Check whether --with-threads was given.
2982 if test "${with_threads+set}" = set; then
2983   withval=$with_threads;
2984         ol_arg=invalid
2985         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2986                 if test "$withval" = "$ol_val" ; then
2987                         ol_arg="$ol_val"
2988                 fi
2989         done
2990         if test "$ol_arg" = "invalid" ; then
2991                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2992 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2993    { (exit 1); exit 1; }; }
2994         fi
2995         ol_with_threads="$ol_arg"
2996
2997 else
2998         ol_with_threads="auto"
2999 fi
3000 # end --with-threads
3001
3002 # OpenLDAP --with-tls
3003
3004 # Check whether --with-tls was given.
3005 if test "${with_tls+set}" = set; then
3006   withval=$with_tls;
3007         ol_arg=invalid
3008         for ol_val in auto openssl gnutls yes no  ; do
3009                 if test "$withval" = "$ol_val" ; then
3010                         ol_arg="$ol_val"
3011                 fi
3012         done
3013         if test "$ol_arg" = "invalid" ; then
3014                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
3015 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
3016    { (exit 1); exit 1; }; }
3017         fi
3018         ol_with_tls="$ol_arg"
3019
3020 else
3021         ol_with_tls="auto"
3022 fi
3023 # end --with-tls
3024
3025 # OpenLDAP --with-yielding_select
3026
3027 # Check whether --with-yielding_select was given.
3028 if test "${with_yielding_select+set}" = set; then
3029   withval=$with_yielding_select;
3030         ol_arg=invalid
3031         for ol_val in auto yes no manual  ; do
3032                 if test "$withval" = "$ol_val" ; then
3033                         ol_arg="$ol_val"
3034                 fi
3035         done
3036         if test "$ol_arg" = "invalid" ; then
3037                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3038 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3039    { (exit 1); exit 1; }; }
3040         fi
3041         ol_with_yielding_select="$ol_arg"
3042
3043 else
3044         ol_with_yielding_select="auto"
3045 fi
3046 # end --with-yielding_select
3047
3048 # OpenLDAP --with-mp
3049
3050 # Check whether --with-mp was given.
3051 if test "${with_mp+set}" = set; then
3052   withval=$with_mp;
3053         ol_arg=invalid
3054         for ol_val in auto longlong long bignum gmp yes no ; do
3055                 if test "$withval" = "$ol_val" ; then
3056                         ol_arg="$ol_val"
3057                 fi
3058         done
3059         if test "$ol_arg" = "invalid" ; then
3060                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3061 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3062    { (exit 1); exit 1; }; }
3063         fi
3064         ol_with_mp="$ol_arg"
3065
3066 else
3067         ol_with_mp="auto"
3068 fi
3069 # end --with-mp
3070
3071 # OpenLDAP --with-odbc
3072
3073 # Check whether --with-odbc was given.
3074 if test "${with_odbc+set}" = set; then
3075   withval=$with_odbc;
3076         ol_arg=invalid
3077         for ol_val in auto iodbc unixodbc odbc32  ; do
3078                 if test "$withval" = "$ol_val" ; then
3079                         ol_arg="$ol_val"
3080                 fi
3081         done
3082         if test "$ol_arg" = "invalid" ; then
3083                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3084 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3085    { (exit 1); exit 1; }; }
3086         fi
3087         ol_with_odbc="$ol_arg"
3088
3089 else
3090         ol_with_odbc="auto"
3091 fi
3092 # end --with-odbc
3093
3094
3095
3096 # Check whether --enable-xxslapdoptions was given.
3097 if test "${enable_xxslapdoptions+set}" = set; then
3098   enableval=$enable_xxslapdoptions;
3099 fi
3100
3101 # OpenLDAP --enable-slapd
3102
3103         # Check whether --enable-slapd was given.
3104 if test "${enable_slapd+set}" = set; then
3105   enableval=$enable_slapd;
3106         ol_arg=invalid
3107         for ol_val in auto yes no ; do
3108                 if test "$enableval" = "$ol_val" ; then
3109                         ol_arg="$ol_val"
3110                 fi
3111         done
3112         if test "$ol_arg" = "invalid" ; then
3113                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3115    { (exit 1); exit 1; }; }
3116         fi
3117         ol_enable_slapd="$ol_arg"
3118
3119 else
3120         ol_enable_slapd=yes
3121 fi
3122
3123 # end --enable-slapd
3124 # OpenLDAP --enable-dynacl
3125
3126         # Check whether --enable-dynacl was given.
3127 if test "${enable_dynacl+set}" = set; then
3128   enableval=$enable_dynacl;
3129         ol_arg=invalid
3130         for ol_val in auto yes no ; do
3131                 if test "$enableval" = "$ol_val" ; then
3132                         ol_arg="$ol_val"
3133                 fi
3134         done
3135         if test "$ol_arg" = "invalid" ; then
3136                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3138    { (exit 1); exit 1; }; }
3139         fi
3140         ol_enable_dynacl="$ol_arg"
3141
3142 else
3143         ol_enable_dynacl=no
3144 fi
3145
3146 # end --enable-dynacl
3147 # OpenLDAP --enable-aci
3148
3149         # Check whether --enable-aci was given.
3150 if test "${enable_aci+set}" = set; then
3151   enableval=$enable_aci;
3152         ol_arg=invalid
3153         for ol_val in no yes mod ; do
3154                 if test "$enableval" = "$ol_val" ; then
3155                         ol_arg="$ol_val"
3156                 fi
3157         done
3158         if test "$ol_arg" = "invalid" ; then
3159                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3161    { (exit 1); exit 1; }; }
3162         fi
3163         ol_enable_aci="$ol_arg"
3164
3165 else
3166         ol_enable_aci=no
3167 fi
3168
3169 # end --enable-aci
3170 # OpenLDAP --enable-cleartext
3171
3172         # Check whether --enable-cleartext was given.
3173 if test "${enable_cleartext+set}" = set; then
3174   enableval=$enable_cleartext;
3175         ol_arg=invalid
3176         for ol_val in auto yes no ; do
3177                 if test "$enableval" = "$ol_val" ; then
3178                         ol_arg="$ol_val"
3179                 fi
3180         done
3181         if test "$ol_arg" = "invalid" ; then
3182                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3183 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3184    { (exit 1); exit 1; }; }
3185         fi
3186         ol_enable_cleartext="$ol_arg"
3187
3188 else
3189         ol_enable_cleartext=yes
3190 fi
3191
3192 # end --enable-cleartext
3193 # OpenLDAP --enable-crypt
3194
3195         # Check whether --enable-crypt was given.
3196 if test "${enable_crypt+set}" = set; then
3197   enableval=$enable_crypt;
3198         ol_arg=invalid
3199         for ol_val in auto yes no ; do
3200                 if test "$enableval" = "$ol_val" ; then
3201                         ol_arg="$ol_val"
3202                 fi
3203         done
3204         if test "$ol_arg" = "invalid" ; then
3205                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3207    { (exit 1); exit 1; }; }
3208         fi
3209         ol_enable_crypt="$ol_arg"
3210
3211 else
3212         ol_enable_crypt=no
3213 fi
3214
3215 # end --enable-crypt
3216 # OpenLDAP --enable-lmpasswd
3217
3218         # Check whether --enable-lmpasswd was given.
3219 if test "${enable_lmpasswd+set}" = set; then
3220   enableval=$enable_lmpasswd;
3221         ol_arg=invalid
3222         for ol_val in auto yes no ; do
3223                 if test "$enableval" = "$ol_val" ; then
3224                         ol_arg="$ol_val"
3225                 fi
3226         done
3227         if test "$ol_arg" = "invalid" ; then
3228                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3229 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3230    { (exit 1); exit 1; }; }
3231         fi
3232         ol_enable_lmpasswd="$ol_arg"
3233
3234 else
3235         ol_enable_lmpasswd=no
3236 fi
3237
3238 # end --enable-lmpasswd
3239 # OpenLDAP --enable-spasswd
3240
3241         # Check whether --enable-spasswd was given.
3242 if test "${enable_spasswd+set}" = set; then
3243   enableval=$enable_spasswd;
3244         ol_arg=invalid
3245         for ol_val in auto yes no ; do
3246                 if test "$enableval" = "$ol_val" ; then
3247                         ol_arg="$ol_val"
3248                 fi
3249         done
3250         if test "$ol_arg" = "invalid" ; then
3251                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3252 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3253    { (exit 1); exit 1; }; }
3254         fi
3255         ol_enable_spasswd="$ol_arg"
3256
3257 else
3258         ol_enable_spasswd=no
3259 fi
3260
3261 # end --enable-spasswd
3262 # OpenLDAP --enable-modules
3263
3264         # Check whether --enable-modules was given.
3265 if test "${enable_modules+set}" = set; then
3266   enableval=$enable_modules;
3267         ol_arg=invalid
3268         for ol_val in auto yes no ; do
3269                 if test "$enableval" = "$ol_val" ; then
3270                         ol_arg="$ol_val"
3271                 fi
3272         done
3273         if test "$ol_arg" = "invalid" ; then
3274                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3275 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3276    { (exit 1); exit 1; }; }
3277         fi
3278         ol_enable_modules="$ol_arg"
3279
3280 else
3281         ol_enable_modules=no
3282 fi
3283
3284 # end --enable-modules
3285 # OpenLDAP --enable-rewrite
3286
3287         # Check whether --enable-rewrite was given.
3288 if test "${enable_rewrite+set}" = set; then
3289   enableval=$enable_rewrite;
3290         ol_arg=invalid
3291         for ol_val in auto yes no ; do
3292                 if test "$enableval" = "$ol_val" ; then
3293                         ol_arg="$ol_val"
3294                 fi
3295         done
3296         if test "$ol_arg" = "invalid" ; then
3297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3299    { (exit 1); exit 1; }; }
3300         fi
3301         ol_enable_rewrite="$ol_arg"
3302
3303 else
3304         ol_enable_rewrite=auto
3305 fi
3306
3307 # end --enable-rewrite
3308 # OpenLDAP --enable-rlookups
3309
3310         # Check whether --enable-rlookups was given.
3311 if test "${enable_rlookups+set}" = set; then
3312   enableval=$enable_rlookups;
3313         ol_arg=invalid
3314         for ol_val in auto yes no ; do
3315                 if test "$enableval" = "$ol_val" ; then
3316                         ol_arg="$ol_val"
3317                 fi
3318         done
3319         if test "$ol_arg" = "invalid" ; then
3320                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3322    { (exit 1); exit 1; }; }
3323         fi
3324         ol_enable_rlookups="$ol_arg"
3325
3326 else
3327         ol_enable_rlookups=no
3328 fi
3329
3330 # end --enable-rlookups
3331 # OpenLDAP --enable-slapi
3332
3333         # Check whether --enable-slapi was given.
3334 if test "${enable_slapi+set}" = set; then
3335   enableval=$enable_slapi;
3336         ol_arg=invalid
3337         for ol_val in auto yes no ; do
3338                 if test "$enableval" = "$ol_val" ; then
3339                         ol_arg="$ol_val"
3340                 fi
3341         done
3342         if test "$ol_arg" = "invalid" ; then
3343                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3345    { (exit 1); exit 1; }; }
3346         fi
3347         ol_enable_slapi="$ol_arg"
3348
3349 else
3350         ol_enable_slapi=no
3351 fi
3352
3353 # end --enable-slapi
3354 # OpenLDAP --enable-slp
3355
3356         # Check whether --enable-slp was given.
3357 if test "${enable_slp+set}" = set; then
3358   enableval=$enable_slp;
3359         ol_arg=invalid
3360         for ol_val in auto yes no ; do
3361                 if test "$enableval" = "$ol_val" ; then
3362                         ol_arg="$ol_val"
3363                 fi
3364         done
3365         if test "$ol_arg" = "invalid" ; then
3366                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3368    { (exit 1); exit 1; }; }
3369         fi
3370         ol_enable_slp="$ol_arg"
3371
3372 else
3373         ol_enable_slp=no
3374 fi
3375
3376 # end --enable-slp
3377 # OpenLDAP --enable-wrappers
3378
3379         # Check whether --enable-wrappers was given.
3380 if test "${enable_wrappers+set}" = set; then
3381   enableval=$enable_wrappers;
3382         ol_arg=invalid
3383         for ol_val in auto yes no ; do
3384                 if test "$enableval" = "$ol_val" ; then
3385                         ol_arg="$ol_val"
3386                 fi
3387         done
3388         if test "$ol_arg" = "invalid" ; then
3389                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3390 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3391    { (exit 1); exit 1; }; }
3392         fi
3393         ol_enable_wrappers="$ol_arg"
3394
3395 else
3396         ol_enable_wrappers=no
3397 fi
3398
3399 # end --enable-wrappers
3400
3401 Backends="bdb \
3402         dnssrv \
3403         hdb \
3404         ldap \
3405         meta \
3406         monitor \
3407         ndb \
3408         null \
3409         passwd \
3410         perl \
3411         relay \
3412         shell \
3413         sock \
3414         sql"
3415
3416 # Check whether --enable-xxslapbackends was given.
3417 if test "${enable_xxslapbackends+set}" = set; then
3418   enableval=$enable_xxslapbackends;
3419 fi
3420
3421
3422 # OpenLDAP --enable-backends
3423
3424         # Check whether --enable-backends was given.
3425 if test "${enable_backends+set}" = set; then
3426   enableval=$enable_backends;
3427         ol_arg=invalid
3428         for ol_val in no yes mod ; do
3429                 if test "$enableval" = "$ol_val" ; then
3430                         ol_arg="$ol_val"
3431                 fi
3432         done
3433         if test "$ol_arg" = "invalid" ; then
3434                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3435 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3436    { (exit 1); exit 1; }; }
3437         fi
3438         ol_enable_backends="$ol_arg"
3439
3440 fi
3441
3442 # end --enable-backends
3443 # OpenLDAP --enable-bdb
3444
3445         # Check whether --enable-bdb was given.
3446 if test "${enable_bdb+set}" = set; then
3447   enableval=$enable_bdb;
3448         ol_arg=invalid
3449         for ol_val in no yes mod ; do
3450                 if test "$enableval" = "$ol_val" ; then
3451                         ol_arg="$ol_val"
3452                 fi
3453         done
3454         if test "$ol_arg" = "invalid" ; then
3455                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3456 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3457    { (exit 1); exit 1; }; }
3458         fi
3459         ol_enable_bdb="$ol_arg"
3460
3461 else
3462         ol_enable_bdb=${ol_enable_backends:-yes}
3463 fi
3464
3465 # end --enable-bdb
3466 # OpenLDAP --enable-dnssrv
3467
3468         # Check whether --enable-dnssrv was given.
3469 if test "${enable_dnssrv+set}" = set; then
3470   enableval=$enable_dnssrv;
3471         ol_arg=invalid
3472         for ol_val in no yes mod ; do
3473                 if test "$enableval" = "$ol_val" ; then
3474                         ol_arg="$ol_val"
3475                 fi
3476         done
3477         if test "$ol_arg" = "invalid" ; then
3478                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3479 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3480    { (exit 1); exit 1; }; }
3481         fi
3482         ol_enable_dnssrv="$ol_arg"
3483
3484 else
3485         ol_enable_dnssrv=${ol_enable_backends:-no}
3486 fi
3487
3488 # end --enable-dnssrv
3489 # OpenLDAP --enable-hdb
3490
3491         # Check whether --enable-hdb was given.
3492 if test "${enable_hdb+set}" = set; then
3493   enableval=$enable_hdb;
3494         ol_arg=invalid
3495         for ol_val in no yes mod ; do
3496                 if test "$enableval" = "$ol_val" ; then
3497                         ol_arg="$ol_val"
3498                 fi
3499         done
3500         if test "$ol_arg" = "invalid" ; then
3501                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3502 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3503    { (exit 1); exit 1; }; }
3504         fi
3505         ol_enable_hdb="$ol_arg"
3506
3507 else
3508         ol_enable_hdb=${ol_enable_backends:-yes}
3509 fi
3510
3511 # end --enable-hdb
3512 # OpenLDAP --enable-ldap
3513
3514         # Check whether --enable-ldap was given.
3515 if test "${enable_ldap+set}" = set; then
3516   enableval=$enable_ldap;
3517         ol_arg=invalid
3518         for ol_val in no yes mod ; do
3519                 if test "$enableval" = "$ol_val" ; then
3520                         ol_arg="$ol_val"
3521                 fi
3522         done
3523         if test "$ol_arg" = "invalid" ; then
3524                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3525 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3526    { (exit 1); exit 1; }; }
3527         fi
3528         ol_enable_ldap="$ol_arg"
3529
3530 else
3531         ol_enable_ldap=${ol_enable_backends:-no}
3532 fi
3533
3534 # end --enable-ldap
3535 # OpenLDAP --enable-meta
3536
3537         # Check whether --enable-meta was given.
3538 if test "${enable_meta+set}" = set; then
3539   enableval=$enable_meta;
3540         ol_arg=invalid
3541         for ol_val in no yes mod ; do
3542                 if test "$enableval" = "$ol_val" ; then
3543                         ol_arg="$ol_val"
3544                 fi
3545         done
3546         if test "$ol_arg" = "invalid" ; then
3547                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3549    { (exit 1); exit 1; }; }
3550         fi
3551         ol_enable_meta="$ol_arg"
3552
3553 else
3554         ol_enable_meta=${ol_enable_backends:-no}
3555 fi
3556
3557 # end --enable-meta
3558 # OpenLDAP --enable-monitor
3559
3560         # Check whether --enable-monitor was given.
3561 if test "${enable_monitor+set}" = set; then
3562   enableval=$enable_monitor;
3563         ol_arg=invalid
3564         for ol_val in no yes mod ; do
3565                 if test "$enableval" = "$ol_val" ; then
3566                         ol_arg="$ol_val"
3567                 fi
3568         done
3569         if test "$ol_arg" = "invalid" ; then
3570                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3571 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3572    { (exit 1); exit 1; }; }
3573         fi
3574         ol_enable_monitor="$ol_arg"
3575
3576 else
3577         ol_enable_monitor=${ol_enable_backends:-yes}
3578 fi
3579
3580 # end --enable-monitor
3581 # OpenLDAP --enable-ndb
3582
3583         # Check whether --enable-ndb was given.
3584 if test "${enable_ndb+set}" = set; then
3585   enableval=$enable_ndb;
3586         ol_arg=invalid
3587         for ol_val in no yes mod ; do
3588                 if test "$enableval" = "$ol_val" ; then
3589                         ol_arg="$ol_val"
3590                 fi
3591         done
3592         if test "$ol_arg" = "invalid" ; then
3593                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3594 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3595    { (exit 1); exit 1; }; }
3596         fi
3597         ol_enable_ndb="$ol_arg"
3598
3599 else
3600         ol_enable_ndb=${ol_enable_backends:-no}
3601 fi
3602
3603 # end --enable-ndb
3604 # OpenLDAP --enable-null
3605
3606         # Check whether --enable-null was given.
3607 if test "${enable_null+set}" = set; then
3608   enableval=$enable_null;
3609         ol_arg=invalid
3610         for ol_val in no yes mod ; do
3611                 if test "$enableval" = "$ol_val" ; then
3612                         ol_arg="$ol_val"
3613                 fi
3614         done
3615         if test "$ol_arg" = "invalid" ; then
3616                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3617 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3618    { (exit 1); exit 1; }; }
3619         fi
3620         ol_enable_null="$ol_arg"
3621
3622 else
3623         ol_enable_null=${ol_enable_backends:-no}
3624 fi
3625
3626 # end --enable-null
3627 # OpenLDAP --enable-passwd
3628
3629         # Check whether --enable-passwd was given.
3630 if test "${enable_passwd+set}" = set; then
3631   enableval=$enable_passwd;
3632         ol_arg=invalid
3633         for ol_val in no yes mod ; do
3634                 if test "$enableval" = "$ol_val" ; then
3635                         ol_arg="$ol_val"
3636                 fi
3637         done
3638         if test "$ol_arg" = "invalid" ; then
3639                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3640 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3641    { (exit 1); exit 1; }; }
3642         fi
3643         ol_enable_passwd="$ol_arg"
3644
3645 else
3646         ol_enable_passwd=${ol_enable_backends:-no}
3647 fi
3648
3649 # end --enable-passwd
3650 # OpenLDAP --enable-perl
3651
3652         # Check whether --enable-perl was given.
3653 if test "${enable_perl+set}" = set; then
3654   enableval=$enable_perl;
3655         ol_arg=invalid
3656         for ol_val in no yes mod ; do
3657                 if test "$enableval" = "$ol_val" ; then
3658                         ol_arg="$ol_val"
3659                 fi
3660         done
3661         if test "$ol_arg" = "invalid" ; then
3662                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3663 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3664    { (exit 1); exit 1; }; }
3665         fi
3666         ol_enable_perl="$ol_arg"
3667
3668 else
3669         ol_enable_perl=${ol_enable_backends:-no}
3670 fi
3671
3672 # end --enable-perl
3673 # OpenLDAP --enable-relay
3674
3675         # Check whether --enable-relay was given.
3676 if test "${enable_relay+set}" = set; then
3677   enableval=$enable_relay;
3678         ol_arg=invalid
3679         for ol_val in no yes mod ; do
3680                 if test "$enableval" = "$ol_val" ; then
3681                         ol_arg="$ol_val"
3682                 fi
3683         done
3684         if test "$ol_arg" = "invalid" ; then
3685                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3686 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3687    { (exit 1); exit 1; }; }
3688         fi
3689         ol_enable_relay="$ol_arg"
3690
3691 else
3692         ol_enable_relay=${ol_enable_backends:-yes}
3693 fi
3694
3695 # end --enable-relay
3696 # OpenLDAP --enable-shell
3697
3698         # Check whether --enable-shell was given.
3699 if test "${enable_shell+set}" = set; then
3700   enableval=$enable_shell;
3701         ol_arg=invalid
3702         for ol_val in no yes mod ; do
3703                 if test "$enableval" = "$ol_val" ; then
3704                         ol_arg="$ol_val"
3705                 fi
3706         done
3707         if test "$ol_arg" = "invalid" ; then
3708                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3709 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3710    { (exit 1); exit 1; }; }
3711         fi
3712         ol_enable_shell="$ol_arg"
3713
3714 else
3715         ol_enable_shell=${ol_enable_backends:-no}
3716 fi
3717
3718 # end --enable-shell
3719 # OpenLDAP --enable-sock
3720
3721         # Check whether --enable-sock was given.
3722 if test "${enable_sock+set}" = set; then
3723   enableval=$enable_sock;
3724         ol_arg=invalid
3725         for ol_val in no yes mod ; do
3726                 if test "$enableval" = "$ol_val" ; then
3727                         ol_arg="$ol_val"
3728                 fi
3729         done
3730         if test "$ol_arg" = "invalid" ; then
3731                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3732 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3733    { (exit 1); exit 1; }; }
3734         fi
3735         ol_enable_sock="$ol_arg"
3736
3737 else
3738         ol_enable_sock=${ol_enable_backends:-no}
3739 fi
3740
3741 # end --enable-sock
3742 # OpenLDAP --enable-sql
3743
3744         # Check whether --enable-sql was given.
3745 if test "${enable_sql+set}" = set; then
3746   enableval=$enable_sql;
3747         ol_arg=invalid
3748         for ol_val in no yes mod ; do
3749                 if test "$enableval" = "$ol_val" ; then
3750                         ol_arg="$ol_val"
3751                 fi
3752         done
3753         if test "$ol_arg" = "invalid" ; then
3754                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3755 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3756    { (exit 1); exit 1; }; }
3757         fi
3758         ol_enable_sql="$ol_arg"
3759
3760 else
3761         ol_enable_sql=${ol_enable_backends:-no}
3762 fi
3763
3764 # end --enable-sql
3765
3766 Overlays="accesslog \
3767         auditlog \
3768         collect \
3769         constraint \
3770         dds \
3771         deref \
3772         dyngroup \
3773         dynlist \
3774         memberof \
3775         ppolicy \
3776         proxycache \
3777         refint \
3778         retcode \
3779         rwm \
3780         seqmod \
3781         syncprov \
3782         translucent \
3783         unique \
3784         valsort"
3785
3786 # Check whether --enable-xxslapoverlays was given.
3787 if test "${enable_xxslapoverlays+set}" = set; then
3788   enableval=$enable_xxslapoverlays;
3789 fi
3790
3791
3792 # OpenLDAP --enable-overlays
3793
3794         # Check whether --enable-overlays was given.
3795 if test "${enable_overlays+set}" = set; then
3796   enableval=$enable_overlays;
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-overlays" >&5
3805 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3806    { (exit 1); exit 1; }; }
3807         fi
3808         ol_enable_overlays="$ol_arg"
3809
3810 fi
3811
3812 # end --enable-overlays
3813 # OpenLDAP --enable-accesslog
3814
3815         # Check whether --enable-accesslog was given.
3816 if test "${enable_accesslog+set}" = set; then
3817   enableval=$enable_accesslog;
3818         ol_arg=invalid
3819         for ol_val in no yes mod ; do
3820                 if test "$enableval" = "$ol_val" ; then
3821                         ol_arg="$ol_val"
3822                 fi
3823         done
3824         if test "$ol_arg" = "invalid" ; then
3825                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3826 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3827    { (exit 1); exit 1; }; }
3828         fi
3829         ol_enable_accesslog="$ol_arg"
3830
3831 else
3832         ol_enable_accesslog=${ol_enable_overlays:-no}
3833 fi
3834
3835 # end --enable-accesslog
3836
3837 # OpenLDAP --enable-auditlog
3838
3839         # Check whether --enable-auditlog was given.
3840 if test "${enable_auditlog+set}" = set; then
3841   enableval=$enable_auditlog;
3842         ol_arg=invalid
3843         for ol_val in no yes mod ; do
3844                 if test "$enableval" = "$ol_val" ; then
3845                         ol_arg="$ol_val"
3846                 fi
3847         done
3848         if test "$ol_arg" = "invalid" ; then
3849                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3850 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3851    { (exit 1); exit 1; }; }
3852         fi
3853         ol_enable_auditlog="$ol_arg"
3854
3855 else
3856         ol_enable_auditlog=${ol_enable_overlays:-no}
3857 fi
3858
3859 # end --enable-auditlog
3860
3861 # OpenLDAP --enable-collect
3862
3863         # Check whether --enable-collect was given.
3864 if test "${enable_collect+set}" = set; then
3865   enableval=$enable_collect;
3866         ol_arg=invalid
3867         for ol_val in no yes mod ; do
3868                 if test "$enableval" = "$ol_val" ; then
3869                         ol_arg="$ol_val"
3870                 fi
3871         done
3872         if test "$ol_arg" = "invalid" ; then
3873                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3874 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3875    { (exit 1); exit 1; }; }
3876         fi
3877         ol_enable_collect="$ol_arg"
3878
3879 else
3880         ol_enable_collect=${ol_enable_overlays:-no}
3881 fi
3882
3883 # end --enable-collect
3884
3885 # OpenLDAP --enable-constraint
3886
3887         # Check whether --enable-constraint was given.
3888 if test "${enable_constraint+set}" = set; then
3889   enableval=$enable_constraint;
3890         ol_arg=invalid
3891         for ol_val in no yes mod ; do
3892                 if test "$enableval" = "$ol_val" ; then
3893                         ol_arg="$ol_val"
3894                 fi
3895         done
3896         if test "$ol_arg" = "invalid" ; then
3897                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3898 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3899    { (exit 1); exit 1; }; }
3900         fi
3901         ol_enable_constraint="$ol_arg"
3902
3903 else
3904         ol_enable_constraint=${ol_enable_overlays:-no}
3905 fi
3906
3907 # end --enable-constraint
3908
3909 # OpenLDAP --enable-dds
3910
3911         # Check whether --enable-dds was given.
3912 if test "${enable_dds+set}" = set; then
3913   enableval=$enable_dds;
3914         ol_arg=invalid
3915         for ol_val in no yes mod ; do
3916                 if test "$enableval" = "$ol_val" ; then
3917                         ol_arg="$ol_val"
3918                 fi
3919         done
3920         if test "$ol_arg" = "invalid" ; then
3921                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3922 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3923    { (exit 1); exit 1; }; }
3924         fi
3925         ol_enable_dds="$ol_arg"
3926
3927 else
3928         ol_enable_dds=${ol_enable_overlays:-no}
3929 fi
3930
3931 # end --enable-dds
3932
3933 # OpenLDAP --enable-deref
3934
3935         # Check whether --enable-deref was given.
3936 if test "${enable_deref+set}" = set; then
3937   enableval=$enable_deref;
3938         ol_arg=invalid
3939         for ol_val in no yes mod ; do
3940                 if test "$enableval" = "$ol_val" ; then
3941                         ol_arg="$ol_val"
3942                 fi
3943         done
3944         if test "$ol_arg" = "invalid" ; then
3945                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3946 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3947    { (exit 1); exit 1; }; }
3948         fi
3949         ol_enable_deref="$ol_arg"
3950
3951 else
3952         ol_enable_deref=${ol_enable_overlays:-no}
3953 fi
3954
3955 # end --enable-deref
3956
3957 # OpenLDAP --enable-dyngroup
3958
3959         # Check whether --enable-dyngroup was given.
3960 if test "${enable_dyngroup+set}" = set; then
3961   enableval=$enable_dyngroup;
3962         ol_arg=invalid
3963         for ol_val in no yes mod ; do
3964                 if test "$enableval" = "$ol_val" ; then
3965                         ol_arg="$ol_val"
3966                 fi
3967         done
3968         if test "$ol_arg" = "invalid" ; then
3969                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3970 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3971    { (exit 1); exit 1; }; }
3972         fi
3973         ol_enable_dyngroup="$ol_arg"
3974
3975 else
3976         ol_enable_dyngroup=${ol_enable_overlays:-no}
3977 fi
3978
3979 # end --enable-dyngroup
3980
3981 # OpenLDAP --enable-dynlist
3982
3983         # Check whether --enable-dynlist was given.
3984 if test "${enable_dynlist+set}" = set; then
3985   enableval=$enable_dynlist;
3986         ol_arg=invalid
3987         for ol_val in no yes mod ; do
3988                 if test "$enableval" = "$ol_val" ; then
3989                         ol_arg="$ol_val"
3990                 fi
3991         done
3992         if test "$ol_arg" = "invalid" ; then
3993                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3994 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3995    { (exit 1); exit 1; }; }
3996         fi
3997         ol_enable_dynlist="$ol_arg"
3998
3999 else
4000         ol_enable_dynlist=${ol_enable_overlays:-no}
4001 fi
4002
4003 # end --enable-dynlist
4004
4005 # OpenLDAP --enable-memberof
4006
4007         # Check whether --enable-memberof was given.
4008 if test "${enable_memberof+set}" = set; then
4009   enableval=$enable_memberof;
4010         ol_arg=invalid
4011         for ol_val in no yes mod ; do
4012                 if test "$enableval" = "$ol_val" ; then
4013                         ol_arg="$ol_val"
4014                 fi
4015         done
4016         if test "$ol_arg" = "invalid" ; then
4017                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
4018 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
4019    { (exit 1); exit 1; }; }
4020         fi
4021         ol_enable_memberof="$ol_arg"
4022
4023 else
4024         ol_enable_memberof=${ol_enable_overlays:-no}
4025 fi
4026
4027 # end --enable-memberof
4028
4029 # OpenLDAP --enable-ppolicy
4030
4031         # Check whether --enable-ppolicy was given.
4032 if test "${enable_ppolicy+set}" = set; then
4033   enableval=$enable_ppolicy;
4034         ol_arg=invalid
4035         for ol_val in no yes mod ; do
4036                 if test "$enableval" = "$ol_val" ; then
4037                         ol_arg="$ol_val"
4038                 fi
4039         done
4040         if test "$ol_arg" = "invalid" ; then
4041                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4042 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4043    { (exit 1); exit 1; }; }
4044         fi
4045         ol_enable_ppolicy="$ol_arg"
4046
4047 else
4048         ol_enable_ppolicy=${ol_enable_overlays:-no}
4049 fi
4050
4051 # end --enable-ppolicy
4052
4053 # OpenLDAP --enable-proxycache
4054
4055         # Check whether --enable-proxycache was given.
4056 if test "${enable_proxycache+set}" = set; then
4057   enableval=$enable_proxycache;
4058         ol_arg=invalid
4059         for ol_val in no yes mod ; do
4060                 if test "$enableval" = "$ol_val" ; then
4061                         ol_arg="$ol_val"
4062                 fi
4063         done
4064         if test "$ol_arg" = "invalid" ; then
4065                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4066 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4067    { (exit 1); exit 1; }; }
4068         fi
4069         ol_enable_proxycache="$ol_arg"
4070
4071 else
4072         ol_enable_proxycache=${ol_enable_overlays:-no}
4073 fi
4074
4075 # end --enable-proxycache
4076
4077 # OpenLDAP --enable-refint
4078
4079         # Check whether --enable-refint was given.
4080 if test "${enable_refint+set}" = set; then
4081   enableval=$enable_refint;
4082         ol_arg=invalid
4083         for ol_val in no yes mod ; do
4084                 if test "$enableval" = "$ol_val" ; then
4085                         ol_arg="$ol_val"
4086                 fi
4087         done
4088         if test "$ol_arg" = "invalid" ; then
4089                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4090 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4091    { (exit 1); exit 1; }; }
4092         fi
4093         ol_enable_refint="$ol_arg"
4094
4095 else
4096         ol_enable_refint=${ol_enable_overlays:-no}
4097 fi
4098
4099 # end --enable-refint
4100
4101 # OpenLDAP --enable-retcode
4102
4103         # Check whether --enable-retcode was given.
4104 if test "${enable_retcode+set}" = set; then
4105   enableval=$enable_retcode;
4106         ol_arg=invalid
4107         for ol_val in no yes mod ; do
4108                 if test "$enableval" = "$ol_val" ; then
4109                         ol_arg="$ol_val"
4110                 fi
4111         done
4112         if test "$ol_arg" = "invalid" ; then
4113                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4114 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4115    { (exit 1); exit 1; }; }
4116         fi
4117         ol_enable_retcode="$ol_arg"
4118
4119 else
4120         ol_enable_retcode=${ol_enable_overlays:-no}
4121 fi
4122
4123 # end --enable-retcode
4124
4125 # OpenLDAP --enable-rwm
4126
4127         # Check whether --enable-rwm was given.
4128 if test "${enable_rwm+set}" = set; then
4129   enableval=$enable_rwm;
4130         ol_arg=invalid
4131         for ol_val in no yes mod ; do
4132                 if test "$enableval" = "$ol_val" ; then
4133                         ol_arg="$ol_val"
4134                 fi
4135         done
4136         if test "$ol_arg" = "invalid" ; then
4137                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4138 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4139    { (exit 1); exit 1; }; }
4140         fi
4141         ol_enable_rwm="$ol_arg"
4142
4143 else
4144         ol_enable_rwm=${ol_enable_overlays:-no}
4145 fi
4146
4147 # end --enable-rwm
4148
4149 # OpenLDAP --enable-seqmod
4150
4151         # Check whether --enable-seqmod was given.
4152 if test "${enable_seqmod+set}" = set; then
4153   enableval=$enable_seqmod;
4154         ol_arg=invalid
4155         for ol_val in no yes mod ; do
4156                 if test "$enableval" = "$ol_val" ; then
4157                         ol_arg="$ol_val"
4158                 fi
4159         done
4160         if test "$ol_arg" = "invalid" ; then
4161                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4162 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4163    { (exit 1); exit 1; }; }
4164         fi
4165         ol_enable_seqmod="$ol_arg"
4166
4167 else
4168         ol_enable_seqmod=${ol_enable_overlays:-yes}
4169 fi
4170
4171 # end --enable-seqmod
4172
4173 # OpenLDAP --enable-syncprov
4174
4175         # Check whether --enable-syncprov was given.
4176 if test "${enable_syncprov+set}" = set; then
4177   enableval=$enable_syncprov;
4178         ol_arg=invalid
4179         for ol_val in no yes mod ; do
4180                 if test "$enableval" = "$ol_val" ; then
4181                         ol_arg="$ol_val"
4182                 fi
4183         done
4184         if test "$ol_arg" = "invalid" ; then
4185                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4186 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4187    { (exit 1); exit 1; }; }
4188         fi
4189         ol_enable_syncprov="$ol_arg"
4190
4191 else
4192         ol_enable_syncprov=${ol_enable_overlays:-yes}
4193 fi
4194
4195 # end --enable-syncprov
4196
4197 # OpenLDAP --enable-translucent
4198
4199         # Check whether --enable-translucent was given.
4200 if test "${enable_translucent+set}" = set; then
4201   enableval=$enable_translucent;
4202         ol_arg=invalid
4203         for ol_val in no yes mod ; do
4204                 if test "$enableval" = "$ol_val" ; then
4205                         ol_arg="$ol_val"
4206                 fi
4207         done
4208         if test "$ol_arg" = "invalid" ; then
4209                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4210 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4211    { (exit 1); exit 1; }; }
4212         fi
4213         ol_enable_translucent="$ol_arg"
4214
4215 else
4216         ol_enable_translucent=${ol_enable_overlays:-no}
4217 fi
4218
4219 # end --enable-translucent
4220
4221 # OpenLDAP --enable-unique
4222
4223         # Check whether --enable-unique was given.
4224 if test "${enable_unique+set}" = set; then
4225   enableval=$enable_unique;
4226         ol_arg=invalid
4227         for ol_val in no yes mod ; do
4228                 if test "$enableval" = "$ol_val" ; then
4229                         ol_arg="$ol_val"
4230                 fi
4231         done
4232         if test "$ol_arg" = "invalid" ; then
4233                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4234 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4235    { (exit 1); exit 1; }; }
4236         fi
4237         ol_enable_unique="$ol_arg"
4238
4239 else
4240         ol_enable_unique=${ol_enable_overlays:-no}
4241 fi
4242
4243 # end --enable-unique
4244
4245 # OpenLDAP --enable-valsort
4246
4247         # Check whether --enable-valsort was given.
4248 if test "${enable_valsort+set}" = set; then
4249   enableval=$enable_valsort;
4250         ol_arg=invalid
4251         for ol_val in no yes mod ; do
4252                 if test "$enableval" = "$ol_val" ; then
4253                         ol_arg="$ol_val"
4254                 fi
4255         done
4256         if test "$ol_arg" = "invalid" ; then
4257                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4258 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4259    { (exit 1); exit 1; }; }
4260         fi
4261         ol_enable_valsort="$ol_arg"
4262
4263 else
4264         ol_enable_valsort=${ol_enable_overlays:-no}
4265 fi
4266
4267 # end --enable-valsort
4268
4269
4270 # Check whether --enable-xxliboptions was given.
4271 if test "${enable_xxliboptions+set}" = set; then
4272   enableval=$enable_xxliboptions;
4273 fi
4274
4275 # Check whether --enable-static was given.
4276 if test "${enable_static+set}" = set; then
4277   enableval=$enable_static; p=${PACKAGE-default}
4278     case $enableval in
4279     yes) enable_static=yes ;;
4280     no) enable_static=no ;;
4281     *)
4282      enable_static=no
4283       # Look at the argument we got.  We use all the common list separators.
4284       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4285       for pkg in $enableval; do
4286         IFS="$lt_save_ifs"
4287         if test "X$pkg" = "X$p"; then
4288           enable_static=yes
4289         fi
4290       done
4291       IFS="$lt_save_ifs"
4292       ;;
4293     esac
4294 else
4295   enable_static=yes
4296 fi
4297
4298
4299 # Check whether --enable-shared was given.
4300 if test "${enable_shared+set}" = set; then
4301   enableval=$enable_shared; p=${PACKAGE-default}
4302     case $enableval in
4303     yes) enable_shared=yes ;;
4304     no) enable_shared=no ;;
4305     *)
4306       enable_shared=no
4307       # Look at the argument we got.  We use all the common list separators.
4308       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4309       for pkg in $enableval; do
4310         IFS="$lt_save_ifs"
4311         if test "X$pkg" = "X$p"; then
4312           enable_shared=yes
4313         fi
4314       done
4315       IFS="$lt_save_ifs"
4316       ;;
4317     esac
4318 else
4319   enable_shared=yes
4320 fi
4321
4322
4323
4324
4325 # validate options
4326 if test $ol_enable_slapd = no ; then
4327                 if test $ol_enable_slapi = yes ; then
4328                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4329 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4330         fi
4331         case "$ol_enable_backends" in yes | mod)
4332                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4333 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4334         esac
4335         for i in $Backends; do
4336                 eval "ol_tmp=\$ol_enable_$i"
4337                 if test $ol_tmp != no ; then
4338                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4339 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4340                         eval "ol_enable_$i=no"
4341                 fi
4342         done
4343         if test $ol_enable_modules = yes ; then
4344                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4345 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4346         fi
4347         if test $ol_enable_wrappers = yes ; then
4348                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4349 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4350         fi
4351         if test $ol_enable_rlookups = yes ; then
4352                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4353 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4354         fi
4355         if test $ol_enable_dynacl = yes ; then
4356                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4357 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4358         fi
4359         if test $ol_enable_aci != no ; then
4360                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4361 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4362         fi
4363         if test $ol_enable_rewrite = yes ; then
4364                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4365 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4366         fi
4367                 case "$ol_enable_overlays" in yes | mod)
4368                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4369 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4370         esac
4371         for i in $Overlays; do
4372                 eval "ol_tmp=\$ol_enable_$i"
4373                 if test $ol_tmp != no ; then
4374                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4375 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4376                         eval "ol_enable_$i=no"
4377                 fi
4378         done
4379
4380         # force settings to no
4381         ol_enable_slapi=no
4382
4383         ol_enable_backends=
4384         ol_enable_overlays=
4385         ol_enable_modules=no
4386         ol_enable_rlookups=no
4387         ol_enable_dynacl=no
4388         ol_enable_aci=no
4389         ol_enable_wrappers=no
4390
4391         ol_enable_rewrite=no
4392
4393 elif test $ol_enable_modules != yes &&
4394         test $ol_enable_bdb = no &&
4395         test $ol_enable_dnssrv = no &&
4396         test $ol_enable_hdb = no &&
4397         test $ol_enable_ldap = no &&
4398         test $ol_enable_meta = no &&
4399         test $ol_enable_monitor = no &&
4400         test $ol_enable_ndb = no &&
4401         test $ol_enable_null = no &&
4402         test $ol_enable_passwd = no &&
4403         test $ol_enable_perl = no &&
4404         test $ol_enable_relay = no &&
4405         test $ol_enable_shell = no &&
4406         test $ol_enable_sock = no &&
4407         test $ol_enable_sql = no ; then
4408
4409         if test $ol_enable_slapd = yes ; then
4410                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4411 echo "$as_me: error: slapd requires a backend" >&2;}
4412    { (exit 1); exit 1; }; }
4413         else
4414                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4415 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4416                 ol_enable_slapd=no
4417         fi
4418 fi
4419
4420 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4421         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4422 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4423    { (exit 1); exit 1; }; }
4424 fi
4425
4426 if test $ol_enable_lmpasswd = yes ; then
4427         if test $ol_with_tls = no ; then
4428                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4429 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4430    { (exit 1); exit 1; }; }
4431         fi
4432 fi
4433
4434 if test $ol_enable_spasswd = yes ; then
4435         if test $ol_with_cyrus_sasl = no ; then
4436                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4437 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4438    { (exit 1); exit 1; }; }
4439         fi
4440         ol_with_cyrus_sasl=yes
4441 fi
4442
4443 { echo "$as_me:$LINENO: result: done" >&5
4444 echo "${ECHO_T}done" >&6; }
4445
4446 LDAP_LIBS=
4447 BDB_LIBS=
4448 SLAPD_NDB_LIBS=
4449 SLAPD_NDB_INCS=
4450 LTHREAD_LIBS=
4451 LUTIL_LIBS=
4452
4453 SLAPD_LIBS=
4454
4455 BUILD_SLAPD=no
4456
4457 BUILD_THREAD=no
4458
4459 BUILD_SLAPI=no
4460 SLAPD_SLAPI_DEPEND=
4461
4462 BUILD_BDB=no
4463 BUILD_DNSSRV=no
4464 BUILD_HDB=no
4465 BUILD_LDAP=no
4466 BUILD_META=no
4467 BUILD_MONITOR=no
4468 BUILD_NDB=no
4469 BUILD_NULL=no
4470 BUILD_PASSWD=no
4471 BUILD_PERL=no
4472 BUILD_RELAY=no
4473 BUILD_SHELL=no
4474 BUILD_SOCK=no
4475 BUILD_SQL=no
4476
4477 BUILD_ACCESSLOG=no
4478 BUILD_AUDITLOG=no
4479 BUILD_CONSTRAINT=no
4480 BUILD_DDS=no
4481 BUILD_DENYOP=no
4482 BUILD_DYNGROUP=no
4483 BUILD_DYNLIST=no
4484 BUILD_LASTMOD=no
4485 BUILD_MEMBEROF=no
4486 BUILD_PPOLICY=no
4487 BUILD_PROXYCACHE=no
4488 BUILD_REFINT=no
4489 BUILD_RETCODE=no
4490 BUILD_RWM=no
4491 BUILD_SEQMOD=no
4492 BUILD_SYNCPROV=no
4493 BUILD_TRANSLUCENT=no
4494 BUILD_UNIQUE=no
4495 BUILD_VALSORT=no
4496
4497 SLAPD_STATIC_OVERLAYS=
4498 SLAPD_DYNAMIC_OVERLAYS=
4499
4500 SLAPD_MODULES_LDFLAGS=
4501 SLAPD_MODULES_CPPFLAGS=
4502
4503 SLAPD_STATIC_BACKENDS=back-ldif
4504 SLAPD_DYNAMIC_BACKENDS=
4505
4506 SLAPD_PERL_LDFLAGS=
4507 MOD_PERL_LDFLAGS=
4508 PERL_CPPFLAGS=
4509
4510 SLAPD_SQL_LDFLAGS=
4511 SLAPD_SQL_LIBS=
4512 SLAPD_SQL_INCLUDES=
4513
4514 KRB4_LIBS=
4515 KRB5_LIBS=
4516 SASL_LIBS=
4517 GSSAPI_LIBS=
4518 TLS_LIBS=
4519 MODULES_LIBS=
4520 SLAPI_LIBS=
4521 LIBSLAPI=
4522 LIBSLAPITOOLS=
4523 AUTH_LIBS=
4524 ICU_LIBS=
4525
4526 SLAPD_SLP_LIBS=
4527 SLAPD_GMP_LIBS=
4528
4529
4530
4531 cat >>confdefs.h <<\_ACEOF
4532 #define HAVE_MKVERSION 1
4533 _ACEOF
4534
4535
4536
4537
4538 ol_aix_threads=no
4539 case "$target" in
4540 *-*-aix*)       if test -z "$CC" ; then
4541                 case "$ol_with_threads" in
4542                 auto | yes |  posix) ol_aix_threads=yes ;;
4543                 esac
4544         fi
4545 ;;
4546 esac
4547
4548 if test $ol_aix_threads = yes ; then
4549         if test -z "${CC}" ; then
4550                 for ac_prog in cc_r xlc_r cc
4551 do
4552   # Extract the first word of "$ac_prog", so it can be a program name with args.
4553 set dummy $ac_prog; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_prog_CC+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   if test -n "$CC"; then
4560   ac_cv_prog_CC="$CC" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567   for ac_exec_ext in '' $ac_executable_extensions; do
4568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569     ac_cv_prog_CC="$ac_prog"
4570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571     break 2
4572   fi
4573 done
4574 done
4575 IFS=$as_save_IFS
4576
4577 fi
4578 fi
4579 CC=$ac_cv_prog_CC
4580 if test -n "$CC"; then
4581   { echo "$as_me:$LINENO: result: $CC" >&5
4582 echo "${ECHO_T}$CC" >&6; }
4583 else
4584   { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4586 fi
4587
4588
4589   test -n "$CC" && break
4590 done
4591
4592
4593                 if test "$CC" = cc ; then
4594                                                 if test $ol_with_threads != auto ; then
4595                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4596 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4597    { (exit 1); exit 1; }; }
4598                         else
4599                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4600 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4601                         fi
4602                         ol_with_threads=no
4603                 fi
4604         fi
4605
4606         case ${CC} in cc_r | xlc_r)
4607                 ol_with_threads=posix
4608                 ol_cv_pthread_create=yes
4609                 ;;
4610         esac
4611 fi
4612
4613 if test -z "${CC}"; then
4614         for ac_prog in cc gcc
4615 do
4616   # Extract the first word of "$ac_prog", so it can be a program name with args.
4617 set dummy $ac_prog; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_CC+set}" = set; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   if test -n "$CC"; then
4624   ac_cv_prog_CC="$CC" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633     ac_cv_prog_CC="$ac_prog"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639 IFS=$as_save_IFS
4640
4641 fi
4642 fi
4643 CC=$ac_cv_prog_CC
4644 if test -n "$CC"; then
4645   { echo "$as_me:$LINENO: result: $CC" >&5
4646 echo "${ECHO_T}$CC" >&6; }
4647 else
4648   { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4650 fi
4651
4652
4653   test -n "$CC" && break
4654 done
4655 test -n "$CC" || CC="missing"
4656
4657
4658         if test "${CC}" = "missing" ; then
4659                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4660 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4661    { (exit 1); exit 1; }; }
4662         fi
4663 fi
4664
4665 if test -z "${AR}"; then
4666         for ac_prog in ar gar
4667 do
4668   # Extract the first word of "$ac_prog", so it can be a program name with args.
4669 set dummy $ac_prog; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_AR+set}" = set; then
4673   echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675   if test -n "$AR"; then
4676   ac_cv_prog_AR="$AR" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683   for ac_exec_ext in '' $ac_executable_extensions; do
4684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685     ac_cv_prog_AR="$ac_prog"
4686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687     break 2
4688   fi
4689 done
4690 done
4691 IFS=$as_save_IFS
4692
4693 fi
4694 fi
4695 AR=$ac_cv_prog_AR
4696 if test -n "$AR"; then
4697   { echo "$as_me:$LINENO: result: $AR" >&5
4698 echo "${ECHO_T}$AR" >&6; }
4699 else
4700   { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4702 fi
4703
4704
4705   test -n "$AR" && break
4706 done
4707 test -n "$AR" || AR="missing"
4708
4709
4710         if test "${AR}" = "missing" ; then
4711                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4712 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4713    { (exit 1); exit 1; }; }
4714         fi
4715 fi
4716
4717
4718
4719
4720
4721 # Check whether --enable-fast-install was given.
4722 if test "${enable_fast_install+set}" = set; then
4723   enableval=$enable_fast_install; p=${PACKAGE-default}
4724     case $enableval in
4725     yes) enable_fast_install=yes ;;
4726     no) enable_fast_install=no ;;
4727     *)
4728       enable_fast_install=no
4729       # Look at the argument we got.  We use all the common list separators.
4730       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4731       for pkg in $enableval; do
4732         IFS="$lt_save_ifs"
4733         if test "X$pkg" = "X$p"; then
4734           enable_fast_install=yes
4735         fi
4736       done
4737       IFS="$lt_save_ifs"
4738       ;;
4739     esac
4740 else
4741   enable_fast_install=yes
4742 fi
4743
4744
4745 DEPDIR="${am__leading_dot}deps"
4746
4747 ac_config_commands="$ac_config_commands depfiles"
4748
4749
4750 am_make=${MAKE-make}
4751 cat > confinc << 'END'
4752 am__doit:
4753         @echo done
4754 .PHONY: am__doit
4755 END
4756 # If we don't find an include directive, just comment out the code.
4757 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4758 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4759 am__include="#"
4760 am__quote=
4761 _am_result=none
4762 # First try GNU make style include.
4763 echo "include confinc" > confmf
4764 # We grep out `Entering directory' and `Leaving directory'
4765 # messages which can occur if `w' ends up in MAKEFLAGS.
4766 # In particular we don't look at `^make:' because GNU make might
4767 # be invoked under some other name (usually "gmake"), in which
4768 # case it prints its new name instead of `make'.
4769 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4770    am__include=include
4771    am__quote=
4772    _am_result=GNU
4773 fi
4774 # Now try BSD make style include.
4775 if test "$am__include" = "#"; then
4776    echo '.include "confinc"' > confmf
4777    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4778       am__include=.include
4779       am__quote="\""
4780       _am_result=BSD
4781    fi
4782 fi
4783
4784
4785 { echo "$as_me:$LINENO: result: $_am_result" >&5
4786 echo "${ECHO_T}$_am_result" >&6; }
4787 rm -f confinc confmf
4788
4789 # Check whether --enable-dependency-tracking was given.
4790 if test "${enable_dependency_tracking+set}" = set; then
4791   enableval=$enable_dependency_tracking;
4792 fi
4793
4794 if test "x$enable_dependency_tracking" != xno; then
4795   am_depcomp="$ac_aux_dir/depcomp"
4796   AMDEPBACKSLASH='\'
4797 fi
4798
4799
4800 if test "x$enable_dependency_tracking" != xno; then
4801   AMDEP_TRUE=
4802   AMDEP_FALSE='#'
4803 else
4804   AMDEP_TRUE='#'
4805   AMDEP_FALSE=
4806 fi
4807
4808
4809
4810 ac_ext=c
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 if test -n "$ac_tool_prefix"; then
4816   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_prog_CC+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   if test -n "$CC"; then
4824   ac_cv_prog_CC="$CC" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831   for ac_exec_ext in '' $ac_executable_extensions; do
4832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 CC=$ac_cv_prog_CC
4844 if test -n "$CC"; then
4845   { echo "$as_me:$LINENO: result: $CC" >&5
4846 echo "${ECHO_T}$CC" >&6; }
4847 else
4848   { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4850 fi
4851
4852
4853 fi
4854 if test -z "$ac_cv_prog_CC"; then
4855   ac_ct_CC=$CC
4856   # Extract the first word of "gcc", so it can be a program name with args.
4857 set dummy gcc; ac_word=$2
4858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4861   echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863   if test -n "$ac_ct_CC"; then
4864   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     ac_cv_prog_ac_ct_CC="gcc"
4874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881 fi
4882 fi
4883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4884 if test -n "$ac_ct_CC"; then
4885   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4886 echo "${ECHO_T}$ac_ct_CC" >&6; }
4887 else
4888   { echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6; }
4890 fi
4891
4892   if test "x$ac_ct_CC" = x; then
4893     CC=""
4894   else
4895     case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4898 whose name does not start with the host triplet.  If you think this
4899 configuration is useful to you, please write to autoconf@gnu.org." >&5
4900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4901 whose name does not start with the host triplet.  If you think this
4902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905     CC=$ac_ct_CC
4906   fi
4907 else
4908   CC="$ac_cv_prog_CC"
4909 fi
4910
4911 if test -z "$CC"; then
4912           if test -n "$ac_tool_prefix"; then
4913     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4914 set dummy ${ac_tool_prefix}cc; ac_word=$2
4915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4917 if test "${ac_cv_prog_CC+set}" = set; then
4918   echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920   if test -n "$CC"; then
4921   ac_cv_prog_CC="$CC" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926   IFS=$as_save_IFS
4927   test -z "$as_dir" && as_dir=.
4928   for ac_exec_ext in '' $ac_executable_extensions; do
4929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930     ac_cv_prog_CC="${ac_tool_prefix}cc"
4931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932     break 2
4933   fi
4934 done
4935 done
4936 IFS=$as_save_IFS
4937
4938 fi
4939 fi
4940 CC=$ac_cv_prog_CC
4941 if test -n "$CC"; then
4942   { echo "$as_me:$LINENO: result: $CC" >&5
4943 echo "${ECHO_T}$CC" >&6; }
4944 else
4945   { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4947 fi
4948
4949
4950   fi
4951 fi
4952 if test -z "$CC"; then
4953   # Extract the first word of "cc", so it can be a program name with args.
4954 set dummy cc; ac_word=$2
4955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4957 if test "${ac_cv_prog_CC+set}" = set; then
4958   echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960   if test -n "$CC"; then
4961   ac_cv_prog_CC="$CC" # Let the user override the test.
4962 else
4963   ac_prog_rejected=no
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967   IFS=$as_save_IFS
4968   test -z "$as_dir" && as_dir=.
4969   for ac_exec_ext in '' $ac_executable_extensions; do
4970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4972        ac_prog_rejected=yes
4973        continue
4974      fi
4975     ac_cv_prog_CC="cc"
4976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4977     break 2
4978   fi
4979 done
4980 done
4981 IFS=$as_save_IFS
4982
4983 if test $ac_prog_rejected = yes; then
4984   # We found a bogon in the path, so make sure we never use it.
4985   set dummy $ac_cv_prog_CC
4986   shift
4987   if test $# != 0; then
4988     # We chose a different compiler from the bogus one.
4989     # However, it has the same basename, so the bogon will be chosen
4990     # first if we set CC to just the basename; use the full file name.
4991     shift
4992     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4993   fi
4994 fi
4995 fi
4996 fi
4997 CC=$ac_cv_prog_CC
4998 if test -n "$CC"; then
4999   { echo "$as_me:$LINENO: result: $CC" >&5
5000 echo "${ECHO_T}$CC" >&6; }
5001 else
5002   { echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6; }
5004 fi
5005
5006
5007 fi
5008 if test -z "$CC"; then
5009   if test -n "$ac_tool_prefix"; then
5010   for ac_prog in cl.exe
5011   do
5012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_CC+set}" = set; then
5017   echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019   if test -n "$CC"; then
5020   ac_cv_prog_CC="$CC" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025   IFS=$as_save_IFS
5026   test -z "$as_dir" && as_dir=.
5027   for ac_exec_ext in '' $ac_executable_extensions; do
5028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031     break 2
5032   fi
5033 done
5034 done
5035 IFS=$as_save_IFS
5036
5037 fi
5038 fi
5039 CC=$ac_cv_prog_CC
5040 if test -n "$CC"; then
5041   { echo "$as_me:$LINENO: result: $CC" >&5
5042 echo "${ECHO_T}$CC" >&6; }
5043 else
5044   { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5046 fi
5047
5048
5049     test -n "$CC" && break
5050   done
5051 fi
5052 if test -z "$CC"; then
5053   ac_ct_CC=$CC
5054   for ac_prog in cl.exe
5055 do
5056   # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5061   echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063   if test -n "$ac_ct_CC"; then
5064   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069   IFS=$as_save_IFS
5070   test -z "$as_dir" && as_dir=.
5071   for ac_exec_ext in '' $ac_executable_extensions; do
5072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073     ac_cv_prog_ac_ct_CC="$ac_prog"
5074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075     break 2
5076   fi
5077 done
5078 done
5079 IFS=$as_save_IFS
5080
5081 fi
5082 fi
5083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5084 if test -n "$ac_ct_CC"; then
5085   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5086 echo "${ECHO_T}$ac_ct_CC" >&6; }
5087 else
5088   { echo "$as_me:$LINENO: result: no" >&5
5089 echo "${ECHO_T}no" >&6; }
5090 fi
5091
5092
5093   test -n "$ac_ct_CC" && break
5094 done
5095
5096   if test "x$ac_ct_CC" = x; then
5097     CC=""
5098   else
5099     case $cross_compiling:$ac_tool_warned in
5100 yes:)
5101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5102 whose name does not start with the host triplet.  If you think this
5103 configuration is useful to you, please write to autoconf@gnu.org." >&5
5104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5105 whose name does not start with the host triplet.  If you think this
5106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5107 ac_tool_warned=yes ;;
5108 esac
5109     CC=$ac_ct_CC
5110   fi
5111 fi
5112
5113 fi
5114
5115
5116 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5117 See \`config.log' for more details." >&5
5118 echo "$as_me: error: no acceptable C compiler found in \$PATH
5119 See \`config.log' for more details." >&2;}
5120    { (exit 1); exit 1; }; }
5121
5122 # Provide some information about the compiler.
5123 echo "$as_me:$LINENO: checking for C compiler version" >&5
5124 ac_compiler=`set X $ac_compile; echo $2`
5125 { (ac_try="$ac_compiler --version >&5"
5126 case "(($ac_try" in
5127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128   *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131   (eval "$ac_compiler --version >&5") 2>&5
5132   ac_status=$?
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); }
5135 { (ac_try="$ac_compiler -v >&5"
5136 case "(($ac_try" in
5137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138   *) ac_try_echo=$ac_try;;
5139 esac
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141   (eval "$ac_compiler -v >&5") 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); }
5145 { (ac_try="$ac_compiler -V >&5"
5146 case "(($ac_try" in
5147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148   *) ac_try_echo=$ac_try;;
5149 esac
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151   (eval "$ac_compiler -V >&5") 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }
5155
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h.  */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h.  */
5162
5163 int
5164 main ()
5165 {
5166
5167   ;
5168   return 0;
5169 }
5170 _ACEOF
5171 ac_clean_files_save=$ac_clean_files
5172 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5173 # Try to create an executable without -o first, disregard a.out.
5174 # It will help us diagnose broken compilers, and finding out an intuition
5175 # of exeext.
5176 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5177 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5178 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5179 #
5180 # List of possible output files, starting from the most likely.
5181 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5182 # only as a last resort.  b.out is created by i960 compilers.
5183 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5184 #
5185 # The IRIX 6 linker writes into existing files which may not be
5186 # executable, retaining their permissions.  Remove them first so a
5187 # subsequent execution test works.
5188 ac_rmfiles=
5189 for ac_file in $ac_files
5190 do
5191   case $ac_file in
5192     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5193     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5194   esac
5195 done
5196 rm -f $ac_rmfiles
5197
5198 if { (ac_try="$ac_link_default"
5199 case "(($ac_try" in
5200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201   *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204   (eval "$ac_link_default") 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }; then
5208   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5209 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5210 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5211 # so that the user can short-circuit this test for compilers unknown to
5212 # Autoconf.
5213 for ac_file in $ac_files ''
5214 do
5215   test -f "$ac_file" || continue
5216   case $ac_file in
5217     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5218         ;;
5219     [ab].out )
5220         # We found the default executable, but exeext='' is most
5221         # certainly right.
5222         break;;
5223     *.* )
5224         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5225         then :; else
5226            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5227         fi
5228         # We set ac_cv_exeext here because the later test for it is not
5229         # safe: cross compilers may not add the suffix if given an `-o'
5230         # argument, so we may need to know it at that point already.
5231         # Even if this section looks crufty: it has the advantage of
5232         # actually working.
5233         break;;
5234     * )
5235         break;;
5236   esac
5237 done
5238 test "$ac_cv_exeext" = no && ac_cv_exeext=
5239
5240 else
5241   ac_file=''
5242 fi
5243
5244 { echo "$as_me:$LINENO: result: $ac_file" >&5
5245 echo "${ECHO_T}$ac_file" >&6; }
5246 if test -z "$ac_file"; then
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5251 See \`config.log' for more details." >&5
5252 echo "$as_me: error: C compiler cannot create executables
5253 See \`config.log' for more details." >&2;}
5254    { (exit 77); exit 77; }; }
5255 fi
5256
5257 ac_exeext=$ac_cv_exeext
5258
5259 # Check that the compiler produces executables we can run.  If not, either
5260 # the compiler is broken, or we cross compile.
5261 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5262 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5263 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5264 # If not cross compiling, check that we can run a simple program.
5265 if test "$cross_compiling" != yes; then
5266   if { ac_try='./$ac_file'
5267   { (case "(($ac_try" in
5268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269   *) ac_try_echo=$ac_try;;
5270 esac
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272   (eval "$ac_try") 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); }; }; then
5276     cross_compiling=no
5277   else
5278     if test "$cross_compiling" = maybe; then
5279         cross_compiling=yes
5280     else
5281         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5282 If you meant to cross compile, use \`--host'.
5283 See \`config.log' for more details." >&5
5284 echo "$as_me: error: cannot run C compiled programs.
5285 If you meant to cross compile, use \`--host'.
5286 See \`config.log' for more details." >&2;}
5287    { (exit 1); exit 1; }; }
5288     fi
5289   fi
5290 fi
5291 { echo "$as_me:$LINENO: result: yes" >&5
5292 echo "${ECHO_T}yes" >&6; }
5293
5294 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5295 ac_clean_files=$ac_clean_files_save
5296 # Check that the compiler produces executables we can run.  If not, either
5297 # the compiler is broken, or we cross compile.
5298 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5299 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5300 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5301 echo "${ECHO_T}$cross_compiling" >&6; }
5302
5303 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5304 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5305 if { (ac_try="$ac_link"
5306 case "(($ac_try" in
5307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308   *) ac_try_echo=$ac_try;;
5309 esac
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311   (eval "$ac_link") 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; then
5315   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5316 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5317 # work properly (i.e., refer to `conftest.exe'), while it won't with
5318 # `rm'.
5319 for ac_file in conftest.exe conftest conftest.*; do
5320   test -f "$ac_file" || continue
5321   case $ac_file in
5322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5323     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5324           break;;
5325     * ) break;;
5326   esac
5327 done
5328 else
5329   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5330 See \`config.log' for more details." >&5
5331 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5332 See \`config.log' for more details." >&2;}
5333    { (exit 1); exit 1; }; }
5334 fi
5335
5336 rm -f conftest$ac_cv_exeext
5337 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5338 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5339
5340 rm -f conftest.$ac_ext
5341 EXEEXT=$ac_cv_exeext
5342 ac_exeext=$EXEEXT
5343 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5344 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5345 if test "${ac_cv_objext+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354
5355 int
5356 main ()
5357 {
5358
5359   ;
5360   return 0;
5361 }
5362 _ACEOF
5363 rm -f conftest.o conftest.obj
5364 if { (ac_try="$ac_compile"
5365 case "(($ac_try" in
5366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367   *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370   (eval "$ac_compile") 2>&5
5371   ac_status=$?
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); }; then
5374   for ac_file in conftest.o conftest.obj conftest.*; do
5375   test -f "$ac_file" || continue;
5376   case $ac_file in
5377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5378     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5379        break;;
5380   esac
5381 done
5382 else
5383   echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5385
5386 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5387 See \`config.log' for more details." >&5
5388 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5389 See \`config.log' for more details." >&2;}
5390    { (exit 1); exit 1; }; }
5391 fi
5392
5393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5394 fi
5395 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5396 echo "${ECHO_T}$ac_cv_objext" >&6; }
5397 OBJEXT=$ac_cv_objext
5398 ac_objext=$OBJEXT
5399 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5400 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5401 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5402   echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404   cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h.  */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h.  */
5410
5411 int
5412 main ()
5413 {
5414 #ifndef __GNUC__
5415        choke me
5416 #endif
5417
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext
5423 if { (ac_try="$ac_compile"
5424 case "(($ac_try" in
5425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426   *) ac_try_echo=$ac_try;;
5427 esac
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429   (eval "$ac_compile") 2>conftest.er1
5430   ac_status=$?
5431   grep -v '^ *+' conftest.er1 >conftest.err
5432   rm -f conftest.er1
5433   cat conftest.err >&5
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); } && {
5436          test -z "$ac_c_werror_flag" ||
5437          test ! -s conftest.err
5438        } && test -s conftest.$ac_objext; then
5439   ac_compiler_gnu=yes
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444         ac_compiler_gnu=no
5445 fi
5446
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5449
5450 fi
5451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5453 GCC=`test $ac_compiler_gnu = yes && echo yes`
5454 ac_test_CFLAGS=${CFLAGS+set}
5455 ac_save_CFLAGS=$CFLAGS
5456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5458 if test "${ac_cv_prog_cc_g+set}" = set; then
5459   echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461   ac_save_c_werror_flag=$ac_c_werror_flag
5462    ac_c_werror_flag=yes
5463    ac_cv_prog_cc_g=no
5464    CFLAGS="-g"
5465    cat >conftest.$ac_ext <<_ACEOF
5466 /* confdefs.h.  */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h.  */
5471
5472 int
5473 main ()
5474 {
5475
5476   ;
5477   return 0;
5478 }
5479 _ACEOF
5480 rm -f conftest.$ac_objext
5481 if { (ac_try="$ac_compile"
5482 case "(($ac_try" in
5483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484   *) ac_try_echo=$ac_try;;
5485 esac
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487   (eval "$ac_compile") 2>conftest.er1
5488   ac_status=$?
5489   grep -v '^ *+' conftest.er1 >conftest.err
5490   rm -f conftest.er1
5491   cat conftest.err >&5
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); } && {
5494          test -z "$ac_c_werror_flag" ||
5495          test ! -s conftest.err
5496        } && test -s conftest.$ac_objext; then
5497   ac_cv_prog_cc_g=yes
5498 else
5499   echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5501
5502         CFLAGS=""
5503       cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h.  */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h.  */
5509
5510 int
5511 main ()
5512 {
5513
5514   ;
5515   return 0;
5516 }
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5520 case "(($ac_try" in
5521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522   *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525   (eval "$ac_compile") 2>conftest.er1
5526   ac_status=$?
5527   grep -v '^ *+' conftest.er1 >conftest.err
5528   rm -f conftest.er1
5529   cat conftest.err >&5
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } && {
5532          test -z "$ac_c_werror_flag" ||
5533          test ! -s conftest.err
5534        } && test -s conftest.$ac_objext; then
5535   :
5536 else
5537   echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540         ac_c_werror_flag=$ac_save_c_werror_flag
5541          CFLAGS="-g"
5542          cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h.  */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h.  */
5548
5549 int
5550 main ()
5551 {
5552
5553   ;
5554   return 0;
5555 }
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5559 case "(($ac_try" in
5560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561   *) ac_try_echo=$ac_try;;
5562 esac
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564   (eval "$ac_compile") 2>conftest.er1
5565   ac_status=$?
5566   grep -v '^ *+' conftest.er1 >conftest.err
5567   rm -f conftest.er1
5568   cat conftest.err >&5
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } && {
5571          test -z "$ac_c_werror_flag" ||
5572          test ! -s conftest.err
5573        } && test -s conftest.$ac_objext; then
5574   ac_cv_prog_cc_g=yes
5575 else
5576   echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579
5580 fi
5581
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 fi
5584
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 fi
5587
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589    ac_c_werror_flag=$ac_save_c_werror_flag
5590 fi
5591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5592 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5593 if test "$ac_test_CFLAGS" = set; then
5594   CFLAGS=$ac_save_CFLAGS
5595 elif test $ac_cv_prog_cc_g = yes; then
5596   if test "$GCC" = yes; then
5597     CFLAGS="-g -O2"
5598   else
5599     CFLAGS="-g"
5600   fi
5601 else
5602   if test "$GCC" = yes; then
5603     CFLAGS="-O2"
5604   else
5605     CFLAGS=
5606   fi
5607 fi
5608 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5609 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5610 if test "${ac_cv_prog_cc_c89+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613   ac_cv_prog_cc_c89=no
5614 ac_save_CC=$CC
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h.  */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h.  */
5621 #include <stdarg.h>
5622 #include <stdio.h>
5623 #include <sys/types.h>
5624 #include <sys/stat.h>
5625 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5626 struct buf { int x; };
5627 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5628 static char *e (p, i)
5629      char **p;
5630      int i;
5631 {
5632   return p[i];
5633 }
5634 static char *f (char * (*g) (char **, int), char **p, ...)
5635 {
5636   char *s;
5637   va_list v;
5638   va_start (v,p);
5639   s = g (p, va_arg (v,int));
5640   va_end (v);
5641   return s;
5642 }
5643
5644 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5645    function prototypes and stuff, but not '\xHH' hex character constants.
5646    These don't provoke an error unfortunately, instead are silently treated
5647    as 'x'.  The following induces an error, until -std is added to get
5648    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5649    array size at least.  It's necessary to write '\x00'==0 to get something
5650    that's true only with -std.  */
5651 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5652
5653 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5654    inside strings and character constants.  */
5655 #define FOO(x) 'x'
5656 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5657
5658 int test (int i, double x);
5659 struct s1 {int (*f) (int a);};
5660 struct s2 {int (*f) (double a);};
5661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5662 int argc;
5663 char **argv;
5664 int
5665 main ()
5666 {
5667 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5668   ;
5669   return 0;
5670 }
5671 _ACEOF
5672 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5673         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5674 do
5675   CC="$ac_save_CC $ac_arg"
5676   rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5678 case "(($ac_try" in
5679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680   *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683   (eval "$ac_compile") 2>conftest.er1
5684   ac_status=$?
5685   grep -v '^ *+' conftest.er1 >conftest.err
5686   rm -f conftest.er1
5687   cat conftest.err >&5
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); } && {
5690          test -z "$ac_c_werror_flag" ||
5691          test ! -s conftest.err
5692        } && test -s conftest.$ac_objext; then
5693   ac_cv_prog_cc_c89=$ac_arg
5694 else
5695   echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5697
5698
5699 fi
5700
5701 rm -f core conftest.err conftest.$ac_objext
5702   test "x$ac_cv_prog_cc_c89" != "xno" && break
5703 done
5704 rm -f conftest.$ac_ext
5705 CC=$ac_save_CC
5706
5707 fi
5708 # AC_CACHE_VAL
5709 case "x$ac_cv_prog_cc_c89" in
5710   x)
5711     { echo "$as_me:$LINENO: result: none needed" >&5
5712 echo "${ECHO_T}none needed" >&6; } ;;
5713   xno)
5714     { echo "$as_me:$LINENO: result: unsupported" >&5
5715 echo "${ECHO_T}unsupported" >&6; } ;;
5716   *)
5717     CC="$CC $ac_cv_prog_cc_c89"
5718     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5719 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5720 esac
5721
5722
5723 ac_ext=c
5724 ac_cpp='$CPP $CPPFLAGS'
5725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5728
5729 depcc="$CC"   am_compiler_list=
5730
5731 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5732 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5737   # We make a subdir and do the tests there.  Otherwise we can end up
5738   # making bogus files that we don't know about and never remove.  For
5739   # instance it was reported that on HP-UX the gcc test will end up
5740   # making a dummy file named `D' -- because `-MD' means `put the output
5741   # in D'.
5742   mkdir conftest.dir
5743   # Copy depcomp to subdir because otherwise we won't find it if we're
5744   # using a relative directory.
5745   cp "$am_depcomp" conftest.dir
5746   cd conftest.dir
5747   # We will build objects and dependencies in a subdirectory because
5748   # it helps to detect inapplicable dependency modes.  For instance
5749   # both Tru64's cc and ICC support -MD to output dependencies as a
5750   # side effect of compilation, but ICC will put the dependencies in
5751   # the current directory while Tru64 will put them in the object
5752   # directory.
5753   mkdir sub
5754
5755   am_cv_CC_dependencies_compiler_type=none
5756   if test "$am_compiler_list" = ""; then
5757      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5758   fi
5759   for depmode in $am_compiler_list; do
5760     # Setup a source with many dependencies, because some compilers
5761     # like to wrap large dependency lists on column 80 (with \), and
5762     # we should not choose a depcomp mode which is confused by this.
5763     #
5764     # We need to recreate these files for each test, as the compiler may
5765     # overwrite some of them when testing with obscure command lines.
5766     # This happens at least with the AIX C compiler.
5767     : > sub/conftest.c
5768     for i in 1 2 3 4 5 6; do
5769       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5770       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5771       # Solaris 8's {/usr,}/bin/sh.
5772       touch sub/conftst$i.h
5773     done
5774     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5775
5776     case $depmode in
5777     nosideeffect)
5778       # after this tag, mechanisms are not by side-effect, so they'll
5779       # only be used when explicitly requested
5780       if test "x$enable_dependency_tracking" = xyes; then
5781         continue
5782       else
5783         break
5784       fi
5785       ;;
5786     none) break ;;
5787     esac
5788     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5789     # mode.  It turns out that the SunPro C++ compiler does not properly
5790     # handle `-M -o', and we need to detect this.
5791     if depmode=$depmode \
5792        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5793        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5794        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5795          >/dev/null 2>conftest.err &&
5796        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5797        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5798        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5799       # icc doesn't choke on unknown options, it will just issue warnings
5800       # or remarks (even with -Werror).  So we grep stderr for any message
5801       # that says an option was ignored or not supported.
5802       # When given -MP, icc 7.0 and 7.1 complain thusly:
5803       #   icc: Command line warning: ignoring option '-M'; no argument required
5804       # The diagnosis changed in icc 8.0:
5805       #   icc: Command line remark: option '-MP' not supported
5806       if (grep 'ignoring option' conftest.err ||
5807           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5808         am_cv_CC_dependencies_compiler_type=$depmode
5809         break
5810       fi
5811     fi
5812   done
5813
5814   cd ..
5815   rm -rf conftest.dir
5816 else
5817   am_cv_CC_dependencies_compiler_type=none
5818 fi
5819
5820 fi
5821 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5822 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5823 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5824
5825
5826
5827 if
5828   test "x$enable_dependency_tracking" != xno \
5829   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5830   am__fastdepCC_TRUE=
5831   am__fastdepCC_FALSE='#'
5832 else
5833   am__fastdepCC_TRUE='#'
5834   am__fastdepCC_FALSE=
5835 fi
5836
5837
5838 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5839 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5840 if test "${lt_cv_path_SED+set}" = set; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843   # Loop through the user's path and test for sed and gsed.
5844 # Then use that list of sed's as ones to test for truncation.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850   for lt_ac_prog in sed gsed; do
5851     for ac_exec_ext in '' $ac_executable_extensions; do
5852       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5853         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5854       fi
5855     done
5856   done
5857 done
5858 lt_ac_max=0
5859 lt_ac_count=0
5860 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5861 # along with /bin/sed that truncates output.
5862 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5863   test ! -f $lt_ac_sed && continue
5864   cat /dev/null > conftest.in
5865   lt_ac_count=0
5866   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5867   # Check for GNU sed and select it if it is found.
5868   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5869     lt_cv_path_SED=$lt_ac_sed
5870     break
5871   fi
5872   while true; do
5873     cat conftest.in conftest.in >conftest.tmp
5874     mv conftest.tmp conftest.in
5875     cp conftest.in conftest.nl
5876     echo >>conftest.nl
5877     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5878     cmp -s conftest.out conftest.nl || break
5879     # 10000 chars as input seems more than enough
5880     test $lt_ac_count -gt 10 && break
5881     lt_ac_count=`expr $lt_ac_count + 1`
5882     if test $lt_ac_count -gt $lt_ac_max; then
5883       lt_ac_max=$lt_ac_count
5884       lt_cv_path_SED=$lt_ac_sed
5885     fi
5886   done
5887 done
5888
5889 fi
5890
5891 SED=$lt_cv_path_SED
5892 { echo "$as_me:$LINENO: result: $SED" >&5
5893 echo "${ECHO_T}$SED" >&6; }
5894
5895 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5896 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5897 if test "${ac_cv_path_GREP+set}" = set; then
5898   echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900   # Extract the first word of "grep ggrep" to use in msg output
5901 if test -z "$GREP"; then
5902 set dummy grep ggrep; ac_prog_name=$2
5903 if test "${ac_cv_path_GREP+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   ac_path_GREP_found=false
5907 # Loop through the user's path and test for each of PROGNAME-LIST
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5910 do
5911   IFS=$as_save_IFS
5912   test -z "$as_dir" && as_dir=.
5913   for ac_prog in grep ggrep; do
5914   for ac_exec_ext in '' $ac_executable_extensions; do
5915     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5916     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5917     # Check for GNU ac_path_GREP and select it if it is found.
5918   # Check for GNU $ac_path_GREP
5919 case `"$ac_path_GREP" --version 2>&1` in
5920 *GNU*)
5921   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5922 *)
5923   ac_count=0
5924   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5925   while :
5926   do
5927     cat "conftest.in" "conftest.in" >"conftest.tmp"
5928     mv "conftest.tmp" "conftest.in"
5929     cp "conftest.in" "conftest.nl"
5930     echo 'GREP' >> "conftest.nl"
5931     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5932     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5933     ac_count=`expr $ac_count + 1`
5934     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5935       # Best one so far, save it but keep looking for a better one
5936       ac_cv_path_GREP="$ac_path_GREP"
5937       ac_path_GREP_max=$ac_count
5938     fi
5939     # 10*(2^10) chars as input seems more than enough
5940     test $ac_count -gt 10 && break
5941   done
5942   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5943 esac
5944
5945
5946     $ac_path_GREP_found && break 3
5947   done
5948 done
5949
5950 done
5951 IFS=$as_save_IFS
5952
5953
5954 fi
5955
5956 GREP="$ac_cv_path_GREP"
5957 if test -z "$GREP"; then
5958   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5959 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5960    { (exit 1); exit 1; }; }
5961 fi
5962
5963 else
5964   ac_cv_path_GREP=$GREP
5965 fi
5966
5967
5968 fi
5969 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5970 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5971  GREP="$ac_cv_path_GREP"
5972
5973
5974 { echo "$as_me:$LINENO: checking for egrep" >&5
5975 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5976 if test "${ac_cv_path_EGREP+set}" = set; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5980    then ac_cv_path_EGREP="$GREP -E"
5981    else
5982      # Extract the first word of "egrep" to use in msg output
5983 if test -z "$EGREP"; then
5984 set dummy egrep; ac_prog_name=$2
5985 if test "${ac_cv_path_EGREP+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   ac_path_EGREP_found=false
5989 # Loop through the user's path and test for each of PROGNAME-LIST
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995   for ac_prog in egrep; do
5996   for ac_exec_ext in '' $ac_executable_extensions; do
5997     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5998     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5999     # Check for GNU ac_path_EGREP and select it if it is found.
6000   # Check for GNU $ac_path_EGREP
6001 case `"$ac_path_EGREP" --version 2>&1` in
6002 *GNU*)
6003   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6004 *)
6005   ac_count=0
6006   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6007   while :
6008   do
6009     cat "conftest.in" "conftest.in" >"conftest.tmp"
6010     mv "conftest.tmp" "conftest.in"
6011     cp "conftest.in" "conftest.nl"
6012     echo 'EGREP' >> "conftest.nl"
6013     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6014     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6015     ac_count=`expr $ac_count + 1`
6016     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6017       # Best one so far, save it but keep looking for a better one
6018       ac_cv_path_EGREP="$ac_path_EGREP"
6019       ac_path_EGREP_max=$ac_count
6020     fi
6021     # 10*(2^10) chars as input seems more than enough
6022     test $ac_count -gt 10 && break
6023   done
6024   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6025 esac
6026
6027
6028     $ac_path_EGREP_found && break 3
6029   done
6030 done
6031
6032 done
6033 IFS=$as_save_IFS
6034
6035
6036 fi
6037
6038 EGREP="$ac_cv_path_EGREP"
6039 if test -z "$EGREP"; then
6040   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6041 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6042    { (exit 1); exit 1; }; }
6043 fi
6044
6045 else
6046   ac_cv_path_EGREP=$EGREP
6047 fi
6048
6049
6050    fi
6051 fi
6052 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6053 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6054  EGREP="$ac_cv_path_EGREP"
6055
6056
6057
6058 # Check whether --with-gnu-ld was given.
6059 if test "${with_gnu_ld+set}" = set; then
6060   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6061 else
6062   with_gnu_ld=no
6063 fi
6064
6065 ac_prog=ld
6066 if test "$GCC" = yes; then
6067   # Check if gcc -print-prog-name=ld gives a path.
6068   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6069 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6070   case $host in
6071   *-*-mingw*)
6072     # gcc leaves a trailing carriage return which upsets mingw
6073     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6074   *)
6075     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6076   esac
6077   case $ac_prog in
6078     # Accept absolute paths.
6079     [\\/]* | ?:[\\/]*)
6080       re_direlt='/[^/][^/]*/\.\./'
6081       # Canonicalize the pathname of ld
6082       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6083       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6084         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6085       done
6086       test -z "$LD" && LD="$ac_prog"
6087       ;;
6088   "")
6089     # If it fails, then pretend we aren't using GCC.
6090     ac_prog=ld
6091     ;;
6092   *)
6093     # If it is relative, then search for the first ld in PATH.
6094     with_gnu_ld=unknown
6095     ;;
6096   esac
6097 elif test "$with_gnu_ld" = yes; then
6098   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6099 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6100 else
6101   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6102 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6103 fi
6104 if test "${lt_cv_path_LD+set}" = set; then
6105   echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107   if test -z "$LD"; then
6108   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6109   for ac_dir in $PATH; do
6110     IFS="$lt_save_ifs"
6111     test -z "$ac_dir" && ac_dir=.
6112     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6113       lt_cv_path_LD="$ac_dir/$ac_prog"
6114       # Check to see if the program is GNU ld.  I'd rather use --version,
6115       # but apparently some variants of GNU ld only accept -v.
6116       # Break only if it was the GNU/non-GNU ld that we prefer.
6117       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6118       *GNU* | *'with BFD'*)
6119         test "$with_gnu_ld" != no && break
6120         ;;
6121       *)
6122         test "$with_gnu_ld" != yes && break
6123         ;;
6124       esac
6125     fi
6126   done
6127   IFS="$lt_save_ifs"
6128 else
6129   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6130 fi
6131 fi
6132
6133 LD="$lt_cv_path_LD"
6134 if test -n "$LD"; then
6135   { echo "$as_me:$LINENO: result: $LD" >&5
6136 echo "${ECHO_T}$LD" >&6; }
6137 else
6138   { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6140 fi
6141 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6142 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6143    { (exit 1); exit 1; }; }
6144 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6145 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6146 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6147   echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6150 case `$LD -v 2>&1 </dev/null` in
6151 *GNU* | *'with BFD'*)
6152   lt_cv_prog_gnu_ld=yes
6153   ;;
6154 *)
6155   lt_cv_prog_gnu_ld=no
6156   ;;
6157 esac
6158 fi
6159 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6160 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6161 with_gnu_ld=$lt_cv_prog_gnu_ld
6162
6163
6164 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6165 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6166 if test "${lt_cv_ld_reload_flag+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   lt_cv_ld_reload_flag='-r'
6170 fi
6171 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6172 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6173 reload_flag=$lt_cv_ld_reload_flag
6174 case $reload_flag in
6175 "" | " "*) ;;
6176 *) reload_flag=" $reload_flag" ;;
6177 esac
6178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6179 case $host_os in
6180   darwin*)
6181     if test "$GCC" = yes; then
6182       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6183     else
6184       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185     fi
6186     ;;
6187 esac
6188
6189 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6190 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6191 if test "${lt_cv_path_NM+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   if test -n "$NM"; then
6195   # Let the user override the test.
6196   lt_cv_path_NM="$NM"
6197 else
6198   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6199   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6200     IFS="$lt_save_ifs"
6201     test -z "$ac_dir" && ac_dir=.
6202     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6203     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6204       # Check to see if the nm accepts a BSD-compat flag.
6205       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6206       #   nm: unknown option "B" ignored
6207       # Tru64's nm complains that /dev/null is an invalid object file
6208       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6209       */dev/null* | *'Invalid file or object type'*)
6210         lt_cv_path_NM="$tmp_nm -B"
6211         break
6212         ;;
6213       *)
6214         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6215         */dev/null*)
6216           lt_cv_path_NM="$tmp_nm -p"
6217           break
6218           ;;
6219         *)
6220           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6221           continue # so that we can try to find one that supports BSD flags
6222           ;;
6223         esac
6224       esac
6225     fi
6226   done
6227   IFS="$lt_save_ifs"
6228   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6229 fi
6230 fi
6231 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6232 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6233 NM="$lt_cv_path_NM"
6234
6235 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6236 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6237 LN_S=$as_ln_s
6238 if test "$LN_S" = "ln -s"; then
6239   { echo "$as_me:$LINENO: result: yes" >&5
6240 echo "${ECHO_T}yes" >&6; }
6241 else
6242   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6243 echo "${ECHO_T}no, using $LN_S" >&6; }
6244 fi
6245
6246 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6247 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6248 if test "${lt_cv_deplibs_check_method+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251   lt_cv_file_magic_cmd='$MAGIC_CMD'
6252 lt_cv_file_magic_test_file=
6253 lt_cv_deplibs_check_method='unknown'
6254 # Need to set the preceding variable on all platforms that support
6255 # interlibrary dependencies.
6256 # 'none' -- dependencies not supported.
6257 # `unknown' -- same as none, but documents that we really don't know.
6258 # 'pass_all' -- all dependencies passed with no checks.
6259 # 'test_compile' -- check by making test program.
6260 # 'file_magic [[regex]]' -- check by looking for files in library path
6261 # which responds to the $file_magic_cmd with a given extended regex.
6262 # If you have `file' or equivalent on your system and you're not sure
6263 # whether `pass_all' will *always* work, you probably want this one.
6264
6265 case $host_os in
6266 aix4* | aix5*)
6267   lt_cv_deplibs_check_method=pass_all
6268   ;;
6269
6270 beos*)
6271   lt_cv_deplibs_check_method=pass_all
6272   ;;
6273
6274 bsdi[45]*)
6275   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6276   lt_cv_file_magic_cmd='/usr/bin/file -L'
6277   lt_cv_file_magic_test_file=/shlib/libc.so
6278   ;;
6279
6280 cygwin*)
6281   # func_win32_libid is a shell function defined in ltmain.sh
6282   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6283   lt_cv_file_magic_cmd='func_win32_libid'
6284   ;;
6285
6286 mingw* | pw32*)
6287   # Base MSYS/MinGW do not provide the 'file' command needed by
6288   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6289   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6290   lt_cv_file_magic_cmd='$OBJDUMP -f'
6291   ;;
6292
6293 darwin* | rhapsody*)
6294   lt_cv_deplibs_check_method=pass_all
6295   ;;
6296
6297 freebsd* | kfreebsd*-gnu | dragonfly*)
6298   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6299     case $host_cpu in
6300     i*86 )
6301       # Not sure whether the presence of OpenBSD here was a mistake.
6302       # Let's accept both of them until this is cleared up.
6303       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6304       lt_cv_file_magic_cmd=/usr/bin/file
6305       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6306       ;;
6307     esac
6308   else
6309     lt_cv_deplibs_check_method=pass_all
6310   fi
6311   ;;
6312
6313 gnu*)
6314   lt_cv_deplibs_check_method=pass_all
6315   ;;
6316
6317 hpux10.20* | hpux11*)
6318   lt_cv_file_magic_cmd=/usr/bin/file
6319   case $host_cpu in
6320   ia64*)
6321     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6322     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6323     ;;
6324   hppa*64*)
6325     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]'
6326     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6327     ;;
6328   *)
6329     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6330     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6331     ;;
6332   esac
6333   ;;
6334
6335 irix5* | irix6* | nonstopux*)
6336   case $LD in
6337   *-32|*"-32 ") libmagic=32-bit;;
6338   *-n32|*"-n32 ") libmagic=N32;;
6339   *-64|*"-64 ") libmagic=64-bit;;
6340   *) libmagic=never-match;;
6341   esac
6342   lt_cv_deplibs_check_method=pass_all
6343   ;;
6344
6345 # This must be Linux ELF.
6346 linux*)
6347   lt_cv_deplibs_check_method=pass_all
6348   ;;
6349
6350 netbsd*)
6351   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6352     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6353   else
6354     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6355   fi
6356   ;;
6357
6358 newos6*)
6359   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6360   lt_cv_file_magic_cmd=/usr/bin/file
6361   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6362   ;;
6363
6364 nto-qnx*)
6365   lt_cv_deplibs_check_method=unknown
6366   ;;
6367
6368 openbsd*)
6369   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6370     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6371   else
6372     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6373   fi
6374   ;;
6375
6376 osf3* | osf4* | osf5*)
6377   lt_cv_deplibs_check_method=pass_all
6378   ;;
6379
6380 sco3.2v5*)
6381   lt_cv_deplibs_check_method=pass_all
6382   ;;
6383
6384 solaris*)
6385   lt_cv_deplibs_check_method=pass_all
6386   ;;
6387
6388 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6389   case $host_vendor in
6390   motorola)
6391     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]'
6392     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6393     ;;
6394   ncr)
6395     lt_cv_deplibs_check_method=pass_all
6396     ;;
6397   sequent)
6398     lt_cv_file_magic_cmd='/bin/file'
6399     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6400     ;;
6401   sni)
6402     lt_cv_file_magic_cmd='/bin/file'
6403     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6404     lt_cv_file_magic_test_file=/lib/libc.so
6405     ;;
6406   siemens)
6407     lt_cv_deplibs_check_method=pass_all
6408     ;;
6409   esac
6410   ;;
6411
6412 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6413   lt_cv_deplibs_check_method=pass_all
6414   ;;
6415 esac
6416
6417 fi
6418 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6419 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6420 file_magic_cmd=$lt_cv_file_magic_cmd
6421 deplibs_check_method=$lt_cv_deplibs_check_method
6422 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6423
6424
6425
6426
6427 # If no C compiler was specified, use CC.
6428 LTCC=${LTCC-"$CC"}
6429
6430 # Allow CC to be a program name with arguments.
6431 compiler=$CC
6432
6433
6434 # Check whether --enable-libtool-lock was given.
6435 if test "${enable_libtool_lock+set}" = set; then
6436   enableval=$enable_libtool_lock;
6437 fi
6438
6439 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6440
6441 # Some flags need to be propagated to the compiler or linker for good
6442 # libtool support.
6443 case $host in
6444 ia64-*-hpux*)
6445   # Find out which ABI we are using.
6446   echo 'int i;' > conftest.$ac_ext
6447   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448   (eval $ac_compile) 2>&5
6449   ac_status=$?
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); }; then
6452     case `/usr/bin/file conftest.$ac_objext` in
6453     *ELF-32*)
6454       HPUX_IA64_MODE="32"
6455       ;;
6456     *ELF-64*)
6457       HPUX_IA64_MODE="64"
6458       ;;
6459     esac
6460   fi
6461   rm -rf conftest*
6462   ;;
6463 *-*-irix6*)
6464   # Find out which ABI we are using.
6465   echo '#line 6465 "configure"' > conftest.$ac_ext
6466   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6467   (eval $ac_compile) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; then
6471    if test "$lt_cv_prog_gnu_ld" = yes; then
6472     case `/usr/bin/file conftest.$ac_objext` in
6473     *32-bit*)
6474       LD="${LD-ld} -melf32bsmip"
6475       ;;
6476     *N32*)
6477       LD="${LD-ld} -melf32bmipn32"
6478       ;;
6479     *64-bit*)
6480       LD="${LD-ld} -melf64bmip"
6481       ;;
6482     esac
6483    else
6484     case `/usr/bin/file conftest.$ac_objext` in
6485     *32-bit*)
6486       LD="${LD-ld} -32"
6487       ;;
6488     *N32*)
6489       LD="${LD-ld} -n32"
6490       ;;
6491     *64-bit*)
6492       LD="${LD-ld} -64"
6493       ;;
6494     esac
6495    fi
6496   fi
6497   rm -rf conftest*
6498   ;;
6499
6500 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6501   # Find out which ABI we are using.
6502   echo 'int i;' > conftest.$ac_ext
6503   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504   (eval $ac_compile) 2>&5
6505   ac_status=$?
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); }; then
6508     case `/usr/bin/file conftest.o` in
6509     *32-bit*)
6510       case $host in
6511         x86_64-*linux*)
6512           LD="${LD-ld} -m elf_i386"
6513           ;;
6514         ppc64-*linux*|powerpc64-*linux*)
6515           LD="${LD-ld} -m elf32ppclinux"
6516           ;;
6517         s390x-*linux*)
6518           LD="${LD-ld} -m elf_s390"
6519           ;;
6520         sparc64-*linux*)
6521           LD="${LD-ld} -m elf32_sparc"
6522           ;;
6523       esac
6524       ;;
6525     *64-bit*)
6526       case $host in
6527         x86_64-*linux*)
6528           LD="${LD-ld} -m elf_x86_64"
6529           ;;
6530         ppc*-*linux*|powerpc*-*linux*)
6531           LD="${LD-ld} -m elf64ppc"
6532           ;;
6533         s390*-*linux*)
6534           LD="${LD-ld} -m elf64_s390"
6535           ;;
6536         sparc*-*linux*)
6537           LD="${LD-ld} -m elf64_sparc"
6538           ;;
6539       esac
6540       ;;
6541     esac
6542   fi
6543   rm -rf conftest*
6544   ;;
6545
6546 *-*-sco3.2v5*)
6547   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6548   SAVE_CFLAGS="$CFLAGS"
6549   CFLAGS="$CFLAGS -belf"
6550   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6551 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6552 if test "${lt_cv_cc_needs_belf+set}" = set; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   ac_ext=c
6556 ac_cpp='$CPP $CPPFLAGS'
6557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6560
6561      cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h.  */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h.  */
6567
6568 int
6569 main ()
6570 {
6571
6572   ;
6573   return 0;
6574 }
6575 _ACEOF
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (ac_try="$ac_link"
6578 case "(($ac_try" in
6579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580   *) ac_try_echo=$ac_try;;
6581 esac
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583   (eval "$ac_link") 2>conftest.er1
6584   ac_status=$?
6585   grep -v '^ *+' conftest.er1 >conftest.err
6586   rm -f conftest.er1
6587   cat conftest.err >&5
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); } && {
6590          test -z "$ac_c_werror_flag" ||
6591          test ! -s conftest.err
6592        } && test -s conftest$ac_exeext &&
6593        $as_test_x conftest$ac_exeext; then
6594   lt_cv_cc_needs_belf=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599         lt_cv_cc_needs_belf=no
6600 fi
6601
6602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6603       conftest$ac_exeext conftest.$ac_ext
6604      ac_ext=c
6605 ac_cpp='$CPP $CPPFLAGS'
6606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6609
6610 fi
6611 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6612 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6613   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6614     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6615     CFLAGS="$SAVE_CFLAGS"
6616   fi
6617   ;;
6618 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6619   if test -n "$ac_tool_prefix"; then
6620   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6625   echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627   if test -n "$DLLTOOL"; then
6628   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635   for ac_exec_ext in '' $ac_executable_extensions; do
6636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645 fi
6646 fi
6647 DLLTOOL=$ac_cv_prog_DLLTOOL
6648 if test -n "$DLLTOOL"; then
6649   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6650 echo "${ECHO_T}$DLLTOOL" >&6; }
6651 else
6652   { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6654 fi
6655
6656
6657 fi
6658 if test -z "$ac_cv_prog_DLLTOOL"; then
6659   ac_ct_DLLTOOL=$DLLTOOL
6660   # Extract the first word of "dlltool", so it can be a program name with args.
6661 set dummy dlltool; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   if test -n "$ac_ct_DLLTOOL"; then
6668   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   test -z "$as_dir" && as_dir=.
6675   for ac_exec_ext in '' $ac_executable_extensions; do
6676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679     break 2
6680   fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6688 if test -n "$ac_ct_DLLTOOL"; then
6689   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6690 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6691 else
6692   { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6694 fi
6695
6696   if test "x$ac_ct_DLLTOOL" = x; then
6697     DLLTOOL="false"
6698   else
6699     case $cross_compiling:$ac_tool_warned in
6700 yes:)
6701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6702 whose name does not start with the host triplet.  If you think this
6703 configuration is useful to you, please write to autoconf@gnu.org." >&5
6704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6705 whose name does not start with the host triplet.  If you think this
6706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709     DLLTOOL=$ac_ct_DLLTOOL
6710   fi
6711 else
6712   DLLTOOL="$ac_cv_prog_DLLTOOL"
6713 fi
6714
6715   if test -n "$ac_tool_prefix"; then
6716   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}as; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_prog_AS+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   if test -n "$AS"; then
6724   ac_cv_prog_AS="$AS" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731   for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_prog_AS="${ac_tool_prefix}as"
6734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 AS=$ac_cv_prog_AS
6744 if test -n "$AS"; then
6745   { echo "$as_me:$LINENO: result: $AS" >&5
6746 echo "${ECHO_T}$AS" >&6; }
6747 else
6748   { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6750 fi
6751
6752
6753 fi
6754 if test -z "$ac_cv_prog_AS"; then
6755   ac_ct_AS=$AS
6756   # Extract the first word of "as", so it can be a program name with args.
6757 set dummy as; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   if test -n "$ac_ct_AS"; then
6764   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771   for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_prog_ac_ct_AS="as"
6774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6784 if test -n "$ac_ct_AS"; then
6785   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6786 echo "${ECHO_T}$ac_ct_AS" >&6; }
6787 else
6788   { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6790 fi
6791
6792   if test "x$ac_ct_AS" = x; then
6793     AS="false"
6794   else
6795     case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6798 whose name does not start with the host triplet.  If you think this
6799 configuration is useful to you, please write to autoconf@gnu.org." >&5
6800 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet.  If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6803 ac_tool_warned=yes ;;
6804 esac
6805     AS=$ac_ct_AS
6806   fi
6807 else
6808   AS="$ac_cv_prog_AS"
6809 fi
6810
6811   if test -n "$ac_tool_prefix"; then
6812   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   if test -n "$OBJDUMP"; then
6820   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827   for ac_exec_ext in '' $ac_executable_extensions; do
6828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 OBJDUMP=$ac_cv_prog_OBJDUMP
6840 if test -n "$OBJDUMP"; then
6841   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6842 echo "${ECHO_T}$OBJDUMP" >&6; }
6843 else
6844   { echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; }
6846 fi
6847
6848
6849 fi
6850 if test -z "$ac_cv_prog_OBJDUMP"; then
6851   ac_ct_OBJDUMP=$OBJDUMP
6852   # Extract the first word of "objdump", so it can be a program name with args.
6853 set dummy objdump; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   if test -n "$ac_ct_OBJDUMP"; then
6860   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867   for ac_exec_ext in '' $ac_executable_extensions; do
6868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6880 if test -n "$ac_ct_OBJDUMP"; then
6881   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6882 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6883 else
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 fi
6887
6888   if test "x$ac_ct_OBJDUMP" = x; then
6889     OBJDUMP="false"
6890   else
6891     case $cross_compiling:$ac_tool_warned in
6892 yes:)
6893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6894 whose name does not start with the host triplet.  If you think this
6895 configuration is useful to you, please write to autoconf@gnu.org." >&5
6896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6897 whose name does not start with the host triplet.  If you think this
6898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901     OBJDUMP=$ac_ct_OBJDUMP
6902   fi
6903 else
6904   OBJDUMP="$ac_cv_prog_OBJDUMP"
6905 fi
6906
6907   ;;
6908
6909 esac
6910
6911 need_locks="$enable_libtool_lock"
6912
6913
6914 ac_ext=c
6915 ac_cpp='$CPP $CPPFLAGS'
6916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6919 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6920 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6921 # On Suns, sometimes $CPP names a directory.
6922 if test -n "$CPP" && test -d "$CPP"; then
6923   CPP=
6924 fi
6925 if test -z "$CPP"; then
6926   if test "${ac_cv_prog_CPP+set}" = set; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929       # Double quotes because CPP needs to be expanded
6930     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6931     do
6932       ac_preproc_ok=false
6933 for ac_c_preproc_warn_flag in '' yes
6934 do
6935   # Use a header file that comes with gcc, so configuring glibc
6936   # with a fresh cross-compiler works.
6937   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6938   # <limits.h> exists even on freestanding compilers.
6939   # On the NeXT, cc -E runs the code through the compiler's parser,
6940   # not just through cpp. "Syntax error" is here to catch this case.
6941   cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h.  */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h.  */
6947 #ifdef __STDC__
6948 # include <limits.h>
6949 #else
6950 # include <assert.h>
6951 #endif
6952                      Syntax error
6953 _ACEOF
6954 if { (ac_try="$ac_cpp conftest.$ac_ext"
6955 case "(($ac_try" in
6956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957   *) ac_try_echo=$ac_try;;
6958 esac
6959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6961   ac_status=$?
6962   grep -v '^ *+' conftest.er1 >conftest.err
6963   rm -f conftest.er1
6964   cat conftest.err >&5
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); } >/dev/null && {
6967          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6968          test ! -s conftest.err
6969        }; then
6970   :
6971 else
6972   echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6974
6975   # Broken: fails on valid input.
6976 continue
6977 fi
6978
6979 rm -f conftest.err conftest.$ac_ext
6980
6981   # OK, works on sane cases.  Now check whether nonexistent headers
6982   # can be detected and how.
6983   cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h.  */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h.  */
6989 #include <ac_nonexistent.h>
6990 _ACEOF
6991 if { (ac_try="$ac_cpp conftest.$ac_ext"
6992 case "(($ac_try" in
6993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994   *) ac_try_echo=$ac_try;;
6995 esac
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6998   ac_status=$?
6999   grep -v '^ *+' conftest.er1 >conftest.err
7000   rm -f conftest.er1
7001   cat conftest.err >&5
7002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003   (exit $ac_status); } >/dev/null && {
7004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7005          test ! -s conftest.err
7006        }; then
7007   # Broken: success on invalid input.
7008 continue
7009 else
7010   echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013   # Passes both tests.
7014 ac_preproc_ok=:
7015 break
7016 fi
7017
7018 rm -f conftest.err conftest.$ac_ext
7019
7020 done
7021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7022 rm -f conftest.err conftest.$ac_ext
7023 if $ac_preproc_ok; then
7024   break
7025 fi
7026
7027     done
7028     ac_cv_prog_CPP=$CPP
7029
7030 fi
7031   CPP=$ac_cv_prog_CPP
7032 else
7033   ac_cv_prog_CPP=$CPP
7034 fi
7035 { echo "$as_me:$LINENO: result: $CPP" >&5
7036 echo "${ECHO_T}$CPP" >&6; }
7037 ac_preproc_ok=false
7038 for ac_c_preproc_warn_flag in '' yes
7039 do
7040   # Use a header file that comes with gcc, so configuring glibc
7041   # with a fresh cross-compiler works.
7042   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7043   # <limits.h> exists even on freestanding compilers.
7044   # On the NeXT, cc -E runs the code through the compiler's parser,
7045   # not just through cpp. "Syntax error" is here to catch this case.
7046   cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h.  */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h.  */
7052 #ifdef __STDC__
7053 # include <limits.h>
7054 #else
7055 # include <assert.h>
7056 #endif
7057                      Syntax error
7058 _ACEOF
7059 if { (ac_try="$ac_cpp conftest.$ac_ext"
7060 case "(($ac_try" in
7061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062   *) ac_try_echo=$ac_try;;
7063 esac
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7066   ac_status=$?
7067   grep -v '^ *+' conftest.er1 >conftest.err
7068   rm -f conftest.er1
7069   cat conftest.err >&5
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } >/dev/null && {
7072          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7073          test ! -s conftest.err
7074        }; then
7075   :
7076 else
7077   echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080   # Broken: fails on valid input.
7081 continue
7082 fi
7083
7084 rm -f conftest.err conftest.$ac_ext
7085
7086   # OK, works on sane cases.  Now check whether nonexistent headers
7087   # can be detected and how.
7088   cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h.  */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h.  */
7094 #include <ac_nonexistent.h>
7095 _ACEOF
7096 if { (ac_try="$ac_cpp conftest.$ac_ext"
7097 case "(($ac_try" in
7098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099   *) ac_try_echo=$ac_try;;
7100 esac
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7103   ac_status=$?
7104   grep -v '^ *+' conftest.er1 >conftest.err
7105   rm -f conftest.er1
7106   cat conftest.err >&5
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); } >/dev/null && {
7109          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7110          test ! -s conftest.err
7111        }; then
7112   # Broken: success on invalid input.
7113 continue
7114 else
7115   echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7117
7118   # Passes both tests.
7119 ac_preproc_ok=:
7120 break
7121 fi
7122
7123 rm -f conftest.err conftest.$ac_ext
7124
7125 done
7126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7127 rm -f conftest.err conftest.$ac_ext
7128 if $ac_preproc_ok; then
7129   :
7130 else
7131   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7132 See \`config.log' for more details." >&5
7133 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7134 See \`config.log' for more details." >&2;}
7135    { (exit 1); exit 1; }; }
7136 fi
7137
7138 ac_ext=c
7139 ac_cpp='$CPP $CPPFLAGS'
7140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143
7144
7145 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7146 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7147 if test "${ac_cv_header_stdc+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h.  */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h.  */
7156 #include <stdlib.h>
7157 #include <stdarg.h>
7158 #include <string.h>
7159 #include <float.h>
7160
7161 int
7162 main ()
7163 {
7164
7165   ;
7166   return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (ac_try="$ac_compile"
7171 case "(($ac_try" in
7172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173   *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176   (eval "$ac_compile") 2>conftest.er1
7177   ac_status=$?
7178   grep -v '^ *+' conftest.er1 >conftest.err
7179   rm -f conftest.er1
7180   cat conftest.err >&5
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); } && {
7183          test -z "$ac_c_werror_flag" ||
7184          test ! -s conftest.err
7185        } && test -s conftest.$ac_objext; then
7186   ac_cv_header_stdc=yes
7187 else
7188   echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7190
7191         ac_cv_header_stdc=no
7192 fi
7193
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195
7196 if test $ac_cv_header_stdc = yes; then
7197   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7198   cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h.  */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h.  */
7204 #include <string.h>
7205
7206 _ACEOF
7207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208   $EGREP "memchr" >/dev/null 2>&1; then
7209   :
7210 else
7211   ac_cv_header_stdc=no
7212 fi
7213 rm -f conftest*
7214
7215 fi
7216
7217 if test $ac_cv_header_stdc = yes; then
7218   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7219   cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225 #include <stdlib.h>
7226
7227 _ACEOF
7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229   $EGREP "free" >/dev/null 2>&1; then
7230   :
7231 else
7232   ac_cv_header_stdc=no
7233 fi
7234 rm -f conftest*
7235
7236 fi
7237
7238 if test $ac_cv_header_stdc = yes; then
7239   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7240   if test "$cross_compiling" = yes; then
7241   :
7242 else
7243   cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h.  */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h.  */
7249 #include <ctype.h>
7250 #include <stdlib.h>
7251 #if ((' ' & 0x0FF) == 0x020)
7252 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7253 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7254 #else
7255 # define ISLOWER(c) \
7256                    (('a' <= (c) && (c) <= 'i') \
7257                      || ('j' <= (c) && (c) <= 'r') \
7258                      || ('s' <= (c) && (c) <= 'z'))
7259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7260 #endif
7261
7262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7263 int
7264 main ()
7265 {
7266   int i;
7267   for (i = 0; i < 256; i++)
7268     if (XOR (islower (i), ISLOWER (i))
7269         || toupper (i) != TOUPPER (i))
7270       return 2;
7271   return 0;
7272 }
7273 _ACEOF
7274 rm -f conftest$ac_exeext
7275 if { (ac_try="$ac_link"
7276 case "(($ac_try" in
7277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278   *) ac_try_echo=$ac_try;;
7279 esac
7280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7281   (eval "$ac_link") 2>&5
7282   ac_status=$?
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7285   { (case "(($ac_try" in
7286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287   *) ac_try_echo=$ac_try;;
7288 esac
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290   (eval "$ac_try") 2>&5
7291   ac_status=$?
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); }; }; then
7294   :
7295 else
7296   echo "$as_me: program exited with status $ac_status" >&5
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7299
7300 ( exit $ac_status )
7301 ac_cv_header_stdc=no
7302 fi
7303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7304 fi
7305
7306
7307 fi
7308 fi
7309 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7310 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7311 if test $ac_cv_header_stdc = yes; then
7312
7313 cat >>confdefs.h <<\_ACEOF
7314 #define STDC_HEADERS 1
7315 _ACEOF
7316
7317 fi
7318
7319 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7330                   inttypes.h stdint.h unistd.h
7331 do
7332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h.  */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h.  */
7344 $ac_includes_default
7345
7346 #include <$ac_header>
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352   *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355   (eval "$ac_compile") 2>conftest.er1
7356   ac_status=$?
7357   grep -v '^ *+' conftest.er1 >conftest.err
7358   rm -f conftest.er1
7359   cat conftest.err >&5
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); } && {
7362          test -z "$ac_c_werror_flag" ||
7363          test ! -s conftest.err
7364        } && test -s conftest.$ac_objext; then
7365   eval "$as_ac_Header=yes"
7366 else
7367   echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370         eval "$as_ac_Header=no"
7371 fi
7372
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 fi
7375 ac_res=`eval echo '${'$as_ac_Header'}'`
7376                { echo "$as_me:$LINENO: result: $ac_res" >&5
7377 echo "${ECHO_T}$ac_res" >&6; }
7378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7379   cat >>confdefs.h <<_ACEOF
7380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7381 _ACEOF
7382
7383 fi
7384
7385 done
7386
7387
7388
7389 for ac_header in dlfcn.h
7390 do
7391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7393   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 fi
7398 ac_res=`eval echo '${'$as_ac_Header'}'`
7399                { echo "$as_me:$LINENO: result: $ac_res" >&5
7400 echo "${ECHO_T}$ac_res" >&6; }
7401 else
7402   # Is the header compilable?
7403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h.  */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h.  */
7411 $ac_includes_default
7412 #include <$ac_header>
7413 _ACEOF
7414 rm -f conftest.$ac_objext
7415 if { (ac_try="$ac_compile"
7416 case "(($ac_try" in
7417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418   *) ac_try_echo=$ac_try;;
7419 esac
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421   (eval "$ac_compile") 2>conftest.er1
7422   ac_status=$?
7423   grep -v '^ *+' conftest.er1 >conftest.err
7424   rm -f conftest.er1
7425   cat conftest.err >&5
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } && {
7428          test -z "$ac_c_werror_flag" ||
7429          test ! -s conftest.err
7430        } && test -s conftest.$ac_objext; then
7431   ac_header_compiler=yes
7432 else
7433   echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436         ac_header_compiler=no
7437 fi
7438
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7441 echo "${ECHO_T}$ac_header_compiler" >&6; }
7442
7443 # Is the header present?
7444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7446 cat >conftest.$ac_ext <<_ACEOF
7447 /* confdefs.h.  */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h.  */
7452 #include <$ac_header>
7453 _ACEOF
7454 if { (ac_try="$ac_cpp conftest.$ac_ext"
7455 case "(($ac_try" in
7456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457   *) ac_try_echo=$ac_try;;
7458 esac
7459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7461   ac_status=$?
7462   grep -v '^ *+' conftest.er1 >conftest.err
7463   rm -f conftest.er1
7464   cat conftest.err >&5
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); } >/dev/null && {
7467          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7468          test ! -s conftest.err
7469        }; then
7470   ac_header_preproc=yes
7471 else
7472   echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7474
7475   ac_header_preproc=no
7476 fi
7477
7478 rm -f conftest.err conftest.$ac_ext
7479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7480 echo "${ECHO_T}$ac_header_preproc" >&6; }
7481
7482 # So?  What about this header?
7483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7484   yes:no: )
7485     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7489     ac_header_preproc=yes
7490     ;;
7491   no:yes:* )
7492     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7494     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7495 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7496     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7498     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7499 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7502     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7504     ( cat <<\_ASBOX
7505 ## --------------------------------------------- ##
7506 ## Report this to <http://www.openldap.org/its/> ##
7507 ## --------------------------------------------- ##
7508 _ASBOX
7509      ) | sed "s/^/$as_me: WARNING:     /" >&2
7510     ;;
7511 esac
7512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515   echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517   eval "$as_ac_Header=\$ac_header_preproc"
7518 fi
7519 ac_res=`eval echo '${'$as_ac_Header'}'`
7520                { echo "$as_me:$LINENO: result: $ac_res" >&5
7521 echo "${ECHO_T}$ac_res" >&6; }
7522
7523 fi
7524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7525   cat >>confdefs.h <<_ACEOF
7526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7527 _ACEOF
7528
7529 fi
7530
7531 done
7532
7533
7534 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7535
7536 # find the maximum length of command line arguments
7537 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7538 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7539 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542     i=0
7543   teststring="ABCD"
7544
7545   case $build_os in
7546   msdosdjgpp*)
7547     # On DJGPP, this test can blow up pretty badly due to problems in libc
7548     # (any single argument exceeding 2000 bytes causes a buffer overrun
7549     # during glob expansion).  Even if it were fixed, the result of this
7550     # check would be larger than it should be.
7551     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7552     ;;
7553
7554   gnu*)
7555     # Under GNU Hurd, this test is not required because there is
7556     # no limit to the length of command line arguments.
7557     # Libtool will interpret -1 as no limit whatsoever
7558     lt_cv_sys_max_cmd_len=-1;
7559     ;;
7560
7561   cygwin* | mingw*)
7562     # On Win9x/ME, this test blows up -- it succeeds, but takes
7563     # about 5 minutes as the teststring grows exponentially.
7564     # Worse, since 9x/ME are not pre-emptively multitasking,
7565     # you end up with a "frozen" computer, even though with patience
7566     # the test eventually succeeds (with a max line length of 256k).
7567     # Instead, let's just punt: use the minimum linelength reported by
7568     # all of the supported platforms: 8192 (on NT/2K/XP).
7569     lt_cv_sys_max_cmd_len=8192;
7570     ;;
7571
7572   amigaos*)
7573     # On AmigaOS with pdksh, this test takes hours, literally.
7574     # So we just punt and use a minimum line length of 8192.
7575     lt_cv_sys_max_cmd_len=8192;
7576     ;;
7577
7578   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7579     # This has been around since 386BSD, at least.  Likely further.
7580     if test -x /sbin/sysctl; then
7581       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7582     elif test -x /usr/sbin/sysctl; then
7583       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7584     else
7585       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7586     fi
7587     # And add a safety zone
7588     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7589     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7590     ;;
7591   osf*)
7592     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7593     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7594     # nice to cause kernel panics so lets avoid the loop below.
7595     # First set a reasonable default.
7596     lt_cv_sys_max_cmd_len=16384
7597     #
7598     if test -x /sbin/sysconfig; then
7599       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7600         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7601       esac
7602     fi
7603     ;;
7604   *)
7605     # If test is not a shell built-in, we'll probably end up computing a
7606     # maximum length that is only half of the actual maximum length, but
7607     # we can't tell.
7608     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7609     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7610                = "XX$teststring") >/dev/null 2>&1 &&
7611             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7612             lt_cv_sys_max_cmd_len=$new_result &&
7613             test $i != 17 # 1/2 MB should be enough
7614     do
7615       i=`expr $i + 1`
7616       teststring=$teststring$teststring
7617     done
7618     teststring=
7619     # Add a significant safety factor because C++ compilers can tack on massive
7620     # amounts of additional arguments before passing them to the linker.
7621     # It appears as though 1/2 is a usable value.
7622     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7623     ;;
7624   esac
7625
7626 fi
7627
7628 if test -n $lt_cv_sys_max_cmd_len ; then
7629   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7630 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7631 else
7632   { echo "$as_me:$LINENO: result: none" >&5
7633 echo "${ECHO_T}none" >&6; }
7634 fi
7635
7636
7637
7638
7639 # Check for command to grab the raw symbol name followed by C symbol from nm.
7640 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7641 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7642 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7643   echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645
7646 # These are sane defaults that work on at least a few old systems.
7647 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7648
7649 # Character class describing NM global symbol codes.
7650 symcode='[BCDEGRST]'
7651
7652 # Regexp to match symbols that can be accessed directly from C.
7653 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7654
7655 # Transform an extracted symbol line into a proper C declaration
7656 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7657
7658 # Transform an extracted symbol line into symbol name and symbol address
7659 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'"
7660
7661 # Define system-specific variables.
7662 case $host_os in
7663 aix*)
7664   symcode='[BCDT]'
7665   ;;
7666 cygwin* | mingw* | pw32*)
7667   symcode='[ABCDGISTW]'
7668   ;;
7669 hpux*) # Its linker distinguishes data from code symbols
7670   if test "$host_cpu" = ia64; then
7671     symcode='[ABCDEGRST]'
7672   fi
7673   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7674   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'"
7675   ;;
7676 linux*)
7677   if test "$host_cpu" = ia64; then
7678     symcode='[ABCDGIRSTW]'
7679     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7680     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'"
7681   fi
7682   ;;
7683 irix* | nonstopux*)
7684   symcode='[BCDEGRST]'
7685   ;;
7686 osf*)
7687   symcode='[BCDEGQRST]'
7688   ;;
7689 solaris* | sysv5*)
7690   symcode='[BDRT]'
7691   ;;
7692 sysv4)
7693   symcode='[DFNSTU]'
7694   ;;
7695 esac
7696
7697 # Handle CRLF in mingw tool chain
7698 opt_cr=
7699 case $build_os in
7700 mingw*)
7701   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7702   ;;
7703 esac
7704
7705 # If we're using GNU nm, then use its standard symbol codes.
7706 case `$NM -V 2>&1` in
7707 *GNU* | *'with BFD'*)
7708   symcode='[ABCDGIRSTW]' ;;
7709 esac
7710
7711 # Try without a prefix undercore, then with it.
7712 for ac_symprfx in "" "_"; do
7713
7714   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7715   symxfrm="\\1 $ac_symprfx\\2 \\2"
7716
7717   # Write the raw and C identifiers.
7718   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7719
7720   # Check to see that the pipe works correctly.
7721   pipe_works=no
7722
7723   rm -f conftest*
7724   cat > conftest.$ac_ext <<EOF
7725 #ifdef __cplusplus
7726 extern "C" {
7727 #endif
7728 char nm_test_var;
7729 void nm_test_func(){}
7730 #ifdef __cplusplus
7731 }
7732 #endif
7733 int main(){nm_test_var='a';nm_test_func();return(0);}
7734 EOF
7735
7736   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737   (eval $ac_compile) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); }; then
7741     # Now try to grab the symbols.
7742     nlist=conftest.nm
7743     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7744   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7745   ac_status=$?
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); } && test -s "$nlist"; then
7748       # Try sorting and uniquifying the output.
7749       if sort "$nlist" | uniq > "$nlist"T; then
7750         mv -f "$nlist"T "$nlist"
7751       else
7752         rm -f "$nlist"T
7753       fi
7754
7755       # Make sure that we snagged all the symbols we need.
7756       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7757         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7758           cat <<EOF > conftest.$ac_ext
7759 #ifdef __cplusplus
7760 extern "C" {
7761 #endif
7762
7763 EOF
7764           # Now generate the symbol file.
7765           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7766
7767           cat <<EOF >> conftest.$ac_ext
7768 #if defined (__STDC__) && __STDC__
7769 # define lt_ptr_t void *
7770 #else
7771 # define lt_ptr_t char *
7772 # define const
7773 #endif
7774
7775 /* The mapping between symbol names and symbols. */
7776 const struct {
7777   const char *name;
7778   lt_ptr_t address;
7779 }
7780 lt_preloaded_symbols[] =
7781 {
7782 EOF
7783           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7784           cat <<\EOF >> conftest.$ac_ext
7785   {0, (lt_ptr_t) 0}
7786 };
7787
7788 #ifdef __cplusplus
7789 }
7790 #endif
7791 EOF
7792           # Now try linking the two files.
7793           mv conftest.$ac_objext conftstm.$ac_objext
7794           lt_save_LIBS="$LIBS"
7795           lt_save_CFLAGS="$CFLAGS"
7796           LIBS="conftstm.$ac_objext"
7797           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7798           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7799   (eval $ac_link) 2>&5
7800   ac_status=$?
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7803             pipe_works=yes
7804           fi
7805           LIBS="$lt_save_LIBS"
7806           CFLAGS="$lt_save_CFLAGS"
7807         else
7808           echo "cannot find nm_test_func in $nlist" >&5
7809         fi
7810       else
7811         echo "cannot find nm_test_var in $nlist" >&5
7812       fi
7813     else
7814       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7815     fi
7816   else
7817     echo "$progname: failed program was:" >&5
7818     cat conftest.$ac_ext >&5
7819   fi
7820   rm -f conftest* conftst*
7821
7822   # Do not use the global_symbol_pipe unless it works.
7823   if test "$pipe_works" = yes; then
7824     break
7825   else
7826     lt_cv_sys_global_symbol_pipe=
7827   fi
7828 done
7829
7830 fi
7831
7832 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7833   lt_cv_sys_global_symbol_to_cdecl=
7834 fi
7835 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7836   { echo "$as_me:$LINENO: result: failed" >&5
7837 echo "${ECHO_T}failed" >&6; }
7838 else
7839   { echo "$as_me:$LINENO: result: ok" >&5
7840 echo "${ECHO_T}ok" >&6; }
7841 fi
7842
7843 { echo "$as_me:$LINENO: checking for objdir" >&5
7844 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7845 if test "${lt_cv_objdir+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   rm -f .libs 2>/dev/null
7849 mkdir .libs 2>/dev/null
7850 if test -d .libs; then
7851   lt_cv_objdir=.libs
7852 else
7853   # MS-DOS does not allow filenames that begin with a dot.
7854   lt_cv_objdir=_libs
7855 fi
7856 rmdir .libs 2>/dev/null
7857 fi
7858 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7859 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7860 objdir=$lt_cv_objdir
7861
7862
7863
7864
7865
7866 case $host_os in
7867 aix3*)
7868   # AIX sometimes has problems with the GCC collect2 program.  For some
7869   # reason, if we set the COLLECT_NAMES environment variable, the problems
7870   # vanish in a puff of smoke.
7871   if test "X${COLLECT_NAMES+set}" != Xset; then
7872     COLLECT_NAMES=
7873     export COLLECT_NAMES
7874   fi
7875   ;;
7876 esac
7877
7878 # Sed substitution that helps us do robust quoting.  It backslashifies
7879 # metacharacters that are still active within double-quoted strings.
7880 Xsed='sed -e 1s/^X//'
7881 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7882
7883 # Same as above, but do not quote variable references.
7884 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7885
7886 # Sed substitution to delay expansion of an escaped shell variable in a
7887 # double_quote_subst'ed string.
7888 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7889
7890 # Sed substitution to avoid accidental globbing in evaled expressions
7891 no_glob_subst='s/\*/\\\*/g'
7892
7893 # Constants:
7894 rm="rm -f"
7895
7896 # Global variables:
7897 default_ofile=libtool
7898 can_build_shared=yes
7899
7900 # All known linkers require a `.a' archive for static linking (except MSVC,
7901 # which needs '.lib').
7902 libext=a
7903 ltmain="$ac_aux_dir/ltmain.sh"
7904 ofile="$default_ofile"
7905 with_gnu_ld="$lt_cv_prog_gnu_ld"
7906
7907 if test -n "$ac_tool_prefix"; then
7908   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7909 set dummy ${ac_tool_prefix}ar; ac_word=$2
7910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7912 if test "${ac_cv_prog_AR+set}" = set; then
7913   echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915   if test -n "$AR"; then
7916   ac_cv_prog_AR="$AR" # Let the user override the test.
7917 else
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7920 do
7921   IFS=$as_save_IFS
7922   test -z "$as_dir" && as_dir=.
7923   for ac_exec_ext in '' $ac_executable_extensions; do
7924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925     ac_cv_prog_AR="${ac_tool_prefix}ar"
7926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927     break 2
7928   fi
7929 done
7930 done
7931 IFS=$as_save_IFS
7932
7933 fi
7934 fi
7935 AR=$ac_cv_prog_AR
7936 if test -n "$AR"; then
7937   { echo "$as_me:$LINENO: result: $AR" >&5
7938 echo "${ECHO_T}$AR" >&6; }
7939 else
7940   { echo "$as_me:$LINENO: result: no" >&5
7941 echo "${ECHO_T}no" >&6; }
7942 fi
7943
7944
7945 fi
7946 if test -z "$ac_cv_prog_AR"; then
7947   ac_ct_AR=$AR
7948   # Extract the first word of "ar", so it can be a program name with args.
7949 set dummy ar; ac_word=$2
7950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7952 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7953   echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955   if test -n "$ac_ct_AR"; then
7956   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961   IFS=$as_save_IFS
7962   test -z "$as_dir" && as_dir=.
7963   for ac_exec_ext in '' $ac_executable_extensions; do
7964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965     ac_cv_prog_ac_ct_AR="ar"
7966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967     break 2
7968   fi
7969 done
7970 done
7971 IFS=$as_save_IFS
7972
7973 fi
7974 fi
7975 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7976 if test -n "$ac_ct_AR"; then
7977   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7978 echo "${ECHO_T}$ac_ct_AR" >&6; }
7979 else
7980   { echo "$as_me:$LINENO: result: no" >&5
7981 echo "${ECHO_T}no" >&6; }
7982 fi
7983
7984   if test "x$ac_ct_AR" = x; then
7985     AR="false"
7986   else
7987     case $cross_compiling:$ac_tool_warned in
7988 yes:)
7989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7990 whose name does not start with the host triplet.  If you think this
7991 configuration is useful to you, please write to autoconf@gnu.org." >&5
7992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7993 whose name does not start with the host triplet.  If you think this
7994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7995 ac_tool_warned=yes ;;
7996 esac
7997     AR=$ac_ct_AR
7998   fi
7999 else
8000   AR="$ac_cv_prog_AR"
8001 fi
8002
8003 if test -n "$ac_tool_prefix"; then
8004   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8008 if test "${ac_cv_prog_RANLIB+set}" = set; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011   if test -n "$RANLIB"; then
8012   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8016 do
8017   IFS=$as_save_IFS
8018   test -z "$as_dir" && as_dir=.
8019   for ac_exec_ext in '' $ac_executable_extensions; do
8020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8021     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8023     break 2
8024   fi
8025 done
8026 done
8027 IFS=$as_save_IFS
8028
8029 fi
8030 fi
8031 RANLIB=$ac_cv_prog_RANLIB
8032 if test -n "$RANLIB"; then
8033   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8034 echo "${ECHO_T}$RANLIB" >&6; }
8035 else
8036   { echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6; }
8038 fi
8039
8040
8041 fi
8042 if test -z "$ac_cv_prog_RANLIB"; then
8043   ac_ct_RANLIB=$RANLIB
8044   # Extract the first word of "ranlib", so it can be a program name with args.
8045 set dummy ranlib; ac_word=$2
8046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8049   echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051   if test -n "$ac_ct_RANLIB"; then
8052   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8053 else
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH
8056 do
8057   IFS=$as_save_IFS
8058   test -z "$as_dir" && as_dir=.
8059   for ac_exec_ext in '' $ac_executable_extensions; do
8060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8061     ac_cv_prog_ac_ct_RANLIB="ranlib"
8062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063     break 2
8064   fi
8065 done
8066 done
8067 IFS=$as_save_IFS
8068
8069 fi
8070 fi
8071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8072 if test -n "$ac_ct_RANLIB"; then
8073   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8074 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8075 else
8076   { echo "$as_me:$LINENO: result: no" >&5
8077 echo "${ECHO_T}no" >&6; }
8078 fi
8079
8080   if test "x$ac_ct_RANLIB" = x; then
8081     RANLIB=":"
8082   else
8083     case $cross_compiling:$ac_tool_warned in
8084 yes:)
8085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8086 whose name does not start with the host triplet.  If you think this
8087 configuration is useful to you, please write to autoconf@gnu.org." >&5
8088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8089 whose name does not start with the host triplet.  If you think this
8090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8091 ac_tool_warned=yes ;;
8092 esac
8093     RANLIB=$ac_ct_RANLIB
8094   fi
8095 else
8096   RANLIB="$ac_cv_prog_RANLIB"
8097 fi
8098
8099 if test -n "$ac_tool_prefix"; then
8100   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8101 set dummy ${ac_tool_prefix}strip; ac_word=$2
8102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8104 if test "${ac_cv_prog_STRIP+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107   if test -n "$STRIP"; then
8108   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8112 do
8113   IFS=$as_save_IFS
8114   test -z "$as_dir" && as_dir=.
8115   for ac_exec_ext in '' $ac_executable_extensions; do
8116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119     break 2
8120   fi
8121 done
8122 done
8123 IFS=$as_save_IFS
8124
8125 fi
8126 fi
8127 STRIP=$ac_cv_prog_STRIP
8128 if test -n "$STRIP"; then
8129   { echo "$as_me:$LINENO: result: $STRIP" >&5
8130 echo "${ECHO_T}$STRIP" >&6; }
8131 else
8132   { echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6; }
8134 fi
8135
8136
8137 fi
8138 if test -z "$ac_cv_prog_STRIP"; then
8139   ac_ct_STRIP=$STRIP
8140   # Extract the first word of "strip", so it can be a program name with args.
8141 set dummy strip; ac_word=$2
8142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8144 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8145   echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147   if test -n "$ac_ct_STRIP"; then
8148   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8152 do
8153   IFS=$as_save_IFS
8154   test -z "$as_dir" && as_dir=.
8155   for ac_exec_ext in '' $ac_executable_extensions; do
8156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8157     ac_cv_prog_ac_ct_STRIP="strip"
8158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159     break 2
8160   fi
8161 done
8162 done
8163 IFS=$as_save_IFS
8164
8165 fi
8166 fi
8167 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8168 if test -n "$ac_ct_STRIP"; then
8169   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8170 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8171 else
8172   { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8174 fi
8175
8176   if test "x$ac_ct_STRIP" = x; then
8177     STRIP=":"
8178   else
8179     case $cross_compiling:$ac_tool_warned in
8180 yes:)
8181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8182 whose name does not start with the host triplet.  If you think this
8183 configuration is useful to you, please write to autoconf@gnu.org." >&5
8184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8185 whose name does not start with the host triplet.  If you think this
8186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8187 ac_tool_warned=yes ;;
8188 esac
8189     STRIP=$ac_ct_STRIP
8190   fi
8191 else
8192   STRIP="$ac_cv_prog_STRIP"
8193 fi
8194
8195
8196 old_CC="$CC"
8197 old_CFLAGS="$CFLAGS"
8198
8199 # Set sane defaults for various variables
8200 test -z "$AR" && AR=ar
8201 test -z "$AR_FLAGS" && AR_FLAGS=cru
8202 test -z "$AS" && AS=as
8203 test -z "$CC" && CC=cc
8204 test -z "$LTCC" && LTCC=$CC
8205 test -z "$DLLTOOL" && DLLTOOL=dlltool
8206 test -z "$LD" && LD=ld
8207 test -z "$LN_S" && LN_S="ln -s"
8208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8209 test -z "$NM" && NM=nm
8210 test -z "$SED" && SED=sed
8211 test -z "$OBJDUMP" && OBJDUMP=objdump
8212 test -z "$RANLIB" && RANLIB=:
8213 test -z "$STRIP" && STRIP=:
8214 test -z "$ac_objext" && ac_objext=o
8215
8216 # Determine commands to create old-style static archives.
8217 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8218 old_postinstall_cmds='chmod 644 $oldlib'
8219 old_postuninstall_cmds=
8220
8221 if test -n "$RANLIB"; then
8222   case $host_os in
8223   openbsd*)
8224     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8225     ;;
8226   *)
8227     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8228     ;;
8229   esac
8230   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8231 fi
8232
8233 for cc_temp in $compiler""; do
8234   case $cc_temp in
8235     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8236     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8237     \-*) ;;
8238     *) break;;
8239   esac
8240 done
8241 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8242
8243
8244 # Only perform the check for file, if the check method requires it
8245 case $deplibs_check_method in
8246 file_magic*)
8247   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8248     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8249 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8250 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   case $MAGIC_CMD in
8254 [\\/*] |  ?:[\\/]*)
8255   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8256   ;;
8257 *)
8258   lt_save_MAGIC_CMD="$MAGIC_CMD"
8259   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8260   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8261   for ac_dir in $ac_dummy; do
8262     IFS="$lt_save_ifs"
8263     test -z "$ac_dir" && ac_dir=.
8264     if test -f $ac_dir/${ac_tool_prefix}file; then
8265       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8266       if test -n "$file_magic_test_file"; then
8267         case $deplibs_check_method in
8268         "file_magic "*)
8269           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8270           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8271           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8272             $EGREP "$file_magic_regex" > /dev/null; then
8273             :
8274           else
8275             cat <<EOF 1>&2
8276
8277 *** Warning: the command libtool uses to detect shared libraries,
8278 *** $file_magic_cmd, produces output that libtool cannot recognize.
8279 *** The result is that libtool may fail to recognize shared libraries
8280 *** as such.  This will affect the creation of libtool libraries that
8281 *** depend on shared libraries, but programs linked with such libtool
8282 *** libraries will work regardless of this problem.  Nevertheless, you
8283 *** may want to report the problem to your system manager and/or to
8284 *** bug-libtool@gnu.org
8285
8286 EOF
8287           fi ;;
8288         esac
8289       fi
8290       break
8291     fi
8292   done
8293   IFS="$lt_save_ifs"
8294   MAGIC_CMD="$lt_save_MAGIC_CMD"
8295   ;;
8296 esac
8297 fi
8298
8299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8300 if test -n "$MAGIC_CMD"; then
8301   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8302 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8303 else
8304   { echo "$as_me:$LINENO: result: no" >&5
8305 echo "${ECHO_T}no" >&6; }
8306 fi
8307
8308 if test -z "$lt_cv_path_MAGIC_CMD"; then
8309   if test -n "$ac_tool_prefix"; then
8310     { echo "$as_me:$LINENO: checking for file" >&5
8311 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8312 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   case $MAGIC_CMD in
8316 [\\/*] |  ?:[\\/]*)
8317   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8318   ;;
8319 *)
8320   lt_save_MAGIC_CMD="$MAGIC_CMD"
8321   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8322   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8323   for ac_dir in $ac_dummy; do
8324     IFS="$lt_save_ifs"
8325     test -z "$ac_dir" && ac_dir=.
8326     if test -f $ac_dir/file; then
8327       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8328       if test -n "$file_magic_test_file"; then
8329         case $deplibs_check_method in
8330         "file_magic "*)
8331           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8332           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8333           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8334             $EGREP "$file_magic_regex" > /dev/null; then
8335             :
8336           else
8337             cat <<EOF 1>&2
8338
8339 *** Warning: the command libtool uses to detect shared libraries,
8340 *** $file_magic_cmd, produces output that libtool cannot recognize.
8341 *** The result is that libtool may fail to recognize shared libraries
8342 *** as such.  This will affect the creation of libtool libraries that
8343 *** depend on shared libraries, but programs linked with such libtool
8344 *** libraries will work regardless of this problem.  Nevertheless, you
8345 *** may want to report the problem to your system manager and/or to
8346 *** bug-libtool@gnu.org
8347
8348 EOF
8349           fi ;;
8350         esac
8351       fi
8352       break
8353     fi
8354   done
8355   IFS="$lt_save_ifs"
8356   MAGIC_CMD="$lt_save_MAGIC_CMD"
8357   ;;
8358 esac
8359 fi
8360
8361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8362 if test -n "$MAGIC_CMD"; then
8363   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8364 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8365 else
8366   { echo "$as_me:$LINENO: result: no" >&5
8367 echo "${ECHO_T}no" >&6; }
8368 fi
8369
8370   else
8371     MAGIC_CMD=:
8372   fi
8373 fi
8374
8375   fi
8376   ;;
8377 esac
8378
8379 enable_dlopen=yes
8380 enable_win32_dll=yes
8381
8382 # Check whether --enable-libtool-lock was given.
8383 if test "${enable_libtool_lock+set}" = set; then
8384   enableval=$enable_libtool_lock;
8385 fi
8386
8387 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8388
8389
8390 # Check whether --with-pic was given.
8391 if test "${with_pic+set}" = set; then
8392   withval=$with_pic; pic_mode="$withval"
8393 else
8394   pic_mode=default
8395 fi
8396
8397 test -z "$pic_mode" && pic_mode=default
8398
8399 # Use C for the default configuration in the libtool script
8400 tagname=
8401 lt_save_CC="$CC"
8402 ac_ext=c
8403 ac_cpp='$CPP $CPPFLAGS'
8404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8407
8408
8409 # Source file extension for C test sources.
8410 ac_ext=c
8411
8412 # Object file extension for compiled C test sources.
8413 objext=o
8414 objext=$objext
8415
8416 # Code to be used in simple compile tests
8417 lt_simple_compile_test_code="int some_variable = 0;\n"
8418
8419 # Code to be used in simple link tests
8420 lt_simple_link_test_code='int main(){return(0);}\n'
8421
8422
8423 # If no C compiler was specified, use CC.
8424 LTCC=${LTCC-"$CC"}
8425
8426 # Allow CC to be a program name with arguments.
8427 compiler=$CC
8428
8429
8430 # save warnings/boilerplate of simple test code
8431 ac_outfile=conftest.$ac_objext
8432 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8433 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8434 _lt_compiler_boilerplate=`cat conftest.err`
8435 $rm conftest*
8436
8437 ac_outfile=conftest.$ac_objext
8438 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8439 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8440 _lt_linker_boilerplate=`cat conftest.err`
8441 $rm conftest*
8442
8443
8444 #
8445 # Check for any special shared library compilation flags.
8446 #
8447 lt_prog_cc_shlib=
8448 if test "$GCC" = no; then
8449   case $host_os in
8450   sco3.2v5*)
8451     lt_prog_cc_shlib='-belf'
8452     ;;
8453   esac
8454 fi
8455 if test -n "$lt_prog_cc_shlib"; then
8456   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8457 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8458   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8459   else
8460     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8461 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8462     lt_cv_prog_cc_can_build_shared=no
8463   fi
8464 fi
8465
8466
8467 #
8468 # Check to make sure the static flag actually works.
8469 #
8470 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8471 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8472 if test "${lt_prog_compiler_static_works+set}" = set; then
8473   echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475   lt_prog_compiler_static_works=no
8476    save_LDFLAGS="$LDFLAGS"
8477    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8478    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8479    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8480      # The linker can only warn and ignore the option if not recognized
8481      # So say no if there are warnings
8482      if test -s conftest.err; then
8483        # Append any errors to the config.log.
8484        cat conftest.err 1>&5
8485        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8486        $SED '/^$/d' conftest.err >conftest.er2
8487        if diff conftest.exp conftest.er2 >/dev/null; then
8488          lt_prog_compiler_static_works=yes
8489        fi
8490      else
8491        lt_prog_compiler_static_works=yes
8492      fi
8493    fi
8494    $rm conftest*
8495    LDFLAGS="$save_LDFLAGS"
8496
8497 fi
8498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8499 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8500
8501 if test x"$lt_prog_compiler_static_works" = xyes; then
8502     :
8503 else
8504     lt_prog_compiler_static=
8505 fi
8506
8507
8508
8509
8510 lt_prog_compiler_no_builtin_flag=
8511
8512 if test "$GCC" = yes; then
8513   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8514
8515
8516 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8517 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8518 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8519   echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521   lt_cv_prog_compiler_rtti_exceptions=no
8522   ac_outfile=conftest.$ac_objext
8523    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8524    lt_compiler_flag="-fno-rtti -fno-exceptions"
8525    # Insert the option either (1) after the last *FLAGS variable, or
8526    # (2) before a word containing "conftest.", or (3) at the end.
8527    # Note that $ac_compile itself does not contain backslashes and begins
8528    # with a dollar sign (not a hyphen), so the echo should work correctly.
8529    # The option is referenced via a variable to avoid confusing sed.
8530    lt_compile=`echo "$ac_compile" | $SED \
8531    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8532    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8533    -e 's:$: $lt_compiler_flag:'`
8534    (eval echo "\"\$as_me:8534: $lt_compile\"" >&5)
8535    (eval "$lt_compile" 2>conftest.err)
8536    ac_status=$?
8537    cat conftest.err >&5
8538    echo "$as_me:8538: \$? = $ac_status" >&5
8539    if (exit $ac_status) && test -s "$ac_outfile"; then
8540      # The compiler can only warn and ignore the option if not recognized
8541      # So say no if there are warnings other than the usual output.
8542      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8543      $SED '/^$/d' conftest.err >conftest.er2
8544      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8545        lt_cv_prog_compiler_rtti_exceptions=yes
8546      fi
8547    fi
8548    $rm conftest*
8549
8550 fi
8551 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8552 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8553
8554 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8555     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8556 else
8557     :
8558 fi
8559
8560 fi
8561
8562 lt_prog_compiler_wl=
8563 lt_prog_compiler_pic=
8564 lt_prog_compiler_static=
8565
8566 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8567 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8568
8569   if test "$GCC" = yes; then
8570     lt_prog_compiler_wl='-Wl,'
8571     lt_prog_compiler_static='-static'
8572
8573     case $host_os in
8574       aix*)
8575       # All AIX code is PIC.
8576       if test "$host_cpu" = ia64; then
8577         # AIX 5 now supports IA64 processor
8578         lt_prog_compiler_static='-Bstatic'
8579       fi
8580       ;;
8581
8582     amigaos*)
8583       # FIXME: we need at least 68020 code to build shared libraries, but
8584       # adding the `-m68020' flag to GCC prevents building anything better,
8585       # like `-m68040'.
8586       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8587       ;;
8588
8589     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8590       # PIC is the default for these OSes.
8591       ;;
8592
8593     mingw* | pw32* | os2*)
8594       # This hack is so that the source file can tell whether it is being
8595       # built for inclusion in a dll (and should export symbols for example).
8596       lt_prog_compiler_pic='-DDLL_EXPORT'
8597       ;;
8598
8599     darwin* | rhapsody*)
8600       # PIC is the default on this platform
8601       # Common symbols not allowed in MH_DYLIB files
8602       lt_prog_compiler_pic='-fno-common'
8603       ;;
8604
8605     msdosdjgpp*)
8606       # Just because we use GCC doesn't mean we suddenly get shared libraries
8607       # on systems that don't support them.
8608       lt_prog_compiler_can_build_shared=no
8609       enable_shared=no
8610       ;;
8611
8612     sysv4*MP*)
8613       if test -d /usr/nec; then
8614         lt_prog_compiler_pic=-Kconform_pic
8615       fi
8616       ;;
8617
8618     hpux*)
8619       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8620       # not for PA HP-UX.
8621       case $host_cpu in
8622       hppa*64*|ia64*)
8623         # +Z the default
8624         ;;
8625       *)
8626         lt_prog_compiler_pic='-fPIC'
8627         ;;
8628       esac
8629       ;;
8630
8631     *)
8632       lt_prog_compiler_pic='-fPIC'
8633       ;;
8634     esac
8635   else
8636     # PORTME Check for flag to pass linker flags through the system compiler.
8637     case $host_os in
8638     aix*)
8639       lt_prog_compiler_wl='-Wl,'
8640       if test "$host_cpu" = ia64; then
8641         # AIX 5 now supports IA64 processor
8642         lt_prog_compiler_static='-Bstatic'
8643       else
8644         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8645       fi
8646       ;;
8647       darwin*)
8648         # PIC is the default on this platform
8649         # Common symbols not allowed in MH_DYLIB files
8650        case $cc_basename in
8651          xlc*)
8652          lt_prog_compiler_pic='-qnocommon'
8653          lt_prog_compiler_wl='-Wl,'
8654          ;;
8655        esac
8656        ;;
8657
8658     mingw* | pw32* | os2*)
8659       # This hack is so that the source file can tell whether it is being
8660       # built for inclusion in a dll (and should export symbols for example).
8661       lt_prog_compiler_pic='-DDLL_EXPORT'
8662       ;;
8663
8664     hpux9* | hpux10* | hpux11*)
8665       lt_prog_compiler_wl='-Wl,'
8666       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8667       # not for PA HP-UX.
8668       case $host_cpu in
8669       hppa*64*|ia64*)
8670         # +Z the default
8671         ;;
8672       *)
8673         lt_prog_compiler_pic='+Z'
8674         ;;
8675       esac
8676       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8677       lt_prog_compiler_static='${wl}-a ${wl}archive'
8678       ;;
8679
8680     irix5* | irix6* | nonstopux*)
8681       lt_prog_compiler_wl='-Wl,'
8682       # PIC (with -KPIC) is the default.
8683       lt_prog_compiler_static='-non_shared'
8684       ;;
8685
8686     newsos6)
8687       lt_prog_compiler_pic='-KPIC'
8688       lt_prog_compiler_static='-Bstatic'
8689       ;;
8690
8691     linux*)
8692       case $cc_basename in
8693       icc* | ecc*)
8694         lt_prog_compiler_wl='-Wl,'
8695         lt_prog_compiler_pic='-KPIC'
8696         lt_prog_compiler_static='-static'
8697         ;;
8698       pgcc* | pgf77* | pgf90* | pgf95*)
8699         # Portland Group compilers (*not* the Pentium gcc compiler,
8700         # which looks to be a dead project)
8701         lt_prog_compiler_wl='-Wl,'
8702         lt_prog_compiler_pic='-fpic'
8703         lt_prog_compiler_static='-Bstatic'
8704         ;;
8705       ccc*)
8706         lt_prog_compiler_wl='-Wl,'
8707         # All Alpha code is PIC.
8708         lt_prog_compiler_static='-non_shared'
8709         ;;
8710       esac
8711       ;;
8712
8713     osf3* | osf4* | osf5*)
8714       lt_prog_compiler_wl='-Wl,'
8715       # All OSF/1 code is PIC.
8716       lt_prog_compiler_static='-non_shared'
8717       ;;
8718
8719     sco3.2v5*)
8720       lt_prog_compiler_pic='-Kpic'
8721       lt_prog_compiler_static='-dn'
8722       ;;
8723
8724     solaris*)
8725       lt_prog_compiler_pic='-KPIC'
8726       lt_prog_compiler_static='-Bstatic'
8727       case $cc_basename in
8728       f77* | f90* | f95*)
8729         lt_prog_compiler_wl='-Qoption ld ';;
8730       *)
8731         lt_prog_compiler_wl='-Wl,';;
8732       esac
8733       ;;
8734
8735     sunos4*)
8736       lt_prog_compiler_wl='-Qoption ld '
8737       lt_prog_compiler_pic='-PIC'
8738       lt_prog_compiler_static='-Bstatic'
8739       ;;
8740
8741     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8742       lt_prog_compiler_wl='-Wl,'
8743       lt_prog_compiler_pic='-KPIC'
8744       lt_prog_compiler_static='-Bstatic'
8745       ;;
8746
8747     sysv4*MP*)
8748       if test -d /usr/nec ;then
8749         lt_prog_compiler_pic='-Kconform_pic'
8750         lt_prog_compiler_static='-Bstatic'
8751       fi
8752       ;;
8753
8754     unicos*)
8755       lt_prog_compiler_wl='-Wl,'
8756       lt_prog_compiler_can_build_shared=no
8757       ;;
8758
8759     uts4*)
8760       lt_prog_compiler_pic='-pic'
8761       lt_prog_compiler_static='-Bstatic'
8762       ;;
8763
8764     *)
8765       lt_prog_compiler_can_build_shared=no
8766       ;;
8767     esac
8768   fi
8769
8770 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8771 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8772
8773 #
8774 # Check to make sure the PIC flag actually works.
8775 #
8776 if test -n "$lt_prog_compiler_pic"; then
8777
8778 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8780 if test "${lt_prog_compiler_pic_works+set}" = set; then
8781   echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783   lt_prog_compiler_pic_works=no
8784   ac_outfile=conftest.$ac_objext
8785    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8786    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8787    # Insert the option either (1) after the last *FLAGS variable, or
8788    # (2) before a word containing "conftest.", or (3) at the end.
8789    # Note that $ac_compile itself does not contain backslashes and begins
8790    # with a dollar sign (not a hyphen), so the echo should work correctly.
8791    # The option is referenced via a variable to avoid confusing sed.
8792    lt_compile=`echo "$ac_compile" | $SED \
8793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8795    -e 's:$: $lt_compiler_flag:'`
8796    (eval echo "\"\$as_me:8796: $lt_compile\"" >&5)
8797    (eval "$lt_compile" 2>conftest.err)
8798    ac_status=$?
8799    cat conftest.err >&5
8800    echo "$as_me:8800: \$? = $ac_status" >&5
8801    if (exit $ac_status) && test -s "$ac_outfile"; then
8802      # The compiler can only warn and ignore the option if not recognized
8803      # So say no if there are warnings other than the usual output.
8804      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8805      $SED '/^$/d' conftest.err >conftest.er2
8806      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8807        lt_prog_compiler_pic_works=yes
8808      fi
8809    fi
8810    $rm conftest*
8811
8812 fi
8813 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8814 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8815
8816 if test x"$lt_prog_compiler_pic_works" = xyes; then
8817     case $lt_prog_compiler_pic in
8818      "" | " "*) ;;
8819      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8820      esac
8821 else
8822     lt_prog_compiler_pic=
8823      lt_prog_compiler_can_build_shared=no
8824 fi
8825
8826 fi
8827 case $host_os in
8828   # For platforms which do not support PIC, -DPIC is meaningless:
8829   *djgpp*)
8830     lt_prog_compiler_pic=
8831     ;;
8832   *)
8833     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8834     ;;
8835 esac
8836
8837 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8838 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8839 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8840   echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842   lt_cv_prog_compiler_c_o=no
8843    $rm -r conftest 2>/dev/null
8844    mkdir conftest
8845    cd conftest
8846    mkdir out
8847    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8848
8849    lt_compiler_flag="-o out/conftest2.$ac_objext"
8850    # Insert the option either (1) after the last *FLAGS variable, or
8851    # (2) before a word containing "conftest.", or (3) at the end.
8852    # Note that $ac_compile itself does not contain backslashes and begins
8853    # with a dollar sign (not a hyphen), so the echo should work correctly.
8854    lt_compile=`echo "$ac_compile" | $SED \
8855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857    -e 's:$: $lt_compiler_flag:'`
8858    (eval echo "\"\$as_me:8858: $lt_compile\"" >&5)
8859    (eval "$lt_compile" 2>out/conftest.err)
8860    ac_status=$?
8861    cat out/conftest.err >&5
8862    echo "$as_me:8862: \$? = $ac_status" >&5
8863    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8864    then
8865      # The compiler can only warn and ignore the option if not recognized
8866      # So say no if there are warnings
8867      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8868      $SED '/^$/d' out/conftest.err >out/conftest.er2
8869      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8870        lt_cv_prog_compiler_c_o=yes
8871      fi
8872    fi
8873    chmod u+w . 2>&5
8874    $rm conftest*
8875    # SGI C++ compiler will create directory out/ii_files/ for
8876    # template instantiation
8877    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8878    $rm out/* && rmdir out
8879    cd ..
8880    rmdir conftest
8881    $rm conftest*
8882
8883 fi
8884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8885 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8886
8887
8888 hard_links="nottested"
8889 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8890   # do not overwrite the value of need_locks provided by the user
8891   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8892 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8893   hard_links=yes
8894   $rm conftest*
8895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8896   touch conftest.a
8897   ln conftest.a conftest.b 2>&5 || hard_links=no
8898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899   { echo "$as_me:$LINENO: result: $hard_links" >&5
8900 echo "${ECHO_T}$hard_links" >&6; }
8901   if test "$hard_links" = no; then
8902     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8903 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8904     need_locks=warn
8905   fi
8906 else
8907   need_locks=no
8908 fi
8909
8910 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8911 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8912
8913   runpath_var=
8914   allow_undefined_flag=
8915   enable_shared_with_static_runtimes=no
8916   archive_cmds=
8917   archive_expsym_cmds=
8918   old_archive_From_new_cmds=
8919   old_archive_from_expsyms_cmds=
8920   export_dynamic_flag_spec=
8921   whole_archive_flag_spec=
8922   thread_safe_flag_spec=
8923   hardcode_libdir_flag_spec=
8924   hardcode_libdir_flag_spec_ld=
8925   hardcode_libdir_separator=
8926   hardcode_direct=no
8927   hardcode_minus_L=no
8928   hardcode_shlibpath_var=unsupported
8929   link_all_deplibs=unknown
8930   hardcode_automatic=no
8931   module_cmds=
8932   module_expsym_cmds=
8933   always_export_symbols=no
8934   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8935   # include_expsyms should be a list of space-separated symbols to be *always*
8936   # included in the symbol list
8937   include_expsyms=
8938   # exclude_expsyms can be an extended regexp of symbols to exclude
8939   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8940   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8941   # as well as any symbol that contains `d'.
8942   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8943   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8944   # platforms (ab)use it in PIC code, but their linkers get confused if
8945   # the symbol is explicitly referenced.  Since portable code cannot
8946   # rely on this symbol name, it's probably fine to never include it in
8947   # preloaded symbol tables.
8948   extract_expsyms_cmds=
8949   # Just being paranoid about ensuring that cc_basename is set.
8950   for cc_temp in $compiler""; do
8951   case $cc_temp in
8952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8954     \-*) ;;
8955     *) break;;
8956   esac
8957 done
8958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8959
8960   case $host_os in
8961   cygwin* | mingw* | pw32*)
8962     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8963     # When not using gcc, we currently assume that we are using
8964     # Microsoft Visual C++.
8965     if test "$GCC" != yes; then
8966       with_gnu_ld=no
8967     fi
8968     ;;
8969   openbsd*)
8970     with_gnu_ld=no
8971     ;;
8972   esac
8973
8974   ld_shlibs=yes
8975   if test "$with_gnu_ld" = yes; then
8976     # If archive_cmds runs LD, not CC, wlarc should be empty
8977     wlarc='${wl}'
8978
8979     # Set some defaults for GNU ld with shared library support. These
8980     # are reset later if shared libraries are not supported. Putting them
8981     # here allows them to be overridden if necessary.
8982     runpath_var=LD_RUN_PATH
8983     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8984     export_dynamic_flag_spec='${wl}--export-dynamic'
8985     # ancient GNU ld didn't support --whole-archive et. al.
8986     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8987         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8988       else
8989         whole_archive_flag_spec=
8990     fi
8991     supports_anon_versioning=no
8992     case `$LD -v 2>/dev/null` in
8993       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8994       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8995       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8996       *\ 2.11.*) ;; # other 2.11 versions
8997       *) supports_anon_versioning=yes ;;
8998     esac
8999
9000     # See if GNU ld supports shared libraries.
9001     case $host_os in
9002     aix3* | aix4* | aix5*)
9003       # On AIX/PPC, the GNU linker is very broken
9004       if test "$host_cpu" != ia64; then
9005         ld_shlibs=no
9006         cat <<EOF 1>&2
9007
9008 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9009 *** to be unable to reliably create shared libraries on AIX.
9010 *** Therefore, libtool is disabling shared libraries support.  If you
9011 *** really care for shared libraries, you may want to modify your PATH
9012 *** so that a non-GNU linker is found, and then restart.
9013
9014 EOF
9015       fi
9016       ;;
9017
9018     amigaos*)
9019       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)'
9020       hardcode_libdir_flag_spec='-L$libdir'
9021       hardcode_minus_L=yes
9022
9023       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9024       # that the semantics of dynamic libraries on AmigaOS, at least up
9025       # to version 4, is to share data among multiple programs linked
9026       # with the same dynamic library.  Since this doesn't match the
9027       # behavior of shared libraries on other platforms, we can't use
9028       # them.
9029       ld_shlibs=no
9030       ;;
9031
9032     beos*)
9033       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9034         allow_undefined_flag=unsupported
9035         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9036         # support --undefined.  This deserves some investigation.  FIXME
9037         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038       else
9039         ld_shlibs=no
9040       fi
9041       ;;
9042
9043     cygwin* | mingw* | pw32*)
9044       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9045       # as there is no search path for DLLs.
9046       hardcode_libdir_flag_spec='-L$libdir'
9047       allow_undefined_flag=unsupported
9048       always_export_symbols=no
9049       enable_shared_with_static_runtimes=yes
9050       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9051
9052       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9053         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9054         # If the export-symbols file already is a .def file (1st line
9055         # is EXPORTS), use it as is; otherwise, prepend...
9056         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9057           cp $export_symbols $output_objdir/$soname.def;
9058         else
9059           echo EXPORTS > $output_objdir/$soname.def;
9060           cat $export_symbols >> $output_objdir/$soname.def;
9061         fi~
9062         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9063       else
9064         ld_shlibs=no
9065       fi
9066       ;;
9067
9068     linux*)
9069       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9070         tmp_addflag=
9071         case $cc_basename,$host_cpu in
9072         pgcc*)                          # Portland Group C compiler
9073           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'
9074           tmp_addflag=' $pic_flag'
9075           ;;
9076         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
9079         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9080           tmp_addflag=' -i_dynamic' ;;
9081         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9082           tmp_addflag=' -i_dynamic -nofor_main' ;;
9083         ifc* | ifort*)                  # Intel Fortran compiler
9084           tmp_addflag=' -nofor_main' ;;
9085         esac
9086         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087
9088         if test $supports_anon_versioning = yes; then
9089           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9090   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9091   $echo "local: *; };" >> $output_objdir/$libname.ver~
9092           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9093         fi
9094       else
9095         ld_shlibs=no
9096       fi
9097       ;;
9098
9099     netbsd*)
9100       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9101         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9102         wlarc=
9103       else
9104         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9106       fi
9107       ;;
9108
9109     solaris* | sysv5*)
9110       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9111         ld_shlibs=no
9112         cat <<EOF 1>&2
9113
9114 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9115 *** create shared libraries on Solaris systems.  Therefore, libtool
9116 *** is disabling shared libraries support.  We urge you to upgrade GNU
9117 *** binutils to release 2.9.1 or newer.  Another option is to modify
9118 *** your PATH or compiler configuration so that the native linker is
9119 *** used, and then restart.
9120
9121 EOF
9122       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9123         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9124         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9125       else
9126         ld_shlibs=no
9127       fi
9128       ;;
9129
9130     sunos4*)
9131       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9132       wlarc=
9133       hardcode_direct=yes
9134       hardcode_shlibpath_var=no
9135       ;;
9136
9137     *)
9138       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9141       else
9142         ld_shlibs=no
9143       fi
9144       ;;
9145     esac
9146
9147     if test "$ld_shlibs" = no; then
9148       runpath_var=
9149       hardcode_libdir_flag_spec=
9150       export_dynamic_flag_spec=
9151       whole_archive_flag_spec=
9152     fi
9153   else
9154     # PORTME fill in a description of your system's linker (not GNU ld)
9155     case $host_os in
9156     aix3*)
9157       allow_undefined_flag=unsupported
9158       always_export_symbols=yes
9159       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'
9160       # Note: this linker hardcodes the directories in LIBPATH if there
9161       # are no directories specified by -L.
9162       hardcode_minus_L=yes
9163       if test "$GCC" = yes && test -z "$link_static_flag"; then
9164         # Neither direct hardcoding nor static linking is supported with a
9165         # broken collect2.
9166         hardcode_direct=unsupported
9167       fi
9168       ;;
9169
9170     aix4* | aix5*)
9171       if test "$host_cpu" = ia64; then
9172         # On IA64, the linker does run time linking by default, so we don't
9173         # have to do anything special.
9174         aix_use_runtimelinking=no
9175         exp_sym_flag='-Bexport'
9176         no_entry_flag=""
9177       else
9178         # If we're using GNU nm, then we don't want the "-C" option.
9179         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9180         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9181           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'
9182         else
9183           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'
9184         fi
9185         aix_use_runtimelinking=no
9186
9187         # Test if we are trying to use run time linking or normal
9188         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9189         # need to do runtime linking.
9190         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9191           for ld_flag in $LDFLAGS; do
9192           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9193             aix_use_runtimelinking=yes
9194             break
9195           fi
9196           done
9197         esac
9198
9199         exp_sym_flag='-bexport'
9200         no_entry_flag='-bnoentry'
9201       fi
9202
9203       # When large executables or shared objects are built, AIX ld can
9204       # have problems creating the table of contents.  If linking a library
9205       # or program results in "error TOC overflow" add -mminimal-toc to
9206       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9207       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9208
9209       archive_cmds=''
9210       hardcode_direct=yes
9211       hardcode_libdir_separator=':'
9212       link_all_deplibs=yes
9213
9214       if test "$GCC" = yes; then
9215         case $host_os in aix4.[012]|aix4.[012].*)
9216         # We only want to do this on AIX 4.2 and lower, the check
9217         # below for broken collect2 doesn't work under 4.3+
9218           collect2name=`${CC} -print-prog-name=collect2`
9219           if test -f "$collect2name" && \
9220            strings "$collect2name" | grep resolve_lib_name >/dev/null
9221           then
9222           # We have reworked collect2
9223           hardcode_direct=yes
9224           else
9225           # We have old collect2
9226           hardcode_direct=unsupported
9227           # It fails to find uninstalled libraries when the uninstalled
9228           # path is not listed in the libpath.  Setting hardcode_minus_L
9229           # to unsupported forces relinking
9230           hardcode_minus_L=yes
9231           hardcode_libdir_flag_spec='-L$libdir'
9232           hardcode_libdir_separator=
9233           fi
9234         esac
9235         shared_flag='-shared'
9236         if test "$aix_use_runtimelinking" = yes; then
9237           shared_flag="$shared_flag "'${wl}-G'
9238         fi
9239       else
9240         # not using gcc
9241         if test "$host_cpu" = ia64; then
9242         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9243         # chokes on -Wl,-G. The following line is correct:
9244           shared_flag='-G'
9245         else
9246         if test "$aix_use_runtimelinking" = yes; then
9247             shared_flag='${wl}-G'
9248           else
9249             shared_flag='${wl}-bM:SRE'
9250         fi
9251         fi
9252       fi
9253
9254       # It seems that -bexpall does not export symbols beginning with
9255       # underscore (_), so it is better to generate a list of symbols to export.
9256       always_export_symbols=yes
9257       if test "$aix_use_runtimelinking" = yes; then
9258         # Warning - without using the other runtime loading flags (-brtl),
9259         # -berok will link without error, but may produce a broken library.
9260         allow_undefined_flag='-berok'
9261        # Determine the default libpath from the value encoded in an empty executable.
9262        cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h.  */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h.  */
9268
9269 int
9270 main ()
9271 {
9272
9273   ;
9274   return 0;
9275 }
9276 _ACEOF
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (ac_try="$ac_link"
9279 case "(($ac_try" in
9280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281   *) ac_try_echo=$ac_try;;
9282 esac
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284   (eval "$ac_link") 2>conftest.er1
9285   ac_status=$?
9286   grep -v '^ *+' conftest.er1 >conftest.err
9287   rm -f conftest.er1
9288   cat conftest.err >&5
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); } && {
9291          test -z "$ac_c_werror_flag" ||
9292          test ! -s conftest.err
9293        } && test -s conftest$ac_exeext &&
9294        $as_test_x conftest$ac_exeext; then
9295
9296 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9297 }'`
9298 # Check for a 64-bit object if we didn't find anything.
9299 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; }
9300 }'`; fi
9301 else
9302   echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9304
9305
9306 fi
9307
9308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9309       conftest$ac_exeext conftest.$ac_ext
9310 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9311
9312        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9313         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"
9314        else
9315         if test "$host_cpu" = ia64; then
9316           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9317           allow_undefined_flag="-z nodefs"
9318           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"
9319         else
9320          # Determine the default libpath from the value encoded in an empty executable.
9321          cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327
9328 int
9329 main ()
9330 {
9331
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (ac_try="$ac_link"
9338 case "(($ac_try" in
9339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340   *) ac_try_echo=$ac_try;;
9341 esac
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343   (eval "$ac_link") 2>conftest.er1
9344   ac_status=$?
9345   grep -v '^ *+' conftest.er1 >conftest.err
9346   rm -f conftest.er1
9347   cat conftest.err >&5
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); } && {
9350          test -z "$ac_c_werror_flag" ||
9351          test ! -s conftest.err
9352        } && test -s conftest$ac_exeext &&
9353        $as_test_x conftest$ac_exeext; then
9354
9355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9356 }'`
9357 # Check for a 64-bit object if we didn't find anything.
9358 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; }
9359 }'`; fi
9360 else
9361   echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364
9365 fi
9366
9367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9368       conftest$ac_exeext conftest.$ac_ext
9369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9370
9371          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9372           # Warning - without using the other run time loading flags,
9373           # -berok will link without error, but may produce a broken library.
9374           no_undefined_flag=' ${wl}-bernotok'
9375           allow_undefined_flag=' ${wl}-berok'
9376           # -bexpall does not export symbols beginning with underscore (_)
9377           always_export_symbols=yes
9378           # Exported symbols can be pulled into shared objects from archives
9379           whole_archive_flag_spec=' '
9380           archive_cmds_need_lc=yes
9381           # This is similar to how AIX traditionally builds its shared libraries.
9382           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'
9383         fi
9384       fi
9385       ;;
9386
9387     amigaos*)
9388       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)'
9389       hardcode_libdir_flag_spec='-L$libdir'
9390       hardcode_minus_L=yes
9391       # see comment about different semantics on the GNU ld section
9392       ld_shlibs=no
9393       ;;
9394
9395     bsdi[45]*)
9396       export_dynamic_flag_spec=-rdynamic
9397       ;;
9398
9399     cygwin* | mingw* | pw32*)
9400       # When not using gcc, we currently assume that we are using
9401       # Microsoft Visual C++.
9402       # hardcode_libdir_flag_spec is actually meaningless, as there is
9403       # no search path for DLLs.
9404       hardcode_libdir_flag_spec=' '
9405       allow_undefined_flag=unsupported
9406       # Tell ltmain to make .lib files, not .a files.
9407       libext=lib
9408       # Tell ltmain to make .dll files, not .so files.
9409       shrext_cmds=".dll"
9410       # FIXME: Setting linknames here is a bad hack.
9411       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9412       # The linker will automatically build a .lib file if we build a DLL.
9413       old_archive_From_new_cmds='true'
9414       # FIXME: Should let the user specify the lib program.
9415       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9416       fix_srcfile_path='`cygpath -w "$srcfile"`'
9417       enable_shared_with_static_runtimes=yes
9418       ;;
9419
9420     darwin* | rhapsody*)
9421       case $host_os in
9422         rhapsody* | darwin1.[012])
9423          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9424          ;;
9425        *) # Darwin 1.3 on
9426          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9427            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9428          else
9429            case ${MACOSX_DEPLOYMENT_TARGET} in
9430              10.[012])
9431                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9432                ;;
9433              10.*)
9434                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9435                ;;
9436            esac
9437          fi
9438          ;;
9439       esac
9440       archive_cmds_need_lc=no
9441       hardcode_direct=no
9442       hardcode_automatic=yes
9443       hardcode_shlibpath_var=unsupported
9444       whole_archive_flag_spec=''
9445       link_all_deplibs=yes
9446     if test "$GCC" = yes ; then
9447         output_verbose_link_cmd='echo'
9448         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9449       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9450       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9451       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}'
9452       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}'
9453     else
9454       case $cc_basename in
9455         xlc*)
9456          output_verbose_link_cmd='echo'
9457          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9458          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9459           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9460          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}'
9461           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}'
9462           ;;
9463        *)
9464          ld_shlibs=no
9465           ;;
9466       esac
9467     fi
9468       ;;
9469
9470     dgux*)
9471       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472       hardcode_libdir_flag_spec='-L$libdir'
9473       hardcode_shlibpath_var=no
9474       ;;
9475
9476     freebsd1*)
9477       ld_shlibs=no
9478       ;;
9479
9480     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9481     # support.  Future versions do this automatically, but an explicit c++rt0.o
9482     # does not break anything, and helps significantly (at the cost of a little
9483     # extra space).
9484     freebsd2.2*)
9485       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9486       hardcode_libdir_flag_spec='-R$libdir'
9487       hardcode_direct=yes
9488       hardcode_shlibpath_var=no
9489       ;;
9490
9491     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9492     freebsd2*)
9493       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9494       hardcode_direct=yes
9495       hardcode_minus_L=yes
9496       hardcode_shlibpath_var=no
9497       ;;
9498
9499     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9500     freebsd* | kfreebsd*-gnu | dragonfly*)
9501       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9502       hardcode_libdir_flag_spec='-R$libdir'
9503       hardcode_direct=yes
9504       hardcode_shlibpath_var=no
9505       ;;
9506
9507     hpux9*)
9508       if test "$GCC" = yes; then
9509         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'
9510       else
9511         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'
9512       fi
9513       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514       hardcode_libdir_separator=:
9515       hardcode_direct=yes
9516
9517       # hardcode_minus_L: Not really in the search PATH,
9518       # but as the default location of the library.
9519       hardcode_minus_L=yes
9520       export_dynamic_flag_spec='${wl}-E'
9521       ;;
9522
9523     hpux10* | hpux11*)
9524       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9525         case $host_cpu in
9526         hppa*64*|ia64*)
9527           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9528           ;;
9529         *)
9530           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9531           ;;
9532         esac
9533       else
9534         case $host_cpu in
9535         hppa*64*|ia64*)
9536           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9537           ;;
9538         *)
9539           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9540           ;;
9541         esac
9542       fi
9543       if test "$with_gnu_ld" = no; then
9544         case $host_cpu in
9545         hppa*64*)
9546           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9547           hardcode_libdir_flag_spec_ld='+b $libdir'
9548           hardcode_libdir_separator=:
9549           hardcode_direct=no
9550           hardcode_shlibpath_var=no
9551           ;;
9552         ia64*)
9553           hardcode_libdir_flag_spec='-L$libdir'
9554           hardcode_direct=no
9555           hardcode_shlibpath_var=no
9556
9557           # hardcode_minus_L: Not really in the search PATH,
9558           # but as the default location of the library.
9559           hardcode_minus_L=yes
9560           ;;
9561         *)
9562           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9563           hardcode_libdir_separator=:
9564           hardcode_direct=yes
9565           export_dynamic_flag_spec='${wl}-E'
9566
9567           # hardcode_minus_L: Not really in the search PATH,
9568           # but as the default location of the library.
9569           hardcode_minus_L=yes
9570           ;;
9571         esac
9572       fi
9573       ;;
9574
9575     irix5* | irix6* | nonstopux*)
9576       if test "$GCC" = yes; then
9577         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'
9578       else
9579         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'
9580         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9581       fi
9582       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583       hardcode_libdir_separator=:
9584       link_all_deplibs=yes
9585       ;;
9586
9587     netbsd*)
9588       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9589         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9590       else
9591         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9592       fi
9593       hardcode_libdir_flag_spec='-R$libdir'
9594       hardcode_direct=yes
9595       hardcode_shlibpath_var=no
9596       ;;
9597
9598     newsos6)
9599       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9600       hardcode_direct=yes
9601       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9602       hardcode_libdir_separator=:
9603       hardcode_shlibpath_var=no
9604       ;;
9605
9606     openbsd*)
9607       hardcode_direct=yes
9608       hardcode_shlibpath_var=no
9609       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9610         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9611         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9612         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9613         export_dynamic_flag_spec='${wl}-E'
9614       else
9615        case $host_os in
9616          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9617            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9618            hardcode_libdir_flag_spec='-R$libdir'
9619            ;;
9620          *)
9621            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9622            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9623            ;;
9624        esac
9625       fi
9626       ;;
9627
9628     os2*)
9629       hardcode_libdir_flag_spec='-L$libdir'
9630       hardcode_minus_L=yes
9631       allow_undefined_flag=unsupported
9632       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'
9633       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9634       ;;
9635
9636     osf3*)
9637       if test "$GCC" = yes; then
9638         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9639         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'
9640       else
9641         allow_undefined_flag=' -expect_unresolved \*'
9642         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'
9643       fi
9644       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645       hardcode_libdir_separator=:
9646       ;;
9647
9648     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9649       if test "$GCC" = yes; then
9650         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9651         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'
9652         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9653       else
9654         allow_undefined_flag=' -expect_unresolved \*'
9655         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'
9656         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9657         $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'
9658
9659         # Both c and cxx compiler support -rpath directly
9660         hardcode_libdir_flag_spec='-rpath $libdir'
9661       fi
9662       hardcode_libdir_separator=:
9663       ;;
9664
9665     sco3.2v5*)
9666       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667       hardcode_shlibpath_var=no
9668       export_dynamic_flag_spec='${wl}-Bexport'
9669       runpath_var=LD_RUN_PATH
9670       hardcode_runpath_var=yes
9671       ;;
9672
9673     solaris*)
9674       no_undefined_flag=' -z text'
9675       if test "$GCC" = yes; then
9676         wlarc='${wl}'
9677         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9678         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9679           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9680       else
9681         wlarc=''
9682         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9684         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9685       fi
9686       hardcode_libdir_flag_spec='-R$libdir'
9687       hardcode_shlibpath_var=no
9688       case $host_os in
9689       solaris2.[0-5] | solaris2.[0-5].*) ;;
9690       *)
9691         # The compiler driver will combine linker options so we
9692         # cannot just pass the convience library names through
9693         # without $wl, iff we do not link with $LD.
9694         # Luckily, gcc supports the same syntax we need for Sun Studio.
9695         # Supported since Solaris 2.6 (maybe 2.5.1?)
9696         case $wlarc in
9697         '')
9698           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9699         *)
9700           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' ;;
9701         esac ;;
9702       esac
9703       link_all_deplibs=yes
9704       ;;
9705
9706     sunos4*)
9707       if test "x$host_vendor" = xsequent; then
9708         # Use $CC to link under sequent, because it throws in some extra .o
9709         # files that make .init and .fini sections work.
9710         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9711       else
9712         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9713       fi
9714       hardcode_libdir_flag_spec='-L$libdir'
9715       hardcode_direct=yes
9716       hardcode_minus_L=yes
9717       hardcode_shlibpath_var=no
9718       ;;
9719
9720     sysv4)
9721       case $host_vendor in
9722         sni)
9723           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724           hardcode_direct=yes # is this really true???
9725         ;;
9726         siemens)
9727           ## LD is ld it makes a PLAMLIB
9728           ## CC just makes a GrossModule.
9729           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9730           reload_cmds='$CC -r -o $output$reload_objs'
9731           hardcode_direct=no
9732         ;;
9733         motorola)
9734           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9736         ;;
9737       esac
9738       runpath_var='LD_RUN_PATH'
9739       hardcode_shlibpath_var=no
9740       ;;
9741
9742     sysv4.3*)
9743       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744       hardcode_shlibpath_var=no
9745       export_dynamic_flag_spec='-Bexport'
9746       ;;
9747
9748     sysv4*MP*)
9749       if test -d /usr/nec; then
9750         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751         hardcode_shlibpath_var=no
9752         runpath_var=LD_RUN_PATH
9753         hardcode_runpath_var=yes
9754         ld_shlibs=yes
9755       fi
9756       ;;
9757
9758     sysv4.2uw2*)
9759       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9760       hardcode_direct=yes
9761       hardcode_minus_L=no
9762       hardcode_shlibpath_var=no
9763       hardcode_runpath_var=yes
9764       runpath_var=LD_RUN_PATH
9765       ;;
9766
9767    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9768       no_undefined_flag='${wl}-z ${wl}text'
9769       if test "$GCC" = yes; then
9770         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9771       else
9772         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9773       fi
9774       runpath_var='LD_RUN_PATH'
9775       hardcode_shlibpath_var=no
9776       ;;
9777
9778     sysv5*)
9779       no_undefined_flag=' -z text'
9780       # $CC -shared without GNU ld will not create a library from C++
9781       # object files and a static libstdc++, better avoid it by now
9782       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9783       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9784                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9785       hardcode_libdir_flag_spec=
9786       hardcode_shlibpath_var=no
9787       runpath_var='LD_RUN_PATH'
9788       ;;
9789
9790     uts4*)
9791       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792       hardcode_libdir_flag_spec='-L$libdir'
9793       hardcode_shlibpath_var=no
9794       ;;
9795
9796     *)
9797       ld_shlibs=no
9798       ;;
9799     esac
9800   fi
9801
9802 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9803 echo "${ECHO_T}$ld_shlibs" >&6; }
9804 test "$ld_shlibs" = no && can_build_shared=no
9805
9806 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9807 if test "$GCC" = yes; then
9808   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9809 fi
9810
9811 #
9812 # Do we need to explicitly link libc?
9813 #
9814 case "x$archive_cmds_need_lc" in
9815 x|xyes)
9816   # Assume -lc should be added
9817   archive_cmds_need_lc=yes
9818
9819   if test "$enable_shared" = yes && test "$GCC" = yes; then
9820     case $archive_cmds in
9821     *'~'*)
9822       # FIXME: we may have to deal with multi-command sequences.
9823       ;;
9824     '$CC '*)
9825       # Test whether the compiler implicitly links with -lc since on some
9826       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9827       # to ld, don't add -lc before -lgcc.
9828       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9829 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9830       $rm conftest*
9831       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9832
9833       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834   (eval $ac_compile) 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } 2>conftest.err; then
9838         soname=conftest
9839         lib=conftest
9840         libobjs=conftest.$ac_objext
9841         deplibs=
9842         wl=$lt_prog_compiler_wl
9843         compiler_flags=-v
9844         linker_flags=-v
9845         verstring=
9846         output_objdir=.
9847         libname=conftest
9848         lt_save_allow_undefined_flag=$allow_undefined_flag
9849         allow_undefined_flag=
9850         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9851   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }
9855         then
9856           archive_cmds_need_lc=no
9857         else
9858           archive_cmds_need_lc=yes
9859         fi
9860         allow_undefined_flag=$lt_save_allow_undefined_flag
9861       else
9862         cat conftest.err 1>&5
9863       fi
9864       $rm conftest*
9865       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9866 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9867       ;;
9868     esac
9869   fi
9870   ;;
9871 esac
9872
9873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9875 library_names_spec=
9876 libname_spec='lib$name'
9877 soname_spec=
9878 shrext_cmds=".so"
9879 postinstall_cmds=
9880 postuninstall_cmds=
9881 finish_cmds=
9882 finish_eval=
9883 shlibpath_var=
9884 shlibpath_overrides_runpath=unknown
9885 version_type=none
9886 dynamic_linker="$host_os ld.so"
9887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9888 if test "$GCC" = yes; then
9889   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9890   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9891     # if the path contains ";" then we assume it to be the separator
9892     # otherwise default to the standard path separator (i.e. ":") - it is
9893     # assumed that no part of a normal pathname contains ";" but that should
9894     # okay in the real world where ";" in dirpaths is itself problematic.
9895     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9896   else
9897     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9898   fi
9899 else
9900   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9901 fi
9902 need_lib_prefix=unknown
9903 hardcode_into_libs=no
9904
9905 # when you set need_version to no, make sure it does not cause -set_version
9906 # flags to be left without arguments
9907 need_version=unknown
9908
9909 case $host_os in
9910 aix3*)
9911   version_type=linux
9912   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9913   shlibpath_var=LIBPATH
9914
9915   # AIX 3 has no versioning support, so we append a major version to the name.
9916   soname_spec='${libname}${release}${shared_ext}$major'
9917   ;;
9918
9919 aix4* | aix5*)
9920   version_type=linux
9921   need_lib_prefix=no
9922   need_version=no
9923   hardcode_into_libs=yes
9924   if test "$host_cpu" = ia64; then
9925     # AIX 5 supports IA64
9926     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9927     shlibpath_var=LD_LIBRARY_PATH
9928   else
9929     # With GCC up to 2.95.x, collect2 would create an import file
9930     # for dependence libraries.  The import file would start with
9931     # the line `#! .'.  This would cause the generated library to
9932     # depend on `.', always an invalid library.  This was fixed in
9933     # development snapshots of GCC prior to 3.0.
9934     case $host_os in
9935       aix4 | aix4.[01] | aix4.[01].*)
9936       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9937            echo ' yes '
9938            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9939         :
9940       else
9941         can_build_shared=no
9942       fi
9943       ;;
9944     esac
9945     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9946     # soname into executable. Probably we can add versioning support to
9947     # collect2, so additional links can be useful in future.
9948     if test "$aix_use_runtimelinking" = yes; then
9949       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9950       # instead of lib<name>.a to let people know that these are not
9951       # typical AIX shared libraries.
9952       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953     else
9954       # We preserve .a as extension for shared libraries through AIX4.2
9955       # and later when we are not doing run time linking.
9956       library_names_spec='${libname}${release}.a $libname.a'
9957       soname_spec='${libname}${release}${shared_ext}$major'
9958     fi
9959     shlibpath_var=LIBPATH
9960   fi
9961   ;;
9962
9963 amigaos*)
9964   library_names_spec='$libname.ixlibrary $libname.a'
9965   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9966   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'
9967   ;;
9968
9969 beos*)
9970   library_names_spec='${libname}${shared_ext}'
9971   dynamic_linker="$host_os ld.so"
9972   shlibpath_var=LIBRARY_PATH
9973   ;;
9974
9975 bsdi[45]*)
9976   version_type=linux
9977   need_version=no
9978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979   soname_spec='${libname}${release}${shared_ext}$major'
9980   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9981   shlibpath_var=LD_LIBRARY_PATH
9982   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9983   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9984   # the default ld.so.conf also contains /usr/contrib/lib and
9985   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9986   # libtool to hard-code these into programs
9987   ;;
9988
9989 cygwin* | mingw* | pw32*)
9990   version_type=windows
9991   shrext_cmds=".dll"
9992   need_version=no
9993   need_lib_prefix=no
9994
9995   case $GCC,$host_os in
9996   yes,cygwin* | yes,mingw* | yes,pw32*)
9997     library_names_spec='$libname.dll.a'
9998     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9999     postinstall_cmds='base_file=`basename \${file}`~
10000       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10001       dldir=$destdir/`dirname \$dlpath`~
10002       test -d \$dldir || mkdir -p \$dldir~
10003       $install_prog $dir/$dlname \$dldir/$dlname~
10004       chmod a+x \$dldir/$dlname'
10005     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10006       dlpath=$dir/\$dldll~
10007        $rm \$dlpath'
10008     shlibpath_overrides_runpath=yes
10009
10010     case $host_os in
10011     cygwin*)
10012       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10013       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10015       ;;
10016     mingw*)
10017       # MinGW DLLs use traditional 'lib' prefix
10018       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10019       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10020       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10021         # It is most probably a Windows format PATH printed by
10022         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10023         # path with ; separators, and with drive letters. We can handle the
10024         # drive letters (cygwin fileutils understands them), so leave them,
10025         # especially as we might pass files found there to a mingw objdump,
10026         # which wouldn't understand a cygwinified path. Ahh.
10027         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10028       else
10029         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10030       fi
10031       ;;
10032     pw32*)
10033       # pw32 DLLs use 'pw' prefix rather than 'lib'
10034       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10035       ;;
10036     esac
10037     ;;
10038
10039   *)
10040     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10041     ;;
10042   esac
10043   dynamic_linker='Win32 ld.exe'
10044   # FIXME: first we should search . and the directory the executable is in
10045   shlibpath_var=PATH
10046   ;;
10047
10048 darwin* | rhapsody*)
10049   dynamic_linker="$host_os dyld"
10050   version_type=darwin
10051   need_lib_prefix=no
10052   need_version=no
10053   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10054   soname_spec='${libname}${release}${major}$shared_ext'
10055   shlibpath_overrides_runpath=yes
10056   shlibpath_var=DYLD_LIBRARY_PATH
10057   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10058   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10059   if test "$GCC" = yes; then
10060     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"`
10061   else
10062     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10063   fi
10064   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10065   ;;
10066
10067 dgux*)
10068   version_type=linux
10069   need_lib_prefix=no
10070   need_version=no
10071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10072   soname_spec='${libname}${release}${shared_ext}$major'
10073   shlibpath_var=LD_LIBRARY_PATH
10074   ;;
10075
10076 freebsd1*)
10077   dynamic_linker=no
10078   ;;
10079
10080 kfreebsd*-gnu)
10081   version_type=linux
10082   need_lib_prefix=no
10083   need_version=no
10084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10085   soname_spec='${libname}${release}${shared_ext}$major'
10086   shlibpath_var=LD_LIBRARY_PATH
10087   shlibpath_overrides_runpath=no
10088   hardcode_into_libs=yes
10089   dynamic_linker='GNU ld.so'
10090   ;;
10091
10092 freebsd* | dragonfly*)
10093   # DragonFly does not have aout.  When/if they implement a new
10094   # versioning mechanism, adjust this.
10095   if test -x /usr/bin/objformat; then
10096     objformat=`/usr/bin/objformat`
10097   else
10098     case $host_os in
10099     freebsd[123]*) objformat=aout ;;
10100     *) objformat=elf ;;
10101     esac
10102   fi
10103   version_type=freebsd-$objformat
10104   case $version_type in
10105     freebsd-elf*)
10106       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10107       need_version=no
10108       need_lib_prefix=no
10109       ;;
10110     freebsd-*)
10111       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10112       need_version=yes
10113       ;;
10114   esac
10115   shlibpath_var=LD_LIBRARY_PATH
10116   case $host_os in
10117   freebsd2*)
10118     shlibpath_overrides_runpath=yes
10119     ;;
10120   freebsd3.[01]* | freebsdelf3.[01]*)
10121     shlibpath_overrides_runpath=yes
10122     hardcode_into_libs=yes
10123     ;;
10124   *) # from 3.2 on
10125     shlibpath_overrides_runpath=no
10126     hardcode_into_libs=yes
10127     ;;
10128   esac
10129   ;;
10130
10131 gnu*)
10132   version_type=linux
10133   need_lib_prefix=no
10134   need_version=no
10135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10136   soname_spec='${libname}${release}${shared_ext}$major'
10137   shlibpath_var=LD_LIBRARY_PATH
10138   hardcode_into_libs=yes
10139   ;;
10140
10141 hpux9* | hpux10* | hpux11*)
10142   # Give a soname corresponding to the major version so that dld.sl refuses to
10143   # link against other versions.
10144   version_type=sunos
10145   need_lib_prefix=no
10146   need_version=no
10147   case $host_cpu in
10148   ia64*)
10149     shrext_cmds='.so'
10150     hardcode_into_libs=yes
10151     dynamic_linker="$host_os dld.so"
10152     shlibpath_var=LD_LIBRARY_PATH
10153     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155     soname_spec='${libname}${release}${shared_ext}$major'
10156     if test "X$HPUX_IA64_MODE" = X32; then
10157       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10158     else
10159       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10160     fi
10161     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10162     ;;
10163    hppa*64*)
10164      shrext_cmds='.sl'
10165      hardcode_into_libs=yes
10166      dynamic_linker="$host_os dld.sl"
10167      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10168      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10169      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170      soname_spec='${libname}${release}${shared_ext}$major'
10171      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10172      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10173      ;;
10174    *)
10175     shrext_cmds='.sl'
10176     dynamic_linker="$host_os dld.sl"
10177     shlibpath_var=SHLIB_PATH
10178     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180     soname_spec='${libname}${release}${shared_ext}$major'
10181     ;;
10182   esac
10183   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10184   postinstall_cmds='chmod 555 $lib'
10185   ;;
10186
10187 irix5* | irix6* | nonstopux*)
10188   case $host_os in
10189     nonstopux*) version_type=nonstopux ;;
10190     *)
10191         if test "$lt_cv_prog_gnu_ld" = yes; then
10192                 version_type=linux
10193         else
10194                 version_type=irix
10195         fi ;;
10196   esac
10197   need_lib_prefix=no
10198   need_version=no
10199   soname_spec='${libname}${release}${shared_ext}$major'
10200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10201   case $host_os in
10202   irix5* | nonstopux*)
10203     libsuff= shlibsuff=
10204     ;;
10205   *)
10206     case $LD in # libtool.m4 will add one of these switches to LD
10207     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10208       libsuff= shlibsuff= libmagic=32-bit;;
10209     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10210       libsuff=32 shlibsuff=N32 libmagic=N32;;
10211     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10212       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10213     *) libsuff= shlibsuff= libmagic=never-match;;
10214     esac
10215     ;;
10216   esac
10217   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10218   shlibpath_overrides_runpath=no
10219   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10220   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10221   hardcode_into_libs=yes
10222   ;;
10223
10224 # No shared lib support for Linux oldld, aout, or coff.
10225 linux*oldld* | linux*aout* | linux*coff*)
10226   dynamic_linker=no
10227   ;;
10228
10229 # This must be Linux ELF.
10230 linux*)
10231   version_type=linux
10232   need_lib_prefix=no
10233   need_version=no
10234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235   soname_spec='${libname}${release}${shared_ext}$major'
10236   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10237   shlibpath_var=LD_LIBRARY_PATH
10238   shlibpath_overrides_runpath=no
10239   # This implies no fast_install, which is unacceptable.
10240   # Some rework will be needed to allow for fast_install
10241   # before this can be enabled.
10242   hardcode_into_libs=yes
10243
10244   # Append ld.so.conf contents to the search path
10245   if test -f /etc/ld.so.conf; then
10246     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' ' '`
10247     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10248   fi
10249
10250   # We used to test for /lib/ld.so.1 and disable shared libraries on
10251   # powerpc, because MkLinux only supported shared libraries with the
10252   # GNU dynamic linker.  Since this was broken with cross compilers,
10253   # most powerpc-linux boxes support dynamic linking these days and
10254   # people can always --disable-shared, the test was removed, and we
10255   # assume the GNU/Linux dynamic linker is in use.
10256   dynamic_linker='GNU/Linux ld.so'
10257   ;;
10258
10259 knetbsd*-gnu)
10260   version_type=linux
10261   need_lib_prefix=no
10262   need_version=no
10263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10264   soname_spec='${libname}${release}${shared_ext}$major'
10265   shlibpath_var=LD_LIBRARY_PATH
10266   shlibpath_overrides_runpath=no
10267   hardcode_into_libs=yes
10268   dynamic_linker='GNU ld.so'
10269   ;;
10270
10271 netbsd*)
10272   version_type=sunos
10273   need_lib_prefix=no
10274   need_version=no
10275   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10277     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10278     dynamic_linker='NetBSD (a.out) ld.so'
10279   else
10280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10281     soname_spec='${libname}${release}${shared_ext}$major'
10282     dynamic_linker='NetBSD ld.elf_so'
10283   fi
10284   shlibpath_var=LD_LIBRARY_PATH
10285   shlibpath_overrides_runpath=yes
10286   hardcode_into_libs=yes
10287   ;;
10288
10289 newsos6)
10290   version_type=linux
10291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292   shlibpath_var=LD_LIBRARY_PATH
10293   shlibpath_overrides_runpath=yes
10294   ;;
10295
10296 nto-qnx*)
10297   version_type=linux
10298   need_lib_prefix=no
10299   need_version=no
10300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301   soname_spec='${libname}${release}${shared_ext}$major'
10302   shlibpath_var=LD_LIBRARY_PATH
10303   shlibpath_overrides_runpath=yes
10304   ;;
10305
10306 openbsd*)
10307   version_type=sunos
10308   need_lib_prefix=no
10309   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10310   case $host_os in
10311     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10312     *)                         need_version=no  ;;
10313   esac
10314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10315   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10316   shlibpath_var=LD_LIBRARY_PATH
10317   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10318     case $host_os in
10319       openbsd2.[89] | openbsd2.[89].*)
10320         shlibpath_overrides_runpath=no
10321         ;;
10322       *)
10323         shlibpath_overrides_runpath=yes
10324         ;;
10325       esac
10326   else
10327     shlibpath_overrides_runpath=yes
10328   fi
10329   ;;
10330
10331 os2*)
10332   libname_spec='$name'
10333   shrext_cmds=".dll"
10334   need_lib_prefix=no
10335   library_names_spec='$libname${shared_ext} $libname.a'
10336   dynamic_linker='OS/2 ld.exe'
10337   shlibpath_var=LIBPATH
10338   ;;
10339
10340 osf3* | osf4* | osf5*)
10341   version_type=osf
10342   need_lib_prefix=no
10343   need_version=no
10344   soname_spec='${libname}${release}${shared_ext}$major'
10345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346   shlibpath_var=LD_LIBRARY_PATH
10347   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10348   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10349   ;;
10350
10351 sco3.2v5*)
10352   version_type=osf
10353   soname_spec='${libname}${release}${shared_ext}$major'
10354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355   shlibpath_var=LD_LIBRARY_PATH
10356   ;;
10357
10358 solaris*)
10359   version_type=linux
10360   need_lib_prefix=no
10361   need_version=no
10362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363   soname_spec='${libname}${release}${shared_ext}$major'
10364   shlibpath_var=LD_LIBRARY_PATH
10365   shlibpath_overrides_runpath=yes
10366   hardcode_into_libs=yes
10367   # ldd complains unless libraries are executable
10368   postinstall_cmds='chmod +x $lib'
10369   ;;
10370
10371 sunos4*)
10372   version_type=sunos
10373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10374   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10375   shlibpath_var=LD_LIBRARY_PATH
10376   shlibpath_overrides_runpath=yes
10377   if test "$with_gnu_ld" = yes; then
10378     need_lib_prefix=no
10379   fi
10380   need_version=yes
10381   ;;
10382
10383 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10384   version_type=linux
10385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386   soname_spec='${libname}${release}${shared_ext}$major'
10387   shlibpath_var=LD_LIBRARY_PATH
10388   case $host_vendor in
10389     sni)
10390       shlibpath_overrides_runpath=no
10391       need_lib_prefix=no
10392       export_dynamic_flag_spec='${wl}-Blargedynsym'
10393       runpath_var=LD_RUN_PATH
10394       ;;
10395     siemens)
10396       need_lib_prefix=no
10397       ;;
10398     motorola)
10399       need_lib_prefix=no
10400       need_version=no
10401       shlibpath_overrides_runpath=no
10402       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10403       ;;
10404   esac
10405   ;;
10406
10407 sysv4*MP*)
10408   if test -d /usr/nec ;then
10409     version_type=linux
10410     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10411     soname_spec='$libname${shared_ext}.$major'
10412     shlibpath_var=LD_LIBRARY_PATH
10413   fi
10414   ;;
10415
10416 uts4*)
10417   version_type=linux
10418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419   soname_spec='${libname}${release}${shared_ext}$major'
10420   shlibpath_var=LD_LIBRARY_PATH
10421   ;;
10422
10423 *)
10424   dynamic_linker=no
10425   ;;
10426 esac
10427 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10428 echo "${ECHO_T}$dynamic_linker" >&6; }
10429 test "$dynamic_linker" = no && can_build_shared=no
10430
10431 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10432 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10433 hardcode_action=
10434 if test -n "$hardcode_libdir_flag_spec" || \
10435    test -n "$runpath_var" || \
10436    test "X$hardcode_automatic" = "Xyes" ; then
10437
10438   # We can hardcode non-existant directories.
10439   if test "$hardcode_direct" != no &&
10440      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10441      # have to relink, otherwise we might link with an installed library
10442      # when we should be linking with a yet-to-be-installed one
10443      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10444      test "$hardcode_minus_L" != no; then
10445     # Linking always hardcodes the temporary library directory.
10446     hardcode_action=relink
10447   else
10448     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10449     hardcode_action=immediate
10450   fi
10451 else
10452   # We cannot hardcode anything, or else we can only hardcode existing
10453   # directories.
10454   hardcode_action=unsupported
10455 fi
10456 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10457 echo "${ECHO_T}$hardcode_action" >&6; }
10458
10459 if test "$hardcode_action" = relink; then
10460   # Fast installation is not supported
10461   enable_fast_install=no
10462 elif test "$shlibpath_overrides_runpath" = yes ||
10463      test "$enable_shared" = no; then
10464   # Fast installation is not necessary
10465   enable_fast_install=needless
10466 fi
10467
10468 striplib=
10469 old_striplib=
10470 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10471 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10472 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10473   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10474   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10475   { echo "$as_me:$LINENO: result: yes" >&5
10476 echo "${ECHO_T}yes" >&6; }
10477 else
10478 # FIXME - insert some real tests, host_os isn't really good enough
10479   case $host_os in
10480    darwin*)
10481        if test -n "$STRIP" ; then
10482          striplib="$STRIP -x"
10483          { echo "$as_me:$LINENO: result: yes" >&5
10484 echo "${ECHO_T}yes" >&6; }
10485        else
10486   { echo "$as_me:$LINENO: result: no" >&5
10487 echo "${ECHO_T}no" >&6; }
10488 fi
10489        ;;
10490    *)
10491   { echo "$as_me:$LINENO: result: no" >&5
10492 echo "${ECHO_T}no" >&6; }
10493     ;;
10494   esac
10495 fi
10496
10497 if test "x$enable_dlopen" != xyes; then
10498   enable_dlopen=unknown
10499   enable_dlopen_self=unknown
10500   enable_dlopen_self_static=unknown
10501 else
10502   lt_cv_dlopen=no
10503   lt_cv_dlopen_libs=
10504
10505   case $host_os in
10506   beos*)
10507     lt_cv_dlopen="load_add_on"
10508     lt_cv_dlopen_libs=
10509     lt_cv_dlopen_self=yes
10510     ;;
10511
10512   mingw* | pw32*)
10513     lt_cv_dlopen="LoadLibrary"
10514     lt_cv_dlopen_libs=
10515    ;;
10516
10517   cygwin*)
10518     lt_cv_dlopen="dlopen"
10519     lt_cv_dlopen_libs=
10520    ;;
10521
10522   darwin*)
10523   # if libdl is installed we need to link against it
10524     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10525 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10526 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10527   echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529   ac_check_lib_save_LIBS=$LIBS
10530 LIBS="-ldl  $LIBS"
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h.  */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h.  */
10537
10538 /* Override any GCC internal prototype to avoid an error.
10539    Use char because int might match the return type of a GCC
10540    builtin and then its argument prototype would still apply.  */
10541 #ifdef __cplusplus
10542 extern "C"
10543 #endif
10544 char dlopen ();
10545 int
10546 main ()
10547 {
10548 return dlopen ();
10549   ;
10550   return 0;
10551 }
10552 _ACEOF
10553 rm -f conftest.$ac_objext conftest$ac_exeext
10554 if { (ac_try="$ac_link"
10555 case "(($ac_try" in
10556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557   *) ac_try_echo=$ac_try;;
10558 esac
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560   (eval "$ac_link") 2>conftest.er1
10561   ac_status=$?
10562   grep -v '^ *+' conftest.er1 >conftest.err
10563   rm -f conftest.er1
10564   cat conftest.err >&5
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); } && {
10567          test -z "$ac_c_werror_flag" ||
10568          test ! -s conftest.err
10569        } && test -s conftest$ac_exeext &&
10570        $as_test_x conftest$ac_exeext; then
10571   ac_cv_lib_dl_dlopen=yes
10572 else
10573   echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10575
10576         ac_cv_lib_dl_dlopen=no
10577 fi
10578
10579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10580       conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10582 fi
10583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10584 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10585 if test $ac_cv_lib_dl_dlopen = yes; then
10586   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10587 else
10588
10589     lt_cv_dlopen="dyld"
10590     lt_cv_dlopen_libs=
10591     lt_cv_dlopen_self=yes
10592
10593 fi
10594
10595    ;;
10596
10597   *)
10598     { echo "$as_me:$LINENO: checking for shl_load" >&5
10599 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10600 if test "${ac_cv_func_shl_load+set}" = set; then
10601   echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603   cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h.  */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h.  */
10609 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10611 #define shl_load innocuous_shl_load
10612
10613 /* System header to define __stub macros and hopefully few prototypes,
10614     which can conflict with char shl_load (); below.
10615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10616     <limits.h> exists even on freestanding compilers.  */
10617
10618 #ifdef __STDC__
10619 # include <limits.h>
10620 #else
10621 # include <assert.h>
10622 #endif
10623
10624 #undef shl_load
10625
10626 /* Override any GCC internal prototype to avoid an error.
10627    Use char because int might match the return type of a GCC
10628    builtin and then its argument prototype would still apply.  */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 char shl_load ();
10633 /* The GNU C library defines this for functions which it implements
10634     to always fail with ENOSYS.  Some functions are actually named
10635     something starting with __ and the normal name is an alias.  */
10636 #if defined __stub_shl_load || defined __stub___shl_load
10637 choke me
10638 #endif
10639
10640 int
10641 main ()
10642 {
10643 return shl_load ();
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (ac_try="$ac_link"
10650 case "(($ac_try" in
10651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652   *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655   (eval "$ac_link") 2>conftest.er1
10656   ac_status=$?
10657   grep -v '^ *+' conftest.er1 >conftest.err
10658   rm -f conftest.er1
10659   cat conftest.err >&5
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); } && {
10662          test -z "$ac_c_werror_flag" ||
10663          test ! -s conftest.err
10664        } && test -s conftest$ac_exeext &&
10665        $as_test_x conftest$ac_exeext; then
10666   ac_cv_func_shl_load=yes
10667 else
10668   echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10670
10671         ac_cv_func_shl_load=no
10672 fi
10673
10674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10675       conftest$ac_exeext conftest.$ac_ext
10676 fi
10677 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10678 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10679 if test $ac_cv_func_shl_load = yes; then
10680   lt_cv_dlopen="shl_load"
10681 else
10682   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10683 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10684 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10685   echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687   ac_check_lib_save_LIBS=$LIBS
10688 LIBS="-ldld  $LIBS"
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h.  */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h.  */
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697    Use char because int might match the return type of a GCC
10698    builtin and then its argument prototype would still apply.  */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char shl_load ();
10703 int
10704 main ()
10705 {
10706 return shl_load ();
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 rm -f conftest.$ac_objext conftest$ac_exeext
10712 if { (ac_try="$ac_link"
10713 case "(($ac_try" in
10714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715   *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718   (eval "$ac_link") 2>conftest.er1
10719   ac_status=$?
10720   grep -v '^ *+' conftest.er1 >conftest.err
10721   rm -f conftest.er1
10722   cat conftest.err >&5
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); } && {
10725          test -z "$ac_c_werror_flag" ||
10726          test ! -s conftest.err
10727        } && test -s conftest$ac_exeext &&
10728        $as_test_x conftest$ac_exeext; then
10729   ac_cv_lib_dld_shl_load=yes
10730 else
10731   echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10733
10734         ac_cv_lib_dld_shl_load=no
10735 fi
10736
10737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10738       conftest$ac_exeext conftest.$ac_ext
10739 LIBS=$ac_check_lib_save_LIBS
10740 fi
10741 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10742 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10743 if test $ac_cv_lib_dld_shl_load = yes; then
10744   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10745 else
10746   { echo "$as_me:$LINENO: checking for dlopen" >&5
10747 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10748 if test "${ac_cv_func_dlopen+set}" = set; then
10749   echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751   cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h.  */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h.  */
10757 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10759 #define dlopen innocuous_dlopen
10760
10761 /* System header to define __stub macros and hopefully few prototypes,
10762     which can conflict with char dlopen (); below.
10763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10764     <limits.h> exists even on freestanding compilers.  */
10765
10766 #ifdef __STDC__
10767 # include <limits.h>
10768 #else
10769 # include <assert.h>
10770 #endif
10771
10772 #undef dlopen
10773
10774 /* Override any GCC internal prototype to avoid an error.
10775    Use char because int might match the return type of a GCC
10776    builtin and then its argument prototype would still apply.  */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 char dlopen ();
10781 /* The GNU C library defines this for functions which it implements
10782     to always fail with ENOSYS.  Some functions are actually named
10783     something starting with __ and the normal name is an alias.  */
10784 #if defined __stub_dlopen || defined __stub___dlopen
10785 choke me
10786 #endif
10787
10788 int
10789 main ()
10790 {
10791 return dlopen ();
10792   ;
10793   return 0;
10794 }
10795 _ACEOF
10796 rm -f conftest.$ac_objext conftest$ac_exeext
10797 if { (ac_try="$ac_link"
10798 case "(($ac_try" in
10799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800   *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803   (eval "$ac_link") 2>conftest.er1
10804   ac_status=$?
10805   grep -v '^ *+' conftest.er1 >conftest.err
10806   rm -f conftest.er1
10807   cat conftest.err >&5
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); } && {
10810          test -z "$ac_c_werror_flag" ||
10811          test ! -s conftest.err
10812        } && test -s conftest$ac_exeext &&
10813        $as_test_x conftest$ac_exeext; then
10814   ac_cv_func_dlopen=yes
10815 else
10816   echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10818
10819         ac_cv_func_dlopen=no
10820 fi
10821
10822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10823       conftest$ac_exeext conftest.$ac_ext
10824 fi
10825 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10826 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10827 if test $ac_cv_func_dlopen = yes; then
10828   lt_cv_dlopen="dlopen"
10829 else
10830   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10831 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10832 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   ac_check_lib_save_LIBS=$LIBS
10836 LIBS="-ldl  $LIBS"
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h.  */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h.  */
10843
10844 /* Override any GCC internal prototype to avoid an error.
10845    Use char because int might match the return type of a GCC
10846    builtin and then its argument prototype would still apply.  */
10847 #ifdef __cplusplus
10848 extern "C"
10849 #endif
10850 char dlopen ();
10851 int
10852 main ()
10853 {
10854 return dlopen ();
10855   ;
10856   return 0;
10857 }
10858 _ACEOF
10859 rm -f conftest.$ac_objext conftest$ac_exeext
10860 if { (ac_try="$ac_link"
10861 case "(($ac_try" in
10862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863   *) ac_try_echo=$ac_try;;
10864 esac
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866   (eval "$ac_link") 2>conftest.er1
10867   ac_status=$?
10868   grep -v '^ *+' conftest.er1 >conftest.err
10869   rm -f conftest.er1
10870   cat conftest.err >&5
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); } && {
10873          test -z "$ac_c_werror_flag" ||
10874          test ! -s conftest.err
10875        } && test -s conftest$ac_exeext &&
10876        $as_test_x conftest$ac_exeext; then
10877   ac_cv_lib_dl_dlopen=yes
10878 else
10879   echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10881
10882         ac_cv_lib_dl_dlopen=no
10883 fi
10884
10885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10886       conftest$ac_exeext conftest.$ac_ext
10887 LIBS=$ac_check_lib_save_LIBS
10888 fi
10889 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10890 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10891 if test $ac_cv_lib_dl_dlopen = yes; then
10892   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10893 else
10894   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10895 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10896 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10897   echo $ECHO_N "(cached) $ECHO_C" >&6
10898 else
10899   ac_check_lib_save_LIBS=$LIBS
10900 LIBS="-lsvld  $LIBS"
10901 cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h.  */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h.  */
10907
10908 /* Override any GCC internal prototype to avoid an error.
10909    Use char because int might match the return type of a GCC
10910    builtin and then its argument prototype would still apply.  */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char dlopen ();
10915 int
10916 main ()
10917 {
10918 return dlopen ();
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (ac_try="$ac_link"
10925 case "(($ac_try" in
10926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927   *) ac_try_echo=$ac_try;;
10928 esac
10929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930   (eval "$ac_link") 2>conftest.er1
10931   ac_status=$?
10932   grep -v '^ *+' conftest.er1 >conftest.err
10933   rm -f conftest.er1
10934   cat conftest.err >&5
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); } && {
10937          test -z "$ac_c_werror_flag" ||
10938          test ! -s conftest.err
10939        } && test -s conftest$ac_exeext &&
10940        $as_test_x conftest$ac_exeext; then
10941   ac_cv_lib_svld_dlopen=yes
10942 else
10943   echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10945
10946         ac_cv_lib_svld_dlopen=no
10947 fi
10948
10949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10950       conftest$ac_exeext conftest.$ac_ext
10951 LIBS=$ac_check_lib_save_LIBS
10952 fi
10953 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10954 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10955 if test $ac_cv_lib_svld_dlopen = yes; then
10956   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10957 else
10958   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10959 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10960 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10961   echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963   ac_check_lib_save_LIBS=$LIBS
10964 LIBS="-ldld  $LIBS"
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h.  */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h.  */
10971
10972 /* Override any GCC internal prototype to avoid an error.
10973    Use char because int might match the return type of a GCC
10974    builtin and then its argument prototype would still apply.  */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 char dld_link ();
10979 int
10980 main ()
10981 {
10982 return dld_link ();
10983   ;
10984   return 0;
10985 }
10986 _ACEOF
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (ac_try="$ac_link"
10989 case "(($ac_try" in
10990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991   *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994   (eval "$ac_link") 2>conftest.er1
10995   ac_status=$?
10996   grep -v '^ *+' conftest.er1 >conftest.err
10997   rm -f conftest.er1
10998   cat conftest.err >&5
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } && {
11001          test -z "$ac_c_werror_flag" ||
11002          test ! -s conftest.err
11003        } && test -s conftest$ac_exeext &&
11004        $as_test_x conftest$ac_exeext; then
11005   ac_cv_lib_dld_dld_link=yes
11006 else
11007   echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010         ac_cv_lib_dld_dld_link=no
11011 fi
11012
11013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11014       conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11016 fi
11017 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11018 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11019 if test $ac_cv_lib_dld_dld_link = yes; then
11020   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11021 fi
11022
11023
11024 fi
11025
11026
11027 fi
11028
11029
11030 fi
11031
11032
11033 fi
11034
11035
11036 fi
11037
11038     ;;
11039   esac
11040
11041   if test "x$lt_cv_dlopen" != xno; then
11042     enable_dlopen=yes
11043   else
11044     enable_dlopen=no
11045   fi
11046
11047   case $lt_cv_dlopen in
11048   dlopen)
11049     save_CPPFLAGS="$CPPFLAGS"
11050     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11051
11052     save_LDFLAGS="$LDFLAGS"
11053     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11054
11055     save_LIBS="$LIBS"
11056     LIBS="$lt_cv_dlopen_libs $LIBS"
11057
11058     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11059 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11060 if test "${lt_cv_dlopen_self+set}" = set; then
11061   echo $ECHO_N "(cached) $ECHO_C" >&6
11062 else
11063           if test "$cross_compiling" = yes; then :
11064   lt_cv_dlopen_self=cross
11065 else
11066   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11067   lt_status=$lt_dlunknown
11068   cat > conftest.$ac_ext <<EOF
11069 #line 11069 "configure"
11070 #include "confdefs.h"
11071
11072 #if HAVE_DLFCN_H
11073 #include <dlfcn.h>
11074 #endif
11075
11076 #include <stdio.h>
11077
11078 #ifdef RTLD_GLOBAL
11079 #  define LT_DLGLOBAL           RTLD_GLOBAL
11080 #else
11081 #  ifdef DL_GLOBAL
11082 #    define LT_DLGLOBAL         DL_GLOBAL
11083 #  else
11084 #    define LT_DLGLOBAL         0
11085 #  endif
11086 #endif
11087
11088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11089    find out it does not work in some platform. */
11090 #ifndef LT_DLLAZY_OR_NOW
11091 #  ifdef RTLD_LAZY
11092 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11093 #  else
11094 #    ifdef DL_LAZY
11095 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11096 #    else
11097 #      ifdef RTLD_NOW
11098 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11099 #      else
11100 #        ifdef DL_NOW
11101 #          define LT_DLLAZY_OR_NOW      DL_NOW
11102 #        else
11103 #          define LT_DLLAZY_OR_NOW      0
11104 #        endif
11105 #      endif
11106 #    endif
11107 #  endif
11108 #endif
11109
11110 #ifdef __cplusplus
11111 extern "C" void exit (int);
11112 #endif
11113
11114 void fnord() { int i=42;}
11115 int main ()
11116 {
11117   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11118   int status = $lt_dlunknown;
11119
11120   if (self)
11121     {
11122       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11123       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11124       /* dlclose (self); */
11125     }
11126
11127     exit (status);
11128 }
11129 EOF
11130   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131   (eval $ac_link) 2>&5
11132   ac_status=$?
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11135     (./conftest; exit; ) >&5 2>/dev/null
11136     lt_status=$?
11137     case x$lt_status in
11138       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11139       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11140       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11141     esac
11142   else :
11143     # compilation failed
11144     lt_cv_dlopen_self=no
11145   fi
11146 fi
11147 rm -fr conftest*
11148
11149
11150 fi
11151 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11152 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11153
11154     if test "x$lt_cv_dlopen_self" = xyes; then
11155       LDFLAGS="$LDFLAGS $link_static_flag"
11156       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11157 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11158 if test "${lt_cv_dlopen_self_static+set}" = set; then
11159   echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161           if test "$cross_compiling" = yes; then :
11162   lt_cv_dlopen_self_static=cross
11163 else
11164   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11165   lt_status=$lt_dlunknown
11166   cat > conftest.$ac_ext <<EOF
11167 #line 11167 "configure"
11168 #include "confdefs.h"
11169
11170 #if HAVE_DLFCN_H
11171 #include <dlfcn.h>
11172 #endif
11173
11174 #include <stdio.h>
11175
11176 #ifdef RTLD_GLOBAL
11177 #  define LT_DLGLOBAL           RTLD_GLOBAL
11178 #else
11179 #  ifdef DL_GLOBAL
11180 #    define LT_DLGLOBAL         DL_GLOBAL
11181 #  else
11182 #    define LT_DLGLOBAL         0
11183 #  endif
11184 #endif
11185
11186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11187    find out it does not work in some platform. */
11188 #ifndef LT_DLLAZY_OR_NOW
11189 #  ifdef RTLD_LAZY
11190 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11191 #  else
11192 #    ifdef DL_LAZY
11193 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11194 #    else
11195 #      ifdef RTLD_NOW
11196 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11197 #      else
11198 #        ifdef DL_NOW
11199 #          define LT_DLLAZY_OR_NOW      DL_NOW
11200 #        else
11201 #          define LT_DLLAZY_OR_NOW      0
11202 #        endif
11203 #      endif
11204 #    endif
11205 #  endif
11206 #endif
11207
11208 #ifdef __cplusplus
11209 extern "C" void exit (int);
11210 #endif
11211
11212 void fnord() { int i=42;}
11213 int main ()
11214 {
11215   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11216   int status = $lt_dlunknown;
11217
11218   if (self)
11219     {
11220       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11221       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11222       /* dlclose (self); */
11223     }
11224
11225     exit (status);
11226 }
11227 EOF
11228   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229   (eval $ac_link) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11233     (./conftest; exit; ) >&5 2>/dev/null
11234     lt_status=$?
11235     case x$lt_status in
11236       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11237       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11238       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11239     esac
11240   else :
11241     # compilation failed
11242     lt_cv_dlopen_self_static=no
11243   fi
11244 fi
11245 rm -fr conftest*
11246
11247
11248 fi
11249 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11250 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11251     fi
11252
11253     CPPFLAGS="$save_CPPFLAGS"
11254     LDFLAGS="$save_LDFLAGS"
11255     LIBS="$save_LIBS"
11256     ;;
11257   esac
11258
11259   case $lt_cv_dlopen_self in
11260   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11261   *) enable_dlopen_self=unknown ;;
11262   esac
11263
11264   case $lt_cv_dlopen_self_static in
11265   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11266   *) enable_dlopen_self_static=unknown ;;
11267   esac
11268 fi
11269
11270
11271 # Report which librarie types wil actually be built
11272 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11273 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11274 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11275 echo "${ECHO_T}$can_build_shared" >&6; }
11276
11277 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11278 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11279 test "$can_build_shared" = "no" && enable_shared=no
11280
11281 # On AIX, shared libraries and static libraries use the same namespace, and
11282 # are all built from PIC.
11283 case $host_os in
11284 aix3*)
11285   test "$enable_shared" = yes && enable_static=no
11286   if test -n "$RANLIB"; then
11287     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11288     postinstall_cmds='$RANLIB $lib'
11289   fi
11290   ;;
11291
11292 aix4* | aix5*)
11293   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11294     test "$enable_shared" = yes && enable_static=no
11295   fi
11296     ;;
11297 esac
11298 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11299 echo "${ECHO_T}$enable_shared" >&6; }
11300
11301 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11302 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11303 # Make sure either enable_shared or enable_static is yes.
11304 test "$enable_shared" = yes || enable_static=yes
11305 { echo "$as_me:$LINENO: result: $enable_static" >&5
11306 echo "${ECHO_T}$enable_static" >&6; }
11307
11308 # The else clause should only fire when bootstrapping the
11309 # libtool distribution, otherwise you forgot to ship ltmain.sh
11310 # with your package, and you will get complaints that there are
11311 # no rules to generate ltmain.sh.
11312 if test -f "$ltmain"; then
11313   # See if we are running on zsh, and set the options which allow our commands through
11314   # without removal of \ escapes.
11315   if test -n "${ZSH_VERSION+set}" ; then
11316     setopt NO_GLOB_SUBST
11317   fi
11318   # Now quote all the things that may contain metacharacters while being
11319   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11320   # variables and quote the copies for generation of the libtool script.
11321   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11322     SED SHELL STRIP \
11323     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11324     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11325     deplibs_check_method reload_flag reload_cmds need_locks \
11326     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11327     lt_cv_sys_global_symbol_to_c_name_address \
11328     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11329     old_postinstall_cmds old_postuninstall_cmds \
11330     compiler \
11331     CC \
11332     LD \
11333     lt_prog_compiler_wl \
11334     lt_prog_compiler_pic \
11335     lt_prog_compiler_static \
11336     lt_prog_compiler_no_builtin_flag \
11337     export_dynamic_flag_spec \
11338     thread_safe_flag_spec \
11339     whole_archive_flag_spec \
11340     enable_shared_with_static_runtimes \
11341     old_archive_cmds \
11342     old_archive_from_new_cmds \
11343     predep_objects \
11344     postdep_objects \
11345     predeps \
11346     postdeps \
11347     compiler_lib_search_path \
11348     archive_cmds \
11349     archive_expsym_cmds \
11350     postinstall_cmds \
11351     postuninstall_cmds \
11352     old_archive_from_expsyms_cmds \
11353     allow_undefined_flag \
11354     no_undefined_flag \
11355     export_symbols_cmds \
11356     hardcode_libdir_flag_spec \
11357     hardcode_libdir_flag_spec_ld \
11358     hardcode_libdir_separator \
11359     hardcode_automatic \
11360     module_cmds \
11361     module_expsym_cmds \
11362     lt_cv_prog_compiler_c_o \
11363     exclude_expsyms \
11364     include_expsyms; do
11365
11366     case $var in
11367     old_archive_cmds | \
11368     old_archive_from_new_cmds | \
11369     archive_cmds | \
11370     archive_expsym_cmds | \
11371     module_cmds | \
11372     module_expsym_cmds | \
11373     old_archive_from_expsyms_cmds | \
11374     export_symbols_cmds | \
11375     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11376     postinstall_cmds | postuninstall_cmds | \
11377     old_postinstall_cmds | old_postuninstall_cmds | \
11378     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11379       # Double-quote double-evaled strings.
11380       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11381       ;;
11382     *)
11383       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11384       ;;
11385     esac
11386   done
11387
11388   case $lt_echo in
11389   *'\$0 --fallback-echo"')
11390     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11391     ;;
11392   esac
11393
11394 cfgfile="${ofile}T"
11395   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11396   $rm -f "$cfgfile"
11397   { echo "$as_me:$LINENO: creating $ofile" >&5
11398 echo "$as_me: creating $ofile" >&6;}
11399
11400   cat <<__EOF__ >> "$cfgfile"
11401 #! $SHELL
11402
11403 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11404 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11405 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11406 #
11407 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11408 # Free Software Foundation, Inc.
11409 #
11410 # This file is part of GNU Libtool:
11411 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11412 #
11413 # This program is free software; you can redistribute it and/or modify
11414 # it under the terms of the GNU General Public License as published by
11415 # the Free Software Foundation; either version 2 of the License, or
11416 # (at your option) any later version.
11417 #
11418 # This program is distributed in the hope that it will be useful, but
11419 # WITHOUT ANY WARRANTY; without even the implied warranty of
11420 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11421 # General Public License for more details.
11422 #
11423 # You should have received a copy of the GNU General Public License
11424 # along with this program; if not, write to the Free Software
11425 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11426 #
11427 # As a special exception to the GNU General Public License, if you
11428 # distribute this file as part of a program that contains a
11429 # configuration script generated by Autoconf, you may include it under
11430 # the same distribution terms that you use for the rest of that program.
11431
11432 # A sed program that does not truncate output.
11433 SED=$lt_SED
11434
11435 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11436 Xsed="$SED -e 1s/^X//"
11437
11438 # The HP-UX ksh and POSIX shell print the target directory to stdout
11439 # if CDPATH is set.
11440 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11441
11442 # The names of the tagged configurations supported by this script.
11443 available_tags=
11444
11445 # ### BEGIN LIBTOOL CONFIG
11446
11447 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11448
11449 # Shell to use when invoking shell scripts.
11450 SHELL=$lt_SHELL
11451
11452 # Whether or not to build shared libraries.
11453 build_libtool_libs=$enable_shared
11454
11455 # Whether or not to build static libraries.
11456 build_old_libs=$enable_static
11457
11458 # Whether or not to add -lc for building shared libraries.
11459 build_libtool_need_lc=$archive_cmds_need_lc
11460
11461 # Whether or not to disallow shared libs when runtime libs are static
11462 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11463
11464 # Whether or not to optimize for fast installation.
11465 fast_install=$enable_fast_install
11466
11467 # The host system.
11468 host_alias=$host_alias
11469 host=$host
11470 host_os=$host_os
11471
11472 # The build system.
11473 build_alias=$build_alias
11474 build=$build
11475 build_os=$build_os
11476
11477 # An echo program that does not interpret backslashes.
11478 echo=$lt_echo
11479
11480 # The archiver.
11481 AR=$lt_AR
11482 AR_FLAGS=$lt_AR_FLAGS
11483
11484 # A C compiler.
11485 LTCC=$lt_LTCC
11486
11487 # A language-specific compiler.
11488 CC=$lt_compiler
11489
11490 # Is the compiler the GNU C compiler?
11491 with_gcc=$GCC
11492
11493 # An ERE matcher.
11494 EGREP=$lt_EGREP
11495
11496 # The linker used to build libraries.
11497 LD=$lt_LD
11498
11499 # Whether we need hard or soft links.
11500 LN_S=$lt_LN_S
11501
11502 # A BSD-compatible nm program.
11503 NM=$lt_NM
11504
11505 # A symbol stripping program
11506 STRIP=$lt_STRIP
11507
11508 # Used to examine libraries when file_magic_cmd begins "file"
11509 MAGIC_CMD=$MAGIC_CMD
11510
11511 # Used on cygwin: DLL creation program.
11512 DLLTOOL="$DLLTOOL"
11513
11514 # Used on cygwin: object dumper.
11515 OBJDUMP="$OBJDUMP"
11516
11517 # Used on cygwin: assembler.
11518 AS="$AS"
11519
11520 # The name of the directory that contains temporary libtool files.
11521 objdir=$objdir
11522
11523 # How to create reloadable object files.
11524 reload_flag=$lt_reload_flag
11525 reload_cmds=$lt_reload_cmds
11526
11527 # How to pass a linker flag through the compiler.
11528 wl=$lt_lt_prog_compiler_wl
11529
11530 # Object file suffix (normally "o").
11531 objext="$ac_objext"
11532
11533 # Old archive suffix (normally "a").
11534 libext="$libext"
11535
11536 # Shared library suffix (normally ".so").
11537 shrext_cmds='$shrext_cmds'
11538
11539 # Executable file suffix (normally "").
11540 exeext="$exeext"
11541
11542 # Additional compiler flags for building library objects.
11543 pic_flag=$lt_lt_prog_compiler_pic
11544 pic_mode=$pic_mode
11545
11546 # What is the maximum length of a command?
11547 max_cmd_len=$lt_cv_sys_max_cmd_len
11548
11549 # Does compiler simultaneously support -c and -o options?
11550 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11551
11552 # Must we lock files when doing compilation?
11553 need_locks=$lt_need_locks
11554
11555 # Do we need the lib prefix for modules?
11556 need_lib_prefix=$need_lib_prefix
11557
11558 # Do we need a version for libraries?
11559 need_version=$need_version
11560
11561 # Whether dlopen is supported.
11562 dlopen_support=$enable_dlopen
11563
11564 # Whether dlopen of programs is supported.
11565 dlopen_self=$enable_dlopen_self
11566
11567 # Whether dlopen of statically linked programs is supported.
11568 dlopen_self_static=$enable_dlopen_self_static
11569
11570 # Compiler flag to prevent dynamic linking.
11571 link_static_flag=$lt_lt_prog_compiler_static
11572
11573 # Compiler flag to turn off builtin functions.
11574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11575
11576 # Compiler flag to allow reflexive dlopens.
11577 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11578
11579 # Compiler flag to generate shared objects directly from archives.
11580 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11581
11582 # Compiler flag to generate thread-safe objects.
11583 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11584
11585 # Library versioning type.
11586 version_type=$version_type
11587
11588 # Format of library name prefix.
11589 libname_spec=$lt_libname_spec
11590
11591 # List of archive names.  First name is the real one, the rest are links.
11592 # The last name is the one that the linker finds with -lNAME.
11593 library_names_spec=$lt_library_names_spec
11594
11595 # The coded name of the library, if different from the real name.
11596 soname_spec=$lt_soname_spec
11597
11598 # Commands used to build and install an old-style archive.
11599 RANLIB=$lt_RANLIB
11600 old_archive_cmds=$lt_old_archive_cmds
11601 old_postinstall_cmds=$lt_old_postinstall_cmds
11602 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11603
11604 # Create an old-style archive from a shared archive.
11605 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11606
11607 # Create a temporary old-style archive to link instead of a shared archive.
11608 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11609
11610 # Commands used to build and install a shared archive.
11611 archive_cmds=$lt_archive_cmds
11612 archive_expsym_cmds=$lt_archive_expsym_cmds
11613 postinstall_cmds=$lt_postinstall_cmds
11614 postuninstall_cmds=$lt_postuninstall_cmds
11615
11616 # Commands used to build a loadable module (assumed same as above if empty)
11617 module_cmds=$lt_module_cmds
11618 module_expsym_cmds=$lt_module_expsym_cmds
11619
11620 # Commands to strip libraries.
11621 old_striplib=$lt_old_striplib
11622 striplib=$lt_striplib
11623
11624 # Dependencies to place before the objects being linked to create a
11625 # shared library.
11626 predep_objects=$lt_predep_objects
11627
11628 # Dependencies to place after the objects being linked to create a
11629 # shared library.
11630 postdep_objects=$lt_postdep_objects
11631
11632 # Dependencies to place before the objects being linked to create a
11633 # shared library.
11634 predeps=$lt_predeps
11635
11636 # Dependencies to place after the objects being linked to create a
11637 # shared library.
11638 postdeps=$lt_postdeps
11639
11640 # The library search path used internally by the compiler when linking
11641 # a shared library.
11642 compiler_lib_search_path=$lt_compiler_lib_search_path
11643
11644 # Method to check whether dependent libraries are shared objects.
11645 deplibs_check_method=$lt_deplibs_check_method
11646
11647 # Command to use when deplibs_check_method == file_magic.
11648 file_magic_cmd=$lt_file_magic_cmd
11649
11650 # Flag that allows shared libraries with undefined symbols to be built.
11651 allow_undefined_flag=$lt_allow_undefined_flag
11652
11653 # Flag that forces no undefined symbols.
11654 no_undefined_flag=$lt_no_undefined_flag
11655
11656 # Commands used to finish a libtool library installation in a directory.
11657 finish_cmds=$lt_finish_cmds
11658
11659 # Same as above, but a single script fragment to be evaled but not shown.
11660 finish_eval=$lt_finish_eval
11661
11662 # Take the output of nm and produce a listing of raw symbols and C names.
11663 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11664
11665 # Transform the output of nm in a proper C declaration
11666 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11667
11668 # Transform the output of nm in a C name address pair
11669 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11670
11671 # This is the shared library runtime path variable.
11672 runpath_var=$runpath_var
11673
11674 # This is the shared library path variable.
11675 shlibpath_var=$shlibpath_var
11676
11677 # Is shlibpath searched before the hard-coded library search path?
11678 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11679
11680 # How to hardcode a shared library path into an executable.
11681 hardcode_action=$hardcode_action
11682
11683 # Whether we should hardcode library paths into libraries.
11684 hardcode_into_libs=$hardcode_into_libs
11685
11686 # Flag to hardcode \$libdir into a binary during linking.
11687 # This must work even if \$libdir does not exist.
11688 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11689
11690 # If ld is used when linking, flag to hardcode \$libdir into
11691 # a binary during linking. This must work even if \$libdir does
11692 # not exist.
11693 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11694
11695 # Whether we need a single -rpath flag with a separated argument.
11696 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11697
11698 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11699 # resulting binary.
11700 hardcode_direct=$hardcode_direct
11701
11702 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11703 # resulting binary.
11704 hardcode_minus_L=$hardcode_minus_L
11705
11706 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11707 # the resulting binary.
11708 hardcode_shlibpath_var=$hardcode_shlibpath_var
11709
11710 # Set to yes if building a shared library automatically hardcodes DIR into the library
11711 # and all subsequent libraries and executables linked against it.
11712 hardcode_automatic=$hardcode_automatic
11713
11714 # Variables whose values should be saved in libtool wrapper scripts and
11715 # restored at relink time.
11716 variables_saved_for_relink="$variables_saved_for_relink"
11717
11718 # Whether libtool must link a program against all its dependency libraries.
11719 link_all_deplibs=$link_all_deplibs
11720
11721 # Compile-time system search path for libraries
11722 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11723
11724 # Run-time system search path for libraries
11725 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11726
11727 # Fix the shell variable \$srcfile for the compiler.
11728 fix_srcfile_path="$fix_srcfile_path"
11729
11730 # Set to yes if exported symbols are required.
11731 always_export_symbols=$always_export_symbols
11732
11733 # The commands to list exported symbols.
11734 export_symbols_cmds=$lt_export_symbols_cmds
11735
11736 # The commands to extract the exported symbol list from a shared archive.
11737 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11738
11739 # Symbols that should not be listed in the preloaded symbols.
11740 exclude_expsyms=$lt_exclude_expsyms
11741
11742 # Symbols that must always be exported.
11743 include_expsyms=$lt_include_expsyms
11744
11745 # ### END LIBTOOL CONFIG
11746
11747 __EOF__
11748
11749
11750   case $host_os in
11751   aix3*)
11752     cat <<\EOF >> "$cfgfile"
11753
11754 # AIX sometimes has problems with the GCC collect2 program.  For some
11755 # reason, if we set the COLLECT_NAMES environment variable, the problems
11756 # vanish in a puff of smoke.
11757 if test "X${COLLECT_NAMES+set}" != Xset; then
11758   COLLECT_NAMES=
11759   export COLLECT_NAMES
11760 fi
11761 EOF
11762     ;;
11763   esac
11764
11765   # We use sed instead of cat because bash on DJGPP gets confused if
11766   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11767   # text mode, it properly converts lines to CR/LF.  This bash problem
11768   # is reportedly fixed, but why not run on old versions too?
11769   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11770
11771   mv -f "$cfgfile" "$ofile" || \
11772     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11773   chmod +x "$ofile"
11774
11775 else
11776   # If there is no Makefile yet, we rely on a make rule to execute
11777   # `config.status --recheck' to rerun these tests and create the
11778   # libtool script then.
11779   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11780   if test -f "$ltmain_in"; then
11781     test -f Makefile && make "$ltmain"
11782   fi
11783 fi
11784
11785
11786 ac_ext=c
11787 ac_cpp='$CPP $CPPFLAGS'
11788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11791
11792 CC="$lt_save_CC"
11793
11794
11795 # Check whether --with-tags was given.
11796 if test "${with_tags+set}" = set; then
11797   withval=$with_tags; tagnames="$withval"
11798 fi
11799
11800
11801 if test -f "$ltmain" && test -n "$tagnames"; then
11802   if test ! -f "${ofile}"; then
11803     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11804 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11805   fi
11806
11807   if test -z "$LTCC"; then
11808     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11809     if test -z "$LTCC"; then
11810       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11811 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11812     else
11813       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11814 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11815     fi
11816   fi
11817
11818   # Extract list of available tagged configurations in $ofile.
11819   # Note that this assumes the entire list is on one line.
11820   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11821
11822   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11823   for tagname in $tagnames; do
11824     IFS="$lt_save_ifs"
11825     # Check whether tagname contains only valid characters
11826     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11827     "") ;;
11828     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11829 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11830    { (exit 1); exit 1; }; }
11831         ;;
11832     esac
11833
11834     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11835     then
11836       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11837 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11838    { (exit 1); exit 1; }; }
11839     fi
11840
11841     # Update the list of available tags.
11842     if test -n "$tagname"; then
11843       echo appending configuration tag \"$tagname\" to $ofile
11844
11845       case $tagname in
11846       CXX)
11847         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11848             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11849             (test "X$CXX" != "Xg++"))) ; then
11850           :
11851         else
11852           tagname=""
11853         fi
11854         ;;
11855
11856       F77)
11857         if test -n "$F77" && test "X$F77" != "Xno"; then
11858           :
11859         else
11860           tagname=""
11861         fi
11862         ;;
11863
11864       GCJ)
11865         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11866           :
11867         else
11868           tagname=""
11869         fi
11870         ;;
11871
11872       RC)
11873
11874
11875 # Source file extension for RC test sources.
11876 ac_ext=rc
11877
11878 # Object file extension for compiled RC test sources.
11879 objext=o
11880 objext_RC=$objext
11881
11882 # Code to be used in simple compile tests
11883 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11884
11885 # Code to be used in simple link tests
11886 lt_simple_link_test_code="$lt_simple_compile_test_code"
11887
11888 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11889
11890 # If no C compiler was specified, use CC.
11891 LTCC=${LTCC-"$CC"}
11892
11893 # Allow CC to be a program name with arguments.
11894 compiler=$CC
11895
11896
11897 # save warnings/boilerplate of simple test code
11898 ac_outfile=conftest.$ac_objext
11899 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11901 _lt_compiler_boilerplate=`cat conftest.err`
11902 $rm conftest*
11903
11904 ac_outfile=conftest.$ac_objext
11905 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11906 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11907 _lt_linker_boilerplate=`cat conftest.err`
11908 $rm conftest*
11909
11910
11911 # Allow CC to be a program name with arguments.
11912 lt_save_CC="$CC"
11913 CC=${RC-"windres"}
11914 compiler=$CC
11915 compiler_RC=$CC
11916 for cc_temp in $compiler""; do
11917   case $cc_temp in
11918     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11919     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11920     \-*) ;;
11921     *) break;;
11922   esac
11923 done
11924 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11925
11926 lt_cv_prog_compiler_c_o_RC=yes
11927
11928 # The else clause should only fire when bootstrapping the
11929 # libtool distribution, otherwise you forgot to ship ltmain.sh
11930 # with your package, and you will get complaints that there are
11931 # no rules to generate ltmain.sh.
11932 if test -f "$ltmain"; then
11933   # See if we are running on zsh, and set the options which allow our commands through
11934   # without removal of \ escapes.
11935   if test -n "${ZSH_VERSION+set}" ; then
11936     setopt NO_GLOB_SUBST
11937   fi
11938   # Now quote all the things that may contain metacharacters while being
11939   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11940   # variables and quote the copies for generation of the libtool script.
11941   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11942     SED SHELL STRIP \
11943     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11944     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11945     deplibs_check_method reload_flag reload_cmds need_locks \
11946     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11947     lt_cv_sys_global_symbol_to_c_name_address \
11948     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11949     old_postinstall_cmds old_postuninstall_cmds \
11950     compiler_RC \
11951     CC_RC \
11952     LD_RC \
11953     lt_prog_compiler_wl_RC \
11954     lt_prog_compiler_pic_RC \
11955     lt_prog_compiler_static_RC \
11956     lt_prog_compiler_no_builtin_flag_RC \
11957     export_dynamic_flag_spec_RC \
11958     thread_safe_flag_spec_RC \
11959     whole_archive_flag_spec_RC \
11960     enable_shared_with_static_runtimes_RC \
11961     old_archive_cmds_RC \
11962     old_archive_from_new_cmds_RC \
11963     predep_objects_RC \
11964     postdep_objects_RC \
11965     predeps_RC \
11966     postdeps_RC \
11967     compiler_lib_search_path_RC \
11968     archive_cmds_RC \
11969     archive_expsym_cmds_RC \
11970     postinstall_cmds_RC \
11971     postuninstall_cmds_RC \
11972     old_archive_from_expsyms_cmds_RC \
11973     allow_undefined_flag_RC \
11974     no_undefined_flag_RC \
11975     export_symbols_cmds_RC \
11976     hardcode_libdir_flag_spec_RC \
11977     hardcode_libdir_flag_spec_ld_RC \
11978     hardcode_libdir_separator_RC \
11979     hardcode_automatic_RC \
11980     module_cmds_RC \
11981     module_expsym_cmds_RC \
11982     lt_cv_prog_compiler_c_o_RC \
11983     exclude_expsyms_RC \
11984     include_expsyms_RC; do
11985
11986     case $var in
11987     old_archive_cmds_RC | \
11988     old_archive_from_new_cmds_RC | \
11989     archive_cmds_RC | \
11990     archive_expsym_cmds_RC | \
11991     module_cmds_RC | \
11992     module_expsym_cmds_RC | \
11993     old_archive_from_expsyms_cmds_RC | \
11994     export_symbols_cmds_RC | \
11995     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11996     postinstall_cmds | postuninstall_cmds | \
11997     old_postinstall_cmds | old_postuninstall_cmds | \
11998     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11999       # Double-quote double-evaled strings.
12000       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12001       ;;
12002     *)
12003       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12004       ;;
12005     esac
12006   done
12007
12008   case $lt_echo in
12009   *'\$0 --fallback-echo"')
12010     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12011     ;;
12012   esac
12013
12014 cfgfile="$ofile"
12015
12016   cat <<__EOF__ >> "$cfgfile"
12017 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12018
12019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12020
12021 # Shell to use when invoking shell scripts.
12022 SHELL=$lt_SHELL
12023
12024 # Whether or not to build shared libraries.
12025 build_libtool_libs=$enable_shared
12026
12027 # Whether or not to build static libraries.
12028 build_old_libs=$enable_static
12029
12030 # Whether or not to add -lc for building shared libraries.
12031 build_libtool_need_lc=$archive_cmds_need_lc_RC
12032
12033 # Whether or not to disallow shared libs when runtime libs are static
12034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12035
12036 # Whether or not to optimize for fast installation.
12037 fast_install=$enable_fast_install
12038
12039 # The host system.
12040 host_alias=$host_alias
12041 host=$host
12042 host_os=$host_os
12043
12044 # The build system.
12045 build_alias=$build_alias
12046 build=$build
12047 build_os=$build_os
12048
12049 # An echo program that does not interpret backslashes.
12050 echo=$lt_echo
12051
12052 # The archiver.
12053 AR=$lt_AR
12054 AR_FLAGS=$lt_AR_FLAGS
12055
12056 # A C compiler.
12057 LTCC=$lt_LTCC
12058
12059 # A language-specific compiler.
12060 CC=$lt_compiler_RC
12061
12062 # Is the compiler the GNU C compiler?
12063 with_gcc=$GCC_RC
12064
12065 # An ERE matcher.
12066 EGREP=$lt_EGREP
12067
12068 # The linker used to build libraries.
12069 LD=$lt_LD_RC
12070
12071 # Whether we need hard or soft links.
12072 LN_S=$lt_LN_S
12073
12074 # A BSD-compatible nm program.
12075 NM=$lt_NM
12076
12077 # A symbol stripping program
12078 STRIP=$lt_STRIP
12079
12080 # Used to examine libraries when file_magic_cmd begins "file"
12081 MAGIC_CMD=$MAGIC_CMD
12082
12083 # Used on cygwin: DLL creation program.
12084 DLLTOOL="$DLLTOOL"
12085
12086 # Used on cygwin: object dumper.
12087 OBJDUMP="$OBJDUMP"
12088
12089 # Used on cygwin: assembler.
12090 AS="$AS"
12091
12092 # The name of the directory that contains temporary libtool files.
12093 objdir=$objdir
12094
12095 # How to create reloadable object files.
12096 reload_flag=$lt_reload_flag
12097 reload_cmds=$lt_reload_cmds
12098
12099 # How to pass a linker flag through the compiler.
12100 wl=$lt_lt_prog_compiler_wl_RC
12101
12102 # Object file suffix (normally "o").
12103 objext="$ac_objext"
12104
12105 # Old archive suffix (normally "a").
12106 libext="$libext"
12107
12108 # Shared library suffix (normally ".so").
12109 shrext_cmds='$shrext_cmds'
12110
12111 # Executable file suffix (normally "").
12112 exeext="$exeext"
12113
12114 # Additional compiler flags for building library objects.
12115 pic_flag=$lt_lt_prog_compiler_pic_RC
12116 pic_mode=$pic_mode
12117
12118 # What is the maximum length of a command?
12119 max_cmd_len=$lt_cv_sys_max_cmd_len
12120
12121 # Does compiler simultaneously support -c and -o options?
12122 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12123
12124 # Must we lock files when doing compilation?
12125 need_locks=$lt_need_locks
12126
12127 # Do we need the lib prefix for modules?
12128 need_lib_prefix=$need_lib_prefix
12129
12130 # Do we need a version for libraries?
12131 need_version=$need_version
12132
12133 # Whether dlopen is supported.
12134 dlopen_support=$enable_dlopen
12135
12136 # Whether dlopen of programs is supported.
12137 dlopen_self=$enable_dlopen_self
12138
12139 # Whether dlopen of statically linked programs is supported.
12140 dlopen_self_static=$enable_dlopen_self_static
12141
12142 # Compiler flag to prevent dynamic linking.
12143 link_static_flag=$lt_lt_prog_compiler_static_RC
12144
12145 # Compiler flag to turn off builtin functions.
12146 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12147
12148 # Compiler flag to allow reflexive dlopens.
12149 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12150
12151 # Compiler flag to generate shared objects directly from archives.
12152 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12153
12154 # Compiler flag to generate thread-safe objects.
12155 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12156
12157 # Library versioning type.
12158 version_type=$version_type
12159
12160 # Format of library name prefix.
12161 libname_spec=$lt_libname_spec
12162
12163 # List of archive names.  First name is the real one, the rest are links.
12164 # The last name is the one that the linker finds with -lNAME.
12165 library_names_spec=$lt_library_names_spec
12166
12167 # The coded name of the library, if different from the real name.
12168 soname_spec=$lt_soname_spec
12169
12170 # Commands used to build and install an old-style archive.
12171 RANLIB=$lt_RANLIB
12172 old_archive_cmds=$lt_old_archive_cmds_RC
12173 old_postinstall_cmds=$lt_old_postinstall_cmds
12174 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12175
12176 # Create an old-style archive from a shared archive.
12177 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12178
12179 # Create a temporary old-style archive to link instead of a shared archive.
12180 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12181
12182 # Commands used to build and install a shared archive.
12183 archive_cmds=$lt_archive_cmds_RC
12184 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12185 postinstall_cmds=$lt_postinstall_cmds
12186 postuninstall_cmds=$lt_postuninstall_cmds
12187
12188 # Commands used to build a loadable module (assumed same as above if empty)
12189 module_cmds=$lt_module_cmds_RC
12190 module_expsym_cmds=$lt_module_expsym_cmds_RC
12191
12192 # Commands to strip libraries.
12193 old_striplib=$lt_old_striplib
12194 striplib=$lt_striplib
12195
12196 # Dependencies to place before the objects being linked to create a
12197 # shared library.
12198 predep_objects=$lt_predep_objects_RC
12199
12200 # Dependencies to place after the objects being linked to create a
12201 # shared library.
12202 postdep_objects=$lt_postdep_objects_RC
12203
12204 # Dependencies to place before the objects being linked to create a
12205 # shared library.
12206 predeps=$lt_predeps_RC
12207
12208 # Dependencies to place after the objects being linked to create a
12209 # shared library.
12210 postdeps=$lt_postdeps_RC
12211
12212 # The library search path used internally by the compiler when linking
12213 # a shared library.
12214 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12215
12216 # Method to check whether dependent libraries are shared objects.
12217 deplibs_check_method=$lt_deplibs_check_method
12218
12219 # Command to use when deplibs_check_method == file_magic.
12220 file_magic_cmd=$lt_file_magic_cmd
12221
12222 # Flag that allows shared libraries with undefined symbols to be built.
12223 allow_undefined_flag=$lt_allow_undefined_flag_RC
12224
12225 # Flag that forces no undefined symbols.
12226 no_undefined_flag=$lt_no_undefined_flag_RC
12227
12228 # Commands used to finish a libtool library installation in a directory.
12229 finish_cmds=$lt_finish_cmds
12230
12231 # Same as above, but a single script fragment to be evaled but not shown.
12232 finish_eval=$lt_finish_eval
12233
12234 # Take the output of nm and produce a listing of raw symbols and C names.
12235 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12236
12237 # Transform the output of nm in a proper C declaration
12238 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12239
12240 # Transform the output of nm in a C name address pair
12241 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12242
12243 # This is the shared library runtime path variable.
12244 runpath_var=$runpath_var
12245
12246 # This is the shared library path variable.
12247 shlibpath_var=$shlibpath_var
12248
12249 # Is shlibpath searched before the hard-coded library search path?
12250 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12251
12252 # How to hardcode a shared library path into an executable.
12253 hardcode_action=$hardcode_action_RC
12254
12255 # Whether we should hardcode library paths into libraries.
12256 hardcode_into_libs=$hardcode_into_libs
12257
12258 # Flag to hardcode \$libdir into a binary during linking.
12259 # This must work even if \$libdir does not exist.
12260 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12261
12262 # If ld is used when linking, flag to hardcode \$libdir into
12263 # a binary during linking. This must work even if \$libdir does
12264 # not exist.
12265 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12266
12267 # Whether we need a single -rpath flag with a separated argument.
12268 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12269
12270 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12271 # resulting binary.
12272 hardcode_direct=$hardcode_direct_RC
12273
12274 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12275 # resulting binary.
12276 hardcode_minus_L=$hardcode_minus_L_RC
12277
12278 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12279 # the resulting binary.
12280 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12281
12282 # Set to yes if building a shared library automatically hardcodes DIR into the library
12283 # and all subsequent libraries and executables linked against it.
12284 hardcode_automatic=$hardcode_automatic_RC
12285
12286 # Variables whose values should be saved in libtool wrapper scripts and
12287 # restored at relink time.
12288 variables_saved_for_relink="$variables_saved_for_relink"
12289
12290 # Whether libtool must link a program against all its dependency libraries.
12291 link_all_deplibs=$link_all_deplibs_RC
12292
12293 # Compile-time system search path for libraries
12294 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12295
12296 # Run-time system search path for libraries
12297 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12298
12299 # Fix the shell variable \$srcfile for the compiler.
12300 fix_srcfile_path="$fix_srcfile_path_RC"
12301
12302 # Set to yes if exported symbols are required.
12303 always_export_symbols=$always_export_symbols_RC
12304
12305 # The commands to list exported symbols.
12306 export_symbols_cmds=$lt_export_symbols_cmds_RC
12307
12308 # The commands to extract the exported symbol list from a shared archive.
12309 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12310
12311 # Symbols that should not be listed in the preloaded symbols.
12312 exclude_expsyms=$lt_exclude_expsyms_RC
12313
12314 # Symbols that must always be exported.
12315 include_expsyms=$lt_include_expsyms_RC
12316
12317 # ### END LIBTOOL TAG CONFIG: $tagname
12318
12319 __EOF__
12320
12321
12322 else
12323   # If there is no Makefile yet, we rely on a make rule to execute
12324   # `config.status --recheck' to rerun these tests and create the
12325   # libtool script then.
12326   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12327   if test -f "$ltmain_in"; then
12328     test -f Makefile && make "$ltmain"
12329   fi
12330 fi
12331
12332
12333 ac_ext=c
12334 ac_cpp='$CPP $CPPFLAGS'
12335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12338
12339 CC="$lt_save_CC"
12340
12341         ;;
12342
12343       *)
12344         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12345 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12346    { (exit 1); exit 1; }; }
12347         ;;
12348       esac
12349
12350       # Append the new tag name to the list of available tags.
12351       if test -n "$tagname" ; then
12352       available_tags="$available_tags $tagname"
12353     fi
12354     fi
12355   done
12356   IFS="$lt_save_ifs"
12357
12358   # Now substitute the updated list of available tags.
12359   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12360     mv "${ofile}T" "$ofile"
12361     chmod +x "$ofile"
12362   else
12363     rm -f "${ofile}T"
12364     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12365 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12366    { (exit 1); exit 1; }; }
12367   fi
12368 fi
12369
12370
12371
12372 # This can be used to rebuild libtool when needed
12373 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12374
12375 # Always use our own libtool.
12376 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12377
12378 # Prevent multiple expansion
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389 ol_link_perl=no
12390 if test $ol_enable_perl != no ; then
12391         # Extract the first word of "perl", so it can be a program name with args.
12392 set dummy perl; ac_word=$2
12393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12395 if test "${ac_cv_path_PERLBIN+set}" = set; then
12396   echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398   case $PERLBIN in
12399   [\\/]* | ?:[\\/]*)
12400   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12401   ;;
12402   *)
12403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404 for as_dir in $PATH
12405 do
12406   IFS=$as_save_IFS
12407   test -z "$as_dir" && as_dir=.
12408   for ac_exec_ext in '' $ac_executable_extensions; do
12409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12410     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12412     break 2
12413   fi
12414 done
12415 done
12416 IFS=$as_save_IFS
12417
12418   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12419   ;;
12420 esac
12421 fi
12422 PERLBIN=$ac_cv_path_PERLBIN
12423 if test -n "$PERLBIN"; then
12424   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12425 echo "${ECHO_T}$PERLBIN" >&6; }
12426 else
12427   { echo "$as_me:$LINENO: result: no" >&5
12428 echo "${ECHO_T}no" >&6; }
12429 fi
12430
12431
12432
12433         if test "no$PERLBIN" = "no" ; then
12434                 if test $ol_enable_perl = yes ; then
12435                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12436 echo "$as_me: error: could not locate perl" >&2;}
12437    { (exit 1); exit 1; }; }
12438                 fi
12439
12440         else
12441                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12442                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12443
12444                 if test x"$ol_enable_perl" = "xyes" ; then
12445                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12446                 else
12447                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12448                 fi
12449                                 ol_link_perl=yes
12450         fi
12451 fi
12452
12453 ac_ext=c
12454 ac_cpp='$CPP $CPPFLAGS'
12455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12458 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12459 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12460 # On Suns, sometimes $CPP names a directory.
12461 if test -n "$CPP" && test -d "$CPP"; then
12462   CPP=
12463 fi
12464 if test -z "$CPP"; then
12465   if test "${ac_cv_prog_CPP+set}" = set; then
12466   echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468       # Double quotes because CPP needs to be expanded
12469     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12470     do
12471       ac_preproc_ok=false
12472 for ac_c_preproc_warn_flag in '' yes
12473 do
12474   # Use a header file that comes with gcc, so configuring glibc
12475   # with a fresh cross-compiler works.
12476   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12477   # <limits.h> exists even on freestanding compilers.
12478   # On the NeXT, cc -E runs the code through the compiler's parser,
12479   # not just through cpp. "Syntax error" is here to catch this case.
12480   cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h.  */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h.  */
12486 #ifdef __STDC__
12487 # include <limits.h>
12488 #else
12489 # include <assert.h>
12490 #endif
12491                      Syntax error
12492 _ACEOF
12493 if { (ac_try="$ac_cpp conftest.$ac_ext"
12494 case "(($ac_try" in
12495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496   *) ac_try_echo=$ac_try;;
12497 esac
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12500   ac_status=$?
12501   grep -v '^ *+' conftest.er1 >conftest.err
12502   rm -f conftest.er1
12503   cat conftest.err >&5
12504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); } >/dev/null && {
12506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12507          test ! -s conftest.err
12508        }; then
12509   :
12510 else
12511   echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514   # Broken: fails on valid input.
12515 continue
12516 fi
12517
12518 rm -f conftest.err conftest.$ac_ext
12519
12520   # OK, works on sane cases.  Now check whether nonexistent headers
12521   # can be detected and how.
12522   cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h.  */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h.  */
12528 #include <ac_nonexistent.h>
12529 _ACEOF
12530 if { (ac_try="$ac_cpp conftest.$ac_ext"
12531 case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12537   ac_status=$?
12538   grep -v '^ *+' conftest.er1 >conftest.err
12539   rm -f conftest.er1
12540   cat conftest.err >&5
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); } >/dev/null && {
12543          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12544          test ! -s conftest.err
12545        }; then
12546   # Broken: success on invalid input.
12547 continue
12548 else
12549   echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12551
12552   # Passes both tests.
12553 ac_preproc_ok=:
12554 break
12555 fi
12556
12557 rm -f conftest.err conftest.$ac_ext
12558
12559 done
12560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12561 rm -f conftest.err conftest.$ac_ext
12562 if $ac_preproc_ok; then
12563   break
12564 fi
12565
12566     done
12567     ac_cv_prog_CPP=$CPP
12568
12569 fi
12570   CPP=$ac_cv_prog_CPP
12571 else
12572   ac_cv_prog_CPP=$CPP
12573 fi
12574 { echo "$as_me:$LINENO: result: $CPP" >&5
12575 echo "${ECHO_T}$CPP" >&6; }
12576 ac_preproc_ok=false
12577 for ac_c_preproc_warn_flag in '' yes
12578 do
12579   # Use a header file that comes with gcc, so configuring glibc
12580   # with a fresh cross-compiler works.
12581   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12582   # <limits.h> exists even on freestanding compilers.
12583   # On the NeXT, cc -E runs the code through the compiler's parser,
12584   # not just through cpp. "Syntax error" is here to catch this case.
12585   cat >conftest.$ac_ext <<_ACEOF
12586 /* confdefs.h.  */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h.  */
12591 #ifdef __STDC__
12592 # include <limits.h>
12593 #else
12594 # include <assert.h>
12595 #endif
12596                      Syntax error
12597 _ACEOF
12598 if { (ac_try="$ac_cpp conftest.$ac_ext"
12599 case "(($ac_try" in
12600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601   *) ac_try_echo=$ac_try;;
12602 esac
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12605   ac_status=$?
12606   grep -v '^ *+' conftest.er1 >conftest.err
12607   rm -f conftest.er1
12608   cat conftest.err >&5
12609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610   (exit $ac_status); } >/dev/null && {
12611          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12612          test ! -s conftest.err
12613        }; then
12614   :
12615 else
12616   echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12618
12619   # Broken: fails on valid input.
12620 continue
12621 fi
12622
12623 rm -f conftest.err conftest.$ac_ext
12624
12625   # OK, works on sane cases.  Now check whether nonexistent headers
12626   # can be detected and how.
12627   cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h.  */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h.  */
12633 #include <ac_nonexistent.h>
12634 _ACEOF
12635 if { (ac_try="$ac_cpp conftest.$ac_ext"
12636 case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12642   ac_status=$?
12643   grep -v '^ *+' conftest.er1 >conftest.err
12644   rm -f conftest.er1
12645   cat conftest.err >&5
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); } >/dev/null && {
12648          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12649          test ! -s conftest.err
12650        }; then
12651   # Broken: success on invalid input.
12652 continue
12653 else
12654   echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12656
12657   # Passes both tests.
12658 ac_preproc_ok=:
12659 break
12660 fi
12661
12662 rm -f conftest.err conftest.$ac_ext
12663
12664 done
12665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12666 rm -f conftest.err conftest.$ac_ext
12667 if $ac_preproc_ok; then
12668   :
12669 else
12670   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12671 See \`config.log' for more details." >&5
12672 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12673 See \`config.log' for more details." >&2;}
12674    { (exit 1); exit 1; }; }
12675 fi
12676
12677 ac_ext=c
12678 ac_cpp='$CPP $CPPFLAGS'
12679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12682
12683 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12684 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12685 if test "${ol_cv_msvc+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688   cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h.  */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h.  */
12694
12695 #ifndef _MSC_VER
12696 #include <__FOO__/generate_error.h>
12697 #endif
12698
12699 _ACEOF
12700 if { (ac_try="$ac_cpp conftest.$ac_ext"
12701 case "(($ac_try" in
12702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703   *) ac_try_echo=$ac_try;;
12704 esac
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12707   ac_status=$?
12708   grep -v '^ *+' conftest.er1 >conftest.err
12709   rm -f conftest.er1
12710   cat conftest.err >&5
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); } >/dev/null && {
12713          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12714          test ! -s conftest.err
12715        }; then
12716   ol_cv_msvc=yes
12717 else
12718   echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721   ol_cv_msvc=no
12722 fi
12723
12724 rm -f conftest.err conftest.$ac_ext
12725 fi
12726 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12727 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12728
12729 case $host_os in
12730   *mingw32* ) ac_cv_mingw32=yes ;;
12731   *cygwin* ) ac_cv_cygwin=yes ;;
12732 esac
12733
12734
12735
12736
12737 cat >>confdefs.h <<_ACEOF
12738 #define EXEEXT "${EXEEXT}"
12739 _ACEOF
12740
12741
12742 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12743 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12744 if test "${ac_cv_lib_be_be_app+set}" = set; then
12745   echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747   ac_check_lib_save_LIBS=$LIBS
12748 LIBS="-lbe -lroot -lnet $LIBS"
12749 cat >conftest.$ac_ext <<_ACEOF
12750 /* confdefs.h.  */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h.  */
12755
12756 /* Override any GCC internal prototype to avoid an error.
12757    Use char because int might match the return type of a GCC
12758    builtin and then its argument prototype would still apply.  */
12759 #ifdef __cplusplus
12760 extern "C"
12761 #endif
12762 char be_app ();
12763 int
12764 main ()
12765 {
12766 return be_app ();
12767   ;
12768   return 0;
12769 }
12770 _ACEOF
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (ac_try="$ac_link"
12773 case "(($ac_try" in
12774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775   *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778   (eval "$ac_link") 2>conftest.er1
12779   ac_status=$?
12780   grep -v '^ *+' conftest.er1 >conftest.err
12781   rm -f conftest.er1
12782   cat conftest.err >&5
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); } && {
12785          test -z "$ac_c_werror_flag" ||
12786          test ! -s conftest.err
12787        } && test -s conftest$ac_exeext &&
12788        $as_test_x conftest$ac_exeext; then
12789   ac_cv_lib_be_be_app=yes
12790 else
12791   echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794         ac_cv_lib_be_be_app=no
12795 fi
12796
12797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12798       conftest$ac_exeext conftest.$ac_ext
12799 LIBS=$ac_check_lib_save_LIBS
12800 fi
12801 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12802 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12803 if test $ac_cv_lib_be_be_app = yes; then
12804   LIBS="$LIBS -lbe -lroot -lnet"
12805 else
12806   :
12807 fi
12808
12809
12810 ac_ext=c
12811 ac_cpp='$CPP $CPPFLAGS'
12812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12815 if test -n "$ac_tool_prefix"; then
12816   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12820 if test "${ac_cv_prog_CC+set}" = set; then
12821   echo $ECHO_N "(cached) $ECHO_C" >&6
12822 else
12823   if test -n "$CC"; then
12824   ac_cv_prog_CC="$CC" # Let the user override the test.
12825 else
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12828 do
12829   IFS=$as_save_IFS
12830   test -z "$as_dir" && as_dir=.
12831   for ac_exec_ext in '' $ac_executable_extensions; do
12832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12833     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12835     break 2
12836   fi
12837 done
12838 done
12839 IFS=$as_save_IFS
12840
12841 fi
12842 fi
12843 CC=$ac_cv_prog_CC
12844 if test -n "$CC"; then
12845   { echo "$as_me:$LINENO: result: $CC" >&5
12846 echo "${ECHO_T}$CC" >&6; }
12847 else
12848   { echo "$as_me:$LINENO: result: no" >&5
12849 echo "${ECHO_T}no" >&6; }
12850 fi
12851
12852
12853 fi
12854 if test -z "$ac_cv_prog_CC"; then
12855   ac_ct_CC=$CC
12856   # Extract the first word of "gcc", so it can be a program name with args.
12857 set dummy gcc; ac_word=$2
12858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12861   echo $ECHO_N "(cached) $ECHO_C" >&6
12862 else
12863   if test -n "$ac_ct_CC"; then
12864   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12865 else
12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867 for as_dir in $PATH
12868 do
12869   IFS=$as_save_IFS
12870   test -z "$as_dir" && as_dir=.
12871   for ac_exec_ext in '' $ac_executable_extensions; do
12872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12873     ac_cv_prog_ac_ct_CC="gcc"
12874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12875     break 2
12876   fi
12877 done
12878 done
12879 IFS=$as_save_IFS
12880
12881 fi
12882 fi
12883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12884 if test -n "$ac_ct_CC"; then
12885   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12886 echo "${ECHO_T}$ac_ct_CC" >&6; }
12887 else
12888   { echo "$as_me:$LINENO: result: no" >&5
12889 echo "${ECHO_T}no" >&6; }
12890 fi
12891
12892   if test "x$ac_ct_CC" = x; then
12893     CC=""
12894   else
12895     case $cross_compiling:$ac_tool_warned in
12896 yes:)
12897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12898 whose name does not start with the host triplet.  If you think this
12899 configuration is useful to you, please write to autoconf@gnu.org." >&5
12900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12901 whose name does not start with the host triplet.  If you think this
12902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12903 ac_tool_warned=yes ;;
12904 esac
12905     CC=$ac_ct_CC
12906   fi
12907 else
12908   CC="$ac_cv_prog_CC"
12909 fi
12910
12911 if test -z "$CC"; then
12912           if test -n "$ac_tool_prefix"; then
12913     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12914 set dummy ${ac_tool_prefix}cc; ac_word=$2
12915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12917 if test "${ac_cv_prog_CC+set}" = set; then
12918   echo $ECHO_N "(cached) $ECHO_C" >&6
12919 else
12920   if test -n "$CC"; then
12921   ac_cv_prog_CC="$CC" # Let the user override the test.
12922 else
12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924 for as_dir in $PATH
12925 do
12926   IFS=$as_save_IFS
12927   test -z "$as_dir" && as_dir=.
12928   for ac_exec_ext in '' $ac_executable_extensions; do
12929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12930     ac_cv_prog_CC="${ac_tool_prefix}cc"
12931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12932     break 2
12933   fi
12934 done
12935 done
12936 IFS=$as_save_IFS
12937
12938 fi
12939 fi
12940 CC=$ac_cv_prog_CC
12941 if test -n "$CC"; then
12942   { echo "$as_me:$LINENO: result: $CC" >&5
12943 echo "${ECHO_T}$CC" >&6; }
12944 else
12945   { echo "$as_me:$LINENO: result: no" >&5
12946 echo "${ECHO_T}no" >&6; }
12947 fi
12948
12949
12950   fi
12951 fi
12952 if test -z "$CC"; then
12953   # Extract the first word of "cc", so it can be a program name with args.
12954 set dummy cc; ac_word=$2
12955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12957 if test "${ac_cv_prog_CC+set}" = set; then
12958   echo $ECHO_N "(cached) $ECHO_C" >&6
12959 else
12960   if test -n "$CC"; then
12961   ac_cv_prog_CC="$CC" # Let the user override the test.
12962 else
12963   ac_prog_rejected=no
12964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965 for as_dir in $PATH
12966 do
12967   IFS=$as_save_IFS
12968   test -z "$as_dir" && as_dir=.
12969   for ac_exec_ext in '' $ac_executable_extensions; do
12970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12971     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12972        ac_prog_rejected=yes
12973        continue
12974      fi
12975     ac_cv_prog_CC="cc"
12976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12977     break 2
12978   fi
12979 done
12980 done
12981 IFS=$as_save_IFS
12982
12983 if test $ac_prog_rejected = yes; then
12984   # We found a bogon in the path, so make sure we never use it.
12985   set dummy $ac_cv_prog_CC
12986   shift
12987   if test $# != 0; then
12988     # We chose a different compiler from the bogus one.
12989     # However, it has the same basename, so the bogon will be chosen
12990     # first if we set CC to just the basename; use the full file name.
12991     shift
12992     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12993   fi
12994 fi
12995 fi
12996 fi
12997 CC=$ac_cv_prog_CC
12998 if test -n "$CC"; then
12999   { echo "$as_me:$LINENO: result: $CC" >&5
13000 echo "${ECHO_T}$CC" >&6; }
13001 else
13002   { echo "$as_me:$LINENO: result: no" >&5
13003 echo "${ECHO_T}no" >&6; }
13004 fi
13005
13006
13007 fi
13008 if test -z "$CC"; then
13009   if test -n "$ac_tool_prefix"; then
13010   for ac_prog in cl.exe
13011   do
13012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13016 if test "${ac_cv_prog_CC+set}" = set; then
13017   echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019   if test -n "$CC"; then
13020   ac_cv_prog_CC="$CC" # Let the user override the test.
13021 else
13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH
13024 do
13025   IFS=$as_save_IFS
13026   test -z "$as_dir" && as_dir=.
13027   for ac_exec_ext in '' $ac_executable_extensions; do
13028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13029     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13031     break 2
13032   fi
13033 done
13034 done
13035 IFS=$as_save_IFS
13036
13037 fi
13038 fi
13039 CC=$ac_cv_prog_CC
13040 if test -n "$CC"; then
13041   { echo "$as_me:$LINENO: result: $CC" >&5
13042 echo "${ECHO_T}$CC" >&6; }
13043 else
13044   { echo "$as_me:$LINENO: result: no" >&5
13045 echo "${ECHO_T}no" >&6; }
13046 fi
13047
13048
13049     test -n "$CC" && break
13050   done
13051 fi
13052 if test -z "$CC"; then
13053   ac_ct_CC=$CC
13054   for ac_prog in cl.exe
13055 do
13056   # Extract the first word of "$ac_prog", so it can be a program name with args.
13057 set dummy $ac_prog; ac_word=$2
13058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13061   echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063   if test -n "$ac_ct_CC"; then
13064   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13065 else
13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13068 do
13069   IFS=$as_save_IFS
13070   test -z "$as_dir" && as_dir=.
13071   for ac_exec_ext in '' $ac_executable_extensions; do
13072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13073     ac_cv_prog_ac_ct_CC="$ac_prog"
13074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13075     break 2
13076   fi
13077 done
13078 done
13079 IFS=$as_save_IFS
13080
13081 fi
13082 fi
13083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13084 if test -n "$ac_ct_CC"; then
13085   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13086 echo "${ECHO_T}$ac_ct_CC" >&6; }
13087 else
13088   { echo "$as_me:$LINENO: result: no" >&5
13089 echo "${ECHO_T}no" >&6; }
13090 fi
13091
13092
13093   test -n "$ac_ct_CC" && break
13094 done
13095
13096   if test "x$ac_ct_CC" = x; then
13097     CC=""
13098   else
13099     case $cross_compiling:$ac_tool_warned in
13100 yes:)
13101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13102 whose name does not start with the host triplet.  If you think this
13103 configuration is useful to you, please write to autoconf@gnu.org." >&5
13104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13105 whose name does not start with the host triplet.  If you think this
13106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13107 ac_tool_warned=yes ;;
13108 esac
13109     CC=$ac_ct_CC
13110   fi
13111 fi
13112
13113 fi
13114
13115
13116 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13117 See \`config.log' for more details." >&5
13118 echo "$as_me: error: no acceptable C compiler found in \$PATH
13119 See \`config.log' for more details." >&2;}
13120    { (exit 1); exit 1; }; }
13121
13122 # Provide some information about the compiler.
13123 echo "$as_me:$LINENO: checking for C compiler version" >&5
13124 ac_compiler=`set X $ac_compile; echo $2`
13125 { (ac_try="$ac_compiler --version >&5"
13126 case "(($ac_try" in
13127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128   *) ac_try_echo=$ac_try;;
13129 esac
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131   (eval "$ac_compiler --version >&5") 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); }
13135 { (ac_try="$ac_compiler -v >&5"
13136 case "(($ac_try" in
13137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138   *) ac_try_echo=$ac_try;;
13139 esac
13140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141   (eval "$ac_compiler -v >&5") 2>&5
13142   ac_status=$?
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); }
13145 { (ac_try="$ac_compiler -V >&5"
13146 case "(($ac_try" in
13147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148   *) ac_try_echo=$ac_try;;
13149 esac
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151   (eval "$ac_compiler -V >&5") 2>&5
13152   ac_status=$?
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); }
13155
13156 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13157 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13158 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13159   echo $ECHO_N "(cached) $ECHO_C" >&6
13160 else
13161   cat >conftest.$ac_ext <<_ACEOF
13162 /* confdefs.h.  */
13163 _ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h.  */
13167
13168 int
13169 main ()
13170 {
13171 #ifndef __GNUC__
13172        choke me
13173 #endif
13174
13175   ;
13176   return 0;
13177 }
13178 _ACEOF
13179 rm -f conftest.$ac_objext
13180 if { (ac_try="$ac_compile"
13181 case "(($ac_try" in
13182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183   *) ac_try_echo=$ac_try;;
13184 esac
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186   (eval "$ac_compile") 2>conftest.er1
13187   ac_status=$?
13188   grep -v '^ *+' conftest.er1 >conftest.err
13189   rm -f conftest.er1
13190   cat conftest.err >&5
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); } && {
13193          test -z "$ac_c_werror_flag" ||
13194          test ! -s conftest.err
13195        } && test -s conftest.$ac_objext; then
13196   ac_compiler_gnu=yes
13197 else
13198   echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13200
13201         ac_compiler_gnu=no
13202 fi
13203
13204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13205 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13206
13207 fi
13208 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13209 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13210 GCC=`test $ac_compiler_gnu = yes && echo yes`
13211 ac_test_CFLAGS=${CFLAGS+set}
13212 ac_save_CFLAGS=$CFLAGS
13213 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13214 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13215 if test "${ac_cv_prog_cc_g+set}" = set; then
13216   echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218   ac_save_c_werror_flag=$ac_c_werror_flag
13219    ac_c_werror_flag=yes
13220    ac_cv_prog_cc_g=no
13221    CFLAGS="-g"
13222    cat >conftest.$ac_ext <<_ACEOF
13223 /* confdefs.h.  */
13224 _ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h.  */
13228
13229 int
13230 main ()
13231 {
13232
13233   ;
13234   return 0;
13235 }
13236 _ACEOF
13237 rm -f conftest.$ac_objext
13238 if { (ac_try="$ac_compile"
13239 case "(($ac_try" in
13240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241   *) ac_try_echo=$ac_try;;
13242 esac
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244   (eval "$ac_compile") 2>conftest.er1
13245   ac_status=$?
13246   grep -v '^ *+' conftest.er1 >conftest.err
13247   rm -f conftest.er1
13248   cat conftest.err >&5
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); } && {
13251          test -z "$ac_c_werror_flag" ||
13252          test ! -s conftest.err
13253        } && test -s conftest.$ac_objext; then
13254   ac_cv_prog_cc_g=yes
13255 else
13256   echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13258
13259         CFLAGS=""
13260       cat >conftest.$ac_ext <<_ACEOF
13261 /* confdefs.h.  */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h.  */
13266
13267 int
13268 main ()
13269 {
13270
13271   ;
13272   return 0;
13273 }
13274 _ACEOF
13275 rm -f conftest.$ac_objext
13276 if { (ac_try="$ac_compile"
13277 case "(($ac_try" in
13278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279   *) ac_try_echo=$ac_try;;
13280 esac
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282   (eval "$ac_compile") 2>conftest.er1
13283   ac_status=$?
13284   grep -v '^ *+' conftest.er1 >conftest.err
13285   rm -f conftest.er1
13286   cat conftest.err >&5
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); } && {
13289          test -z "$ac_c_werror_flag" ||
13290          test ! -s conftest.err
13291        } && test -s conftest.$ac_objext; then
13292   :
13293 else
13294   echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13296
13297         ac_c_werror_flag=$ac_save_c_werror_flag
13298          CFLAGS="-g"
13299          cat >conftest.$ac_ext <<_ACEOF
13300 /* confdefs.h.  */
13301 _ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h.  */
13305
13306 int
13307 main ()
13308 {
13309
13310   ;
13311   return 0;
13312 }
13313 _ACEOF
13314 rm -f conftest.$ac_objext
13315 if { (ac_try="$ac_compile"
13316 case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321   (eval "$ac_compile") 2>conftest.er1
13322   ac_status=$?
13323   grep -v '^ *+' conftest.er1 >conftest.err
13324   rm -f conftest.er1
13325   cat conftest.err >&5
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); } && {
13328          test -z "$ac_c_werror_flag" ||
13329          test ! -s conftest.err
13330        } && test -s conftest.$ac_objext; then
13331   ac_cv_prog_cc_g=yes
13332 else
13333   echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13335
13336
13337 fi
13338
13339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340 fi
13341
13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 fi
13344
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346    ac_c_werror_flag=$ac_save_c_werror_flag
13347 fi
13348 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13349 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13350 if test "$ac_test_CFLAGS" = set; then
13351   CFLAGS=$ac_save_CFLAGS
13352 elif test $ac_cv_prog_cc_g = yes; then
13353   if test "$GCC" = yes; then
13354     CFLAGS="-g -O2"
13355   else
13356     CFLAGS="-g"
13357   fi
13358 else
13359   if test "$GCC" = yes; then
13360     CFLAGS="-O2"
13361   else
13362     CFLAGS=
13363   fi
13364 fi
13365 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13366 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13367 if test "${ac_cv_prog_cc_c89+set}" = set; then
13368   echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370   ac_cv_prog_cc_c89=no
13371 ac_save_CC=$CC
13372 cat >conftest.$ac_ext <<_ACEOF
13373 /* confdefs.h.  */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h.  */
13378 #include <stdarg.h>
13379 #include <stdio.h>
13380 #include <sys/types.h>
13381 #include <sys/stat.h>
13382 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13383 struct buf { int x; };
13384 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13385 static char *e (p, i)
13386      char **p;
13387      int i;
13388 {
13389   return p[i];
13390 }
13391 static char *f (char * (*g) (char **, int), char **p, ...)
13392 {
13393   char *s;
13394   va_list v;
13395   va_start (v,p);
13396   s = g (p, va_arg (v,int));
13397   va_end (v);
13398   return s;
13399 }
13400
13401 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13402    function prototypes and stuff, but not '\xHH' hex character constants.
13403    These don't provoke an error unfortunately, instead are silently treated
13404    as 'x'.  The following induces an error, until -std is added to get
13405    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13406    array size at least.  It's necessary to write '\x00'==0 to get something
13407    that's true only with -std.  */
13408 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13409
13410 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13411    inside strings and character constants.  */
13412 #define FOO(x) 'x'
13413 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13414
13415 int test (int i, double x);
13416 struct s1 {int (*f) (int a);};
13417 struct s2 {int (*f) (double a);};
13418 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13419 int argc;
13420 char **argv;
13421 int
13422 main ()
13423 {
13424 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13425   ;
13426   return 0;
13427 }
13428 _ACEOF
13429 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13430         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13431 do
13432   CC="$ac_save_CC $ac_arg"
13433   rm -f conftest.$ac_objext
13434 if { (ac_try="$ac_compile"
13435 case "(($ac_try" in
13436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437   *) ac_try_echo=$ac_try;;
13438 esac
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440   (eval "$ac_compile") 2>conftest.er1
13441   ac_status=$?
13442   grep -v '^ *+' conftest.er1 >conftest.err
13443   rm -f conftest.er1
13444   cat conftest.err >&5
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); } && {
13447          test -z "$ac_c_werror_flag" ||
13448          test ! -s conftest.err
13449        } && test -s conftest.$ac_objext; then
13450   ac_cv_prog_cc_c89=$ac_arg
13451 else
13452   echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13454
13455
13456 fi
13457
13458 rm -f core conftest.err conftest.$ac_objext
13459   test "x$ac_cv_prog_cc_c89" != "xno" && break
13460 done
13461 rm -f conftest.$ac_ext
13462 CC=$ac_save_CC
13463
13464 fi
13465 # AC_CACHE_VAL
13466 case "x$ac_cv_prog_cc_c89" in
13467   x)
13468     { echo "$as_me:$LINENO: result: none needed" >&5
13469 echo "${ECHO_T}none needed" >&6; } ;;
13470   xno)
13471     { echo "$as_me:$LINENO: result: unsupported" >&5
13472 echo "${ECHO_T}unsupported" >&6; } ;;
13473   *)
13474     CC="$CC $ac_cv_prog_cc_c89"
13475     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13476 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13477 esac
13478
13479
13480 ac_ext=c
13481 ac_cpp='$CPP $CPPFLAGS'
13482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13485
13486 depcc="$CC"   am_compiler_list=
13487
13488 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13489 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13490 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13491   echo $ECHO_N "(cached) $ECHO_C" >&6
13492 else
13493   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13494   # We make a subdir and do the tests there.  Otherwise we can end up
13495   # making bogus files that we don't know about and never remove.  For
13496   # instance it was reported that on HP-UX the gcc test will end up
13497   # making a dummy file named `D' -- because `-MD' means `put the output
13498   # in D'.
13499   mkdir conftest.dir
13500   # Copy depcomp to subdir because otherwise we won't find it if we're
13501   # using a relative directory.
13502   cp "$am_depcomp" conftest.dir
13503   cd conftest.dir
13504   # We will build objects and dependencies in a subdirectory because
13505   # it helps to detect inapplicable dependency modes.  For instance
13506   # both Tru64's cc and ICC support -MD to output dependencies as a
13507   # side effect of compilation, but ICC will put the dependencies in
13508   # the current directory while Tru64 will put them in the object
13509   # directory.
13510   mkdir sub
13511
13512   am_cv_CC_dependencies_compiler_type=none
13513   if test "$am_compiler_list" = ""; then
13514      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13515   fi
13516   for depmode in $am_compiler_list; do
13517     # Setup a source with many dependencies, because some compilers
13518     # like to wrap large dependency lists on column 80 (with \), and
13519     # we should not choose a depcomp mode which is confused by this.
13520     #
13521     # We need to recreate these files for each test, as the compiler may
13522     # overwrite some of them when testing with obscure command lines.
13523     # This happens at least with the AIX C compiler.
13524     : > sub/conftest.c
13525     for i in 1 2 3 4 5 6; do
13526       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13527       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13528       # Solaris 8's {/usr,}/bin/sh.
13529       touch sub/conftst$i.h
13530     done
13531     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13532
13533     case $depmode in
13534     nosideeffect)
13535       # after this tag, mechanisms are not by side-effect, so they'll
13536       # only be used when explicitly requested
13537       if test "x$enable_dependency_tracking" = xyes; then
13538         continue
13539       else
13540         break
13541       fi
13542       ;;
13543     none) break ;;
13544     esac
13545     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13546     # mode.  It turns out that the SunPro C++ compiler does not properly
13547     # handle `-M -o', and we need to detect this.
13548     if depmode=$depmode \
13549        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13550        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13551        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13552          >/dev/null 2>conftest.err &&
13553        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13554        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13555        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13556       # icc doesn't choke on unknown options, it will just issue warnings
13557       # or remarks (even with -Werror).  So we grep stderr for any message
13558       # that says an option was ignored or not supported.
13559       # When given -MP, icc 7.0 and 7.1 complain thusly:
13560       #   icc: Command line warning: ignoring option '-M'; no argument required
13561       # The diagnosis changed in icc 8.0:
13562       #   icc: Command line remark: option '-MP' not supported
13563       if (grep 'ignoring option' conftest.err ||
13564           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13565         am_cv_CC_dependencies_compiler_type=$depmode
13566         break
13567       fi
13568     fi
13569   done
13570
13571   cd ..
13572   rm -rf conftest.dir
13573 else
13574   am_cv_CC_dependencies_compiler_type=none
13575 fi
13576
13577 fi
13578 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13579 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13580 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13581
13582
13583
13584 if
13585   test "x$enable_dependency_tracking" != xno \
13586   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13587   am__fastdepCC_TRUE=
13588   am__fastdepCC_FALSE='#'
13589 else
13590   am__fastdepCC_TRUE='#'
13591   am__fastdepCC_FALSE=
13592 fi
13593
13594
13595 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13596         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13597 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13598    { (exit 1); exit 1; }; }
13599 fi
13600
13601 # test for make depend flag
13602 OL_MKDEP=
13603 OL_MKDEP_FLAGS=
13604 if test -z "${MKDEP}"; then
13605         OL_MKDEP="${CC-cc}"
13606         if test -z "${MKDEP_FLAGS}"; then
13607                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13608 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13609 if test "${ol_cv_mkdep+set}" = set; then
13610   echo $ECHO_N "(cached) $ECHO_C" >&6
13611 else
13612
13613                         ol_cv_mkdep=no
13614                         for flag in "-M" "-xM"; do
13615                                 cat > conftest.c <<EOF
13616  noCode;
13617 EOF
13618                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; } \
13624                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13625                                 then
13626                                         if test ! -f conftest."${ac_object}" ; then
13627                                                 ol_cv_mkdep=$flag
13628                                                 OL_MKDEP_FLAGS="$flag"
13629                                                 break
13630                                         fi
13631                                 fi
13632                         done
13633                         rm -f conftest*
13634
13635 fi
13636 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13637 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13638                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13639         else
13640                 cc_cv_mkdep=yes
13641                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13642         fi
13643 else
13644         cc_cv_mkdep=yes
13645         OL_MKDEP="${MKDEP}"
13646         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13647 fi
13648
13649
13650
13651 if test "${ol_cv_mkdep}" = no ; then
13652         # this will soon become an error
13653         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13654 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13655 fi
13656
13657 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13658 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13659 if test "${ac_cv_lib_s_afopen+set}" = set; then
13660   echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662   ac_check_lib_save_LIBS=$LIBS
13663 LIBS="-ls  $LIBS"
13664 cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h.  */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h.  */
13670
13671 /* Override any GCC internal prototype to avoid an error.
13672    Use char because int might match the return type of a GCC
13673    builtin and then its argument prototype would still apply.  */
13674 #ifdef __cplusplus
13675 extern "C"
13676 #endif
13677 char afopen ();
13678 int
13679 main ()
13680 {
13681 return afopen ();
13682   ;
13683   return 0;
13684 }
13685 _ACEOF
13686 rm -f conftest.$ac_objext conftest$ac_exeext
13687 if { (ac_try="$ac_link"
13688 case "(($ac_try" in
13689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690   *) ac_try_echo=$ac_try;;
13691 esac
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693   (eval "$ac_link") 2>conftest.er1
13694   ac_status=$?
13695   grep -v '^ *+' conftest.er1 >conftest.err
13696   rm -f conftest.er1
13697   cat conftest.err >&5
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); } && {
13700          test -z "$ac_c_werror_flag" ||
13701          test ! -s conftest.err
13702        } && test -s conftest$ac_exeext &&
13703        $as_test_x conftest$ac_exeext; then
13704   ac_cv_lib_s_afopen=yes
13705 else
13706   echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13708
13709         ac_cv_lib_s_afopen=no
13710 fi
13711
13712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13713       conftest$ac_exeext conftest.$ac_ext
13714 LIBS=$ac_check_lib_save_LIBS
13715 fi
13716 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13717 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13718 if test $ac_cv_lib_s_afopen = yes; then
13719
13720         AUTH_LIBS=-ls
13721
13722 cat >>confdefs.h <<\_ACEOF
13723 #define HAVE_AIX_SECURITY 1
13724 _ACEOF
13725
13726
13727 fi
13728
13729
13730 case "$target" in
13731 *-ibm-openedition)
13732         ac_cv_func_getopt=no
13733
13734 cat >>confdefs.h <<\_ACEOF
13735 #define BOTH_STRINGS_H 1
13736 _ACEOF
13737
13738         ;;
13739 esac
13740
13741 ol_link_modules=no
13742 WITH_MODULES_ENABLED=no
13743 if test $ol_enable_modules != no ; then
13744
13745 for ac_header in ltdl.h
13746 do
13747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13749   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13752   echo $ECHO_N "(cached) $ECHO_C" >&6
13753 fi
13754 ac_res=`eval echo '${'$as_ac_Header'}'`
13755                { echo "$as_me:$LINENO: result: $ac_res" >&5
13756 echo "${ECHO_T}$ac_res" >&6; }
13757 else
13758   # Is the header compilable?
13759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13761 cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h.  */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h.  */
13767 $ac_includes_default
13768 #include <$ac_header>
13769 _ACEOF
13770 rm -f conftest.$ac_objext
13771 if { (ac_try="$ac_compile"
13772 case "(($ac_try" in
13773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774   *) ac_try_echo=$ac_try;;
13775 esac
13776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777   (eval "$ac_compile") 2>conftest.er1
13778   ac_status=$?
13779   grep -v '^ *+' conftest.er1 >conftest.err
13780   rm -f conftest.er1
13781   cat conftest.err >&5
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); } && {
13784          test -z "$ac_c_werror_flag" ||
13785          test ! -s conftest.err
13786        } && test -s conftest.$ac_objext; then
13787   ac_header_compiler=yes
13788 else
13789   echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13791
13792         ac_header_compiler=no
13793 fi
13794
13795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13797 echo "${ECHO_T}$ac_header_compiler" >&6; }
13798
13799 # Is the header present?
13800 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13802 cat >conftest.$ac_ext <<_ACEOF
13803 /* confdefs.h.  */
13804 _ACEOF
13805 cat confdefs.h >>conftest.$ac_ext
13806 cat >>conftest.$ac_ext <<_ACEOF
13807 /* end confdefs.h.  */
13808 #include <$ac_header>
13809 _ACEOF
13810 if { (ac_try="$ac_cpp conftest.$ac_ext"
13811 case "(($ac_try" in
13812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813   *) ac_try_echo=$ac_try;;
13814 esac
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13817   ac_status=$?
13818   grep -v '^ *+' conftest.er1 >conftest.err
13819   rm -f conftest.er1
13820   cat conftest.err >&5
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } >/dev/null && {
13823          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13824          test ! -s conftest.err
13825        }; then
13826   ac_header_preproc=yes
13827 else
13828   echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13830
13831   ac_header_preproc=no
13832 fi
13833
13834 rm -f conftest.err conftest.$ac_ext
13835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13836 echo "${ECHO_T}$ac_header_preproc" >&6; }
13837
13838 # So?  What about this header?
13839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13840   yes:no: )
13841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13845     ac_header_preproc=yes
13846     ;;
13847   no:yes:* )
13848     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13850     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13851 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13852     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13854     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13855 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13858     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13860     ( cat <<\_ASBOX
13861 ## --------------------------------------------- ##
13862 ## Report this to <http://www.openldap.org/its/> ##
13863 ## --------------------------------------------- ##
13864 _ASBOX
13865      ) | sed "s/^/$as_me: WARNING:     /" >&2
13866     ;;
13867 esac
13868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13871   echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873   eval "$as_ac_Header=\$ac_header_preproc"
13874 fi
13875 ac_res=`eval echo '${'$as_ac_Header'}'`
13876                { echo "$as_me:$LINENO: result: $ac_res" >&5
13877 echo "${ECHO_T}$ac_res" >&6; }
13878
13879 fi
13880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13881   cat >>confdefs.h <<_ACEOF
13882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13883 _ACEOF
13884
13885 fi
13886
13887 done
13888
13889
13890         if test $ac_cv_header_ltdl_h = no ; then
13891                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13892 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13893    { (exit 1); exit 1; }; }
13894         fi
13895
13896         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13897 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13898 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13899   echo $ECHO_N "(cached) $ECHO_C" >&6
13900 else
13901   ac_check_lib_save_LIBS=$LIBS
13902 LIBS="-lltdl  $LIBS"
13903 cat >conftest.$ac_ext <<_ACEOF
13904 /* confdefs.h.  */
13905 _ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h.  */
13909
13910 /* Override any GCC internal prototype to avoid an error.
13911    Use char because int might match the return type of a GCC
13912    builtin and then its argument prototype would still apply.  */
13913 #ifdef __cplusplus
13914 extern "C"
13915 #endif
13916 char lt_dlinit ();
13917 int
13918 main ()
13919 {
13920 return lt_dlinit ();
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 rm -f conftest.$ac_objext conftest$ac_exeext
13926 if { (ac_try="$ac_link"
13927 case "(($ac_try" in
13928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13929   *) ac_try_echo=$ac_try;;
13930 esac
13931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13932   (eval "$ac_link") 2>conftest.er1
13933   ac_status=$?
13934   grep -v '^ *+' conftest.er1 >conftest.err
13935   rm -f conftest.er1
13936   cat conftest.err >&5
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); } && {
13939          test -z "$ac_c_werror_flag" ||
13940          test ! -s conftest.err
13941        } && test -s conftest$ac_exeext &&
13942        $as_test_x conftest$ac_exeext; then
13943   ac_cv_lib_ltdl_lt_dlinit=yes
13944 else
13945   echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13947
13948         ac_cv_lib_ltdl_lt_dlinit=no
13949 fi
13950
13951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13952       conftest$ac_exeext conftest.$ac_ext
13953 LIBS=$ac_check_lib_save_LIBS
13954 fi
13955 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13956 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13957 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13958
13959                 MODULES_LIBS=-lltdl
13960
13961 cat >>confdefs.h <<\_ACEOF
13962 #define HAVE_LIBLTDL 1
13963 _ACEOF
13964
13965
13966 fi
13967
13968
13969         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13970                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13971 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13972    { (exit 1); exit 1; }; }
13973         fi
13974         ol_link_modules=yes
13975         WITH_MODULES_ENABLED=yes
13976
13977 else
13978         for i in $Backends; do
13979                 eval "ol_tmp=\$ol_enable_$i"
13980                 if test $ol_tmp = mod ; then
13981                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13982 echo "$as_me: WARNING: building static $i backend" >&2;}
13983                         eval "ol_enable_$i=yes"
13984                 fi
13985         done
13986         for i in $Overlays; do
13987                 eval "ol_tmp=\$ol_enable_$i"
13988                 if test $ol_tmp = mod ; then
13989                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13990 echo "$as_me: WARNING: building static $i overlay" >&2;}
13991                         eval "ol_enable_$i=yes"
13992                 fi
13993         done
13994 fi
13995
13996 # test for EBCDIC
13997 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
13998 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
13999 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14000   echo $ECHO_N "(cached) $ECHO_C" >&6
14001 else
14002
14003         cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h.  */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h.  */
14009
14010 #if !('M' == 0xd4)
14011 #include <__ASCII__/generate_error.h>
14012 #endif
14013
14014 _ACEOF
14015 if { (ac_try="$ac_cpp conftest.$ac_ext"
14016 case "(($ac_try" in
14017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018   *) ac_try_echo=$ac_try;;
14019 esac
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14022   ac_status=$?
14023   grep -v '^ *+' conftest.er1 >conftest.err
14024   rm -f conftest.er1
14025   cat conftest.err >&5
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); } >/dev/null && {
14028          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14029          test ! -s conftest.err
14030        }; then
14031   ol_cv_cpp_ebcdic=yes
14032 else
14033   echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14035
14036   ol_cv_cpp_ebcdic=no
14037 fi
14038
14039 rm -f conftest.err conftest.$ac_ext
14040 fi
14041 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14042 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14043 if test $ol_cv_cpp_ebcdic = yes ; then
14044
14045 cat >>confdefs.h <<\_ACEOF
14046 #define HAVE_EBCDIC 1
14047 _ACEOF
14048
14049 fi
14050
14051 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14053 if test "${ol_cv_header_stdc+set}" = set; then
14054   echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056   cat >conftest.$ac_ext <<_ACEOF
14057 /* confdefs.h.  */
14058 _ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h.  */
14062 #include <stdlib.h>
14063 #include <stdarg.h>
14064 #include <string.h>
14065 #include <float.h>
14066 _ACEOF
14067 if { (ac_try="$ac_cpp conftest.$ac_ext"
14068 case "(($ac_try" in
14069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070   *) ac_try_echo=$ac_try;;
14071 esac
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14074   ac_status=$?
14075   grep -v '^ *+' conftest.er1 >conftest.err
14076   rm -f conftest.er1
14077   cat conftest.err >&5
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); } >/dev/null && {
14080          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14081          test ! -s conftest.err
14082        }; then
14083   ol_cv_header_stdc=yes
14084 else
14085   echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14087
14088   ol_cv_header_stdc=no
14089 fi
14090
14091 rm -f conftest.err conftest.$ac_ext
14092
14093 if test $ol_cv_header_stdc = yes; then
14094   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14095 cat >conftest.$ac_ext <<_ACEOF
14096 /* confdefs.h.  */
14097 _ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h.  */
14101 #include <string.h>
14102
14103 _ACEOF
14104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14105   $EGREP "memchr" >/dev/null 2>&1; then
14106   :
14107 else
14108   ol_cv_header_stdc=no
14109 fi
14110 rm -f conftest*
14111
14112 fi
14113
14114 if test $ol_cv_header_stdc = yes; then
14115   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14116 cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h.  */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h.  */
14122 #include <stdlib.h>
14123
14124 _ACEOF
14125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14126   $EGREP "free" >/dev/null 2>&1; then
14127   :
14128 else
14129   ol_cv_header_stdc=no
14130 fi
14131 rm -f conftest*
14132
14133 fi
14134
14135 if test $ol_cv_header_stdc = yes; then
14136   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14137 if test "$cross_compiling" = yes; then
14138   :
14139 else
14140   cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h.  */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h.  */
14146 #include <ctype.h>
14147 #ifndef HAVE_EBCDIC
14148 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14149 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14150 #else
14151 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14152                 || ('j' <= (c) && (c) <= 'r') \
14153                 || ('s' <= (c) && (c) <= 'z'))
14154 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14155 #endif
14156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14157 int main () { int i; for (i = 0; i < 256; i++)
14158 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14159 exit (0); }
14160
14161 _ACEOF
14162 rm -f conftest$ac_exeext
14163 if { (ac_try="$ac_link"
14164 case "(($ac_try" in
14165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166   *) ac_try_echo=$ac_try;;
14167 esac
14168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169   (eval "$ac_link") 2>&5
14170   ac_status=$?
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14173   { (case "(($ac_try" in
14174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175   *) ac_try_echo=$ac_try;;
14176 esac
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178   (eval "$ac_try") 2>&5
14179   ac_status=$?
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); }; }; then
14182   :
14183 else
14184   echo "$as_me: program exited with status $ac_status" >&5
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188 ( exit $ac_status )
14189 ol_cv_header_stdc=no
14190 fi
14191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14192 fi
14193
14194
14195 fi
14196 fi
14197 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14198 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14199 if test $ol_cv_header_stdc = yes; then
14200   cat >>confdefs.h <<\_ACEOF
14201 #define STDC_HEADERS 1
14202 _ACEOF
14203
14204 fi
14205 ac_cv_header_stdc=disable
14206
14207
14208 if test $ol_cv_header_stdc != yes; then
14209         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14210 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14211 fi
14212
14213
14214
14215
14216
14217
14218 ac_header_dirent=no
14219 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14220   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14221 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14222 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14224   echo $ECHO_N "(cached) $ECHO_C" >&6
14225 else
14226   cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h.  */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h.  */
14232 #include <sys/types.h>
14233 #include <$ac_hdr>
14234
14235 int
14236 main ()
14237 {
14238 if ((DIR *) 0)
14239 return 0;
14240   ;
14241   return 0;
14242 }
14243 _ACEOF
14244 rm -f conftest.$ac_objext
14245 if { (ac_try="$ac_compile"
14246 case "(($ac_try" in
14247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248   *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251   (eval "$ac_compile") 2>conftest.er1
14252   ac_status=$?
14253   grep -v '^ *+' conftest.er1 >conftest.err
14254   rm -f conftest.er1
14255   cat conftest.err >&5
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); } && {
14258          test -z "$ac_c_werror_flag" ||
14259          test ! -s conftest.err
14260        } && test -s conftest.$ac_objext; then
14261   eval "$as_ac_Header=yes"
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266         eval "$as_ac_Header=no"
14267 fi
14268
14269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 fi
14271 ac_res=`eval echo '${'$as_ac_Header'}'`
14272                { echo "$as_me:$LINENO: result: $ac_res" >&5
14273 echo "${ECHO_T}$ac_res" >&6; }
14274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14275   cat >>confdefs.h <<_ACEOF
14276 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14277 _ACEOF
14278
14279 ac_header_dirent=$ac_hdr; break
14280 fi
14281
14282 done
14283 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14284 if test $ac_header_dirent = dirent.h; then
14285   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14286 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14287 if test "${ac_cv_search_opendir+set}" = set; then
14288   echo $ECHO_N "(cached) $ECHO_C" >&6
14289 else
14290   ac_func_search_save_LIBS=$LIBS
14291 cat >conftest.$ac_ext <<_ACEOF
14292 /* confdefs.h.  */
14293 _ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h.  */
14297
14298 /* Override any GCC internal prototype to avoid an error.
14299    Use char because int might match the return type of a GCC
14300    builtin and then its argument prototype would still apply.  */
14301 #ifdef __cplusplus
14302 extern "C"
14303 #endif
14304 char opendir ();
14305 int
14306 main ()
14307 {
14308 return opendir ();
14309   ;
14310   return 0;
14311 }
14312 _ACEOF
14313 for ac_lib in '' dir; do
14314   if test -z "$ac_lib"; then
14315     ac_res="none required"
14316   else
14317     ac_res=-l$ac_lib
14318     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14319   fi
14320   rm -f conftest.$ac_objext conftest$ac_exeext
14321 if { (ac_try="$ac_link"
14322 case "(($ac_try" in
14323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324   *) ac_try_echo=$ac_try;;
14325 esac
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327   (eval "$ac_link") 2>conftest.er1
14328   ac_status=$?
14329   grep -v '^ *+' conftest.er1 >conftest.err
14330   rm -f conftest.er1
14331   cat conftest.err >&5
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); } && {
14334          test -z "$ac_c_werror_flag" ||
14335          test ! -s conftest.err
14336        } && test -s conftest$ac_exeext &&
14337        $as_test_x conftest$ac_exeext; then
14338   ac_cv_search_opendir=$ac_res
14339 else
14340   echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343
14344 fi
14345
14346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14347       conftest$ac_exeext
14348   if test "${ac_cv_search_opendir+set}" = set; then
14349   break
14350 fi
14351 done
14352 if test "${ac_cv_search_opendir+set}" = set; then
14353   :
14354 else
14355   ac_cv_search_opendir=no
14356 fi
14357 rm conftest.$ac_ext
14358 LIBS=$ac_func_search_save_LIBS
14359 fi
14360 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14361 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14362 ac_res=$ac_cv_search_opendir
14363 if test "$ac_res" != no; then
14364   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14365
14366 fi
14367
14368 else
14369   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14370 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14371 if test "${ac_cv_search_opendir+set}" = set; then
14372   echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374   ac_func_search_save_LIBS=$LIBS
14375 cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h.  */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h.  */
14381
14382 /* Override any GCC internal prototype to avoid an error.
14383    Use char because int might match the return type of a GCC
14384    builtin and then its argument prototype would still apply.  */
14385 #ifdef __cplusplus
14386 extern "C"
14387 #endif
14388 char opendir ();
14389 int
14390 main ()
14391 {
14392 return opendir ();
14393   ;
14394   return 0;
14395 }
14396 _ACEOF
14397 for ac_lib in '' x; do
14398   if test -z "$ac_lib"; then
14399     ac_res="none required"
14400   else
14401     ac_res=-l$ac_lib
14402     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14403   fi
14404   rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (ac_try="$ac_link"
14406 case "(($ac_try" in
14407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408   *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411   (eval "$ac_link") 2>conftest.er1
14412   ac_status=$?
14413   grep -v '^ *+' conftest.er1 >conftest.err
14414   rm -f conftest.er1
14415   cat conftest.err >&5
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); } && {
14418          test -z "$ac_c_werror_flag" ||
14419          test ! -s conftest.err
14420        } && test -s conftest$ac_exeext &&
14421        $as_test_x conftest$ac_exeext; then
14422   ac_cv_search_opendir=$ac_res
14423 else
14424   echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427
14428 fi
14429
14430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14431       conftest$ac_exeext
14432   if test "${ac_cv_search_opendir+set}" = set; then
14433   break
14434 fi
14435 done
14436 if test "${ac_cv_search_opendir+set}" = set; then
14437   :
14438 else
14439   ac_cv_search_opendir=no
14440 fi
14441 rm conftest.$ac_ext
14442 LIBS=$ac_func_search_save_LIBS
14443 fi
14444 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14445 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14446 ac_res=$ac_cv_search_opendir
14447 if test "$ac_res" != no; then
14448   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14449
14450 fi
14451
14452 fi
14453
14454 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14455 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14456 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14457   echo $ECHO_N "(cached) $ECHO_C" >&6
14458 else
14459   cat >conftest.$ac_ext <<_ACEOF
14460 /* confdefs.h.  */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h.  */
14465 #include <sys/types.h>
14466 #include <sys/wait.h>
14467 #ifndef WEXITSTATUS
14468 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14469 #endif
14470 #ifndef WIFEXITED
14471 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14472 #endif
14473
14474 int
14475 main ()
14476 {
14477   int s;
14478   wait (&s);
14479   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14480   ;
14481   return 0;
14482 }
14483 _ACEOF
14484 rm -f conftest.$ac_objext
14485 if { (ac_try="$ac_compile"
14486 case "(($ac_try" in
14487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488   *) ac_try_echo=$ac_try;;
14489 esac
14490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14491   (eval "$ac_compile") 2>conftest.er1
14492   ac_status=$?
14493   grep -v '^ *+' conftest.er1 >conftest.err
14494   rm -f conftest.er1
14495   cat conftest.err >&5
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); } && {
14498          test -z "$ac_c_werror_flag" ||
14499          test ! -s conftest.err
14500        } && test -s conftest.$ac_objext; then
14501   ac_cv_header_sys_wait_h=yes
14502 else
14503   echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14505
14506         ac_cv_header_sys_wait_h=no
14507 fi
14508
14509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14510 fi
14511 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14512 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14513 if test $ac_cv_header_sys_wait_h = yes; then
14514
14515 cat >>confdefs.h <<\_ACEOF
14516 #define HAVE_SYS_WAIT_H 1
14517 _ACEOF
14518
14519 fi
14520
14521 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14522 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14523 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14524   echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526   cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h.  */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h.  */
14532 #include <sys/types.h>
14533 #include <termios.h>
14534 #ifdef TIOCGWINSZ
14535   yes
14536 #endif
14537
14538 _ACEOF
14539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14540   $EGREP "yes" >/dev/null 2>&1; then
14541   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14542 else
14543   ac_cv_sys_tiocgwinsz_in_termios_h=no
14544 fi
14545 rm -f conftest*
14546
14547 fi
14548 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14549 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14550
14551 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14552   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14553 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14554 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14555   echo $ECHO_N "(cached) $ECHO_C" >&6
14556 else
14557   cat >conftest.$ac_ext <<_ACEOF
14558 /* confdefs.h.  */
14559 _ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h.  */
14563 #include <sys/types.h>
14564 #include <sys/ioctl.h>
14565 #ifdef TIOCGWINSZ
14566   yes
14567 #endif
14568
14569 _ACEOF
14570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14571   $EGREP "yes" >/dev/null 2>&1; then
14572   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14573 else
14574   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14575 fi
14576 rm -f conftest*
14577
14578 fi
14579 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14580 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14581
14582   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14583
14584 cat >>confdefs.h <<\_ACEOF
14585 #define GWINSZ_IN_SYS_IOCTL 1
14586 _ACEOF
14587
14588   fi
14589 fi
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
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 for ac_header in \
14640         arpa/inet.h             \
14641         arpa/nameser.h  \
14642         assert.h                \
14643         bits/types.h    \
14644         conio.h                 \
14645         crypt.h                 \
14646         direct.h                \
14647         errno.h                 \
14648         fcntl.h                 \
14649         filio.h                 \
14650         getopt.h                \
14651         grp.h                   \
14652         io.h                    \
14653         libutil.h               \
14654         limits.h                \
14655         locale.h                \
14656         malloc.h                \
14657         memory.h                \
14658         psap.h                  \
14659         pwd.h                   \
14660         process.h               \
14661         sgtty.h                 \
14662         shadow.h                \
14663         stddef.h                \
14664         string.h                \
14665         strings.h               \
14666         sysexits.h              \
14667         sys/file.h              \
14668         sys/filio.h             \
14669         sys/fstyp.h             \
14670         sys/errno.h             \
14671         sys/ioctl.h             \
14672         sys/param.h             \
14673         sys/privgrp.h   \
14674         sys/resource.h  \
14675         sys/select.h    \
14676         sys/socket.h    \
14677         sys/stat.h              \
14678         sys/syslog.h    \
14679         sys/time.h              \
14680         sys/types.h             \
14681         sys/uio.h               \
14682         sys/vmount.h    \
14683         syslog.h                \
14684         termios.h               \
14685         unistd.h                \
14686         utime.h                 \
14687
14688 do
14689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14691   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14694   echo $ECHO_N "(cached) $ECHO_C" >&6
14695 fi
14696 ac_res=`eval echo '${'$as_ac_Header'}'`
14697                { echo "$as_me:$LINENO: result: $ac_res" >&5
14698 echo "${ECHO_T}$ac_res" >&6; }
14699 else
14700   # Is the header compilable?
14701 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14703 cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h.  */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h.  */
14709 $ac_includes_default
14710 #include <$ac_header>
14711 _ACEOF
14712 rm -f conftest.$ac_objext
14713 if { (ac_try="$ac_compile"
14714 case "(($ac_try" in
14715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716   *) ac_try_echo=$ac_try;;
14717 esac
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719   (eval "$ac_compile") 2>conftest.er1
14720   ac_status=$?
14721   grep -v '^ *+' conftest.er1 >conftest.err
14722   rm -f conftest.er1
14723   cat conftest.err >&5
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); } && {
14726          test -z "$ac_c_werror_flag" ||
14727          test ! -s conftest.err
14728        } && test -s conftest.$ac_objext; then
14729   ac_header_compiler=yes
14730 else
14731   echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14733
14734         ac_header_compiler=no
14735 fi
14736
14737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14739 echo "${ECHO_T}$ac_header_compiler" >&6; }
14740
14741 # Is the header present?
14742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h.  */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h.  */
14750 #include <$ac_header>
14751 _ACEOF
14752 if { (ac_try="$ac_cpp conftest.$ac_ext"
14753 case "(($ac_try" in
14754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755   *) ac_try_echo=$ac_try;;
14756 esac
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14759   ac_status=$?
14760   grep -v '^ *+' conftest.er1 >conftest.err
14761   rm -f conftest.er1
14762   cat conftest.err >&5
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); } >/dev/null && {
14765          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14766          test ! -s conftest.err
14767        }; then
14768   ac_header_preproc=yes
14769 else
14770   echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773   ac_header_preproc=no
14774 fi
14775
14776 rm -f conftest.err conftest.$ac_ext
14777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14778 echo "${ECHO_T}$ac_header_preproc" >&6; }
14779
14780 # So?  What about this header?
14781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14782   yes:no: )
14783     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14787     ac_header_preproc=yes
14788     ;;
14789   no:yes:* )
14790     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14792     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14793 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14794     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14796     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14797 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14800     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14802     ( cat <<\_ASBOX
14803 ## --------------------------------------------- ##
14804 ## Report this to <http://www.openldap.org/its/> ##
14805 ## --------------------------------------------- ##
14806 _ASBOX
14807      ) | sed "s/^/$as_me: WARNING:     /" >&2
14808     ;;
14809 esac
14810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14813   echo $ECHO_N "(cached) $ECHO_C" >&6
14814 else
14815   eval "$as_ac_Header=\$ac_header_preproc"
14816 fi
14817 ac_res=`eval echo '${'$as_ac_Header'}'`
14818                { echo "$as_me:$LINENO: result: $ac_res" >&5
14819 echo "${ECHO_T}$ac_res" >&6; }
14820
14821 fi
14822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14823   cat >>confdefs.h <<_ACEOF
14824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14825 _ACEOF
14826
14827 fi
14828
14829 done
14830
14831
14832 if test "$ac_cv_mingw32" = yes -o "$ol_cv_msvc" = yes ; then
14833
14834
14835 for ac_header in winsock.h winsock2.h
14836 do
14837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14842   echo $ECHO_N "(cached) $ECHO_C" >&6
14843 fi
14844 ac_res=`eval echo '${'$as_ac_Header'}'`
14845                { echo "$as_me:$LINENO: result: $ac_res" >&5
14846 echo "${ECHO_T}$ac_res" >&6; }
14847 else
14848   # Is the header compilable?
14849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14851 cat >conftest.$ac_ext <<_ACEOF
14852 /* confdefs.h.  */
14853 _ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h.  */
14857 $ac_includes_default
14858 #include <$ac_header>
14859 _ACEOF
14860 rm -f conftest.$ac_objext
14861 if { (ac_try="$ac_compile"
14862 case "(($ac_try" in
14863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864   *) ac_try_echo=$ac_try;;
14865 esac
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867   (eval "$ac_compile") 2>conftest.er1
14868   ac_status=$?
14869   grep -v '^ *+' conftest.er1 >conftest.err
14870   rm -f conftest.er1
14871   cat conftest.err >&5
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); } && {
14874          test -z "$ac_c_werror_flag" ||
14875          test ! -s conftest.err
14876        } && test -s conftest.$ac_objext; then
14877   ac_header_compiler=yes
14878 else
14879   echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14881
14882         ac_header_compiler=no
14883 fi
14884
14885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14887 echo "${ECHO_T}$ac_header_compiler" >&6; }
14888
14889 # Is the header present?
14890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14892 cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h.  */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h.  */
14898 #include <$ac_header>
14899 _ACEOF
14900 if { (ac_try="$ac_cpp conftest.$ac_ext"
14901 case "(($ac_try" in
14902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903   *) ac_try_echo=$ac_try;;
14904 esac
14905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14907   ac_status=$?
14908   grep -v '^ *+' conftest.er1 >conftest.err
14909   rm -f conftest.er1
14910   cat conftest.err >&5
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); } >/dev/null && {
14913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14914          test ! -s conftest.err
14915        }; then
14916   ac_header_preproc=yes
14917 else
14918   echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921   ac_header_preproc=no
14922 fi
14923
14924 rm -f conftest.err conftest.$ac_ext
14925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14926 echo "${ECHO_T}$ac_header_preproc" >&6; }
14927
14928 # So?  What about this header?
14929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14930   yes:no: )
14931     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14935     ac_header_preproc=yes
14936     ;;
14937   no:yes:* )
14938     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14940     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14941 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14942     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14944     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14945 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14948     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14950     ( cat <<\_ASBOX
14951 ## --------------------------------------------- ##
14952 ## Report this to <http://www.openldap.org/its/> ##
14953 ## --------------------------------------------- ##
14954 _ASBOX
14955      ) | sed "s/^/$as_me: WARNING:     /" >&2
14956     ;;
14957 esac
14958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14961   echo $ECHO_N "(cached) $ECHO_C" >&6
14962 else
14963   eval "$as_ac_Header=\$ac_header_preproc"
14964 fi
14965 ac_res=`eval echo '${'$as_ac_Header'}'`
14966                { echo "$as_me:$LINENO: result: $ac_res" >&5
14967 echo "${ECHO_T}$ac_res" >&6; }
14968
14969 fi
14970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14971   cat >>confdefs.h <<_ACEOF
14972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14973 _ACEOF
14974
14975 fi
14976
14977 done
14978
14979 fi
14980
14981
14982 for ac_header in resolv.h
14983 do
14984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14988   echo $ECHO_N "(cached) $ECHO_C" >&6
14989 else
14990   cat >conftest.$ac_ext <<_ACEOF
14991 /* confdefs.h.  */
14992 _ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h.  */
14996 $ac_includes_default
14997 #include <netinet/in.h>
14998
14999
15000 #include <$ac_header>
15001 _ACEOF
15002 rm -f conftest.$ac_objext
15003 if { (ac_try="$ac_compile"
15004 case "(($ac_try" in
15005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006   *) ac_try_echo=$ac_try;;
15007 esac
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009   (eval "$ac_compile") 2>conftest.er1
15010   ac_status=$?
15011   grep -v '^ *+' conftest.er1 >conftest.err
15012   rm -f conftest.er1
15013   cat conftest.err >&5
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); } && {
15016          test -z "$ac_c_werror_flag" ||
15017          test ! -s conftest.err
15018        } && test -s conftest.$ac_objext; then
15019   eval "$as_ac_Header=yes"
15020 else
15021   echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024         eval "$as_ac_Header=no"
15025 fi
15026
15027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 fi
15029 ac_res=`eval echo '${'$as_ac_Header'}'`
15030                { echo "$as_me:$LINENO: result: $ac_res" >&5
15031 echo "${ECHO_T}$ac_res" >&6; }
15032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15033   cat >>confdefs.h <<_ACEOF
15034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15035 _ACEOF
15036
15037 fi
15038
15039 done
15040
15041
15042
15043 for ac_header in netinet/tcp.h
15044 do
15045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15049   echo $ECHO_N "(cached) $ECHO_C" >&6
15050 else
15051   cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h.  */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h.  */
15057 $ac_includes_default
15058 #include <netinet/in.h>
15059
15060
15061 #include <$ac_header>
15062 _ACEOF
15063 rm -f conftest.$ac_objext
15064 if { (ac_try="$ac_compile"
15065 case "(($ac_try" in
15066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067   *) ac_try_echo=$ac_try;;
15068 esac
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070   (eval "$ac_compile") 2>conftest.er1
15071   ac_status=$?
15072   grep -v '^ *+' conftest.er1 >conftest.err
15073   rm -f conftest.er1
15074   cat conftest.err >&5
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); } && {
15077          test -z "$ac_c_werror_flag" ||
15078          test ! -s conftest.err
15079        } && test -s conftest.$ac_objext; then
15080   eval "$as_ac_Header=yes"
15081 else
15082   echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15084
15085         eval "$as_ac_Header=no"
15086 fi
15087
15088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15089 fi
15090 ac_res=`eval echo '${'$as_ac_Header'}'`
15091                { echo "$as_me:$LINENO: result: $ac_res" >&5
15092 echo "${ECHO_T}$ac_res" >&6; }
15093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15094   cat >>confdefs.h <<_ACEOF
15095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15096 _ACEOF
15097
15098 fi
15099
15100 done
15101
15102
15103
15104 for ac_header in sys/ucred.h
15105 do
15106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15110   echo $ECHO_N "(cached) $ECHO_C" >&6
15111 else
15112   cat >conftest.$ac_ext <<_ACEOF
15113 /* confdefs.h.  */
15114 _ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h.  */
15118 $ac_includes_default
15119 #ifdef HAVE_SYS_PARAM_H
15120 #include <sys/param.h>
15121 #endif
15122
15123
15124 #include <$ac_header>
15125 _ACEOF
15126 rm -f conftest.$ac_objext
15127 if { (ac_try="$ac_compile"
15128 case "(($ac_try" in
15129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130   *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133   (eval "$ac_compile") 2>conftest.er1
15134   ac_status=$?
15135   grep -v '^ *+' conftest.er1 >conftest.err
15136   rm -f conftest.er1
15137   cat conftest.err >&5
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); } && {
15140          test -z "$ac_c_werror_flag" ||
15141          test ! -s conftest.err
15142        } && test -s conftest.$ac_objext; then
15143   eval "$as_ac_Header=yes"
15144 else
15145   echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15147
15148         eval "$as_ac_Header=no"
15149 fi
15150
15151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15152 fi
15153 ac_res=`eval echo '${'$as_ac_Header'}'`
15154                { echo "$as_me:$LINENO: result: $ac_res" >&5
15155 echo "${ECHO_T}$ac_res" >&6; }
15156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15157   cat >>confdefs.h <<_ACEOF
15158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15159 _ACEOF
15160
15161 fi
15162
15163 done
15164
15165
15166
15167
15168
15169 for ac_func in sigaction sigset
15170 do
15171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15175   echo $ECHO_N "(cached) $ECHO_C" >&6
15176 else
15177   cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15185 #define $ac_func innocuous_$ac_func
15186
15187 /* System header to define __stub macros and hopefully few prototypes,
15188     which can conflict with char $ac_func (); below.
15189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15190     <limits.h> exists even on freestanding compilers.  */
15191
15192 #ifdef __STDC__
15193 # include <limits.h>
15194 #else
15195 # include <assert.h>
15196 #endif
15197
15198 #undef $ac_func
15199
15200 /* Override any GCC internal prototype to avoid an error.
15201    Use char because int might match the return type of a GCC
15202    builtin and then its argument prototype would still apply.  */
15203 #ifdef __cplusplus
15204 extern "C"
15205 #endif
15206 char $ac_func ();
15207 /* The GNU C library defines this for functions which it implements
15208     to always fail with ENOSYS.  Some functions are actually named
15209     something starting with __ and the normal name is an alias.  */
15210 #if defined __stub_$ac_func || defined __stub___$ac_func
15211 choke me
15212 #endif
15213
15214 int
15215 main ()
15216 {
15217 return $ac_func ();
15218   ;
15219   return 0;
15220 }
15221 _ACEOF
15222 rm -f conftest.$ac_objext conftest$ac_exeext
15223 if { (ac_try="$ac_link"
15224 case "(($ac_try" in
15225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226   *) ac_try_echo=$ac_try;;
15227 esac
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229   (eval "$ac_link") 2>conftest.er1
15230   ac_status=$?
15231   grep -v '^ *+' conftest.er1 >conftest.err
15232   rm -f conftest.er1
15233   cat conftest.err >&5
15234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235   (exit $ac_status); } && {
15236          test -z "$ac_c_werror_flag" ||
15237          test ! -s conftest.err
15238        } && test -s conftest$ac_exeext &&
15239        $as_test_x conftest$ac_exeext; then
15240   eval "$as_ac_var=yes"
15241 else
15242   echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15244
15245         eval "$as_ac_var=no"
15246 fi
15247
15248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15249       conftest$ac_exeext conftest.$ac_ext
15250 fi
15251 ac_res=`eval echo '${'$as_ac_var'}'`
15252                { echo "$as_me:$LINENO: result: $ac_res" >&5
15253 echo "${ECHO_T}$ac_res" >&6; }
15254 if test `eval echo '${'$as_ac_var'}'` = yes; then
15255   cat >>confdefs.h <<_ACEOF
15256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15257 _ACEOF
15258
15259 fi
15260 done
15261
15262
15263 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15264
15265 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15266 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15267 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15268   echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270   ac_check_lib_save_LIBS=$LIBS
15271 LIBS="-lV3  $LIBS"
15272 cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h.  */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h.  */
15278
15279 /* Override any GCC internal prototype to avoid an error.
15280    Use char because int might match the return type of a GCC
15281    builtin and then its argument prototype would still apply.  */
15282 #ifdef __cplusplus
15283 extern "C"
15284 #endif
15285 char sigset ();
15286 int
15287 main ()
15288 {
15289 return sigset ();
15290   ;
15291   return 0;
15292 }
15293 _ACEOF
15294 rm -f conftest.$ac_objext conftest$ac_exeext
15295 if { (ac_try="$ac_link"
15296 case "(($ac_try" in
15297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298   *) ac_try_echo=$ac_try;;
15299 esac
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301   (eval "$ac_link") 2>conftest.er1
15302   ac_status=$?
15303   grep -v '^ *+' conftest.er1 >conftest.err
15304   rm -f conftest.er1
15305   cat conftest.err >&5
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); } && {
15308          test -z "$ac_c_werror_flag" ||
15309          test ! -s conftest.err
15310        } && test -s conftest$ac_exeext &&
15311        $as_test_x conftest$ac_exeext; then
15312   ac_cv_lib_V3_sigset=yes
15313 else
15314   echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15316
15317         ac_cv_lib_V3_sigset=no
15318 fi
15319
15320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15321       conftest$ac_exeext conftest.$ac_ext
15322 LIBS=$ac_check_lib_save_LIBS
15323 fi
15324 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15325 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15326 if test $ac_cv_lib_V3_sigset = yes; then
15327   cat >>confdefs.h <<_ACEOF
15328 #define HAVE_LIBV3 1
15329 _ACEOF
15330
15331   LIBS="-lV3 $LIBS"
15332
15333 fi
15334
15335 fi
15336
15337 if test $ol_cv_msvc ; then
15338    ol_cv_winsock=yes
15339 fi
15340
15341 if test "$ac_cv_header_winsock_h" = yes; then
15342         { echo "$as_me:$LINENO: checking for winsock" >&5
15343 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15344 if test "${ol_cv_winsock+set}" = set; then
15345   echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347
15348         save_LIBS="$LIBS"
15349         for curlib in none ws2_32 wsock32; do
15350                 if test curlib != none ; then
15351                 LIBS="$save_LIBS -l$curlib"
15352                 fi
15353                 cat >conftest.$ac_ext <<_ACEOF
15354 /* confdefs.h.  */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h.  */
15359 #include <winsock.h>
15360
15361 int
15362 main ()
15363 {
15364
15365                         socket(0,0,0);
15366                         select(0,NULL,NULL,NULL,NULL);
15367                         closesocket(0);
15368                         gethostname(NULL,0);
15369
15370   ;
15371   return 0;
15372 }
15373 _ACEOF
15374 rm -f conftest.$ac_objext conftest$ac_exeext
15375 if { (ac_try="$ac_link"
15376 case "(($ac_try" in
15377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378   *) ac_try_echo=$ac_try;;
15379 esac
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381   (eval "$ac_link") 2>conftest.er1
15382   ac_status=$?
15383   grep -v '^ *+' conftest.er1 >conftest.err
15384   rm -f conftest.er1
15385   cat conftest.err >&5
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); } && {
15388          test -z "$ac_c_werror_flag" ||
15389          test ! -s conftest.err
15390        } && test -s conftest$ac_exeext &&
15391        $as_test_x conftest$ac_exeext; then
15392   ol_cv_winsock=$curlib
15393 else
15394   echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15396
15397         ol_cv_winsock=no
15398 fi
15399
15400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15401       conftest$ac_exeext conftest.$ac_ext
15402
15403                 test "$ol_cv_winsock" != no && break
15404         done
15405         LIBS="$save_LIBS"
15406
15407 fi
15408 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15409 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15410
15411         if test $ol_cv_winsock != no ; then
15412
15413 cat >>confdefs.h <<\_ACEOF
15414 #define HAVE_WINSOCK 1
15415 _ACEOF
15416
15417         ac_cv_func_socket=yes
15418         ac_cv_func_select=yes
15419         ac_cv_func_closesocket=yes
15420         ac_cv_func_gethostname=yes
15421
15422                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15423                 LIBS="$LIBS -l$ol_cv_winsock"
15424                 fi
15425
15426         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15427
15428 cat >>confdefs.h <<\_ACEOF
15429 #define HAVE_WINSOCK2 1
15430 _ACEOF
15431
15432         fi
15433         fi
15434 fi
15435
15436
15437 { echo "$as_me:$LINENO: checking for socket" >&5
15438 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15439 if test "${ac_cv_func_socket+set}" = set; then
15440   echo $ECHO_N "(cached) $ECHO_C" >&6
15441 else
15442   cat >conftest.$ac_ext <<_ACEOF
15443 /* confdefs.h.  */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h.  */
15448 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15450 #define socket innocuous_socket
15451
15452 /* System header to define __stub macros and hopefully few prototypes,
15453     which can conflict with char socket (); below.
15454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15455     <limits.h> exists even on freestanding compilers.  */
15456
15457 #ifdef __STDC__
15458 # include <limits.h>
15459 #else
15460 # include <assert.h>
15461 #endif
15462
15463 #undef socket
15464
15465 /* Override any GCC internal prototype to avoid an error.
15466    Use char because int might match the return type of a GCC
15467    builtin and then its argument prototype would still apply.  */
15468 #ifdef __cplusplus
15469 extern "C"
15470 #endif
15471 char socket ();
15472 /* The GNU C library defines this for functions which it implements
15473     to always fail with ENOSYS.  Some functions are actually named
15474     something starting with __ and the normal name is an alias.  */
15475 #if defined __stub_socket || defined __stub___socket
15476 choke me
15477 #endif
15478
15479 int
15480 main ()
15481 {
15482 return socket ();
15483   ;
15484   return 0;
15485 }
15486 _ACEOF
15487 rm -f conftest.$ac_objext conftest$ac_exeext
15488 if { (ac_try="$ac_link"
15489 case "(($ac_try" in
15490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491   *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494   (eval "$ac_link") 2>conftest.er1
15495   ac_status=$?
15496   grep -v '^ *+' conftest.er1 >conftest.err
15497   rm -f conftest.er1
15498   cat conftest.err >&5
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); } && {
15501          test -z "$ac_c_werror_flag" ||
15502          test ! -s conftest.err
15503        } && test -s conftest$ac_exeext &&
15504        $as_test_x conftest$ac_exeext; then
15505   ac_cv_func_socket=yes
15506 else
15507   echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510         ac_cv_func_socket=no
15511 fi
15512
15513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15514       conftest$ac_exeext conftest.$ac_ext
15515 fi
15516 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15517 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15518 if test $ac_cv_func_socket = yes; then
15519   :
15520 else
15521
15522
15523 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15524 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15525 if test "${ac_cv_lib_socket_main+set}" = set; then
15526   echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528   ac_check_lib_save_LIBS=$LIBS
15529 LIBS="-lsocket  $LIBS"
15530 cat >conftest.$ac_ext <<_ACEOF
15531 /* confdefs.h.  */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h.  */
15536
15537
15538 int
15539 main ()
15540 {
15541 return main ();
15542   ;
15543   return 0;
15544 }
15545 _ACEOF
15546 rm -f conftest.$ac_objext conftest$ac_exeext
15547 if { (ac_try="$ac_link"
15548 case "(($ac_try" in
15549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550   *) ac_try_echo=$ac_try;;
15551 esac
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553   (eval "$ac_link") 2>conftest.er1
15554   ac_status=$?
15555   grep -v '^ *+' conftest.er1 >conftest.err
15556   rm -f conftest.er1
15557   cat conftest.err >&5
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); } && {
15560          test -z "$ac_c_werror_flag" ||
15561          test ! -s conftest.err
15562        } && test -s conftest$ac_exeext &&
15563        $as_test_x conftest$ac_exeext; then
15564   ac_cv_lib_socket_main=yes
15565 else
15566   echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15568
15569         ac_cv_lib_socket_main=no
15570 fi
15571
15572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15573       conftest$ac_exeext conftest.$ac_ext
15574 LIBS=$ac_check_lib_save_LIBS
15575 fi
15576 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15577 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15578 if test $ac_cv_lib_socket_main = yes; then
15579   cat >>confdefs.h <<_ACEOF
15580 #define HAVE_LIBSOCKET 1
15581 _ACEOF
15582
15583   LIBS="-lsocket $LIBS"
15584
15585 fi
15586
15587
15588 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15589 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15590 if test "${ac_cv_lib_net_main+set}" = set; then
15591   echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593   ac_check_lib_save_LIBS=$LIBS
15594 LIBS="-lnet  $LIBS"
15595 cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h.  */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h.  */
15601
15602
15603 int
15604 main ()
15605 {
15606 return main ();
15607   ;
15608   return 0;
15609 }
15610 _ACEOF
15611 rm -f conftest.$ac_objext conftest$ac_exeext
15612 if { (ac_try="$ac_link"
15613 case "(($ac_try" in
15614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615   *) ac_try_echo=$ac_try;;
15616 esac
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618   (eval "$ac_link") 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } && {
15625          test -z "$ac_c_werror_flag" ||
15626          test ! -s conftest.err
15627        } && test -s conftest$ac_exeext &&
15628        $as_test_x conftest$ac_exeext; then
15629   ac_cv_lib_net_main=yes
15630 else
15631   echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15633
15634         ac_cv_lib_net_main=no
15635 fi
15636
15637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15638       conftest$ac_exeext conftest.$ac_ext
15639 LIBS=$ac_check_lib_save_LIBS
15640 fi
15641 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15642 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15643 if test $ac_cv_lib_net_main = yes; then
15644   cat >>confdefs.h <<_ACEOF
15645 #define HAVE_LIBNET 1
15646 _ACEOF
15647
15648   LIBS="-lnet $LIBS"
15649
15650 fi
15651
15652
15653 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15654 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15655 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15656   echo $ECHO_N "(cached) $ECHO_C" >&6
15657 else
15658   ac_check_lib_save_LIBS=$LIBS
15659 LIBS="-lnsl_s  $LIBS"
15660 cat >conftest.$ac_ext <<_ACEOF
15661 /* confdefs.h.  */
15662 _ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h.  */
15666
15667
15668 int
15669 main ()
15670 {
15671 return main ();
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (ac_try="$ac_link"
15678 case "(($ac_try" in
15679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680   *) ac_try_echo=$ac_try;;
15681 esac
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683   (eval "$ac_link") 2>conftest.er1
15684   ac_status=$?
15685   grep -v '^ *+' conftest.er1 >conftest.err
15686   rm -f conftest.er1
15687   cat conftest.err >&5
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); } && {
15690          test -z "$ac_c_werror_flag" ||
15691          test ! -s conftest.err
15692        } && test -s conftest$ac_exeext &&
15693        $as_test_x conftest$ac_exeext; then
15694   ac_cv_lib_nsl_s_main=yes
15695 else
15696   echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15698
15699         ac_cv_lib_nsl_s_main=no
15700 fi
15701
15702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15703       conftest$ac_exeext conftest.$ac_ext
15704 LIBS=$ac_check_lib_save_LIBS
15705 fi
15706 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15707 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15708 if test $ac_cv_lib_nsl_s_main = yes; then
15709   cat >>confdefs.h <<_ACEOF
15710 #define HAVE_LIBNSL_S 1
15711 _ACEOF
15712
15713   LIBS="-lnsl_s $LIBS"
15714
15715 fi
15716
15717
15718 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15719 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15720 if test "${ac_cv_lib_nsl_main+set}" = set; then
15721   echo $ECHO_N "(cached) $ECHO_C" >&6
15722 else
15723   ac_check_lib_save_LIBS=$LIBS
15724 LIBS="-lnsl  $LIBS"
15725 cat >conftest.$ac_ext <<_ACEOF
15726 /* confdefs.h.  */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h.  */
15731
15732
15733 int
15734 main ()
15735 {
15736 return main ();
15737   ;
15738   return 0;
15739 }
15740 _ACEOF
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (ac_try="$ac_link"
15743 case "(($ac_try" in
15744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745   *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748   (eval "$ac_link") 2>conftest.er1
15749   ac_status=$?
15750   grep -v '^ *+' conftest.er1 >conftest.err
15751   rm -f conftest.er1
15752   cat conftest.err >&5
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); } && {
15755          test -z "$ac_c_werror_flag" ||
15756          test ! -s conftest.err
15757        } && test -s conftest$ac_exeext &&
15758        $as_test_x conftest$ac_exeext; then
15759   ac_cv_lib_nsl_main=yes
15760 else
15761   echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15763
15764         ac_cv_lib_nsl_main=no
15765 fi
15766
15767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15768       conftest$ac_exeext conftest.$ac_ext
15769 LIBS=$ac_check_lib_save_LIBS
15770 fi
15771 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15772 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15773 if test $ac_cv_lib_nsl_main = yes; then
15774   cat >>confdefs.h <<_ACEOF
15775 #define HAVE_LIBNSL 1
15776 _ACEOF
15777
15778   LIBS="-lnsl $LIBS"
15779
15780 fi
15781
15782
15783 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15784 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15785 if test "${ac_cv_lib_inet_socket+set}" = set; then
15786   echo $ECHO_N "(cached) $ECHO_C" >&6
15787 else
15788   ac_check_lib_save_LIBS=$LIBS
15789 LIBS="-linet  $LIBS"
15790 cat >conftest.$ac_ext <<_ACEOF
15791 /* confdefs.h.  */
15792 _ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h.  */
15796
15797 /* Override any GCC internal prototype to avoid an error.
15798    Use char because int might match the return type of a GCC
15799    builtin and then its argument prototype would still apply.  */
15800 #ifdef __cplusplus
15801 extern "C"
15802 #endif
15803 char socket ();
15804 int
15805 main ()
15806 {
15807 return socket ();
15808   ;
15809   return 0;
15810 }
15811 _ACEOF
15812 rm -f conftest.$ac_objext conftest$ac_exeext
15813 if { (ac_try="$ac_link"
15814 case "(($ac_try" in
15815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816   *) ac_try_echo=$ac_try;;
15817 esac
15818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819   (eval "$ac_link") 2>conftest.er1
15820   ac_status=$?
15821   grep -v '^ *+' conftest.er1 >conftest.err
15822   rm -f conftest.er1
15823   cat conftest.err >&5
15824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); } && {
15826          test -z "$ac_c_werror_flag" ||
15827          test ! -s conftest.err
15828        } && test -s conftest$ac_exeext &&
15829        $as_test_x conftest$ac_exeext; then
15830   ac_cv_lib_inet_socket=yes
15831 else
15832   echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15834
15835         ac_cv_lib_inet_socket=no
15836 fi
15837
15838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15839       conftest$ac_exeext conftest.$ac_ext
15840 LIBS=$ac_check_lib_save_LIBS
15841 fi
15842 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15843 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15844 if test $ac_cv_lib_inet_socket = yes; then
15845   cat >>confdefs.h <<_ACEOF
15846 #define HAVE_LIBINET 1
15847 _ACEOF
15848
15849   LIBS="-linet $LIBS"
15850
15851 fi
15852
15853
15854 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15855 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15856 if test "${ac_cv_lib_gen_main+set}" = set; then
15857   echo $ECHO_N "(cached) $ECHO_C" >&6
15858 else
15859   ac_check_lib_save_LIBS=$LIBS
15860 LIBS="-lgen  $LIBS"
15861 cat >conftest.$ac_ext <<_ACEOF
15862 /* confdefs.h.  */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h.  */
15867
15868
15869 int
15870 main ()
15871 {
15872 return main ();
15873   ;
15874   return 0;
15875 }
15876 _ACEOF
15877 rm -f conftest.$ac_objext conftest$ac_exeext
15878 if { (ac_try="$ac_link"
15879 case "(($ac_try" in
15880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881   *) ac_try_echo=$ac_try;;
15882 esac
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884   (eval "$ac_link") 2>conftest.er1
15885   ac_status=$?
15886   grep -v '^ *+' conftest.er1 >conftest.err
15887   rm -f conftest.er1
15888   cat conftest.err >&5
15889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890   (exit $ac_status); } && {
15891          test -z "$ac_c_werror_flag" ||
15892          test ! -s conftest.err
15893        } && test -s conftest$ac_exeext &&
15894        $as_test_x conftest$ac_exeext; then
15895   ac_cv_lib_gen_main=yes
15896 else
15897   echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900         ac_cv_lib_gen_main=no
15901 fi
15902
15903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15904       conftest$ac_exeext conftest.$ac_ext
15905 LIBS=$ac_check_lib_save_LIBS
15906 fi
15907 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15908 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15909 if test $ac_cv_lib_gen_main = yes; then
15910   cat >>confdefs.h <<_ACEOF
15911 #define HAVE_LIBGEN 1
15912 _ACEOF
15913
15914   LIBS="-lgen $LIBS"
15915
15916 fi
15917
15918
15919 fi
15920
15921
15922 { echo "$as_me:$LINENO: checking for select" >&5
15923 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15924 if test "${ac_cv_func_select+set}" = set; then
15925   echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15927   cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h.  */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h.  */
15933 /* Define select to an innocuous variant, in case <limits.h> declares select.
15934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15935 #define select innocuous_select
15936
15937 /* System header to define __stub macros and hopefully few prototypes,
15938     which can conflict with char select (); below.
15939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15940     <limits.h> exists even on freestanding compilers.  */
15941
15942 #ifdef __STDC__
15943 # include <limits.h>
15944 #else
15945 # include <assert.h>
15946 #endif
15947
15948 #undef select
15949
15950 /* Override any GCC internal prototype to avoid an error.
15951    Use char because int might match the return type of a GCC
15952    builtin and then its argument prototype would still apply.  */
15953 #ifdef __cplusplus
15954 extern "C"
15955 #endif
15956 char select ();
15957 /* The GNU C library defines this for functions which it implements
15958     to always fail with ENOSYS.  Some functions are actually named
15959     something starting with __ and the normal name is an alias.  */
15960 #if defined __stub_select || defined __stub___select
15961 choke me
15962 #endif
15963
15964 int
15965 main ()
15966 {
15967 return select ();
15968   ;
15969   return 0;
15970 }
15971 _ACEOF
15972 rm -f conftest.$ac_objext conftest$ac_exeext
15973 if { (ac_try="$ac_link"
15974 case "(($ac_try" in
15975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976   *) ac_try_echo=$ac_try;;
15977 esac
15978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15979   (eval "$ac_link") 2>conftest.er1
15980   ac_status=$?
15981   grep -v '^ *+' conftest.er1 >conftest.err
15982   rm -f conftest.er1
15983   cat conftest.err >&5
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); } && {
15986          test -z "$ac_c_werror_flag" ||
15987          test ! -s conftest.err
15988        } && test -s conftest$ac_exeext &&
15989        $as_test_x conftest$ac_exeext; then
15990   ac_cv_func_select=yes
15991 else
15992   echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15994
15995         ac_cv_func_select=no
15996 fi
15997
15998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15999       conftest$ac_exeext conftest.$ac_ext
16000 fi
16001 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16002 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16003 if test $ac_cv_func_select = yes; then
16004   :
16005 else
16006   { { echo "$as_me:$LINENO: error: select() required." >&5
16007 echo "$as_me: error: select() required." >&2;}
16008    { (exit 1); exit 1; }; }
16009 fi
16010
16011
16012 if test "${ac_cv_header_winsock_h}" != yes; then
16013
16014
16015 for ac_header in sys/select.h sys/socket.h
16016 do
16017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16019   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16022   echo $ECHO_N "(cached) $ECHO_C" >&6
16023 fi
16024 ac_res=`eval echo '${'$as_ac_Header'}'`
16025                { echo "$as_me:$LINENO: result: $ac_res" >&5
16026 echo "${ECHO_T}$ac_res" >&6; }
16027 else
16028   # Is the header compilable?
16029 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16031 cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h.  */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h.  */
16037 $ac_includes_default
16038 #include <$ac_header>
16039 _ACEOF
16040 rm -f conftest.$ac_objext
16041 if { (ac_try="$ac_compile"
16042 case "(($ac_try" in
16043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044   *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047   (eval "$ac_compile") 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } && {
16054          test -z "$ac_c_werror_flag" ||
16055          test ! -s conftest.err
16056        } && test -s conftest.$ac_objext; then
16057   ac_header_compiler=yes
16058 else
16059   echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062         ac_header_compiler=no
16063 fi
16064
16065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16067 echo "${ECHO_T}$ac_header_compiler" >&6; }
16068
16069 # Is the header present?
16070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16072 cat >conftest.$ac_ext <<_ACEOF
16073 /* confdefs.h.  */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h.  */
16078 #include <$ac_header>
16079 _ACEOF
16080 if { (ac_try="$ac_cpp conftest.$ac_ext"
16081 case "(($ac_try" in
16082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083   *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16087   ac_status=$?
16088   grep -v '^ *+' conftest.er1 >conftest.err
16089   rm -f conftest.er1
16090   cat conftest.err >&5
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } >/dev/null && {
16093          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16094          test ! -s conftest.err
16095        }; then
16096   ac_header_preproc=yes
16097 else
16098   echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.$ac_ext >&5
16100
16101   ac_header_preproc=no
16102 fi
16103
16104 rm -f conftest.err conftest.$ac_ext
16105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16106 echo "${ECHO_T}$ac_header_preproc" >&6; }
16107
16108 # So?  What about this header?
16109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16110   yes:no: )
16111     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16115     ac_header_preproc=yes
16116     ;;
16117   no:yes:* )
16118     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16120     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16121 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16122     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16124     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16125 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16128     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16130     ( cat <<\_ASBOX
16131 ## --------------------------------------------- ##
16132 ## Report this to <http://www.openldap.org/its/> ##
16133 ## --------------------------------------------- ##
16134 _ASBOX
16135      ) | sed "s/^/$as_me: WARNING:     /" >&2
16136     ;;
16137 esac
16138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16141   echo $ECHO_N "(cached) $ECHO_C" >&6
16142 else
16143   eval "$as_ac_Header=\$ac_header_preproc"
16144 fi
16145 ac_res=`eval echo '${'$as_ac_Header'}'`
16146                { echo "$as_me:$LINENO: result: $ac_res" >&5
16147 echo "${ECHO_T}$ac_res" >&6; }
16148
16149 fi
16150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16151   cat >>confdefs.h <<_ACEOF
16152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16153 _ACEOF
16154
16155 fi
16156
16157 done
16158
16159 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16160 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16161 if test "${ac_cv_func_select_args+set}" = set; then
16162   echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16165  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16166   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16167    cat >conftest.$ac_ext <<_ACEOF
16168 /* confdefs.h.  */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h.  */
16173 $ac_includes_default
16174 #ifdef HAVE_SYS_SELECT_H
16175 # include <sys/select.h>
16176 #endif
16177 #ifdef HAVE_SYS_SOCKET_H
16178 # include <sys/socket.h>
16179 #endif
16180
16181 int
16182 main ()
16183 {
16184 extern int select ($ac_arg1,
16185                                             $ac_arg234, $ac_arg234, $ac_arg234,
16186                                             $ac_arg5);
16187   ;
16188   return 0;
16189 }
16190 _ACEOF
16191 rm -f conftest.$ac_objext
16192 if { (ac_try="$ac_compile"
16193 case "(($ac_try" in
16194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195   *) ac_try_echo=$ac_try;;
16196 esac
16197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16198   (eval "$ac_compile") 2>conftest.er1
16199   ac_status=$?
16200   grep -v '^ *+' conftest.er1 >conftest.err
16201   rm -f conftest.er1
16202   cat conftest.err >&5
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); } && {
16205          test -z "$ac_c_werror_flag" ||
16206          test ! -s conftest.err
16207        } && test -s conftest.$ac_objext; then
16208   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16209 else
16210   echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16212
16213
16214 fi
16215
16216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16217   done
16218  done
16219 done
16220 # Provide a safe default value.
16221 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16222
16223 fi
16224 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16225 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16226 ac_save_IFS=$IFS; IFS=','
16227 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16228 IFS=$ac_save_IFS
16229 shift
16230
16231 cat >>confdefs.h <<_ACEOF
16232 #define SELECT_TYPE_ARG1 $1
16233 _ACEOF
16234
16235
16236 cat >>confdefs.h <<_ACEOF
16237 #define SELECT_TYPE_ARG234 ($2)
16238 _ACEOF
16239
16240
16241 cat >>confdefs.h <<_ACEOF
16242 #define SELECT_TYPE_ARG5 ($3)
16243 _ACEOF
16244
16245 rm -f conftest*
16246
16247 fi
16248
16249
16250
16251 for ac_func in poll
16252 do
16253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16257   echo $ECHO_N "(cached) $ECHO_C" >&6
16258 else
16259   cat >conftest.$ac_ext <<_ACEOF
16260 /* confdefs.h.  */
16261 _ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h.  */
16265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16267 #define $ac_func innocuous_$ac_func
16268
16269 /* System header to define __stub macros and hopefully few prototypes,
16270     which can conflict with char $ac_func (); below.
16271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16272     <limits.h> exists even on freestanding compilers.  */
16273
16274 #ifdef __STDC__
16275 # include <limits.h>
16276 #else
16277 # include <assert.h>
16278 #endif
16279
16280 #undef $ac_func
16281
16282 /* Override any GCC internal prototype to avoid an error.
16283    Use char because int might match the return type of a GCC
16284    builtin and then its argument prototype would still apply.  */
16285 #ifdef __cplusplus
16286 extern "C"
16287 #endif
16288 char $ac_func ();
16289 /* The GNU C library defines this for functions which it implements
16290     to always fail with ENOSYS.  Some functions are actually named
16291     something starting with __ and the normal name is an alias.  */
16292 #if defined __stub_$ac_func || defined __stub___$ac_func
16293 choke me
16294 #endif
16295
16296 int
16297 main ()
16298 {
16299 return $ac_func ();
16300   ;
16301   return 0;
16302 }
16303 _ACEOF
16304 rm -f conftest.$ac_objext conftest$ac_exeext
16305 if { (ac_try="$ac_link"
16306 case "(($ac_try" in
16307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16308   *) ac_try_echo=$ac_try;;
16309 esac
16310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16311   (eval "$ac_link") 2>conftest.er1
16312   ac_status=$?
16313   grep -v '^ *+' conftest.er1 >conftest.err
16314   rm -f conftest.er1
16315   cat conftest.err >&5
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); } && {
16318          test -z "$ac_c_werror_flag" ||
16319          test ! -s conftest.err
16320        } && test -s conftest$ac_exeext &&
16321        $as_test_x conftest$ac_exeext; then
16322   eval "$as_ac_var=yes"
16323 else
16324   echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16326
16327         eval "$as_ac_var=no"
16328 fi
16329
16330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16331       conftest$ac_exeext conftest.$ac_ext
16332 fi
16333 ac_res=`eval echo '${'$as_ac_var'}'`
16334                { echo "$as_me:$LINENO: result: $ac_res" >&5
16335 echo "${ECHO_T}$ac_res" >&6; }
16336 if test `eval echo '${'$as_ac_var'}'` = yes; then
16337   cat >>confdefs.h <<_ACEOF
16338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16339 _ACEOF
16340
16341 fi
16342 done
16343
16344 if test $ac_cv_func_poll = yes; then
16345
16346
16347 for ac_header in poll.h sys/poll.h
16348 do
16349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16351   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16354   echo $ECHO_N "(cached) $ECHO_C" >&6
16355 fi
16356 ac_res=`eval echo '${'$as_ac_Header'}'`
16357                { echo "$as_me:$LINENO: result: $ac_res" >&5
16358 echo "${ECHO_T}$ac_res" >&6; }
16359 else
16360   # Is the header compilable?
16361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h.  */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h.  */
16369 $ac_includes_default
16370 #include <$ac_header>
16371 _ACEOF
16372 rm -f conftest.$ac_objext
16373 if { (ac_try="$ac_compile"
16374 case "(($ac_try" in
16375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376   *) ac_try_echo=$ac_try;;
16377 esac
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379   (eval "$ac_compile") 2>conftest.er1
16380   ac_status=$?
16381   grep -v '^ *+' conftest.er1 >conftest.err
16382   rm -f conftest.er1
16383   cat conftest.err >&5
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); } && {
16386          test -z "$ac_c_werror_flag" ||
16387          test ! -s conftest.err
16388        } && test -s conftest.$ac_objext; then
16389   ac_header_compiler=yes
16390 else
16391   echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16393
16394         ac_header_compiler=no
16395 fi
16396
16397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16399 echo "${ECHO_T}$ac_header_compiler" >&6; }
16400
16401 # Is the header present?
16402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h.  */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h.  */
16410 #include <$ac_header>
16411 _ACEOF
16412 if { (ac_try="$ac_cpp conftest.$ac_ext"
16413 case "(($ac_try" in
16414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415   *) ac_try_echo=$ac_try;;
16416 esac
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16419   ac_status=$?
16420   grep -v '^ *+' conftest.er1 >conftest.err
16421   rm -f conftest.er1
16422   cat conftest.err >&5
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); } >/dev/null && {
16425          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16426          test ! -s conftest.err
16427        }; then
16428   ac_header_preproc=yes
16429 else
16430   echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16432
16433   ac_header_preproc=no
16434 fi
16435
16436 rm -f conftest.err conftest.$ac_ext
16437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438 echo "${ECHO_T}$ac_header_preproc" >&6; }
16439
16440 # So?  What about this header?
16441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16442   yes:no: )
16443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16447     ac_header_preproc=yes
16448     ;;
16449   no:yes:* )
16450     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16452     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16453 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16454     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16456     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16457 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16460     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16462     ( cat <<\_ASBOX
16463 ## --------------------------------------------- ##
16464 ## Report this to <http://www.openldap.org/its/> ##
16465 ## --------------------------------------------- ##
16466 _ASBOX
16467      ) | sed "s/^/$as_me: WARNING:     /" >&2
16468     ;;
16469 esac
16470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16473   echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475   eval "$as_ac_Header=\$ac_header_preproc"
16476 fi
16477 ac_res=`eval echo '${'$as_ac_Header'}'`
16478                { echo "$as_me:$LINENO: result: $ac_res" >&5
16479 echo "${ECHO_T}$ac_res" >&6; }
16480
16481 fi
16482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16483   cat >>confdefs.h <<_ACEOF
16484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16485 _ACEOF
16486
16487 fi
16488
16489 done
16490
16491 fi
16492
16493
16494 for ac_header in sys/epoll.h
16495 do
16496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16498   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16501   echo $ECHO_N "(cached) $ECHO_C" >&6
16502 fi
16503 ac_res=`eval echo '${'$as_ac_Header'}'`
16504                { echo "$as_me:$LINENO: result: $ac_res" >&5
16505 echo "${ECHO_T}$ac_res" >&6; }
16506 else
16507   # Is the header compilable?
16508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h.  */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h.  */
16516 $ac_includes_default
16517 #include <$ac_header>
16518 _ACEOF
16519 rm -f conftest.$ac_objext
16520 if { (ac_try="$ac_compile"
16521 case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526   (eval "$ac_compile") 2>conftest.er1
16527   ac_status=$?
16528   grep -v '^ *+' conftest.er1 >conftest.err
16529   rm -f conftest.er1
16530   cat conftest.err >&5
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); } && {
16533          test -z "$ac_c_werror_flag" ||
16534          test ! -s conftest.err
16535        } && test -s conftest.$ac_objext; then
16536   ac_header_compiler=yes
16537 else
16538   echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541         ac_header_compiler=no
16542 fi
16543
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16546 echo "${ECHO_T}$ac_header_compiler" >&6; }
16547
16548 # Is the header present?
16549 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16551 cat >conftest.$ac_ext <<_ACEOF
16552 /* confdefs.h.  */
16553 _ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h.  */
16557 #include <$ac_header>
16558 _ACEOF
16559 if { (ac_try="$ac_cpp conftest.$ac_ext"
16560 case "(($ac_try" in
16561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562   *) ac_try_echo=$ac_try;;
16563 esac
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16566   ac_status=$?
16567   grep -v '^ *+' conftest.er1 >conftest.err
16568   rm -f conftest.er1
16569   cat conftest.err >&5
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); } >/dev/null && {
16572          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16573          test ! -s conftest.err
16574        }; then
16575   ac_header_preproc=yes
16576 else
16577   echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16579
16580   ac_header_preproc=no
16581 fi
16582
16583 rm -f conftest.err conftest.$ac_ext
16584 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16585 echo "${ECHO_T}$ac_header_preproc" >&6; }
16586
16587 # So?  What about this header?
16588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16589   yes:no: )
16590     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16594     ac_header_preproc=yes
16595     ;;
16596   no:yes:* )
16597     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16599     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16600 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16601     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16603     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16604 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16607     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16609     ( cat <<\_ASBOX
16610 ## --------------------------------------------- ##
16611 ## Report this to <http://www.openldap.org/its/> ##
16612 ## --------------------------------------------- ##
16613 _ASBOX
16614      ) | sed "s/^/$as_me: WARNING:     /" >&2
16615     ;;
16616 esac
16617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16620   echo $ECHO_N "(cached) $ECHO_C" >&6
16621 else
16622   eval "$as_ac_Header=\$ac_header_preproc"
16623 fi
16624 ac_res=`eval echo '${'$as_ac_Header'}'`
16625                { echo "$as_me:$LINENO: result: $ac_res" >&5
16626 echo "${ECHO_T}$ac_res" >&6; }
16627
16628 fi
16629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16630   cat >>confdefs.h <<_ACEOF
16631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16632 _ACEOF
16633
16634 fi
16635
16636 done
16637
16638 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16639         { echo "$as_me:$LINENO: checking for epoll system call" >&5
16640 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16641         if test "$cross_compiling" = yes; then
16642   { echo "$as_me:$LINENO: result: no" >&5
16643 echo "${ECHO_T}no" >&6; }
16644 else
16645   cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h.  */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h.  */
16651 int main(int argc, char **argv)
16652 {
16653         int epfd = epoll_create(256);
16654         exit (epfd == -1 ? 1 : 0);
16655 }
16656 _ACEOF
16657 rm -f conftest$ac_exeext
16658 if { (ac_try="$ac_link"
16659 case "(($ac_try" in
16660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661   *) ac_try_echo=$ac_try;;
16662 esac
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664   (eval "$ac_link") 2>&5
16665   ac_status=$?
16666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16668   { (case "(($ac_try" in
16669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670   *) ac_try_echo=$ac_try;;
16671 esac
16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673   (eval "$ac_try") 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); }; }; then
16677   { echo "$as_me:$LINENO: result: yes" >&5
16678 echo "${ECHO_T}yes" >&6; }
16679
16680 cat >>confdefs.h <<\_ACEOF
16681 #define HAVE_EPOLL 1
16682 _ACEOF
16683
16684 else
16685   echo "$as_me: program exited with status $ac_status" >&5
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16688
16689 ( exit $ac_status )
16690 { echo "$as_me:$LINENO: result: no" >&5
16691 echo "${ECHO_T}no" >&6; }
16692 fi
16693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16694 fi
16695
16696
16697 fi
16698
16699
16700 for ac_header in sys/devpoll.h
16701 do
16702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16704   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16707   echo $ECHO_N "(cached) $ECHO_C" >&6
16708 fi
16709 ac_res=`eval echo '${'$as_ac_Header'}'`
16710                { echo "$as_me:$LINENO: result: $ac_res" >&5
16711 echo "${ECHO_T}$ac_res" >&6; }
16712 else
16713   # Is the header compilable?
16714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16716 cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h.  */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h.  */
16722 $ac_includes_default
16723 #include <$ac_header>
16724 _ACEOF
16725 rm -f conftest.$ac_objext
16726 if { (ac_try="$ac_compile"
16727 case "(($ac_try" in
16728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729   *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732   (eval "$ac_compile") 2>conftest.er1
16733   ac_status=$?
16734   grep -v '^ *+' conftest.er1 >conftest.err
16735   rm -f conftest.er1
16736   cat conftest.err >&5
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); } && {
16739          test -z "$ac_c_werror_flag" ||
16740          test ! -s conftest.err
16741        } && test -s conftest.$ac_objext; then
16742   ac_header_compiler=yes
16743 else
16744   echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16746
16747         ac_header_compiler=no
16748 fi
16749
16750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16752 echo "${ECHO_T}$ac_header_compiler" >&6; }
16753
16754 # Is the header present?
16755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16757 cat >conftest.$ac_ext <<_ACEOF
16758 /* confdefs.h.  */
16759 _ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h.  */
16763 #include <$ac_header>
16764 _ACEOF
16765 if { (ac_try="$ac_cpp conftest.$ac_ext"
16766 case "(($ac_try" in
16767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768   *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16772   ac_status=$?
16773   grep -v '^ *+' conftest.er1 >conftest.err
16774   rm -f conftest.er1
16775   cat conftest.err >&5
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); } >/dev/null && {
16778          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16779          test ! -s conftest.err
16780        }; then
16781   ac_header_preproc=yes
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786   ac_header_preproc=no
16787 fi
16788
16789 rm -f conftest.err conftest.$ac_ext
16790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16791 echo "${ECHO_T}$ac_header_preproc" >&6; }
16792
16793 # So?  What about this header?
16794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16795   yes:no: )
16796     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16800     ac_header_preproc=yes
16801     ;;
16802   no:yes:* )
16803     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16805     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16806 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16807     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16809     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16810 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16813     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16815     ( cat <<\_ASBOX
16816 ## --------------------------------------------- ##
16817 ## Report this to <http://www.openldap.org/its/> ##
16818 ## --------------------------------------------- ##
16819 _ASBOX
16820      ) | sed "s/^/$as_me: WARNING:     /" >&2
16821     ;;
16822 esac
16823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16826   echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828   eval "$as_ac_Header=\$ac_header_preproc"
16829 fi
16830 ac_res=`eval echo '${'$as_ac_Header'}'`
16831                { echo "$as_me:$LINENO: result: $ac_res" >&5
16832 echo "${ECHO_T}$ac_res" >&6; }
16833
16834 fi
16835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16836   cat >>confdefs.h <<_ACEOF
16837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16838 _ACEOF
16839
16840 fi
16841
16842 done
16843
16844 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16845                 -a "${ac_cv_header_poll_h}" = yes ; \
16846 then
16847         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16848 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16849         if test "$cross_compiling" = yes; then
16850   { echo "$as_me:$LINENO: result: no" >&5
16851 echo "${ECHO_T}no" >&6; }
16852 else
16853   cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h.  */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h.  */
16859 int main(int argc, char **argv)
16860 {
16861         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16862         exit (devpollfd == -1 ? 1 : 0);
16863 }
16864 _ACEOF
16865 rm -f conftest$ac_exeext
16866 if { (ac_try="$ac_link"
16867 case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_link") 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16876   { (case "(($ac_try" in
16877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878   *) ac_try_echo=$ac_try;;
16879 esac
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881   (eval "$ac_try") 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); }; }; then
16885   { echo "$as_me:$LINENO: result: yes" >&5
16886 echo "${ECHO_T}yes" >&6; }
16887
16888 cat >>confdefs.h <<\_ACEOF
16889 #define HAVE_DEVPOLL 1
16890 _ACEOF
16891
16892 else
16893   echo "$as_me: program exited with status $ac_status" >&5
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16896
16897 ( exit $ac_status )
16898 { echo "$as_me:$LINENO: result: no" >&5
16899 echo "${ECHO_T}no" >&6; }
16900 fi
16901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16902 fi
16903
16904
16905 fi
16906
16907 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16908 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16909 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16910   echo $ECHO_N "(cached) $ECHO_C" >&6
16911 else
16912
16913         cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h.  */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h.  */
16919
16920 #include <stdio.h>
16921 #include <sys/types.h>
16922 #include <errno.h>
16923 #ifdef _WIN32
16924 #include <stdlib.h>
16925 #endif
16926 int
16927 main ()
16928 {
16929 char *c = (char *) *sys_errlist
16930   ;
16931   return 0;
16932 }
16933 _ACEOF
16934 rm -f conftest.$ac_objext
16935 if { (ac_try="$ac_compile"
16936 case "(($ac_try" in
16937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938   *) ac_try_echo=$ac_try;;
16939 esac
16940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941   (eval "$ac_compile") 2>conftest.er1
16942   ac_status=$?
16943   grep -v '^ *+' conftest.er1 >conftest.err
16944   rm -f conftest.er1
16945   cat conftest.err >&5
16946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947   (exit $ac_status); } && {
16948          test -z "$ac_c_werror_flag" ||
16949          test ! -s conftest.err
16950        } && test -s conftest.$ac_objext; then
16951   ol_cv_dcl_sys_errlist=yes
16952         ol_cv_have_sys_errlist=yes
16953 else
16954   echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16956
16957         ol_cv_dcl_sys_errlist=no
16958 fi
16959
16960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961 fi
16962 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16963 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16964 #
16965 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16966 if test $ol_cv_dcl_sys_errlist = no ; then
16967
16968 cat >>confdefs.h <<\_ACEOF
16969 #define DECL_SYS_ERRLIST 1
16970 _ACEOF
16971
16972
16973         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16974 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16975 if test "${ol_cv_have_sys_errlist+set}" = set; then
16976   echo $ECHO_N "(cached) $ECHO_C" >&6
16977 else
16978
16979                 cat >conftest.$ac_ext <<_ACEOF
16980 /* confdefs.h.  */
16981 _ACEOF
16982 cat confdefs.h >>conftest.$ac_ext
16983 cat >>conftest.$ac_ext <<_ACEOF
16984 /* end confdefs.h.  */
16985 #include <errno.h>
16986 int
16987 main ()
16988 {
16989 char *c = (char *) *sys_errlist
16990   ;
16991   return 0;
16992 }
16993 _ACEOF
16994 rm -f conftest.$ac_objext conftest$ac_exeext
16995 if { (ac_try="$ac_link"
16996 case "(($ac_try" in
16997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998   *) ac_try_echo=$ac_try;;
16999 esac
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001   (eval "$ac_link") 2>conftest.er1
17002   ac_status=$?
17003   grep -v '^ *+' conftest.er1 >conftest.err
17004   rm -f conftest.er1
17005   cat conftest.err >&5
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); } && {
17008          test -z "$ac_c_werror_flag" ||
17009          test ! -s conftest.err
17010        } && test -s conftest$ac_exeext &&
17011        $as_test_x conftest$ac_exeext; then
17012   ol_cv_have_sys_errlist=yes
17013 else
17014   echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17016
17017         ol_cv_have_sys_errlist=no
17018 fi
17019
17020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17021       conftest$ac_exeext conftest.$ac_ext
17022 fi
17023 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17024 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17025 fi
17026 if test $ol_cv_have_sys_errlist = yes ; then
17027
17028 cat >>confdefs.h <<\_ACEOF
17029 #define HAVE_SYS_ERRLIST 1
17030 _ACEOF
17031
17032 fi
17033
17034
17035 for ac_func in strerror strerror_r
17036 do
17037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17041   echo $ECHO_N "(cached) $ECHO_C" >&6
17042 else
17043   cat >conftest.$ac_ext <<_ACEOF
17044 /* confdefs.h.  */
17045 _ACEOF
17046 cat confdefs.h >>conftest.$ac_ext
17047 cat >>conftest.$ac_ext <<_ACEOF
17048 /* end confdefs.h.  */
17049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17051 #define $ac_func innocuous_$ac_func
17052
17053 /* System header to define __stub macros and hopefully few prototypes,
17054     which can conflict with char $ac_func (); below.
17055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17056     <limits.h> exists even on freestanding compilers.  */
17057
17058 #ifdef __STDC__
17059 # include <limits.h>
17060 #else
17061 # include <assert.h>
17062 #endif
17063
17064 #undef $ac_func
17065
17066 /* Override any GCC internal prototype to avoid an error.
17067    Use char because int might match the return type of a GCC
17068    builtin and then its argument prototype would still apply.  */
17069 #ifdef __cplusplus
17070 extern "C"
17071 #endif
17072 char $ac_func ();
17073 /* The GNU C library defines this for functions which it implements
17074     to always fail with ENOSYS.  Some functions are actually named
17075     something starting with __ and the normal name is an alias.  */
17076 #if defined __stub_$ac_func || defined __stub___$ac_func
17077 choke me
17078 #endif
17079
17080 int
17081 main ()
17082 {
17083 return $ac_func ();
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092   *) ac_try_echo=$ac_try;;
17093 esac
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095   (eval "$ac_link") 2>conftest.er1
17096   ac_status=$?
17097   grep -v '^ *+' conftest.er1 >conftest.err
17098   rm -f conftest.er1
17099   cat conftest.err >&5
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); } && {
17102          test -z "$ac_c_werror_flag" ||
17103          test ! -s conftest.err
17104        } && test -s conftest$ac_exeext &&
17105        $as_test_x conftest$ac_exeext; then
17106   eval "$as_ac_var=yes"
17107 else
17108   echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17110
17111         eval "$as_ac_var=no"
17112 fi
17113
17114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17115       conftest$ac_exeext conftest.$ac_ext
17116 fi
17117 ac_res=`eval echo '${'$as_ac_var'}'`
17118                { echo "$as_me:$LINENO: result: $ac_res" >&5
17119 echo "${ECHO_T}$ac_res" >&6; }
17120 if test `eval echo '${'$as_ac_var'}'` = yes; then
17121   cat >>confdefs.h <<_ACEOF
17122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17123 _ACEOF
17124
17125 fi
17126 done
17127
17128 ol_cv_func_strerror_r=no
17129 if test "${ac_cv_func_strerror_r}" = yes ; then
17130         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17131 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17132 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17133   echo $ECHO_N "(cached) $ECHO_C" >&6
17134 else
17135
17136         cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h.  */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h.  */
17142 #include <string.h>
17143 _ACEOF
17144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17145   $EGREP "strerror_r" >/dev/null 2>&1; then
17146   ol_decl_strerror_r=yes
17147 else
17148   ol_decl_strerror_r=no
17149 fi
17150 rm -f conftest*
17151
17152         if test $ol_decl_strerror_r = yes ; then
17153                 cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h.  */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h.  */
17159 #include <string.h>
17160 int
17161 main ()
17162 {
17163    /* from autoconf 2.59 */
17164                                 char buf[100];
17165                                 char x = *strerror_r (0, buf, sizeof buf);
17166                                 char *p = strerror_r (0, buf, sizeof buf);
17167
17168   ;
17169   return 0;
17170 }
17171 _ACEOF
17172 rm -f conftest.$ac_objext
17173 if { (ac_try="$ac_compile"
17174 case "(($ac_try" in
17175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176   *) ac_try_echo=$ac_try;;
17177 esac
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179   (eval "$ac_compile") 2>conftest.er1
17180   ac_status=$?
17181   grep -v '^ *+' conftest.er1 >conftest.err
17182   rm -f conftest.er1
17183   cat conftest.err >&5
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); } && {
17186          test -z "$ac_c_werror_flag" ||
17187          test ! -s conftest.err
17188        } && test -s conftest.$ac_objext; then
17189   ol_cv_nonposix_strerror_r=yes
17190 else
17191   echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17193
17194         ol_cv_nonposix_strerror_r=no
17195 fi
17196
17197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17198         else
17199                 if test "$cross_compiling" = yes; then
17200   ol_cv_nonposix_strerror=no
17201 else
17202   cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h.  */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h.  */
17208
17209                         main() {
17210                                 char buf[100];
17211                                 buf[0] = 0;
17212                                 strerror_r( 1, buf, sizeof buf );
17213                                 exit( buf[0] == 0 );
17214                         }
17215
17216 _ACEOF
17217 rm -f conftest$ac_exeext
17218 if { (ac_try="$ac_link"
17219 case "(($ac_try" in
17220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221   *) ac_try_echo=$ac_try;;
17222 esac
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224   (eval "$ac_link") 2>&5
17225   ac_status=$?
17226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17228   { (case "(($ac_try" in
17229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230   *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233   (eval "$ac_try") 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); }; }; then
17237   ol_cv_nonposix_strerror_r=yes
17238 else
17239   echo "$as_me: program exited with status $ac_status" >&5
17240 echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17242
17243 ( exit $ac_status )
17244 ol_cv_nonposix_strerror=no
17245 fi
17246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17247 fi
17248
17249
17250         fi
17251
17252 fi
17253 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17254 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17255 if test $ol_cv_nonposix_strerror_r = yes ; then
17256
17257 cat >>confdefs.h <<\_ACEOF
17258 #define HAVE_NONPOSIX_STRERROR_R 1
17259 _ACEOF
17260
17261 fi
17262
17263 elif test "${ac_cv_func_strerror}" = no ; then
17264         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17265 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17266 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17267   echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269
17270         cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h.  */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h.  */
17276
17277 #include <stdio.h>
17278 #include <sys/types.h>
17279 #include <errno.h>
17280 #ifdef _WIN32
17281 #include <stdlib.h>
17282 #endif
17283 int
17284 main ()
17285 {
17286 char *c = (char *) *sys_errlist
17287   ;
17288   return 0;
17289 }
17290 _ACEOF
17291 rm -f conftest.$ac_objext
17292 if { (ac_try="$ac_compile"
17293 case "(($ac_try" in
17294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295   *) ac_try_echo=$ac_try;;
17296 esac
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298   (eval "$ac_compile") 2>conftest.er1
17299   ac_status=$?
17300   grep -v '^ *+' conftest.er1 >conftest.err
17301   rm -f conftest.er1
17302   cat conftest.err >&5
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); } && {
17305          test -z "$ac_c_werror_flag" ||
17306          test ! -s conftest.err
17307        } && test -s conftest.$ac_objext; then
17308   ol_cv_dcl_sys_errlist=yes
17309         ol_cv_have_sys_errlist=yes
17310 else
17311   echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17313
17314         ol_cv_dcl_sys_errlist=no
17315 fi
17316
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17318 fi
17319 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17320 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17321 #
17322 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17323 if test $ol_cv_dcl_sys_errlist = no ; then
17324
17325 cat >>confdefs.h <<\_ACEOF
17326 #define DECL_SYS_ERRLIST 1
17327 _ACEOF
17328
17329
17330         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17331 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17332 if test "${ol_cv_have_sys_errlist+set}" = set; then
17333   echo $ECHO_N "(cached) $ECHO_C" >&6
17334 else
17335
17336                 cat >conftest.$ac_ext <<_ACEOF
17337 /* confdefs.h.  */
17338 _ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h.  */
17342 #include <errno.h>
17343 int
17344 main ()
17345 {
17346 char *c = (char *) *sys_errlist
17347   ;
17348   return 0;
17349 }
17350 _ACEOF
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (ac_try="$ac_link"
17353 case "(($ac_try" in
17354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355   *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358   (eval "$ac_link") 2>conftest.er1
17359   ac_status=$?
17360   grep -v '^ *+' conftest.er1 >conftest.err
17361   rm -f conftest.er1
17362   cat conftest.err >&5
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); } && {
17365          test -z "$ac_c_werror_flag" ||
17366          test ! -s conftest.err
17367        } && test -s conftest$ac_exeext &&
17368        $as_test_x conftest$ac_exeext; then
17369   ol_cv_have_sys_errlist=yes
17370 else
17371   echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17373
17374         ol_cv_have_sys_errlist=no
17375 fi
17376
17377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17378       conftest$ac_exeext conftest.$ac_ext
17379 fi
17380 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17381 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17382 fi
17383 if test $ol_cv_have_sys_errlist = yes ; then
17384
17385 cat >>confdefs.h <<\_ACEOF
17386 #define HAVE_SYS_ERRLIST 1
17387 _ACEOF
17388
17389 fi
17390
17391 fi
17392
17393
17394
17395 for ac_header in regex.h
17396 do
17397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17401   echo $ECHO_N "(cached) $ECHO_C" >&6
17402 else
17403   cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h.  */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h.  */
17409 $ac_includes_default
17410 #ifdef HAVE_SYS_TYPES_H
17411 #include <sys/types.h>
17412 #endif
17413
17414
17415 #include <$ac_header>
17416 _ACEOF
17417 rm -f conftest.$ac_objext
17418 if { (ac_try="$ac_compile"
17419 case "(($ac_try" in
17420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421   *) ac_try_echo=$ac_try;;
17422 esac
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424   (eval "$ac_compile") 2>conftest.er1
17425   ac_status=$?
17426   grep -v '^ *+' conftest.er1 >conftest.err
17427   rm -f conftest.er1
17428   cat conftest.err >&5
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); } && {
17431          test -z "$ac_c_werror_flag" ||
17432          test ! -s conftest.err
17433        } && test -s conftest.$ac_objext; then
17434   eval "$as_ac_Header=yes"
17435 else
17436   echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439         eval "$as_ac_Header=no"
17440 fi
17441
17442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17443 fi
17444 ac_res=`eval echo '${'$as_ac_Header'}'`
17445                { echo "$as_me:$LINENO: result: $ac_res" >&5
17446 echo "${ECHO_T}$ac_res" >&6; }
17447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17448   cat >>confdefs.h <<_ACEOF
17449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17450 _ACEOF
17451
17452 fi
17453
17454 done
17455
17456
17457 if test "$ac_cv_header_regex_h" != yes ; then
17458         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17459 echo "$as_me: error: POSIX regex.h required." >&2;}
17460    { (exit 1); exit 1; }; }
17461 fi
17462 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17463 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17464 if test "${ac_cv_search_regfree+set}" = set; then
17465   echo $ECHO_N "(cached) $ECHO_C" >&6
17466 else
17467   ac_func_search_save_LIBS=$LIBS
17468 cat >conftest.$ac_ext <<_ACEOF
17469 /* confdefs.h.  */
17470 _ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h.  */
17474
17475 /* Override any GCC internal prototype to avoid an error.
17476    Use char because int might match the return type of a GCC
17477    builtin and then its argument prototype would still apply.  */
17478 #ifdef __cplusplus
17479 extern "C"
17480 #endif
17481 char regfree ();
17482 int
17483 main ()
17484 {
17485 return regfree ();
17486   ;
17487   return 0;
17488 }
17489 _ACEOF
17490 for ac_lib in '' regex gnuregex; do
17491   if test -z "$ac_lib"; then
17492     ac_res="none required"
17493   else
17494     ac_res=-l$ac_lib
17495     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17496   fi
17497   rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (ac_try="$ac_link"
17499 case "(($ac_try" in
17500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501   *) ac_try_echo=$ac_try;;
17502 esac
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504   (eval "$ac_link") 2>conftest.er1
17505   ac_status=$?
17506   grep -v '^ *+' conftest.er1 >conftest.err
17507   rm -f conftest.er1
17508   cat conftest.err >&5
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); } && {
17511          test -z "$ac_c_werror_flag" ||
17512          test ! -s conftest.err
17513        } && test -s conftest$ac_exeext &&
17514        $as_test_x conftest$ac_exeext; then
17515   ac_cv_search_regfree=$ac_res
17516 else
17517   echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17519
17520
17521 fi
17522
17523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17524       conftest$ac_exeext
17525   if test "${ac_cv_search_regfree+set}" = set; then
17526   break
17527 fi
17528 done
17529 if test "${ac_cv_search_regfree+set}" = set; then
17530   :
17531 else
17532   ac_cv_search_regfree=no
17533 fi
17534 rm conftest.$ac_ext
17535 LIBS=$ac_func_search_save_LIBS
17536 fi
17537 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17538 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17539 ac_res=$ac_cv_search_regfree
17540 if test "$ac_res" != no; then
17541   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17542   :
17543 else
17544   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17545 echo "$as_me: error: POSIX regex required." >&2;}
17546    { (exit 1); exit 1; }; }
17547 fi
17548
17549
17550
17551 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17552 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17553 if test "${ol_cv_c_posix_regex+set}" = set; then
17554   echo $ECHO_N "(cached) $ECHO_C" >&6
17555 else
17556
17557         if test "$cross_compiling" = yes; then
17558   ol_cv_c_posix_regex=cross
17559 else
17560   cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h.  */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h.  */
17566
17567 #include <sys/types.h>
17568 #include <regex.h>
17569 static char *pattern, *string;
17570 main()
17571 {
17572         int rc;
17573         regex_t re;
17574
17575         pattern = "^A";
17576
17577         if(regcomp(&re, pattern, 0)) {
17578                 return -1;
17579         }
17580
17581         string = "ALL MATCH";
17582
17583         rc = regexec(&re, string, 0, (void*)0, 0);
17584
17585         regfree(&re);
17586
17587         return rc;
17588 }
17589 _ACEOF
17590 rm -f conftest$ac_exeext
17591 if { (ac_try="$ac_link"
17592 case "(($ac_try" in
17593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594   *) ac_try_echo=$ac_try;;
17595 esac
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597   (eval "$ac_link") 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17601   { (case "(($ac_try" in
17602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603   *) ac_try_echo=$ac_try;;
17604 esac
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606   (eval "$ac_try") 2>&5
17607   ac_status=$?
17608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609   (exit $ac_status); }; }; then
17610   ol_cv_c_posix_regex=yes
17611 else
17612   echo "$as_me: program exited with status $ac_status" >&5
17613 echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17615
17616 ( exit $ac_status )
17617 ol_cv_c_posix_regex=no
17618 fi
17619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17620 fi
17621
17622
17623 fi
17624 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17625 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17626
17627 if test "$ol_cv_c_posix_regex" = no ; then
17628         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17629 echo "$as_me: error: broken POSIX regex!" >&2;}
17630    { (exit 1); exit 1; }; }
17631 fi
17632
17633
17634 have_uuid=no
17635
17636 for ac_header in sys/uuid.h
17637 do
17638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17640   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17643   echo $ECHO_N "(cached) $ECHO_C" >&6
17644 fi
17645 ac_res=`eval echo '${'$as_ac_Header'}'`
17646                { echo "$as_me:$LINENO: result: $ac_res" >&5
17647 echo "${ECHO_T}$ac_res" >&6; }
17648 else
17649   # Is the header compilable?
17650 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17652 cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h.  */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h.  */
17658 $ac_includes_default
17659 #include <$ac_header>
17660 _ACEOF
17661 rm -f conftest.$ac_objext
17662 if { (ac_try="$ac_compile"
17663 case "(($ac_try" in
17664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665   *) ac_try_echo=$ac_try;;
17666 esac
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668   (eval "$ac_compile") 2>conftest.er1
17669   ac_status=$?
17670   grep -v '^ *+' conftest.er1 >conftest.err
17671   rm -f conftest.er1
17672   cat conftest.err >&5
17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); } && {
17675          test -z "$ac_c_werror_flag" ||
17676          test ! -s conftest.err
17677        } && test -s conftest.$ac_objext; then
17678   ac_header_compiler=yes
17679 else
17680   echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17682
17683         ac_header_compiler=no
17684 fi
17685
17686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17688 echo "${ECHO_T}$ac_header_compiler" >&6; }
17689
17690 # Is the header present?
17691 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17693 cat >conftest.$ac_ext <<_ACEOF
17694 /* confdefs.h.  */
17695 _ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h.  */
17699 #include <$ac_header>
17700 _ACEOF
17701 if { (ac_try="$ac_cpp conftest.$ac_ext"
17702 case "(($ac_try" in
17703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17704   *) ac_try_echo=$ac_try;;
17705 esac
17706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17708   ac_status=$?
17709   grep -v '^ *+' conftest.er1 >conftest.err
17710   rm -f conftest.er1
17711   cat conftest.err >&5
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); } >/dev/null && {
17714          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17715          test ! -s conftest.err
17716        }; then
17717   ac_header_preproc=yes
17718 else
17719   echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17721
17722   ac_header_preproc=no
17723 fi
17724
17725 rm -f conftest.err conftest.$ac_ext
17726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17727 echo "${ECHO_T}$ac_header_preproc" >&6; }
17728
17729 # So?  What about this header?
17730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17731   yes:no: )
17732     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17736     ac_header_preproc=yes
17737     ;;
17738   no:yes:* )
17739     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17741     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17742 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17743     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17745     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17746 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17749     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17751     ( cat <<\_ASBOX
17752 ## --------------------------------------------- ##
17753 ## Report this to <http://www.openldap.org/its/> ##
17754 ## --------------------------------------------- ##
17755 _ASBOX
17756      ) | sed "s/^/$as_me: WARNING:     /" >&2
17757     ;;
17758 esac
17759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17762   echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764   eval "$as_ac_Header=\$ac_header_preproc"
17765 fi
17766 ac_res=`eval echo '${'$as_ac_Header'}'`
17767                { echo "$as_me:$LINENO: result: $ac_res" >&5
17768 echo "${ECHO_T}$ac_res" >&6; }
17769
17770 fi
17771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17772   cat >>confdefs.h <<_ACEOF
17773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17774 _ACEOF
17775
17776 fi
17777
17778 done
17779
17780 if test $ac_cv_header_sys_uuid_h = yes ; then
17781         save_LIBS="$LIBS"
17782         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17783 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17784 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17785   echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17787   ac_func_search_save_LIBS=$LIBS
17788 cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h.  */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h.  */
17794
17795 /* Override any GCC internal prototype to avoid an error.
17796    Use char because int might match the return type of a GCC
17797    builtin and then its argument prototype would still apply.  */
17798 #ifdef __cplusplus
17799 extern "C"
17800 #endif
17801 char uuid_to_str ();
17802 int
17803 main ()
17804 {
17805 return uuid_to_str ();
17806   ;
17807   return 0;
17808 }
17809 _ACEOF
17810 for ac_lib in '' uuid; do
17811   if test -z "$ac_lib"; then
17812     ac_res="none required"
17813   else
17814     ac_res=-l$ac_lib
17815     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17816   fi
17817   rm -f conftest.$ac_objext conftest$ac_exeext
17818 if { (ac_try="$ac_link"
17819 case "(($ac_try" in
17820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821   *) ac_try_echo=$ac_try;;
17822 esac
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824   (eval "$ac_link") 2>conftest.er1
17825   ac_status=$?
17826   grep -v '^ *+' conftest.er1 >conftest.err
17827   rm -f conftest.er1
17828   cat conftest.err >&5
17829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830   (exit $ac_status); } && {
17831          test -z "$ac_c_werror_flag" ||
17832          test ! -s conftest.err
17833        } && test -s conftest$ac_exeext &&
17834        $as_test_x conftest$ac_exeext; then
17835   ac_cv_search_uuid_to_str=$ac_res
17836 else
17837   echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17839
17840
17841 fi
17842
17843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17844       conftest$ac_exeext
17845   if test "${ac_cv_search_uuid_to_str+set}" = set; then
17846   break
17847 fi
17848 done
17849 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17850   :
17851 else
17852   ac_cv_search_uuid_to_str=no
17853 fi
17854 rm conftest.$ac_ext
17855 LIBS=$ac_func_search_save_LIBS
17856 fi
17857 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17858 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17859 ac_res=$ac_cv_search_uuid_to_str
17860 if test "$ac_res" != no; then
17861   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17862   have_uuid=yes
17863 else
17864   :
17865 fi
17866
17867         LIBS="$save_LIBS"
17868
17869         if test $have_uuid = yes ; then
17870
17871 cat >>confdefs.h <<\_ACEOF
17872 #define HAVE_UUID_TO_STR 1
17873 _ACEOF
17874
17875
17876                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17877                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17878         fi
17879 fi
17880
17881 if test $have_uuid = no ; then
17882
17883 for ac_header in uuid/uuid.h
17884 do
17885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17887   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17890   echo $ECHO_N "(cached) $ECHO_C" >&6
17891 fi
17892 ac_res=`eval echo '${'$as_ac_Header'}'`
17893                { echo "$as_me:$LINENO: result: $ac_res" >&5
17894 echo "${ECHO_T}$ac_res" >&6; }
17895 else
17896   # Is the header compilable?
17897 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17899 cat >conftest.$ac_ext <<_ACEOF
17900 /* confdefs.h.  */
17901 _ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h.  */
17905 $ac_includes_default
17906 #include <$ac_header>
17907 _ACEOF
17908 rm -f conftest.$ac_objext
17909 if { (ac_try="$ac_compile"
17910 case "(($ac_try" in
17911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912   *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915   (eval "$ac_compile") 2>conftest.er1
17916   ac_status=$?
17917   grep -v '^ *+' conftest.er1 >conftest.err
17918   rm -f conftest.er1
17919   cat conftest.err >&5
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); } && {
17922          test -z "$ac_c_werror_flag" ||
17923          test ! -s conftest.err
17924        } && test -s conftest.$ac_objext; then
17925   ac_header_compiler=yes
17926 else
17927   echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17929
17930         ac_header_compiler=no
17931 fi
17932
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17935 echo "${ECHO_T}$ac_header_compiler" >&6; }
17936
17937 # Is the header present?
17938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17940 cat >conftest.$ac_ext <<_ACEOF
17941 /* confdefs.h.  */
17942 _ACEOF
17943 cat confdefs.h >>conftest.$ac_ext
17944 cat >>conftest.$ac_ext <<_ACEOF
17945 /* end confdefs.h.  */
17946 #include <$ac_header>
17947 _ACEOF
17948 if { (ac_try="$ac_cpp conftest.$ac_ext"
17949 case "(($ac_try" in
17950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951   *) ac_try_echo=$ac_try;;
17952 esac
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17955   ac_status=$?
17956   grep -v '^ *+' conftest.er1 >conftest.err
17957   rm -f conftest.er1
17958   cat conftest.err >&5
17959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960   (exit $ac_status); } >/dev/null && {
17961          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17962          test ! -s conftest.err
17963        }; then
17964   ac_header_preproc=yes
17965 else
17966   echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17968
17969   ac_header_preproc=no
17970 fi
17971
17972 rm -f conftest.err conftest.$ac_ext
17973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17974 echo "${ECHO_T}$ac_header_preproc" >&6; }
17975
17976 # So?  What about this header?
17977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17978   yes:no: )
17979     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17983     ac_header_preproc=yes
17984     ;;
17985   no:yes:* )
17986     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17988     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17989 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17990     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17992     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17993 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17996     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17998     ( cat <<\_ASBOX
17999 ## --------------------------------------------- ##
18000 ## Report this to <http://www.openldap.org/its/> ##
18001 ## --------------------------------------------- ##
18002 _ASBOX
18003      ) | sed "s/^/$as_me: WARNING:     /" >&2
18004     ;;
18005 esac
18006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18009   echo $ECHO_N "(cached) $ECHO_C" >&6
18010 else
18011   eval "$as_ac_Header=\$ac_header_preproc"
18012 fi
18013 ac_res=`eval echo '${'$as_ac_Header'}'`
18014                { echo "$as_me:$LINENO: result: $ac_res" >&5
18015 echo "${ECHO_T}$ac_res" >&6; }
18016
18017 fi
18018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18019   cat >>confdefs.h <<_ACEOF
18020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18021 _ACEOF
18022
18023 fi
18024
18025 done
18026
18027         if test $ac_cv_header_uuid_uuid_h = yes ; then
18028                 save_LIBS="$LIBS"
18029                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18030 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18031 if test "${ac_cv_search_uuid_generate+set}" = set; then
18032   echo $ECHO_N "(cached) $ECHO_C" >&6
18033 else
18034   ac_func_search_save_LIBS=$LIBS
18035 cat >conftest.$ac_ext <<_ACEOF
18036 /* confdefs.h.  */
18037 _ACEOF
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h.  */
18041
18042 /* Override any GCC internal prototype to avoid an error.
18043    Use char because int might match the return type of a GCC
18044    builtin and then its argument prototype would still apply.  */
18045 #ifdef __cplusplus
18046 extern "C"
18047 #endif
18048 char uuid_generate ();
18049 int
18050 main ()
18051 {
18052 return uuid_generate ();
18053   ;
18054   return 0;
18055 }
18056 _ACEOF
18057 for ac_lib in '' uuid; do
18058   if test -z "$ac_lib"; then
18059     ac_res="none required"
18060   else
18061     ac_res=-l$ac_lib
18062     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18063   fi
18064   rm -f conftest.$ac_objext conftest$ac_exeext
18065 if { (ac_try="$ac_link"
18066 case "(($ac_try" in
18067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068   *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071   (eval "$ac_link") 2>conftest.er1
18072   ac_status=$?
18073   grep -v '^ *+' conftest.er1 >conftest.err
18074   rm -f conftest.er1
18075   cat conftest.err >&5
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); } && {
18078          test -z "$ac_c_werror_flag" ||
18079          test ! -s conftest.err
18080        } && test -s conftest$ac_exeext &&
18081        $as_test_x conftest$ac_exeext; then
18082   ac_cv_search_uuid_generate=$ac_res
18083 else
18084   echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18086
18087
18088 fi
18089
18090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18091       conftest$ac_exeext
18092   if test "${ac_cv_search_uuid_generate+set}" = set; then
18093   break
18094 fi
18095 done
18096 if test "${ac_cv_search_uuid_generate+set}" = set; then
18097   :
18098 else
18099   ac_cv_search_uuid_generate=no
18100 fi
18101 rm conftest.$ac_ext
18102 LIBS=$ac_func_search_save_LIBS
18103 fi
18104 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18105 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18106 ac_res=$ac_cv_search_uuid_generate
18107 if test "$ac_res" != no; then
18108   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18109   have_uuid=yes
18110 else
18111   :
18112 fi
18113
18114                 LIBS="$save_LIBS"
18115
18116                 if test $have_uuid = yes ; then
18117
18118 cat >>confdefs.h <<\_ACEOF
18119 #define HAVE_UUID_GENERATE 1
18120 _ACEOF
18121
18122
18123                         test "$ac_cv_search_uuid_generate" = "none required" || \
18124                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18125                 fi
18126         fi
18127 fi
18128
18129 if test $have_uuid = no ; then
18130         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18131 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18132         save_LIBS="$LIBS"
18133         LIBS="$LIBS -lrpcrt4"
18134         cat >conftest.$ac_ext <<_ACEOF
18135 /* confdefs.h.  */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h.  */
18140
18141                 int __stdcall UuidCreate(void *);
18142                 int __stdcall UuidToStringA(void *,void **);
18143
18144 int
18145 main ()
18146 {
18147
18148                 UuidCreate(0);
18149                 UuidToStringA(0,0);
18150
18151   ;
18152   return 0;
18153 }
18154 _ACEOF
18155 rm -f conftest.$ac_objext conftest$ac_exeext
18156 if { (ac_try="$ac_link"
18157 case "(($ac_try" in
18158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159   *) ac_try_echo=$ac_try;;
18160 esac
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162   (eval "$ac_link") 2>conftest.er1
18163   ac_status=$?
18164   grep -v '^ *+' conftest.er1 >conftest.err
18165   rm -f conftest.er1
18166   cat conftest.err >&5
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); } && {
18169          test -z "$ac_c_werror_flag" ||
18170          test ! -s conftest.err
18171        } && test -s conftest$ac_exeext &&
18172        $as_test_x conftest$ac_exeext; then
18173   need_rpcrt=yes
18174 else
18175   echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178         need_rpcrt=no
18179 fi
18180
18181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18182       conftest$ac_exeext conftest.$ac_ext
18183         if test $need_rpcrt = yes; then
18184                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18185         fi
18186         LIBS="$save_LIBS"
18187         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18188 echo "${ECHO_T}$need_rpcrt" >&6; }
18189 fi
18190
18191 ol_cv_lib_resolver=no
18192 if test $ol_cv_lib_resolver = no ; then
18193         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18194 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18195 if test "${ol_cv_resolver_none+set}" = set; then
18196   echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198
18199         ol_RESOLVER_LIB=
18200         ol_LIBS=$LIBS
18201         LIBS="$ol_RESOLVER_LIB $LIBS"
18202
18203         cat >conftest.$ac_ext <<_ACEOF
18204 /* confdefs.h.  */
18205 _ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h.  */
18209
18210 #ifdef HAVE_SYS_TYPES_H
18211 #       include <sys/types.h>
18212 #endif
18213 #include <netinet/in.h>
18214 #ifdef HAVE_ARPA_NAMESER_H
18215 #       include <arpa/nameser.h>
18216 #endif
18217 #ifdef HAVE_RESOLV_H
18218 #       include <resolv.h>
18219 #endif
18220
18221 int
18222 main ()
18223 {
18224 {
18225         int len, status;
18226         char *request = NULL;
18227         unsigned char reply[64*1024];
18228         unsigned char host[64*1024];
18229         unsigned char *p;
18230
18231 #ifdef NS_HFIXEDSZ
18232         /* Bind 8/9 interface */
18233         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18234 #else
18235         /* Bind 4 interface */
18236 # ifndef T_SRV
18237 #  define T_SRV 33
18238 # endif
18239         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18240 #endif
18241         p = reply;
18242 #ifdef NS_HFIXEDSZ
18243         /* Bind 8/9 interface */
18244         p += NS_HFIXEDSZ;
18245 #elif defined(HFIXEDSZ)
18246         /* Bind 4 interface w/ HFIXEDSZ */
18247         p += HFIXEDSZ;
18248 #else
18249         /* Bind 4 interface w/o HFIXEDSZ */
18250         p += sizeof(HEADER);
18251 #endif
18252         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18253 }
18254   ;
18255   return 0;
18256 }
18257 _ACEOF
18258 rm -f conftest.$ac_objext conftest$ac_exeext
18259 if { (ac_try="$ac_link"
18260 case "(($ac_try" in
18261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262   *) ac_try_echo=$ac_try;;
18263 esac
18264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18265   (eval "$ac_link") 2>conftest.er1
18266   ac_status=$?
18267   grep -v '^ *+' conftest.er1 >conftest.err
18268   rm -f conftest.er1
18269   cat conftest.err >&5
18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271   (exit $ac_status); } && {
18272          test -z "$ac_c_werror_flag" ||
18273          test ! -s conftest.err
18274        } && test -s conftest$ac_exeext &&
18275        $as_test_x conftest$ac_exeext; then
18276   ol_cv_resolver_none=yes
18277 else
18278   echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18280
18281         ol_cv_resolver_none=no
18282 fi
18283
18284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18285       conftest$ac_exeext conftest.$ac_ext
18286
18287         LIBS="$ol_LIBS"
18288
18289 fi
18290 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18291 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18292
18293         if test $ol_cv_resolver_none = yes ; then
18294                 ol_cv_lib_resolver=yes
18295         fi
18296 fi
18297
18298 if test $ol_cv_lib_resolver = no ; then
18299         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18300 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18301 if test "${ol_cv_resolver_resolv+set}" = set; then
18302   echo $ECHO_N "(cached) $ECHO_C" >&6
18303 else
18304
18305         ol_RESOLVER_LIB=-lresolv
18306         ol_LIBS=$LIBS
18307         LIBS="$ol_RESOLVER_LIB $LIBS"
18308
18309         cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h.  */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h.  */
18315
18316 #ifdef HAVE_SYS_TYPES_H
18317 #       include <sys/types.h>
18318 #endif
18319 #include <netinet/in.h>
18320 #ifdef HAVE_ARPA_NAMESER_H
18321 #       include <arpa/nameser.h>
18322 #endif
18323 #ifdef HAVE_RESOLV_H
18324 #       include <resolv.h>
18325 #endif
18326
18327 int
18328 main ()
18329 {
18330 {
18331         int len, status;
18332         char *request = NULL;
18333         unsigned char reply[64*1024];
18334         unsigned char host[64*1024];
18335         unsigned char *p;
18336
18337 #ifdef NS_HFIXEDSZ
18338         /* Bind 8/9 interface */
18339         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18340 #else
18341         /* Bind 4 interface */
18342 # ifndef T_SRV
18343 #  define T_SRV 33
18344 # endif
18345         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18346 #endif
18347         p = reply;
18348 #ifdef NS_HFIXEDSZ
18349         /* Bind 8/9 interface */
18350         p += NS_HFIXEDSZ;
18351 #elif defined(HFIXEDSZ)
18352         /* Bind 4 interface w/ HFIXEDSZ */
18353         p += HFIXEDSZ;
18354 #else
18355         /* Bind 4 interface w/o HFIXEDSZ */
18356         p += sizeof(HEADER);
18357 #endif
18358         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18359 }
18360   ;
18361   return 0;
18362 }
18363 _ACEOF
18364 rm -f conftest.$ac_objext conftest$ac_exeext
18365 if { (ac_try="$ac_link"
18366 case "(($ac_try" in
18367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368   *) ac_try_echo=$ac_try;;
18369 esac
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371   (eval "$ac_link") 2>conftest.er1
18372   ac_status=$?
18373   grep -v '^ *+' conftest.er1 >conftest.err
18374   rm -f conftest.er1
18375   cat conftest.err >&5
18376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377   (exit $ac_status); } && {
18378          test -z "$ac_c_werror_flag" ||
18379          test ! -s conftest.err
18380        } && test -s conftest$ac_exeext &&
18381        $as_test_x conftest$ac_exeext; then
18382   ol_cv_resolver_resolv=yes
18383 else
18384   echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18386
18387         ol_cv_resolver_resolv=no
18388 fi
18389
18390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18391       conftest$ac_exeext conftest.$ac_ext
18392
18393         LIBS="$ol_LIBS"
18394
18395 fi
18396 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18397 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18398
18399         if test $ol_cv_resolver_resolv = yes ; then
18400                 ol_cv_lib_resolver=-lresolv
18401         fi
18402 fi
18403
18404 if test $ol_cv_lib_resolver = no ; then
18405         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18406 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18407 if test "${ol_cv_resolver_bind+set}" = set; then
18408   echo $ECHO_N "(cached) $ECHO_C" >&6
18409 else
18410
18411         ol_RESOLVER_LIB=-lbind
18412         ol_LIBS=$LIBS
18413         LIBS="$ol_RESOLVER_LIB $LIBS"
18414
18415         cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h.  */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h.  */
18421
18422 #ifdef HAVE_SYS_TYPES_H
18423 #       include <sys/types.h>
18424 #endif
18425 #include <netinet/in.h>
18426 #ifdef HAVE_ARPA_NAMESER_H
18427 #       include <arpa/nameser.h>
18428 #endif
18429 #ifdef HAVE_RESOLV_H
18430 #       include <resolv.h>
18431 #endif
18432
18433 int
18434 main ()
18435 {
18436 {
18437         int len, status;
18438         char *request = NULL;
18439         unsigned char reply[64*1024];
18440         unsigned char host[64*1024];
18441         unsigned char *p;
18442
18443 #ifdef NS_HFIXEDSZ
18444         /* Bind 8/9 interface */
18445         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18446 #else
18447         /* Bind 4 interface */
18448 # ifndef T_SRV
18449 #  define T_SRV 33
18450 # endif
18451         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18452 #endif
18453         p = reply;
18454 #ifdef NS_HFIXEDSZ
18455         /* Bind 8/9 interface */
18456         p += NS_HFIXEDSZ;
18457 #elif defined(HFIXEDSZ)
18458         /* Bind 4 interface w/ HFIXEDSZ */
18459         p += HFIXEDSZ;
18460 #else
18461         /* Bind 4 interface w/o HFIXEDSZ */
18462         p += sizeof(HEADER);
18463 #endif
18464         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18465 }
18466   ;
18467   return 0;
18468 }
18469 _ACEOF
18470 rm -f conftest.$ac_objext conftest$ac_exeext
18471 if { (ac_try="$ac_link"
18472 case "(($ac_try" in
18473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474   *) ac_try_echo=$ac_try;;
18475 esac
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477   (eval "$ac_link") 2>conftest.er1
18478   ac_status=$?
18479   grep -v '^ *+' conftest.er1 >conftest.err
18480   rm -f conftest.er1
18481   cat conftest.err >&5
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); } && {
18484          test -z "$ac_c_werror_flag" ||
18485          test ! -s conftest.err
18486        } && test -s conftest$ac_exeext &&
18487        $as_test_x conftest$ac_exeext; then
18488   ol_cv_resolver_bind=yes
18489 else
18490   echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18492
18493         ol_cv_resolver_bind=no
18494 fi
18495
18496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18497       conftest$ac_exeext conftest.$ac_ext
18498
18499         LIBS="$ol_LIBS"
18500
18501 fi
18502 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18503 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18504
18505         if test $ol_cv_resolver_bind = yes ; then
18506                 ol_cv_lib_resolver=-lbind
18507         fi
18508 fi
18509
18510
18511
18512 ol_link_dnssrv=no
18513 if test "$ol_cv_lib_resolver" != no ; then
18514
18515 cat >>confdefs.h <<\_ACEOF
18516 #define HAVE_RES_QUERY 1
18517 _ACEOF
18518
18519
18520         if test "$ol_enable_dnssrv" != no ; then
18521                 ol_link_dnssrv=yes
18522         fi
18523
18524         if test "$ol_cv_lib_resolver" != yes ; then
18525                 LIBS="$ol_cv_lib_resolver $LIBS"
18526         fi
18527 fi
18528
18529 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18530         if test "$ol_link_dnssrv" = no ; then
18531                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18532 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18533    { (exit 1); exit 1; }; }
18534         fi
18535 else
18536         ol_enable_dnssrv=no
18537 fi
18538
18539
18540 for ac_func in hstrerror
18541 do
18542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18546   echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548   cat >conftest.$ac_ext <<_ACEOF
18549 /* confdefs.h.  */
18550 _ACEOF
18551 cat confdefs.h >>conftest.$ac_ext
18552 cat >>conftest.$ac_ext <<_ACEOF
18553 /* end confdefs.h.  */
18554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18556 #define $ac_func innocuous_$ac_func
18557
18558 /* System header to define __stub macros and hopefully few prototypes,
18559     which can conflict with char $ac_func (); below.
18560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18561     <limits.h> exists even on freestanding compilers.  */
18562
18563 #ifdef __STDC__
18564 # include <limits.h>
18565 #else
18566 # include <assert.h>
18567 #endif
18568
18569 #undef $ac_func
18570
18571 /* Override any GCC internal prototype to avoid an error.
18572    Use char because int might match the return type of a GCC
18573    builtin and then its argument prototype would still apply.  */
18574 #ifdef __cplusplus
18575 extern "C"
18576 #endif
18577 char $ac_func ();
18578 /* The GNU C library defines this for functions which it implements
18579     to always fail with ENOSYS.  Some functions are actually named
18580     something starting with __ and the normal name is an alias.  */
18581 #if defined __stub_$ac_func || defined __stub___$ac_func
18582 choke me
18583 #endif
18584
18585 int
18586 main ()
18587 {
18588 return $ac_func ();
18589   ;
18590   return 0;
18591 }
18592 _ACEOF
18593 rm -f conftest.$ac_objext conftest$ac_exeext
18594 if { (ac_try="$ac_link"
18595 case "(($ac_try" in
18596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597   *) ac_try_echo=$ac_try;;
18598 esac
18599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600   (eval "$ac_link") 2>conftest.er1
18601   ac_status=$?
18602   grep -v '^ *+' conftest.er1 >conftest.err
18603   rm -f conftest.er1
18604   cat conftest.err >&5
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); } && {
18607          test -z "$ac_c_werror_flag" ||
18608          test ! -s conftest.err
18609        } && test -s conftest$ac_exeext &&
18610        $as_test_x conftest$ac_exeext; then
18611   eval "$as_ac_var=yes"
18612 else
18613   echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18615
18616         eval "$as_ac_var=no"
18617 fi
18618
18619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18620       conftest$ac_exeext conftest.$ac_ext
18621 fi
18622 ac_res=`eval echo '${'$as_ac_var'}'`
18623                { echo "$as_me:$LINENO: result: $ac_res" >&5
18624 echo "${ECHO_T}$ac_res" >&6; }
18625 if test `eval echo '${'$as_ac_var'}'` = yes; then
18626   cat >>confdefs.h <<_ACEOF
18627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18628 _ACEOF
18629
18630 fi
18631 done
18632
18633
18634
18635
18636
18637
18638 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18639 do
18640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18644   echo $ECHO_N "(cached) $ECHO_C" >&6
18645 else
18646   cat >conftest.$ac_ext <<_ACEOF
18647 /* confdefs.h.  */
18648 _ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h.  */
18652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18654 #define $ac_func innocuous_$ac_func
18655
18656 /* System header to define __stub macros and hopefully few prototypes,
18657     which can conflict with char $ac_func (); below.
18658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18659     <limits.h> exists even on freestanding compilers.  */
18660
18661 #ifdef __STDC__
18662 # include <limits.h>
18663 #else
18664 # include <assert.h>
18665 #endif
18666
18667 #undef $ac_func
18668
18669 /* Override any GCC internal prototype to avoid an error.
18670    Use char because int might match the return type of a GCC
18671    builtin and then its argument prototype would still apply.  */
18672 #ifdef __cplusplus
18673 extern "C"
18674 #endif
18675 char $ac_func ();
18676 /* The GNU C library defines this for functions which it implements
18677     to always fail with ENOSYS.  Some functions are actually named
18678     something starting with __ and the normal name is an alias.  */
18679 #if defined __stub_$ac_func || defined __stub___$ac_func
18680 choke me
18681 #endif
18682
18683 int
18684 main ()
18685 {
18686 return $ac_func ();
18687   ;
18688   return 0;
18689 }
18690 _ACEOF
18691 rm -f conftest.$ac_objext conftest$ac_exeext
18692 if { (ac_try="$ac_link"
18693 case "(($ac_try" in
18694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695   *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698   (eval "$ac_link") 2>conftest.er1
18699   ac_status=$?
18700   grep -v '^ *+' conftest.er1 >conftest.err
18701   rm -f conftest.er1
18702   cat conftest.err >&5
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); } && {
18705          test -z "$ac_c_werror_flag" ||
18706          test ! -s conftest.err
18707        } && test -s conftest$ac_exeext &&
18708        $as_test_x conftest$ac_exeext; then
18709   eval "$as_ac_var=yes"
18710 else
18711   echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18713
18714         eval "$as_ac_var=no"
18715 fi
18716
18717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18718       conftest$ac_exeext conftest.$ac_ext
18719 fi
18720 ac_res=`eval echo '${'$as_ac_var'}'`
18721                { echo "$as_me:$LINENO: result: $ac_res" >&5
18722 echo "${ECHO_T}$ac_res" >&6; }
18723 if test `eval echo '${'$as_ac_var'}'` = yes; then
18724   cat >>confdefs.h <<_ACEOF
18725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18726 _ACEOF
18727
18728 fi
18729 done
18730
18731
18732 ol_link_ipv6=no
18733 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18734         if test $ol_enable_ipv6 = yes ; then
18735                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18736 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18737    { (exit 1); exit 1; }; }
18738         fi
18739 elif test $ol_enable_ipv6 != no ; then
18740         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18741 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18742 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18743   echo $ECHO_N "(cached) $ECHO_C" >&6
18744 else
18745
18746                 cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h.  */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h.  */
18752
18753 #                       include <netinet/in.h>
18754 #                       ifdef INET6_ADDRSTRLEN
18755                                 __has_inet6_addrstrlen__;
18756 #                       endif
18757
18758 _ACEOF
18759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18760   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18761   ol_cv_inet6_addrstrlen=yes
18762 else
18763   ol_cv_inet6_addrstrlen=no
18764 fi
18765 rm -f conftest*
18766
18767 fi
18768 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18769 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18770
18771
18772         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18773 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18774 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18775   echo $ECHO_N "(cached) $ECHO_C" >&6
18776 else
18777
18778                 cat >conftest.$ac_ext <<_ACEOF
18779 /* confdefs.h.  */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h.  */
18784
18785 #include <sys/types.h>
18786 #include <sys/socket.h>
18787
18788 int
18789 main ()
18790 {
18791
18792                         struct sockaddr_storage ss;
18793
18794   ;
18795   return 0;
18796 }
18797 _ACEOF
18798 rm -f conftest.$ac_objext
18799 if { (ac_try="$ac_compile"
18800 case "(($ac_try" in
18801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802   *) ac_try_echo=$ac_try;;
18803 esac
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805   (eval "$ac_compile") 2>conftest.er1
18806   ac_status=$?
18807   grep -v '^ *+' conftest.er1 >conftest.err
18808   rm -f conftest.er1
18809   cat conftest.err >&5
18810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811   (exit $ac_status); } && {
18812          test -z "$ac_c_werror_flag" ||
18813          test ! -s conftest.err
18814        } && test -s conftest.$ac_objext; then
18815   ol_cv_struct_sockaddr_storage=yes
18816 else
18817   echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18819
18820         ol_cv_struct_sockaddr_storage=no
18821 fi
18822
18823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18824 fi
18825 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18826 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
18827
18828         if test $ol_cv_inet6_addrstrlen = yes &&
18829            test $ol_cv_struct_sockaddr_storage = yes ; then
18830                 ol_link_ipv6=yes
18831         elif test $ol_enable_ipv6 = yes &&
18832              test $ol_cv_inet6_addrstrlen = no ; then
18833                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18834 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18835    { (exit 1); exit 1; }; }
18836         elif test $ol_enable_ipv6 = yes &&
18837              test $ol_cv_struct_sockaddr_storage = no ; then
18838                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18839 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18840    { (exit 1); exit 1; }; }
18841         fi
18842 fi
18843
18844 if test $ol_enable_local != no ; then
18845
18846 for ac_header in sys/un.h
18847 do
18848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18850   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18853   echo $ECHO_N "(cached) $ECHO_C" >&6
18854 fi
18855 ac_res=`eval echo '${'$as_ac_Header'}'`
18856                { echo "$as_me:$LINENO: result: $ac_res" >&5
18857 echo "${ECHO_T}$ac_res" >&6; }
18858 else
18859   # Is the header compilable?
18860 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18862 cat >conftest.$ac_ext <<_ACEOF
18863 /* confdefs.h.  */
18864 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h.  */
18868 $ac_includes_default
18869 #include <$ac_header>
18870 _ACEOF
18871 rm -f conftest.$ac_objext
18872 if { (ac_try="$ac_compile"
18873 case "(($ac_try" in
18874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875   *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878   (eval "$ac_compile") 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } && {
18885          test -z "$ac_c_werror_flag" ||
18886          test ! -s conftest.err
18887        } && test -s conftest.$ac_objext; then
18888   ac_header_compiler=yes
18889 else
18890   echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18892
18893         ac_header_compiler=no
18894 fi
18895
18896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18898 echo "${ECHO_T}$ac_header_compiler" >&6; }
18899
18900 # Is the header present?
18901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18903 cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h.  */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h.  */
18909 #include <$ac_header>
18910 _ACEOF
18911 if { (ac_try="$ac_cpp conftest.$ac_ext"
18912 case "(($ac_try" in
18913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914   *) ac_try_echo=$ac_try;;
18915 esac
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18918   ac_status=$?
18919   grep -v '^ *+' conftest.er1 >conftest.err
18920   rm -f conftest.er1
18921   cat conftest.err >&5
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); } >/dev/null && {
18924          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18925          test ! -s conftest.err
18926        }; then
18927   ac_header_preproc=yes
18928 else
18929   echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18931
18932   ac_header_preproc=no
18933 fi
18934
18935 rm -f conftest.err conftest.$ac_ext
18936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18937 echo "${ECHO_T}$ac_header_preproc" >&6; }
18938
18939 # So?  What about this header?
18940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18941   yes:no: )
18942     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18946     ac_header_preproc=yes
18947     ;;
18948   no:yes:* )
18949     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18951     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18952 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18953     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18955     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18956 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18959     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18961     ( cat <<\_ASBOX
18962 ## --------------------------------------------- ##
18963 ## Report this to <http://www.openldap.org/its/> ##
18964 ## --------------------------------------------- ##
18965 _ASBOX
18966      ) | sed "s/^/$as_me: WARNING:     /" >&2
18967     ;;
18968 esac
18969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18972   echo $ECHO_N "(cached) $ECHO_C" >&6
18973 else
18974   eval "$as_ac_Header=\$ac_header_preproc"
18975 fi
18976 ac_res=`eval echo '${'$as_ac_Header'}'`
18977                { echo "$as_me:$LINENO: result: $ac_res" >&5
18978 echo "${ECHO_T}$ac_res" >&6; }
18979
18980 fi
18981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18982   cat >>confdefs.h <<_ACEOF
18983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18984 _ACEOF
18985
18986 fi
18987
18988 done
18989
18990
18991         if test $ol_enable_local = auto ; then
18992                 ol_enable_local=$ac_cv_header_sys_un_h
18993         elif test $ac_cv_header_sys_un_h = no ; then
18994                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18995 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18996    { (exit 1); exit 1; }; }
18997         fi
18998 fi
18999
19000 ol_link_gssapi=no
19001
19002 case $ol_with_gssapi in yes | auto)
19003
19004         ol_header_gssapi=no
19005
19006 for ac_header in gssapi/gssapi.h
19007 do
19008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19010   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19013   echo $ECHO_N "(cached) $ECHO_C" >&6
19014 fi
19015 ac_res=`eval echo '${'$as_ac_Header'}'`
19016                { echo "$as_me:$LINENO: result: $ac_res" >&5
19017 echo "${ECHO_T}$ac_res" >&6; }
19018 else
19019   # Is the header compilable?
19020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19022 cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h.  */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h.  */
19028 $ac_includes_default
19029 #include <$ac_header>
19030 _ACEOF
19031 rm -f conftest.$ac_objext
19032 if { (ac_try="$ac_compile"
19033 case "(($ac_try" in
19034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035   *) ac_try_echo=$ac_try;;
19036 esac
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038   (eval "$ac_compile") 2>conftest.er1
19039   ac_status=$?
19040   grep -v '^ *+' conftest.er1 >conftest.err
19041   rm -f conftest.er1
19042   cat conftest.err >&5
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); } && {
19045          test -z "$ac_c_werror_flag" ||
19046          test ! -s conftest.err
19047        } && test -s conftest.$ac_objext; then
19048   ac_header_compiler=yes
19049 else
19050   echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19052
19053         ac_header_compiler=no
19054 fi
19055
19056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19058 echo "${ECHO_T}$ac_header_compiler" >&6; }
19059
19060 # Is the header present?
19061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19063 cat >conftest.$ac_ext <<_ACEOF
19064 /* confdefs.h.  */
19065 _ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h.  */
19069 #include <$ac_header>
19070 _ACEOF
19071 if { (ac_try="$ac_cpp conftest.$ac_ext"
19072 case "(($ac_try" in
19073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074   *) ac_try_echo=$ac_try;;
19075 esac
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19078   ac_status=$?
19079   grep -v '^ *+' conftest.er1 >conftest.err
19080   rm -f conftest.er1
19081   cat conftest.err >&5
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); } >/dev/null && {
19084          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19085          test ! -s conftest.err
19086        }; then
19087   ac_header_preproc=yes
19088 else
19089   echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19091
19092   ac_header_preproc=no
19093 fi
19094
19095 rm -f conftest.err conftest.$ac_ext
19096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19097 echo "${ECHO_T}$ac_header_preproc" >&6; }
19098
19099 # So?  What about this header?
19100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19101   yes:no: )
19102     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19106     ac_header_preproc=yes
19107     ;;
19108   no:yes:* )
19109     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19111     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19112 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19113     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19115     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19116 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19119     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19121     ( cat <<\_ASBOX
19122 ## --------------------------------------------- ##
19123 ## Report this to <http://www.openldap.org/its/> ##
19124 ## --------------------------------------------- ##
19125 _ASBOX
19126      ) | sed "s/^/$as_me: WARNING:     /" >&2
19127     ;;
19128 esac
19129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19132   echo $ECHO_N "(cached) $ECHO_C" >&6
19133 else
19134   eval "$as_ac_Header=\$ac_header_preproc"
19135 fi
19136 ac_res=`eval echo '${'$as_ac_Header'}'`
19137                { echo "$as_me:$LINENO: result: $ac_res" >&5
19138 echo "${ECHO_T}$ac_res" >&6; }
19139
19140 fi
19141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19142   cat >>confdefs.h <<_ACEOF
19143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19144 _ACEOF
19145
19146 fi
19147
19148 done
19149
19150         if test $ac_cv_header_gssapi_gssapi_h = yes ; then
19151                 ol_header_gssapi=yes
19152         else
19153
19154 for ac_header in gssapi.h
19155 do
19156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19158   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19161   echo $ECHO_N "(cached) $ECHO_C" >&6
19162 fi
19163 ac_res=`eval echo '${'$as_ac_Header'}'`
19164                { echo "$as_me:$LINENO: result: $ac_res" >&5
19165 echo "${ECHO_T}$ac_res" >&6; }
19166 else
19167   # Is the header compilable?
19168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19170 cat >conftest.$ac_ext <<_ACEOF
19171 /* confdefs.h.  */
19172 _ACEOF
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h.  */
19176 $ac_includes_default
19177 #include <$ac_header>
19178 _ACEOF
19179 rm -f conftest.$ac_objext
19180 if { (ac_try="$ac_compile"
19181 case "(($ac_try" in
19182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183   *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186   (eval "$ac_compile") 2>conftest.er1
19187   ac_status=$?
19188   grep -v '^ *+' conftest.er1 >conftest.err
19189   rm -f conftest.er1
19190   cat conftest.err >&5
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } && {
19193          test -z "$ac_c_werror_flag" ||
19194          test ! -s conftest.err
19195        } && test -s conftest.$ac_objext; then
19196   ac_header_compiler=yes
19197 else
19198   echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19200
19201         ac_header_compiler=no
19202 fi
19203
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19206 echo "${ECHO_T}$ac_header_compiler" >&6; }
19207
19208 # Is the header present?
19209 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19211 cat >conftest.$ac_ext <<_ACEOF
19212 /* confdefs.h.  */
19213 _ACEOF
19214 cat confdefs.h >>conftest.$ac_ext
19215 cat >>conftest.$ac_ext <<_ACEOF
19216 /* end confdefs.h.  */
19217 #include <$ac_header>
19218 _ACEOF
19219 if { (ac_try="$ac_cpp conftest.$ac_ext"
19220 case "(($ac_try" in
19221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222   *) ac_try_echo=$ac_try;;
19223 esac
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19226   ac_status=$?
19227   grep -v '^ *+' conftest.er1 >conftest.err
19228   rm -f conftest.er1
19229   cat conftest.err >&5
19230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231   (exit $ac_status); } >/dev/null && {
19232          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19233          test ! -s conftest.err
19234        }; then
19235   ac_header_preproc=yes
19236 else
19237   echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19239
19240   ac_header_preproc=no
19241 fi
19242
19243 rm -f conftest.err conftest.$ac_ext
19244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19245 echo "${ECHO_T}$ac_header_preproc" >&6; }
19246
19247 # So?  What about this header?
19248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19249   yes:no: )
19250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19254     ac_header_preproc=yes
19255     ;;
19256   no:yes:* )
19257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19269     ( cat <<\_ASBOX
19270 ## --------------------------------------------- ##
19271 ## Report this to <http://www.openldap.org/its/> ##
19272 ## --------------------------------------------- ##
19273 _ASBOX
19274      ) | sed "s/^/$as_me: WARNING:     /" >&2
19275     ;;
19276 esac
19277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19280   echo $ECHO_N "(cached) $ECHO_C" >&6
19281 else
19282   eval "$as_ac_Header=\$ac_header_preproc"
19283 fi
19284 ac_res=`eval echo '${'$as_ac_Header'}'`
19285                { echo "$as_me:$LINENO: result: $ac_res" >&5
19286 echo "${ECHO_T}$ac_res" >&6; }
19287
19288 fi
19289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19290   cat >>confdefs.h <<_ACEOF
19291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19292 _ACEOF
19293
19294 fi
19295
19296 done
19297
19298                 if test $ac_cv_header_gssapi_h = yes ; then
19299                         ol_header_gssapi=yes
19300                 fi
19301
19302                                                                 saveLIBS="$LIBS"
19303                 LIBS="$LIBS $GSSAPI_LIBS"
19304
19305 for ac_func in gss_oid_to_str
19306 do
19307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19311   echo $ECHO_N "(cached) $ECHO_C" >&6
19312 else
19313   cat >conftest.$ac_ext <<_ACEOF
19314 /* confdefs.h.  */
19315 _ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h.  */
19319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19321 #define $ac_func innocuous_$ac_func
19322
19323 /* System header to define __stub macros and hopefully few prototypes,
19324     which can conflict with char $ac_func (); below.
19325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19326     <limits.h> exists even on freestanding compilers.  */
19327
19328 #ifdef __STDC__
19329 # include <limits.h>
19330 #else
19331 # include <assert.h>
19332 #endif
19333
19334 #undef $ac_func
19335
19336 /* Override any GCC internal prototype to avoid an error.
19337    Use char because int might match the return type of a GCC
19338    builtin and then its argument prototype would still apply.  */
19339 #ifdef __cplusplus
19340 extern "C"
19341 #endif
19342 char $ac_func ();
19343 /* The GNU C library defines this for functions which it implements
19344     to always fail with ENOSYS.  Some functions are actually named
19345     something starting with __ and the normal name is an alias.  */
19346 #if defined __stub_$ac_func || defined __stub___$ac_func
19347 choke me
19348 #endif
19349
19350 int
19351 main ()
19352 {
19353 return $ac_func ();
19354   ;
19355   return 0;
19356 }
19357 _ACEOF
19358 rm -f conftest.$ac_objext conftest$ac_exeext
19359 if { (ac_try="$ac_link"
19360 case "(($ac_try" in
19361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362   *) ac_try_echo=$ac_try;;
19363 esac
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365   (eval "$ac_link") 2>conftest.er1
19366   ac_status=$?
19367   grep -v '^ *+' conftest.er1 >conftest.err
19368   rm -f conftest.er1
19369   cat conftest.err >&5
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); } && {
19372          test -z "$ac_c_werror_flag" ||
19373          test ! -s conftest.err
19374        } && test -s conftest$ac_exeext &&
19375        $as_test_x conftest$ac_exeext; then
19376   eval "$as_ac_var=yes"
19377 else
19378   echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19380
19381         eval "$as_ac_var=no"
19382 fi
19383
19384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19385       conftest$ac_exeext conftest.$ac_ext
19386 fi
19387 ac_res=`eval echo '${'$as_ac_var'}'`
19388                { echo "$as_me:$LINENO: result: $ac_res" >&5
19389 echo "${ECHO_T}$ac_res" >&6; }
19390 if test `eval echo '${'$as_ac_var'}'` = yes; then
19391   cat >>confdefs.h <<_ACEOF
19392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19393 _ACEOF
19394
19395 fi
19396 done
19397
19398                 LIBS="$saveLIBS"
19399         fi
19400
19401         if test $ol_header_gssapi = yes ; then
19402                                                 { echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi" >&5
19403 echo $ECHO_N "checking for gss_wrap in -lgssapi... $ECHO_C" >&6; }
19404 if test "${ac_cv_lib_gssapi_gss_wrap+set}" = set; then
19405   echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407   ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-lgssapi  $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 gss_wrap ();
19423 int
19424 main ()
19425 {
19426 return gss_wrap ();
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_gssapi_gss_wrap=yes
19450 else
19451   echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19453
19454         ac_cv_lib_gssapi_gss_wrap=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_gssapi_gss_wrap" >&5
19462 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_wrap" >&6; }
19463 if test $ac_cv_lib_gssapi_gss_wrap = yes; then
19464   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi"
19465 else
19466   ol_link_gssapi=no
19467 fi
19468
19469                 if test $ol_link_gssapi != yes ; then
19470                         { echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi_krb5" >&5
19471 echo $ECHO_N "checking for gss_wrap in -lgssapi_krb5... $ECHO_C" >&6; }
19472 if test "${ac_cv_lib_gssapi_krb5_gss_wrap+set}" = set; then
19473   echo $ECHO_N "(cached) $ECHO_C" >&6
19474 else
19475   ac_check_lib_save_LIBS=$LIBS
19476 LIBS="-lgssapi_krb5  $LIBS"
19477 cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h.  */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h.  */
19483
19484 /* Override any GCC internal prototype to avoid an error.
19485    Use char because int might match the return type of a GCC
19486    builtin and then its argument prototype would still apply.  */
19487 #ifdef __cplusplus
19488 extern "C"
19489 #endif
19490 char gss_wrap ();
19491 int
19492 main ()
19493 {
19494 return gss_wrap ();
19495   ;
19496   return 0;
19497 }
19498 _ACEOF
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503   *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506   (eval "$ac_link") 2>conftest.er1
19507   ac_status=$?
19508   grep -v '^ *+' conftest.er1 >conftest.err
19509   rm -f conftest.er1
19510   cat conftest.err >&5
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); } && {
19513          test -z "$ac_c_werror_flag" ||
19514          test ! -s conftest.err
19515        } && test -s conftest$ac_exeext &&
19516        $as_test_x conftest$ac_exeext; then
19517   ac_cv_lib_gssapi_krb5_gss_wrap=yes
19518 else
19519   echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19521
19522         ac_cv_lib_gssapi_krb5_gss_wrap=no
19523 fi
19524
19525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19526       conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19528 fi
19529 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_wrap" >&5
19530 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_wrap" >&6; }
19531 if test $ac_cv_lib_gssapi_krb5_gss_wrap = yes; then
19532   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi_krb5"
19533 else
19534   ol_link_gssapi=no
19535 fi
19536
19537                 fi
19538         fi
19539
19540         ;;
19541 esac
19542
19543 WITH_GSSAPI=no
19544 if test $ol_link_gssapi = yes; then
19545
19546 cat >>confdefs.h <<\_ACEOF
19547 #define HAVE_GSSAPI 1
19548 _ACEOF
19549
19550         WITH_GSSAPI=yes
19551 elif test $ol_with_gssapi = auto ; then
19552         { echo "$as_me:$LINENO: WARNING: Could not locate GSSAPI package" >&5
19553 echo "$as_me: WARNING: Could not locate GSSAPI package" >&2;}
19554         { echo "$as_me:$LINENO: WARNING: GSSAPI authentication not supported!" >&5
19555 echo "$as_me: WARNING: GSSAPI authentication not supported!" >&2;}
19556 elif test $ol_with_gssapi = yes ; then
19557         { { echo "$as_me:$LINENO: error: GSSAPI detection failed" >&5
19558 echo "$as_me: error: GSSAPI detection failed" >&2;}
19559    { (exit 1); exit 1; }; }
19560 fi
19561
19562
19563 if test $ol_with_tls = yes ; then
19564         ol_with_tls=auto
19565 fi
19566
19567 ol_link_tls=no
19568 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19569
19570 for ac_header in openssl/ssl.h
19571 do
19572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19574   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19577   echo $ECHO_N "(cached) $ECHO_C" >&6
19578 fi
19579 ac_res=`eval echo '${'$as_ac_Header'}'`
19580                { echo "$as_me:$LINENO: result: $ac_res" >&5
19581 echo "${ECHO_T}$ac_res" >&6; }
19582 else
19583   # Is the header compilable?
19584 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19586 cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h.  */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h.  */
19592 $ac_includes_default
19593 #include <$ac_header>
19594 _ACEOF
19595 rm -f conftest.$ac_objext
19596 if { (ac_try="$ac_compile"
19597 case "(($ac_try" in
19598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599   *) ac_try_echo=$ac_try;;
19600 esac
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602   (eval "$ac_compile") 2>conftest.er1
19603   ac_status=$?
19604   grep -v '^ *+' conftest.er1 >conftest.err
19605   rm -f conftest.er1
19606   cat conftest.err >&5
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); } && {
19609          test -z "$ac_c_werror_flag" ||
19610          test ! -s conftest.err
19611        } && test -s conftest.$ac_objext; then
19612   ac_header_compiler=yes
19613 else
19614   echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617         ac_header_compiler=no
19618 fi
19619
19620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19622 echo "${ECHO_T}$ac_header_compiler" >&6; }
19623
19624 # Is the header present?
19625 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19627 cat >conftest.$ac_ext <<_ACEOF
19628 /* confdefs.h.  */
19629 _ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h.  */
19633 #include <$ac_header>
19634 _ACEOF
19635 if { (ac_try="$ac_cpp conftest.$ac_ext"
19636 case "(($ac_try" in
19637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638   *) ac_try_echo=$ac_try;;
19639 esac
19640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19642   ac_status=$?
19643   grep -v '^ *+' conftest.er1 >conftest.err
19644   rm -f conftest.er1
19645   cat conftest.err >&5
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); } >/dev/null && {
19648          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19649          test ! -s conftest.err
19650        }; then
19651   ac_header_preproc=yes
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656   ac_header_preproc=no
19657 fi
19658
19659 rm -f conftest.err conftest.$ac_ext
19660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19661 echo "${ECHO_T}$ac_header_preproc" >&6; }
19662
19663 # So?  What about this header?
19664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19665   yes:no: )
19666     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19670     ac_header_preproc=yes
19671     ;;
19672   no:yes:* )
19673     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19675     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19676 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19677     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19679     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19680 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19683     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19685     ( cat <<\_ASBOX
19686 ## --------------------------------------------- ##
19687 ## Report this to <http://www.openldap.org/its/> ##
19688 ## --------------------------------------------- ##
19689 _ASBOX
19690      ) | sed "s/^/$as_me: WARNING:     /" >&2
19691     ;;
19692 esac
19693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19696   echo $ECHO_N "(cached) $ECHO_C" >&6
19697 else
19698   eval "$as_ac_Header=\$ac_header_preproc"
19699 fi
19700 ac_res=`eval echo '${'$as_ac_Header'}'`
19701                { echo "$as_me:$LINENO: result: $ac_res" >&5
19702 echo "${ECHO_T}$ac_res" >&6; }
19703
19704 fi
19705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19706   cat >>confdefs.h <<_ACEOF
19707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19708 _ACEOF
19709
19710 fi
19711
19712 done
19713
19714
19715         if test $ac_cv_header_openssl_ssl_h = yes ; then
19716                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19717 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19718 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19719   echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721   ac_check_lib_save_LIBS=$LIBS
19722 LIBS="-lssl -lcrypto $LIBS"
19723 cat >conftest.$ac_ext <<_ACEOF
19724 /* confdefs.h.  */
19725 _ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h.  */
19729
19730 /* Override any GCC internal prototype to avoid an error.
19731    Use char because int might match the return type of a GCC
19732    builtin and then its argument prototype would still apply.  */
19733 #ifdef __cplusplus
19734 extern "C"
19735 #endif
19736 char SSL_library_init ();
19737 int
19738 main ()
19739 {
19740 return SSL_library_init ();
19741   ;
19742   return 0;
19743 }
19744 _ACEOF
19745 rm -f conftest.$ac_objext conftest$ac_exeext
19746 if { (ac_try="$ac_link"
19747 case "(($ac_try" in
19748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749   *) ac_try_echo=$ac_try;;
19750 esac
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752   (eval "$ac_link") 2>conftest.er1
19753   ac_status=$?
19754   grep -v '^ *+' conftest.er1 >conftest.err
19755   rm -f conftest.er1
19756   cat conftest.err >&5
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); } && {
19759          test -z "$ac_c_werror_flag" ||
19760          test ! -s conftest.err
19761        } && test -s conftest$ac_exeext &&
19762        $as_test_x conftest$ac_exeext; then
19763   ac_cv_lib_ssl_SSL_library_init=yes
19764 else
19765   echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19767
19768         ac_cv_lib_ssl_SSL_library_init=no
19769 fi
19770
19771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19772       conftest$ac_exeext conftest.$ac_ext
19773 LIBS=$ac_check_lib_save_LIBS
19774 fi
19775 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19776 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19777 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19778   have_openssl=yes
19779                         need_rsaref=no
19780 else
19781   have_openssl=no
19782 fi
19783
19784
19785                 if test $have_openssl = no ; then
19786                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19787 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19788 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19789   echo $ECHO_N "(cached) $ECHO_C" >&6
19790 else
19791   ac_check_lib_save_LIBS=$LIBS
19792 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h.  */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h.  */
19799
19800 /* Override any GCC internal prototype to avoid an error.
19801    Use char because int might match the return type of a GCC
19802    builtin and then its argument prototype would still apply.  */
19803 #ifdef __cplusplus
19804 extern "C"
19805 #endif
19806 char ssl3_accept ();
19807 int
19808 main ()
19809 {
19810 return ssl3_accept ();
19811   ;
19812   return 0;
19813 }
19814 _ACEOF
19815 rm -f conftest.$ac_objext conftest$ac_exeext
19816 if { (ac_try="$ac_link"
19817 case "(($ac_try" in
19818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819   *) ac_try_echo=$ac_try;;
19820 esac
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822   (eval "$ac_link") 2>conftest.er1
19823   ac_status=$?
19824   grep -v '^ *+' conftest.er1 >conftest.err
19825   rm -f conftest.er1
19826   cat conftest.err >&5
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); } && {
19829          test -z "$ac_c_werror_flag" ||
19830          test ! -s conftest.err
19831        } && test -s conftest$ac_exeext &&
19832        $as_test_x conftest$ac_exeext; then
19833   ac_cv_lib_ssl_ssl3_accept=yes
19834 else
19835   echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19837
19838         ac_cv_lib_ssl_ssl3_accept=no
19839 fi
19840
19841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19842       conftest$ac_exeext conftest.$ac_ext
19843 LIBS=$ac_check_lib_save_LIBS
19844 fi
19845 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19846 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19847 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19848   have_openssl=yes
19849                                 need_rsaref=yes
19850 else
19851   have_openssl=no
19852 fi
19853
19854                 fi
19855
19856                 if test $have_openssl = yes ; then
19857                         ol_with_tls=openssl
19858                         ol_link_tls=yes
19859
19860
19861 cat >>confdefs.h <<\_ACEOF
19862 #define HAVE_OPENSSL 1
19863 _ACEOF
19864
19865
19866                         if test $need_rsaref = yes; then
19867
19868 cat >>confdefs.h <<\_ACEOF
19869 #define HAVE_RSAREF 1
19870 _ACEOF
19871
19872
19873                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19874                         else
19875                                 TLS_LIBS="-lssl -lcrypto"
19876                         fi
19877
19878                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19879 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19880 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19881   echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883
19884                 cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h.  */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h.  */
19890
19891 #ifdef HAVE_OPENSSL_SSL_H
19892 #include <openssl/ssl.h>
19893 #endif
19894
19895 /* Require 0.9.7d+ */
19896 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19897         char *__ssl_compat = "0.9.7d";
19898 #endif
19899
19900 _ACEOF
19901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19902   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19903   ol_cv_ssl_crl_compat=yes
19904 else
19905   ol_cv_ssl_crl_compat=no
19906 fi
19907 rm -f conftest*
19908
19909 fi
19910 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19911 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19912
19913                         if test $ol_cv_ssl_crl_compat = yes ; then
19914
19915 cat >>confdefs.h <<\_ACEOF
19916 #define HAVE_OPENSSL_CRL 1
19917 _ACEOF
19918
19919                         fi
19920                 fi
19921         fi
19922 fi
19923
19924 if test $ol_link_tls = no ; then
19925         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19926
19927 for ac_header in gnutls/gnutls.h
19928 do
19929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19931   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19934   echo $ECHO_N "(cached) $ECHO_C" >&6
19935 fi
19936 ac_res=`eval echo '${'$as_ac_Header'}'`
19937                { echo "$as_me:$LINENO: result: $ac_res" >&5
19938 echo "${ECHO_T}$ac_res" >&6; }
19939 else
19940   # Is the header compilable?
19941 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19943 cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h.  */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h.  */
19949 $ac_includes_default
19950 #include <$ac_header>
19951 _ACEOF
19952 rm -f conftest.$ac_objext
19953 if { (ac_try="$ac_compile"
19954 case "(($ac_try" in
19955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19956   *) ac_try_echo=$ac_try;;
19957 esac
19958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19959   (eval "$ac_compile") 2>conftest.er1
19960   ac_status=$?
19961   grep -v '^ *+' conftest.er1 >conftest.err
19962   rm -f conftest.er1
19963   cat conftest.err >&5
19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965   (exit $ac_status); } && {
19966          test -z "$ac_c_werror_flag" ||
19967          test ! -s conftest.err
19968        } && test -s conftest.$ac_objext; then
19969   ac_header_compiler=yes
19970 else
19971   echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974         ac_header_compiler=no
19975 fi
19976
19977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19979 echo "${ECHO_T}$ac_header_compiler" >&6; }
19980
19981 # Is the header present?
19982 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19984 cat >conftest.$ac_ext <<_ACEOF
19985 /* confdefs.h.  */
19986 _ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h.  */
19990 #include <$ac_header>
19991 _ACEOF
19992 if { (ac_try="$ac_cpp conftest.$ac_ext"
19993 case "(($ac_try" in
19994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995   *) ac_try_echo=$ac_try;;
19996 esac
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19999   ac_status=$?
20000   grep -v '^ *+' conftest.er1 >conftest.err
20001   rm -f conftest.er1
20002   cat conftest.err >&5
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); } >/dev/null && {
20005          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20006          test ! -s conftest.err
20007        }; then
20008   ac_header_preproc=yes
20009 else
20010   echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20012
20013   ac_header_preproc=no
20014 fi
20015
20016 rm -f conftest.err conftest.$ac_ext
20017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20018 echo "${ECHO_T}$ac_header_preproc" >&6; }
20019
20020 # So?  What about this header?
20021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20022   yes:no: )
20023     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20027     ac_header_preproc=yes
20028     ;;
20029   no:yes:* )
20030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20032     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20033 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20034     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20036     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20037 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20040     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20042     ( cat <<\_ASBOX
20043 ## --------------------------------------------- ##
20044 ## Report this to <http://www.openldap.org/its/> ##
20045 ## --------------------------------------------- ##
20046 _ASBOX
20047      ) | sed "s/^/$as_me: WARNING:     /" >&2
20048     ;;
20049 esac
20050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20053   echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055   eval "$as_ac_Header=\$ac_header_preproc"
20056 fi
20057 ac_res=`eval echo '${'$as_ac_Header'}'`
20058                { echo "$as_me:$LINENO: result: $ac_res" >&5
20059 echo "${ECHO_T}$ac_res" >&6; }
20060
20061 fi
20062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20063   cat >>confdefs.h <<_ACEOF
20064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20065 _ACEOF
20066
20067 fi
20068
20069 done
20070
20071
20072                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
20073                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
20074 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
20075 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
20076   echo $ECHO_N "(cached) $ECHO_C" >&6
20077 else
20078   ac_check_lib_save_LIBS=$LIBS
20079 LIBS="-lgnutls  $LIBS"
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h.  */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h.  */
20086
20087 /* Override any GCC internal prototype to avoid an error.
20088    Use char because int might match the return type of a GCC
20089    builtin and then its argument prototype would still apply.  */
20090 #ifdef __cplusplus
20091 extern "C"
20092 #endif
20093 char gnutls_init ();
20094 int
20095 main ()
20096 {
20097 return gnutls_init ();
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (ac_try="$ac_link"
20104 case "(($ac_try" in
20105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106   *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109   (eval "$ac_link") 2>conftest.er1
20110   ac_status=$?
20111   grep -v '^ *+' conftest.er1 >conftest.err
20112   rm -f conftest.er1
20113   cat conftest.err >&5
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); } && {
20116          test -z "$ac_c_werror_flag" ||
20117          test ! -s conftest.err
20118        } && test -s conftest$ac_exeext &&
20119        $as_test_x conftest$ac_exeext; then
20120   ac_cv_lib_gnutls_gnutls_init=yes
20121 else
20122   echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20124
20125         ac_cv_lib_gnutls_gnutls_init=no
20126 fi
20127
20128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20129       conftest$ac_exeext conftest.$ac_ext
20130 LIBS=$ac_check_lib_save_LIBS
20131 fi
20132 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
20133 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
20134 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
20135   have_gnutls=yes
20136 else
20137   have_gnutls=no
20138 fi
20139
20140
20141                         if test $have_gnutls = yes ; then
20142                                 ol_with_tls=gnutls
20143                                 ol_link_tls=yes
20144
20145                                 TLS_LIBS="-lgnutls"
20146
20147
20148 cat >>confdefs.h <<\_ACEOF
20149 #define HAVE_GNUTLS 1
20150 _ACEOF
20151
20152                         fi
20153                 fi
20154         fi
20155 fi
20156
20157 WITH_TLS=no
20158 if test $ol_link_tls = yes ; then
20159
20160 cat >>confdefs.h <<\_ACEOF
20161 #define HAVE_TLS 1
20162 _ACEOF
20163
20164         WITH_TLS=yes
20165 elif test $ol_with_tls = auto ; then
20166         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20167 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20168         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20169 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20170 elif test $ol_with_tls != no ; then
20171         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20172 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20173    { (exit 1); exit 1; }; }
20174 else
20175         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20176 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20177 fi
20178
20179 if test $ol_enable_lmpasswd != no; then
20180         if test $ol_link_tls != yes ; then
20181                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20182 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20183    { (exit 1); exit 1; }; }
20184         fi
20185
20186
20187 cat >>confdefs.h <<\_ACEOF
20188 #define SLAPD_LMHASH 1
20189 _ACEOF
20190
20191 fi
20192
20193 ol_link_threads=no
20194
20195 case $ol_with_threads in auto | yes | nt)
20196
20197
20198         { echo "$as_me:$LINENO: checking for _beginthread" >&5
20199 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20200 if test "${ac_cv_func__beginthread+set}" = set; then
20201   echo $ECHO_N "(cached) $ECHO_C" >&6
20202 else
20203   cat >conftest.$ac_ext <<_ACEOF
20204 /* confdefs.h.  */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h.  */
20209 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20211 #define _beginthread innocuous__beginthread
20212
20213 /* System header to define __stub macros and hopefully few prototypes,
20214     which can conflict with char _beginthread (); below.
20215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20216     <limits.h> exists even on freestanding compilers.  */
20217
20218 #ifdef __STDC__
20219 # include <limits.h>
20220 #else
20221 # include <assert.h>
20222 #endif
20223
20224 #undef _beginthread
20225
20226 /* Override any GCC internal prototype to avoid an error.
20227    Use char because int might match the return type of a GCC
20228    builtin and then its argument prototype would still apply.  */
20229 #ifdef __cplusplus
20230 extern "C"
20231 #endif
20232 char _beginthread ();
20233 /* The GNU C library defines this for functions which it implements
20234     to always fail with ENOSYS.  Some functions are actually named
20235     something starting with __ and the normal name is an alias.  */
20236 #if defined __stub__beginthread || defined __stub____beginthread
20237 choke me
20238 #endif
20239
20240 int
20241 main ()
20242 {
20243 return _beginthread ();
20244   ;
20245   return 0;
20246 }
20247 _ACEOF
20248 rm -f conftest.$ac_objext conftest$ac_exeext
20249 if { (ac_try="$ac_link"
20250 case "(($ac_try" in
20251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252   *) ac_try_echo=$ac_try;;
20253 esac
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255   (eval "$ac_link") 2>conftest.er1
20256   ac_status=$?
20257   grep -v '^ *+' conftest.er1 >conftest.err
20258   rm -f conftest.er1
20259   cat conftest.err >&5
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); } && {
20262          test -z "$ac_c_werror_flag" ||
20263          test ! -s conftest.err
20264        } && test -s conftest$ac_exeext &&
20265        $as_test_x conftest$ac_exeext; then
20266   ac_cv_func__beginthread=yes
20267 else
20268   echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20270
20271         ac_cv_func__beginthread=no
20272 fi
20273
20274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20275       conftest$ac_exeext conftest.$ac_ext
20276 fi
20277 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20278 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20279
20280
20281         if test $ac_cv_func__beginthread = yes ; then
20282
20283 cat >>confdefs.h <<\_ACEOF
20284 #define HAVE_NT_THREADS 1
20285 _ACEOF
20286
20287                 ol_cv_nt_threads=yes
20288         fi
20289
20290
20291         if test "$ol_cv_nt_threads" = yes ; then
20292                 ol_link_threads=nt
20293                 ol_with_threads=found
20294                 ol_with_yielding_select=yes
20295
20296
20297 cat >>confdefs.h <<\_ACEOF
20298 #define HAVE_NT_SERVICE_MANAGER 1
20299 _ACEOF
20300
20301
20302 cat >>confdefs.h <<\_ACEOF
20303 #define HAVE_NT_EVENT_LOG 1
20304 _ACEOF
20305
20306         fi
20307
20308         if test $ol_with_threads = nt ; then
20309                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20310 echo "$as_me: error: could not locate NT Threads" >&2;}
20311    { (exit 1); exit 1; }; }
20312         fi
20313         ;;
20314 esac
20315
20316 case $ol_with_threads in auto | yes | posix)
20317
20318
20319 for ac_header in pthread.h
20320 do
20321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20323   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20326   echo $ECHO_N "(cached) $ECHO_C" >&6
20327 fi
20328 ac_res=`eval echo '${'$as_ac_Header'}'`
20329                { echo "$as_me:$LINENO: result: $ac_res" >&5
20330 echo "${ECHO_T}$ac_res" >&6; }
20331 else
20332   # Is the header compilable?
20333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h.  */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h.  */
20341 $ac_includes_default
20342 #include <$ac_header>
20343 _ACEOF
20344 rm -f conftest.$ac_objext
20345 if { (ac_try="$ac_compile"
20346 case "(($ac_try" in
20347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348   *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351   (eval "$ac_compile") 2>conftest.er1
20352   ac_status=$?
20353   grep -v '^ *+' conftest.er1 >conftest.err
20354   rm -f conftest.er1
20355   cat conftest.err >&5
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); } && {
20358          test -z "$ac_c_werror_flag" ||
20359          test ! -s conftest.err
20360        } && test -s conftest.$ac_objext; then
20361   ac_header_compiler=yes
20362 else
20363   echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20365
20366         ac_header_compiler=no
20367 fi
20368
20369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20371 echo "${ECHO_T}$ac_header_compiler" >&6; }
20372
20373 # Is the header present?
20374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20376 cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h.  */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h.  */
20382 #include <$ac_header>
20383 _ACEOF
20384 if { (ac_try="$ac_cpp conftest.$ac_ext"
20385 case "(($ac_try" in
20386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387   *) ac_try_echo=$ac_try;;
20388 esac
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20391   ac_status=$?
20392   grep -v '^ *+' conftest.er1 >conftest.err
20393   rm -f conftest.er1
20394   cat conftest.err >&5
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); } >/dev/null && {
20397          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20398          test ! -s conftest.err
20399        }; then
20400   ac_header_preproc=yes
20401 else
20402   echo "$as_me: failed program was:" >&5
20403 sed 's/^/| /' conftest.$ac_ext >&5
20404
20405   ac_header_preproc=no
20406 fi
20407
20408 rm -f conftest.err conftest.$ac_ext
20409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20410 echo "${ECHO_T}$ac_header_preproc" >&6; }
20411
20412 # So?  What about this header?
20413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20414   yes:no: )
20415     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20419     ac_header_preproc=yes
20420     ;;
20421   no:yes:* )
20422     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20424     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20425 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20426     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20428     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20429 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20432     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20434     ( cat <<\_ASBOX
20435 ## --------------------------------------------- ##
20436 ## Report this to <http://www.openldap.org/its/> ##
20437 ## --------------------------------------------- ##
20438 _ASBOX
20439      ) | sed "s/^/$as_me: WARNING:     /" >&2
20440     ;;
20441 esac
20442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20445   echo $ECHO_N "(cached) $ECHO_C" >&6
20446 else
20447   eval "$as_ac_Header=\$ac_header_preproc"
20448 fi
20449 ac_res=`eval echo '${'$as_ac_Header'}'`
20450                { echo "$as_me:$LINENO: result: $ac_res" >&5
20451 echo "${ECHO_T}$ac_res" >&6; }
20452
20453 fi
20454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20455   cat >>confdefs.h <<_ACEOF
20456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20457 _ACEOF
20458
20459 fi
20460
20461 done
20462
20463
20464         if test $ac_cv_header_pthread_h = yes ; then
20465                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20466 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20467 if test "${ol_cv_pthread_version+set}" = set; then
20468   echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470
20471         cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h.  */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h.  */
20477
20478 #               include <pthread.h>
20479
20480 int
20481 main ()
20482 {
20483
20484                 int i = PTHREAD_CREATE_JOINABLE;
20485
20486   ;
20487   return 0;
20488 }
20489 _ACEOF
20490 rm -f conftest.$ac_objext
20491 if { (ac_try="$ac_compile"
20492 case "(($ac_try" in
20493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494   *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497   (eval "$ac_compile") 2>conftest.er1
20498   ac_status=$?
20499   grep -v '^ *+' conftest.er1 >conftest.err
20500   rm -f conftest.er1
20501   cat conftest.err >&5
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); } && {
20504          test -z "$ac_c_werror_flag" ||
20505          test ! -s conftest.err
20506        } && test -s conftest.$ac_objext; then
20507
20508         cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h.  */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h.  */
20514 #include <pthread.h>
20515
20516 _ACEOF
20517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20518   $EGREP "pthread_detach" >/dev/null 2>&1; then
20519   ol_cv_pthread_version=10
20520 else
20521   ol_cv_pthread_version=8
20522 fi
20523 rm -f conftest*
20524
20525 else
20526   echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529
20530         cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h.  */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h.  */
20536
20537 #               include <pthread.h>
20538 #               ifdef PTHREAD_CREATE_UNDETACHED
20539                 draft7
20540 #               endif
20541
20542 _ACEOF
20543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20544   $EGREP "draft7" >/dev/null 2>&1; then
20545   ol_cv_pthread_version=7
20546 else
20547
20548         cat >conftest.$ac_ext <<_ACEOF
20549 /* confdefs.h.  */
20550 _ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h.  */
20554 #include <pthread.h>
20555
20556 _ACEOF
20557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20558   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20559   ol_cv_pthread_version=6
20560 else
20561
20562         cat >conftest.$ac_ext <<_ACEOF
20563 /* confdefs.h.  */
20564 _ACEOF
20565 cat confdefs.h >>conftest.$ac_ext
20566 cat >>conftest.$ac_ext <<_ACEOF
20567 /* end confdefs.h.  */
20568
20569 #               include <pthread.h>
20570 #ifdef          PTHREAD_MUTEX_INITIALIZER
20571                 draft5
20572 #endif
20573
20574 _ACEOF
20575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20576   $EGREP "draft5" >/dev/null 2>&1; then
20577   ol_cv_pthread_version=5
20578 else
20579   ol_cv_pthread_version=4
20580 fi
20581 rm -f conftest*
20582
20583 fi
20584 rm -f conftest*
20585
20586 fi
20587 rm -f conftest*
20588
20589 fi
20590
20591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592
20593 fi
20594 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20595 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20596
20597
20598                 if test $ol_cv_pthread_version != 0 ; then
20599
20600 cat >>confdefs.h <<_ACEOF
20601 #define HAVE_PTHREADS $ol_cv_pthread_version
20602 _ACEOF
20603
20604                 else
20605                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20606 echo "$as_me: error: unknown pthread version" >&2;}
20607    { (exit 1); exit 1; }; }
20608                 fi
20609
20610                 # consider threads found
20611                 ol_with_threads=found
20612
20613
20614         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20615 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20616 if test "${ol_cv_header_linux_threads+set}" = set; then
20617   echo $ECHO_N "(cached) $ECHO_C" >&6
20618 else
20619   cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h.  */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h.  */
20625 #include <pthread.h>
20626 _ACEOF
20627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20628   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20629   ol_cv_header_linux_threads=yes
20630 else
20631   ol_cv_header_linux_threads=no
20632 fi
20633 rm -f conftest*
20634
20635
20636 fi
20637 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20638 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20639         if test $ol_cv_header_linux_threads = yes; then
20640
20641 cat >>confdefs.h <<\_ACEOF
20642 #define HAVE_LINUX_THREADS 1
20643 _ACEOF
20644
20645         fi
20646
20647
20648         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20649 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20650 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20651   echo $ECHO_N "(cached) $ECHO_C" >&6
20652 else
20653   cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659 #include <pthread.h>
20660 #ifdef _POSIX_THREAD_IS_GNU_PTH
20661         __gnu_pth__;
20662 #endif
20663
20664 _ACEOF
20665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20666   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20667   ol_cv_header_gnu_pth_pthread_h=yes
20668 else
20669   ol_cv_header_gnu_pth_pthread_h=no
20670 fi
20671 rm -f conftest*
20672
20673
20674 fi
20675 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20676 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20677
20678
20679                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20680
20681 for ac_header in sched.h
20682 do
20683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20685   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20688   echo $ECHO_N "(cached) $ECHO_C" >&6
20689 fi
20690 ac_res=`eval echo '${'$as_ac_Header'}'`
20691                { echo "$as_me:$LINENO: result: $ac_res" >&5
20692 echo "${ECHO_T}$ac_res" >&6; }
20693 else
20694   # Is the header compilable?
20695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20697 cat >conftest.$ac_ext <<_ACEOF
20698 /* confdefs.h.  */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h.  */
20703 $ac_includes_default
20704 #include <$ac_header>
20705 _ACEOF
20706 rm -f conftest.$ac_objext
20707 if { (ac_try="$ac_compile"
20708 case "(($ac_try" in
20709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710   *) ac_try_echo=$ac_try;;
20711 esac
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713   (eval "$ac_compile") 2>conftest.er1
20714   ac_status=$?
20715   grep -v '^ *+' conftest.er1 >conftest.err
20716   rm -f conftest.er1
20717   cat conftest.err >&5
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); } && {
20720          test -z "$ac_c_werror_flag" ||
20721          test ! -s conftest.err
20722        } && test -s conftest.$ac_objext; then
20723   ac_header_compiler=yes
20724 else
20725   echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20727
20728         ac_header_compiler=no
20729 fi
20730
20731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20733 echo "${ECHO_T}$ac_header_compiler" >&6; }
20734
20735 # Is the header present?
20736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744 #include <$ac_header>
20745 _ACEOF
20746 if { (ac_try="$ac_cpp conftest.$ac_ext"
20747 case "(($ac_try" in
20748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749   *) ac_try_echo=$ac_try;;
20750 esac
20751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20753   ac_status=$?
20754   grep -v '^ *+' conftest.er1 >conftest.err
20755   rm -f conftest.er1
20756   cat conftest.err >&5
20757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); } >/dev/null && {
20759          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20760          test ! -s conftest.err
20761        }; then
20762   ac_header_preproc=yes
20763 else
20764   echo "$as_me: failed program was:" >&5
20765 sed 's/^/| /' conftest.$ac_ext >&5
20766
20767   ac_header_preproc=no
20768 fi
20769
20770 rm -f conftest.err conftest.$ac_ext
20771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20772 echo "${ECHO_T}$ac_header_preproc" >&6; }
20773
20774 # So?  What about this header?
20775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20776   yes:no: )
20777     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20781     ac_header_preproc=yes
20782     ;;
20783   no:yes:* )
20784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20786     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20787 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20788     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20790     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20791 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20794     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20796     ( cat <<\_ASBOX
20797 ## --------------------------------------------- ##
20798 ## Report this to <http://www.openldap.org/its/> ##
20799 ## --------------------------------------------- ##
20800 _ASBOX
20801      ) | sed "s/^/$as_me: WARNING:     /" >&2
20802     ;;
20803 esac
20804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20807   echo $ECHO_N "(cached) $ECHO_C" >&6
20808 else
20809   eval "$as_ac_Header=\$ac_header_preproc"
20810 fi
20811 ac_res=`eval echo '${'$as_ac_Header'}'`
20812                { echo "$as_me:$LINENO: result: $ac_res" >&5
20813 echo "${ECHO_T}$ac_res" >&6; }
20814
20815 fi
20816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20817   cat >>confdefs.h <<_ACEOF
20818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20819 _ACEOF
20820
20821 fi
20822
20823 done
20824
20825                 fi
20826
20827
20828                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20829 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20830 if test "${ol_cv_pthread_create+set}" = set; then
20831   echo $ECHO_N "(cached) $ECHO_C" >&6
20832 else
20833
20834                         if test "$cross_compiling" = yes; then
20835   cat >conftest.$ac_ext <<_ACEOF
20836 /* confdefs.h.  */
20837 _ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h.  */
20841
20842 /* pthread test headers */
20843 #include <pthread.h>
20844 #if HAVE_PTHREADS < 7
20845 #include <errno.h>
20846 #endif
20847 #ifndef NULL
20848 #define NULL (void*)0
20849 #endif
20850
20851 static void *task(p)
20852         void *p;
20853 {
20854         return (void *) (p == NULL);
20855 }
20856
20857 int
20858 main ()
20859 {
20860
20861         /* pthread test function */
20862 #ifndef PTHREAD_CREATE_DETACHED
20863 #define PTHREAD_CREATE_DETACHED 1
20864 #endif
20865         pthread_t t;
20866         int status;
20867         int detach = PTHREAD_CREATE_DETACHED;
20868
20869 #if HAVE_PTHREADS > 4
20870         /* Final pthreads */
20871         pthread_attr_t attr;
20872
20873         status = pthread_attr_init(&attr);
20874         if( status ) return status;
20875
20876 #if HAVE_PTHREADS < 7
20877         status = pthread_attr_setdetachstate(&attr, &detach);
20878         if( status < 0 ) status = errno;
20879 #else
20880         status = pthread_attr_setdetachstate(&attr, detach);
20881 #endif
20882         if( status ) return status;
20883         status = pthread_create( &t, &attr, task, NULL );
20884 #if HAVE_PTHREADS < 7
20885         if( status < 0 ) status = errno;
20886 #endif
20887         if( status ) return status;
20888 #else
20889         /* Draft 4 pthreads */
20890         status = pthread_create( &t, pthread_attr_default, task, NULL );
20891         if( status ) return errno;
20892
20893         /* give thread a chance to complete */
20894         /* it should remain joinable and hence detachable */
20895         sleep( 1 );
20896
20897         status = pthread_detach( &t );
20898         if( status ) return errno;
20899 #endif
20900
20901 #ifdef HAVE_LINUX_THREADS
20902         pthread_kill_other_threads_np();
20903 #endif
20904
20905         return 0;
20906
20907   ;
20908   return 0;
20909 }
20910 _ACEOF
20911 rm -f conftest.$ac_objext conftest$ac_exeext
20912 if { (ac_try="$ac_link"
20913 case "(($ac_try" in
20914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915   *) ac_try_echo=$ac_try;;
20916 esac
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918   (eval "$ac_link") 2>conftest.er1
20919   ac_status=$?
20920   grep -v '^ *+' conftest.er1 >conftest.err
20921   rm -f conftest.er1
20922   cat conftest.err >&5
20923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); } && {
20925          test -z "$ac_c_werror_flag" ||
20926          test ! -s conftest.err
20927        } && test -s conftest$ac_exeext &&
20928        $as_test_x conftest$ac_exeext; then
20929   ol_cv_pthread_create=yes
20930 else
20931   echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20933
20934         ol_cv_pthread_create=no
20935 fi
20936
20937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20938       conftest$ac_exeext conftest.$ac_ext
20939 else
20940   cat >conftest.$ac_ext <<_ACEOF
20941 /* confdefs.h.  */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h.  */
20946
20947 /* pthread test headers */
20948 #include <pthread.h>
20949 #if HAVE_PTHREADS < 7
20950 #include <errno.h>
20951 #endif
20952 #ifndef NULL
20953 #define NULL (void*)0
20954 #endif
20955
20956 static void *task(p)
20957         void *p;
20958 {
20959         return (void *) (p == NULL);
20960 }
20961
20962
20963 int main(argc, argv)
20964         int argc;
20965         char **argv;
20966 {
20967
20968         /* pthread test function */
20969 #ifndef PTHREAD_CREATE_DETACHED
20970 #define PTHREAD_CREATE_DETACHED 1
20971 #endif
20972         pthread_t t;
20973         int status;
20974         int detach = PTHREAD_CREATE_DETACHED;
20975
20976 #if HAVE_PTHREADS > 4
20977         /* Final pthreads */
20978         pthread_attr_t attr;
20979
20980         status = pthread_attr_init(&attr);
20981         if( status ) return status;
20982
20983 #if HAVE_PTHREADS < 7
20984         status = pthread_attr_setdetachstate(&attr, &detach);
20985         if( status < 0 ) status = errno;
20986 #else
20987         status = pthread_attr_setdetachstate(&attr, detach);
20988 #endif
20989         if( status ) return status;
20990         status = pthread_create( &t, &attr, task, NULL );
20991 #if HAVE_PTHREADS < 7
20992         if( status < 0 ) status = errno;
20993 #endif
20994         if( status ) return status;
20995 #else
20996         /* Draft 4 pthreads */
20997         status = pthread_create( &t, pthread_attr_default, task, NULL );
20998         if( status ) return errno;
20999
21000         /* give thread a chance to complete */
21001         /* it should remain joinable and hence detachable */
21002         sleep( 1 );
21003
21004         status = pthread_detach( &t );
21005         if( status ) return errno;
21006 #endif
21007
21008 #ifdef HAVE_LINUX_THREADS
21009         pthread_kill_other_threads_np();
21010 #endif
21011
21012         return 0;
21013
21014 }
21015
21016 _ACEOF
21017 rm -f conftest$ac_exeext
21018 if { (ac_try="$ac_link"
21019 case "(($ac_try" in
21020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021   *) ac_try_echo=$ac_try;;
21022 esac
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024   (eval "$ac_link") 2>&5
21025   ac_status=$?
21026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21028   { (case "(($ac_try" in
21029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030   *) ac_try_echo=$ac_try;;
21031 esac
21032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21033   (eval "$ac_try") 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; }; then
21037   ol_cv_pthread_create=yes
21038 else
21039   echo "$as_me: program exited with status $ac_status" >&5
21040 echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21042
21043 ( exit $ac_status )
21044 ol_cv_pthread_create=no
21045 fi
21046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21047 fi
21048
21049
21050 fi
21051 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
21052 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
21053
21054                 if test $ol_cv_pthread_create != no ; then
21055                         ol_link_threads=posix
21056                         ol_link_pthreads=""
21057                 fi
21058
21059                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
21060 if test "$ol_link_threads" = no ; then
21061         # try -kthread
21062         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21063 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
21064 if test "${ol_cv_pthread_kthread+set}" = set; then
21065   echo $ECHO_N "(cached) $ECHO_C" >&6
21066 else
21067
21068                 # save the flags
21069                 ol_LIBS="$LIBS"
21070                 LIBS="-kthread $LIBS"
21071
21072                 if test "$cross_compiling" = yes; then
21073   cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h.  */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h.  */
21079
21080 /* pthread test headers */
21081 #include <pthread.h>
21082 #if HAVE_PTHREADS < 7
21083 #include <errno.h>
21084 #endif
21085 #ifndef NULL
21086 #define NULL (void*)0
21087 #endif
21088
21089 static void *task(p)
21090         void *p;
21091 {
21092         return (void *) (p == NULL);
21093 }
21094
21095 int
21096 main ()
21097 {
21098
21099         /* pthread test function */
21100 #ifndef PTHREAD_CREATE_DETACHED
21101 #define PTHREAD_CREATE_DETACHED 1
21102 #endif
21103         pthread_t t;
21104         int status;
21105         int detach = PTHREAD_CREATE_DETACHED;
21106
21107 #if HAVE_PTHREADS > 4
21108         /* Final pthreads */
21109         pthread_attr_t attr;
21110
21111         status = pthread_attr_init(&attr);
21112         if( status ) return status;
21113
21114 #if HAVE_PTHREADS < 7
21115         status = pthread_attr_setdetachstate(&attr, &detach);
21116         if( status < 0 ) status = errno;
21117 #else
21118         status = pthread_attr_setdetachstate(&attr, detach);
21119 #endif
21120         if( status ) return status;
21121         status = pthread_create( &t, &attr, task, NULL );
21122 #if HAVE_PTHREADS < 7
21123         if( status < 0 ) status = errno;
21124 #endif
21125         if( status ) return status;
21126 #else
21127         /* Draft 4 pthreads */
21128         status = pthread_create( &t, pthread_attr_default, task, NULL );
21129         if( status ) return errno;
21130
21131         /* give thread a chance to complete */
21132         /* it should remain joinable and hence detachable */
21133         sleep( 1 );
21134
21135         status = pthread_detach( &t );
21136         if( status ) return errno;
21137 #endif
21138
21139 #ifdef HAVE_LINUX_THREADS
21140         pthread_kill_other_threads_np();
21141 #endif
21142
21143         return 0;
21144
21145   ;
21146   return 0;
21147 }
21148 _ACEOF
21149 rm -f conftest.$ac_objext conftest$ac_exeext
21150 if { (ac_try="$ac_link"
21151 case "(($ac_try" in
21152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153   *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156   (eval "$ac_link") 2>conftest.er1
21157   ac_status=$?
21158   grep -v '^ *+' conftest.er1 >conftest.err
21159   rm -f conftest.er1
21160   cat conftest.err >&5
21161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); } && {
21163          test -z "$ac_c_werror_flag" ||
21164          test ! -s conftest.err
21165        } && test -s conftest$ac_exeext &&
21166        $as_test_x conftest$ac_exeext; then
21167   ol_cv_pthread_kthread=yes
21168 else
21169   echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172         ol_cv_pthread_kthread=no
21173 fi
21174
21175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21176       conftest$ac_exeext conftest.$ac_ext
21177 else
21178   cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h.  */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h.  */
21184
21185 /* pthread test headers */
21186 #include <pthread.h>
21187 #if HAVE_PTHREADS < 7
21188 #include <errno.h>
21189 #endif
21190 #ifndef NULL
21191 #define NULL (void*)0
21192 #endif
21193
21194 static void *task(p)
21195         void *p;
21196 {
21197         return (void *) (p == NULL);
21198 }
21199
21200
21201 int main(argc, argv)
21202         int argc;
21203         char **argv;
21204 {
21205
21206         /* pthread test function */
21207 #ifndef PTHREAD_CREATE_DETACHED
21208 #define PTHREAD_CREATE_DETACHED 1
21209 #endif
21210         pthread_t t;
21211         int status;
21212         int detach = PTHREAD_CREATE_DETACHED;
21213
21214 #if HAVE_PTHREADS > 4
21215         /* Final pthreads */
21216         pthread_attr_t attr;
21217
21218         status = pthread_attr_init(&attr);
21219         if( status ) return status;
21220
21221 #if HAVE_PTHREADS < 7
21222         status = pthread_attr_setdetachstate(&attr, &detach);
21223         if( status < 0 ) status = errno;
21224 #else
21225         status = pthread_attr_setdetachstate(&attr, detach);
21226 #endif
21227         if( status ) return status;
21228         status = pthread_create( &t, &attr, task, NULL );
21229 #if HAVE_PTHREADS < 7
21230         if( status < 0 ) status = errno;
21231 #endif
21232         if( status ) return status;
21233 #else
21234         /* Draft 4 pthreads */
21235         status = pthread_create( &t, pthread_attr_default, task, NULL );
21236         if( status ) return errno;
21237
21238         /* give thread a chance to complete */
21239         /* it should remain joinable and hence detachable */
21240         sleep( 1 );
21241
21242         status = pthread_detach( &t );
21243         if( status ) return errno;
21244 #endif
21245
21246 #ifdef HAVE_LINUX_THREADS
21247         pthread_kill_other_threads_np();
21248 #endif
21249
21250         return 0;
21251
21252 }
21253
21254 _ACEOF
21255 rm -f conftest$ac_exeext
21256 if { (ac_try="$ac_link"
21257 case "(($ac_try" in
21258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259   *) ac_try_echo=$ac_try;;
21260 esac
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262   (eval "$ac_link") 2>&5
21263   ac_status=$?
21264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21266   { (case "(($ac_try" in
21267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268   *) ac_try_echo=$ac_try;;
21269 esac
21270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271   (eval "$ac_try") 2>&5
21272   ac_status=$?
21273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274   (exit $ac_status); }; }; then
21275   ol_cv_pthread_kthread=yes
21276 else
21277   echo "$as_me: program exited with status $ac_status" >&5
21278 echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21280
21281 ( exit $ac_status )
21282 ol_cv_pthread_kthread=no
21283 fi
21284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21285 fi
21286
21287
21288
21289                 # restore the LIBS
21290                 LIBS="$ol_LIBS"
21291
21292 fi
21293 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21294 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21295
21296         if test $ol_cv_pthread_kthread = yes ; then
21297                 ol_link_pthreads="-kthread"
21298                 ol_link_threads=posix
21299         fi
21300 fi
21301
21302                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21303 if test "$ol_link_threads" = no ; then
21304         # try -pthread
21305         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21306 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21307 if test "${ol_cv_pthread_pthread+set}" = set; then
21308   echo $ECHO_N "(cached) $ECHO_C" >&6
21309 else
21310
21311                 # save the flags
21312                 ol_LIBS="$LIBS"
21313                 LIBS="-pthread $LIBS"
21314
21315                 if test "$cross_compiling" = yes; then
21316   cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322
21323 /* pthread test headers */
21324 #include <pthread.h>
21325 #if HAVE_PTHREADS < 7
21326 #include <errno.h>
21327 #endif
21328 #ifndef NULL
21329 #define NULL (void*)0
21330 #endif
21331
21332 static void *task(p)
21333         void *p;
21334 {
21335         return (void *) (p == NULL);
21336 }
21337
21338 int
21339 main ()
21340 {
21341
21342         /* pthread test function */
21343 #ifndef PTHREAD_CREATE_DETACHED
21344 #define PTHREAD_CREATE_DETACHED 1
21345 #endif
21346         pthread_t t;
21347         int status;
21348         int detach = PTHREAD_CREATE_DETACHED;
21349
21350 #if HAVE_PTHREADS > 4
21351         /* Final pthreads */
21352         pthread_attr_t attr;
21353
21354         status = pthread_attr_init(&attr);
21355         if( status ) return status;
21356
21357 #if HAVE_PTHREADS < 7
21358         status = pthread_attr_setdetachstate(&attr, &detach);
21359         if( status < 0 ) status = errno;
21360 #else
21361         status = pthread_attr_setdetachstate(&attr, detach);
21362 #endif
21363         if( status ) return status;
21364         status = pthread_create( &t, &attr, task, NULL );
21365 #if HAVE_PTHREADS < 7
21366         if( status < 0 ) status = errno;
21367 #endif
21368         if( status ) return status;
21369 #else
21370         /* Draft 4 pthreads */
21371         status = pthread_create( &t, pthread_attr_default, task, NULL );
21372         if( status ) return errno;
21373
21374         /* give thread a chance to complete */
21375         /* it should remain joinable and hence detachable */
21376         sleep( 1 );
21377
21378         status = pthread_detach( &t );
21379         if( status ) return errno;
21380 #endif
21381
21382 #ifdef HAVE_LINUX_THREADS
21383         pthread_kill_other_threads_np();
21384 #endif
21385
21386         return 0;
21387
21388   ;
21389   return 0;
21390 }
21391 _ACEOF
21392 rm -f conftest.$ac_objext conftest$ac_exeext
21393 if { (ac_try="$ac_link"
21394 case "(($ac_try" in
21395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396   *) ac_try_echo=$ac_try;;
21397 esac
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399   (eval "$ac_link") 2>conftest.er1
21400   ac_status=$?
21401   grep -v '^ *+' conftest.er1 >conftest.err
21402   rm -f conftest.er1
21403   cat conftest.err >&5
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); } && {
21406          test -z "$ac_c_werror_flag" ||
21407          test ! -s conftest.err
21408        } && test -s conftest$ac_exeext &&
21409        $as_test_x conftest$ac_exeext; then
21410   ol_cv_pthread_pthread=yes
21411 else
21412   echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.$ac_ext >&5
21414
21415         ol_cv_pthread_pthread=no
21416 fi
21417
21418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21419       conftest$ac_exeext conftest.$ac_ext
21420 else
21421   cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h.  */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h.  */
21427
21428 /* pthread test headers */
21429 #include <pthread.h>
21430 #if HAVE_PTHREADS < 7
21431 #include <errno.h>
21432 #endif
21433 #ifndef NULL
21434 #define NULL (void*)0
21435 #endif
21436
21437 static void *task(p)
21438         void *p;
21439 {
21440         return (void *) (p == NULL);
21441 }
21442
21443
21444 int main(argc, argv)
21445         int argc;
21446         char **argv;
21447 {
21448
21449         /* pthread test function */
21450 #ifndef PTHREAD_CREATE_DETACHED
21451 #define PTHREAD_CREATE_DETACHED 1
21452 #endif
21453         pthread_t t;
21454         int status;
21455         int detach = PTHREAD_CREATE_DETACHED;
21456
21457 #if HAVE_PTHREADS > 4
21458         /* Final pthreads */
21459         pthread_attr_t attr;
21460
21461         status = pthread_attr_init(&attr);
21462         if( status ) return status;
21463
21464 #if HAVE_PTHREADS < 7
21465         status = pthread_attr_setdetachstate(&attr, &detach);
21466         if( status < 0 ) status = errno;
21467 #else
21468         status = pthread_attr_setdetachstate(&attr, detach);
21469 #endif
21470         if( status ) return status;
21471         status = pthread_create( &t, &attr, task, NULL );
21472 #if HAVE_PTHREADS < 7
21473         if( status < 0 ) status = errno;
21474 #endif
21475         if( status ) return status;
21476 #else
21477         /* Draft 4 pthreads */
21478         status = pthread_create( &t, pthread_attr_default, task, NULL );
21479         if( status ) return errno;
21480
21481         /* give thread a chance to complete */
21482         /* it should remain joinable and hence detachable */
21483         sleep( 1 );
21484
21485         status = pthread_detach( &t );
21486         if( status ) return errno;
21487 #endif
21488
21489 #ifdef HAVE_LINUX_THREADS
21490         pthread_kill_other_threads_np();
21491 #endif
21492
21493         return 0;
21494
21495 }
21496
21497 _ACEOF
21498 rm -f conftest$ac_exeext
21499 if { (ac_try="$ac_link"
21500 case "(($ac_try" in
21501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502   *) ac_try_echo=$ac_try;;
21503 esac
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505   (eval "$ac_link") 2>&5
21506   ac_status=$?
21507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21509   { (case "(($ac_try" in
21510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511   *) ac_try_echo=$ac_try;;
21512 esac
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514   (eval "$ac_try") 2>&5
21515   ac_status=$?
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); }; }; then
21518   ol_cv_pthread_pthread=yes
21519 else
21520   echo "$as_me: program exited with status $ac_status" >&5
21521 echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21523
21524 ( exit $ac_status )
21525 ol_cv_pthread_pthread=no
21526 fi
21527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21528 fi
21529
21530
21531
21532                 # restore the LIBS
21533                 LIBS="$ol_LIBS"
21534
21535 fi
21536 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21537 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21538
21539         if test $ol_cv_pthread_pthread = yes ; then
21540                 ol_link_pthreads="-pthread"
21541                 ol_link_threads=posix
21542         fi
21543 fi
21544
21545                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21546 if test "$ol_link_threads" = no ; then
21547         # try -pthreads
21548         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21549 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21550 if test "${ol_cv_pthread_pthreads+set}" = set; then
21551   echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553
21554                 # save the flags
21555                 ol_LIBS="$LIBS"
21556                 LIBS="-pthreads $LIBS"
21557
21558                 if test "$cross_compiling" = yes; then
21559   cat >conftest.$ac_ext <<_ACEOF
21560 /* confdefs.h.  */
21561 _ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h.  */
21565
21566 /* pthread test headers */
21567 #include <pthread.h>
21568 #if HAVE_PTHREADS < 7
21569 #include <errno.h>
21570 #endif
21571 #ifndef NULL
21572 #define NULL (void*)0
21573 #endif
21574
21575 static void *task(p)
21576         void *p;
21577 {
21578         return (void *) (p == NULL);
21579 }
21580
21581 int
21582 main ()
21583 {
21584
21585         /* pthread test function */
21586 #ifndef PTHREAD_CREATE_DETACHED
21587 #define PTHREAD_CREATE_DETACHED 1
21588 #endif
21589         pthread_t t;
21590         int status;
21591         int detach = PTHREAD_CREATE_DETACHED;
21592
21593 #if HAVE_PTHREADS > 4
21594         /* Final pthreads */
21595         pthread_attr_t attr;
21596
21597         status = pthread_attr_init(&attr);
21598         if( status ) return status;
21599
21600 #if HAVE_PTHREADS < 7
21601         status = pthread_attr_setdetachstate(&attr, &detach);
21602         if( status < 0 ) status = errno;
21603 #else
21604         status = pthread_attr_setdetachstate(&attr, detach);
21605 #endif
21606         if( status ) return status;
21607         status = pthread_create( &t, &attr, task, NULL );
21608 #if HAVE_PTHREADS < 7
21609         if( status < 0 ) status = errno;
21610 #endif
21611         if( status ) return status;
21612 #else
21613         /* Draft 4 pthreads */
21614         status = pthread_create( &t, pthread_attr_default, task, NULL );
21615         if( status ) return errno;
21616
21617         /* give thread a chance to complete */
21618         /* it should remain joinable and hence detachable */
21619         sleep( 1 );
21620
21621         status = pthread_detach( &t );
21622         if( status ) return errno;
21623 #endif
21624
21625 #ifdef HAVE_LINUX_THREADS
21626         pthread_kill_other_threads_np();
21627 #endif
21628
21629         return 0;
21630
21631   ;
21632   return 0;
21633 }
21634 _ACEOF
21635 rm -f conftest.$ac_objext conftest$ac_exeext
21636 if { (ac_try="$ac_link"
21637 case "(($ac_try" in
21638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639   *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642   (eval "$ac_link") 2>conftest.er1
21643   ac_status=$?
21644   grep -v '^ *+' conftest.er1 >conftest.err
21645   rm -f conftest.er1
21646   cat conftest.err >&5
21647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); } && {
21649          test -z "$ac_c_werror_flag" ||
21650          test ! -s conftest.err
21651        } && test -s conftest$ac_exeext &&
21652        $as_test_x conftest$ac_exeext; then
21653   ol_cv_pthread_pthreads=yes
21654 else
21655   echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21657
21658         ol_cv_pthread_pthreads=no
21659 fi
21660
21661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21662       conftest$ac_exeext conftest.$ac_ext
21663 else
21664   cat >conftest.$ac_ext <<_ACEOF
21665 /* confdefs.h.  */
21666 _ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h.  */
21670
21671 /* pthread test headers */
21672 #include <pthread.h>
21673 #if HAVE_PTHREADS < 7
21674 #include <errno.h>
21675 #endif
21676 #ifndef NULL
21677 #define NULL (void*)0
21678 #endif
21679
21680 static void *task(p)
21681         void *p;
21682 {
21683         return (void *) (p == NULL);
21684 }
21685
21686
21687 int main(argc, argv)
21688         int argc;
21689         char **argv;
21690 {
21691
21692         /* pthread test function */
21693 #ifndef PTHREAD_CREATE_DETACHED
21694 #define PTHREAD_CREATE_DETACHED 1
21695 #endif
21696         pthread_t t;
21697         int status;
21698         int detach = PTHREAD_CREATE_DETACHED;
21699
21700 #if HAVE_PTHREADS > 4
21701         /* Final pthreads */
21702         pthread_attr_t attr;
21703
21704         status = pthread_attr_init(&attr);
21705         if( status ) return status;
21706
21707 #if HAVE_PTHREADS < 7
21708         status = pthread_attr_setdetachstate(&attr, &detach);
21709         if( status < 0 ) status = errno;
21710 #else
21711         status = pthread_attr_setdetachstate(&attr, detach);
21712 #endif
21713         if( status ) return status;
21714         status = pthread_create( &t, &attr, task, NULL );
21715 #if HAVE_PTHREADS < 7
21716         if( status < 0 ) status = errno;
21717 #endif
21718         if( status ) return status;
21719 #else
21720         /* Draft 4 pthreads */
21721         status = pthread_create( &t, pthread_attr_default, task, NULL );
21722         if( status ) return errno;
21723
21724         /* give thread a chance to complete */
21725         /* it should remain joinable and hence detachable */
21726         sleep( 1 );
21727
21728         status = pthread_detach( &t );
21729         if( status ) return errno;
21730 #endif
21731
21732 #ifdef HAVE_LINUX_THREADS
21733         pthread_kill_other_threads_np();
21734 #endif
21735
21736         return 0;
21737
21738 }
21739
21740 _ACEOF
21741 rm -f conftest$ac_exeext
21742 if { (ac_try="$ac_link"
21743 case "(($ac_try" in
21744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745   *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748   (eval "$ac_link") 2>&5
21749   ac_status=$?
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21752   { (case "(($ac_try" in
21753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754   *) ac_try_echo=$ac_try;;
21755 esac
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757   (eval "$ac_try") 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; }; then
21761   ol_cv_pthread_pthreads=yes
21762 else
21763   echo "$as_me: program exited with status $ac_status" >&5
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21766
21767 ( exit $ac_status )
21768 ol_cv_pthread_pthreads=no
21769 fi
21770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21771 fi
21772
21773
21774
21775                 # restore the LIBS
21776                 LIBS="$ol_LIBS"
21777
21778 fi
21779 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21780 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21781
21782         if test $ol_cv_pthread_pthreads = yes ; then
21783                 ol_link_pthreads="-pthreads"
21784                 ol_link_threads=posix
21785         fi
21786 fi
21787
21788                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21789 if test "$ol_link_threads" = no ; then
21790         # try -mthreads
21791         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21792 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21793 if test "${ol_cv_pthread_mthreads+set}" = set; then
21794   echo $ECHO_N "(cached) $ECHO_C" >&6
21795 else
21796
21797                 # save the flags
21798                 ol_LIBS="$LIBS"
21799                 LIBS="-mthreads $LIBS"
21800
21801                 if test "$cross_compiling" = yes; then
21802   cat >conftest.$ac_ext <<_ACEOF
21803 /* confdefs.h.  */
21804 _ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h.  */
21808
21809 /* pthread test headers */
21810 #include <pthread.h>
21811 #if HAVE_PTHREADS < 7
21812 #include <errno.h>
21813 #endif
21814 #ifndef NULL
21815 #define NULL (void*)0
21816 #endif
21817
21818 static void *task(p)
21819         void *p;
21820 {
21821         return (void *) (p == NULL);
21822 }
21823
21824 int
21825 main ()
21826 {
21827
21828         /* pthread test function */
21829 #ifndef PTHREAD_CREATE_DETACHED
21830 #define PTHREAD_CREATE_DETACHED 1
21831 #endif
21832         pthread_t t;
21833         int status;
21834         int detach = PTHREAD_CREATE_DETACHED;
21835
21836 #if HAVE_PTHREADS > 4
21837         /* Final pthreads */
21838         pthread_attr_t attr;
21839
21840         status = pthread_attr_init(&attr);
21841         if( status ) return status;
21842
21843 #if HAVE_PTHREADS < 7
21844         status = pthread_attr_setdetachstate(&attr, &detach);
21845         if( status < 0 ) status = errno;
21846 #else
21847         status = pthread_attr_setdetachstate(&attr, detach);
21848 #endif
21849         if( status ) return status;
21850         status = pthread_create( &t, &attr, task, NULL );
21851 #if HAVE_PTHREADS < 7
21852         if( status < 0 ) status = errno;
21853 #endif
21854         if( status ) return status;
21855 #else
21856         /* Draft 4 pthreads */
21857         status = pthread_create( &t, pthread_attr_default, task, NULL );
21858         if( status ) return errno;
21859
21860         /* give thread a chance to complete */
21861         /* it should remain joinable and hence detachable */
21862         sleep( 1 );
21863
21864         status = pthread_detach( &t );
21865         if( status ) return errno;
21866 #endif
21867
21868 #ifdef HAVE_LINUX_THREADS
21869         pthread_kill_other_threads_np();
21870 #endif
21871
21872         return 0;
21873
21874   ;
21875   return 0;
21876 }
21877 _ACEOF
21878 rm -f conftest.$ac_objext conftest$ac_exeext
21879 if { (ac_try="$ac_link"
21880 case "(($ac_try" in
21881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882   *) ac_try_echo=$ac_try;;
21883 esac
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885   (eval "$ac_link") 2>conftest.er1
21886   ac_status=$?
21887   grep -v '^ *+' conftest.er1 >conftest.err
21888   rm -f conftest.er1
21889   cat conftest.err >&5
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); } && {
21892          test -z "$ac_c_werror_flag" ||
21893          test ! -s conftest.err
21894        } && test -s conftest$ac_exeext &&
21895        $as_test_x conftest$ac_exeext; then
21896   ol_cv_pthread_mthreads=yes
21897 else
21898   echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901         ol_cv_pthread_mthreads=no
21902 fi
21903
21904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21905       conftest$ac_exeext conftest.$ac_ext
21906 else
21907   cat >conftest.$ac_ext <<_ACEOF
21908 /* confdefs.h.  */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h.  */
21913
21914 /* pthread test headers */
21915 #include <pthread.h>
21916 #if HAVE_PTHREADS < 7
21917 #include <errno.h>
21918 #endif
21919 #ifndef NULL
21920 #define NULL (void*)0
21921 #endif
21922
21923 static void *task(p)
21924         void *p;
21925 {
21926         return (void *) (p == NULL);
21927 }
21928
21929
21930 int main(argc, argv)
21931         int argc;
21932         char **argv;
21933 {
21934
21935         /* pthread test function */
21936 #ifndef PTHREAD_CREATE_DETACHED
21937 #define PTHREAD_CREATE_DETACHED 1
21938 #endif
21939         pthread_t t;
21940         int status;
21941         int detach = PTHREAD_CREATE_DETACHED;
21942
21943 #if HAVE_PTHREADS > 4
21944         /* Final pthreads */
21945         pthread_attr_t attr;
21946
21947         status = pthread_attr_init(&attr);
21948         if( status ) return status;
21949
21950 #if HAVE_PTHREADS < 7
21951         status = pthread_attr_setdetachstate(&attr, &detach);
21952         if( status < 0 ) status = errno;
21953 #else
21954         status = pthread_attr_setdetachstate(&attr, detach);
21955 #endif
21956         if( status ) return status;
21957         status = pthread_create( &t, &attr, task, NULL );
21958 #if HAVE_PTHREADS < 7
21959         if( status < 0 ) status = errno;
21960 #endif
21961         if( status ) return status;
21962 #else
21963         /* Draft 4 pthreads */
21964         status = pthread_create( &t, pthread_attr_default, task, NULL );
21965         if( status ) return errno;
21966
21967         /* give thread a chance to complete */
21968         /* it should remain joinable and hence detachable */
21969         sleep( 1 );
21970
21971         status = pthread_detach( &t );
21972         if( status ) return errno;
21973 #endif
21974
21975 #ifdef HAVE_LINUX_THREADS
21976         pthread_kill_other_threads_np();
21977 #endif
21978
21979         return 0;
21980
21981 }
21982
21983 _ACEOF
21984 rm -f conftest$ac_exeext
21985 if { (ac_try="$ac_link"
21986 case "(($ac_try" in
21987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988   *) ac_try_echo=$ac_try;;
21989 esac
21990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991   (eval "$ac_link") 2>&5
21992   ac_status=$?
21993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21995   { (case "(($ac_try" in
21996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997   *) ac_try_echo=$ac_try;;
21998 esac
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000   (eval "$ac_try") 2>&5
22001   ac_status=$?
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); }; }; then
22004   ol_cv_pthread_mthreads=yes
22005 else
22006   echo "$as_me: program exited with status $ac_status" >&5
22007 echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22009
22010 ( exit $ac_status )
22011 ol_cv_pthread_mthreads=no
22012 fi
22013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22014 fi
22015
22016
22017
22018                 # restore the LIBS
22019                 LIBS="$ol_LIBS"
22020
22021 fi
22022 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
22023 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
22024
22025         if test $ol_cv_pthread_mthreads = yes ; then
22026                 ol_link_pthreads="-mthreads"
22027                 ol_link_threads=posix
22028         fi
22029 fi
22030
22031                 # Pthread try link: -thread (ol_cv_pthread_thread)
22032 if test "$ol_link_threads" = no ; then
22033         # try -thread
22034         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
22035 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
22036 if test "${ol_cv_pthread_thread+set}" = set; then
22037   echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22039
22040                 # save the flags
22041                 ol_LIBS="$LIBS"
22042                 LIBS="-thread $LIBS"
22043
22044                 if test "$cross_compiling" = yes; then
22045   cat >conftest.$ac_ext <<_ACEOF
22046 /* confdefs.h.  */
22047 _ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h.  */
22051
22052 /* pthread test headers */
22053 #include <pthread.h>
22054 #if HAVE_PTHREADS < 7
22055 #include <errno.h>
22056 #endif
22057 #ifndef NULL
22058 #define NULL (void*)0
22059 #endif
22060
22061 static void *task(p)
22062         void *p;
22063 {
22064         return (void *) (p == NULL);
22065 }
22066
22067 int
22068 main ()
22069 {
22070
22071         /* pthread test function */
22072 #ifndef PTHREAD_CREATE_DETACHED
22073 #define PTHREAD_CREATE_DETACHED 1
22074 #endif
22075         pthread_t t;
22076         int status;
22077         int detach = PTHREAD_CREATE_DETACHED;
22078
22079 #if HAVE_PTHREADS > 4
22080         /* Final pthreads */
22081         pthread_attr_t attr;
22082
22083         status = pthread_attr_init(&attr);
22084         if( status ) return status;
22085
22086 #if HAVE_PTHREADS < 7
22087         status = pthread_attr_setdetachstate(&attr, &detach);
22088         if( status < 0 ) status = errno;
22089 #else
22090         status = pthread_attr_setdetachstate(&attr, detach);
22091 #endif
22092         if( status ) return status;
22093         status = pthread_create( &t, &attr, task, NULL );
22094 #if HAVE_PTHREADS < 7
22095         if( status < 0 ) status = errno;
22096 #endif
22097         if( status ) return status;
22098 #else
22099         /* Draft 4 pthreads */
22100         status = pthread_create( &t, pthread_attr_default, task, NULL );
22101         if( status ) return errno;
22102
22103         /* give thread a chance to complete */
22104         /* it should remain joinable and hence detachable */
22105         sleep( 1 );
22106
22107         status = pthread_detach( &t );
22108         if( status ) return errno;
22109 #endif
22110
22111 #ifdef HAVE_LINUX_THREADS
22112         pthread_kill_other_threads_np();
22113 #endif
22114
22115         return 0;
22116
22117   ;
22118   return 0;
22119 }
22120 _ACEOF
22121 rm -f conftest.$ac_objext conftest$ac_exeext
22122 if { (ac_try="$ac_link"
22123 case "(($ac_try" in
22124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125   *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128   (eval "$ac_link") 2>conftest.er1
22129   ac_status=$?
22130   grep -v '^ *+' conftest.er1 >conftest.err
22131   rm -f conftest.er1
22132   cat conftest.err >&5
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); } && {
22135          test -z "$ac_c_werror_flag" ||
22136          test ! -s conftest.err
22137        } && test -s conftest$ac_exeext &&
22138        $as_test_x conftest$ac_exeext; then
22139   ol_cv_pthread_thread=yes
22140 else
22141   echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22143
22144         ol_cv_pthread_thread=no
22145 fi
22146
22147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22148       conftest$ac_exeext conftest.$ac_ext
22149 else
22150   cat >conftest.$ac_ext <<_ACEOF
22151 /* confdefs.h.  */
22152 _ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h.  */
22156
22157 /* pthread test headers */
22158 #include <pthread.h>
22159 #if HAVE_PTHREADS < 7
22160 #include <errno.h>
22161 #endif
22162 #ifndef NULL
22163 #define NULL (void*)0
22164 #endif
22165
22166 static void *task(p)
22167         void *p;
22168 {
22169         return (void *) (p == NULL);
22170 }
22171
22172
22173 int main(argc, argv)
22174         int argc;
22175         char **argv;
22176 {
22177
22178         /* pthread test function */
22179 #ifndef PTHREAD_CREATE_DETACHED
22180 #define PTHREAD_CREATE_DETACHED 1
22181 #endif
22182         pthread_t t;
22183         int status;
22184         int detach = PTHREAD_CREATE_DETACHED;
22185
22186 #if HAVE_PTHREADS > 4
22187         /* Final pthreads */
22188         pthread_attr_t attr;
22189
22190         status = pthread_attr_init(&attr);
22191         if( status ) return status;
22192
22193 #if HAVE_PTHREADS < 7
22194         status = pthread_attr_setdetachstate(&attr, &detach);
22195         if( status < 0 ) status = errno;
22196 #else
22197         status = pthread_attr_setdetachstate(&attr, detach);
22198 #endif
22199         if( status ) return status;
22200         status = pthread_create( &t, &attr, task, NULL );
22201 #if HAVE_PTHREADS < 7
22202         if( status < 0 ) status = errno;
22203 #endif
22204         if( status ) return status;
22205 #else
22206         /* Draft 4 pthreads */
22207         status = pthread_create( &t, pthread_attr_default, task, NULL );
22208         if( status ) return errno;
22209
22210         /* give thread a chance to complete */
22211         /* it should remain joinable and hence detachable */
22212         sleep( 1 );
22213
22214         status = pthread_detach( &t );
22215         if( status ) return errno;
22216 #endif
22217
22218 #ifdef HAVE_LINUX_THREADS
22219         pthread_kill_other_threads_np();
22220 #endif
22221
22222         return 0;
22223
22224 }
22225
22226 _ACEOF
22227 rm -f conftest$ac_exeext
22228 if { (ac_try="$ac_link"
22229 case "(($ac_try" in
22230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231   *) ac_try_echo=$ac_try;;
22232 esac
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234   (eval "$ac_link") 2>&5
22235   ac_status=$?
22236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22238   { (case "(($ac_try" in
22239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240   *) ac_try_echo=$ac_try;;
22241 esac
22242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22243   (eval "$ac_try") 2>&5
22244   ac_status=$?
22245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246   (exit $ac_status); }; }; then
22247   ol_cv_pthread_thread=yes
22248 else
22249   echo "$as_me: program exited with status $ac_status" >&5
22250 echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22252
22253 ( exit $ac_status )
22254 ol_cv_pthread_thread=no
22255 fi
22256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22257 fi
22258
22259
22260
22261                 # restore the LIBS
22262                 LIBS="$ol_LIBS"
22263
22264 fi
22265 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22266 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22267
22268         if test $ol_cv_pthread_thread = yes ; then
22269                 ol_link_pthreads="-thread"
22270                 ol_link_threads=posix
22271         fi
22272 fi
22273
22274
22275                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22276 if test "$ol_link_threads" = no ; then
22277         # try -lpthread -lmach -lexc -lc_r
22278         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22279 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22280 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22281   echo $ECHO_N "(cached) $ECHO_C" >&6
22282 else
22283
22284                 # save the flags
22285                 ol_LIBS="$LIBS"
22286                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22287
22288                 if test "$cross_compiling" = yes; then
22289   cat >conftest.$ac_ext <<_ACEOF
22290 /* confdefs.h.  */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h.  */
22295
22296 /* pthread test headers */
22297 #include <pthread.h>
22298 #if HAVE_PTHREADS < 7
22299 #include <errno.h>
22300 #endif
22301 #ifndef NULL
22302 #define NULL (void*)0
22303 #endif
22304
22305 static void *task(p)
22306         void *p;
22307 {
22308         return (void *) (p == NULL);
22309 }
22310
22311 int
22312 main ()
22313 {
22314
22315         /* pthread test function */
22316 #ifndef PTHREAD_CREATE_DETACHED
22317 #define PTHREAD_CREATE_DETACHED 1
22318 #endif
22319         pthread_t t;
22320         int status;
22321         int detach = PTHREAD_CREATE_DETACHED;
22322
22323 #if HAVE_PTHREADS > 4
22324         /* Final pthreads */
22325         pthread_attr_t attr;
22326
22327         status = pthread_attr_init(&attr);
22328         if( status ) return status;
22329
22330 #if HAVE_PTHREADS < 7
22331         status = pthread_attr_setdetachstate(&attr, &detach);
22332         if( status < 0 ) status = errno;
22333 #else
22334         status = pthread_attr_setdetachstate(&attr, detach);
22335 #endif
22336         if( status ) return status;
22337         status = pthread_create( &t, &attr, task, NULL );
22338 #if HAVE_PTHREADS < 7
22339         if( status < 0 ) status = errno;
22340 #endif
22341         if( status ) return status;
22342 #else
22343         /* Draft 4 pthreads */
22344         status = pthread_create( &t, pthread_attr_default, task, NULL );
22345         if( status ) return errno;
22346
22347         /* give thread a chance to complete */
22348         /* it should remain joinable and hence detachable */
22349         sleep( 1 );
22350
22351         status = pthread_detach( &t );
22352         if( status ) return errno;
22353 #endif
22354
22355 #ifdef HAVE_LINUX_THREADS
22356         pthread_kill_other_threads_np();
22357 #endif
22358
22359         return 0;
22360
22361   ;
22362   return 0;
22363 }
22364 _ACEOF
22365 rm -f conftest.$ac_objext conftest$ac_exeext
22366 if { (ac_try="$ac_link"
22367 case "(($ac_try" in
22368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369   *) ac_try_echo=$ac_try;;
22370 esac
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372   (eval "$ac_link") 2>conftest.er1
22373   ac_status=$?
22374   grep -v '^ *+' conftest.er1 >conftest.err
22375   rm -f conftest.er1
22376   cat conftest.err >&5
22377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378   (exit $ac_status); } && {
22379          test -z "$ac_c_werror_flag" ||
22380          test ! -s conftest.err
22381        } && test -s conftest$ac_exeext &&
22382        $as_test_x conftest$ac_exeext; then
22383   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22384 else
22385   echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22387
22388         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22389 fi
22390
22391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22392       conftest$ac_exeext conftest.$ac_ext
22393 else
22394   cat >conftest.$ac_ext <<_ACEOF
22395 /* confdefs.h.  */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h.  */
22400
22401 /* pthread test headers */
22402 #include <pthread.h>
22403 #if HAVE_PTHREADS < 7
22404 #include <errno.h>
22405 #endif
22406 #ifndef NULL
22407 #define NULL (void*)0
22408 #endif
22409
22410 static void *task(p)
22411         void *p;
22412 {
22413         return (void *) (p == NULL);
22414 }
22415
22416
22417 int main(argc, argv)
22418         int argc;
22419         char **argv;
22420 {
22421
22422         /* pthread test function */
22423 #ifndef PTHREAD_CREATE_DETACHED
22424 #define PTHREAD_CREATE_DETACHED 1
22425 #endif
22426         pthread_t t;
22427         int status;
22428         int detach = PTHREAD_CREATE_DETACHED;
22429
22430 #if HAVE_PTHREADS > 4
22431         /* Final pthreads */
22432         pthread_attr_t attr;
22433
22434         status = pthread_attr_init(&attr);
22435         if( status ) return status;
22436
22437 #if HAVE_PTHREADS < 7
22438         status = pthread_attr_setdetachstate(&attr, &detach);
22439         if( status < 0 ) status = errno;
22440 #else
22441         status = pthread_attr_setdetachstate(&attr, detach);
22442 #endif
22443         if( status ) return status;
22444         status = pthread_create( &t, &attr, task, NULL );
22445 #if HAVE_PTHREADS < 7
22446         if( status < 0 ) status = errno;
22447 #endif
22448         if( status ) return status;
22449 #else
22450         /* Draft 4 pthreads */
22451         status = pthread_create( &t, pthread_attr_default, task, NULL );
22452         if( status ) return errno;
22453
22454         /* give thread a chance to complete */
22455         /* it should remain joinable and hence detachable */
22456         sleep( 1 );
22457
22458         status = pthread_detach( &t );
22459         if( status ) return errno;
22460 #endif
22461
22462 #ifdef HAVE_LINUX_THREADS
22463         pthread_kill_other_threads_np();
22464 #endif
22465
22466         return 0;
22467
22468 }
22469
22470 _ACEOF
22471 rm -f conftest$ac_exeext
22472 if { (ac_try="$ac_link"
22473 case "(($ac_try" in
22474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475   *) ac_try_echo=$ac_try;;
22476 esac
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478   (eval "$ac_link") 2>&5
22479   ac_status=$?
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22482   { (case "(($ac_try" in
22483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484   *) ac_try_echo=$ac_try;;
22485 esac
22486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487   (eval "$ac_try") 2>&5
22488   ac_status=$?
22489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490   (exit $ac_status); }; }; then
22491   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22492 else
22493   echo "$as_me: program exited with status $ac_status" >&5
22494 echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22496
22497 ( exit $ac_status )
22498 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22499 fi
22500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22501 fi
22502
22503
22504
22505                 # restore the LIBS
22506                 LIBS="$ol_LIBS"
22507
22508 fi
22509 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22510 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22511
22512         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22513                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22514                 ol_link_threads=posix
22515         fi
22516 fi
22517
22518                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22519 if test "$ol_link_threads" = no ; then
22520         # try -lpthread -lmach -lexc
22521         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22522 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22523 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22524   echo $ECHO_N "(cached) $ECHO_C" >&6
22525 else
22526
22527                 # save the flags
22528                 ol_LIBS="$LIBS"
22529                 LIBS="-lpthread -lmach -lexc $LIBS"
22530
22531                 if test "$cross_compiling" = yes; then
22532   cat >conftest.$ac_ext <<_ACEOF
22533 /* confdefs.h.  */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h.  */
22538
22539 /* pthread test headers */
22540 #include <pthread.h>
22541 #if HAVE_PTHREADS < 7
22542 #include <errno.h>
22543 #endif
22544 #ifndef NULL
22545 #define NULL (void*)0
22546 #endif
22547
22548 static void *task(p)
22549         void *p;
22550 {
22551         return (void *) (p == NULL);
22552 }
22553
22554 int
22555 main ()
22556 {
22557
22558         /* pthread test function */
22559 #ifndef PTHREAD_CREATE_DETACHED
22560 #define PTHREAD_CREATE_DETACHED 1
22561 #endif
22562         pthread_t t;
22563         int status;
22564         int detach = PTHREAD_CREATE_DETACHED;
22565
22566 #if HAVE_PTHREADS > 4
22567         /* Final pthreads */
22568         pthread_attr_t attr;
22569
22570         status = pthread_attr_init(&attr);
22571         if( status ) return status;
22572
22573 #if HAVE_PTHREADS < 7
22574         status = pthread_attr_setdetachstate(&attr, &detach);
22575         if( status < 0 ) status = errno;
22576 #else
22577         status = pthread_attr_setdetachstate(&attr, detach);
22578 #endif
22579         if( status ) return status;
22580         status = pthread_create( &t, &attr, task, NULL );
22581 #if HAVE_PTHREADS < 7
22582         if( status < 0 ) status = errno;
22583 #endif
22584         if( status ) return status;
22585 #else
22586         /* Draft 4 pthreads */
22587         status = pthread_create( &t, pthread_attr_default, task, NULL );
22588         if( status ) return errno;
22589
22590         /* give thread a chance to complete */
22591         /* it should remain joinable and hence detachable */
22592         sleep( 1 );
22593
22594         status = pthread_detach( &t );
22595         if( status ) return errno;
22596 #endif
22597
22598 #ifdef HAVE_LINUX_THREADS
22599         pthread_kill_other_threads_np();
22600 #endif
22601
22602         return 0;
22603
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext conftest$ac_exeext
22609 if { (ac_try="$ac_link"
22610 case "(($ac_try" in
22611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612   *) ac_try_echo=$ac_try;;
22613 esac
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615   (eval "$ac_link") 2>conftest.er1
22616   ac_status=$?
22617   grep -v '^ *+' conftest.er1 >conftest.err
22618   rm -f conftest.er1
22619   cat conftest.err >&5
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); } && {
22622          test -z "$ac_c_werror_flag" ||
22623          test ! -s conftest.err
22624        } && test -s conftest$ac_exeext &&
22625        $as_test_x conftest$ac_exeext; then
22626   ol_cv_pthread_lpthread_lmach_lexc=yes
22627 else
22628   echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22630
22631         ol_cv_pthread_lpthread_lmach_lexc=no
22632 fi
22633
22634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22635       conftest$ac_exeext conftest.$ac_ext
22636 else
22637   cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h.  */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h.  */
22643
22644 /* pthread test headers */
22645 #include <pthread.h>
22646 #if HAVE_PTHREADS < 7
22647 #include <errno.h>
22648 #endif
22649 #ifndef NULL
22650 #define NULL (void*)0
22651 #endif
22652
22653 static void *task(p)
22654         void *p;
22655 {
22656         return (void *) (p == NULL);
22657 }
22658
22659
22660 int main(argc, argv)
22661         int argc;
22662         char **argv;
22663 {
22664
22665         /* pthread test function */
22666 #ifndef PTHREAD_CREATE_DETACHED
22667 #define PTHREAD_CREATE_DETACHED 1
22668 #endif
22669         pthread_t t;
22670         int status;
22671         int detach = PTHREAD_CREATE_DETACHED;
22672
22673 #if HAVE_PTHREADS > 4
22674         /* Final pthreads */
22675         pthread_attr_t attr;
22676
22677         status = pthread_attr_init(&attr);
22678         if( status ) return status;
22679
22680 #if HAVE_PTHREADS < 7
22681         status = pthread_attr_setdetachstate(&attr, &detach);
22682         if( status < 0 ) status = errno;
22683 #else
22684         status = pthread_attr_setdetachstate(&attr, detach);
22685 #endif
22686         if( status ) return status;
22687         status = pthread_create( &t, &attr, task, NULL );
22688 #if HAVE_PTHREADS < 7
22689         if( status < 0 ) status = errno;
22690 #endif
22691         if( status ) return status;
22692 #else
22693         /* Draft 4 pthreads */
22694         status = pthread_create( &t, pthread_attr_default, task, NULL );
22695         if( status ) return errno;
22696
22697         /* give thread a chance to complete */
22698         /* it should remain joinable and hence detachable */
22699         sleep( 1 );
22700
22701         status = pthread_detach( &t );
22702         if( status ) return errno;
22703 #endif
22704
22705 #ifdef HAVE_LINUX_THREADS
22706         pthread_kill_other_threads_np();
22707 #endif
22708
22709         return 0;
22710
22711 }
22712
22713 _ACEOF
22714 rm -f conftest$ac_exeext
22715 if { (ac_try="$ac_link"
22716 case "(($ac_try" in
22717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718   *) ac_try_echo=$ac_try;;
22719 esac
22720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22721   (eval "$ac_link") 2>&5
22722   ac_status=$?
22723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22725   { (case "(($ac_try" in
22726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727   *) ac_try_echo=$ac_try;;
22728 esac
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730   (eval "$ac_try") 2>&5
22731   ac_status=$?
22732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733   (exit $ac_status); }; }; then
22734   ol_cv_pthread_lpthread_lmach_lexc=yes
22735 else
22736   echo "$as_me: program exited with status $ac_status" >&5
22737 echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22739
22740 ( exit $ac_status )
22741 ol_cv_pthread_lpthread_lmach_lexc=no
22742 fi
22743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22744 fi
22745
22746
22747
22748                 # restore the LIBS
22749                 LIBS="$ol_LIBS"
22750
22751 fi
22752 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22753 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22754
22755         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22756                 ol_link_pthreads="-lpthread -lmach -lexc"
22757                 ol_link_threads=posix
22758         fi
22759 fi
22760
22761
22762                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22763 if test "$ol_link_threads" = no ; then
22764         # try -lpthread -Wl,-woff,85
22765         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22766 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22767 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22768   echo $ECHO_N "(cached) $ECHO_C" >&6
22769 else
22770
22771                 # save the flags
22772                 ol_LIBS="$LIBS"
22773                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22774
22775                 if test "$cross_compiling" = yes; then
22776   cat >conftest.$ac_ext <<_ACEOF
22777 /* confdefs.h.  */
22778 _ACEOF
22779 cat confdefs.h >>conftest.$ac_ext
22780 cat >>conftest.$ac_ext <<_ACEOF
22781 /* end confdefs.h.  */
22782
22783 /* pthread test headers */
22784 #include <pthread.h>
22785 #if HAVE_PTHREADS < 7
22786 #include <errno.h>
22787 #endif
22788 #ifndef NULL
22789 #define NULL (void*)0
22790 #endif
22791
22792 static void *task(p)
22793         void *p;
22794 {
22795         return (void *) (p == NULL);
22796 }
22797
22798 int
22799 main ()
22800 {
22801
22802         /* pthread test function */
22803 #ifndef PTHREAD_CREATE_DETACHED
22804 #define PTHREAD_CREATE_DETACHED 1
22805 #endif
22806         pthread_t t;
22807         int status;
22808         int detach = PTHREAD_CREATE_DETACHED;
22809
22810 #if HAVE_PTHREADS > 4
22811         /* Final pthreads */
22812         pthread_attr_t attr;
22813
22814         status = pthread_attr_init(&attr);
22815         if( status ) return status;
22816
22817 #if HAVE_PTHREADS < 7
22818         status = pthread_attr_setdetachstate(&attr, &detach);
22819         if( status < 0 ) status = errno;
22820 #else
22821         status = pthread_attr_setdetachstate(&attr, detach);
22822 #endif
22823         if( status ) return status;
22824         status = pthread_create( &t, &attr, task, NULL );
22825 #if HAVE_PTHREADS < 7
22826         if( status < 0 ) status = errno;
22827 #endif
22828         if( status ) return status;
22829 #else
22830         /* Draft 4 pthreads */
22831         status = pthread_create( &t, pthread_attr_default, task, NULL );
22832         if( status ) return errno;
22833
22834         /* give thread a chance to complete */
22835         /* it should remain joinable and hence detachable */
22836         sleep( 1 );
22837
22838         status = pthread_detach( &t );
22839         if( status ) return errno;
22840 #endif
22841
22842 #ifdef HAVE_LINUX_THREADS
22843         pthread_kill_other_threads_np();
22844 #endif
22845
22846         return 0;
22847
22848   ;
22849   return 0;
22850 }
22851 _ACEOF
22852 rm -f conftest.$ac_objext conftest$ac_exeext
22853 if { (ac_try="$ac_link"
22854 case "(($ac_try" in
22855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22856   *) ac_try_echo=$ac_try;;
22857 esac
22858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22859   (eval "$ac_link") 2>conftest.er1
22860   ac_status=$?
22861   grep -v '^ *+' conftest.er1 >conftest.err
22862   rm -f conftest.er1
22863   cat conftest.err >&5
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); } && {
22866          test -z "$ac_c_werror_flag" ||
22867          test ! -s conftest.err
22868        } && test -s conftest$ac_exeext &&
22869        $as_test_x conftest$ac_exeext; then
22870   ol_cv_pthread_lib_lpthread_woff=yes
22871 else
22872   echo "$as_me: failed program was:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22874
22875         ol_cv_pthread_lib_lpthread_woff=no
22876 fi
22877
22878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22879       conftest$ac_exeext conftest.$ac_ext
22880 else
22881   cat >conftest.$ac_ext <<_ACEOF
22882 /* confdefs.h.  */
22883 _ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h.  */
22887
22888 /* pthread test headers */
22889 #include <pthread.h>
22890 #if HAVE_PTHREADS < 7
22891 #include <errno.h>
22892 #endif
22893 #ifndef NULL
22894 #define NULL (void*)0
22895 #endif
22896
22897 static void *task(p)
22898         void *p;
22899 {
22900         return (void *) (p == NULL);
22901 }
22902
22903
22904 int main(argc, argv)
22905         int argc;
22906         char **argv;
22907 {
22908
22909         /* pthread test function */
22910 #ifndef PTHREAD_CREATE_DETACHED
22911 #define PTHREAD_CREATE_DETACHED 1
22912 #endif
22913         pthread_t t;
22914         int status;
22915         int detach = PTHREAD_CREATE_DETACHED;
22916
22917 #if HAVE_PTHREADS > 4
22918         /* Final pthreads */
22919         pthread_attr_t attr;
22920
22921         status = pthread_attr_init(&attr);
22922         if( status ) return status;
22923
22924 #if HAVE_PTHREADS < 7
22925         status = pthread_attr_setdetachstate(&attr, &detach);
22926         if( status < 0 ) status = errno;
22927 #else
22928         status = pthread_attr_setdetachstate(&attr, detach);
22929 #endif
22930         if( status ) return status;
22931         status = pthread_create( &t, &attr, task, NULL );
22932 #if HAVE_PTHREADS < 7
22933         if( status < 0 ) status = errno;
22934 #endif
22935         if( status ) return status;
22936 #else
22937         /* Draft 4 pthreads */
22938         status = pthread_create( &t, pthread_attr_default, task, NULL );
22939         if( status ) return errno;
22940
22941         /* give thread a chance to complete */
22942         /* it should remain joinable and hence detachable */
22943         sleep( 1 );
22944
22945         status = pthread_detach( &t );
22946         if( status ) return errno;
22947 #endif
22948
22949 #ifdef HAVE_LINUX_THREADS
22950         pthread_kill_other_threads_np();
22951 #endif
22952
22953         return 0;
22954
22955 }
22956
22957 _ACEOF
22958 rm -f conftest$ac_exeext
22959 if { (ac_try="$ac_link"
22960 case "(($ac_try" in
22961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22962   *) ac_try_echo=$ac_try;;
22963 esac
22964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22965   (eval "$ac_link") 2>&5
22966   ac_status=$?
22967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22969   { (case "(($ac_try" in
22970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22971   *) ac_try_echo=$ac_try;;
22972 esac
22973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22974   (eval "$ac_try") 2>&5
22975   ac_status=$?
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); }; }; then
22978   ol_cv_pthread_lib_lpthread_woff=yes
22979 else
22980   echo "$as_me: program exited with status $ac_status" >&5
22981 echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22983
22984 ( exit $ac_status )
22985 ol_cv_pthread_lib_lpthread_woff=no
22986 fi
22987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22988 fi
22989
22990
22991
22992                 # restore the LIBS
22993                 LIBS="$ol_LIBS"
22994
22995 fi
22996 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22997 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22998
22999         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
23000                 ol_link_pthreads="-lpthread -Wl,-woff,85"
23001                 ol_link_threads=posix
23002         fi
23003 fi
23004
23005
23006                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
23007 if test "$ol_link_threads" = no ; then
23008         # try -lpthread
23009         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
23010 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
23011 if test "${ol_cv_pthread_lpthread+set}" = set; then
23012   echo $ECHO_N "(cached) $ECHO_C" >&6
23013 else
23014
23015                 # save the flags
23016                 ol_LIBS="$LIBS"
23017                 LIBS="-lpthread $LIBS"
23018
23019                 if test "$cross_compiling" = yes; then
23020   cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h.  */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h.  */
23026
23027 /* pthread test headers */
23028 #include <pthread.h>
23029 #if HAVE_PTHREADS < 7
23030 #include <errno.h>
23031 #endif
23032 #ifndef NULL
23033 #define NULL (void*)0
23034 #endif
23035
23036 static void *task(p)
23037         void *p;
23038 {
23039         return (void *) (p == NULL);
23040 }
23041
23042 int
23043 main ()
23044 {
23045
23046         /* pthread test function */
23047 #ifndef PTHREAD_CREATE_DETACHED
23048 #define PTHREAD_CREATE_DETACHED 1
23049 #endif
23050         pthread_t t;
23051         int status;
23052         int detach = PTHREAD_CREATE_DETACHED;
23053
23054 #if HAVE_PTHREADS > 4
23055         /* Final pthreads */
23056         pthread_attr_t attr;
23057
23058         status = pthread_attr_init(&attr);
23059         if( status ) return status;
23060
23061 #if HAVE_PTHREADS < 7
23062         status = pthread_attr_setdetachstate(&attr, &detach);
23063         if( status < 0 ) status = errno;
23064 #else
23065         status = pthread_attr_setdetachstate(&attr, detach);
23066 #endif
23067         if( status ) return status;
23068         status = pthread_create( &t, &attr, task, NULL );
23069 #if HAVE_PTHREADS < 7
23070         if( status < 0 ) status = errno;
23071 #endif
23072         if( status ) return status;
23073 #else
23074         /* Draft 4 pthreads */
23075         status = pthread_create( &t, pthread_attr_default, task, NULL );
23076         if( status ) return errno;
23077
23078         /* give thread a chance to complete */
23079         /* it should remain joinable and hence detachable */
23080         sleep( 1 );
23081
23082         status = pthread_detach( &t );
23083         if( status ) return errno;
23084 #endif
23085
23086 #ifdef HAVE_LINUX_THREADS
23087         pthread_kill_other_threads_np();
23088 #endif
23089
23090         return 0;
23091
23092   ;
23093   return 0;
23094 }
23095 _ACEOF
23096 rm -f conftest.$ac_objext conftest$ac_exeext
23097 if { (ac_try="$ac_link"
23098 case "(($ac_try" in
23099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23100   *) ac_try_echo=$ac_try;;
23101 esac
23102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23103   (eval "$ac_link") 2>conftest.er1
23104   ac_status=$?
23105   grep -v '^ *+' conftest.er1 >conftest.err
23106   rm -f conftest.er1
23107   cat conftest.err >&5
23108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109   (exit $ac_status); } && {
23110          test -z "$ac_c_werror_flag" ||
23111          test ! -s conftest.err
23112        } && test -s conftest$ac_exeext &&
23113        $as_test_x conftest$ac_exeext; then
23114   ol_cv_pthread_lpthread=yes
23115 else
23116   echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23118
23119         ol_cv_pthread_lpthread=no
23120 fi
23121
23122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23123       conftest$ac_exeext conftest.$ac_ext
23124 else
23125   cat >conftest.$ac_ext <<_ACEOF
23126 /* confdefs.h.  */
23127 _ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h.  */
23131
23132 /* pthread test headers */
23133 #include <pthread.h>
23134 #if HAVE_PTHREADS < 7
23135 #include <errno.h>
23136 #endif
23137 #ifndef NULL
23138 #define NULL (void*)0
23139 #endif
23140
23141 static void *task(p)
23142         void *p;
23143 {
23144         return (void *) (p == NULL);
23145 }
23146
23147
23148 int main(argc, argv)
23149         int argc;
23150         char **argv;
23151 {
23152
23153         /* pthread test function */
23154 #ifndef PTHREAD_CREATE_DETACHED
23155 #define PTHREAD_CREATE_DETACHED 1
23156 #endif
23157         pthread_t t;
23158         int status;
23159         int detach = PTHREAD_CREATE_DETACHED;
23160
23161 #if HAVE_PTHREADS > 4
23162         /* Final pthreads */
23163         pthread_attr_t attr;
23164
23165         status = pthread_attr_init(&attr);
23166         if( status ) return status;
23167
23168 #if HAVE_PTHREADS < 7
23169         status = pthread_attr_setdetachstate(&attr, &detach);
23170         if( status < 0 ) status = errno;
23171 #else
23172         status = pthread_attr_setdetachstate(&attr, detach);
23173 #endif
23174         if( status ) return status;
23175         status = pthread_create( &t, &attr, task, NULL );
23176 #if HAVE_PTHREADS < 7
23177         if( status < 0 ) status = errno;
23178 #endif
23179         if( status ) return status;
23180 #else
23181         /* Draft 4 pthreads */
23182         status = pthread_create( &t, pthread_attr_default, task, NULL );
23183         if( status ) return errno;
23184
23185         /* give thread a chance to complete */
23186         /* it should remain joinable and hence detachable */
23187         sleep( 1 );
23188
23189         status = pthread_detach( &t );
23190         if( status ) return errno;
23191 #endif
23192
23193 #ifdef HAVE_LINUX_THREADS
23194         pthread_kill_other_threads_np();
23195 #endif
23196
23197         return 0;
23198
23199 }
23200
23201 _ACEOF
23202 rm -f conftest$ac_exeext
23203 if { (ac_try="$ac_link"
23204 case "(($ac_try" in
23205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206   *) ac_try_echo=$ac_try;;
23207 esac
23208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209   (eval "$ac_link") 2>&5
23210   ac_status=$?
23211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23213   { (case "(($ac_try" in
23214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23215   *) ac_try_echo=$ac_try;;
23216 esac
23217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23218   (eval "$ac_try") 2>&5
23219   ac_status=$?
23220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221   (exit $ac_status); }; }; then
23222   ol_cv_pthread_lpthread=yes
23223 else
23224   echo "$as_me: program exited with status $ac_status" >&5
23225 echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23227
23228 ( exit $ac_status )
23229 ol_cv_pthread_lpthread=no
23230 fi
23231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23232 fi
23233
23234
23235
23236                 # restore the LIBS
23237                 LIBS="$ol_LIBS"
23238
23239 fi
23240 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23241 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23242
23243         if test $ol_cv_pthread_lpthread = yes ; then
23244                 ol_link_pthreads="-lpthread"
23245                 ol_link_threads=posix
23246         fi
23247 fi
23248
23249                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23250 if test "$ol_link_threads" = no ; then
23251         # try -lc_r
23252         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23253 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23254 if test "${ol_cv_pthread_lc_r+set}" = set; then
23255   echo $ECHO_N "(cached) $ECHO_C" >&6
23256 else
23257
23258                 # save the flags
23259                 ol_LIBS="$LIBS"
23260                 LIBS="-lc_r $LIBS"
23261
23262                 if test "$cross_compiling" = yes; then
23263   cat >conftest.$ac_ext <<_ACEOF
23264 /* confdefs.h.  */
23265 _ACEOF
23266 cat confdefs.h >>conftest.$ac_ext
23267 cat >>conftest.$ac_ext <<_ACEOF
23268 /* end confdefs.h.  */
23269
23270 /* pthread test headers */
23271 #include <pthread.h>
23272 #if HAVE_PTHREADS < 7
23273 #include <errno.h>
23274 #endif
23275 #ifndef NULL
23276 #define NULL (void*)0
23277 #endif
23278
23279 static void *task(p)
23280         void *p;
23281 {
23282         return (void *) (p == NULL);
23283 }
23284
23285 int
23286 main ()
23287 {
23288
23289         /* pthread test function */
23290 #ifndef PTHREAD_CREATE_DETACHED
23291 #define PTHREAD_CREATE_DETACHED 1
23292 #endif
23293         pthread_t t;
23294         int status;
23295         int detach = PTHREAD_CREATE_DETACHED;
23296
23297 #if HAVE_PTHREADS > 4
23298         /* Final pthreads */
23299         pthread_attr_t attr;
23300
23301         status = pthread_attr_init(&attr);
23302         if( status ) return status;
23303
23304 #if HAVE_PTHREADS < 7
23305         status = pthread_attr_setdetachstate(&attr, &detach);
23306         if( status < 0 ) status = errno;
23307 #else
23308         status = pthread_attr_setdetachstate(&attr, detach);
23309 #endif
23310         if( status ) return status;
23311         status = pthread_create( &t, &attr, task, NULL );
23312 #if HAVE_PTHREADS < 7
23313         if( status < 0 ) status = errno;
23314 #endif
23315         if( status ) return status;
23316 #else
23317         /* Draft 4 pthreads */
23318         status = pthread_create( &t, pthread_attr_default, task, NULL );
23319         if( status ) return errno;
23320
23321         /* give thread a chance to complete */
23322         /* it should remain joinable and hence detachable */
23323         sleep( 1 );
23324
23325         status = pthread_detach( &t );
23326         if( status ) return errno;
23327 #endif
23328
23329 #ifdef HAVE_LINUX_THREADS
23330         pthread_kill_other_threads_np();
23331 #endif
23332
23333         return 0;
23334
23335   ;
23336   return 0;
23337 }
23338 _ACEOF
23339 rm -f conftest.$ac_objext conftest$ac_exeext
23340 if { (ac_try="$ac_link"
23341 case "(($ac_try" in
23342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343   *) ac_try_echo=$ac_try;;
23344 esac
23345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23346   (eval "$ac_link") 2>conftest.er1
23347   ac_status=$?
23348   grep -v '^ *+' conftest.er1 >conftest.err
23349   rm -f conftest.er1
23350   cat conftest.err >&5
23351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352   (exit $ac_status); } && {
23353          test -z "$ac_c_werror_flag" ||
23354          test ! -s conftest.err
23355        } && test -s conftest$ac_exeext &&
23356        $as_test_x conftest$ac_exeext; then
23357   ol_cv_pthread_lc_r=yes
23358 else
23359   echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23361
23362         ol_cv_pthread_lc_r=no
23363 fi
23364
23365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23366       conftest$ac_exeext conftest.$ac_ext
23367 else
23368   cat >conftest.$ac_ext <<_ACEOF
23369 /* confdefs.h.  */
23370 _ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h.  */
23374
23375 /* pthread test headers */
23376 #include <pthread.h>
23377 #if HAVE_PTHREADS < 7
23378 #include <errno.h>
23379 #endif
23380 #ifndef NULL
23381 #define NULL (void*)0
23382 #endif
23383
23384 static void *task(p)
23385         void *p;
23386 {
23387         return (void *) (p == NULL);
23388 }
23389
23390
23391 int main(argc, argv)
23392         int argc;
23393         char **argv;
23394 {
23395
23396         /* pthread test function */
23397 #ifndef PTHREAD_CREATE_DETACHED
23398 #define PTHREAD_CREATE_DETACHED 1
23399 #endif
23400         pthread_t t;
23401         int status;
23402         int detach = PTHREAD_CREATE_DETACHED;
23403
23404 #if HAVE_PTHREADS > 4
23405         /* Final pthreads */
23406         pthread_attr_t attr;
23407
23408         status = pthread_attr_init(&attr);
23409         if( status ) return status;
23410
23411 #if HAVE_PTHREADS < 7
23412         status = pthread_attr_setdetachstate(&attr, &detach);
23413         if( status < 0 ) status = errno;
23414 #else
23415         status = pthread_attr_setdetachstate(&attr, detach);
23416 #endif
23417         if( status ) return status;
23418         status = pthread_create( &t, &attr, task, NULL );
23419 #if HAVE_PTHREADS < 7
23420         if( status < 0 ) status = errno;
23421 #endif
23422         if( status ) return status;
23423 #else
23424         /* Draft 4 pthreads */
23425         status = pthread_create( &t, pthread_attr_default, task, NULL );
23426         if( status ) return errno;
23427
23428         /* give thread a chance to complete */
23429         /* it should remain joinable and hence detachable */
23430         sleep( 1 );
23431
23432         status = pthread_detach( &t );
23433         if( status ) return errno;
23434 #endif
23435
23436 #ifdef HAVE_LINUX_THREADS
23437         pthread_kill_other_threads_np();
23438 #endif
23439
23440         return 0;
23441
23442 }
23443
23444 _ACEOF
23445 rm -f conftest$ac_exeext
23446 if { (ac_try="$ac_link"
23447 case "(($ac_try" in
23448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23449   *) ac_try_echo=$ac_try;;
23450 esac
23451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23452   (eval "$ac_link") 2>&5
23453   ac_status=$?
23454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23456   { (case "(($ac_try" in
23457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458   *) ac_try_echo=$ac_try;;
23459 esac
23460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461   (eval "$ac_try") 2>&5
23462   ac_status=$?
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); }; }; then
23465   ol_cv_pthread_lc_r=yes
23466 else
23467   echo "$as_me: program exited with status $ac_status" >&5
23468 echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23470
23471 ( exit $ac_status )
23472 ol_cv_pthread_lc_r=no
23473 fi
23474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23475 fi
23476
23477
23478
23479                 # restore the LIBS
23480                 LIBS="$ol_LIBS"
23481
23482 fi
23483 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23484 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23485
23486         if test $ol_cv_pthread_lc_r = yes ; then
23487                 ol_link_pthreads="-lc_r"
23488                 ol_link_threads=posix
23489         fi
23490 fi
23491
23492
23493                 # Pthread try link: -threads (ol_cv_pthread_threads)
23494 if test "$ol_link_threads" = no ; then
23495         # try -threads
23496         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23497 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23498 if test "${ol_cv_pthread_threads+set}" = set; then
23499   echo $ECHO_N "(cached) $ECHO_C" >&6
23500 else
23501
23502                 # save the flags
23503                 ol_LIBS="$LIBS"
23504                 LIBS="-threads $LIBS"
23505
23506                 if test "$cross_compiling" = yes; then
23507   cat >conftest.$ac_ext <<_ACEOF
23508 /* confdefs.h.  */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h.  */
23513
23514 /* pthread test headers */
23515 #include <pthread.h>
23516 #if HAVE_PTHREADS < 7
23517 #include <errno.h>
23518 #endif
23519 #ifndef NULL
23520 #define NULL (void*)0
23521 #endif
23522
23523 static void *task(p)
23524         void *p;
23525 {
23526         return (void *) (p == NULL);
23527 }
23528
23529 int
23530 main ()
23531 {
23532
23533         /* pthread test function */
23534 #ifndef PTHREAD_CREATE_DETACHED
23535 #define PTHREAD_CREATE_DETACHED 1
23536 #endif
23537         pthread_t t;
23538         int status;
23539         int detach = PTHREAD_CREATE_DETACHED;
23540
23541 #if HAVE_PTHREADS > 4
23542         /* Final pthreads */
23543         pthread_attr_t attr;
23544
23545         status = pthread_attr_init(&attr);
23546         if( status ) return status;
23547
23548 #if HAVE_PTHREADS < 7
23549         status = pthread_attr_setdetachstate(&attr, &detach);
23550         if( status < 0 ) status = errno;
23551 #else
23552         status = pthread_attr_setdetachstate(&attr, detach);
23553 #endif
23554         if( status ) return status;
23555         status = pthread_create( &t, &attr, task, NULL );
23556 #if HAVE_PTHREADS < 7
23557         if( status < 0 ) status = errno;
23558 #endif
23559         if( status ) return status;
23560 #else
23561         /* Draft 4 pthreads */
23562         status = pthread_create( &t, pthread_attr_default, task, NULL );
23563         if( status ) return errno;
23564
23565         /* give thread a chance to complete */
23566         /* it should remain joinable and hence detachable */
23567         sleep( 1 );
23568
23569         status = pthread_detach( &t );
23570         if( status ) return errno;
23571 #endif
23572
23573 #ifdef HAVE_LINUX_THREADS
23574         pthread_kill_other_threads_np();
23575 #endif
23576
23577         return 0;
23578
23579   ;
23580   return 0;
23581 }
23582 _ACEOF
23583 rm -f conftest.$ac_objext conftest$ac_exeext
23584 if { (ac_try="$ac_link"
23585 case "(($ac_try" in
23586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587   *) ac_try_echo=$ac_try;;
23588 esac
23589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23590   (eval "$ac_link") 2>conftest.er1
23591   ac_status=$?
23592   grep -v '^ *+' conftest.er1 >conftest.err
23593   rm -f conftest.er1
23594   cat conftest.err >&5
23595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596   (exit $ac_status); } && {
23597          test -z "$ac_c_werror_flag" ||
23598          test ! -s conftest.err
23599        } && test -s conftest$ac_exeext &&
23600        $as_test_x conftest$ac_exeext; then
23601   ol_cv_pthread_threads=yes
23602 else
23603   echo "$as_me: failed program was:" >&5
23604 sed 's/^/| /' conftest.$ac_ext >&5
23605
23606         ol_cv_pthread_threads=no
23607 fi
23608
23609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23610       conftest$ac_exeext conftest.$ac_ext
23611 else
23612   cat >conftest.$ac_ext <<_ACEOF
23613 /* confdefs.h.  */
23614 _ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h.  */
23618
23619 /* pthread test headers */
23620 #include <pthread.h>
23621 #if HAVE_PTHREADS < 7
23622 #include <errno.h>
23623 #endif
23624 #ifndef NULL
23625 #define NULL (void*)0
23626 #endif
23627
23628 static void *task(p)
23629         void *p;
23630 {
23631         return (void *) (p == NULL);
23632 }
23633
23634
23635 int main(argc, argv)
23636         int argc;
23637         char **argv;
23638 {
23639
23640         /* pthread test function */
23641 #ifndef PTHREAD_CREATE_DETACHED
23642 #define PTHREAD_CREATE_DETACHED 1
23643 #endif
23644         pthread_t t;
23645         int status;
23646         int detach = PTHREAD_CREATE_DETACHED;
23647
23648 #if HAVE_PTHREADS > 4
23649         /* Final pthreads */
23650         pthread_attr_t attr;
23651
23652         status = pthread_attr_init(&attr);
23653         if( status ) return status;
23654
23655 #if HAVE_PTHREADS < 7
23656         status = pthread_attr_setdetachstate(&attr, &detach);
23657         if( status < 0 ) status = errno;
23658 #else
23659         status = pthread_attr_setdetachstate(&attr, detach);
23660 #endif
23661         if( status ) return status;
23662         status = pthread_create( &t, &attr, task, NULL );
23663 #if HAVE_PTHREADS < 7
23664         if( status < 0 ) status = errno;
23665 #endif
23666         if( status ) return status;
23667 #else
23668         /* Draft 4 pthreads */
23669         status = pthread_create( &t, pthread_attr_default, task, NULL );
23670         if( status ) return errno;
23671
23672         /* give thread a chance to complete */
23673         /* it should remain joinable and hence detachable */
23674         sleep( 1 );
23675
23676         status = pthread_detach( &t );
23677         if( status ) return errno;
23678 #endif
23679
23680 #ifdef HAVE_LINUX_THREADS
23681         pthread_kill_other_threads_np();
23682 #endif
23683
23684         return 0;
23685
23686 }
23687
23688 _ACEOF
23689 rm -f conftest$ac_exeext
23690 if { (ac_try="$ac_link"
23691 case "(($ac_try" in
23692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23693   *) ac_try_echo=$ac_try;;
23694 esac
23695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23696   (eval "$ac_link") 2>&5
23697   ac_status=$?
23698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23700   { (case "(($ac_try" in
23701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702   *) ac_try_echo=$ac_try;;
23703 esac
23704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23705   (eval "$ac_try") 2>&5
23706   ac_status=$?
23707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708   (exit $ac_status); }; }; then
23709   ol_cv_pthread_threads=yes
23710 else
23711   echo "$as_me: program exited with status $ac_status" >&5
23712 echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23714
23715 ( exit $ac_status )
23716 ol_cv_pthread_threads=no
23717 fi
23718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23719 fi
23720
23721
23722
23723                 # restore the LIBS
23724                 LIBS="$ol_LIBS"
23725
23726 fi
23727 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23728 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23729
23730         if test $ol_cv_pthread_threads = yes ; then
23731                 ol_link_pthreads="-threads"
23732                 ol_link_threads=posix
23733         fi
23734 fi
23735
23736
23737                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23738 if test "$ol_link_threads" = no ; then
23739         # try -lpthreads -lmach -lexc -lc_r
23740         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23741 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23742 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23743   echo $ECHO_N "(cached) $ECHO_C" >&6
23744 else
23745
23746                 # save the flags
23747                 ol_LIBS="$LIBS"
23748                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23749
23750                 if test "$cross_compiling" = yes; then
23751   cat >conftest.$ac_ext <<_ACEOF
23752 /* confdefs.h.  */
23753 _ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h.  */
23757
23758 /* pthread test headers */
23759 #include <pthread.h>
23760 #if HAVE_PTHREADS < 7
23761 #include <errno.h>
23762 #endif
23763 #ifndef NULL
23764 #define NULL (void*)0
23765 #endif
23766
23767 static void *task(p)
23768         void *p;
23769 {
23770         return (void *) (p == NULL);
23771 }
23772
23773 int
23774 main ()
23775 {
23776
23777         /* pthread test function */
23778 #ifndef PTHREAD_CREATE_DETACHED
23779 #define PTHREAD_CREATE_DETACHED 1
23780 #endif
23781         pthread_t t;
23782         int status;
23783         int detach = PTHREAD_CREATE_DETACHED;
23784
23785 #if HAVE_PTHREADS > 4
23786         /* Final pthreads */
23787         pthread_attr_t attr;
23788
23789         status = pthread_attr_init(&attr);
23790         if( status ) return status;
23791
23792 #if HAVE_PTHREADS < 7
23793         status = pthread_attr_setdetachstate(&attr, &detach);
23794         if( status < 0 ) status = errno;
23795 #else
23796         status = pthread_attr_setdetachstate(&attr, detach);
23797 #endif
23798         if( status ) return status;
23799         status = pthread_create( &t, &attr, task, NULL );
23800 #if HAVE_PTHREADS < 7
23801         if( status < 0 ) status = errno;
23802 #endif
23803         if( status ) return status;
23804 #else
23805         /* Draft 4 pthreads */
23806         status = pthread_create( &t, pthread_attr_default, task, NULL );
23807         if( status ) return errno;
23808
23809         /* give thread a chance to complete */
23810         /* it should remain joinable and hence detachable */
23811         sleep( 1 );
23812
23813         status = pthread_detach( &t );
23814         if( status ) return errno;
23815 #endif
23816
23817 #ifdef HAVE_LINUX_THREADS
23818         pthread_kill_other_threads_np();
23819 #endif
23820
23821         return 0;
23822
23823   ;
23824   return 0;
23825 }
23826 _ACEOF
23827 rm -f conftest.$ac_objext conftest$ac_exeext
23828 if { (ac_try="$ac_link"
23829 case "(($ac_try" in
23830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23831   *) ac_try_echo=$ac_try;;
23832 esac
23833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23834   (eval "$ac_link") 2>conftest.er1
23835   ac_status=$?
23836   grep -v '^ *+' conftest.er1 >conftest.err
23837   rm -f conftest.er1
23838   cat conftest.err >&5
23839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); } && {
23841          test -z "$ac_c_werror_flag" ||
23842          test ! -s conftest.err
23843        } && test -s conftest$ac_exeext &&
23844        $as_test_x conftest$ac_exeext; then
23845   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23846 else
23847   echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23849
23850         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23851 fi
23852
23853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23854       conftest$ac_exeext conftest.$ac_ext
23855 else
23856   cat >conftest.$ac_ext <<_ACEOF
23857 /* confdefs.h.  */
23858 _ACEOF
23859 cat confdefs.h >>conftest.$ac_ext
23860 cat >>conftest.$ac_ext <<_ACEOF
23861 /* end confdefs.h.  */
23862
23863 /* pthread test headers */
23864 #include <pthread.h>
23865 #if HAVE_PTHREADS < 7
23866 #include <errno.h>
23867 #endif
23868 #ifndef NULL
23869 #define NULL (void*)0
23870 #endif
23871
23872 static void *task(p)
23873         void *p;
23874 {
23875         return (void *) (p == NULL);
23876 }
23877
23878
23879 int main(argc, argv)
23880         int argc;
23881         char **argv;
23882 {
23883
23884         /* pthread test function */
23885 #ifndef PTHREAD_CREATE_DETACHED
23886 #define PTHREAD_CREATE_DETACHED 1
23887 #endif
23888         pthread_t t;
23889         int status;
23890         int detach = PTHREAD_CREATE_DETACHED;
23891
23892 #if HAVE_PTHREADS > 4
23893         /* Final pthreads */
23894         pthread_attr_t attr;
23895
23896         status = pthread_attr_init(&attr);
23897         if( status ) return status;
23898
23899 #if HAVE_PTHREADS < 7
23900         status = pthread_attr_setdetachstate(&attr, &detach);
23901         if( status < 0 ) status = errno;
23902 #else
23903         status = pthread_attr_setdetachstate(&attr, detach);
23904 #endif
23905         if( status ) return status;
23906         status = pthread_create( &t, &attr, task, NULL );
23907 #if HAVE_PTHREADS < 7
23908         if( status < 0 ) status = errno;
23909 #endif
23910         if( status ) return status;
23911 #else
23912         /* Draft 4 pthreads */
23913         status = pthread_create( &t, pthread_attr_default, task, NULL );
23914         if( status ) return errno;
23915
23916         /* give thread a chance to complete */
23917         /* it should remain joinable and hence detachable */
23918         sleep( 1 );
23919
23920         status = pthread_detach( &t );
23921         if( status ) return errno;
23922 #endif
23923
23924 #ifdef HAVE_LINUX_THREADS
23925         pthread_kill_other_threads_np();
23926 #endif
23927
23928         return 0;
23929
23930 }
23931
23932 _ACEOF
23933 rm -f conftest$ac_exeext
23934 if { (ac_try="$ac_link"
23935 case "(($ac_try" in
23936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23937   *) ac_try_echo=$ac_try;;
23938 esac
23939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23940   (eval "$ac_link") 2>&5
23941   ac_status=$?
23942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23944   { (case "(($ac_try" in
23945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23946   *) ac_try_echo=$ac_try;;
23947 esac
23948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23949   (eval "$ac_try") 2>&5
23950   ac_status=$?
23951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952   (exit $ac_status); }; }; then
23953   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23954 else
23955   echo "$as_me: program exited with status $ac_status" >&5
23956 echo "$as_me: failed program was:" >&5
23957 sed 's/^/| /' conftest.$ac_ext >&5
23958
23959 ( exit $ac_status )
23960 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23961 fi
23962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23963 fi
23964
23965
23966
23967                 # restore the LIBS
23968                 LIBS="$ol_LIBS"
23969
23970 fi
23971 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23972 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23973
23974         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23975                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23976                 ol_link_threads=posix
23977         fi
23978 fi
23979
23980                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23981 if test "$ol_link_threads" = no ; then
23982         # try -lpthreads -lmach -lexc
23983         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23984 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23985 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23986   echo $ECHO_N "(cached) $ECHO_C" >&6
23987 else
23988
23989                 # save the flags
23990                 ol_LIBS="$LIBS"
23991                 LIBS="-lpthreads -lmach -lexc $LIBS"
23992
23993                 if test "$cross_compiling" = yes; then
23994   cat >conftest.$ac_ext <<_ACEOF
23995 /* confdefs.h.  */
23996 _ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h.  */
24000
24001 /* pthread test headers */
24002 #include <pthread.h>
24003 #if HAVE_PTHREADS < 7
24004 #include <errno.h>
24005 #endif
24006 #ifndef NULL
24007 #define NULL (void*)0
24008 #endif
24009
24010 static void *task(p)
24011         void *p;
24012 {
24013         return (void *) (p == NULL);
24014 }
24015
24016 int
24017 main ()
24018 {
24019
24020         /* pthread test function */
24021 #ifndef PTHREAD_CREATE_DETACHED
24022 #define PTHREAD_CREATE_DETACHED 1
24023 #endif
24024         pthread_t t;
24025         int status;
24026         int detach = PTHREAD_CREATE_DETACHED;
24027
24028 #if HAVE_PTHREADS > 4
24029         /* Final pthreads */
24030         pthread_attr_t attr;
24031
24032         status = pthread_attr_init(&attr);
24033         if( status ) return status;
24034
24035 #if HAVE_PTHREADS < 7
24036         status = pthread_attr_setdetachstate(&attr, &detach);
24037         if( status < 0 ) status = errno;
24038 #else
24039         status = pthread_attr_setdetachstate(&attr, detach);
24040 #endif
24041         if( status ) return status;
24042         status = pthread_create( &t, &attr, task, NULL );
24043 #if HAVE_PTHREADS < 7
24044         if( status < 0 ) status = errno;
24045 #endif
24046         if( status ) return status;
24047 #else
24048         /* Draft 4 pthreads */
24049         status = pthread_create( &t, pthread_attr_default, task, NULL );
24050         if( status ) return errno;
24051
24052         /* give thread a chance to complete */
24053         /* it should remain joinable and hence detachable */
24054         sleep( 1 );
24055
24056         status = pthread_detach( &t );
24057         if( status ) return errno;
24058 #endif
24059
24060 #ifdef HAVE_LINUX_THREADS
24061         pthread_kill_other_threads_np();
24062 #endif
24063
24064         return 0;
24065
24066   ;
24067   return 0;
24068 }
24069 _ACEOF
24070 rm -f conftest.$ac_objext conftest$ac_exeext
24071 if { (ac_try="$ac_link"
24072 case "(($ac_try" in
24073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074   *) ac_try_echo=$ac_try;;
24075 esac
24076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24077   (eval "$ac_link") 2>conftest.er1
24078   ac_status=$?
24079   grep -v '^ *+' conftest.er1 >conftest.err
24080   rm -f conftest.er1
24081   cat conftest.err >&5
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); } && {
24084          test -z "$ac_c_werror_flag" ||
24085          test ! -s conftest.err
24086        } && test -s conftest$ac_exeext &&
24087        $as_test_x conftest$ac_exeext; then
24088   ol_cv_pthread_lpthreads_lmach_lexc=yes
24089 else
24090   echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.$ac_ext >&5
24092
24093         ol_cv_pthread_lpthreads_lmach_lexc=no
24094 fi
24095
24096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24097       conftest$ac_exeext conftest.$ac_ext
24098 else
24099   cat >conftest.$ac_ext <<_ACEOF
24100 /* confdefs.h.  */
24101 _ACEOF
24102 cat confdefs.h >>conftest.$ac_ext
24103 cat >>conftest.$ac_ext <<_ACEOF
24104 /* end confdefs.h.  */
24105
24106 /* pthread test headers */
24107 #include <pthread.h>
24108 #if HAVE_PTHREADS < 7
24109 #include <errno.h>
24110 #endif
24111 #ifndef NULL
24112 #define NULL (void*)0
24113 #endif
24114
24115 static void *task(p)
24116         void *p;
24117 {
24118         return (void *) (p == NULL);
24119 }
24120
24121
24122 int main(argc, argv)
24123         int argc;
24124         char **argv;
24125 {
24126
24127         /* pthread test function */
24128 #ifndef PTHREAD_CREATE_DETACHED
24129 #define PTHREAD_CREATE_DETACHED 1
24130 #endif
24131         pthread_t t;
24132         int status;
24133         int detach = PTHREAD_CREATE_DETACHED;
24134
24135 #if HAVE_PTHREADS > 4
24136         /* Final pthreads */
24137         pthread_attr_t attr;
24138
24139         status = pthread_attr_init(&attr);
24140         if( status ) return status;
24141
24142 #if HAVE_PTHREADS < 7
24143         status = pthread_attr_setdetachstate(&attr, &detach);
24144         if( status < 0 ) status = errno;
24145 #else
24146         status = pthread_attr_setdetachstate(&attr, detach);
24147 #endif
24148         if( status ) return status;
24149         status = pthread_create( &t, &attr, task, NULL );
24150 #if HAVE_PTHREADS < 7
24151         if( status < 0 ) status = errno;
24152 #endif
24153         if( status ) return status;
24154 #else
24155         /* Draft 4 pthreads */
24156         status = pthread_create( &t, pthread_attr_default, task, NULL );
24157         if( status ) return errno;
24158
24159         /* give thread a chance to complete */
24160         /* it should remain joinable and hence detachable */
24161         sleep( 1 );
24162
24163         status = pthread_detach( &t );
24164         if( status ) return errno;
24165 #endif
24166
24167 #ifdef HAVE_LINUX_THREADS
24168         pthread_kill_other_threads_np();
24169 #endif
24170
24171         return 0;
24172
24173 }
24174
24175 _ACEOF
24176 rm -f conftest$ac_exeext
24177 if { (ac_try="$ac_link"
24178 case "(($ac_try" in
24179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180   *) ac_try_echo=$ac_try;;
24181 esac
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183   (eval "$ac_link") 2>&5
24184   ac_status=$?
24185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24187   { (case "(($ac_try" in
24188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24189   *) ac_try_echo=$ac_try;;
24190 esac
24191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24192   (eval "$ac_try") 2>&5
24193   ac_status=$?
24194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195   (exit $ac_status); }; }; then
24196   ol_cv_pthread_lpthreads_lmach_lexc=yes
24197 else
24198   echo "$as_me: program exited with status $ac_status" >&5
24199 echo "$as_me: failed program was:" >&5
24200 sed 's/^/| /' conftest.$ac_ext >&5
24201
24202 ( exit $ac_status )
24203 ol_cv_pthread_lpthreads_lmach_lexc=no
24204 fi
24205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24206 fi
24207
24208
24209
24210                 # restore the LIBS
24211                 LIBS="$ol_LIBS"
24212
24213 fi
24214 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24215 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24216
24217         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24218                 ol_link_pthreads="-lpthreads -lmach -lexc"
24219                 ol_link_threads=posix
24220         fi
24221 fi
24222
24223                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24224 if test "$ol_link_threads" = no ; then
24225         # try -lpthreads -lexc
24226         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24227 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24228 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24229   echo $ECHO_N "(cached) $ECHO_C" >&6
24230 else
24231
24232                 # save the flags
24233                 ol_LIBS="$LIBS"
24234                 LIBS="-lpthreads -lexc $LIBS"
24235
24236                 if test "$cross_compiling" = yes; then
24237   cat >conftest.$ac_ext <<_ACEOF
24238 /* confdefs.h.  */
24239 _ACEOF
24240 cat confdefs.h >>conftest.$ac_ext
24241 cat >>conftest.$ac_ext <<_ACEOF
24242 /* end confdefs.h.  */
24243
24244 /* pthread test headers */
24245 #include <pthread.h>
24246 #if HAVE_PTHREADS < 7
24247 #include <errno.h>
24248 #endif
24249 #ifndef NULL
24250 #define NULL (void*)0
24251 #endif
24252
24253 static void *task(p)
24254         void *p;
24255 {
24256         return (void *) (p == NULL);
24257 }
24258
24259 int
24260 main ()
24261 {
24262
24263         /* pthread test function */
24264 #ifndef PTHREAD_CREATE_DETACHED
24265 #define PTHREAD_CREATE_DETACHED 1
24266 #endif
24267         pthread_t t;
24268         int status;
24269         int detach = PTHREAD_CREATE_DETACHED;
24270
24271 #if HAVE_PTHREADS > 4
24272         /* Final pthreads */
24273         pthread_attr_t attr;
24274
24275         status = pthread_attr_init(&attr);
24276         if( status ) return status;
24277
24278 #if HAVE_PTHREADS < 7
24279         status = pthread_attr_setdetachstate(&attr, &detach);
24280         if( status < 0 ) status = errno;
24281 #else
24282         status = pthread_attr_setdetachstate(&attr, detach);
24283 #endif
24284         if( status ) return status;
24285         status = pthread_create( &t, &attr, task, NULL );
24286 #if HAVE_PTHREADS < 7
24287         if( status < 0 ) status = errno;
24288 #endif
24289         if( status ) return status;
24290 #else
24291         /* Draft 4 pthreads */
24292         status = pthread_create( &t, pthread_attr_default, task, NULL );
24293         if( status ) return errno;
24294
24295         /* give thread a chance to complete */
24296         /* it should remain joinable and hence detachable */
24297         sleep( 1 );
24298
24299         status = pthread_detach( &t );
24300         if( status ) return errno;
24301 #endif
24302
24303 #ifdef HAVE_LINUX_THREADS
24304         pthread_kill_other_threads_np();
24305 #endif
24306
24307         return 0;
24308
24309   ;
24310   return 0;
24311 }
24312 _ACEOF
24313 rm -f conftest.$ac_objext conftest$ac_exeext
24314 if { (ac_try="$ac_link"
24315 case "(($ac_try" in
24316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317   *) ac_try_echo=$ac_try;;
24318 esac
24319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24320   (eval "$ac_link") 2>conftest.er1
24321   ac_status=$?
24322   grep -v '^ *+' conftest.er1 >conftest.err
24323   rm -f conftest.er1
24324   cat conftest.err >&5
24325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326   (exit $ac_status); } && {
24327          test -z "$ac_c_werror_flag" ||
24328          test ! -s conftest.err
24329        } && test -s conftest$ac_exeext &&
24330        $as_test_x conftest$ac_exeext; then
24331   ol_cv_pthread_lpthreads_lexc=yes
24332 else
24333   echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24335
24336         ol_cv_pthread_lpthreads_lexc=no
24337 fi
24338
24339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24340       conftest$ac_exeext conftest.$ac_ext
24341 else
24342   cat >conftest.$ac_ext <<_ACEOF
24343 /* confdefs.h.  */
24344 _ACEOF
24345 cat confdefs.h >>conftest.$ac_ext
24346 cat >>conftest.$ac_ext <<_ACEOF
24347 /* end confdefs.h.  */
24348
24349 /* pthread test headers */
24350 #include <pthread.h>
24351 #if HAVE_PTHREADS < 7
24352 #include <errno.h>
24353 #endif
24354 #ifndef NULL
24355 #define NULL (void*)0
24356 #endif
24357
24358 static void *task(p)
24359         void *p;
24360 {
24361         return (void *) (p == NULL);
24362 }
24363
24364
24365 int main(argc, argv)
24366         int argc;
24367         char **argv;
24368 {
24369
24370         /* pthread test function */
24371 #ifndef PTHREAD_CREATE_DETACHED
24372 #define PTHREAD_CREATE_DETACHED 1
24373 #endif
24374         pthread_t t;
24375         int status;
24376         int detach = PTHREAD_CREATE_DETACHED;
24377
24378 #if HAVE_PTHREADS > 4
24379         /* Final pthreads */
24380         pthread_attr_t attr;
24381
24382         status = pthread_attr_init(&attr);
24383         if( status ) return status;
24384
24385 #if HAVE_PTHREADS < 7
24386         status = pthread_attr_setdetachstate(&attr, &detach);
24387         if( status < 0 ) status = errno;
24388 #else
24389         status = pthread_attr_setdetachstate(&attr, detach);
24390 #endif
24391         if( status ) return status;
24392         status = pthread_create( &t, &attr, task, NULL );
24393 #if HAVE_PTHREADS < 7
24394         if( status < 0 ) status = errno;
24395 #endif
24396         if( status ) return status;
24397 #else
24398         /* Draft 4 pthreads */
24399         status = pthread_create( &t, pthread_attr_default, task, NULL );
24400         if( status ) return errno;
24401
24402         /* give thread a chance to complete */
24403         /* it should remain joinable and hence detachable */
24404         sleep( 1 );
24405
24406         status = pthread_detach( &t );
24407         if( status ) return errno;
24408 #endif
24409
24410 #ifdef HAVE_LINUX_THREADS
24411         pthread_kill_other_threads_np();
24412 #endif
24413
24414         return 0;
24415
24416 }
24417
24418 _ACEOF
24419 rm -f conftest$ac_exeext
24420 if { (ac_try="$ac_link"
24421 case "(($ac_try" in
24422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423   *) ac_try_echo=$ac_try;;
24424 esac
24425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426   (eval "$ac_link") 2>&5
24427   ac_status=$?
24428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24430   { (case "(($ac_try" in
24431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24432   *) ac_try_echo=$ac_try;;
24433 esac
24434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24435   (eval "$ac_try") 2>&5
24436   ac_status=$?
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); }; }; then
24439   ol_cv_pthread_lpthreads_lexc=yes
24440 else
24441   echo "$as_me: program exited with status $ac_status" >&5
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24444
24445 ( exit $ac_status )
24446 ol_cv_pthread_lpthreads_lexc=no
24447 fi
24448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24449 fi
24450
24451
24452
24453                 # restore the LIBS
24454                 LIBS="$ol_LIBS"
24455
24456 fi
24457 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24458 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24459
24460         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24461                 ol_link_pthreads="-lpthreads -lexc"
24462                 ol_link_threads=posix
24463         fi
24464 fi
24465
24466
24467                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24468 if test "$ol_link_threads" = no ; then
24469         # try -lpthreads
24470         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24471 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24472 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24473   echo $ECHO_N "(cached) $ECHO_C" >&6
24474 else
24475
24476                 # save the flags
24477                 ol_LIBS="$LIBS"
24478                 LIBS="-lpthreads $LIBS"
24479
24480                 if test "$cross_compiling" = yes; then
24481   cat >conftest.$ac_ext <<_ACEOF
24482 /* confdefs.h.  */
24483 _ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h.  */
24487
24488 /* pthread test headers */
24489 #include <pthread.h>
24490 #if HAVE_PTHREADS < 7
24491 #include <errno.h>
24492 #endif
24493 #ifndef NULL
24494 #define NULL (void*)0
24495 #endif
24496
24497 static void *task(p)
24498         void *p;
24499 {
24500         return (void *) (p == NULL);
24501 }
24502
24503 int
24504 main ()
24505 {
24506
24507         /* pthread test function */
24508 #ifndef PTHREAD_CREATE_DETACHED
24509 #define PTHREAD_CREATE_DETACHED 1
24510 #endif
24511         pthread_t t;
24512         int status;
24513         int detach = PTHREAD_CREATE_DETACHED;
24514
24515 #if HAVE_PTHREADS > 4
24516         /* Final pthreads */
24517         pthread_attr_t attr;
24518
24519         status = pthread_attr_init(&attr);
24520         if( status ) return status;
24521
24522 #if HAVE_PTHREADS < 7
24523         status = pthread_attr_setdetachstate(&attr, &detach);
24524         if( status < 0 ) status = errno;
24525 #else
24526         status = pthread_attr_setdetachstate(&attr, detach);
24527 #endif
24528         if( status ) return status;
24529         status = pthread_create( &t, &attr, task, NULL );
24530 #if HAVE_PTHREADS < 7
24531         if( status < 0 ) status = errno;
24532 #endif
24533         if( status ) return status;
24534 #else
24535         /* Draft 4 pthreads */
24536         status = pthread_create( &t, pthread_attr_default, task, NULL );
24537         if( status ) return errno;
24538
24539         /* give thread a chance to complete */
24540         /* it should remain joinable and hence detachable */
24541         sleep( 1 );
24542
24543         status = pthread_detach( &t );
24544         if( status ) return errno;
24545 #endif
24546
24547 #ifdef HAVE_LINUX_THREADS
24548         pthread_kill_other_threads_np();
24549 #endif
24550
24551         return 0;
24552
24553   ;
24554   return 0;
24555 }
24556 _ACEOF
24557 rm -f conftest.$ac_objext conftest$ac_exeext
24558 if { (ac_try="$ac_link"
24559 case "(($ac_try" in
24560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561   *) ac_try_echo=$ac_try;;
24562 esac
24563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564   (eval "$ac_link") 2>conftest.er1
24565   ac_status=$?
24566   grep -v '^ *+' conftest.er1 >conftest.err
24567   rm -f conftest.er1
24568   cat conftest.err >&5
24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570   (exit $ac_status); } && {
24571          test -z "$ac_c_werror_flag" ||
24572          test ! -s conftest.err
24573        } && test -s conftest$ac_exeext &&
24574        $as_test_x conftest$ac_exeext; then
24575   ol_cv_pthread_lib_lpthreads=yes
24576 else
24577   echo "$as_me: failed program was:" >&5
24578 sed 's/^/| /' conftest.$ac_ext >&5
24579
24580         ol_cv_pthread_lib_lpthreads=no
24581 fi
24582
24583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24584       conftest$ac_exeext conftest.$ac_ext
24585 else
24586   cat >conftest.$ac_ext <<_ACEOF
24587 /* confdefs.h.  */
24588 _ACEOF
24589 cat confdefs.h >>conftest.$ac_ext
24590 cat >>conftest.$ac_ext <<_ACEOF
24591 /* end confdefs.h.  */
24592
24593 /* pthread test headers */
24594 #include <pthread.h>
24595 #if HAVE_PTHREADS < 7
24596 #include <errno.h>
24597 #endif
24598 #ifndef NULL
24599 #define NULL (void*)0
24600 #endif
24601
24602 static void *task(p)
24603         void *p;
24604 {
24605         return (void *) (p == NULL);
24606 }
24607
24608
24609 int main(argc, argv)
24610         int argc;
24611         char **argv;
24612 {
24613
24614         /* pthread test function */
24615 #ifndef PTHREAD_CREATE_DETACHED
24616 #define PTHREAD_CREATE_DETACHED 1
24617 #endif
24618         pthread_t t;
24619         int status;
24620         int detach = PTHREAD_CREATE_DETACHED;
24621
24622 #if HAVE_PTHREADS > 4
24623         /* Final pthreads */
24624         pthread_attr_t attr;
24625
24626         status = pthread_attr_init(&attr);
24627         if( status ) return status;
24628
24629 #if HAVE_PTHREADS < 7
24630         status = pthread_attr_setdetachstate(&attr, &detach);
24631         if( status < 0 ) status = errno;
24632 #else
24633         status = pthread_attr_setdetachstate(&attr, detach);
24634 #endif
24635         if( status ) return status;
24636         status = pthread_create( &t, &attr, task, NULL );
24637 #if HAVE_PTHREADS < 7
24638         if( status < 0 ) status = errno;
24639 #endif
24640         if( status ) return status;
24641 #else
24642         /* Draft 4 pthreads */
24643         status = pthread_create( &t, pthread_attr_default, task, NULL );
24644         if( status ) return errno;
24645
24646         /* give thread a chance to complete */
24647         /* it should remain joinable and hence detachable */
24648         sleep( 1 );
24649
24650         status = pthread_detach( &t );
24651         if( status ) return errno;
24652 #endif
24653
24654 #ifdef HAVE_LINUX_THREADS
24655         pthread_kill_other_threads_np();
24656 #endif
24657
24658         return 0;
24659
24660 }
24661
24662 _ACEOF
24663 rm -f conftest$ac_exeext
24664 if { (ac_try="$ac_link"
24665 case "(($ac_try" in
24666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667   *) ac_try_echo=$ac_try;;
24668 esac
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670   (eval "$ac_link") 2>&5
24671   ac_status=$?
24672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24674   { (case "(($ac_try" in
24675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676   *) ac_try_echo=$ac_try;;
24677 esac
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679   (eval "$ac_try") 2>&5
24680   ac_status=$?
24681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682   (exit $ac_status); }; }; then
24683   ol_cv_pthread_lib_lpthreads=yes
24684 else
24685   echo "$as_me: program exited with status $ac_status" >&5
24686 echo "$as_me: failed program was:" >&5
24687 sed 's/^/| /' conftest.$ac_ext >&5
24688
24689 ( exit $ac_status )
24690 ol_cv_pthread_lib_lpthreads=no
24691 fi
24692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24693 fi
24694
24695
24696
24697                 # restore the LIBS
24698                 LIBS="$ol_LIBS"
24699
24700 fi
24701 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24702 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24703
24704         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24705                 ol_link_pthreads="-lpthreads"
24706                 ol_link_threads=posix
24707         fi
24708 fi
24709
24710
24711                 if test $ol_link_threads != no ; then
24712                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24713
24714                                                 save_CPPFLAGS="$CPPFLAGS"
24715                         save_LIBS="$LIBS"
24716                         LIBS="$LTHREAD_LIBS $LIBS"
24717
24718
24719
24720
24721 for ac_func in sched_yield pthread_yield thr_yield
24722 do
24723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24727   echo $ECHO_N "(cached) $ECHO_C" >&6
24728 else
24729   cat >conftest.$ac_ext <<_ACEOF
24730 /* confdefs.h.  */
24731 _ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h.  */
24735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24737 #define $ac_func innocuous_$ac_func
24738
24739 /* System header to define __stub macros and hopefully few prototypes,
24740     which can conflict with char $ac_func (); below.
24741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24742     <limits.h> exists even on freestanding compilers.  */
24743
24744 #ifdef __STDC__
24745 # include <limits.h>
24746 #else
24747 # include <assert.h>
24748 #endif
24749
24750 #undef $ac_func
24751
24752 /* Override any GCC internal prototype to avoid an error.
24753    Use char because int might match the return type of a GCC
24754    builtin and then its argument prototype would still apply.  */
24755 #ifdef __cplusplus
24756 extern "C"
24757 #endif
24758 char $ac_func ();
24759 /* The GNU C library defines this for functions which it implements
24760     to always fail with ENOSYS.  Some functions are actually named
24761     something starting with __ and the normal name is an alias.  */
24762 #if defined __stub_$ac_func || defined __stub___$ac_func
24763 choke me
24764 #endif
24765
24766 int
24767 main ()
24768 {
24769 return $ac_func ();
24770   ;
24771   return 0;
24772 }
24773 _ACEOF
24774 rm -f conftest.$ac_objext conftest$ac_exeext
24775 if { (ac_try="$ac_link"
24776 case "(($ac_try" in
24777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24778   *) ac_try_echo=$ac_try;;
24779 esac
24780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781   (eval "$ac_link") 2>conftest.er1
24782   ac_status=$?
24783   grep -v '^ *+' conftest.er1 >conftest.err
24784   rm -f conftest.er1
24785   cat conftest.err >&5
24786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787   (exit $ac_status); } && {
24788          test -z "$ac_c_werror_flag" ||
24789          test ! -s conftest.err
24790        } && test -s conftest$ac_exeext &&
24791        $as_test_x conftest$ac_exeext; then
24792   eval "$as_ac_var=yes"
24793 else
24794   echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24796
24797         eval "$as_ac_var=no"
24798 fi
24799
24800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24801       conftest$ac_exeext conftest.$ac_ext
24802 fi
24803 ac_res=`eval echo '${'$as_ac_var'}'`
24804                { echo "$as_me:$LINENO: result: $ac_res" >&5
24805 echo "${ECHO_T}$ac_res" >&6; }
24806 if test `eval echo '${'$as_ac_var'}'` = yes; then
24807   cat >>confdefs.h <<_ACEOF
24808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24809 _ACEOF
24810
24811 fi
24812 done
24813
24814
24815                         if test $ac_cv_func_sched_yield = no &&
24816                            test $ac_cv_func_pthread_yield = no &&
24817                            test $ac_cv_func_thr_yield = no ; then
24818                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24819 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24820 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24821   echo $ECHO_N "(cached) $ECHO_C" >&6
24822 else
24823   ac_check_lib_save_LIBS=$LIBS
24824 LIBS="-lrt  $LIBS"
24825 cat >conftest.$ac_ext <<_ACEOF
24826 /* confdefs.h.  */
24827 _ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h.  */
24831
24832 /* Override any GCC internal prototype to avoid an error.
24833    Use char because int might match the return type of a GCC
24834    builtin and then its argument prototype would still apply.  */
24835 #ifdef __cplusplus
24836 extern "C"
24837 #endif
24838 char sched_yield ();
24839 int
24840 main ()
24841 {
24842 return sched_yield ();
24843   ;
24844   return 0;
24845 }
24846 _ACEOF
24847 rm -f conftest.$ac_objext conftest$ac_exeext
24848 if { (ac_try="$ac_link"
24849 case "(($ac_try" in
24850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851   *) ac_try_echo=$ac_try;;
24852 esac
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854   (eval "$ac_link") 2>conftest.er1
24855   ac_status=$?
24856   grep -v '^ *+' conftest.er1 >conftest.err
24857   rm -f conftest.er1
24858   cat conftest.err >&5
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); } && {
24861          test -z "$ac_c_werror_flag" ||
24862          test ! -s conftest.err
24863        } && test -s conftest$ac_exeext &&
24864        $as_test_x conftest$ac_exeext; then
24865   ac_cv_lib_rt_sched_yield=yes
24866 else
24867   echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24869
24870         ac_cv_lib_rt_sched_yield=no
24871 fi
24872
24873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24874       conftest$ac_exeext conftest.$ac_ext
24875 LIBS=$ac_check_lib_save_LIBS
24876 fi
24877 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24878 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24879 if test $ac_cv_lib_rt_sched_yield = yes; then
24880   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24881
24882 cat >>confdefs.h <<\_ACEOF
24883 #define HAVE_SCHED_YIELD 1
24884 _ACEOF
24885
24886                                         ac_cv_func_sched_yield=yes
24887 else
24888   ac_cv_func_sched_yield=no
24889 fi
24890
24891                         fi
24892                         if test $ac_cv_func_sched_yield = no &&
24893                            test $ac_cv_func_pthread_yield = no &&
24894                            test "$ac_cv_func_thr_yield" = no ; then
24895                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24896 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24897                         fi
24898
24899
24900 for ac_func in pthread_kill
24901 do
24902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24906   echo $ECHO_N "(cached) $ECHO_C" >&6
24907 else
24908   cat >conftest.$ac_ext <<_ACEOF
24909 /* confdefs.h.  */
24910 _ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h.  */
24914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24916 #define $ac_func innocuous_$ac_func
24917
24918 /* System header to define __stub macros and hopefully few prototypes,
24919     which can conflict with char $ac_func (); below.
24920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24921     <limits.h> exists even on freestanding compilers.  */
24922
24923 #ifdef __STDC__
24924 # include <limits.h>
24925 #else
24926 # include <assert.h>
24927 #endif
24928
24929 #undef $ac_func
24930
24931 /* Override any GCC internal prototype to avoid an error.
24932    Use char because int might match the return type of a GCC
24933    builtin and then its argument prototype would still apply.  */
24934 #ifdef __cplusplus
24935 extern "C"
24936 #endif
24937 char $ac_func ();
24938 /* The GNU C library defines this for functions which it implements
24939     to always fail with ENOSYS.  Some functions are actually named
24940     something starting with __ and the normal name is an alias.  */
24941 #if defined __stub_$ac_func || defined __stub___$ac_func
24942 choke me
24943 #endif
24944
24945 int
24946 main ()
24947 {
24948 return $ac_func ();
24949   ;
24950   return 0;
24951 }
24952 _ACEOF
24953 rm -f conftest.$ac_objext conftest$ac_exeext
24954 if { (ac_try="$ac_link"
24955 case "(($ac_try" in
24956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24957   *) ac_try_echo=$ac_try;;
24958 esac
24959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24960   (eval "$ac_link") 2>conftest.er1
24961   ac_status=$?
24962   grep -v '^ *+' conftest.er1 >conftest.err
24963   rm -f conftest.er1
24964   cat conftest.err >&5
24965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966   (exit $ac_status); } && {
24967          test -z "$ac_c_werror_flag" ||
24968          test ! -s conftest.err
24969        } && test -s conftest$ac_exeext &&
24970        $as_test_x conftest$ac_exeext; then
24971   eval "$as_ac_var=yes"
24972 else
24973   echo "$as_me: failed program was:" >&5
24974 sed 's/^/| /' conftest.$ac_ext >&5
24975
24976         eval "$as_ac_var=no"
24977 fi
24978
24979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24980       conftest$ac_exeext conftest.$ac_ext
24981 fi
24982 ac_res=`eval echo '${'$as_ac_var'}'`
24983                { echo "$as_me:$LINENO: result: $ac_res" >&5
24984 echo "${ECHO_T}$ac_res" >&6; }
24985 if test `eval echo '${'$as_ac_var'}'` = yes; then
24986   cat >>confdefs.h <<_ACEOF
24987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24988 _ACEOF
24989
24990 fi
24991 done
24992
24993
24994                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24995 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24996 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24997   echo $ECHO_N "(cached) $ECHO_C" >&6
24998 else
24999
25000                                                                 cat >conftest.$ac_ext <<_ACEOF
25001 /* confdefs.h.  */
25002 _ACEOF
25003 cat confdefs.h >>conftest.$ac_ext
25004 cat >>conftest.$ac_ext <<_ACEOF
25005 /* end confdefs.h.  */
25006
25007 #include <pthread.h>
25008 pthread_rwlock_t rwlock;
25009
25010 int
25011 main ()
25012 {
25013 pthread_rwlock_destroy(&rwlock);
25014   ;
25015   return 0;
25016 }
25017 _ACEOF
25018 rm -f conftest.$ac_objext conftest$ac_exeext
25019 if { (ac_try="$ac_link"
25020 case "(($ac_try" in
25021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022   *) ac_try_echo=$ac_try;;
25023 esac
25024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025   (eval "$ac_link") 2>conftest.er1
25026   ac_status=$?
25027   grep -v '^ *+' conftest.er1 >conftest.err
25028   rm -f conftest.er1
25029   cat conftest.err >&5
25030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031   (exit $ac_status); } && {
25032          test -z "$ac_c_werror_flag" ||
25033          test ! -s conftest.err
25034        } && test -s conftest$ac_exeext &&
25035        $as_test_x conftest$ac_exeext; then
25036   ol_cv_func_pthread_rwlock_destroy=yes
25037 else
25038   echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25040
25041         ol_cv_func_pthread_rwlock_destroy=no
25042 fi
25043
25044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25045       conftest$ac_exeext conftest.$ac_ext
25046
25047 fi
25048 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
25049 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
25050                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
25051
25052 cat >>confdefs.h <<\_ACEOF
25053 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
25054 _ACEOF
25055
25056                         fi
25057
25058                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
25059 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
25060 if test "${ol_cv_func_pthread_detach+set}" = set; then
25061   echo $ECHO_N "(cached) $ECHO_C" >&6
25062 else
25063
25064                                                                 cat >conftest.$ac_ext <<_ACEOF
25065 /* confdefs.h.  */
25066 _ACEOF
25067 cat confdefs.h >>conftest.$ac_ext
25068 cat >>conftest.$ac_ext <<_ACEOF
25069 /* end confdefs.h.  */
25070
25071 #include <pthread.h>
25072 #ifndef NULL
25073 #define NULL (void*)0
25074 #endif
25075
25076 int
25077 main ()
25078 {
25079 pthread_detach(NULL);
25080   ;
25081   return 0;
25082 }
25083 _ACEOF
25084 rm -f conftest.$ac_objext conftest$ac_exeext
25085 if { (ac_try="$ac_link"
25086 case "(($ac_try" in
25087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088   *) ac_try_echo=$ac_try;;
25089 esac
25090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25091   (eval "$ac_link") 2>conftest.er1
25092   ac_status=$?
25093   grep -v '^ *+' conftest.er1 >conftest.err
25094   rm -f conftest.er1
25095   cat conftest.err >&5
25096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097   (exit $ac_status); } && {
25098          test -z "$ac_c_werror_flag" ||
25099          test ! -s conftest.err
25100        } && test -s conftest$ac_exeext &&
25101        $as_test_x conftest$ac_exeext; then
25102   ol_cv_func_pthread_detach=yes
25103 else
25104   echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25106
25107         ol_cv_func_pthread_detach=no
25108 fi
25109
25110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25111       conftest$ac_exeext conftest.$ac_ext
25112
25113 fi
25114 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
25115 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
25116
25117                         if test $ol_cv_func_pthread_detach = no ; then
25118                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
25119 echo "$as_me: error: could not locate pthread_detach()" >&2;}
25120    { (exit 1); exit 1; }; }
25121                         fi
25122
25123
25124 cat >>confdefs.h <<\_ACEOF
25125 #define HAVE_PTHREAD_DETACH 1
25126 _ACEOF
25127
25128
25129
25130
25131
25132
25133 for ac_func in \
25134                                 pthread_setconcurrency \
25135                                 pthread_getconcurrency \
25136                                 thr_setconcurrency \
25137                                 thr_getconcurrency \
25138
25139 do
25140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25144   echo $ECHO_N "(cached) $ECHO_C" >&6
25145 else
25146   cat >conftest.$ac_ext <<_ACEOF
25147 /* confdefs.h.  */
25148 _ACEOF
25149 cat confdefs.h >>conftest.$ac_ext
25150 cat >>conftest.$ac_ext <<_ACEOF
25151 /* end confdefs.h.  */
25152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25154 #define $ac_func innocuous_$ac_func
25155
25156 /* System header to define __stub macros and hopefully few prototypes,
25157     which can conflict with char $ac_func (); below.
25158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25159     <limits.h> exists even on freestanding compilers.  */
25160
25161 #ifdef __STDC__
25162 # include <limits.h>
25163 #else
25164 # include <assert.h>
25165 #endif
25166
25167 #undef $ac_func
25168
25169 /* Override any GCC internal prototype to avoid an error.
25170    Use char because int might match the return type of a GCC
25171    builtin and then its argument prototype would still apply.  */
25172 #ifdef __cplusplus
25173 extern "C"
25174 #endif
25175 char $ac_func ();
25176 /* The GNU C library defines this for functions which it implements
25177     to always fail with ENOSYS.  Some functions are actually named
25178     something starting with __ and the normal name is an alias.  */
25179 #if defined __stub_$ac_func || defined __stub___$ac_func
25180 choke me
25181 #endif
25182
25183 int
25184 main ()
25185 {
25186 return $ac_func ();
25187   ;
25188   return 0;
25189 }
25190 _ACEOF
25191 rm -f conftest.$ac_objext conftest$ac_exeext
25192 if { (ac_try="$ac_link"
25193 case "(($ac_try" in
25194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195   *) ac_try_echo=$ac_try;;
25196 esac
25197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25198   (eval "$ac_link") 2>conftest.er1
25199   ac_status=$?
25200   grep -v '^ *+' conftest.er1 >conftest.err
25201   rm -f conftest.er1
25202   cat conftest.err >&5
25203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204   (exit $ac_status); } && {
25205          test -z "$ac_c_werror_flag" ||
25206          test ! -s conftest.err
25207        } && test -s conftest$ac_exeext &&
25208        $as_test_x conftest$ac_exeext; then
25209   eval "$as_ac_var=yes"
25210 else
25211   echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.$ac_ext >&5
25213
25214         eval "$as_ac_var=no"
25215 fi
25216
25217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25218       conftest$ac_exeext conftest.$ac_ext
25219 fi
25220 ac_res=`eval echo '${'$as_ac_var'}'`
25221                { echo "$as_me:$LINENO: result: $ac_res" >&5
25222 echo "${ECHO_T}$ac_res" >&6; }
25223 if test `eval echo '${'$as_ac_var'}'` = yes; then
25224   cat >>confdefs.h <<_ACEOF
25225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25226 _ACEOF
25227
25228 fi
25229 done
25230
25231
25232
25233
25234 for ac_func in pthread_kill_other_threads_np
25235 do
25236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25240   echo $ECHO_N "(cached) $ECHO_C" >&6
25241 else
25242   cat >conftest.$ac_ext <<_ACEOF
25243 /* confdefs.h.  */
25244 _ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h.  */
25248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25250 #define $ac_func innocuous_$ac_func
25251
25252 /* System header to define __stub macros and hopefully few prototypes,
25253     which can conflict with char $ac_func (); below.
25254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25255     <limits.h> exists even on freestanding compilers.  */
25256
25257 #ifdef __STDC__
25258 # include <limits.h>
25259 #else
25260 # include <assert.h>
25261 #endif
25262
25263 #undef $ac_func
25264
25265 /* Override any GCC internal prototype to avoid an error.
25266    Use char because int might match the return type of a GCC
25267    builtin and then its argument prototype would still apply.  */
25268 #ifdef __cplusplus
25269 extern "C"
25270 #endif
25271 char $ac_func ();
25272 /* The GNU C library defines this for functions which it implements
25273     to always fail with ENOSYS.  Some functions are actually named
25274     something starting with __ and the normal name is an alias.  */
25275 #if defined __stub_$ac_func || defined __stub___$ac_func
25276 choke me
25277 #endif
25278
25279 int
25280 main ()
25281 {
25282 return $ac_func ();
25283   ;
25284   return 0;
25285 }
25286 _ACEOF
25287 rm -f conftest.$ac_objext conftest$ac_exeext
25288 if { (ac_try="$ac_link"
25289 case "(($ac_try" in
25290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25291   *) ac_try_echo=$ac_try;;
25292 esac
25293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25294   (eval "$ac_link") 2>conftest.er1
25295   ac_status=$?
25296   grep -v '^ *+' conftest.er1 >conftest.err
25297   rm -f conftest.er1
25298   cat conftest.err >&5
25299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300   (exit $ac_status); } && {
25301          test -z "$ac_c_werror_flag" ||
25302          test ! -s conftest.err
25303        } && test -s conftest$ac_exeext &&
25304        $as_test_x conftest$ac_exeext; then
25305   eval "$as_ac_var=yes"
25306 else
25307   echo "$as_me: failed program was:" >&5
25308 sed 's/^/| /' conftest.$ac_ext >&5
25309
25310         eval "$as_ac_var=no"
25311 fi
25312
25313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25314       conftest$ac_exeext conftest.$ac_ext
25315 fi
25316 ac_res=`eval echo '${'$as_ac_var'}'`
25317                { echo "$as_me:$LINENO: result: $ac_res" >&5
25318 echo "${ECHO_T}$ac_res" >&6; }
25319 if test `eval echo '${'$as_ac_var'}'` = yes; then
25320   cat >>confdefs.h <<_ACEOF
25321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25322 _ACEOF
25323
25324 fi
25325 done
25326
25327         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25328 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25329 if test "${ol_cv_sys_linux_threads+set}" = set; then
25330   echo $ECHO_N "(cached) $ECHO_C" >&6
25331 else
25332   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25333 fi
25334 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25335 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25336
25337
25338
25339
25340         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25341 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25342 if test "${ol_cv_linux_threads+set}" = set; then
25343   echo $ECHO_N "(cached) $ECHO_C" >&6
25344 else
25345
25346                 if test $ol_cv_header_linux_threads = yes &&
25347                    test $ol_cv_sys_linux_threads = yes; then
25348                         ol_cv_linux_threads=yes
25349                 elif test $ol_cv_header_linux_threads = no &&
25350                      test $ol_cv_sys_linux_threads = no; then
25351                         ol_cv_linux_threads=no
25352                 else
25353                         ol_cv_linux_threads=error
25354                 fi
25355
25356 fi
25357 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25358 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25359
25360
25361                         if test $ol_cv_linux_threads = error; then
25362                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25363 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25364    { (exit 1); exit 1; }; };
25365                         fi
25366
25367                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25368 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25369 if test "${ol_cv_pthread_create_works+set}" = set; then
25370   echo $ECHO_N "(cached) $ECHO_C" >&6
25371 else
25372
25373                         if test "$cross_compiling" = yes; then
25374                                 ol_cv_pthread_create_works=yes
25375 else
25376   cat >conftest.$ac_ext <<_ACEOF
25377 /* confdefs.h.  */
25378 _ACEOF
25379 cat confdefs.h >>conftest.$ac_ext
25380 cat >>conftest.$ac_ext <<_ACEOF
25381 /* end confdefs.h.  */
25382
25383 /* pthread test headers */
25384 #include <pthread.h>
25385 #if HAVE_PTHREADS < 7
25386 #include <errno.h>
25387 #endif
25388 #ifndef NULL
25389 #define NULL (void*)0
25390 #endif
25391
25392 static void *task(p)
25393         void *p;
25394 {
25395         return (void *) (p == NULL);
25396 }
25397
25398
25399 int main(argc, argv)
25400         int argc;
25401         char **argv;
25402 {
25403
25404         /* pthread test function */
25405 #ifndef PTHREAD_CREATE_DETACHED
25406 #define PTHREAD_CREATE_DETACHED 1
25407 #endif
25408         pthread_t t;
25409         int status;
25410         int detach = PTHREAD_CREATE_DETACHED;
25411
25412 #if HAVE_PTHREADS > 4
25413         /* Final pthreads */
25414         pthread_attr_t attr;
25415
25416         status = pthread_attr_init(&attr);
25417         if( status ) return status;
25418
25419 #if HAVE_PTHREADS < 7
25420         status = pthread_attr_setdetachstate(&attr, &detach);
25421         if( status < 0 ) status = errno;
25422 #else
25423         status = pthread_attr_setdetachstate(&attr, detach);
25424 #endif
25425         if( status ) return status;
25426         status = pthread_create( &t, &attr, task, NULL );
25427 #if HAVE_PTHREADS < 7
25428         if( status < 0 ) status = errno;
25429 #endif
25430         if( status ) return status;
25431 #else
25432         /* Draft 4 pthreads */
25433         status = pthread_create( &t, pthread_attr_default, task, NULL );
25434         if( status ) return errno;
25435
25436         /* give thread a chance to complete */
25437         /* it should remain joinable and hence detachable */
25438         sleep( 1 );
25439
25440         status = pthread_detach( &t );
25441         if( status ) return errno;
25442 #endif
25443
25444 #ifdef HAVE_LINUX_THREADS
25445         pthread_kill_other_threads_np();
25446 #endif
25447
25448         return 0;
25449
25450 }
25451
25452 _ACEOF
25453 rm -f conftest$ac_exeext
25454 if { (ac_try="$ac_link"
25455 case "(($ac_try" in
25456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25457   *) ac_try_echo=$ac_try;;
25458 esac
25459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25460   (eval "$ac_link") 2>&5
25461   ac_status=$?
25462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25464   { (case "(($ac_try" in
25465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25466   *) ac_try_echo=$ac_try;;
25467 esac
25468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25469   (eval "$ac_try") 2>&5
25470   ac_status=$?
25471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472   (exit $ac_status); }; }; then
25473   ol_cv_pthread_create_works=yes
25474 else
25475   echo "$as_me: program exited with status $ac_status" >&5
25476 echo "$as_me: failed program was:" >&5
25477 sed 's/^/| /' conftest.$ac_ext >&5
25478
25479 ( exit $ac_status )
25480 ol_cv_pthread_create_works=no
25481 fi
25482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25483 fi
25484
25485
25486 fi
25487 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25488 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25489
25490                         if test $ol_cv_pthread_create_works = no ; then
25491                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25492 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25493    { (exit 1); exit 1; }; }
25494                         fi
25495
25496                         ol_replace_broken_yield=no
25497
25498                         if test $ol_replace_broken_yield = yes ; then
25499
25500 cat >>confdefs.h <<\_ACEOF
25501 #define REPLACE_BROKEN_YIELD 1
25502 _ACEOF
25503
25504                         fi
25505
25506                                                 if test $ol_with_yielding_select = auto ; then
25507                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25508 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25509 if test "${ol_cv_pthread_select_yields+set}" = set; then
25510   echo $ECHO_N "(cached) $ECHO_C" >&6
25511 else
25512
25513                                 if test "$cross_compiling" = yes; then
25514   ol_cv_pthread_select_yields=cross
25515 else
25516   cat >conftest.$ac_ext <<_ACEOF
25517 /* confdefs.h.  */
25518 _ACEOF
25519 cat confdefs.h >>conftest.$ac_ext
25520 cat >>conftest.$ac_ext <<_ACEOF
25521 /* end confdefs.h.  */
25522
25523 #include <sys/types.h>
25524 #include <sys/time.h>
25525 #include <unistd.h>
25526 #include <pthread.h>
25527 #ifndef NULL
25528 #define NULL (void*) 0
25529 #endif
25530
25531 static int fildes[2];
25532
25533 static void *task(p)
25534         void *p;
25535 {
25536         int i;
25537         struct timeval tv;
25538
25539         fd_set rfds;
25540
25541         tv.tv_sec=10;
25542         tv.tv_usec=0;
25543
25544         FD_ZERO(&rfds);
25545         FD_SET(fildes[0], &rfds);
25546
25547         /* we're not interested in any fds */
25548         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25549
25550         if(i < 0) {
25551                 perror("select");
25552                 exit(10);
25553         }
25554
25555         exit(0); /* if we exit here, the select blocked the whole process */
25556 }
25557
25558 int main(argc, argv)
25559         int argc;
25560         char **argv;
25561 {
25562         pthread_t t;
25563
25564         /* create a pipe to select */
25565         if(pipe(&fildes[0])) {
25566                 perror("select");
25567                 exit(1);
25568         }
25569
25570 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25571         (void) pthread_setconcurrency(2);
25572 #else
25573 #ifdef HAVE_THR_SETCONCURRENCY
25574         /* Set Solaris LWP concurrency to 2 */
25575         thr_setconcurrency(2);
25576 #endif
25577 #endif
25578
25579 #if HAVE_PTHREADS < 6
25580         pthread_create(&t, pthread_attr_default, task, NULL);
25581 #else
25582         pthread_create(&t, NULL, task, NULL);
25583 #endif
25584
25585         /* make sure task runs first */
25586 #ifdef HAVE_THR_YIELD
25587         thr_yield();
25588 #elif defined( HAVE_SCHED_YIELD )
25589         sched_yield();
25590 #elif defined( HAVE_PTHREAD_YIELD )
25591         pthread_yield();
25592 #endif
25593
25594         exit(2);
25595 }
25596 _ACEOF
25597 rm -f conftest$ac_exeext
25598 if { (ac_try="$ac_link"
25599 case "(($ac_try" in
25600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25601   *) ac_try_echo=$ac_try;;
25602 esac
25603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25604   (eval "$ac_link") 2>&5
25605   ac_status=$?
25606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25608   { (case "(($ac_try" in
25609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25610   *) ac_try_echo=$ac_try;;
25611 esac
25612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25613   (eval "$ac_try") 2>&5
25614   ac_status=$?
25615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616   (exit $ac_status); }; }; then
25617   ol_cv_pthread_select_yields=no
25618 else
25619   echo "$as_me: program exited with status $ac_status" >&5
25620 echo "$as_me: failed program was:" >&5
25621 sed 's/^/| /' conftest.$ac_ext >&5
25622
25623 ( exit $ac_status )
25624 ol_cv_pthread_select_yields=yes
25625 fi
25626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25627 fi
25628
25629
25630 fi
25631 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25632 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25633
25634                                 if test $ol_cv_pthread_select_yields = cross ; then
25635                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25636 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25637    { (exit 1); exit 1; }; }
25638                                 fi
25639
25640                                 if test $ol_cv_pthread_select_yields = yes ; then
25641                                         ol_with_yielding_select=yes
25642                                 fi
25643                         fi
25644
25645                                                 CPPFLAGS="$save_CPPFLAGS"
25646                         LIBS="$save_LIBS"
25647                 else
25648                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25649 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25650    { (exit 1); exit 1; }; }
25651                 fi
25652         fi
25653
25654         if test $ol_with_threads = posix ; then
25655                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25656 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25657    { (exit 1); exit 1; }; }
25658         fi
25659         ;;
25660 esac
25661
25662 case $ol_with_threads in auto | yes | mach)
25663
25664
25665
25666 for ac_header in mach/cthreads.h cthreads.h
25667 do
25668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25670   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25673   echo $ECHO_N "(cached) $ECHO_C" >&6
25674 fi
25675 ac_res=`eval echo '${'$as_ac_Header'}'`
25676                { echo "$as_me:$LINENO: result: $ac_res" >&5
25677 echo "${ECHO_T}$ac_res" >&6; }
25678 else
25679   # Is the header compilable?
25680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25682 cat >conftest.$ac_ext <<_ACEOF
25683 /* confdefs.h.  */
25684 _ACEOF
25685 cat confdefs.h >>conftest.$ac_ext
25686 cat >>conftest.$ac_ext <<_ACEOF
25687 /* end confdefs.h.  */
25688 $ac_includes_default
25689 #include <$ac_header>
25690 _ACEOF
25691 rm -f conftest.$ac_objext
25692 if { (ac_try="$ac_compile"
25693 case "(($ac_try" in
25694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25695   *) ac_try_echo=$ac_try;;
25696 esac
25697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25698   (eval "$ac_compile") 2>conftest.er1
25699   ac_status=$?
25700   grep -v '^ *+' conftest.er1 >conftest.err
25701   rm -f conftest.er1
25702   cat conftest.err >&5
25703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704   (exit $ac_status); } && {
25705          test -z "$ac_c_werror_flag" ||
25706          test ! -s conftest.err
25707        } && test -s conftest.$ac_objext; then
25708   ac_header_compiler=yes
25709 else
25710   echo "$as_me: failed program was:" >&5
25711 sed 's/^/| /' conftest.$ac_ext >&5
25712
25713         ac_header_compiler=no
25714 fi
25715
25716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25718 echo "${ECHO_T}$ac_header_compiler" >&6; }
25719
25720 # Is the header present?
25721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25723 cat >conftest.$ac_ext <<_ACEOF
25724 /* confdefs.h.  */
25725 _ACEOF
25726 cat confdefs.h >>conftest.$ac_ext
25727 cat >>conftest.$ac_ext <<_ACEOF
25728 /* end confdefs.h.  */
25729 #include <$ac_header>
25730 _ACEOF
25731 if { (ac_try="$ac_cpp conftest.$ac_ext"
25732 case "(($ac_try" in
25733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25734   *) ac_try_echo=$ac_try;;
25735 esac
25736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25738   ac_status=$?
25739   grep -v '^ *+' conftest.er1 >conftest.err
25740   rm -f conftest.er1
25741   cat conftest.err >&5
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); } >/dev/null && {
25744          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25745          test ! -s conftest.err
25746        }; then
25747   ac_header_preproc=yes
25748 else
25749   echo "$as_me: failed program was:" >&5
25750 sed 's/^/| /' conftest.$ac_ext >&5
25751
25752   ac_header_preproc=no
25753 fi
25754
25755 rm -f conftest.err conftest.$ac_ext
25756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25757 echo "${ECHO_T}$ac_header_preproc" >&6; }
25758
25759 # So?  What about this header?
25760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25761   yes:no: )
25762     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25766     ac_header_preproc=yes
25767     ;;
25768   no:yes:* )
25769     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25771     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25772 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25773     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25775     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25776 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25779     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25781     ( cat <<\_ASBOX
25782 ## --------------------------------------------- ##
25783 ## Report this to <http://www.openldap.org/its/> ##
25784 ## --------------------------------------------- ##
25785 _ASBOX
25786      ) | sed "s/^/$as_me: WARNING:     /" >&2
25787     ;;
25788 esac
25789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25792   echo $ECHO_N "(cached) $ECHO_C" >&6
25793 else
25794   eval "$as_ac_Header=\$ac_header_preproc"
25795 fi
25796 ac_res=`eval echo '${'$as_ac_Header'}'`
25797                { echo "$as_me:$LINENO: result: $ac_res" >&5
25798 echo "${ECHO_T}$ac_res" >&6; }
25799
25800 fi
25801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25802   cat >>confdefs.h <<_ACEOF
25803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25804 _ACEOF
25805
25806 fi
25807
25808 done
25809
25810         if test $ac_cv_header_mach_cthreads_h = yes ; then
25811                 ol_with_threads=found
25812
25813                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25814 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25815 if test "${ac_cv_func_cthread_fork+set}" = set; then
25816   echo $ECHO_N "(cached) $ECHO_C" >&6
25817 else
25818   cat >conftest.$ac_ext <<_ACEOF
25819 /* confdefs.h.  */
25820 _ACEOF
25821 cat confdefs.h >>conftest.$ac_ext
25822 cat >>conftest.$ac_ext <<_ACEOF
25823 /* end confdefs.h.  */
25824 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25826 #define cthread_fork innocuous_cthread_fork
25827
25828 /* System header to define __stub macros and hopefully few prototypes,
25829     which can conflict with char cthread_fork (); below.
25830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25831     <limits.h> exists even on freestanding compilers.  */
25832
25833 #ifdef __STDC__
25834 # include <limits.h>
25835 #else
25836 # include <assert.h>
25837 #endif
25838
25839 #undef cthread_fork
25840
25841 /* Override any GCC internal prototype to avoid an error.
25842    Use char because int might match the return type of a GCC
25843    builtin and then its argument prototype would still apply.  */
25844 #ifdef __cplusplus
25845 extern "C"
25846 #endif
25847 char cthread_fork ();
25848 /* The GNU C library defines this for functions which it implements
25849     to always fail with ENOSYS.  Some functions are actually named
25850     something starting with __ and the normal name is an alias.  */
25851 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25852 choke me
25853 #endif
25854
25855 int
25856 main ()
25857 {
25858 return cthread_fork ();
25859   ;
25860   return 0;
25861 }
25862 _ACEOF
25863 rm -f conftest.$ac_objext conftest$ac_exeext
25864 if { (ac_try="$ac_link"
25865 case "(($ac_try" in
25866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25867   *) ac_try_echo=$ac_try;;
25868 esac
25869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25870   (eval "$ac_link") 2>conftest.er1
25871   ac_status=$?
25872   grep -v '^ *+' conftest.er1 >conftest.err
25873   rm -f conftest.er1
25874   cat conftest.err >&5
25875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876   (exit $ac_status); } && {
25877          test -z "$ac_c_werror_flag" ||
25878          test ! -s conftest.err
25879        } && test -s conftest$ac_exeext &&
25880        $as_test_x conftest$ac_exeext; then
25881   ac_cv_func_cthread_fork=yes
25882 else
25883   echo "$as_me: failed program was:" >&5
25884 sed 's/^/| /' conftest.$ac_ext >&5
25885
25886         ac_cv_func_cthread_fork=no
25887 fi
25888
25889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25890       conftest$ac_exeext conftest.$ac_ext
25891 fi
25892 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25893 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25894 if test $ac_cv_func_cthread_fork = yes; then
25895   ol_link_threads=yes
25896 fi
25897
25898
25899                 if test $ol_link_threads = no ; then
25900                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25901 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25902 if test "${ol_cv_cthread_all_load+set}" = set; then
25903   echo $ECHO_N "(cached) $ECHO_C" >&6
25904 else
25905
25906                                                                 save_LIBS="$LIBS"
25907                                 LIBS="-all_load $LIBS"
25908                                 cat >conftest.$ac_ext <<_ACEOF
25909 /* confdefs.h.  */
25910 _ACEOF
25911 cat confdefs.h >>conftest.$ac_ext
25912 cat >>conftest.$ac_ext <<_ACEOF
25913 /* end confdefs.h.  */
25914 #include <mach/cthreads.h>
25915 int
25916 main ()
25917 {
25918
25919                                         cthread_fork((void *)0, (void *)0);
25920
25921   ;
25922   return 0;
25923 }
25924 _ACEOF
25925 rm -f conftest.$ac_objext conftest$ac_exeext
25926 if { (ac_try="$ac_link"
25927 case "(($ac_try" in
25928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25929   *) ac_try_echo=$ac_try;;
25930 esac
25931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25932   (eval "$ac_link") 2>conftest.er1
25933   ac_status=$?
25934   grep -v '^ *+' conftest.er1 >conftest.err
25935   rm -f conftest.er1
25936   cat conftest.err >&5
25937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938   (exit $ac_status); } && {
25939          test -z "$ac_c_werror_flag" ||
25940          test ! -s conftest.err
25941        } && test -s conftest$ac_exeext &&
25942        $as_test_x conftest$ac_exeext; then
25943   ol_cv_cthread_all_load=yes
25944 else
25945   echo "$as_me: failed program was:" >&5
25946 sed 's/^/| /' conftest.$ac_ext >&5
25947
25948         ol_cv_cthread_all_load=no
25949 fi
25950
25951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25952       conftest$ac_exeext conftest.$ac_ext
25953                                                                 LIBS="$save_LIBS"
25954
25955 fi
25956 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25957 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25958
25959                         if test $ol_cv_cthread_all_load = yes ; then
25960                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25961                                 ol_link_threads=mach
25962                                 ol_with_threads=found
25963                         fi
25964                 fi
25965
25966         elif test $ac_cv_header_cthreads_h = yes ; then
25967
25968                 ol_with_threads=found
25969
25970                                 save_LIBS="$LIBS"
25971                 LIBS="$LIBS -lthreads"
25972                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25973 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25974 if test "${ac_cv_func_cthread_fork+set}" = set; then
25975   echo $ECHO_N "(cached) $ECHO_C" >&6
25976 else
25977   cat >conftest.$ac_ext <<_ACEOF
25978 /* confdefs.h.  */
25979 _ACEOF
25980 cat confdefs.h >>conftest.$ac_ext
25981 cat >>conftest.$ac_ext <<_ACEOF
25982 /* end confdefs.h.  */
25983 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25985 #define cthread_fork innocuous_cthread_fork
25986
25987 /* System header to define __stub macros and hopefully few prototypes,
25988     which can conflict with char cthread_fork (); below.
25989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25990     <limits.h> exists even on freestanding compilers.  */
25991
25992 #ifdef __STDC__
25993 # include <limits.h>
25994 #else
25995 # include <assert.h>
25996 #endif
25997
25998 #undef cthread_fork
25999
26000 /* Override any GCC internal prototype to avoid an error.
26001    Use char because int might match the return type of a GCC
26002    builtin and then its argument prototype would still apply.  */
26003 #ifdef __cplusplus
26004 extern "C"
26005 #endif
26006 char cthread_fork ();
26007 /* The GNU C library defines this for functions which it implements
26008     to always fail with ENOSYS.  Some functions are actually named
26009     something starting with __ and the normal name is an alias.  */
26010 #if defined __stub_cthread_fork || defined __stub___cthread_fork
26011 choke me
26012 #endif
26013
26014 int
26015 main ()
26016 {
26017 return cthread_fork ();
26018   ;
26019   return 0;
26020 }
26021 _ACEOF
26022 rm -f conftest.$ac_objext conftest$ac_exeext
26023 if { (ac_try="$ac_link"
26024 case "(($ac_try" in
26025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26026   *) ac_try_echo=$ac_try;;
26027 esac
26028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26029   (eval "$ac_link") 2>conftest.er1
26030   ac_status=$?
26031   grep -v '^ *+' conftest.er1 >conftest.err
26032   rm -f conftest.er1
26033   cat conftest.err >&5
26034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035   (exit $ac_status); } && {
26036          test -z "$ac_c_werror_flag" ||
26037          test ! -s conftest.err
26038        } && test -s conftest$ac_exeext &&
26039        $as_test_x conftest$ac_exeext; then
26040   ac_cv_func_cthread_fork=yes
26041 else
26042   echo "$as_me: failed program was:" >&5
26043 sed 's/^/| /' conftest.$ac_ext >&5
26044
26045         ac_cv_func_cthread_fork=no
26046 fi
26047
26048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26049       conftest$ac_exeext conftest.$ac_ext
26050 fi
26051 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
26052 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
26053 if test $ac_cv_func_cthread_fork = yes; then
26054   ol_link_threads=yes
26055 fi
26056
26057                 LIBS="$save_LIBS"
26058
26059                 if test $ol_link_threads = yes ; then
26060                         LTHREAD_LIBS="-lthreads"
26061                         ol_link_threads=mach
26062                         ol_with_threads=found
26063                 else
26064                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26065 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26066    { (exit 1); exit 1; }; }
26067                 fi
26068
26069         elif test $ol_with_threads = mach ; then
26070                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
26071 echo "$as_me: error: could not locate Mach CThreads" >&2;}
26072    { (exit 1); exit 1; }; }
26073         fi
26074
26075         if test $ol_link_threads = mach ; then
26076
26077 cat >>confdefs.h <<\_ACEOF
26078 #define HAVE_MACH_CTHREADS 1
26079 _ACEOF
26080
26081         elif test $ol_with_threads = found ; then
26082                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26083 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26084    { (exit 1); exit 1; }; }
26085         fi
26086         ;;
26087 esac
26088
26089 case $ol_with_threads in auto | yes | pth)
26090
26091
26092 for ac_header in pth.h
26093 do
26094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26096   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26099   echo $ECHO_N "(cached) $ECHO_C" >&6
26100 fi
26101 ac_res=`eval echo '${'$as_ac_Header'}'`
26102                { echo "$as_me:$LINENO: result: $ac_res" >&5
26103 echo "${ECHO_T}$ac_res" >&6; }
26104 else
26105   # Is the header compilable?
26106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26108 cat >conftest.$ac_ext <<_ACEOF
26109 /* confdefs.h.  */
26110 _ACEOF
26111 cat confdefs.h >>conftest.$ac_ext
26112 cat >>conftest.$ac_ext <<_ACEOF
26113 /* end confdefs.h.  */
26114 $ac_includes_default
26115 #include <$ac_header>
26116 _ACEOF
26117 rm -f conftest.$ac_objext
26118 if { (ac_try="$ac_compile"
26119 case "(($ac_try" in
26120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26121   *) ac_try_echo=$ac_try;;
26122 esac
26123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26124   (eval "$ac_compile") 2>conftest.er1
26125   ac_status=$?
26126   grep -v '^ *+' conftest.er1 >conftest.err
26127   rm -f conftest.er1
26128   cat conftest.err >&5
26129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130   (exit $ac_status); } && {
26131          test -z "$ac_c_werror_flag" ||
26132          test ! -s conftest.err
26133        } && test -s conftest.$ac_objext; then
26134   ac_header_compiler=yes
26135 else
26136   echo "$as_me: failed program was:" >&5
26137 sed 's/^/| /' conftest.$ac_ext >&5
26138
26139         ac_header_compiler=no
26140 fi
26141
26142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26144 echo "${ECHO_T}$ac_header_compiler" >&6; }
26145
26146 # Is the header present?
26147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26149 cat >conftest.$ac_ext <<_ACEOF
26150 /* confdefs.h.  */
26151 _ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h.  */
26155 #include <$ac_header>
26156 _ACEOF
26157 if { (ac_try="$ac_cpp conftest.$ac_ext"
26158 case "(($ac_try" in
26159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26160   *) ac_try_echo=$ac_try;;
26161 esac
26162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26164   ac_status=$?
26165   grep -v '^ *+' conftest.er1 >conftest.err
26166   rm -f conftest.er1
26167   cat conftest.err >&5
26168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169   (exit $ac_status); } >/dev/null && {
26170          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26171          test ! -s conftest.err
26172        }; then
26173   ac_header_preproc=yes
26174 else
26175   echo "$as_me: failed program was:" >&5
26176 sed 's/^/| /' conftest.$ac_ext >&5
26177
26178   ac_header_preproc=no
26179 fi
26180
26181 rm -f conftest.err conftest.$ac_ext
26182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26183 echo "${ECHO_T}$ac_header_preproc" >&6; }
26184
26185 # So?  What about this header?
26186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26187   yes:no: )
26188     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26192     ac_header_preproc=yes
26193     ;;
26194   no:yes:* )
26195     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26197     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26198 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26199     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26201     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26202 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26205     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26207     ( cat <<\_ASBOX
26208 ## --------------------------------------------- ##
26209 ## Report this to <http://www.openldap.org/its/> ##
26210 ## --------------------------------------------- ##
26211 _ASBOX
26212      ) | sed "s/^/$as_me: WARNING:     /" >&2
26213     ;;
26214 esac
26215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26218   echo $ECHO_N "(cached) $ECHO_C" >&6
26219 else
26220   eval "$as_ac_Header=\$ac_header_preproc"
26221 fi
26222 ac_res=`eval echo '${'$as_ac_Header'}'`
26223                { echo "$as_me:$LINENO: result: $ac_res" >&5
26224 echo "${ECHO_T}$ac_res" >&6; }
26225
26226 fi
26227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26228   cat >>confdefs.h <<_ACEOF
26229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26230 _ACEOF
26231
26232 fi
26233
26234 done
26235
26236
26237         if test $ac_cv_header_pth_h = yes ; then
26238                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26239 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26240 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26241   echo $ECHO_N "(cached) $ECHO_C" >&6
26242 else
26243   ac_check_lib_save_LIBS=$LIBS
26244 LIBS="-lpth  $LIBS"
26245 cat >conftest.$ac_ext <<_ACEOF
26246 /* confdefs.h.  */
26247 _ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h.  */
26251
26252 /* Override any GCC internal prototype to avoid an error.
26253    Use char because int might match the return type of a GCC
26254    builtin and then its argument prototype would still apply.  */
26255 #ifdef __cplusplus
26256 extern "C"
26257 #endif
26258 char pth_version ();
26259 int
26260 main ()
26261 {
26262 return pth_version ();
26263   ;
26264   return 0;
26265 }
26266 _ACEOF
26267 rm -f conftest.$ac_objext conftest$ac_exeext
26268 if { (ac_try="$ac_link"
26269 case "(($ac_try" in
26270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26271   *) ac_try_echo=$ac_try;;
26272 esac
26273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26274   (eval "$ac_link") 2>conftest.er1
26275   ac_status=$?
26276   grep -v '^ *+' conftest.er1 >conftest.err
26277   rm -f conftest.er1
26278   cat conftest.err >&5
26279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280   (exit $ac_status); } && {
26281          test -z "$ac_c_werror_flag" ||
26282          test ! -s conftest.err
26283        } && test -s conftest$ac_exeext &&
26284        $as_test_x conftest$ac_exeext; then
26285   ac_cv_lib_pth_pth_version=yes
26286 else
26287   echo "$as_me: failed program was:" >&5
26288 sed 's/^/| /' conftest.$ac_ext >&5
26289
26290         ac_cv_lib_pth_pth_version=no
26291 fi
26292
26293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26294       conftest$ac_exeext conftest.$ac_ext
26295 LIBS=$ac_check_lib_save_LIBS
26296 fi
26297 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26298 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26299 if test $ac_cv_lib_pth_pth_version = yes; then
26300   have_pth=yes
26301 else
26302   have_pth=no
26303 fi
26304
26305
26306                 if test $have_pth = yes ; then
26307
26308 cat >>confdefs.h <<\_ACEOF
26309 #define HAVE_GNU_PTH 1
26310 _ACEOF
26311
26312                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26313                         ol_link_threads=pth
26314                         ol_with_threads=found
26315
26316                         if test $ol_with_yielding_select = auto ; then
26317                                 ol_with_yielding_select=yes
26318                         fi
26319                 fi
26320         fi
26321         ;;
26322 esac
26323
26324 case $ol_with_threads in auto | yes | lwp)
26325
26326
26327
26328 for ac_header in thread.h synch.h
26329 do
26330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26332   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26335   echo $ECHO_N "(cached) $ECHO_C" >&6
26336 fi
26337 ac_res=`eval echo '${'$as_ac_Header'}'`
26338                { echo "$as_me:$LINENO: result: $ac_res" >&5
26339 echo "${ECHO_T}$ac_res" >&6; }
26340 else
26341   # Is the header compilable?
26342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26344 cat >conftest.$ac_ext <<_ACEOF
26345 /* confdefs.h.  */
26346 _ACEOF
26347 cat confdefs.h >>conftest.$ac_ext
26348 cat >>conftest.$ac_ext <<_ACEOF
26349 /* end confdefs.h.  */
26350 $ac_includes_default
26351 #include <$ac_header>
26352 _ACEOF
26353 rm -f conftest.$ac_objext
26354 if { (ac_try="$ac_compile"
26355 case "(($ac_try" in
26356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26357   *) ac_try_echo=$ac_try;;
26358 esac
26359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26360   (eval "$ac_compile") 2>conftest.er1
26361   ac_status=$?
26362   grep -v '^ *+' conftest.er1 >conftest.err
26363   rm -f conftest.er1
26364   cat conftest.err >&5
26365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366   (exit $ac_status); } && {
26367          test -z "$ac_c_werror_flag" ||
26368          test ! -s conftest.err
26369        } && test -s conftest.$ac_objext; then
26370   ac_header_compiler=yes
26371 else
26372   echo "$as_me: failed program was:" >&5
26373 sed 's/^/| /' conftest.$ac_ext >&5
26374
26375         ac_header_compiler=no
26376 fi
26377
26378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26380 echo "${ECHO_T}$ac_header_compiler" >&6; }
26381
26382 # Is the header present?
26383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26385 cat >conftest.$ac_ext <<_ACEOF
26386 /* confdefs.h.  */
26387 _ACEOF
26388 cat confdefs.h >>conftest.$ac_ext
26389 cat >>conftest.$ac_ext <<_ACEOF
26390 /* end confdefs.h.  */
26391 #include <$ac_header>
26392 _ACEOF
26393 if { (ac_try="$ac_cpp conftest.$ac_ext"
26394 case "(($ac_try" in
26395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26396   *) ac_try_echo=$ac_try;;
26397 esac
26398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26400   ac_status=$?
26401   grep -v '^ *+' conftest.er1 >conftest.err
26402   rm -f conftest.er1
26403   cat conftest.err >&5
26404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405   (exit $ac_status); } >/dev/null && {
26406          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26407          test ! -s conftest.err
26408        }; then
26409   ac_header_preproc=yes
26410 else
26411   echo "$as_me: failed program was:" >&5
26412 sed 's/^/| /' conftest.$ac_ext >&5
26413
26414   ac_header_preproc=no
26415 fi
26416
26417 rm -f conftest.err conftest.$ac_ext
26418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26419 echo "${ECHO_T}$ac_header_preproc" >&6; }
26420
26421 # So?  What about this header?
26422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26423   yes:no: )
26424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26428     ac_header_preproc=yes
26429     ;;
26430   no:yes:* )
26431     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26433     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26434 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26435     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26437     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26438 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26441     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26443     ( cat <<\_ASBOX
26444 ## --------------------------------------------- ##
26445 ## Report this to <http://www.openldap.org/its/> ##
26446 ## --------------------------------------------- ##
26447 _ASBOX
26448      ) | sed "s/^/$as_me: WARNING:     /" >&2
26449     ;;
26450 esac
26451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26454   echo $ECHO_N "(cached) $ECHO_C" >&6
26455 else
26456   eval "$as_ac_Header=\$ac_header_preproc"
26457 fi
26458 ac_res=`eval echo '${'$as_ac_Header'}'`
26459                { echo "$as_me:$LINENO: result: $ac_res" >&5
26460 echo "${ECHO_T}$ac_res" >&6; }
26461
26462 fi
26463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26464   cat >>confdefs.h <<_ACEOF
26465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26466 _ACEOF
26467
26468 fi
26469
26470 done
26471
26472         if test $ac_cv_header_thread_h = yes &&
26473            test $ac_cv_header_synch_h = yes ; then
26474                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26475 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26476 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26477   echo $ECHO_N "(cached) $ECHO_C" >&6
26478 else
26479   ac_check_lib_save_LIBS=$LIBS
26480 LIBS="-lthread  $LIBS"
26481 cat >conftest.$ac_ext <<_ACEOF
26482 /* confdefs.h.  */
26483 _ACEOF
26484 cat confdefs.h >>conftest.$ac_ext
26485 cat >>conftest.$ac_ext <<_ACEOF
26486 /* end confdefs.h.  */
26487
26488 /* Override any GCC internal prototype to avoid an error.
26489    Use char because int might match the return type of a GCC
26490    builtin and then its argument prototype would still apply.  */
26491 #ifdef __cplusplus
26492 extern "C"
26493 #endif
26494 char thr_create ();
26495 int
26496 main ()
26497 {
26498 return thr_create ();
26499   ;
26500   return 0;
26501 }
26502 _ACEOF
26503 rm -f conftest.$ac_objext conftest$ac_exeext
26504 if { (ac_try="$ac_link"
26505 case "(($ac_try" in
26506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26507   *) ac_try_echo=$ac_try;;
26508 esac
26509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26510   (eval "$ac_link") 2>conftest.er1
26511   ac_status=$?
26512   grep -v '^ *+' conftest.er1 >conftest.err
26513   rm -f conftest.er1
26514   cat conftest.err >&5
26515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516   (exit $ac_status); } && {
26517          test -z "$ac_c_werror_flag" ||
26518          test ! -s conftest.err
26519        } && test -s conftest$ac_exeext &&
26520        $as_test_x conftest$ac_exeext; then
26521   ac_cv_lib_thread_thr_create=yes
26522 else
26523   echo "$as_me: failed program was:" >&5
26524 sed 's/^/| /' conftest.$ac_ext >&5
26525
26526         ac_cv_lib_thread_thr_create=no
26527 fi
26528
26529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26530       conftest$ac_exeext conftest.$ac_ext
26531 LIBS=$ac_check_lib_save_LIBS
26532 fi
26533 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26534 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26535 if test $ac_cv_lib_thread_thr_create = yes; then
26536   have_thr=yes
26537 else
26538   have_thr=no
26539 fi
26540
26541
26542                 if test $have_thr = yes ; then
26543
26544 cat >>confdefs.h <<\_ACEOF
26545 #define HAVE_THR 1
26546 _ACEOF
26547
26548                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26549                         ol_link_threads=thr
26550
26551                         if test $ol_with_yielding_select = auto ; then
26552                                 ol_with_yielding_select=yes
26553                         fi
26554
26555
26556
26557 for ac_func in \
26558                                 thr_setconcurrency \
26559                                 thr_getconcurrency \
26560
26561 do
26562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26566   echo $ECHO_N "(cached) $ECHO_C" >&6
26567 else
26568   cat >conftest.$ac_ext <<_ACEOF
26569 /* confdefs.h.  */
26570 _ACEOF
26571 cat confdefs.h >>conftest.$ac_ext
26572 cat >>conftest.$ac_ext <<_ACEOF
26573 /* end confdefs.h.  */
26574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26576 #define $ac_func innocuous_$ac_func
26577
26578 /* System header to define __stub macros and hopefully few prototypes,
26579     which can conflict with char $ac_func (); below.
26580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26581     <limits.h> exists even on freestanding compilers.  */
26582
26583 #ifdef __STDC__
26584 # include <limits.h>
26585 #else
26586 # include <assert.h>
26587 #endif
26588
26589 #undef $ac_func
26590
26591 /* Override any GCC internal prototype to avoid an error.
26592    Use char because int might match the return type of a GCC
26593    builtin and then its argument prototype would still apply.  */
26594 #ifdef __cplusplus
26595 extern "C"
26596 #endif
26597 char $ac_func ();
26598 /* The GNU C library defines this for functions which it implements
26599     to always fail with ENOSYS.  Some functions are actually named
26600     something starting with __ and the normal name is an alias.  */
26601 #if defined __stub_$ac_func || defined __stub___$ac_func
26602 choke me
26603 #endif
26604
26605 int
26606 main ()
26607 {
26608 return $ac_func ();
26609   ;
26610   return 0;
26611 }
26612 _ACEOF
26613 rm -f conftest.$ac_objext conftest$ac_exeext
26614 if { (ac_try="$ac_link"
26615 case "(($ac_try" in
26616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26617   *) ac_try_echo=$ac_try;;
26618 esac
26619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26620   (eval "$ac_link") 2>conftest.er1
26621   ac_status=$?
26622   grep -v '^ *+' conftest.er1 >conftest.err
26623   rm -f conftest.er1
26624   cat conftest.err >&5
26625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626   (exit $ac_status); } && {
26627          test -z "$ac_c_werror_flag" ||
26628          test ! -s conftest.err
26629        } && test -s conftest$ac_exeext &&
26630        $as_test_x conftest$ac_exeext; then
26631   eval "$as_ac_var=yes"
26632 else
26633   echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26635
26636         eval "$as_ac_var=no"
26637 fi
26638
26639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26640       conftest$ac_exeext conftest.$ac_ext
26641 fi
26642 ac_res=`eval echo '${'$as_ac_var'}'`
26643                { echo "$as_me:$LINENO: result: $ac_res" >&5
26644 echo "${ECHO_T}$ac_res" >&6; }
26645 if test `eval echo '${'$as_ac_var'}'` = yes; then
26646   cat >>confdefs.h <<_ACEOF
26647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26648 _ACEOF
26649
26650 fi
26651 done
26652
26653                 fi
26654         fi
26655
26656
26657 for ac_header in lwp/lwp.h
26658 do
26659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26661   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26664   echo $ECHO_N "(cached) $ECHO_C" >&6
26665 fi
26666 ac_res=`eval echo '${'$as_ac_Header'}'`
26667                { echo "$as_me:$LINENO: result: $ac_res" >&5
26668 echo "${ECHO_T}$ac_res" >&6; }
26669 else
26670   # Is the header compilable?
26671 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
26680 #include <$ac_header>
26681 _ACEOF
26682 rm -f conftest.$ac_objext
26683 if { (ac_try="$ac_compile"
26684 case "(($ac_try" in
26685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26686   *) ac_try_echo=$ac_try;;
26687 esac
26688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26689   (eval "$ac_compile") 2>conftest.er1
26690   ac_status=$?
26691   grep -v '^ *+' conftest.er1 >conftest.err
26692   rm -f conftest.er1
26693   cat conftest.err >&5
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); } && {
26696          test -z "$ac_c_werror_flag" ||
26697          test ! -s conftest.err
26698        } && test -s conftest.$ac_objext; then
26699   ac_header_compiler=yes
26700 else
26701   echo "$as_me: failed program was:" >&5
26702 sed 's/^/| /' conftest.$ac_ext >&5
26703
26704         ac_header_compiler=no
26705 fi
26706
26707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26709 echo "${ECHO_T}$ac_header_compiler" >&6; }
26710
26711 # Is the header present?
26712 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26714 cat >conftest.$ac_ext <<_ACEOF
26715 /* confdefs.h.  */
26716 _ACEOF
26717 cat confdefs.h >>conftest.$ac_ext
26718 cat >>conftest.$ac_ext <<_ACEOF
26719 /* end confdefs.h.  */
26720 #include <$ac_header>
26721 _ACEOF
26722 if { (ac_try="$ac_cpp conftest.$ac_ext"
26723 case "(($ac_try" in
26724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26725   *) ac_try_echo=$ac_try;;
26726 esac
26727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26729   ac_status=$?
26730   grep -v '^ *+' conftest.er1 >conftest.err
26731   rm -f conftest.er1
26732   cat conftest.err >&5
26733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734   (exit $ac_status); } >/dev/null && {
26735          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26736          test ! -s conftest.err
26737        }; then
26738   ac_header_preproc=yes
26739 else
26740   echo "$as_me: failed program was:" >&5
26741 sed 's/^/| /' conftest.$ac_ext >&5
26742
26743   ac_header_preproc=no
26744 fi
26745
26746 rm -f conftest.err conftest.$ac_ext
26747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26748 echo "${ECHO_T}$ac_header_preproc" >&6; }
26749
26750 # So?  What about this header?
26751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26752   yes:no: )
26753     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26757     ac_header_preproc=yes
26758     ;;
26759   no:yes:* )
26760     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26762     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26763 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26764     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26766     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26767 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26770     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26772     ( cat <<\_ASBOX
26773 ## --------------------------------------------- ##
26774 ## Report this to <http://www.openldap.org/its/> ##
26775 ## --------------------------------------------- ##
26776 _ASBOX
26777      ) | sed "s/^/$as_me: WARNING:     /" >&2
26778     ;;
26779 esac
26780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26783   echo $ECHO_N "(cached) $ECHO_C" >&6
26784 else
26785   eval "$as_ac_Header=\$ac_header_preproc"
26786 fi
26787 ac_res=`eval echo '${'$as_ac_Header'}'`
26788                { echo "$as_me:$LINENO: result: $ac_res" >&5
26789 echo "${ECHO_T}$ac_res" >&6; }
26790
26791 fi
26792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26793   cat >>confdefs.h <<_ACEOF
26794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26795 _ACEOF
26796
26797 fi
26798
26799 done
26800
26801         if test $ac_cv_header_lwp_lwp_h = yes ; then
26802                 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26803 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26804 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26805   echo $ECHO_N "(cached) $ECHO_C" >&6
26806 else
26807   ac_check_lib_save_LIBS=$LIBS
26808 LIBS="-llwp  $LIBS"
26809 cat >conftest.$ac_ext <<_ACEOF
26810 /* confdefs.h.  */
26811 _ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h.  */
26815
26816 /* Override any GCC internal prototype to avoid an error.
26817    Use char because int might match the return type of a GCC
26818    builtin and then its argument prototype would still apply.  */
26819 #ifdef __cplusplus
26820 extern "C"
26821 #endif
26822 char lwp_create ();
26823 int
26824 main ()
26825 {
26826 return lwp_create ();
26827   ;
26828   return 0;
26829 }
26830 _ACEOF
26831 rm -f conftest.$ac_objext conftest$ac_exeext
26832 if { (ac_try="$ac_link"
26833 case "(($ac_try" in
26834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26835   *) ac_try_echo=$ac_try;;
26836 esac
26837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26838   (eval "$ac_link") 2>conftest.er1
26839   ac_status=$?
26840   grep -v '^ *+' conftest.er1 >conftest.err
26841   rm -f conftest.er1
26842   cat conftest.err >&5
26843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844   (exit $ac_status); } && {
26845          test -z "$ac_c_werror_flag" ||
26846          test ! -s conftest.err
26847        } && test -s conftest$ac_exeext &&
26848        $as_test_x conftest$ac_exeext; then
26849   ac_cv_lib_lwp_lwp_create=yes
26850 else
26851   echo "$as_me: failed program was:" >&5
26852 sed 's/^/| /' conftest.$ac_ext >&5
26853
26854         ac_cv_lib_lwp_lwp_create=no
26855 fi
26856
26857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26858       conftest$ac_exeext conftest.$ac_ext
26859 LIBS=$ac_check_lib_save_LIBS
26860 fi
26861 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26862 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26863 if test $ac_cv_lib_lwp_lwp_create = yes; then
26864   have_lwp=yes
26865 else
26866   have_lwp=no
26867 fi
26868
26869
26870                 if test $have_lwp = yes ; then
26871
26872 cat >>confdefs.h <<\_ACEOF
26873 #define HAVE_LWP 1
26874 _ACEOF
26875
26876                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26877                         ol_link_threads=lwp
26878
26879                         if test $ol_with_yielding_select = auto ; then
26880                                 ol_with_yielding_select=no
26881                         fi
26882                 fi
26883         fi
26884         ;;
26885 esac
26886
26887 if test $ol_with_yielding_select = yes ; then
26888
26889 cat >>confdefs.h <<\_ACEOF
26890 #define HAVE_YIELDING_SELECT 1
26891 _ACEOF
26892
26893 fi
26894
26895 if test $ol_with_threads = manual ; then
26896                 ol_link_threads=yes
26897
26898         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26899 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26900
26901
26902
26903 for ac_header in pthread.h sched.h
26904 do
26905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26907   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26910   echo $ECHO_N "(cached) $ECHO_C" >&6
26911 fi
26912 ac_res=`eval echo '${'$as_ac_Header'}'`
26913                { echo "$as_me:$LINENO: result: $ac_res" >&5
26914 echo "${ECHO_T}$ac_res" >&6; }
26915 else
26916   # Is the header compilable?
26917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26919 cat >conftest.$ac_ext <<_ACEOF
26920 /* confdefs.h.  */
26921 _ACEOF
26922 cat confdefs.h >>conftest.$ac_ext
26923 cat >>conftest.$ac_ext <<_ACEOF
26924 /* end confdefs.h.  */
26925 $ac_includes_default
26926 #include <$ac_header>
26927 _ACEOF
26928 rm -f conftest.$ac_objext
26929 if { (ac_try="$ac_compile"
26930 case "(($ac_try" in
26931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932   *) ac_try_echo=$ac_try;;
26933 esac
26934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26935   (eval "$ac_compile") 2>conftest.er1
26936   ac_status=$?
26937   grep -v '^ *+' conftest.er1 >conftest.err
26938   rm -f conftest.er1
26939   cat conftest.err >&5
26940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941   (exit $ac_status); } && {
26942          test -z "$ac_c_werror_flag" ||
26943          test ! -s conftest.err
26944        } && test -s conftest.$ac_objext; then
26945   ac_header_compiler=yes
26946 else
26947   echo "$as_me: failed program was:" >&5
26948 sed 's/^/| /' conftest.$ac_ext >&5
26949
26950         ac_header_compiler=no
26951 fi
26952
26953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26955 echo "${ECHO_T}$ac_header_compiler" >&6; }
26956
26957 # Is the header present?
26958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26960 cat >conftest.$ac_ext <<_ACEOF
26961 /* confdefs.h.  */
26962 _ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 cat >>conftest.$ac_ext <<_ACEOF
26965 /* end confdefs.h.  */
26966 #include <$ac_header>
26967 _ACEOF
26968 if { (ac_try="$ac_cpp conftest.$ac_ext"
26969 case "(($ac_try" in
26970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971   *) ac_try_echo=$ac_try;;
26972 esac
26973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26975   ac_status=$?
26976   grep -v '^ *+' conftest.er1 >conftest.err
26977   rm -f conftest.er1
26978   cat conftest.err >&5
26979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980   (exit $ac_status); } >/dev/null && {
26981          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26982          test ! -s conftest.err
26983        }; then
26984   ac_header_preproc=yes
26985 else
26986   echo "$as_me: failed program was:" >&5
26987 sed 's/^/| /' conftest.$ac_ext >&5
26988
26989   ac_header_preproc=no
26990 fi
26991
26992 rm -f conftest.err conftest.$ac_ext
26993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26994 echo "${ECHO_T}$ac_header_preproc" >&6; }
26995
26996 # So?  What about this header?
26997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26998   yes:no: )
26999     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27003     ac_header_preproc=yes
27004     ;;
27005   no:yes:* )
27006     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27008     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27009 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27010     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27012     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27013 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27016     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27018     ( cat <<\_ASBOX
27019 ## --------------------------------------------- ##
27020 ## Report this to <http://www.openldap.org/its/> ##
27021 ## --------------------------------------------- ##
27022 _ASBOX
27023      ) | sed "s/^/$as_me: WARNING:     /" >&2
27024     ;;
27025 esac
27026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27029   echo $ECHO_N "(cached) $ECHO_C" >&6
27030 else
27031   eval "$as_ac_Header=\$ac_header_preproc"
27032 fi
27033 ac_res=`eval echo '${'$as_ac_Header'}'`
27034                { echo "$as_me:$LINENO: result: $ac_res" >&5
27035 echo "${ECHO_T}$ac_res" >&6; }
27036
27037 fi
27038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27039   cat >>confdefs.h <<_ACEOF
27040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27041 _ACEOF
27042
27043 fi
27044
27045 done
27046
27047
27048
27049 for ac_func in sched_yield pthread_yield
27050 do
27051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27055   echo $ECHO_N "(cached) $ECHO_C" >&6
27056 else
27057   cat >conftest.$ac_ext <<_ACEOF
27058 /* confdefs.h.  */
27059 _ACEOF
27060 cat confdefs.h >>conftest.$ac_ext
27061 cat >>conftest.$ac_ext <<_ACEOF
27062 /* end confdefs.h.  */
27063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27065 #define $ac_func innocuous_$ac_func
27066
27067 /* System header to define __stub macros and hopefully few prototypes,
27068     which can conflict with char $ac_func (); below.
27069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27070     <limits.h> exists even on freestanding compilers.  */
27071
27072 #ifdef __STDC__
27073 # include <limits.h>
27074 #else
27075 # include <assert.h>
27076 #endif
27077
27078 #undef $ac_func
27079
27080 /* Override any GCC internal prototype to avoid an error.
27081    Use char because int might match the return type of a GCC
27082    builtin and then its argument prototype would still apply.  */
27083 #ifdef __cplusplus
27084 extern "C"
27085 #endif
27086 char $ac_func ();
27087 /* The GNU C library defines this for functions which it implements
27088     to always fail with ENOSYS.  Some functions are actually named
27089     something starting with __ and the normal name is an alias.  */
27090 #if defined __stub_$ac_func || defined __stub___$ac_func
27091 choke me
27092 #endif
27093
27094 int
27095 main ()
27096 {
27097 return $ac_func ();
27098   ;
27099   return 0;
27100 }
27101 _ACEOF
27102 rm -f conftest.$ac_objext conftest$ac_exeext
27103 if { (ac_try="$ac_link"
27104 case "(($ac_try" in
27105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106   *) ac_try_echo=$ac_try;;
27107 esac
27108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27109   (eval "$ac_link") 2>conftest.er1
27110   ac_status=$?
27111   grep -v '^ *+' conftest.er1 >conftest.err
27112   rm -f conftest.er1
27113   cat conftest.err >&5
27114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115   (exit $ac_status); } && {
27116          test -z "$ac_c_werror_flag" ||
27117          test ! -s conftest.err
27118        } && test -s conftest$ac_exeext &&
27119        $as_test_x conftest$ac_exeext; then
27120   eval "$as_ac_var=yes"
27121 else
27122   echo "$as_me: failed program was:" >&5
27123 sed 's/^/| /' conftest.$ac_ext >&5
27124
27125         eval "$as_ac_var=no"
27126 fi
27127
27128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27129       conftest$ac_exeext conftest.$ac_ext
27130 fi
27131 ac_res=`eval echo '${'$as_ac_var'}'`
27132                { echo "$as_me:$LINENO: result: $ac_res" >&5
27133 echo "${ECHO_T}$ac_res" >&6; }
27134 if test `eval echo '${'$as_ac_var'}'` = yes; then
27135   cat >>confdefs.h <<_ACEOF
27136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27137 _ACEOF
27138
27139 fi
27140 done
27141
27142
27143         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
27144 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
27145 if test "${ol_cv_header_linux_threads+set}" = set; then
27146   echo $ECHO_N "(cached) $ECHO_C" >&6
27147 else
27148   cat >conftest.$ac_ext <<_ACEOF
27149 /* confdefs.h.  */
27150 _ACEOF
27151 cat confdefs.h >>conftest.$ac_ext
27152 cat >>conftest.$ac_ext <<_ACEOF
27153 /* end confdefs.h.  */
27154 #include <pthread.h>
27155 _ACEOF
27156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27157   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
27158   ol_cv_header_linux_threads=yes
27159 else
27160   ol_cv_header_linux_threads=no
27161 fi
27162 rm -f conftest*
27163
27164
27165 fi
27166 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
27167 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
27168         if test $ol_cv_header_linux_threads = yes; then
27169
27170 cat >>confdefs.h <<\_ACEOF
27171 #define HAVE_LINUX_THREADS 1
27172 _ACEOF
27173
27174         fi
27175
27176
27177
27178 for ac_header in mach/cthreads.h
27179 do
27180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27182   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27185   echo $ECHO_N "(cached) $ECHO_C" >&6
27186 fi
27187 ac_res=`eval echo '${'$as_ac_Header'}'`
27188                { echo "$as_me:$LINENO: result: $ac_res" >&5
27189 echo "${ECHO_T}$ac_res" >&6; }
27190 else
27191   # Is the header compilable?
27192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27194 cat >conftest.$ac_ext <<_ACEOF
27195 /* confdefs.h.  */
27196 _ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h.  */
27200 $ac_includes_default
27201 #include <$ac_header>
27202 _ACEOF
27203 rm -f conftest.$ac_objext
27204 if { (ac_try="$ac_compile"
27205 case "(($ac_try" in
27206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207   *) ac_try_echo=$ac_try;;
27208 esac
27209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210   (eval "$ac_compile") 2>conftest.er1
27211   ac_status=$?
27212   grep -v '^ *+' conftest.er1 >conftest.err
27213   rm -f conftest.er1
27214   cat conftest.err >&5
27215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216   (exit $ac_status); } && {
27217          test -z "$ac_c_werror_flag" ||
27218          test ! -s conftest.err
27219        } && test -s conftest.$ac_objext; then
27220   ac_header_compiler=yes
27221 else
27222   echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27224
27225         ac_header_compiler=no
27226 fi
27227
27228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27230 echo "${ECHO_T}$ac_header_compiler" >&6; }
27231
27232 # Is the header present?
27233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27235 cat >conftest.$ac_ext <<_ACEOF
27236 /* confdefs.h.  */
27237 _ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h.  */
27241 #include <$ac_header>
27242 _ACEOF
27243 if { (ac_try="$ac_cpp conftest.$ac_ext"
27244 case "(($ac_try" in
27245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27246   *) ac_try_echo=$ac_try;;
27247 esac
27248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27250   ac_status=$?
27251   grep -v '^ *+' conftest.er1 >conftest.err
27252   rm -f conftest.er1
27253   cat conftest.err >&5
27254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255   (exit $ac_status); } >/dev/null && {
27256          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27257          test ! -s conftest.err
27258        }; then
27259   ac_header_preproc=yes
27260 else
27261   echo "$as_me: failed program was:" >&5
27262 sed 's/^/| /' conftest.$ac_ext >&5
27263
27264   ac_header_preproc=no
27265 fi
27266
27267 rm -f conftest.err conftest.$ac_ext
27268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27269 echo "${ECHO_T}$ac_header_preproc" >&6; }
27270
27271 # So?  What about this header?
27272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27273   yes:no: )
27274     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27278     ac_header_preproc=yes
27279     ;;
27280   no:yes:* )
27281     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27283     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27284 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27285     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27287     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27288 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27291     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27293     ( cat <<\_ASBOX
27294 ## --------------------------------------------- ##
27295 ## Report this to <http://www.openldap.org/its/> ##
27296 ## --------------------------------------------- ##
27297 _ASBOX
27298      ) | sed "s/^/$as_me: WARNING:     /" >&2
27299     ;;
27300 esac
27301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27304   echo $ECHO_N "(cached) $ECHO_C" >&6
27305 else
27306   eval "$as_ac_Header=\$ac_header_preproc"
27307 fi
27308 ac_res=`eval echo '${'$as_ac_Header'}'`
27309                { echo "$as_me:$LINENO: result: $ac_res" >&5
27310 echo "${ECHO_T}$ac_res" >&6; }
27311
27312 fi
27313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27314   cat >>confdefs.h <<_ACEOF
27315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27316 _ACEOF
27317
27318 fi
27319
27320 done
27321
27322
27323 for ac_header in lwp/lwp.h
27324 do
27325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27327   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27330   echo $ECHO_N "(cached) $ECHO_C" >&6
27331 fi
27332 ac_res=`eval echo '${'$as_ac_Header'}'`
27333                { echo "$as_me:$LINENO: result: $ac_res" >&5
27334 echo "${ECHO_T}$ac_res" >&6; }
27335 else
27336   # Is the header compilable?
27337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27339 cat >conftest.$ac_ext <<_ACEOF
27340 /* confdefs.h.  */
27341 _ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h.  */
27345 $ac_includes_default
27346 #include <$ac_header>
27347 _ACEOF
27348 rm -f conftest.$ac_objext
27349 if { (ac_try="$ac_compile"
27350 case "(($ac_try" in
27351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352   *) ac_try_echo=$ac_try;;
27353 esac
27354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27355   (eval "$ac_compile") 2>conftest.er1
27356   ac_status=$?
27357   grep -v '^ *+' conftest.er1 >conftest.err
27358   rm -f conftest.er1
27359   cat conftest.err >&5
27360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361   (exit $ac_status); } && {
27362          test -z "$ac_c_werror_flag" ||
27363          test ! -s conftest.err
27364        } && test -s conftest.$ac_objext; then
27365   ac_header_compiler=yes
27366 else
27367   echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27369
27370         ac_header_compiler=no
27371 fi
27372
27373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27375 echo "${ECHO_T}$ac_header_compiler" >&6; }
27376
27377 # Is the header present?
27378 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27380 cat >conftest.$ac_ext <<_ACEOF
27381 /* confdefs.h.  */
27382 _ACEOF
27383 cat confdefs.h >>conftest.$ac_ext
27384 cat >>conftest.$ac_ext <<_ACEOF
27385 /* end confdefs.h.  */
27386 #include <$ac_header>
27387 _ACEOF
27388 if { (ac_try="$ac_cpp conftest.$ac_ext"
27389 case "(($ac_try" in
27390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391   *) ac_try_echo=$ac_try;;
27392 esac
27393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27395   ac_status=$?
27396   grep -v '^ *+' conftest.er1 >conftest.err
27397   rm -f conftest.er1
27398   cat conftest.err >&5
27399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400   (exit $ac_status); } >/dev/null && {
27401          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27402          test ! -s conftest.err
27403        }; then
27404   ac_header_preproc=yes
27405 else
27406   echo "$as_me: failed program was:" >&5
27407 sed 's/^/| /' conftest.$ac_ext >&5
27408
27409   ac_header_preproc=no
27410 fi
27411
27412 rm -f conftest.err conftest.$ac_ext
27413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27414 echo "${ECHO_T}$ac_header_preproc" >&6; }
27415
27416 # So?  What about this header?
27417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27418   yes:no: )
27419     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27423     ac_header_preproc=yes
27424     ;;
27425   no:yes:* )
27426     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27428     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27429 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27430     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27432     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27433 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27436     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27438     ( cat <<\_ASBOX
27439 ## --------------------------------------------- ##
27440 ## Report this to <http://www.openldap.org/its/> ##
27441 ## --------------------------------------------- ##
27442 _ASBOX
27443      ) | sed "s/^/$as_me: WARNING:     /" >&2
27444     ;;
27445 esac
27446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27449   echo $ECHO_N "(cached) $ECHO_C" >&6
27450 else
27451   eval "$as_ac_Header=\$ac_header_preproc"
27452 fi
27453 ac_res=`eval echo '${'$as_ac_Header'}'`
27454                { echo "$as_me:$LINENO: result: $ac_res" >&5
27455 echo "${ECHO_T}$ac_res" >&6; }
27456
27457 fi
27458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27459   cat >>confdefs.h <<_ACEOF
27460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27461 _ACEOF
27462
27463 fi
27464
27465 done
27466
27467
27468
27469 for ac_header in thread.h synch.h
27470 do
27471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27473   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27476   echo $ECHO_N "(cached) $ECHO_C" >&6
27477 fi
27478 ac_res=`eval echo '${'$as_ac_Header'}'`
27479                { echo "$as_me:$LINENO: result: $ac_res" >&5
27480 echo "${ECHO_T}$ac_res" >&6; }
27481 else
27482   # Is the header compilable?
27483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27485 cat >conftest.$ac_ext <<_ACEOF
27486 /* confdefs.h.  */
27487 _ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h.  */
27491 $ac_includes_default
27492 #include <$ac_header>
27493 _ACEOF
27494 rm -f conftest.$ac_objext
27495 if { (ac_try="$ac_compile"
27496 case "(($ac_try" in
27497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498   *) ac_try_echo=$ac_try;;
27499 esac
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501   (eval "$ac_compile") 2>conftest.er1
27502   ac_status=$?
27503   grep -v '^ *+' conftest.er1 >conftest.err
27504   rm -f conftest.er1
27505   cat conftest.err >&5
27506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507   (exit $ac_status); } && {
27508          test -z "$ac_c_werror_flag" ||
27509          test ! -s conftest.err
27510        } && test -s conftest.$ac_objext; then
27511   ac_header_compiler=yes
27512 else
27513   echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.$ac_ext >&5
27515
27516         ac_header_compiler=no
27517 fi
27518
27519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27521 echo "${ECHO_T}$ac_header_compiler" >&6; }
27522
27523 # Is the header present?
27524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27526 cat >conftest.$ac_ext <<_ACEOF
27527 /* confdefs.h.  */
27528 _ACEOF
27529 cat confdefs.h >>conftest.$ac_ext
27530 cat >>conftest.$ac_ext <<_ACEOF
27531 /* end confdefs.h.  */
27532 #include <$ac_header>
27533 _ACEOF
27534 if { (ac_try="$ac_cpp conftest.$ac_ext"
27535 case "(($ac_try" in
27536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537   *) ac_try_echo=$ac_try;;
27538 esac
27539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27541   ac_status=$?
27542   grep -v '^ *+' conftest.er1 >conftest.err
27543   rm -f conftest.er1
27544   cat conftest.err >&5
27545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546   (exit $ac_status); } >/dev/null && {
27547          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27548          test ! -s conftest.err
27549        }; then
27550   ac_header_preproc=yes
27551 else
27552   echo "$as_me: failed program was:" >&5
27553 sed 's/^/| /' conftest.$ac_ext >&5
27554
27555   ac_header_preproc=no
27556 fi
27557
27558 rm -f conftest.err conftest.$ac_ext
27559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27560 echo "${ECHO_T}$ac_header_preproc" >&6; }
27561
27562 # So?  What about this header?
27563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27564   yes:no: )
27565     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27569     ac_header_preproc=yes
27570     ;;
27571   no:yes:* )
27572     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27574     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27575 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27576     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27578     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27579 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27582     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27584     ( cat <<\_ASBOX
27585 ## --------------------------------------------- ##
27586 ## Report this to <http://www.openldap.org/its/> ##
27587 ## --------------------------------------------- ##
27588 _ASBOX
27589      ) | sed "s/^/$as_me: WARNING:     /" >&2
27590     ;;
27591 esac
27592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27595   echo $ECHO_N "(cached) $ECHO_C" >&6
27596 else
27597   eval "$as_ac_Header=\$ac_header_preproc"
27598 fi
27599 ac_res=`eval echo '${'$as_ac_Header'}'`
27600                { echo "$as_me:$LINENO: result: $ac_res" >&5
27601 echo "${ECHO_T}$ac_res" >&6; }
27602
27603 fi
27604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27605   cat >>confdefs.h <<_ACEOF
27606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27607 _ACEOF
27608
27609 fi
27610
27611 done
27612
27613 fi
27614
27615 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27616                         cat >>confdefs.h <<\_ACEOF
27617 #define REENTRANT 1
27618 _ACEOF
27619
27620         cat >>confdefs.h <<\_ACEOF
27621 #define _REENTRANT 1
27622 _ACEOF
27623
27624         cat >>confdefs.h <<\_ACEOF
27625 #define THREAD_SAFE 1
27626 _ACEOF
27627
27628         cat >>confdefs.h <<\_ACEOF
27629 #define _THREAD_SAFE 1
27630 _ACEOF
27631
27632         cat >>confdefs.h <<\_ACEOF
27633 #define THREADSAFE 1
27634 _ACEOF
27635
27636         cat >>confdefs.h <<\_ACEOF
27637 #define _THREADSAFE 1
27638 _ACEOF
27639
27640         cat >>confdefs.h <<\_ACEOF
27641 #define _SGI_MP_SOURCE 1
27642 _ACEOF
27643
27644
27645                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27646 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27647 if test "${ol_cv_errno_thread_specific+set}" = set; then
27648   echo $ECHO_N "(cached) $ECHO_C" >&6
27649 else
27650
27651                 cat >conftest.$ac_ext <<_ACEOF
27652 /* confdefs.h.  */
27653 _ACEOF
27654 cat confdefs.h >>conftest.$ac_ext
27655 cat >>conftest.$ac_ext <<_ACEOF
27656 /* end confdefs.h.  */
27657 #include <errno.h>
27658 int
27659 main ()
27660 {
27661 errno = 0;
27662   ;
27663   return 0;
27664 }
27665 _ACEOF
27666 rm -f conftest.$ac_objext conftest$ac_exeext
27667 if { (ac_try="$ac_link"
27668 case "(($ac_try" in
27669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27670   *) ac_try_echo=$ac_try;;
27671 esac
27672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27673   (eval "$ac_link") 2>conftest.er1
27674   ac_status=$?
27675   grep -v '^ *+' conftest.er1 >conftest.err
27676   rm -f conftest.er1
27677   cat conftest.err >&5
27678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679   (exit $ac_status); } && {
27680          test -z "$ac_c_werror_flag" ||
27681          test ! -s conftest.err
27682        } && test -s conftest$ac_exeext &&
27683        $as_test_x conftest$ac_exeext; then
27684   ol_cv_errno_thread_specific=yes
27685 else
27686   echo "$as_me: failed program was:" >&5
27687 sed 's/^/| /' conftest.$ac_ext >&5
27688
27689         ol_cv_errno_thread_specific=no
27690 fi
27691
27692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27693       conftest$ac_exeext conftest.$ac_ext
27694
27695 fi
27696 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27697 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27698
27699                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27700 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27701 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27702   echo $ECHO_N "(cached) $ECHO_C" >&6
27703 else
27704
27705                 cat >conftest.$ac_ext <<_ACEOF
27706 /* confdefs.h.  */
27707 _ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h.  */
27711 #include <netdb.h>
27712 int
27713 main ()
27714 {
27715 h_errno = 0;
27716   ;
27717   return 0;
27718 }
27719 _ACEOF
27720 rm -f conftest.$ac_objext conftest$ac_exeext
27721 if { (ac_try="$ac_link"
27722 case "(($ac_try" in
27723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724   *) ac_try_echo=$ac_try;;
27725 esac
27726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27727   (eval "$ac_link") 2>conftest.er1
27728   ac_status=$?
27729   grep -v '^ *+' conftest.er1 >conftest.err
27730   rm -f conftest.er1
27731   cat conftest.err >&5
27732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733   (exit $ac_status); } && {
27734          test -z "$ac_c_werror_flag" ||
27735          test ! -s conftest.err
27736        } && test -s conftest$ac_exeext &&
27737        $as_test_x conftest$ac_exeext; then
27738   ol_cv_h_errno_thread_specific=yes
27739 else
27740   echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27742
27743         ol_cv_h_errno_thread_specific=no
27744 fi
27745
27746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27747       conftest$ac_exeext conftest.$ac_ext
27748
27749 fi
27750 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27751 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27752
27753         if test $ol_cv_errno_thread_specific != yes ||
27754            test $ol_cv_h_errno_thread_specific != yes ; then
27755                 LIBS="$LTHREAD_LIBS $LIBS"
27756                 LTHREAD_LIBS=""
27757         fi
27758
27759 fi
27760
27761 if test $ol_link_threads = no ; then
27762         if test $ol_with_threads = yes ; then
27763                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27764 echo "$as_me: error: no suitable thread support" >&2;}
27765    { (exit 1); exit 1; }; }
27766         fi
27767
27768         if test $ol_with_threads = auto ; then
27769                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27770 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27771                 ol_with_threads=no
27772         fi
27773
27774
27775 cat >>confdefs.h <<\_ACEOF
27776 #define NO_THREADS 1
27777 _ACEOF
27778
27779         LTHREAD_LIBS=""
27780         BUILD_THREAD=no
27781 else
27782         BUILD_THREAD=yes
27783 fi
27784
27785 if test $ol_link_threads != no ; then
27786
27787 cat >>confdefs.h <<\_ACEOF
27788 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27789 _ACEOF
27790
27791 fi
27792
27793
27794
27795
27796 for ac_func in \
27797         ctime_r                 \
27798         gethostbyname_r gethostbyaddr_r \
27799
27800 do
27801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27802 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27804 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27805   echo $ECHO_N "(cached) $ECHO_C" >&6
27806 else
27807   cat >conftest.$ac_ext <<_ACEOF
27808 /* confdefs.h.  */
27809 _ACEOF
27810 cat confdefs.h >>conftest.$ac_ext
27811 cat >>conftest.$ac_ext <<_ACEOF
27812 /* end confdefs.h.  */
27813 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27815 #define $ac_func innocuous_$ac_func
27816
27817 /* System header to define __stub macros and hopefully few prototypes,
27818     which can conflict with char $ac_func (); below.
27819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27820     <limits.h> exists even on freestanding compilers.  */
27821
27822 #ifdef __STDC__
27823 # include <limits.h>
27824 #else
27825 # include <assert.h>
27826 #endif
27827
27828 #undef $ac_func
27829
27830 /* Override any GCC internal prototype to avoid an error.
27831    Use char because int might match the return type of a GCC
27832    builtin and then its argument prototype would still apply.  */
27833 #ifdef __cplusplus
27834 extern "C"
27835 #endif
27836 char $ac_func ();
27837 /* The GNU C library defines this for functions which it implements
27838     to always fail with ENOSYS.  Some functions are actually named
27839     something starting with __ and the normal name is an alias.  */
27840 #if defined __stub_$ac_func || defined __stub___$ac_func
27841 choke me
27842 #endif
27843
27844 int
27845 main ()
27846 {
27847 return $ac_func ();
27848   ;
27849   return 0;
27850 }
27851 _ACEOF
27852 rm -f conftest.$ac_objext conftest$ac_exeext
27853 if { (ac_try="$ac_link"
27854 case "(($ac_try" in
27855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856   *) ac_try_echo=$ac_try;;
27857 esac
27858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27859   (eval "$ac_link") 2>conftest.er1
27860   ac_status=$?
27861   grep -v '^ *+' conftest.er1 >conftest.err
27862   rm -f conftest.er1
27863   cat conftest.err >&5
27864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865   (exit $ac_status); } && {
27866          test -z "$ac_c_werror_flag" ||
27867          test ! -s conftest.err
27868        } && test -s conftest$ac_exeext &&
27869        $as_test_x conftest$ac_exeext; then
27870   eval "$as_ac_var=yes"
27871 else
27872   echo "$as_me: failed program was:" >&5
27873 sed 's/^/| /' conftest.$ac_ext >&5
27874
27875         eval "$as_ac_var=no"
27876 fi
27877
27878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27879       conftest$ac_exeext conftest.$ac_ext
27880 fi
27881 ac_res=`eval echo '${'$as_ac_var'}'`
27882                { echo "$as_me:$LINENO: result: $ac_res" >&5
27883 echo "${ECHO_T}$ac_res" >&6; }
27884 if test `eval echo '${'$as_ac_var'}'` = yes; then
27885   cat >>confdefs.h <<_ACEOF
27886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27887 _ACEOF
27888
27889 fi
27890 done
27891
27892
27893 if test "$ac_cv_func_ctime_r" = no ; then
27894         ol_cv_func_ctime_r_nargs=0
27895 else
27896         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27897 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27898 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27899   echo $ECHO_N "(cached) $ECHO_C" >&6
27900 else
27901   cat >conftest.$ac_ext <<_ACEOF
27902 /* confdefs.h.  */
27903 _ACEOF
27904 cat confdefs.h >>conftest.$ac_ext
27905 cat >>conftest.$ac_ext <<_ACEOF
27906 /* end confdefs.h.  */
27907 #include <time.h>
27908 int
27909 main ()
27910 {
27911 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27912   ;
27913   return 0;
27914 }
27915 _ACEOF
27916 rm -f conftest.$ac_objext
27917 if { (ac_try="$ac_compile"
27918 case "(($ac_try" in
27919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27920   *) ac_try_echo=$ac_try;;
27921 esac
27922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27923   (eval "$ac_compile") 2>conftest.er1
27924   ac_status=$?
27925   grep -v '^ *+' conftest.er1 >conftest.err
27926   rm -f conftest.er1
27927   cat conftest.err >&5
27928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929   (exit $ac_status); } && {
27930          test -z "$ac_c_werror_flag" ||
27931          test ! -s conftest.err
27932        } && test -s conftest.$ac_objext; then
27933   ol_cv_func_ctime_r_nargs3=yes
27934 else
27935   echo "$as_me: failed program was:" >&5
27936 sed 's/^/| /' conftest.$ac_ext >&5
27937
27938         ol_cv_func_ctime_r_nargs3=no
27939 fi
27940
27941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27942
27943         cat >conftest.$ac_ext <<_ACEOF
27944 /* confdefs.h.  */
27945 _ACEOF
27946 cat confdefs.h >>conftest.$ac_ext
27947 cat >>conftest.$ac_ext <<_ACEOF
27948 /* end confdefs.h.  */
27949 #include <time.h>
27950 int
27951 main ()
27952 {
27953 time_t ti; char *buffer; ctime_r(&ti,buffer);
27954   ;
27955   return 0;
27956 }
27957 _ACEOF
27958 rm -f conftest.$ac_objext
27959 if { (ac_try="$ac_compile"
27960 case "(($ac_try" in
27961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962   *) ac_try_echo=$ac_try;;
27963 esac
27964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965   (eval "$ac_compile") 2>conftest.er1
27966   ac_status=$?
27967   grep -v '^ *+' conftest.er1 >conftest.err
27968   rm -f conftest.er1
27969   cat conftest.err >&5
27970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971   (exit $ac_status); } && {
27972          test -z "$ac_c_werror_flag" ||
27973          test ! -s conftest.err
27974        } && test -s conftest.$ac_objext; then
27975   ol_cv_func_ctime_r_nargs2=yes
27976 else
27977   echo "$as_me: failed program was:" >&5
27978 sed 's/^/| /' conftest.$ac_ext >&5
27979
27980         ol_cv_func_ctime_r_nargs2=no
27981 fi
27982
27983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27984
27985         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27986            test $ol_cv_func_ctime_r_nargs2 = no ; then
27987
27988                 ol_cv_func_ctime_r_nargs=3
27989
27990         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27991              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27992
27993                 ol_cv_func_ctime_r_nargs=2
27994
27995         else
27996                 ol_cv_func_ctime_r_nargs=0
27997         fi
27998
27999 fi
28000 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
28001 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
28002
28003   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
28004
28005 cat >>confdefs.h <<_ACEOF
28006 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
28007 _ACEOF
28008
28009   fi
28010
28011 fi
28012
28013 if test "$ac_cv_func_gethostbyname_r" = yes ; then
28014         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
28015 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
28016 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
28017   echo $ECHO_N "(cached) $ECHO_C" >&6
28018 else
28019   cat >conftest.$ac_ext <<_ACEOF
28020 /* confdefs.h.  */
28021 _ACEOF
28022 cat confdefs.h >>conftest.$ac_ext
28023 cat >>conftest.$ac_ext <<_ACEOF
28024 /* end confdefs.h.  */
28025 #include <sys/types.h>
28026 #include <sys/socket.h>
28027 #include <netinet/in.h>
28028 #include <netdb.h>
28029 #define BUFSIZE (sizeof(struct hostent)+10)
28030 int
28031 main ()
28032 {
28033 struct hostent hent; char buffer[BUFSIZE];
28034                 int bufsize=BUFSIZE;int h_errno;
28035                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
28036                         buffer, bufsize, &h_errno);
28037   ;
28038   return 0;
28039 }
28040 _ACEOF
28041 rm -f conftest.$ac_objext
28042 if { (ac_try="$ac_compile"
28043 case "(($ac_try" in
28044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045   *) ac_try_echo=$ac_try;;
28046 esac
28047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048   (eval "$ac_compile") 2>conftest.er1
28049   ac_status=$?
28050   grep -v '^ *+' conftest.er1 >conftest.err
28051   rm -f conftest.er1
28052   cat conftest.err >&5
28053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054   (exit $ac_status); } && {
28055          test -z "$ac_c_werror_flag" ||
28056          test ! -s conftest.err
28057        } && test -s conftest.$ac_objext; then
28058   ol_cv_func_gethostbyname_r_nargs5=yes
28059 else
28060   echo "$as_me: failed program was:" >&5
28061 sed 's/^/| /' conftest.$ac_ext >&5
28062
28063         ol_cv_func_gethostbyname_r_nargs5=no
28064 fi
28065
28066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28067
28068         cat >conftest.$ac_ext <<_ACEOF
28069 /* confdefs.h.  */
28070 _ACEOF
28071 cat confdefs.h >>conftest.$ac_ext
28072 cat >>conftest.$ac_ext <<_ACEOF
28073 /* end confdefs.h.  */
28074 #include <sys/types.h>
28075 #include <sys/socket.h>
28076 #include <netinet/in.h>
28077 #include <netdb.h>
28078 #define BUFSIZE (sizeof(struct hostent)+10)
28079 int
28080 main ()
28081 {
28082 struct hostent hent;struct hostent *rhent;
28083                 char buffer[BUFSIZE];
28084                 int bufsize=BUFSIZE;int h_errno;
28085                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
28086                         &rhent, &h_errno);
28087   ;
28088   return 0;
28089 }
28090 _ACEOF
28091 rm -f conftest.$ac_objext
28092 if { (ac_try="$ac_compile"
28093 case "(($ac_try" in
28094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28095   *) ac_try_echo=$ac_try;;
28096 esac
28097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28098   (eval "$ac_compile") 2>conftest.er1
28099   ac_status=$?
28100   grep -v '^ *+' conftest.er1 >conftest.err
28101   rm -f conftest.er1
28102   cat conftest.err >&5
28103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104   (exit $ac_status); } && {
28105          test -z "$ac_c_werror_flag" ||
28106          test ! -s conftest.err
28107        } && test -s conftest.$ac_objext; then
28108   ol_cv_func_gethostbyname_r_nargs6=yes
28109 else
28110   echo "$as_me: failed program was:" >&5
28111 sed 's/^/| /' conftest.$ac_ext >&5
28112
28113         ol_cv_func_gethostbyname_r_nargs6=no
28114 fi
28115
28116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28117
28118         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
28119            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
28120
28121                 ol_cv_func_gethostbyname_r_nargs=5
28122
28123         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
28124              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
28125
28126                 ol_cv_func_gethostbyname_r_nargs=6
28127
28128         else
28129                 ol_cv_func_gethostbyname_r_nargs=0
28130         fi
28131
28132 fi
28133 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
28134 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
28135   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
28136
28137 cat >>confdefs.h <<_ACEOF
28138 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
28139 _ACEOF
28140
28141   fi
28142
28143 else
28144         ol_cv_func_gethostbyname_r_nargs=0
28145 fi
28146
28147 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
28148         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
28149 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
28150 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
28151   echo $ECHO_N "(cached) $ECHO_C" >&6
28152 else
28153   cat >conftest.$ac_ext <<_ACEOF
28154 /* confdefs.h.  */
28155 _ACEOF
28156 cat confdefs.h >>conftest.$ac_ext
28157 cat >>conftest.$ac_ext <<_ACEOF
28158 /* end confdefs.h.  */
28159 #include <sys/types.h>
28160 #include <sys/socket.h>
28161 #include <netinet/in.h>
28162 #include <netdb.h>
28163 #define BUFSIZE (sizeof(struct hostent)+10)
28164 int
28165 main ()
28166 {
28167 struct hostent hent; char buffer[BUFSIZE];
28168             struct in_addr add;
28169             size_t alen=sizeof(struct in_addr);
28170             int bufsize=BUFSIZE;int h_errno;
28171                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28172                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
28173   ;
28174   return 0;
28175 }
28176 _ACEOF
28177 rm -f conftest.$ac_objext
28178 if { (ac_try="$ac_compile"
28179 case "(($ac_try" in
28180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181   *) ac_try_echo=$ac_try;;
28182 esac
28183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28184   (eval "$ac_compile") 2>conftest.er1
28185   ac_status=$?
28186   grep -v '^ *+' conftest.er1 >conftest.err
28187   rm -f conftest.er1
28188   cat conftest.err >&5
28189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190   (exit $ac_status); } && {
28191          test -z "$ac_c_werror_flag" ||
28192          test ! -s conftest.err
28193        } && test -s conftest.$ac_objext; then
28194   ol_cv_func_gethostbyaddr_r_nargs7=yes
28195 else
28196   echo "$as_me: failed program was:" >&5
28197 sed 's/^/| /' conftest.$ac_ext >&5
28198
28199         ol_cv_func_gethostbyaddr_r_nargs7=no
28200 fi
28201
28202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28203
28204         cat >conftest.$ac_ext <<_ACEOF
28205 /* confdefs.h.  */
28206 _ACEOF
28207 cat confdefs.h >>conftest.$ac_ext
28208 cat >>conftest.$ac_ext <<_ACEOF
28209 /* end confdefs.h.  */
28210 #include <sys/types.h>
28211 #include <sys/socket.h>
28212 #include <netinet/in.h>
28213 #include <netdb.h>
28214 #define BUFSIZE (sizeof(struct hostent)+10)
28215 int
28216 main ()
28217 {
28218 struct hostent hent;
28219                 struct hostent *rhent; char buffer[BUFSIZE];
28220                 struct in_addr add;
28221                 size_t alen=sizeof(struct in_addr);
28222                 int bufsize=BUFSIZE;int h_errno;
28223                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28224                         alen, AF_INET, &hent, buffer, bufsize,
28225                         &rhent, &h_errno);
28226   ;
28227   return 0;
28228 }
28229 _ACEOF
28230 rm -f conftest.$ac_objext
28231 if { (ac_try="$ac_compile"
28232 case "(($ac_try" in
28233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28234   *) ac_try_echo=$ac_try;;
28235 esac
28236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28237   (eval "$ac_compile") 2>conftest.er1
28238   ac_status=$?
28239   grep -v '^ *+' conftest.er1 >conftest.err
28240   rm -f conftest.er1
28241   cat conftest.err >&5
28242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243   (exit $ac_status); } && {
28244          test -z "$ac_c_werror_flag" ||
28245          test ! -s conftest.err
28246        } && test -s conftest.$ac_objext; then
28247   ol_cv_func_gethostbyaddr_r_nargs8=yes
28248 else
28249   echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28251
28252         ol_cv_func_gethostbyaddr_r_nargs8=no
28253 fi
28254
28255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28256
28257         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28258            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28259
28260                 ol_cv_func_gethostbyaddr_r_nargs=7
28261
28262         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28263              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28264
28265                 ol_cv_func_gethostbyaddr_r_nargs=8
28266
28267         else
28268                 ol_cv_func_gethostbyaddr_r_nargs=0
28269         fi
28270
28271 fi
28272 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28273 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
28274   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28275
28276 cat >>confdefs.h <<_ACEOF
28277 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28278 _ACEOF
28279
28280   fi
28281
28282 else
28283         ol_cv_func_gethostbyaddr_r_nargs=0
28284 fi
28285
28286 ol_link_bdb=no
28287
28288 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28289         ol_cv_berkeley_db=no
28290
28291 for ac_header in db.h
28292 do
28293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28295   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28298   echo $ECHO_N "(cached) $ECHO_C" >&6
28299 fi
28300 ac_res=`eval echo '${'$as_ac_Header'}'`
28301                { echo "$as_me:$LINENO: result: $ac_res" >&5
28302 echo "${ECHO_T}$ac_res" >&6; }
28303 else
28304   # Is the header compilable?
28305 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28307 cat >conftest.$ac_ext <<_ACEOF
28308 /* confdefs.h.  */
28309 _ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h.  */
28313 $ac_includes_default
28314 #include <$ac_header>
28315 _ACEOF
28316 rm -f conftest.$ac_objext
28317 if { (ac_try="$ac_compile"
28318 case "(($ac_try" in
28319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320   *) ac_try_echo=$ac_try;;
28321 esac
28322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323   (eval "$ac_compile") 2>conftest.er1
28324   ac_status=$?
28325   grep -v '^ *+' conftest.er1 >conftest.err
28326   rm -f conftest.er1
28327   cat conftest.err >&5
28328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); } && {
28330          test -z "$ac_c_werror_flag" ||
28331          test ! -s conftest.err
28332        } && test -s conftest.$ac_objext; then
28333   ac_header_compiler=yes
28334 else
28335   echo "$as_me: failed program was:" >&5
28336 sed 's/^/| /' conftest.$ac_ext >&5
28337
28338         ac_header_compiler=no
28339 fi
28340
28341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28343 echo "${ECHO_T}$ac_header_compiler" >&6; }
28344
28345 # Is the header present?
28346 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28348 cat >conftest.$ac_ext <<_ACEOF
28349 /* confdefs.h.  */
28350 _ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h.  */
28354 #include <$ac_header>
28355 _ACEOF
28356 if { (ac_try="$ac_cpp conftest.$ac_ext"
28357 case "(($ac_try" in
28358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359   *) ac_try_echo=$ac_try;;
28360 esac
28361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28363   ac_status=$?
28364   grep -v '^ *+' conftest.er1 >conftest.err
28365   rm -f conftest.er1
28366   cat conftest.err >&5
28367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368   (exit $ac_status); } >/dev/null && {
28369          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28370          test ! -s conftest.err
28371        }; then
28372   ac_header_preproc=yes
28373 else
28374   echo "$as_me: failed program was:" >&5
28375 sed 's/^/| /' conftest.$ac_ext >&5
28376
28377   ac_header_preproc=no
28378 fi
28379
28380 rm -f conftest.err conftest.$ac_ext
28381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28382 echo "${ECHO_T}$ac_header_preproc" >&6; }
28383
28384 # So?  What about this header?
28385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28386   yes:no: )
28387     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28391     ac_header_preproc=yes
28392     ;;
28393   no:yes:* )
28394     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28396     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28397 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28398     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28400     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28401 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28404     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28406     ( cat <<\_ASBOX
28407 ## --------------------------------------------- ##
28408 ## Report this to <http://www.openldap.org/its/> ##
28409 ## --------------------------------------------- ##
28410 _ASBOX
28411      ) | sed "s/^/$as_me: WARNING:     /" >&2
28412     ;;
28413 esac
28414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28417   echo $ECHO_N "(cached) $ECHO_C" >&6
28418 else
28419   eval "$as_ac_Header=\$ac_header_preproc"
28420 fi
28421 ac_res=`eval echo '${'$as_ac_Header'}'`
28422                { echo "$as_me:$LINENO: result: $ac_res" >&5
28423 echo "${ECHO_T}$ac_res" >&6; }
28424
28425 fi
28426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28427   cat >>confdefs.h <<_ACEOF
28428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28429 _ACEOF
28430
28431 fi
28432
28433 done
28434
28435 if test $ac_cv_header_db_h = yes; then
28436         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28437 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28438 if test "${ol_cv_bdb_major+set}" = set; then
28439   echo $ECHO_N "(cached) $ECHO_C" >&6
28440 else
28441
28442         cat >conftest.$ac_ext <<_ACEOF
28443
28444 #include <db.h>
28445 #ifndef DB_VERSION_MAJOR
28446 #       define DB_VERSION_MAJOR 1
28447 #endif
28448 __db_version DB_VERSION_MAJOR
28449
28450 _ACEOF
28451         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28452         ol_cv_bdb_major=${3}
28453
28454 fi
28455 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28456 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28457 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28458         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28459 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28460    { (exit 1); exit 1; }; } ;;
28461 esac
28462
28463 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28464 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28465 if test "${ol_cv_bdb_minor+set}" = set; then
28466   echo $ECHO_N "(cached) $ECHO_C" >&6
28467 else
28468
28469         cat >conftest.$ac_ext <<_ACEOF
28470
28471 #include <db.h>
28472 #ifndef DB_VERSION_MINOR
28473 #       define DB_VERSION_MINOR 0
28474 #endif
28475 __db_version DB_VERSION_MINOR
28476
28477 _ACEOF
28478         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28479         ol_cv_bdb_minor=${3}
28480
28481 fi
28482 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28483 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28484 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28485         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28486 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28487    { (exit 1); exit 1; }; } ;;
28488 esac
28489
28490         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28491 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28492 if test "${ol_cv_bdb_compat+set}" = set; then
28493   echo $ECHO_N "(cached) $ECHO_C" >&6
28494 else
28495
28496         cat >conftest.$ac_ext <<_ACEOF
28497 /* confdefs.h.  */
28498 _ACEOF
28499 cat confdefs.h >>conftest.$ac_ext
28500 cat >>conftest.$ac_ext <<_ACEOF
28501 /* end confdefs.h.  */
28502
28503 #include <db.h>
28504
28505  /* this check could be improved */
28506 #ifndef DB_VERSION_MAJOR
28507 #       define DB_VERSION_MAJOR 1
28508 #endif
28509 #ifndef DB_VERSION_MINOR
28510 #       define DB_VERSION_MINOR 0
28511 #endif
28512
28513 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28514
28515 /* require 4.4 or later */
28516 #if DB_VERSION_MM >= 0x0404
28517         __db_version_compat
28518 #endif
28519
28520 _ACEOF
28521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28522   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28523   ol_cv_bdb_compat=yes
28524 else
28525   ol_cv_bdb_compat=no
28526 fi
28527 rm -f conftest*
28528
28529 fi
28530 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28531 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28532
28533
28534         if test $ol_cv_bdb_compat != yes ; then
28535                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28536 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28537    { (exit 1); exit 1; }; }
28538         fi
28539
28540         ol_cv_lib_db=no
28541
28542 if test $ol_cv_bdb_major = 4 ; then
28543         if test $ol_cv_lib_db = no ; then
28544         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28545 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28546 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28547   echo $ECHO_N "(cached) $ECHO_C" >&6
28548 else
28549
28550         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28551         ol_LIBS=$LIBS
28552         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28553
28554         cat >conftest.$ac_ext <<_ACEOF
28555 /* confdefs.h.  */
28556 _ACEOF
28557 cat confdefs.h >>conftest.$ac_ext
28558 cat >>conftest.$ac_ext <<_ACEOF
28559 /* end confdefs.h.  */
28560
28561 #ifdef HAVE_DB_185_H
28562 # include <db_185.h>
28563 #else
28564 # include <db.h>
28565 #endif
28566
28567 #ifndef DB_VERSION_MAJOR
28568 # define DB_VERSION_MAJOR 1
28569 #endif
28570
28571 #ifndef NULL
28572 #define NULL ((void*)0)
28573 #endif
28574
28575 int
28576 main ()
28577 {
28578
28579 #if DB_VERSION_MAJOR > 2
28580         db_env_create( NULL, 0 );
28581 #elif DB_VERSION_MAJOR > 1
28582         db_appexit( NULL );
28583 #else
28584         (void) dbopen( NULL, 0, 0, 0, NULL);
28585 #endif
28586
28587   ;
28588   return 0;
28589 }
28590 _ACEOF
28591 rm -f conftest.$ac_objext conftest$ac_exeext
28592 if { (ac_try="$ac_link"
28593 case "(($ac_try" in
28594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28595   *) ac_try_echo=$ac_try;;
28596 esac
28597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28598   (eval "$ac_link") 2>conftest.er1
28599   ac_status=$?
28600   grep -v '^ *+' conftest.er1 >conftest.err
28601   rm -f conftest.er1
28602   cat conftest.err >&5
28603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604   (exit $ac_status); } && {
28605          test -z "$ac_c_werror_flag" ||
28606          test ! -s conftest.err
28607        } && test -s conftest$ac_exeext &&
28608        $as_test_x conftest$ac_exeext; then
28609   ol_cv_db_db_4_dot_m=yes
28610 else
28611   echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28613
28614         ol_cv_db_db_4_dot_m=no
28615 fi
28616
28617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28618       conftest$ac_exeext conftest.$ac_ext
28619
28620         LIBS="$ol_LIBS"
28621
28622 fi
28623 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28624 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28625
28626         if test $ol_cv_db_db_4_dot_m = yes ; then
28627                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28628         fi
28629 fi
28630
28631         if test $ol_cv_lib_db = no ; then
28632         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28633 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28634 if test "${ol_cv_db_db4m+set}" = set; then
28635   echo $ECHO_N "(cached) $ECHO_C" >&6
28636 else
28637
28638         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28639         ol_LIBS=$LIBS
28640         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28641
28642         cat >conftest.$ac_ext <<_ACEOF
28643 /* confdefs.h.  */
28644 _ACEOF
28645 cat confdefs.h >>conftest.$ac_ext
28646 cat >>conftest.$ac_ext <<_ACEOF
28647 /* end confdefs.h.  */
28648
28649 #ifdef HAVE_DB_185_H
28650 # include <db_185.h>
28651 #else
28652 # include <db.h>
28653 #endif
28654
28655 #ifndef DB_VERSION_MAJOR
28656 # define DB_VERSION_MAJOR 1
28657 #endif
28658
28659 #ifndef NULL
28660 #define NULL ((void*)0)
28661 #endif
28662
28663 int
28664 main ()
28665 {
28666
28667 #if DB_VERSION_MAJOR > 2
28668         db_env_create( NULL, 0 );
28669 #elif DB_VERSION_MAJOR > 1
28670         db_appexit( NULL );
28671 #else
28672         (void) dbopen( NULL, 0, 0, 0, NULL);
28673 #endif
28674
28675   ;
28676   return 0;
28677 }
28678 _ACEOF
28679 rm -f conftest.$ac_objext conftest$ac_exeext
28680 if { (ac_try="$ac_link"
28681 case "(($ac_try" in
28682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28683   *) ac_try_echo=$ac_try;;
28684 esac
28685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28686   (eval "$ac_link") 2>conftest.er1
28687   ac_status=$?
28688   grep -v '^ *+' conftest.er1 >conftest.err
28689   rm -f conftest.er1
28690   cat conftest.err >&5
28691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692   (exit $ac_status); } && {
28693          test -z "$ac_c_werror_flag" ||
28694          test ! -s conftest.err
28695        } && test -s conftest$ac_exeext &&
28696        $as_test_x conftest$ac_exeext; then
28697   ol_cv_db_db4m=yes
28698 else
28699   echo "$as_me: failed program was:" >&5
28700 sed 's/^/| /' conftest.$ac_ext >&5
28701
28702         ol_cv_db_db4m=no
28703 fi
28704
28705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28706       conftest$ac_exeext conftest.$ac_ext
28707
28708         LIBS="$ol_LIBS"
28709
28710 fi
28711 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28712 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28713
28714         if test $ol_cv_db_db4m = yes ; then
28715                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28716         fi
28717 fi
28718
28719         if test $ol_cv_lib_db = no ; then
28720         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28721 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28722 if test "${ol_cv_db_db_4m+set}" = set; then
28723   echo $ECHO_N "(cached) $ECHO_C" >&6
28724 else
28725
28726         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28727         ol_LIBS=$LIBS
28728         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28729
28730         cat >conftest.$ac_ext <<_ACEOF
28731 /* confdefs.h.  */
28732 _ACEOF
28733 cat confdefs.h >>conftest.$ac_ext
28734 cat >>conftest.$ac_ext <<_ACEOF
28735 /* end confdefs.h.  */
28736
28737 #ifdef HAVE_DB_185_H
28738 # include <db_185.h>
28739 #else
28740 # include <db.h>
28741 #endif
28742
28743 #ifndef DB_VERSION_MAJOR
28744 # define DB_VERSION_MAJOR 1
28745 #endif
28746
28747 #ifndef NULL
28748 #define NULL ((void*)0)
28749 #endif
28750
28751 int
28752 main ()
28753 {
28754
28755 #if DB_VERSION_MAJOR > 2
28756         db_env_create( NULL, 0 );
28757 #elif DB_VERSION_MAJOR > 1
28758         db_appexit( NULL );
28759 #else
28760         (void) dbopen( NULL, 0, 0, 0, NULL);
28761 #endif
28762
28763   ;
28764   return 0;
28765 }
28766 _ACEOF
28767 rm -f conftest.$ac_objext conftest$ac_exeext
28768 if { (ac_try="$ac_link"
28769 case "(($ac_try" in
28770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28771   *) ac_try_echo=$ac_try;;
28772 esac
28773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28774   (eval "$ac_link") 2>conftest.er1
28775   ac_status=$?
28776   grep -v '^ *+' conftest.er1 >conftest.err
28777   rm -f conftest.er1
28778   cat conftest.err >&5
28779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780   (exit $ac_status); } && {
28781          test -z "$ac_c_werror_flag" ||
28782          test ! -s conftest.err
28783        } && test -s conftest$ac_exeext &&
28784        $as_test_x conftest$ac_exeext; then
28785   ol_cv_db_db_4m=yes
28786 else
28787   echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28789
28790         ol_cv_db_db_4m=no
28791 fi
28792
28793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28794       conftest$ac_exeext conftest.$ac_ext
28795
28796         LIBS="$ol_LIBS"
28797
28798 fi
28799 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28800 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28801
28802         if test $ol_cv_db_db_4m = yes ; then
28803                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28804         fi
28805 fi
28806
28807         if test $ol_cv_lib_db = no ; then
28808         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28809 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28810 if test "${ol_cv_db_db_4_m+set}" = set; then
28811   echo $ECHO_N "(cached) $ECHO_C" >&6
28812 else
28813
28814         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28815         ol_LIBS=$LIBS
28816         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28817
28818         cat >conftest.$ac_ext <<_ACEOF
28819 /* confdefs.h.  */
28820 _ACEOF
28821 cat confdefs.h >>conftest.$ac_ext
28822 cat >>conftest.$ac_ext <<_ACEOF
28823 /* end confdefs.h.  */
28824
28825 #ifdef HAVE_DB_185_H
28826 # include <db_185.h>
28827 #else
28828 # include <db.h>
28829 #endif
28830
28831 #ifndef DB_VERSION_MAJOR
28832 # define DB_VERSION_MAJOR 1
28833 #endif
28834
28835 #ifndef NULL
28836 #define NULL ((void*)0)
28837 #endif
28838
28839 int
28840 main ()
28841 {
28842
28843 #if DB_VERSION_MAJOR > 2
28844         db_env_create( NULL, 0 );
28845 #elif DB_VERSION_MAJOR > 1
28846         db_appexit( NULL );
28847 #else
28848         (void) dbopen( NULL, 0, 0, 0, NULL);
28849 #endif
28850
28851   ;
28852   return 0;
28853 }
28854 _ACEOF
28855 rm -f conftest.$ac_objext conftest$ac_exeext
28856 if { (ac_try="$ac_link"
28857 case "(($ac_try" in
28858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859   *) ac_try_echo=$ac_try;;
28860 esac
28861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862   (eval "$ac_link") 2>conftest.er1
28863   ac_status=$?
28864   grep -v '^ *+' conftest.er1 >conftest.err
28865   rm -f conftest.er1
28866   cat conftest.err >&5
28867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868   (exit $ac_status); } && {
28869          test -z "$ac_c_werror_flag" ||
28870          test ! -s conftest.err
28871        } && test -s conftest$ac_exeext &&
28872        $as_test_x conftest$ac_exeext; then
28873   ol_cv_db_db_4_m=yes
28874 else
28875   echo "$as_me: failed program was:" >&5
28876 sed 's/^/| /' conftest.$ac_ext >&5
28877
28878         ol_cv_db_db_4_m=no
28879 fi
28880
28881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28882       conftest$ac_exeext conftest.$ac_ext
28883
28884         LIBS="$ol_LIBS"
28885
28886 fi
28887 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28888 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28889
28890         if test $ol_cv_db_db_4_m = yes ; then
28891                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28892         fi
28893 fi
28894
28895         if test $ol_cv_lib_db = no ; then
28896         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28897 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28898 if test "${ol_cv_db_db_4+set}" = set; then
28899   echo $ECHO_N "(cached) $ECHO_C" >&6
28900 else
28901
28902         ol_DB_LIB=-ldb-4
28903         ol_LIBS=$LIBS
28904         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28905
28906         cat >conftest.$ac_ext <<_ACEOF
28907 /* confdefs.h.  */
28908 _ACEOF
28909 cat confdefs.h >>conftest.$ac_ext
28910 cat >>conftest.$ac_ext <<_ACEOF
28911 /* end confdefs.h.  */
28912
28913 #ifdef HAVE_DB_185_H
28914 # include <db_185.h>
28915 #else
28916 # include <db.h>
28917 #endif
28918
28919 #ifndef DB_VERSION_MAJOR
28920 # define DB_VERSION_MAJOR 1
28921 #endif
28922
28923 #ifndef NULL
28924 #define NULL ((void*)0)
28925 #endif
28926
28927 int
28928 main ()
28929 {
28930
28931 #if DB_VERSION_MAJOR > 2
28932         db_env_create( NULL, 0 );
28933 #elif DB_VERSION_MAJOR > 1
28934         db_appexit( NULL );
28935 #else
28936         (void) dbopen( NULL, 0, 0, 0, NULL);
28937 #endif
28938
28939   ;
28940   return 0;
28941 }
28942 _ACEOF
28943 rm -f conftest.$ac_objext conftest$ac_exeext
28944 if { (ac_try="$ac_link"
28945 case "(($ac_try" in
28946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947   *) ac_try_echo=$ac_try;;
28948 esac
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950   (eval "$ac_link") 2>conftest.er1
28951   ac_status=$?
28952   grep -v '^ *+' conftest.er1 >conftest.err
28953   rm -f conftest.er1
28954   cat conftest.err >&5
28955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956   (exit $ac_status); } && {
28957          test -z "$ac_c_werror_flag" ||
28958          test ! -s conftest.err
28959        } && test -s conftest$ac_exeext &&
28960        $as_test_x conftest$ac_exeext; then
28961   ol_cv_db_db_4=yes
28962 else
28963   echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28965
28966         ol_cv_db_db_4=no
28967 fi
28968
28969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28970       conftest$ac_exeext conftest.$ac_ext
28971
28972         LIBS="$ol_LIBS"
28973
28974 fi
28975 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28976 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28977
28978         if test $ol_cv_db_db_4 = yes ; then
28979                 ol_cv_lib_db=-ldb-4
28980         fi
28981 fi
28982
28983         if test $ol_cv_lib_db = no ; then
28984         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28985 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28986 if test "${ol_cv_db_db4+set}" = set; then
28987   echo $ECHO_N "(cached) $ECHO_C" >&6
28988 else
28989
28990         ol_DB_LIB=-ldb4
28991         ol_LIBS=$LIBS
28992         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28993
28994         cat >conftest.$ac_ext <<_ACEOF
28995 /* confdefs.h.  */
28996 _ACEOF
28997 cat confdefs.h >>conftest.$ac_ext
28998 cat >>conftest.$ac_ext <<_ACEOF
28999 /* end confdefs.h.  */
29000
29001 #ifdef HAVE_DB_185_H
29002 # include <db_185.h>
29003 #else
29004 # include <db.h>
29005 #endif
29006
29007 #ifndef DB_VERSION_MAJOR
29008 # define DB_VERSION_MAJOR 1
29009 #endif
29010
29011 #ifndef NULL
29012 #define NULL ((void*)0)
29013 #endif
29014
29015 int
29016 main ()
29017 {
29018
29019 #if DB_VERSION_MAJOR > 2
29020         db_env_create( NULL, 0 );
29021 #elif DB_VERSION_MAJOR > 1
29022         db_appexit( NULL );
29023 #else
29024         (void) dbopen( NULL, 0, 0, 0, NULL);
29025 #endif
29026
29027   ;
29028   return 0;
29029 }
29030 _ACEOF
29031 rm -f conftest.$ac_objext conftest$ac_exeext
29032 if { (ac_try="$ac_link"
29033 case "(($ac_try" in
29034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035   *) ac_try_echo=$ac_try;;
29036 esac
29037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038   (eval "$ac_link") 2>conftest.er1
29039   ac_status=$?
29040   grep -v '^ *+' conftest.er1 >conftest.err
29041   rm -f conftest.er1
29042   cat conftest.err >&5
29043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044   (exit $ac_status); } && {
29045          test -z "$ac_c_werror_flag" ||
29046          test ! -s conftest.err
29047        } && test -s conftest$ac_exeext &&
29048        $as_test_x conftest$ac_exeext; then
29049   ol_cv_db_db4=yes
29050 else
29051   echo "$as_me: failed program was:" >&5
29052 sed 's/^/| /' conftest.$ac_ext >&5
29053
29054         ol_cv_db_db4=no
29055 fi
29056
29057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29058       conftest$ac_exeext conftest.$ac_ext
29059
29060         LIBS="$ol_LIBS"
29061
29062 fi
29063 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29064 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
29065
29066         if test $ol_cv_db_db4 = yes ; then
29067                 ol_cv_lib_db=-ldb4
29068         fi
29069 fi
29070
29071         if test $ol_cv_lib_db = no ; then
29072         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29073 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
29074 if test "${ol_cv_db_db+set}" = set; then
29075   echo $ECHO_N "(cached) $ECHO_C" >&6
29076 else
29077
29078         ol_DB_LIB=-ldb
29079         ol_LIBS=$LIBS
29080         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29081
29082         cat >conftest.$ac_ext <<_ACEOF
29083 /* confdefs.h.  */
29084 _ACEOF
29085 cat confdefs.h >>conftest.$ac_ext
29086 cat >>conftest.$ac_ext <<_ACEOF
29087 /* end confdefs.h.  */
29088
29089 #ifdef HAVE_DB_185_H
29090 # include <db_185.h>
29091 #else
29092 # include <db.h>
29093 #endif
29094
29095 #ifndef DB_VERSION_MAJOR
29096 # define DB_VERSION_MAJOR 1
29097 #endif
29098
29099 #ifndef NULL
29100 #define NULL ((void*)0)
29101 #endif
29102
29103 int
29104 main ()
29105 {
29106
29107 #if DB_VERSION_MAJOR > 2
29108         db_env_create( NULL, 0 );
29109 #elif DB_VERSION_MAJOR > 1
29110         db_appexit( NULL );
29111 #else
29112         (void) dbopen( NULL, 0, 0, 0, NULL);
29113 #endif
29114
29115   ;
29116   return 0;
29117 }
29118 _ACEOF
29119 rm -f conftest.$ac_objext conftest$ac_exeext
29120 if { (ac_try="$ac_link"
29121 case "(($ac_try" in
29122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29123   *) ac_try_echo=$ac_try;;
29124 esac
29125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29126   (eval "$ac_link") 2>conftest.er1
29127   ac_status=$?
29128   grep -v '^ *+' conftest.er1 >conftest.err
29129   rm -f conftest.er1
29130   cat conftest.err >&5
29131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132   (exit $ac_status); } && {
29133          test -z "$ac_c_werror_flag" ||
29134          test ! -s conftest.err
29135        } && test -s conftest$ac_exeext &&
29136        $as_test_x conftest$ac_exeext; then
29137   ol_cv_db_db=yes
29138 else
29139   echo "$as_me: failed program was:" >&5
29140 sed 's/^/| /' conftest.$ac_ext >&5
29141
29142         ol_cv_db_db=no
29143 fi
29144
29145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29146       conftest$ac_exeext conftest.$ac_ext
29147
29148         LIBS="$ol_LIBS"
29149
29150 fi
29151 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29152 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29153
29154         if test $ol_cv_db_db = yes ; then
29155                 ol_cv_lib_db=-ldb
29156         fi
29157 fi
29158
29159 fi
29160 if test $ol_cv_lib_db = no ; then
29161         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29162 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29163 if test "${ol_cv_db_none+set}" = set; then
29164   echo $ECHO_N "(cached) $ECHO_C" >&6
29165 else
29166
29167         ol_DB_LIB=
29168         ol_LIBS=$LIBS
29169         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29170
29171         cat >conftest.$ac_ext <<_ACEOF
29172 /* confdefs.h.  */
29173 _ACEOF
29174 cat confdefs.h >>conftest.$ac_ext
29175 cat >>conftest.$ac_ext <<_ACEOF
29176 /* end confdefs.h.  */
29177
29178 #ifdef HAVE_DB_185_H
29179 # include <db_185.h>
29180 #else
29181 # include <db.h>
29182 #endif
29183
29184 #ifndef DB_VERSION_MAJOR
29185 # define DB_VERSION_MAJOR 1
29186 #endif
29187
29188 #ifndef NULL
29189 #define NULL ((void*)0)
29190 #endif
29191
29192 int
29193 main ()
29194 {
29195
29196 #if DB_VERSION_MAJOR > 2
29197         db_env_create( NULL, 0 );
29198 #elif DB_VERSION_MAJOR > 1
29199         db_appexit( NULL );
29200 #else
29201         (void) dbopen( NULL, 0, 0, 0, NULL);
29202 #endif
29203
29204   ;
29205   return 0;
29206 }
29207 _ACEOF
29208 rm -f conftest.$ac_objext conftest$ac_exeext
29209 if { (ac_try="$ac_link"
29210 case "(($ac_try" in
29211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212   *) ac_try_echo=$ac_try;;
29213 esac
29214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29215   (eval "$ac_link") 2>conftest.er1
29216   ac_status=$?
29217   grep -v '^ *+' conftest.er1 >conftest.err
29218   rm -f conftest.er1
29219   cat conftest.err >&5
29220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221   (exit $ac_status); } && {
29222          test -z "$ac_c_werror_flag" ||
29223          test ! -s conftest.err
29224        } && test -s conftest$ac_exeext &&
29225        $as_test_x conftest$ac_exeext; then
29226   ol_cv_db_none=yes
29227 else
29228   echo "$as_me: failed program was:" >&5
29229 sed 's/^/| /' conftest.$ac_ext >&5
29230
29231         ol_cv_db_none=no
29232 fi
29233
29234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29235       conftest$ac_exeext conftest.$ac_ext
29236
29237         LIBS="$ol_LIBS"
29238
29239 fi
29240 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29241 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29242
29243         if test $ol_cv_db_none = yes ; then
29244                 ol_cv_lib_db=yes
29245         fi
29246 fi
29247
29248
29249         if test "$ol_cv_lib_db" != no ; then
29250                 ol_cv_berkeley_db=yes
29251                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29252 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29253 if test "${ol_cv_berkeley_db_version+set}" = set; then
29254   echo $ECHO_N "(cached) $ECHO_C" >&6
29255 else
29256
29257         ol_LIBS="$LIBS"
29258         LIBS="$LTHREAD_LIBS $LIBS"
29259         if test $ol_cv_lib_db != yes ; then
29260                 LIBS="$ol_cv_lib_db $LIBS"
29261         fi
29262
29263         if test "$cross_compiling" = yes; then
29264   ol_cv_berkeley_db_version=cross
29265 else
29266   cat >conftest.$ac_ext <<_ACEOF
29267 /* confdefs.h.  */
29268 _ACEOF
29269 cat confdefs.h >>conftest.$ac_ext
29270 cat >>conftest.$ac_ext <<_ACEOF
29271 /* end confdefs.h.  */
29272
29273 #ifdef HAVE_DB_185_H
29274         choke me;
29275 #else
29276 #include <db.h>
29277 #endif
29278 #ifndef DB_VERSION_MAJOR
29279 # define DB_VERSION_MAJOR 1
29280 #endif
29281 #ifndef NULL
29282 #define NULL ((void *)0)
29283 #endif
29284 main()
29285 {
29286 #if DB_VERSION_MAJOR > 1
29287         char *version;
29288         int major, minor, patch;
29289
29290         version = db_version( &major, &minor, &patch );
29291
29292         if( major != DB_VERSION_MAJOR ||
29293                 minor != DB_VERSION_MINOR ||
29294                 patch != DB_VERSION_PATCH )
29295         {
29296                 printf("Berkeley DB version mismatch\n"
29297                         "\theader: %s\n\tlibrary: %s\n",
29298                         DB_VERSION_STRING, version);
29299                 return 1;
29300         }
29301 #endif
29302
29303         return 0;
29304 }
29305 _ACEOF
29306 rm -f conftest$ac_exeext
29307 if { (ac_try="$ac_link"
29308 case "(($ac_try" in
29309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29310   *) ac_try_echo=$ac_try;;
29311 esac
29312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29313   (eval "$ac_link") 2>&5
29314   ac_status=$?
29315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29317   { (case "(($ac_try" in
29318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319   *) ac_try_echo=$ac_try;;
29320 esac
29321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322   (eval "$ac_try") 2>&5
29323   ac_status=$?
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); }; }; then
29326   ol_cv_berkeley_db_version=yes
29327 else
29328   echo "$as_me: program exited with status $ac_status" >&5
29329 echo "$as_me: failed program was:" >&5
29330 sed 's/^/| /' conftest.$ac_ext >&5
29331
29332 ( exit $ac_status )
29333 ol_cv_berkeley_db_version=no
29334 fi
29335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29336 fi
29337
29338
29339
29340         LIBS="$ol_LIBS"
29341
29342 fi
29343 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29344 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29345
29346         if test $ol_cv_berkeley_db_version = no ; then
29347                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29348 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29349    { (exit 1); exit 1; }; }
29350         fi
29351
29352                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29353 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29354 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29355   echo $ECHO_N "(cached) $ECHO_C" >&6
29356 else
29357
29358         ol_LIBS="$LIBS"
29359         LIBS="$LTHREAD_LIBS $LIBS"
29360         if test $ol_cv_lib_db != yes ; then
29361                 LIBS="$ol_cv_lib_db $LIBS"
29362         fi
29363
29364         if test "$cross_compiling" = yes; then
29365   ol_cv_berkeley_db_thread=cross
29366 else
29367   cat >conftest.$ac_ext <<_ACEOF
29368 /* confdefs.h.  */
29369 _ACEOF
29370 cat confdefs.h >>conftest.$ac_ext
29371 cat >>conftest.$ac_ext <<_ACEOF
29372 /* end confdefs.h.  */
29373
29374 #ifdef HAVE_DB_185_H
29375         choke me;
29376 #else
29377 #include <db.h>
29378 #endif
29379 #ifndef NULL
29380 #define NULL ((void *)0)
29381 #endif
29382 main()
29383 {
29384         int rc;
29385         u_int32_t flags = DB_CREATE |
29386 #ifdef DB_PRIVATE
29387                 DB_PRIVATE |
29388 #endif
29389                 DB_THREAD;
29390
29391 #if DB_VERSION_MAJOR > 2
29392         DB_ENV *env = NULL;
29393
29394         rc = db_env_create( &env, 0 );
29395
29396         flags |= DB_INIT_MPOOL;
29397 #ifdef DB_MPOOL_PRIVATE
29398         flags |= DB_MPOOL_PRIVATE;
29399 #endif
29400
29401         if( rc ) {
29402                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29403                 return rc;
29404         }
29405
29406 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29407         rc = (env->open)( env, NULL, flags, 0 );
29408 #else
29409         rc = (env->open)( env, NULL, NULL, flags, 0 );
29410 #endif
29411
29412         if ( rc == 0 ) {
29413                 rc = env->close( env, 0 );
29414         }
29415
29416         if( rc ) {
29417                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29418                 return rc;
29419         }
29420
29421 #else
29422         DB_ENV env;
29423         memset( &env, '\0', sizeof(env) );
29424
29425         rc = db_appinit( NULL, NULL, &env, flags );
29426
29427         if( rc == 0 ) {
29428                 db_appexit( &env );
29429         }
29430
29431         unlink("__db_mpool.share");
29432         unlink("__db_lock.share");
29433 #endif
29434
29435         return rc;
29436 }
29437 _ACEOF
29438 rm -f conftest$ac_exeext
29439 if { (ac_try="$ac_link"
29440 case "(($ac_try" in
29441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442   *) ac_try_echo=$ac_try;;
29443 esac
29444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29445   (eval "$ac_link") 2>&5
29446   ac_status=$?
29447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29449   { (case "(($ac_try" in
29450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29451   *) ac_try_echo=$ac_try;;
29452 esac
29453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29454   (eval "$ac_try") 2>&5
29455   ac_status=$?
29456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457   (exit $ac_status); }; }; then
29458   ol_cv_berkeley_db_thread=yes
29459 else
29460   echo "$as_me: program exited with status $ac_status" >&5
29461 echo "$as_me: failed program was:" >&5
29462 sed 's/^/| /' conftest.$ac_ext >&5
29463
29464 ( exit $ac_status )
29465 ol_cv_berkeley_db_thread=no
29466 fi
29467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29468 fi
29469
29470
29471
29472         LIBS="$ol_LIBS"
29473
29474 fi
29475 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29476 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29477
29478         if test $ol_cv_berkeley_db_thread != no ; then
29479
29480 cat >>confdefs.h <<\_ACEOF
29481 #define HAVE_BERKELEY_DB_THREAD 1
29482 _ACEOF
29483
29484         fi
29485
29486         fi
29487 fi
29488
29489
29490         if test $ol_cv_berkeley_db = no ; then
29491                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29492 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29493    { (exit 1); exit 1; }; }
29494         fi
29495
29496
29497 cat >>confdefs.h <<\_ACEOF
29498 #define HAVE_BERKELEY_DB 1
29499 _ACEOF
29500
29501
29502                         if test $ol_cv_lib_db != yes ; then
29503                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29504         fi
29505
29506         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29507
29508         ol_link_bdb=yes
29509 fi
29510
29511
29512 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29513         BUILD_LIBS_DYNAMIC=shared
29514
29515 cat >>confdefs.h <<\_ACEOF
29516 #define LDAP_LIBS_DYNAMIC 1
29517 _ACEOF
29518
29519         LTSTATIC=""
29520 else
29521         BUILD_LIBS_DYNAMIC=static
29522         LTSTATIC="-static"
29523 fi
29524
29525 if test $ol_enable_wrappers != no ; then
29526
29527 for ac_header in tcpd.h
29528 do
29529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29531   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29534   echo $ECHO_N "(cached) $ECHO_C" >&6
29535 fi
29536 ac_res=`eval echo '${'$as_ac_Header'}'`
29537                { echo "$as_me:$LINENO: result: $ac_res" >&5
29538 echo "${ECHO_T}$ac_res" >&6; }
29539 else
29540   # Is the header compilable?
29541 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29543 cat >conftest.$ac_ext <<_ACEOF
29544 /* confdefs.h.  */
29545 _ACEOF
29546 cat confdefs.h >>conftest.$ac_ext
29547 cat >>conftest.$ac_ext <<_ACEOF
29548 /* end confdefs.h.  */
29549 $ac_includes_default
29550 #include <$ac_header>
29551 _ACEOF
29552 rm -f conftest.$ac_objext
29553 if { (ac_try="$ac_compile"
29554 case "(($ac_try" in
29555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556   *) ac_try_echo=$ac_try;;
29557 esac
29558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559   (eval "$ac_compile") 2>conftest.er1
29560   ac_status=$?
29561   grep -v '^ *+' conftest.er1 >conftest.err
29562   rm -f conftest.er1
29563   cat conftest.err >&5
29564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565   (exit $ac_status); } && {
29566          test -z "$ac_c_werror_flag" ||
29567          test ! -s conftest.err
29568        } && test -s conftest.$ac_objext; then
29569   ac_header_compiler=yes
29570 else
29571   echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29573
29574         ac_header_compiler=no
29575 fi
29576
29577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29579 echo "${ECHO_T}$ac_header_compiler" >&6; }
29580
29581 # Is the header present?
29582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29584 cat >conftest.$ac_ext <<_ACEOF
29585 /* confdefs.h.  */
29586 _ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h.  */
29590 #include <$ac_header>
29591 _ACEOF
29592 if { (ac_try="$ac_cpp conftest.$ac_ext"
29593 case "(($ac_try" in
29594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595   *) ac_try_echo=$ac_try;;
29596 esac
29597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29599   ac_status=$?
29600   grep -v '^ *+' conftest.er1 >conftest.err
29601   rm -f conftest.er1
29602   cat conftest.err >&5
29603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604   (exit $ac_status); } >/dev/null && {
29605          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29606          test ! -s conftest.err
29607        }; then
29608   ac_header_preproc=yes
29609 else
29610   echo "$as_me: failed program was:" >&5
29611 sed 's/^/| /' conftest.$ac_ext >&5
29612
29613   ac_header_preproc=no
29614 fi
29615
29616 rm -f conftest.err conftest.$ac_ext
29617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29618 echo "${ECHO_T}$ac_header_preproc" >&6; }
29619
29620 # So?  What about this header?
29621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29622   yes:no: )
29623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29627     ac_header_preproc=yes
29628     ;;
29629   no:yes:* )
29630     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29632     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29633 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29634     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29636     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29637 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29640     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29642     ( cat <<\_ASBOX
29643 ## --------------------------------------------- ##
29644 ## Report this to <http://www.openldap.org/its/> ##
29645 ## --------------------------------------------- ##
29646 _ASBOX
29647      ) | sed "s/^/$as_me: WARNING:     /" >&2
29648     ;;
29649 esac
29650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29653   echo $ECHO_N "(cached) $ECHO_C" >&6
29654 else
29655   eval "$as_ac_Header=\$ac_header_preproc"
29656 fi
29657 ac_res=`eval echo '${'$as_ac_Header'}'`
29658                { echo "$as_me:$LINENO: result: $ac_res" >&5
29659 echo "${ECHO_T}$ac_res" >&6; }
29660
29661 fi
29662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29663   cat >>confdefs.h <<_ACEOF
29664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29665 _ACEOF
29666
29667                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29668 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29669                 save_LIBS="$LIBS"
29670                 LIBS="$LIBS -lwrap"
29671                 cat >conftest.$ac_ext <<_ACEOF
29672 /* confdefs.h.  */
29673 _ACEOF
29674 cat confdefs.h >>conftest.$ac_ext
29675 cat >>conftest.$ac_ext <<_ACEOF
29676 /* end confdefs.h.  */
29677
29678 #include <tcpd.h>
29679 int allow_severity = 0;
29680 int deny_severity  = 0;
29681
29682 struct request_info *req;
29683
29684 int
29685 main ()
29686 {
29687
29688 hosts_access(req)
29689
29690   ;
29691   return 0;
29692 }
29693 _ACEOF
29694 rm -f conftest.$ac_objext conftest$ac_exeext
29695 if { (ac_try="$ac_link"
29696 case "(($ac_try" in
29697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29698   *) ac_try_echo=$ac_try;;
29699 esac
29700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29701   (eval "$ac_link") 2>conftest.er1
29702   ac_status=$?
29703   grep -v '^ *+' conftest.er1 >conftest.err
29704   rm -f conftest.er1
29705   cat conftest.err >&5
29706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707   (exit $ac_status); } && {
29708          test -z "$ac_c_werror_flag" ||
29709          test ! -s conftest.err
29710        } && test -s conftest$ac_exeext &&
29711        $as_test_x conftest$ac_exeext; then
29712   { echo "$as_me:$LINENO: result: -lwrap" >&5
29713 echo "${ECHO_T}-lwrap" >&6; }
29714                 have_wrappers=yes
29715                 LIBS="$save_LIBS"
29716 else
29717   echo "$as_me: failed program was:" >&5
29718 sed 's/^/| /' conftest.$ac_ext >&5
29719
29720
29721                                 LIBS="$LIBS -lnsl"
29722                 cat >conftest.$ac_ext <<_ACEOF
29723 /* confdefs.h.  */
29724 _ACEOF
29725 cat confdefs.h >>conftest.$ac_ext
29726 cat >>conftest.$ac_ext <<_ACEOF
29727 /* end confdefs.h.  */
29728
29729 #include <tcpd.h>
29730 int allow_severity = 0;
29731 int deny_severity  = 0;
29732
29733 struct request_info *req;
29734
29735 int
29736 main ()
29737 {
29738
29739 hosts_access(req)
29740
29741   ;
29742   return 0;
29743 }
29744 _ACEOF
29745 rm -f conftest.$ac_objext conftest$ac_exeext
29746 if { (ac_try="$ac_link"
29747 case "(($ac_try" in
29748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29749   *) ac_try_echo=$ac_try;;
29750 esac
29751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29752   (eval "$ac_link") 2>conftest.er1
29753   ac_status=$?
29754   grep -v '^ *+' conftest.er1 >conftest.err
29755   rm -f conftest.er1
29756   cat conftest.err >&5
29757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758   (exit $ac_status); } && {
29759          test -z "$ac_c_werror_flag" ||
29760          test ! -s conftest.err
29761        } && test -s conftest$ac_exeext &&
29762        $as_test_x conftest$ac_exeext; then
29763   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29764 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29765                 have_wrappers=yes
29766                 LIBS="$save_LIBS -lnsl"
29767 else
29768   echo "$as_me: failed program was:" >&5
29769 sed 's/^/| /' conftest.$ac_ext >&5
29770
29771
29772                 { echo "$as_me:$LINENO: result: no" >&5
29773 echo "${ECHO_T}no" >&6; }
29774                 have_wrappers=no
29775                 LIBS=$save_LIBS
29776 fi
29777
29778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29779       conftest$ac_exeext conftest.$ac_ext
29780 fi
29781
29782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29783       conftest$ac_exeext conftest.$ac_ext
29784 else
29785   have_wrappers=no
29786 fi
29787
29788 done
29789
29790
29791         if test $have_wrappers = yes ; then
29792
29793 cat >>confdefs.h <<\_ACEOF
29794 #define HAVE_TCPD 1
29795 _ACEOF
29796
29797                 WRAP_LIBS="-lwrap"
29798         elif test $ol_enable_wrappers = yes ; then
29799                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29800 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29801    { (exit 1); exit 1; }; }
29802         else
29803                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29804 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29805                 WRAP_LIBS=""
29806         fi
29807 fi
29808
29809 if test $ol_enable_syslog != no ; then
29810         { echo "$as_me:$LINENO: checking for openlog" >&5
29811 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29812 if test "${ac_cv_func_openlog+set}" = set; then
29813   echo $ECHO_N "(cached) $ECHO_C" >&6
29814 else
29815   cat >conftest.$ac_ext <<_ACEOF
29816 /* confdefs.h.  */
29817 _ACEOF
29818 cat confdefs.h >>conftest.$ac_ext
29819 cat >>conftest.$ac_ext <<_ACEOF
29820 /* end confdefs.h.  */
29821 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29823 #define openlog innocuous_openlog
29824
29825 /* System header to define __stub macros and hopefully few prototypes,
29826     which can conflict with char openlog (); below.
29827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29828     <limits.h> exists even on freestanding compilers.  */
29829
29830 #ifdef __STDC__
29831 # include <limits.h>
29832 #else
29833 # include <assert.h>
29834 #endif
29835
29836 #undef openlog
29837
29838 /* Override any GCC internal prototype to avoid an error.
29839    Use char because int might match the return type of a GCC
29840    builtin and then its argument prototype would still apply.  */
29841 #ifdef __cplusplus
29842 extern "C"
29843 #endif
29844 char openlog ();
29845 /* The GNU C library defines this for functions which it implements
29846     to always fail with ENOSYS.  Some functions are actually named
29847     something starting with __ and the normal name is an alias.  */
29848 #if defined __stub_openlog || defined __stub___openlog
29849 choke me
29850 #endif
29851
29852 int
29853 main ()
29854 {
29855 return openlog ();
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_func_openlog=yes
29879 else
29880   echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29882
29883         ac_cv_func_openlog=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 fi
29889 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29890 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29891
29892         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29893                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29894 echo "$as_me: error: could not find syslog" >&2;}
29895    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29896         fi
29897         ol_enable_syslog=$ac_cv_func_openlog
29898 fi
29899
29900 ol_link_sql=no
29901 if test $ol_enable_sql != no ; then
29902
29903
29904 for ac_header in sql.h sqlext.h
29905 do
29906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29908   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29911   echo $ECHO_N "(cached) $ECHO_C" >&6
29912 fi
29913 ac_res=`eval echo '${'$as_ac_Header'}'`
29914                { echo "$as_me:$LINENO: result: $ac_res" >&5
29915 echo "${ECHO_T}$ac_res" >&6; }
29916 else
29917   # Is the header compilable?
29918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29920 cat >conftest.$ac_ext <<_ACEOF
29921 /* confdefs.h.  */
29922 _ACEOF
29923 cat confdefs.h >>conftest.$ac_ext
29924 cat >>conftest.$ac_ext <<_ACEOF
29925 /* end confdefs.h.  */
29926 $ac_includes_default
29927 #include <$ac_header>
29928 _ACEOF
29929 rm -f conftest.$ac_objext
29930 if { (ac_try="$ac_compile"
29931 case "(($ac_try" in
29932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29933   *) ac_try_echo=$ac_try;;
29934 esac
29935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29936   (eval "$ac_compile") 2>conftest.er1
29937   ac_status=$?
29938   grep -v '^ *+' conftest.er1 >conftest.err
29939   rm -f conftest.er1
29940   cat conftest.err >&5
29941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942   (exit $ac_status); } && {
29943          test -z "$ac_c_werror_flag" ||
29944          test ! -s conftest.err
29945        } && test -s conftest.$ac_objext; then
29946   ac_header_compiler=yes
29947 else
29948   echo "$as_me: failed program was:" >&5
29949 sed 's/^/| /' conftest.$ac_ext >&5
29950
29951         ac_header_compiler=no
29952 fi
29953
29954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29955 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29956 echo "${ECHO_T}$ac_header_compiler" >&6; }
29957
29958 # Is the header present?
29959 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29961 cat >conftest.$ac_ext <<_ACEOF
29962 /* confdefs.h.  */
29963 _ACEOF
29964 cat confdefs.h >>conftest.$ac_ext
29965 cat >>conftest.$ac_ext <<_ACEOF
29966 /* end confdefs.h.  */
29967 #include <$ac_header>
29968 _ACEOF
29969 if { (ac_try="$ac_cpp conftest.$ac_ext"
29970 case "(($ac_try" in
29971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29972   *) ac_try_echo=$ac_try;;
29973 esac
29974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29975   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29976   ac_status=$?
29977   grep -v '^ *+' conftest.er1 >conftest.err
29978   rm -f conftest.er1
29979   cat conftest.err >&5
29980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981   (exit $ac_status); } >/dev/null && {
29982          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29983          test ! -s conftest.err
29984        }; then
29985   ac_header_preproc=yes
29986 else
29987   echo "$as_me: failed program was:" >&5
29988 sed 's/^/| /' conftest.$ac_ext >&5
29989
29990   ac_header_preproc=no
29991 fi
29992
29993 rm -f conftest.err conftest.$ac_ext
29994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29995 echo "${ECHO_T}$ac_header_preproc" >&6; }
29996
29997 # So?  What about this header?
29998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29999   yes:no: )
30000     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30004     ac_header_preproc=yes
30005     ;;
30006   no:yes:* )
30007     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30009     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30010 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30011     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30013     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30014 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30017     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30019     ( cat <<\_ASBOX
30020 ## --------------------------------------------- ##
30021 ## Report this to <http://www.openldap.org/its/> ##
30022 ## --------------------------------------------- ##
30023 _ASBOX
30024      ) | sed "s/^/$as_me: WARNING:     /" >&2
30025     ;;
30026 esac
30027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30030   echo $ECHO_N "(cached) $ECHO_C" >&6
30031 else
30032   eval "$as_ac_Header=\$ac_header_preproc"
30033 fi
30034 ac_res=`eval echo '${'$as_ac_Header'}'`
30035                { echo "$as_me:$LINENO: result: $ac_res" >&5
30036 echo "${ECHO_T}$ac_res" >&6; }
30037
30038 fi
30039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30040   cat >>confdefs.h <<_ACEOF
30041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30042 _ACEOF
30043
30044 else
30045
30046                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30047 echo "$as_me: error: could not locate SQL headers" >&2;}
30048    { (exit 1); exit 1; }; }
30049
30050 fi
30051
30052 done
30053
30054
30055         sql_LIBS="$LIBS"
30056         LIBS="$LTHREAD_LIBS"
30057
30058         if test $ol_with_odbc = auto ; then
30059                 ol_with_odbc="iodbc unixodbc odbc32"
30060         fi
30061
30062         for odbc in $ol_with_odbc ; do
30063                 if test $ol_link_sql = no ; then
30064                         case $odbc in
30065                         iodbc)
30066                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30067 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
30068 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30069   echo $ECHO_N "(cached) $ECHO_C" >&6
30070 else
30071   ac_check_lib_save_LIBS=$LIBS
30072 LIBS="-liodbc  $LIBS"
30073 cat >conftest.$ac_ext <<_ACEOF
30074 /* confdefs.h.  */
30075 _ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h.  */
30079
30080 /* Override any GCC internal prototype to avoid an error.
30081    Use char because int might match the return type of a GCC
30082    builtin and then its argument prototype would still apply.  */
30083 #ifdef __cplusplus
30084 extern "C"
30085 #endif
30086 char SQLDriverConnect ();
30087 int
30088 main ()
30089 {
30090 return SQLDriverConnect ();
30091   ;
30092   return 0;
30093 }
30094 _ACEOF
30095 rm -f conftest.$ac_objext conftest$ac_exeext
30096 if { (ac_try="$ac_link"
30097 case "(($ac_try" in
30098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30099   *) ac_try_echo=$ac_try;;
30100 esac
30101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30102   (eval "$ac_link") 2>conftest.er1
30103   ac_status=$?
30104   grep -v '^ *+' conftest.er1 >conftest.err
30105   rm -f conftest.er1
30106   cat conftest.err >&5
30107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108   (exit $ac_status); } && {
30109          test -z "$ac_c_werror_flag" ||
30110          test ! -s conftest.err
30111        } && test -s conftest$ac_exeext &&
30112        $as_test_x conftest$ac_exeext; then
30113   ac_cv_lib_iodbc_SQLDriverConnect=yes
30114 else
30115   echo "$as_me: failed program was:" >&5
30116 sed 's/^/| /' conftest.$ac_ext >&5
30117
30118         ac_cv_lib_iodbc_SQLDriverConnect=no
30119 fi
30120
30121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30122       conftest$ac_exeext conftest.$ac_ext
30123 LIBS=$ac_check_lib_save_LIBS
30124 fi
30125 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30126 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
30127 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30128   have_iodbc=yes
30129 else
30130   have_iodbc=no
30131 fi
30132
30133                                 if test $have_iodbc = yes ; then
30134                                         ol_link_sql="-liodbc"
30135                                 fi
30136                                 ;;
30137
30138                         unixodbc)
30139                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30140 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
30141 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30142   echo $ECHO_N "(cached) $ECHO_C" >&6
30143 else
30144   ac_check_lib_save_LIBS=$LIBS
30145 LIBS="-lodbc  $LIBS"
30146 cat >conftest.$ac_ext <<_ACEOF
30147 /* confdefs.h.  */
30148 _ACEOF
30149 cat confdefs.h >>conftest.$ac_ext
30150 cat >>conftest.$ac_ext <<_ACEOF
30151 /* end confdefs.h.  */
30152
30153 /* Override any GCC internal prototype to avoid an error.
30154    Use char because int might match the return type of a GCC
30155    builtin and then its argument prototype would still apply.  */
30156 #ifdef __cplusplus
30157 extern "C"
30158 #endif
30159 char SQLDriverConnect ();
30160 int
30161 main ()
30162 {
30163 return SQLDriverConnect ();
30164   ;
30165   return 0;
30166 }
30167 _ACEOF
30168 rm -f conftest.$ac_objext conftest$ac_exeext
30169 if { (ac_try="$ac_link"
30170 case "(($ac_try" in
30171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30172   *) ac_try_echo=$ac_try;;
30173 esac
30174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30175   (eval "$ac_link") 2>conftest.er1
30176   ac_status=$?
30177   grep -v '^ *+' conftest.er1 >conftest.err
30178   rm -f conftest.er1
30179   cat conftest.err >&5
30180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30181   (exit $ac_status); } && {
30182          test -z "$ac_c_werror_flag" ||
30183          test ! -s conftest.err
30184        } && test -s conftest$ac_exeext &&
30185        $as_test_x conftest$ac_exeext; then
30186   ac_cv_lib_odbc_SQLDriverConnect=yes
30187 else
30188   echo "$as_me: failed program was:" >&5
30189 sed 's/^/| /' conftest.$ac_ext >&5
30190
30191         ac_cv_lib_odbc_SQLDriverConnect=no
30192 fi
30193
30194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30195       conftest$ac_exeext conftest.$ac_ext
30196 LIBS=$ac_check_lib_save_LIBS
30197 fi
30198 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30199 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30200 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30201   have_odbc=yes
30202 else
30203   have_odbc=no
30204 fi
30205
30206                                 if test $have_odbc = yes ; then
30207                                         ol_link_sql="-lodbc"
30208                                 fi
30209                                 ;;
30210
30211                         odbc32)
30212                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30213 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30214 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30215   echo $ECHO_N "(cached) $ECHO_C" >&6
30216 else
30217   ac_check_lib_save_LIBS=$LIBS
30218 LIBS="-lodbc32  $LIBS"
30219 cat >conftest.$ac_ext <<_ACEOF
30220 /* confdefs.h.  */
30221 _ACEOF
30222 cat confdefs.h >>conftest.$ac_ext
30223 cat >>conftest.$ac_ext <<_ACEOF
30224 /* end confdefs.h.  */
30225
30226 /* Override any GCC internal prototype to avoid an error.
30227    Use char because int might match the return type of a GCC
30228    builtin and then its argument prototype would still apply.  */
30229 #ifdef __cplusplus
30230 extern "C"
30231 #endif
30232 char SQLDriverConnect ();
30233 int
30234 main ()
30235 {
30236 return SQLDriverConnect ();
30237   ;
30238   return 0;
30239 }
30240 _ACEOF
30241 rm -f conftest.$ac_objext conftest$ac_exeext
30242 if { (ac_try="$ac_link"
30243 case "(($ac_try" in
30244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30245   *) ac_try_echo=$ac_try;;
30246 esac
30247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30248   (eval "$ac_link") 2>conftest.er1
30249   ac_status=$?
30250   grep -v '^ *+' conftest.er1 >conftest.err
30251   rm -f conftest.er1
30252   cat conftest.err >&5
30253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254   (exit $ac_status); } && {
30255          test -z "$ac_c_werror_flag" ||
30256          test ! -s conftest.err
30257        } && test -s conftest$ac_exeext &&
30258        $as_test_x conftest$ac_exeext; then
30259   ac_cv_lib_odbc32_SQLDriverConnect=yes
30260 else
30261   echo "$as_me: failed program was:" >&5
30262 sed 's/^/| /' conftest.$ac_ext >&5
30263
30264         ac_cv_lib_odbc32_SQLDriverConnect=no
30265 fi
30266
30267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30268       conftest$ac_exeext conftest.$ac_ext
30269 LIBS=$ac_check_lib_save_LIBS
30270 fi
30271 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30272 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30273 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30274   have_odbc32=yes
30275 else
30276   have_odbc32=no
30277 fi
30278
30279                                 if test $have_odbc32 = yes ; then
30280                                         ol_link_sql="-lodbc32"
30281                                 fi
30282                                 ;;
30283
30284                         *)
30285                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30286 echo "$as_me: error: unknown ODBC library" >&2;}
30287    { (exit 1); exit 1; }; }
30288                                 ;;
30289                         esac
30290                 fi
30291         done
30292
30293         LIBS="$sql_LIBS"
30294
30295         if test $ol_link_sql != no ; then
30296                 SLAPD_SQL_LIBS="$ol_link_sql"
30297
30298         elif test $ol_enable_sql != auto ; then
30299                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30300 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30301    { (exit 1); exit 1; }; }
30302         fi
30303 fi
30304
30305 ol_link_ndb=no
30306 if test $ol_enable_ndb != no ; then
30307         # Extract the first word of "mysql_config", so it can be a program name with args.
30308 set dummy mysql_config; ac_word=$2
30309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30311 if test "${ac_cv_prog_MYSQL+set}" = set; then
30312   echo $ECHO_N "(cached) $ECHO_C" >&6
30313 else
30314   if test -n "$MYSQL"; then
30315   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30316 else
30317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30318 for as_dir in $PATH
30319 do
30320   IFS=$as_save_IFS
30321   test -z "$as_dir" && as_dir=.
30322   for ac_exec_ext in '' $ac_executable_extensions; do
30323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30324     ac_cv_prog_MYSQL="yes"
30325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30326     break 2
30327   fi
30328 done
30329 done
30330 IFS=$as_save_IFS
30331
30332 fi
30333 fi
30334 MYSQL=$ac_cv_prog_MYSQL
30335 if test -n "$MYSQL"; then
30336   { echo "$as_me:$LINENO: result: $MYSQL" >&5
30337 echo "${ECHO_T}$MYSQL" >&6; }
30338 else
30339   { echo "$as_me:$LINENO: result: no" >&5
30340 echo "${ECHO_T}no" >&6; }
30341 fi
30342
30343
30344         if test "$MYSQL" != yes ; then
30345                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30346 echo "$as_me: error: could not locate mysql_config" >&2;}
30347    { (exit 1); exit 1; }; }
30348         fi
30349
30350         SQL_INC=`mysql_config --include`
30351         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30352
30353         save_CPPFLAGS="$CPPFLAGS"
30354         CPPFLAGS="$SLAPD_NDB_INCS"
30355         { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30356 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30357         cat >conftest.$ac_ext <<_ACEOF
30358 /* confdefs.h.  */
30359 _ACEOF
30360 cat confdefs.h >>conftest.$ac_ext
30361 cat >>conftest.$ac_ext <<_ACEOF
30362 /* end confdefs.h.  */
30363 #include <NdbApi.hpp>
30364 _ACEOF
30365 if { (ac_try="$ac_cpp conftest.$ac_ext"
30366 case "(($ac_try" in
30367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368   *) ac_try_echo=$ac_try;;
30369 esac
30370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30372   ac_status=$?
30373   grep -v '^ *+' conftest.er1 >conftest.err
30374   rm -f conftest.er1
30375   cat conftest.err >&5
30376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377   (exit $ac_status); } >/dev/null && {
30378          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30379          test ! -s conftest.err
30380        }; then
30381   { echo "$as_me:$LINENO: result: yes" >&5
30382 echo "${ECHO_T}yes" >&6; }
30383 else
30384   echo "$as_me: failed program was:" >&5
30385 sed 's/^/| /' conftest.$ac_ext >&5
30386
30387   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30388 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30389    { (exit 1); exit 1; }; }
30390
30391 fi
30392
30393 rm -f conftest.err conftest.$ac_ext
30394         CPPFLAGS="$save_CPPFLAGS"
30395
30396         SQL_LIB=`mysql_config --libs_r`
30397         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30398
30399         save_LDFLAGS="$LDFLAGS"
30400         save_LIBS="$LIBS"
30401         LDFLAGS="$SQL_LIB"
30402         { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30403 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30404 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30405   echo $ECHO_N "(cached) $ECHO_C" >&6
30406 else
30407   ac_check_lib_save_LIBS=$LIBS
30408 LIBS="-lndbclient -lstdc++ $LIBS"
30409 cat >conftest.$ac_ext <<_ACEOF
30410 /* confdefs.h.  */
30411 _ACEOF
30412 cat confdefs.h >>conftest.$ac_ext
30413 cat >>conftest.$ac_ext <<_ACEOF
30414 /* end confdefs.h.  */
30415
30416 /* Override any GCC internal prototype to avoid an error.
30417    Use char because int might match the return type of a GCC
30418    builtin and then its argument prototype would still apply.  */
30419 #ifdef __cplusplus
30420 extern "C"
30421 #endif
30422 char ndb_init ();
30423 int
30424 main ()
30425 {
30426 return ndb_init ();
30427   ;
30428   return 0;
30429 }
30430 _ACEOF
30431 rm -f conftest.$ac_objext conftest$ac_exeext
30432 if { (ac_try="$ac_link"
30433 case "(($ac_try" in
30434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435   *) ac_try_echo=$ac_try;;
30436 esac
30437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438   (eval "$ac_link") 2>conftest.er1
30439   ac_status=$?
30440   grep -v '^ *+' conftest.er1 >conftest.err
30441   rm -f conftest.er1
30442   cat conftest.err >&5
30443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444   (exit $ac_status); } && {
30445          test -z "$ac_c_werror_flag" ||
30446          test ! -s conftest.err
30447        } && test -s conftest$ac_exeext &&
30448        $as_test_x conftest$ac_exeext; then
30449   ac_cv_lib_ndbclient_ndb_init=yes
30450 else
30451   echo "$as_me: failed program was:" >&5
30452 sed 's/^/| /' conftest.$ac_ext >&5
30453
30454         ac_cv_lib_ndbclient_ndb_init=no
30455 fi
30456
30457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30458       conftest$ac_exeext conftest.$ac_ext
30459 LIBS=$ac_check_lib_save_LIBS
30460 fi
30461 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30462 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30463 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30464   : ok
30465 else
30466
30467                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30468 echo "$as_me: error: could not locate ndbclient library" >&2;}
30469    { (exit 1); exit 1; }; }
30470
30471 fi
30472
30473         LIBS="$save_LIBS"
30474         LDFLAGS="$save_LDFLAGS"
30475
30476         if test "$ol_enable_ndb" = yes ; then
30477                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30478         fi
30479 fi
30480
30481 ol_icu=no
30482
30483 for ac_header in unicode/utypes.h
30484 do
30485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30487   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30490   echo $ECHO_N "(cached) $ECHO_C" >&6
30491 fi
30492 ac_res=`eval echo '${'$as_ac_Header'}'`
30493                { echo "$as_me:$LINENO: result: $ac_res" >&5
30494 echo "${ECHO_T}$ac_res" >&6; }
30495 else
30496   # Is the header compilable?
30497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30499 cat >conftest.$ac_ext <<_ACEOF
30500 /* confdefs.h.  */
30501 _ACEOF
30502 cat confdefs.h >>conftest.$ac_ext
30503 cat >>conftest.$ac_ext <<_ACEOF
30504 /* end confdefs.h.  */
30505 $ac_includes_default
30506 #include <$ac_header>
30507 _ACEOF
30508 rm -f conftest.$ac_objext
30509 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
30525   ac_header_compiler=yes
30526 else
30527   echo "$as_me: failed program was:" >&5
30528 sed 's/^/| /' conftest.$ac_ext >&5
30529
30530         ac_header_compiler=no
30531 fi
30532
30533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30535 echo "${ECHO_T}$ac_header_compiler" >&6; }
30536
30537 # Is the header present?
30538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30540 cat >conftest.$ac_ext <<_ACEOF
30541 /* confdefs.h.  */
30542 _ACEOF
30543 cat confdefs.h >>conftest.$ac_ext
30544 cat >>conftest.$ac_ext <<_ACEOF
30545 /* end confdefs.h.  */
30546 #include <$ac_header>
30547 _ACEOF
30548 if { (ac_try="$ac_cpp conftest.$ac_ext"
30549 case "(($ac_try" in
30550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30551   *) ac_try_echo=$ac_try;;
30552 esac
30553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30554   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30555   ac_status=$?
30556   grep -v '^ *+' conftest.er1 >conftest.err
30557   rm -f conftest.er1
30558   cat conftest.err >&5
30559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560   (exit $ac_status); } >/dev/null && {
30561          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30562          test ! -s conftest.err
30563        }; then
30564   ac_header_preproc=yes
30565 else
30566   echo "$as_me: failed program was:" >&5
30567 sed 's/^/| /' conftest.$ac_ext >&5
30568
30569   ac_header_preproc=no
30570 fi
30571
30572 rm -f conftest.err conftest.$ac_ext
30573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30574 echo "${ECHO_T}$ac_header_preproc" >&6; }
30575
30576 # So?  What about this header?
30577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30578   yes:no: )
30579     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30583     ac_header_preproc=yes
30584     ;;
30585   no:yes:* )
30586     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30588     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30589 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30590     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30592     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30593 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30596     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30598     ( cat <<\_ASBOX
30599 ## --------------------------------------------- ##
30600 ## Report this to <http://www.openldap.org/its/> ##
30601 ## --------------------------------------------- ##
30602 _ASBOX
30603      ) | sed "s/^/$as_me: WARNING:     /" >&2
30604     ;;
30605 esac
30606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30609   echo $ECHO_N "(cached) $ECHO_C" >&6
30610 else
30611   eval "$as_ac_Header=\$ac_header_preproc"
30612 fi
30613 ac_res=`eval echo '${'$as_ac_Header'}'`
30614                { echo "$as_me:$LINENO: result: $ac_res" >&5
30615 echo "${ECHO_T}$ac_res" >&6; }
30616
30617 fi
30618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30619   cat >>confdefs.h <<_ACEOF
30620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30621 _ACEOF
30622
30623 fi
30624
30625 done
30626
30627 if test $ac_cv_header_unicode_utypes_h = yes ; then
30628                 OL_ICULIBS="-licuuc -licudata"
30629
30630         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30631 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30632 if test "${ol_cv_lib_icu+set}" = set; then
30633   echo $ECHO_N "(cached) $ECHO_C" >&6
30634 else
30635
30636                 ol_LIBS="$LIBS"
30637                 LIBS="$OL_ICULIBS $LIBS"
30638                 cat >conftest.$ac_ext <<_ACEOF
30639 /* confdefs.h.  */
30640 _ACEOF
30641 cat confdefs.h >>conftest.$ac_ext
30642 cat >>conftest.$ac_ext <<_ACEOF
30643 /* end confdefs.h.  */
30644
30645 #include <unicode/utypes.h>
30646
30647 int
30648 main ()
30649 {
30650
30651 (void) u_errorName(0);
30652
30653   ;
30654   return 0;
30655 }
30656 _ACEOF
30657 rm -f conftest.$ac_objext conftest$ac_exeext
30658 if { (ac_try="$ac_link"
30659 case "(($ac_try" in
30660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30661   *) ac_try_echo=$ac_try;;
30662 esac
30663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30664   (eval "$ac_link") 2>conftest.er1
30665   ac_status=$?
30666   grep -v '^ *+' conftest.er1 >conftest.err
30667   rm -f conftest.er1
30668   cat conftest.err >&5
30669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670   (exit $ac_status); } && {
30671          test -z "$ac_c_werror_flag" ||
30672          test ! -s conftest.err
30673        } && test -s conftest$ac_exeext &&
30674        $as_test_x conftest$ac_exeext; then
30675   ol_cv_lib_icu=yes
30676 else
30677   echo "$as_me: failed program was:" >&5
30678 sed 's/^/| /' conftest.$ac_ext >&5
30679
30680         ol_cv_lib_icu=no
30681 fi
30682
30683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30684       conftest$ac_exeext conftest.$ac_ext
30685                 LIBS="$ol_LIBS"
30686
30687 fi
30688 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30689 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30690
30691         if test $ol_cv_lib_icu != no ; then
30692                 ol_icu="$OL_ICULIBS"
30693
30694 cat >>confdefs.h <<\_ACEOF
30695 #define HAVE_ICU 1
30696 _ACEOF
30697
30698         fi
30699 fi
30700
30701 if test "$ol_icu" = no ; then
30702         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30703 echo "$as_me: WARNING: ICU not available" >&2;}
30704 else
30705         ICU_LIBS="$ol_icu"
30706 fi
30707 WITH_SASL=no
30708 ol_link_sasl=no
30709 ol_link_spasswd=no
30710 if test $ol_with_cyrus_sasl != no ; then
30711
30712
30713 for ac_header in sasl/sasl.h sasl.h
30714 do
30715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30717   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30720   echo $ECHO_N "(cached) $ECHO_C" >&6
30721 fi
30722 ac_res=`eval echo '${'$as_ac_Header'}'`
30723                { echo "$as_me:$LINENO: result: $ac_res" >&5
30724 echo "${ECHO_T}$ac_res" >&6; }
30725 else
30726   # Is the header compilable?
30727 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30729 cat >conftest.$ac_ext <<_ACEOF
30730 /* confdefs.h.  */
30731 _ACEOF
30732 cat confdefs.h >>conftest.$ac_ext
30733 cat >>conftest.$ac_ext <<_ACEOF
30734 /* end confdefs.h.  */
30735 $ac_includes_default
30736 #include <$ac_header>
30737 _ACEOF
30738 rm -f conftest.$ac_objext
30739 if { (ac_try="$ac_compile"
30740 case "(($ac_try" in
30741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30742   *) ac_try_echo=$ac_try;;
30743 esac
30744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30745   (eval "$ac_compile") 2>conftest.er1
30746   ac_status=$?
30747   grep -v '^ *+' conftest.er1 >conftest.err
30748   rm -f conftest.er1
30749   cat conftest.err >&5
30750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751   (exit $ac_status); } && {
30752          test -z "$ac_c_werror_flag" ||
30753          test ! -s conftest.err
30754        } && test -s conftest.$ac_objext; then
30755   ac_header_compiler=yes
30756 else
30757   echo "$as_me: failed program was:" >&5
30758 sed 's/^/| /' conftest.$ac_ext >&5
30759
30760         ac_header_compiler=no
30761 fi
30762
30763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30765 echo "${ECHO_T}$ac_header_compiler" >&6; }
30766
30767 # Is the header present?
30768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30770 cat >conftest.$ac_ext <<_ACEOF
30771 /* confdefs.h.  */
30772 _ACEOF
30773 cat confdefs.h >>conftest.$ac_ext
30774 cat >>conftest.$ac_ext <<_ACEOF
30775 /* end confdefs.h.  */
30776 #include <$ac_header>
30777 _ACEOF
30778 if { (ac_try="$ac_cpp conftest.$ac_ext"
30779 case "(($ac_try" in
30780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30781   *) ac_try_echo=$ac_try;;
30782 esac
30783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30785   ac_status=$?
30786   grep -v '^ *+' conftest.er1 >conftest.err
30787   rm -f conftest.er1
30788   cat conftest.err >&5
30789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790   (exit $ac_status); } >/dev/null && {
30791          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30792          test ! -s conftest.err
30793        }; then
30794   ac_header_preproc=yes
30795 else
30796   echo "$as_me: failed program was:" >&5
30797 sed 's/^/| /' conftest.$ac_ext >&5
30798
30799   ac_header_preproc=no
30800 fi
30801
30802 rm -f conftest.err conftest.$ac_ext
30803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30804 echo "${ECHO_T}$ac_header_preproc" >&6; }
30805
30806 # So?  What about this header?
30807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30808   yes:no: )
30809     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30813     ac_header_preproc=yes
30814     ;;
30815   no:yes:* )
30816     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30818     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30819 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30820     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30822     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30823 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30826     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30828     ( cat <<\_ASBOX
30829 ## --------------------------------------------- ##
30830 ## Report this to <http://www.openldap.org/its/> ##
30831 ## --------------------------------------------- ##
30832 _ASBOX
30833      ) | sed "s/^/$as_me: WARNING:     /" >&2
30834     ;;
30835 esac
30836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30839   echo $ECHO_N "(cached) $ECHO_C" >&6
30840 else
30841   eval "$as_ac_Header=\$ac_header_preproc"
30842 fi
30843 ac_res=`eval echo '${'$as_ac_Header'}'`
30844                { echo "$as_me:$LINENO: result: $ac_res" >&5
30845 echo "${ECHO_T}$ac_res" >&6; }
30846
30847 fi
30848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30849   cat >>confdefs.h <<_ACEOF
30850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30851 _ACEOF
30852
30853 fi
30854
30855 done
30856
30857
30858         if test $ac_cv_header_sasl_sasl_h = yes ||
30859            test $ac_cv_header_sasl_h = yes; then
30860                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30861 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30862 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30863   echo $ECHO_N "(cached) $ECHO_C" >&6
30864 else
30865   ac_check_lib_save_LIBS=$LIBS
30866 LIBS="-lsasl2  $LIBS"
30867 cat >conftest.$ac_ext <<_ACEOF
30868 /* confdefs.h.  */
30869 _ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h.  */
30873
30874 /* Override any GCC internal prototype to avoid an error.
30875    Use char because int might match the return type of a GCC
30876    builtin and then its argument prototype would still apply.  */
30877 #ifdef __cplusplus
30878 extern "C"
30879 #endif
30880 char sasl_client_init ();
30881 int
30882 main ()
30883 {
30884 return sasl_client_init ();
30885   ;
30886   return 0;
30887 }
30888 _ACEOF
30889 rm -f conftest.$ac_objext conftest$ac_exeext
30890 if { (ac_try="$ac_link"
30891 case "(($ac_try" in
30892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30893   *) ac_try_echo=$ac_try;;
30894 esac
30895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30896   (eval "$ac_link") 2>conftest.er1
30897   ac_status=$?
30898   grep -v '^ *+' conftest.er1 >conftest.err
30899   rm -f conftest.er1
30900   cat conftest.err >&5
30901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902   (exit $ac_status); } && {
30903          test -z "$ac_c_werror_flag" ||
30904          test ! -s conftest.err
30905        } && test -s conftest$ac_exeext &&
30906        $as_test_x conftest$ac_exeext; then
30907   ac_cv_lib_sasl2_sasl_client_init=yes
30908 else
30909   echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30911
30912         ac_cv_lib_sasl2_sasl_client_init=no
30913 fi
30914
30915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30916       conftest$ac_exeext conftest.$ac_ext
30917 LIBS=$ac_check_lib_save_LIBS
30918 fi
30919 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30920 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30921 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30922   ol_link_sasl="-lsasl2"
30923 else
30924   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30925 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30926 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30927   echo $ECHO_N "(cached) $ECHO_C" >&6
30928 else
30929   ac_check_lib_save_LIBS=$LIBS
30930 LIBS="-lsasl  $LIBS"
30931 cat >conftest.$ac_ext <<_ACEOF
30932 /* confdefs.h.  */
30933 _ACEOF
30934 cat confdefs.h >>conftest.$ac_ext
30935 cat >>conftest.$ac_ext <<_ACEOF
30936 /* end confdefs.h.  */
30937
30938 /* Override any GCC internal prototype to avoid an error.
30939    Use char because int might match the return type of a GCC
30940    builtin and then its argument prototype would still apply.  */
30941 #ifdef __cplusplus
30942 extern "C"
30943 #endif
30944 char sasl_client_init ();
30945 int
30946 main ()
30947 {
30948 return sasl_client_init ();
30949   ;
30950   return 0;
30951 }
30952 _ACEOF
30953 rm -f conftest.$ac_objext conftest$ac_exeext
30954 if { (ac_try="$ac_link"
30955 case "(($ac_try" in
30956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957   *) ac_try_echo=$ac_try;;
30958 esac
30959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960   (eval "$ac_link") 2>conftest.er1
30961   ac_status=$?
30962   grep -v '^ *+' conftest.er1 >conftest.err
30963   rm -f conftest.er1
30964   cat conftest.err >&5
30965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966   (exit $ac_status); } && {
30967          test -z "$ac_c_werror_flag" ||
30968          test ! -s conftest.err
30969        } && test -s conftest$ac_exeext &&
30970        $as_test_x conftest$ac_exeext; then
30971   ac_cv_lib_sasl_sasl_client_init=yes
30972 else
30973   echo "$as_me: failed program was:" >&5
30974 sed 's/^/| /' conftest.$ac_ext >&5
30975
30976         ac_cv_lib_sasl_sasl_client_init=no
30977 fi
30978
30979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30980       conftest$ac_exeext conftest.$ac_ext
30981 LIBS=$ac_check_lib_save_LIBS
30982 fi
30983 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30984 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30985 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30986   ol_link_sasl="-lsasl"
30987 fi
30988
30989 fi
30990
30991         fi
30992
30993         if test $ol_link_sasl = no ; then
30994                 if test $ol_with_cyrus_sasl != auto ; then
30995                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30996 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30997    { (exit 1); exit 1; }; }
30998                 else
30999                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
31000 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
31001                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31002 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31003                         if test $ol_link_tls = no ; then
31004                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31005 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31006                         fi
31007                 fi
31008         else
31009                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
31010 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
31011 if test "${ol_cv_sasl_compat+set}" = set; then
31012   echo $ECHO_N "(cached) $ECHO_C" >&6
31013 else
31014
31015         cat >conftest.$ac_ext <<_ACEOF
31016 /* confdefs.h.  */
31017 _ACEOF
31018 cat confdefs.h >>conftest.$ac_ext
31019 cat >>conftest.$ac_ext <<_ACEOF
31020 /* end confdefs.h.  */
31021
31022 #ifdef HAVE_SASL_SASL_H
31023 #include <sasl/sasl.h>
31024 #else
31025 #include <sasl.h>
31026 #endif
31027
31028 /* Require 2.1.15+ */
31029 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
31030         char *__sasl_compat = "2.2+ or better okay (we guess)";
31031 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
31032         && SASL_VERSION_STEP >=15
31033         char *__sasl_compat = "2.1.15+ or better okay";
31034 #endif
31035
31036 _ACEOF
31037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31038   $EGREP "__sasl_compat" >/dev/null 2>&1; then
31039   ol_cv_sasl_compat=yes
31040 else
31041   ol_cv_sasl_compat=no
31042 fi
31043 rm -f conftest*
31044
31045 fi
31046 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
31047 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
31048
31049                 if test $ol_cv_sasl_compat = no ; then
31050                         ol_link_sasl=no
31051                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
31052 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
31053    { (exit 1); exit 1; }; }
31054                 fi
31055
31056
31057 cat >>confdefs.h <<\_ACEOF
31058 #define HAVE_CYRUS_SASL 1
31059 _ACEOF
31060
31061                 SASL_LIBS="$ol_link_sasl"
31062                 if test $ol_enable_spasswd != no ; then
31063                         ol_link_spasswd=yes
31064                 fi
31065
31066                 ac_save_LIBS="$LIBS"
31067                 LIBS="$LIBS $ol_link_sasl"
31068                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
31069 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
31070 if test "${ac_cv_func_sasl_version+set}" = set; then
31071   echo $ECHO_N "(cached) $ECHO_C" >&6
31072 else
31073   cat >conftest.$ac_ext <<_ACEOF
31074 /* confdefs.h.  */
31075 _ACEOF
31076 cat confdefs.h >>conftest.$ac_ext
31077 cat >>conftest.$ac_ext <<_ACEOF
31078 /* end confdefs.h.  */
31079 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
31080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31081 #define sasl_version innocuous_sasl_version
31082
31083 /* System header to define __stub macros and hopefully few prototypes,
31084     which can conflict with char sasl_version (); below.
31085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31086     <limits.h> exists even on freestanding compilers.  */
31087
31088 #ifdef __STDC__
31089 # include <limits.h>
31090 #else
31091 # include <assert.h>
31092 #endif
31093
31094 #undef sasl_version
31095
31096 /* Override any GCC internal prototype to avoid an error.
31097    Use char because int might match the return type of a GCC
31098    builtin and then its argument prototype would still apply.  */
31099 #ifdef __cplusplus
31100 extern "C"
31101 #endif
31102 char sasl_version ();
31103 /* The GNU C library defines this for functions which it implements
31104     to always fail with ENOSYS.  Some functions are actually named
31105     something starting with __ and the normal name is an alias.  */
31106 #if defined __stub_sasl_version || defined __stub___sasl_version
31107 choke me
31108 #endif
31109
31110 int
31111 main ()
31112 {
31113 return sasl_version ();
31114   ;
31115   return 0;
31116 }
31117 _ACEOF
31118 rm -f conftest.$ac_objext conftest$ac_exeext
31119 if { (ac_try="$ac_link"
31120 case "(($ac_try" in
31121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31122   *) ac_try_echo=$ac_try;;
31123 esac
31124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31125   (eval "$ac_link") 2>conftest.er1
31126   ac_status=$?
31127   grep -v '^ *+' conftest.er1 >conftest.err
31128   rm -f conftest.er1
31129   cat conftest.err >&5
31130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131   (exit $ac_status); } && {
31132          test -z "$ac_c_werror_flag" ||
31133          test ! -s conftest.err
31134        } && test -s conftest$ac_exeext &&
31135        $as_test_x conftest$ac_exeext; then
31136   ac_cv_func_sasl_version=yes
31137 else
31138   echo "$as_me: failed program was:" >&5
31139 sed 's/^/| /' conftest.$ac_ext >&5
31140
31141         ac_cv_func_sasl_version=no
31142 fi
31143
31144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31145       conftest$ac_exeext conftest.$ac_ext
31146 fi
31147 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31148 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
31149 if test $ac_cv_func_sasl_version = yes; then
31150
31151 cat >>confdefs.h <<\_ACEOF
31152 #define HAVE_SASL_VERSION 1
31153 _ACEOF
31154
31155 fi
31156
31157                 LIBS="$ac_save_LIBS"
31158
31159                 WITH_SASL=yes
31160         fi
31161
31162 else
31163         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31164 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31165         if test $ol_link_tls = no ; then
31166                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31167 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31168         fi
31169 fi
31170
31171 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31172         dev=no
31173         if test -r /dev/urandom ; then
31174                 dev="/dev/urandom";
31175         elif test -r /idev/urandom ; then
31176                 dev="/idev/urandom";
31177         elif test -r /dev/srandom ; then
31178                 dev="/dev/srandom";
31179         elif test -r /dev/random ; then
31180                 dev="/dev/random";
31181         elif test -r /idev/random ; then
31182                 dev="/idev/random";
31183         fi
31184
31185         if test $dev != no ; then
31186
31187 cat >>confdefs.h <<_ACEOF
31188 #define URANDOM_DEVICE "$dev"
31189 _ACEOF
31190
31191         fi
31192 fi
31193
31194 ol_link_fetch=no
31195 if test $ol_with_fetch != no ; then
31196         ol_LIBS=$LIBS
31197 LIBS="-lfetch -lcom_err $LIBS"
31198 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31199 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31200 if test "${ol_cv_lib_fetch+set}" = set; then
31201   echo $ECHO_N "(cached) $ECHO_C" >&6
31202 else
31203
31204         cat >conftest.$ac_ext <<_ACEOF
31205 /* confdefs.h.  */
31206 _ACEOF
31207 cat confdefs.h >>conftest.$ac_ext
31208 cat >>conftest.$ac_ext <<_ACEOF
31209 /* end confdefs.h.  */
31210
31211 #ifdef HAVE_SYS_PARAM_H
31212 #include <sys/param.h>
31213 #endif
31214 #include <stdio.h>
31215 #include <fetch.h>
31216 int
31217 main ()
31218 {
31219 struct url *u = fetchParseURL("file:///");
31220   ;
31221   return 0;
31222 }
31223 _ACEOF
31224 rm -f conftest.$ac_objext conftest$ac_exeext
31225 if { (ac_try="$ac_link"
31226 case "(($ac_try" in
31227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31228   *) ac_try_echo=$ac_try;;
31229 esac
31230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31231   (eval "$ac_link") 2>conftest.er1
31232   ac_status=$?
31233   grep -v '^ *+' conftest.er1 >conftest.err
31234   rm -f conftest.er1
31235   cat conftest.err >&5
31236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237   (exit $ac_status); } && {
31238          test -z "$ac_c_werror_flag" ||
31239          test ! -s conftest.err
31240        } && test -s conftest$ac_exeext &&
31241        $as_test_x conftest$ac_exeext; then
31242   ol_cv_lib_fetch=yes
31243 else
31244   echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.$ac_ext >&5
31246
31247         ol_cv_lib_fetch=no
31248 fi
31249
31250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31251       conftest$ac_exeext conftest.$ac_ext
31252 fi
31253 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31254 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31255 LIBS=$ol_LIBS
31256 if test $ol_cv_lib_fetch != no ; then
31257         ol_link_fetch="-lfetch -lcom_err"
31258
31259 cat >>confdefs.h <<\_ACEOF
31260 #define HAVE_FETCH 1
31261 _ACEOF
31262
31263 fi
31264
31265
31266         if test $ol_cv_lib_fetch != no ; then
31267                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31268                 ol_link_fetch=freebsd
31269
31270         elif test $ol_with_fetch != auto ; then
31271                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31272 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31273    { (exit 1); exit 1; }; }
31274         fi
31275 fi
31276
31277 if test $ol_enable_crypt != no ; then
31278         save_LIBS="$LIBS"
31279         LIBS="$TLS_LIBS $LIBS"
31280
31281         { echo "$as_me:$LINENO: checking for crypt" >&5
31282 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31283 if test "${ac_cv_func_crypt+set}" = set; then
31284   echo $ECHO_N "(cached) $ECHO_C" >&6
31285 else
31286   cat >conftest.$ac_ext <<_ACEOF
31287 /* confdefs.h.  */
31288 _ACEOF
31289 cat confdefs.h >>conftest.$ac_ext
31290 cat >>conftest.$ac_ext <<_ACEOF
31291 /* end confdefs.h.  */
31292 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31294 #define crypt innocuous_crypt
31295
31296 /* System header to define __stub macros and hopefully few prototypes,
31297     which can conflict with char crypt (); below.
31298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31299     <limits.h> exists even on freestanding compilers.  */
31300
31301 #ifdef __STDC__
31302 # include <limits.h>
31303 #else
31304 # include <assert.h>
31305 #endif
31306
31307 #undef crypt
31308
31309 /* Override any GCC internal prototype to avoid an error.
31310    Use char because int might match the return type of a GCC
31311    builtin and then its argument prototype would still apply.  */
31312 #ifdef __cplusplus
31313 extern "C"
31314 #endif
31315 char crypt ();
31316 /* The GNU C library defines this for functions which it implements
31317     to always fail with ENOSYS.  Some functions are actually named
31318     something starting with __ and the normal name is an alias.  */
31319 #if defined __stub_crypt || defined __stub___crypt
31320 choke me
31321 #endif
31322
31323 int
31324 main ()
31325 {
31326 return crypt ();
31327   ;
31328   return 0;
31329 }
31330 _ACEOF
31331 rm -f conftest.$ac_objext conftest$ac_exeext
31332 if { (ac_try="$ac_link"
31333 case "(($ac_try" in
31334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31335   *) ac_try_echo=$ac_try;;
31336 esac
31337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31338   (eval "$ac_link") 2>conftest.er1
31339   ac_status=$?
31340   grep -v '^ *+' conftest.er1 >conftest.err
31341   rm -f conftest.er1
31342   cat conftest.err >&5
31343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344   (exit $ac_status); } && {
31345          test -z "$ac_c_werror_flag" ||
31346          test ! -s conftest.err
31347        } && test -s conftest$ac_exeext &&
31348        $as_test_x conftest$ac_exeext; then
31349   ac_cv_func_crypt=yes
31350 else
31351   echo "$as_me: failed program was:" >&5
31352 sed 's/^/| /' conftest.$ac_ext >&5
31353
31354         ac_cv_func_crypt=no
31355 fi
31356
31357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31358       conftest$ac_exeext conftest.$ac_ext
31359 fi
31360 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31361 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31362 if test $ac_cv_func_crypt = yes; then
31363   have_crypt=yes
31364 else
31365
31366                 LIBS="$save_LIBS"
31367                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31368 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31369 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31370   echo $ECHO_N "(cached) $ECHO_C" >&6
31371 else
31372   ac_check_lib_save_LIBS=$LIBS
31373 LIBS="-lcrypt  $LIBS"
31374 cat >conftest.$ac_ext <<_ACEOF
31375 /* confdefs.h.  */
31376 _ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h.  */
31380
31381 /* Override any GCC internal prototype to avoid an error.
31382    Use char because int might match the return type of a GCC
31383    builtin and then its argument prototype would still apply.  */
31384 #ifdef __cplusplus
31385 extern "C"
31386 #endif
31387 char crypt ();
31388 int
31389 main ()
31390 {
31391 return crypt ();
31392   ;
31393   return 0;
31394 }
31395 _ACEOF
31396 rm -f conftest.$ac_objext conftest$ac_exeext
31397 if { (ac_try="$ac_link"
31398 case "(($ac_try" in
31399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31400   *) ac_try_echo=$ac_try;;
31401 esac
31402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31403   (eval "$ac_link") 2>conftest.er1
31404   ac_status=$?
31405   grep -v '^ *+' conftest.er1 >conftest.err
31406   rm -f conftest.er1
31407   cat conftest.err >&5
31408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409   (exit $ac_status); } && {
31410          test -z "$ac_c_werror_flag" ||
31411          test ! -s conftest.err
31412        } && test -s conftest$ac_exeext &&
31413        $as_test_x conftest$ac_exeext; then
31414   ac_cv_lib_crypt_crypt=yes
31415 else
31416   echo "$as_me: failed program was:" >&5
31417 sed 's/^/| /' conftest.$ac_ext >&5
31418
31419         ac_cv_lib_crypt_crypt=no
31420 fi
31421
31422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31423       conftest$ac_exeext conftest.$ac_ext
31424 LIBS=$ac_check_lib_save_LIBS
31425 fi
31426 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31427 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31428 if test $ac_cv_lib_crypt_crypt = yes; then
31429   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31430                         have_crypt=yes
31431 else
31432   have_crypt=no
31433 fi
31434
31435 fi
31436
31437
31438         LIBS="$save_LIBS"
31439
31440         if test $have_crypt = yes ; then
31441
31442 cat >>confdefs.h <<\_ACEOF
31443 #define HAVE_CRYPT 1
31444 _ACEOF
31445
31446         else
31447                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31448 echo "$as_me: WARNING: could not find crypt" >&2;}
31449                 if test $ol_enable_crypt = yes ; then
31450                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31451 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31452    { (exit 1); exit 1; }; }
31453                 fi
31454
31455                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31456 echo "$as_me: WARNING: disabling crypt support" >&2;}
31457                 ol_enable_crypt=no
31458         fi
31459 fi
31460
31461 if test $ol_enable_proctitle != no ; then
31462         { echo "$as_me:$LINENO: checking for setproctitle" >&5
31463 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31464 if test "${ac_cv_func_setproctitle+set}" = set; then
31465   echo $ECHO_N "(cached) $ECHO_C" >&6
31466 else
31467   cat >conftest.$ac_ext <<_ACEOF
31468 /* confdefs.h.  */
31469 _ACEOF
31470 cat confdefs.h >>conftest.$ac_ext
31471 cat >>conftest.$ac_ext <<_ACEOF
31472 /* end confdefs.h.  */
31473 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31475 #define setproctitle innocuous_setproctitle
31476
31477 /* System header to define __stub macros and hopefully few prototypes,
31478     which can conflict with char setproctitle (); below.
31479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31480     <limits.h> exists even on freestanding compilers.  */
31481
31482 #ifdef __STDC__
31483 # include <limits.h>
31484 #else
31485 # include <assert.h>
31486 #endif
31487
31488 #undef setproctitle
31489
31490 /* Override any GCC internal prototype to avoid an error.
31491    Use char because int might match the return type of a GCC
31492    builtin and then its argument prototype would still apply.  */
31493 #ifdef __cplusplus
31494 extern "C"
31495 #endif
31496 char setproctitle ();
31497 /* The GNU C library defines this for functions which it implements
31498     to always fail with ENOSYS.  Some functions are actually named
31499     something starting with __ and the normal name is an alias.  */
31500 #if defined __stub_setproctitle || defined __stub___setproctitle
31501 choke me
31502 #endif
31503
31504 int
31505 main ()
31506 {
31507 return setproctitle ();
31508   ;
31509   return 0;
31510 }
31511 _ACEOF
31512 rm -f conftest.$ac_objext conftest$ac_exeext
31513 if { (ac_try="$ac_link"
31514 case "(($ac_try" in
31515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31516   *) ac_try_echo=$ac_try;;
31517 esac
31518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31519   (eval "$ac_link") 2>conftest.er1
31520   ac_status=$?
31521   grep -v '^ *+' conftest.er1 >conftest.err
31522   rm -f conftest.er1
31523   cat conftest.err >&5
31524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31525   (exit $ac_status); } && {
31526          test -z "$ac_c_werror_flag" ||
31527          test ! -s conftest.err
31528        } && test -s conftest$ac_exeext &&
31529        $as_test_x conftest$ac_exeext; then
31530   ac_cv_func_setproctitle=yes
31531 else
31532   echo "$as_me: failed program was:" >&5
31533 sed 's/^/| /' conftest.$ac_ext >&5
31534
31535         ac_cv_func_setproctitle=no
31536 fi
31537
31538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31539       conftest$ac_exeext conftest.$ac_ext
31540 fi
31541 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31542 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31543 if test $ac_cv_func_setproctitle = yes; then
31544   have_setproctitle=yes
31545 else
31546
31547                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31548 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31549 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31550   echo $ECHO_N "(cached) $ECHO_C" >&6
31551 else
31552   ac_check_lib_save_LIBS=$LIBS
31553 LIBS="-lutil  $LIBS"
31554 cat >conftest.$ac_ext <<_ACEOF
31555 /* confdefs.h.  */
31556 _ACEOF
31557 cat confdefs.h >>conftest.$ac_ext
31558 cat >>conftest.$ac_ext <<_ACEOF
31559 /* end confdefs.h.  */
31560
31561 /* Override any GCC internal prototype to avoid an error.
31562    Use char because int might match the return type of a GCC
31563    builtin and then its argument prototype would still apply.  */
31564 #ifdef __cplusplus
31565 extern "C"
31566 #endif
31567 char setproctitle ();
31568 int
31569 main ()
31570 {
31571 return setproctitle ();
31572   ;
31573   return 0;
31574 }
31575 _ACEOF
31576 rm -f conftest.$ac_objext conftest$ac_exeext
31577 if { (ac_try="$ac_link"
31578 case "(($ac_try" in
31579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31580   *) ac_try_echo=$ac_try;;
31581 esac
31582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31583   (eval "$ac_link") 2>conftest.er1
31584   ac_status=$?
31585   grep -v '^ *+' conftest.er1 >conftest.err
31586   rm -f conftest.er1
31587   cat conftest.err >&5
31588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589   (exit $ac_status); } && {
31590          test -z "$ac_c_werror_flag" ||
31591          test ! -s conftest.err
31592        } && test -s conftest$ac_exeext &&
31593        $as_test_x conftest$ac_exeext; then
31594   ac_cv_lib_util_setproctitle=yes
31595 else
31596   echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31598
31599         ac_cv_lib_util_setproctitle=no
31600 fi
31601
31602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31603       conftest$ac_exeext conftest.$ac_ext
31604 LIBS=$ac_check_lib_save_LIBS
31605 fi
31606 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31607 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31608 if test $ac_cv_lib_util_setproctitle = yes; then
31609   have_setproctitle=yes
31610                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31611 else
31612   have_setproctitle=no
31613                         case " $LIBOBJS " in
31614   *" setproctitle.$ac_objext "* ) ;;
31615   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31616  ;;
31617 esac
31618
31619                         LIBSRCS="$LIBSRCS setproctitle.c"
31620 fi
31621
31622 fi
31623
31624
31625         if test $have_setproctitle = yes ; then
31626
31627 cat >>confdefs.h <<\_ACEOF
31628 #define HAVE_SETPROCTITLE 1
31629 _ACEOF
31630
31631         fi
31632 fi
31633
31634 if test $ol_enable_slp != no ; then
31635
31636 for ac_header in slp.h
31637 do
31638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31640   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31643   echo $ECHO_N "(cached) $ECHO_C" >&6
31644 fi
31645 ac_res=`eval echo '${'$as_ac_Header'}'`
31646                { echo "$as_me:$LINENO: result: $ac_res" >&5
31647 echo "${ECHO_T}$ac_res" >&6; }
31648 else
31649   # Is the header compilable?
31650 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31652 cat >conftest.$ac_ext <<_ACEOF
31653 /* confdefs.h.  */
31654 _ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h.  */
31658 $ac_includes_default
31659 #include <$ac_header>
31660 _ACEOF
31661 rm -f conftest.$ac_objext
31662 if { (ac_try="$ac_compile"
31663 case "(($ac_try" in
31664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31665   *) ac_try_echo=$ac_try;;
31666 esac
31667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31668   (eval "$ac_compile") 2>conftest.er1
31669   ac_status=$?
31670   grep -v '^ *+' conftest.er1 >conftest.err
31671   rm -f conftest.er1
31672   cat conftest.err >&5
31673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674   (exit $ac_status); } && {
31675          test -z "$ac_c_werror_flag" ||
31676          test ! -s conftest.err
31677        } && test -s conftest.$ac_objext; then
31678   ac_header_compiler=yes
31679 else
31680   echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.$ac_ext >&5
31682
31683         ac_header_compiler=no
31684 fi
31685
31686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31688 echo "${ECHO_T}$ac_header_compiler" >&6; }
31689
31690 # Is the header present?
31691 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31693 cat >conftest.$ac_ext <<_ACEOF
31694 /* confdefs.h.  */
31695 _ACEOF
31696 cat confdefs.h >>conftest.$ac_ext
31697 cat >>conftest.$ac_ext <<_ACEOF
31698 /* end confdefs.h.  */
31699 #include <$ac_header>
31700 _ACEOF
31701 if { (ac_try="$ac_cpp conftest.$ac_ext"
31702 case "(($ac_try" in
31703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31704   *) ac_try_echo=$ac_try;;
31705 esac
31706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31708   ac_status=$?
31709   grep -v '^ *+' conftest.er1 >conftest.err
31710   rm -f conftest.er1
31711   cat conftest.err >&5
31712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713   (exit $ac_status); } >/dev/null && {
31714          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31715          test ! -s conftest.err
31716        }; then
31717   ac_header_preproc=yes
31718 else
31719   echo "$as_me: failed program was:" >&5
31720 sed 's/^/| /' conftest.$ac_ext >&5
31721
31722   ac_header_preproc=no
31723 fi
31724
31725 rm -f conftest.err conftest.$ac_ext
31726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31727 echo "${ECHO_T}$ac_header_preproc" >&6; }
31728
31729 # So?  What about this header?
31730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31731   yes:no: )
31732     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31736     ac_header_preproc=yes
31737     ;;
31738   no:yes:* )
31739     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31741     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31742 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31743     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31745     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31746 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31749     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31751     ( cat <<\_ASBOX
31752 ## --------------------------------------------- ##
31753 ## Report this to <http://www.openldap.org/its/> ##
31754 ## --------------------------------------------- ##
31755 _ASBOX
31756      ) | sed "s/^/$as_me: WARNING:     /" >&2
31757     ;;
31758 esac
31759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31762   echo $ECHO_N "(cached) $ECHO_C" >&6
31763 else
31764   eval "$as_ac_Header=\$ac_header_preproc"
31765 fi
31766 ac_res=`eval echo '${'$as_ac_Header'}'`
31767                { echo "$as_me:$LINENO: result: $ac_res" >&5
31768 echo "${ECHO_T}$ac_res" >&6; }
31769
31770 fi
31771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31772   cat >>confdefs.h <<_ACEOF
31773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31774 _ACEOF
31775
31776 fi
31777
31778 done
31779
31780
31781         if test $ac_cv_header_slp_h = yes ; then
31782                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31783 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31784 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31785   echo $ECHO_N "(cached) $ECHO_C" >&6
31786 else
31787   ac_check_lib_save_LIBS=$LIBS
31788 LIBS="-lslp  $LIBS"
31789 cat >conftest.$ac_ext <<_ACEOF
31790 /* confdefs.h.  */
31791 _ACEOF
31792 cat confdefs.h >>conftest.$ac_ext
31793 cat >>conftest.$ac_ext <<_ACEOF
31794 /* end confdefs.h.  */
31795
31796 /* Override any GCC internal prototype to avoid an error.
31797    Use char because int might match the return type of a GCC
31798    builtin and then its argument prototype would still apply.  */
31799 #ifdef __cplusplus
31800 extern "C"
31801 #endif
31802 char SLPOpen ();
31803 int
31804 main ()
31805 {
31806 return SLPOpen ();
31807   ;
31808   return 0;
31809 }
31810 _ACEOF
31811 rm -f conftest.$ac_objext conftest$ac_exeext
31812 if { (ac_try="$ac_link"
31813 case "(($ac_try" in
31814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31815   *) ac_try_echo=$ac_try;;
31816 esac
31817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31818   (eval "$ac_link") 2>conftest.er1
31819   ac_status=$?
31820   grep -v '^ *+' conftest.er1 >conftest.err
31821   rm -f conftest.er1
31822   cat conftest.err >&5
31823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824   (exit $ac_status); } && {
31825          test -z "$ac_c_werror_flag" ||
31826          test ! -s conftest.err
31827        } && test -s conftest$ac_exeext &&
31828        $as_test_x conftest$ac_exeext; then
31829   ac_cv_lib_slp_SLPOpen=yes
31830 else
31831   echo "$as_me: failed program was:" >&5
31832 sed 's/^/| /' conftest.$ac_ext >&5
31833
31834         ac_cv_lib_slp_SLPOpen=no
31835 fi
31836
31837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31838       conftest$ac_exeext conftest.$ac_ext
31839 LIBS=$ac_check_lib_save_LIBS
31840 fi
31841 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31842 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31843 if test $ac_cv_lib_slp_SLPOpen = yes; then
31844   have_slp=yes
31845 else
31846   have_slp=no
31847 fi
31848
31849                 if test $have_slp = yes ; then
31850
31851 cat >>confdefs.h <<\_ACEOF
31852 #define HAVE_SLP 1
31853 _ACEOF
31854
31855                         SLAPD_SLP_LIBS=-lslp
31856                 fi
31857
31858         elif test $ol_enable_slp = yes ; then
31859                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31860 echo "$as_me: error: SLP not found" >&2;}
31861    { (exit 1); exit 1; }; }
31862         fi
31863 fi
31864
31865
31866 { echo "$as_me:$LINENO: checking for mode_t" >&5
31867 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31868 if test "${ac_cv_type_mode_t+set}" = set; then
31869   echo $ECHO_N "(cached) $ECHO_C" >&6
31870 else
31871   cat >conftest.$ac_ext <<_ACEOF
31872 /* confdefs.h.  */
31873 _ACEOF
31874 cat confdefs.h >>conftest.$ac_ext
31875 cat >>conftest.$ac_ext <<_ACEOF
31876 /* end confdefs.h.  */
31877 $ac_includes_default
31878 typedef mode_t ac__type_new_;
31879 int
31880 main ()
31881 {
31882 if ((ac__type_new_ *) 0)
31883   return 0;
31884 if (sizeof (ac__type_new_))
31885   return 0;
31886   ;
31887   return 0;
31888 }
31889 _ACEOF
31890 rm -f conftest.$ac_objext
31891 if { (ac_try="$ac_compile"
31892 case "(($ac_try" in
31893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894   *) ac_try_echo=$ac_try;;
31895 esac
31896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31897   (eval "$ac_compile") 2>conftest.er1
31898   ac_status=$?
31899   grep -v '^ *+' conftest.er1 >conftest.err
31900   rm -f conftest.er1
31901   cat conftest.err >&5
31902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903   (exit $ac_status); } && {
31904          test -z "$ac_c_werror_flag" ||
31905          test ! -s conftest.err
31906        } && test -s conftest.$ac_objext; then
31907   ac_cv_type_mode_t=yes
31908 else
31909   echo "$as_me: failed program was:" >&5
31910 sed 's/^/| /' conftest.$ac_ext >&5
31911
31912         ac_cv_type_mode_t=no
31913 fi
31914
31915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31916 fi
31917 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31918 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31919 if test $ac_cv_type_mode_t = yes; then
31920   :
31921 else
31922
31923 cat >>confdefs.h <<_ACEOF
31924 #define mode_t int
31925 _ACEOF
31926
31927 fi
31928
31929 { echo "$as_me:$LINENO: checking for off_t" >&5
31930 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31931 if test "${ac_cv_type_off_t+set}" = set; then
31932   echo $ECHO_N "(cached) $ECHO_C" >&6
31933 else
31934   cat >conftest.$ac_ext <<_ACEOF
31935 /* confdefs.h.  */
31936 _ACEOF
31937 cat confdefs.h >>conftest.$ac_ext
31938 cat >>conftest.$ac_ext <<_ACEOF
31939 /* end confdefs.h.  */
31940 $ac_includes_default
31941 typedef off_t ac__type_new_;
31942 int
31943 main ()
31944 {
31945 if ((ac__type_new_ *) 0)
31946   return 0;
31947 if (sizeof (ac__type_new_))
31948   return 0;
31949   ;
31950   return 0;
31951 }
31952 _ACEOF
31953 rm -f conftest.$ac_objext
31954 if { (ac_try="$ac_compile"
31955 case "(($ac_try" in
31956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31957   *) ac_try_echo=$ac_try;;
31958 esac
31959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31960   (eval "$ac_compile") 2>conftest.er1
31961   ac_status=$?
31962   grep -v '^ *+' conftest.er1 >conftest.err
31963   rm -f conftest.er1
31964   cat conftest.err >&5
31965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966   (exit $ac_status); } && {
31967          test -z "$ac_c_werror_flag" ||
31968          test ! -s conftest.err
31969        } && test -s conftest.$ac_objext; then
31970   ac_cv_type_off_t=yes
31971 else
31972   echo "$as_me: failed program was:" >&5
31973 sed 's/^/| /' conftest.$ac_ext >&5
31974
31975         ac_cv_type_off_t=no
31976 fi
31977
31978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31979 fi
31980 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31981 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31982 if test $ac_cv_type_off_t = yes; then
31983   :
31984 else
31985
31986 cat >>confdefs.h <<_ACEOF
31987 #define off_t long
31988 _ACEOF
31989
31990 fi
31991
31992 { echo "$as_me:$LINENO: checking for pid_t" >&5
31993 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31994 if test "${ac_cv_type_pid_t+set}" = set; then
31995   echo $ECHO_N "(cached) $ECHO_C" >&6
31996 else
31997   cat >conftest.$ac_ext <<_ACEOF
31998 /* confdefs.h.  */
31999 _ACEOF
32000 cat confdefs.h >>conftest.$ac_ext
32001 cat >>conftest.$ac_ext <<_ACEOF
32002 /* end confdefs.h.  */
32003 $ac_includes_default
32004 typedef pid_t ac__type_new_;
32005 int
32006 main ()
32007 {
32008 if ((ac__type_new_ *) 0)
32009   return 0;
32010 if (sizeof (ac__type_new_))
32011   return 0;
32012   ;
32013   return 0;
32014 }
32015 _ACEOF
32016 rm -f conftest.$ac_objext
32017 if { (ac_try="$ac_compile"
32018 case "(($ac_try" in
32019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32020   *) ac_try_echo=$ac_try;;
32021 esac
32022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32023   (eval "$ac_compile") 2>conftest.er1
32024   ac_status=$?
32025   grep -v '^ *+' conftest.er1 >conftest.err
32026   rm -f conftest.er1
32027   cat conftest.err >&5
32028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029   (exit $ac_status); } && {
32030          test -z "$ac_c_werror_flag" ||
32031          test ! -s conftest.err
32032        } && test -s conftest.$ac_objext; then
32033   ac_cv_type_pid_t=yes
32034 else
32035   echo "$as_me: failed program was:" >&5
32036 sed 's/^/| /' conftest.$ac_ext >&5
32037
32038         ac_cv_type_pid_t=no
32039 fi
32040
32041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32042 fi
32043 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32044 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
32045 if test $ac_cv_type_pid_t = yes; then
32046   :
32047 else
32048
32049 cat >>confdefs.h <<_ACEOF
32050 #define pid_t int
32051 _ACEOF
32052
32053 fi
32054
32055 { echo "$as_me:$LINENO: checking for ssize_t" >&5
32056 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
32057 if test "${ac_cv_type_ssize_t+set}" = set; then
32058   echo $ECHO_N "(cached) $ECHO_C" >&6
32059 else
32060   cat >conftest.$ac_ext <<_ACEOF
32061 /* confdefs.h.  */
32062 _ACEOF
32063 cat confdefs.h >>conftest.$ac_ext
32064 cat >>conftest.$ac_ext <<_ACEOF
32065 /* end confdefs.h.  */
32066 $ac_includes_default
32067 typedef ssize_t ac__type_new_;
32068 int
32069 main ()
32070 {
32071 if ((ac__type_new_ *) 0)
32072   return 0;
32073 if (sizeof (ac__type_new_))
32074   return 0;
32075   ;
32076   return 0;
32077 }
32078 _ACEOF
32079 rm -f conftest.$ac_objext
32080 if { (ac_try="$ac_compile"
32081 case "(($ac_try" in
32082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32083   *) ac_try_echo=$ac_try;;
32084 esac
32085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32086   (eval "$ac_compile") 2>conftest.er1
32087   ac_status=$?
32088   grep -v '^ *+' conftest.er1 >conftest.err
32089   rm -f conftest.er1
32090   cat conftest.err >&5
32091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092   (exit $ac_status); } && {
32093          test -z "$ac_c_werror_flag" ||
32094          test ! -s conftest.err
32095        } && test -s conftest.$ac_objext; then
32096   ac_cv_type_ssize_t=yes
32097 else
32098   echo "$as_me: failed program was:" >&5
32099 sed 's/^/| /' conftest.$ac_ext >&5
32100
32101         ac_cv_type_ssize_t=no
32102 fi
32103
32104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32105 fi
32106 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32107 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
32108 if test $ac_cv_type_ssize_t = yes; then
32109   :
32110 else
32111
32112 cat >>confdefs.h <<_ACEOF
32113 #define ssize_t signed int
32114 _ACEOF
32115
32116 fi
32117
32118 { echo "$as_me:$LINENO: checking for caddr_t" >&5
32119 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
32120 if test "${ac_cv_type_caddr_t+set}" = set; then
32121   echo $ECHO_N "(cached) $ECHO_C" >&6
32122 else
32123   cat >conftest.$ac_ext <<_ACEOF
32124 /* confdefs.h.  */
32125 _ACEOF
32126 cat confdefs.h >>conftest.$ac_ext
32127 cat >>conftest.$ac_ext <<_ACEOF
32128 /* end confdefs.h.  */
32129 $ac_includes_default
32130 typedef caddr_t ac__type_new_;
32131 int
32132 main ()
32133 {
32134 if ((ac__type_new_ *) 0)
32135   return 0;
32136 if (sizeof (ac__type_new_))
32137   return 0;
32138   ;
32139   return 0;
32140 }
32141 _ACEOF
32142 rm -f conftest.$ac_objext
32143 if { (ac_try="$ac_compile"
32144 case "(($ac_try" in
32145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32146   *) ac_try_echo=$ac_try;;
32147 esac
32148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32149   (eval "$ac_compile") 2>conftest.er1
32150   ac_status=$?
32151   grep -v '^ *+' conftest.er1 >conftest.err
32152   rm -f conftest.er1
32153   cat conftest.err >&5
32154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155   (exit $ac_status); } && {
32156          test -z "$ac_c_werror_flag" ||
32157          test ! -s conftest.err
32158        } && test -s conftest.$ac_objext; then
32159   ac_cv_type_caddr_t=yes
32160 else
32161   echo "$as_me: failed program was:" >&5
32162 sed 's/^/| /' conftest.$ac_ext >&5
32163
32164         ac_cv_type_caddr_t=no
32165 fi
32166
32167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32168 fi
32169 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32170 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32171 if test $ac_cv_type_caddr_t = yes; then
32172   :
32173 else
32174
32175 cat >>confdefs.h <<_ACEOF
32176 #define caddr_t char *
32177 _ACEOF
32178
32179 fi
32180
32181 { echo "$as_me:$LINENO: checking for size_t" >&5
32182 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32183 if test "${ac_cv_type_size_t+set}" = set; then
32184   echo $ECHO_N "(cached) $ECHO_C" >&6
32185 else
32186   cat >conftest.$ac_ext <<_ACEOF
32187 /* confdefs.h.  */
32188 _ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h.  */
32192 $ac_includes_default
32193 typedef size_t ac__type_new_;
32194 int
32195 main ()
32196 {
32197 if ((ac__type_new_ *) 0)
32198   return 0;
32199 if (sizeof (ac__type_new_))
32200   return 0;
32201   ;
32202   return 0;
32203 }
32204 _ACEOF
32205 rm -f conftest.$ac_objext
32206 if { (ac_try="$ac_compile"
32207 case "(($ac_try" in
32208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209   *) ac_try_echo=$ac_try;;
32210 esac
32211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212   (eval "$ac_compile") 2>conftest.er1
32213   ac_status=$?
32214   grep -v '^ *+' conftest.er1 >conftest.err
32215   rm -f conftest.er1
32216   cat conftest.err >&5
32217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218   (exit $ac_status); } && {
32219          test -z "$ac_c_werror_flag" ||
32220          test ! -s conftest.err
32221        } && test -s conftest.$ac_objext; then
32222   ac_cv_type_size_t=yes
32223 else
32224   echo "$as_me: failed program was:" >&5
32225 sed 's/^/| /' conftest.$ac_ext >&5
32226
32227         ac_cv_type_size_t=no
32228 fi
32229
32230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32231 fi
32232 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32233 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32234 if test $ac_cv_type_size_t = yes; then
32235   :
32236 else
32237
32238 cat >>confdefs.h <<_ACEOF
32239 #define size_t unsigned
32240 _ACEOF
32241
32242 fi
32243
32244
32245 { echo "$as_me:$LINENO: checking for long long" >&5
32246 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32247 if test "${ac_cv_type_long_long+set}" = set; then
32248   echo $ECHO_N "(cached) $ECHO_C" >&6
32249 else
32250   cat >conftest.$ac_ext <<_ACEOF
32251 /* confdefs.h.  */
32252 _ACEOF
32253 cat confdefs.h >>conftest.$ac_ext
32254 cat >>conftest.$ac_ext <<_ACEOF
32255 /* end confdefs.h.  */
32256 $ac_includes_default
32257 typedef long long ac__type_new_;
32258 int
32259 main ()
32260 {
32261 if ((ac__type_new_ *) 0)
32262   return 0;
32263 if (sizeof (ac__type_new_))
32264   return 0;
32265   ;
32266   return 0;
32267 }
32268 _ACEOF
32269 rm -f conftest.$ac_objext
32270 if { (ac_try="$ac_compile"
32271 case "(($ac_try" in
32272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32273   *) ac_try_echo=$ac_try;;
32274 esac
32275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32276   (eval "$ac_compile") 2>conftest.er1
32277   ac_status=$?
32278   grep -v '^ *+' conftest.er1 >conftest.err
32279   rm -f conftest.er1
32280   cat conftest.err >&5
32281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282   (exit $ac_status); } && {
32283          test -z "$ac_c_werror_flag" ||
32284          test ! -s conftest.err
32285        } && test -s conftest.$ac_objext; then
32286   ac_cv_type_long_long=yes
32287 else
32288   echo "$as_me: failed program was:" >&5
32289 sed 's/^/| /' conftest.$ac_ext >&5
32290
32291         ac_cv_type_long_long=no
32292 fi
32293
32294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32295 fi
32296 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32297 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32298 if test $ac_cv_type_long_long = yes; then
32299
32300 cat >>confdefs.h <<_ACEOF
32301 #define HAVE_LONG_LONG 1
32302 _ACEOF
32303
32304
32305 fi
32306
32307 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32308 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32309 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32310   echo $ECHO_N "(cached) $ECHO_C" >&6
32311 else
32312   cat >conftest.$ac_ext <<_ACEOF
32313 /* confdefs.h.  */
32314 _ACEOF
32315 cat confdefs.h >>conftest.$ac_ext
32316 cat >>conftest.$ac_ext <<_ACEOF
32317 /* end confdefs.h.  */
32318 $ac_includes_default
32319 typedef ptrdiff_t ac__type_new_;
32320 int
32321 main ()
32322 {
32323 if ((ac__type_new_ *) 0)
32324   return 0;
32325 if (sizeof (ac__type_new_))
32326   return 0;
32327   ;
32328   return 0;
32329 }
32330 _ACEOF
32331 rm -f conftest.$ac_objext
32332 if { (ac_try="$ac_compile"
32333 case "(($ac_try" in
32334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335   *) ac_try_echo=$ac_try;;
32336 esac
32337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338   (eval "$ac_compile") 2>conftest.er1
32339   ac_status=$?
32340   grep -v '^ *+' conftest.er1 >conftest.err
32341   rm -f conftest.er1
32342   cat conftest.err >&5
32343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344   (exit $ac_status); } && {
32345          test -z "$ac_c_werror_flag" ||
32346          test ! -s conftest.err
32347        } && test -s conftest.$ac_objext; then
32348   ac_cv_type_ptrdiff_t=yes
32349 else
32350   echo "$as_me: failed program was:" >&5
32351 sed 's/^/| /' conftest.$ac_ext >&5
32352
32353         ac_cv_type_ptrdiff_t=no
32354 fi
32355
32356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32357 fi
32358 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32359 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32360 if test $ac_cv_type_ptrdiff_t = yes; then
32361
32362 cat >>confdefs.h <<_ACEOF
32363 #define HAVE_PTRDIFF_T 1
32364 _ACEOF
32365
32366
32367 fi
32368
32369
32370
32371 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32372 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32373 if test "${ac_cv_type_socklen_t+set}" = set; then
32374   echo $ECHO_N "(cached) $ECHO_C" >&6
32375 else
32376   cat >conftest.$ac_ext <<_ACEOF
32377 /* confdefs.h.  */
32378 _ACEOF
32379 cat confdefs.h >>conftest.$ac_ext
32380 cat >>conftest.$ac_ext <<_ACEOF
32381 /* end confdefs.h.  */
32382 $ac_includes_default
32383 #ifdef HAVE_SYS_SOCKET_H
32384 #include <sys/socket.h>
32385 #endif
32386
32387 typedef socklen_t ac__type_new_;
32388 int
32389 main ()
32390 {
32391 if ((ac__type_new_ *) 0)
32392   return 0;
32393 if (sizeof (ac__type_new_))
32394   return 0;
32395   ;
32396   return 0;
32397 }
32398 _ACEOF
32399 rm -f conftest.$ac_objext
32400 if { (ac_try="$ac_compile"
32401 case "(($ac_try" in
32402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32403   *) ac_try_echo=$ac_try;;
32404 esac
32405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32406   (eval "$ac_compile") 2>conftest.er1
32407   ac_status=$?
32408   grep -v '^ *+' conftest.er1 >conftest.err
32409   rm -f conftest.er1
32410   cat conftest.err >&5
32411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412   (exit $ac_status); } && {
32413          test -z "$ac_c_werror_flag" ||
32414          test ! -s conftest.err
32415        } && test -s conftest.$ac_objext; then
32416   ac_cv_type_socklen_t=yes
32417 else
32418   echo "$as_me: failed program was:" >&5
32419 sed 's/^/| /' conftest.$ac_ext >&5
32420
32421         ac_cv_type_socklen_t=no
32422 fi
32423
32424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32425 fi
32426 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32427 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32428
32429
32430 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32431 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32432 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32433   echo $ECHO_N "(cached) $ECHO_C" >&6
32434 else
32435
32436         set socklen_t int unsigned "unsigned long" long size_t
32437         test "$ac_cv_type_socklen_t" = yes || shift
32438         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32439         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32440                 cat >conftest.$ac_ext <<_ACEOF
32441 /* confdefs.h.  */
32442 _ACEOF
32443 cat confdefs.h >>conftest.$ac_ext
32444 cat >>conftest.$ac_ext <<_ACEOF
32445 /* end confdefs.h.  */
32446 $ac_includes_default
32447 #ifdef HAVE_SYS_SOCKET_H
32448 #include <sys/socket.h>
32449 #endif
32450 extern int accept(int s, $addrtype *ap, $lentype *lp);
32451
32452 int
32453 main ()
32454 {
32455
32456 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32457
32458   ;
32459   return 0;
32460 }
32461 _ACEOF
32462 rm -f conftest.$ac_objext
32463 if { (ac_try="$ac_compile"
32464 case "(($ac_try" in
32465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32466   *) ac_try_echo=$ac_try;;
32467 esac
32468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32469   (eval "$ac_compile") 2>conftest.er1
32470   ac_status=$?
32471   grep -v '^ *+' conftest.er1 >conftest.err
32472   rm -f conftest.er1
32473   cat conftest.err >&5
32474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475   (exit $ac_status); } && {
32476          test -z "$ac_c_werror_flag" ||
32477          test ! -s conftest.err
32478        } && test -s conftest.$ac_objext; then
32479   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32480 else
32481   echo "$as_me: failed program was:" >&5
32482 sed 's/^/| /' conftest.$ac_ext >&5
32483
32484
32485 fi
32486
32487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32488         done ; done
32489 fi
32490
32491 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32492 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32493
32494 cat >>confdefs.h <<_ACEOF
32495 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32496 _ACEOF
32497
32498
32499 if test "$ac_cv_type_socklen_t" != yes; then
32500
32501 cat >>confdefs.h <<_ACEOF
32502 #define socklen_t $ol_cv_type_ber_socklen_t
32503 _ACEOF
32504
32505 fi
32506
32507
32508 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32509 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32510 if test "${ac_cv_type_signal+set}" = set; then
32511   echo $ECHO_N "(cached) $ECHO_C" >&6
32512 else
32513   cat >conftest.$ac_ext <<_ACEOF
32514 /* confdefs.h.  */
32515 _ACEOF
32516 cat confdefs.h >>conftest.$ac_ext
32517 cat >>conftest.$ac_ext <<_ACEOF
32518 /* end confdefs.h.  */
32519 #include <sys/types.h>
32520 #include <signal.h>
32521
32522 int
32523 main ()
32524 {
32525 return *(signal (0, 0)) (0) == 1;
32526   ;
32527   return 0;
32528 }
32529 _ACEOF
32530 rm -f conftest.$ac_objext
32531 if { (ac_try="$ac_compile"
32532 case "(($ac_try" in
32533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534   *) ac_try_echo=$ac_try;;
32535 esac
32536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537   (eval "$ac_compile") 2>conftest.er1
32538   ac_status=$?
32539   grep -v '^ *+' conftest.er1 >conftest.err
32540   rm -f conftest.er1
32541   cat conftest.err >&5
32542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543   (exit $ac_status); } && {
32544          test -z "$ac_c_werror_flag" ||
32545          test ! -s conftest.err
32546        } && test -s conftest.$ac_objext; then
32547   ac_cv_type_signal=int
32548 else
32549   echo "$as_me: failed program was:" >&5
32550 sed 's/^/| /' conftest.$ac_ext >&5
32551
32552         ac_cv_type_signal=void
32553 fi
32554
32555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32556 fi
32557 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32558 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32559
32560 cat >>confdefs.h <<_ACEOF
32561 #define RETSIGTYPE $ac_cv_type_signal
32562 _ACEOF
32563
32564
32565
32566 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32567 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32568 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32569   echo $ECHO_N "(cached) $ECHO_C" >&6
32570 else
32571   cat >conftest.$ac_ext <<_ACEOF
32572 /* confdefs.h.  */
32573 _ACEOF
32574 cat confdefs.h >>conftest.$ac_ext
32575 cat >>conftest.$ac_ext <<_ACEOF
32576 /* end confdefs.h.  */
32577 $ac_includes_default
32578 #include <signal.h>
32579
32580
32581 typedef sig_atomic_t ac__type_new_;
32582 int
32583 main ()
32584 {
32585 if ((ac__type_new_ *) 0)
32586   return 0;
32587 if (sizeof (ac__type_new_))
32588   return 0;
32589   ;
32590   return 0;
32591 }
32592 _ACEOF
32593 rm -f conftest.$ac_objext
32594 if { (ac_try="$ac_compile"
32595 case "(($ac_try" in
32596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32597   *) ac_try_echo=$ac_try;;
32598 esac
32599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32600   (eval "$ac_compile") 2>conftest.er1
32601   ac_status=$?
32602   grep -v '^ *+' conftest.er1 >conftest.err
32603   rm -f conftest.er1
32604   cat conftest.err >&5
32605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606   (exit $ac_status); } && {
32607          test -z "$ac_c_werror_flag" ||
32608          test ! -s conftest.err
32609        } && test -s conftest.$ac_objext; then
32610   ac_cv_type_sig_atomic_t=yes
32611 else
32612   echo "$as_me: failed program was:" >&5
32613 sed 's/^/| /' conftest.$ac_ext >&5
32614
32615         ac_cv_type_sig_atomic_t=no
32616 fi
32617
32618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32619 fi
32620 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32621 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32622 if test $ac_cv_type_sig_atomic_t = yes; then
32623   :
32624 else
32625
32626 cat >>confdefs.h <<_ACEOF
32627 #define sig_atomic_t int
32628 _ACEOF
32629
32630 fi
32631
32632
32633 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32634 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32635 if test "${ac_cv_type_uid_t+set}" = set; then
32636   echo $ECHO_N "(cached) $ECHO_C" >&6
32637 else
32638   cat >conftest.$ac_ext <<_ACEOF
32639 /* confdefs.h.  */
32640 _ACEOF
32641 cat confdefs.h >>conftest.$ac_ext
32642 cat >>conftest.$ac_ext <<_ACEOF
32643 /* end confdefs.h.  */
32644 #include <sys/types.h>
32645
32646 _ACEOF
32647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32648   $EGREP "uid_t" >/dev/null 2>&1; then
32649   ac_cv_type_uid_t=yes
32650 else
32651   ac_cv_type_uid_t=no
32652 fi
32653 rm -f conftest*
32654
32655 fi
32656 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32657 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32658 if test $ac_cv_type_uid_t = no; then
32659
32660 cat >>confdefs.h <<\_ACEOF
32661 #define uid_t int
32662 _ACEOF
32663
32664
32665 cat >>confdefs.h <<\_ACEOF
32666 #define gid_t int
32667 _ACEOF
32668
32669 fi
32670
32671
32672 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32673 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32674 if test "${ac_cv_header_time+set}" = set; then
32675   echo $ECHO_N "(cached) $ECHO_C" >&6
32676 else
32677   cat >conftest.$ac_ext <<_ACEOF
32678 /* confdefs.h.  */
32679 _ACEOF
32680 cat confdefs.h >>conftest.$ac_ext
32681 cat >>conftest.$ac_ext <<_ACEOF
32682 /* end confdefs.h.  */
32683 #include <sys/types.h>
32684 #include <sys/time.h>
32685 #include <time.h>
32686
32687 int
32688 main ()
32689 {
32690 if ((struct tm *) 0)
32691 return 0;
32692   ;
32693   return 0;
32694 }
32695 _ACEOF
32696 rm -f conftest.$ac_objext
32697 if { (ac_try="$ac_compile"
32698 case "(($ac_try" in
32699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700   *) ac_try_echo=$ac_try;;
32701 esac
32702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703   (eval "$ac_compile") 2>conftest.er1
32704   ac_status=$?
32705   grep -v '^ *+' conftest.er1 >conftest.err
32706   rm -f conftest.er1
32707   cat conftest.err >&5
32708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709   (exit $ac_status); } && {
32710          test -z "$ac_c_werror_flag" ||
32711          test ! -s conftest.err
32712        } && test -s conftest.$ac_objext; then
32713   ac_cv_header_time=yes
32714 else
32715   echo "$as_me: failed program was:" >&5
32716 sed 's/^/| /' conftest.$ac_ext >&5
32717
32718         ac_cv_header_time=no
32719 fi
32720
32721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32722 fi
32723 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32724 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32725 if test $ac_cv_header_time = yes; then
32726
32727 cat >>confdefs.h <<\_ACEOF
32728 #define TIME_WITH_SYS_TIME 1
32729 _ACEOF
32730
32731 fi
32732
32733 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32734 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32735 if test "${ac_cv_struct_tm+set}" = set; then
32736   echo $ECHO_N "(cached) $ECHO_C" >&6
32737 else
32738   cat >conftest.$ac_ext <<_ACEOF
32739 /* confdefs.h.  */
32740 _ACEOF
32741 cat confdefs.h >>conftest.$ac_ext
32742 cat >>conftest.$ac_ext <<_ACEOF
32743 /* end confdefs.h.  */
32744 #include <sys/types.h>
32745 #include <time.h>
32746
32747 int
32748 main ()
32749 {
32750 struct tm tm;
32751                                      int *p = &tm.tm_sec;
32752                                      return !p;
32753   ;
32754   return 0;
32755 }
32756 _ACEOF
32757 rm -f conftest.$ac_objext
32758 if { (ac_try="$ac_compile"
32759 case "(($ac_try" in
32760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32761   *) ac_try_echo=$ac_try;;
32762 esac
32763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32764   (eval "$ac_compile") 2>conftest.er1
32765   ac_status=$?
32766   grep -v '^ *+' conftest.er1 >conftest.err
32767   rm -f conftest.er1
32768   cat conftest.err >&5
32769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770   (exit $ac_status); } && {
32771          test -z "$ac_c_werror_flag" ||
32772          test ! -s conftest.err
32773        } && test -s conftest.$ac_objext; then
32774   ac_cv_struct_tm=time.h
32775 else
32776   echo "$as_me: failed program was:" >&5
32777 sed 's/^/| /' conftest.$ac_ext >&5
32778
32779         ac_cv_struct_tm=sys/time.h
32780 fi
32781
32782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32783 fi
32784 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32785 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32786 if test $ac_cv_struct_tm = sys/time.h; then
32787
32788 cat >>confdefs.h <<\_ACEOF
32789 #define TM_IN_SYS_TIME 1
32790 _ACEOF
32791
32792 fi
32793
32794 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32795 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32796 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32797   echo $ECHO_N "(cached) $ECHO_C" >&6
32798 else
32799   cat >conftest.$ac_ext <<_ACEOF
32800 /* confdefs.h.  */
32801 _ACEOF
32802 cat confdefs.h >>conftest.$ac_ext
32803 cat >>conftest.$ac_ext <<_ACEOF
32804 /* end confdefs.h.  */
32805 $ac_includes_default
32806 int
32807 main ()
32808 {
32809 static struct stat ac_aggr;
32810 if (ac_aggr.st_blksize)
32811 return 0;
32812   ;
32813   return 0;
32814 }
32815 _ACEOF
32816 rm -f conftest.$ac_objext
32817 if { (ac_try="$ac_compile"
32818 case "(($ac_try" in
32819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32820   *) ac_try_echo=$ac_try;;
32821 esac
32822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32823   (eval "$ac_compile") 2>conftest.er1
32824   ac_status=$?
32825   grep -v '^ *+' conftest.er1 >conftest.err
32826   rm -f conftest.er1
32827   cat conftest.err >&5
32828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32829   (exit $ac_status); } && {
32830          test -z "$ac_c_werror_flag" ||
32831          test ! -s conftest.err
32832        } && test -s conftest.$ac_objext; then
32833   ac_cv_member_struct_stat_st_blksize=yes
32834 else
32835   echo "$as_me: failed program was:" >&5
32836 sed 's/^/| /' conftest.$ac_ext >&5
32837
32838         cat >conftest.$ac_ext <<_ACEOF
32839 /* confdefs.h.  */
32840 _ACEOF
32841 cat confdefs.h >>conftest.$ac_ext
32842 cat >>conftest.$ac_ext <<_ACEOF
32843 /* end confdefs.h.  */
32844 $ac_includes_default
32845 int
32846 main ()
32847 {
32848 static struct stat ac_aggr;
32849 if (sizeof ac_aggr.st_blksize)
32850 return 0;
32851   ;
32852   return 0;
32853 }
32854 _ACEOF
32855 rm -f conftest.$ac_objext
32856 if { (ac_try="$ac_compile"
32857 case "(($ac_try" in
32858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32859   *) ac_try_echo=$ac_try;;
32860 esac
32861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32862   (eval "$ac_compile") 2>conftest.er1
32863   ac_status=$?
32864   grep -v '^ *+' conftest.er1 >conftest.err
32865   rm -f conftest.er1
32866   cat conftest.err >&5
32867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868   (exit $ac_status); } && {
32869          test -z "$ac_c_werror_flag" ||
32870          test ! -s conftest.err
32871        } && test -s conftest.$ac_objext; then
32872   ac_cv_member_struct_stat_st_blksize=yes
32873 else
32874   echo "$as_me: failed program was:" >&5
32875 sed 's/^/| /' conftest.$ac_ext >&5
32876
32877         ac_cv_member_struct_stat_st_blksize=no
32878 fi
32879
32880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32881 fi
32882
32883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32884 fi
32885 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32886 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32887 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32888
32889 cat >>confdefs.h <<_ACEOF
32890 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32891 _ACEOF
32892
32893
32894 fi
32895
32896 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32897 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32898 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32899   echo $ECHO_N "(cached) $ECHO_C" >&6
32900 else
32901   cat >conftest.$ac_ext <<_ACEOF
32902 /* confdefs.h.  */
32903 _ACEOF
32904 cat confdefs.h >>conftest.$ac_ext
32905 cat >>conftest.$ac_ext <<_ACEOF
32906 /* end confdefs.h.  */
32907 $ac_includes_default
32908 #include <pwd.h>
32909
32910 int
32911 main ()
32912 {
32913 static struct passwd ac_aggr;
32914 if (ac_aggr.pw_gecos)
32915 return 0;
32916   ;
32917   return 0;
32918 }
32919 _ACEOF
32920 rm -f conftest.$ac_objext
32921 if { (ac_try="$ac_compile"
32922 case "(($ac_try" in
32923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32924   *) ac_try_echo=$ac_try;;
32925 esac
32926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32927   (eval "$ac_compile") 2>conftest.er1
32928   ac_status=$?
32929   grep -v '^ *+' conftest.er1 >conftest.err
32930   rm -f conftest.er1
32931   cat conftest.err >&5
32932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933   (exit $ac_status); } && {
32934          test -z "$ac_c_werror_flag" ||
32935          test ! -s conftest.err
32936        } && test -s conftest.$ac_objext; then
32937   ac_cv_member_struct_passwd_pw_gecos=yes
32938 else
32939   echo "$as_me: failed program was:" >&5
32940 sed 's/^/| /' conftest.$ac_ext >&5
32941
32942         cat >conftest.$ac_ext <<_ACEOF
32943 /* confdefs.h.  */
32944 _ACEOF
32945 cat confdefs.h >>conftest.$ac_ext
32946 cat >>conftest.$ac_ext <<_ACEOF
32947 /* end confdefs.h.  */
32948 $ac_includes_default
32949 #include <pwd.h>
32950
32951 int
32952 main ()
32953 {
32954 static struct passwd ac_aggr;
32955 if (sizeof ac_aggr.pw_gecos)
32956 return 0;
32957   ;
32958   return 0;
32959 }
32960 _ACEOF
32961 rm -f conftest.$ac_objext
32962 if { (ac_try="$ac_compile"
32963 case "(($ac_try" in
32964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32965   *) ac_try_echo=$ac_try;;
32966 esac
32967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32968   (eval "$ac_compile") 2>conftest.er1
32969   ac_status=$?
32970   grep -v '^ *+' conftest.er1 >conftest.err
32971   rm -f conftest.er1
32972   cat conftest.err >&5
32973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974   (exit $ac_status); } && {
32975          test -z "$ac_c_werror_flag" ||
32976          test ! -s conftest.err
32977        } && test -s conftest.$ac_objext; then
32978   ac_cv_member_struct_passwd_pw_gecos=yes
32979 else
32980   echo "$as_me: failed program was:" >&5
32981 sed 's/^/| /' conftest.$ac_ext >&5
32982
32983         ac_cv_member_struct_passwd_pw_gecos=no
32984 fi
32985
32986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32987 fi
32988
32989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32990 fi
32991 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32992 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32993 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32994
32995 cat >>confdefs.h <<_ACEOF
32996 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32997 _ACEOF
32998
32999
33000 fi
33001
33002 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
33003 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
33004 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
33005   echo $ECHO_N "(cached) $ECHO_C" >&6
33006 else
33007   cat >conftest.$ac_ext <<_ACEOF
33008 /* confdefs.h.  */
33009 _ACEOF
33010 cat confdefs.h >>conftest.$ac_ext
33011 cat >>conftest.$ac_ext <<_ACEOF
33012 /* end confdefs.h.  */
33013 $ac_includes_default
33014 #include <pwd.h>
33015
33016 int
33017 main ()
33018 {
33019 static struct passwd ac_aggr;
33020 if (ac_aggr.pw_passwd)
33021 return 0;
33022   ;
33023   return 0;
33024 }
33025 _ACEOF
33026 rm -f conftest.$ac_objext
33027 if { (ac_try="$ac_compile"
33028 case "(($ac_try" in
33029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33030   *) ac_try_echo=$ac_try;;
33031 esac
33032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33033   (eval "$ac_compile") 2>conftest.er1
33034   ac_status=$?
33035   grep -v '^ *+' conftest.er1 >conftest.err
33036   rm -f conftest.er1
33037   cat conftest.err >&5
33038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33039   (exit $ac_status); } && {
33040          test -z "$ac_c_werror_flag" ||
33041          test ! -s conftest.err
33042        } && test -s conftest.$ac_objext; then
33043   ac_cv_member_struct_passwd_pw_passwd=yes
33044 else
33045   echo "$as_me: failed program was:" >&5
33046 sed 's/^/| /' conftest.$ac_ext >&5
33047
33048         cat >conftest.$ac_ext <<_ACEOF
33049 /* confdefs.h.  */
33050 _ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h.  */
33054 $ac_includes_default
33055 #include <pwd.h>
33056
33057 int
33058 main ()
33059 {
33060 static struct passwd ac_aggr;
33061 if (sizeof ac_aggr.pw_passwd)
33062 return 0;
33063   ;
33064   return 0;
33065 }
33066 _ACEOF
33067 rm -f conftest.$ac_objext
33068 if { (ac_try="$ac_compile"
33069 case "(($ac_try" in
33070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33071   *) ac_try_echo=$ac_try;;
33072 esac
33073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33074   (eval "$ac_compile") 2>conftest.er1
33075   ac_status=$?
33076   grep -v '^ *+' conftest.er1 >conftest.err
33077   rm -f conftest.er1
33078   cat conftest.err >&5
33079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080   (exit $ac_status); } && {
33081          test -z "$ac_c_werror_flag" ||
33082          test ! -s conftest.err
33083        } && test -s conftest.$ac_objext; then
33084   ac_cv_member_struct_passwd_pw_passwd=yes
33085 else
33086   echo "$as_me: failed program was:" >&5
33087 sed 's/^/| /' conftest.$ac_ext >&5
33088
33089         ac_cv_member_struct_passwd_pw_passwd=no
33090 fi
33091
33092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33093 fi
33094
33095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33096 fi
33097 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33098 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
33099 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33100
33101 cat >>confdefs.h <<_ACEOF
33102 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33103 _ACEOF
33104
33105
33106 fi
33107
33108
33109 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33110 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
33111 if test "${ol_cv_c_upper_lower+set}" = set; then
33112   echo $ECHO_N "(cached) $ECHO_C" >&6
33113 else
33114
33115         if test "$cross_compiling" = yes; then
33116   ol_cv_c_upper_lower=safe
33117 else
33118   cat >conftest.$ac_ext <<_ACEOF
33119 /* confdefs.h.  */
33120 _ACEOF
33121 cat confdefs.h >>conftest.$ac_ext
33122 cat >>conftest.$ac_ext <<_ACEOF
33123 /* end confdefs.h.  */
33124
33125 #include <ctype.h>
33126 main()
33127 {
33128         if ('C' == toupper('C'))
33129                 exit(0);
33130         else
33131                 exit(1);
33132 }
33133 _ACEOF
33134 rm -f conftest$ac_exeext
33135 if { (ac_try="$ac_link"
33136 case "(($ac_try" in
33137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33138   *) ac_try_echo=$ac_try;;
33139 esac
33140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33141   (eval "$ac_link") 2>&5
33142   ac_status=$?
33143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33145   { (case "(($ac_try" in
33146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33147   *) ac_try_echo=$ac_try;;
33148 esac
33149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33150   (eval "$ac_try") 2>&5
33151   ac_status=$?
33152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153   (exit $ac_status); }; }; then
33154   ol_cv_c_upper_lower=no
33155 else
33156   echo "$as_me: program exited with status $ac_status" >&5
33157 echo "$as_me: failed program was:" >&5
33158 sed 's/^/| /' conftest.$ac_ext >&5
33159
33160 ( exit $ac_status )
33161 ol_cv_c_upper_lower=yes
33162 fi
33163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33164 fi
33165
33166
33167 fi
33168 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33169 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33170 if test $ol_cv_c_upper_lower != no ; then
33171
33172 cat >>confdefs.h <<\_ACEOF
33173 #define C_UPPER_LOWER 1
33174 _ACEOF
33175
33176 fi
33177
33178 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33179 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33180 if test "${ac_cv_c_const+set}" = set; then
33181   echo $ECHO_N "(cached) $ECHO_C" >&6
33182 else
33183   cat >conftest.$ac_ext <<_ACEOF
33184 /* confdefs.h.  */
33185 _ACEOF
33186 cat confdefs.h >>conftest.$ac_ext
33187 cat >>conftest.$ac_ext <<_ACEOF
33188 /* end confdefs.h.  */
33189
33190 int
33191 main ()
33192 {
33193 /* FIXME: Include the comments suggested by Paul. */
33194 #ifndef __cplusplus
33195   /* Ultrix mips cc rejects this.  */
33196   typedef int charset[2];
33197   const charset cs;
33198   /* SunOS 4.1.1 cc rejects this.  */
33199   char const *const *pcpcc;
33200   char **ppc;
33201   /* NEC SVR4.0.2 mips cc rejects this.  */
33202   struct point {int x, y;};
33203   static struct point const zero = {0,0};
33204   /* AIX XL C 1.02.0.0 rejects this.
33205      It does not let you subtract one const X* pointer from another in
33206      an arm of an if-expression whose if-part is not a constant
33207      expression */
33208   const char *g = "string";
33209   pcpcc = &g + (g ? g-g : 0);
33210   /* HPUX 7.0 cc rejects these. */
33211   ++pcpcc;
33212   ppc = (char**) pcpcc;
33213   pcpcc = (char const *const *) ppc;
33214   { /* SCO 3.2v4 cc rejects this.  */
33215     char *t;
33216     char const *s = 0 ? (char *) 0 : (char const *) 0;
33217
33218     *t++ = 0;
33219     if (s) return 0;
33220   }
33221   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33222     int x[] = {25, 17};
33223     const int *foo = &x[0];
33224     ++foo;
33225   }
33226   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33227     typedef const int *iptr;
33228     iptr p = 0;
33229     ++p;
33230   }
33231   { /* AIX XL C 1.02.0.0 rejects this saying
33232        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33233     struct s { int j; const int *ap[3]; };
33234     struct s *b; b->j = 5;
33235   }
33236   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33237     const int foo = 10;
33238     if (!foo) return 0;
33239   }
33240   return !cs[0] && !zero.x;
33241 #endif
33242
33243   ;
33244   return 0;
33245 }
33246 _ACEOF
33247 rm -f conftest.$ac_objext
33248 if { (ac_try="$ac_compile"
33249 case "(($ac_try" in
33250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33251   *) ac_try_echo=$ac_try;;
33252 esac
33253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33254   (eval "$ac_compile") 2>conftest.er1
33255   ac_status=$?
33256   grep -v '^ *+' conftest.er1 >conftest.err
33257   rm -f conftest.er1
33258   cat conftest.err >&5
33259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260   (exit $ac_status); } && {
33261          test -z "$ac_c_werror_flag" ||
33262          test ! -s conftest.err
33263        } && test -s conftest.$ac_objext; then
33264   ac_cv_c_const=yes
33265 else
33266   echo "$as_me: failed program was:" >&5
33267 sed 's/^/| /' conftest.$ac_ext >&5
33268
33269         ac_cv_c_const=no
33270 fi
33271
33272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33273 fi
33274 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33275 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33276 if test $ac_cv_c_const = no; then
33277
33278 cat >>confdefs.h <<\_ACEOF
33279 #define const
33280 _ACEOF
33281
33282 fi
33283
33284 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33285 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33286 if test "${ol_cv_c_volatile+set}" = set; then
33287   echo $ECHO_N "(cached) $ECHO_C" >&6
33288 else
33289   cat >conftest.$ac_ext <<_ACEOF
33290 /* confdefs.h.  */
33291 _ACEOF
33292 cat confdefs.h >>conftest.$ac_ext
33293 cat >>conftest.$ac_ext <<_ACEOF
33294 /* end confdefs.h.  */
33295 int x, y, z;
33296 int
33297 main ()
33298 {
33299 volatile int a; int * volatile b = x ? &y : &z;
33300       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33301       *b = 0;
33302   ;
33303   return 0;
33304 }
33305 _ACEOF
33306 rm -f conftest.$ac_objext
33307 if { (ac_try="$ac_compile"
33308 case "(($ac_try" in
33309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33310   *) ac_try_echo=$ac_try;;
33311 esac
33312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33313   (eval "$ac_compile") 2>conftest.er1
33314   ac_status=$?
33315   grep -v '^ *+' conftest.er1 >conftest.err
33316   rm -f conftest.er1
33317   cat conftest.err >&5
33318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319   (exit $ac_status); } && {
33320          test -z "$ac_c_werror_flag" ||
33321          test ! -s conftest.err
33322        } && test -s conftest.$ac_objext; then
33323   ol_cv_c_volatile=yes
33324 else
33325   echo "$as_me: failed program was:" >&5
33326 sed 's/^/| /' conftest.$ac_ext >&5
33327
33328         ol_cv_c_volatile=no
33329 fi
33330
33331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33332 fi
33333 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33334 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33335   if test $ol_cv_c_volatile = yes; then
33336     :
33337   else
33338
33339 cat >>confdefs.h <<\_ACEOF
33340 #define volatile
33341 _ACEOF
33342
33343   fi
33344
33345
33346 if test $cross_compiling = yes ; then
33347         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33348 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33349
33350 cat >>confdefs.h <<\_ACEOF
33351 #define CROSS_COMPILING 1
33352 _ACEOF
33353
33354 else
33355         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33356 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33357 if test "${ac_cv_c_bigendian+set}" = set; then
33358   echo $ECHO_N "(cached) $ECHO_C" >&6
33359 else
33360   # See if sys/param.h defines the BYTE_ORDER macro.
33361 cat >conftest.$ac_ext <<_ACEOF
33362 /* confdefs.h.  */
33363 _ACEOF
33364 cat confdefs.h >>conftest.$ac_ext
33365 cat >>conftest.$ac_ext <<_ACEOF
33366 /* end confdefs.h.  */
33367 #include <sys/types.h>
33368 #include <sys/param.h>
33369
33370 int
33371 main ()
33372 {
33373 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33374         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33375  bogus endian macros
33376 #endif
33377
33378   ;
33379   return 0;
33380 }
33381 _ACEOF
33382 rm -f conftest.$ac_objext
33383 if { (ac_try="$ac_compile"
33384 case "(($ac_try" in
33385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33386   *) ac_try_echo=$ac_try;;
33387 esac
33388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33389   (eval "$ac_compile") 2>conftest.er1
33390   ac_status=$?
33391   grep -v '^ *+' conftest.er1 >conftest.err
33392   rm -f conftest.er1
33393   cat conftest.err >&5
33394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33395   (exit $ac_status); } && {
33396          test -z "$ac_c_werror_flag" ||
33397          test ! -s conftest.err
33398        } && test -s conftest.$ac_objext; then
33399   # It does; now see whether it defined to BIG_ENDIAN or not.
33400 cat >conftest.$ac_ext <<_ACEOF
33401 /* confdefs.h.  */
33402 _ACEOF
33403 cat confdefs.h >>conftest.$ac_ext
33404 cat >>conftest.$ac_ext <<_ACEOF
33405 /* end confdefs.h.  */
33406 #include <sys/types.h>
33407 #include <sys/param.h>
33408
33409 int
33410 main ()
33411 {
33412 #if BYTE_ORDER != BIG_ENDIAN
33413  not big endian
33414 #endif
33415
33416   ;
33417   return 0;
33418 }
33419 _ACEOF
33420 rm -f conftest.$ac_objext
33421 if { (ac_try="$ac_compile"
33422 case "(($ac_try" in
33423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33424   *) ac_try_echo=$ac_try;;
33425 esac
33426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33427   (eval "$ac_compile") 2>conftest.er1
33428   ac_status=$?
33429   grep -v '^ *+' conftest.er1 >conftest.err
33430   rm -f conftest.er1
33431   cat conftest.err >&5
33432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433   (exit $ac_status); } && {
33434          test -z "$ac_c_werror_flag" ||
33435          test ! -s conftest.err
33436        } && test -s conftest.$ac_objext; then
33437   ac_cv_c_bigendian=yes
33438 else
33439   echo "$as_me: failed program was:" >&5
33440 sed 's/^/| /' conftest.$ac_ext >&5
33441
33442         ac_cv_c_bigendian=no
33443 fi
33444
33445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33446 else
33447   echo "$as_me: failed program was:" >&5
33448 sed 's/^/| /' conftest.$ac_ext >&5
33449
33450         # It does not; compile a test program.
33451 if test "$cross_compiling" = yes; then
33452   # try to guess the endianness by grepping values into an object file
33453   ac_cv_c_bigendian=unknown
33454   cat >conftest.$ac_ext <<_ACEOF
33455 /* confdefs.h.  */
33456 _ACEOF
33457 cat confdefs.h >>conftest.$ac_ext
33458 cat >>conftest.$ac_ext <<_ACEOF
33459 /* end confdefs.h.  */
33460 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33461 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33462 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33463 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33464 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33465 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33466 int
33467 main ()
33468 {
33469  _ascii (); _ebcdic ();
33470   ;
33471   return 0;
33472 }
33473 _ACEOF
33474 rm -f conftest.$ac_objext
33475 if { (ac_try="$ac_compile"
33476 case "(($ac_try" in
33477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33478   *) ac_try_echo=$ac_try;;
33479 esac
33480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33481   (eval "$ac_compile") 2>conftest.er1
33482   ac_status=$?
33483   grep -v '^ *+' conftest.er1 >conftest.err
33484   rm -f conftest.er1
33485   cat conftest.err >&5
33486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487   (exit $ac_status); } && {
33488          test -z "$ac_c_werror_flag" ||
33489          test ! -s conftest.err
33490        } && test -s conftest.$ac_objext; then
33491   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33492   ac_cv_c_bigendian=yes
33493 fi
33494 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33495   if test "$ac_cv_c_bigendian" = unknown; then
33496     ac_cv_c_bigendian=no
33497   else
33498     # finding both strings is unlikely to happen, but who knows?
33499     ac_cv_c_bigendian=unknown
33500   fi
33501 fi
33502 else
33503   echo "$as_me: failed program was:" >&5
33504 sed 's/^/| /' conftest.$ac_ext >&5
33505
33506
33507 fi
33508
33509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33510 else
33511   cat >conftest.$ac_ext <<_ACEOF
33512 /* confdefs.h.  */
33513 _ACEOF
33514 cat confdefs.h >>conftest.$ac_ext
33515 cat >>conftest.$ac_ext <<_ACEOF
33516 /* end confdefs.h.  */
33517 $ac_includes_default
33518 int
33519 main ()
33520 {
33521
33522   /* Are we little or big endian?  From Harbison&Steele.  */
33523   union
33524   {
33525     long int l;
33526     char c[sizeof (long int)];
33527   } u;
33528   u.l = 1;
33529   return u.c[sizeof (long int) - 1] == 1;
33530
33531   ;
33532   return 0;
33533 }
33534 _ACEOF
33535 rm -f conftest$ac_exeext
33536 if { (ac_try="$ac_link"
33537 case "(($ac_try" in
33538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33539   *) ac_try_echo=$ac_try;;
33540 esac
33541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33542   (eval "$ac_link") 2>&5
33543   ac_status=$?
33544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33546   { (case "(($ac_try" in
33547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33548   *) ac_try_echo=$ac_try;;
33549 esac
33550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33551   (eval "$ac_try") 2>&5
33552   ac_status=$?
33553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554   (exit $ac_status); }; }; then
33555   ac_cv_c_bigendian=no
33556 else
33557   echo "$as_me: program exited with status $ac_status" >&5
33558 echo "$as_me: failed program was:" >&5
33559 sed 's/^/| /' conftest.$ac_ext >&5
33560
33561 ( exit $ac_status )
33562 ac_cv_c_bigendian=yes
33563 fi
33564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33565 fi
33566
33567
33568 fi
33569
33570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33571 fi
33572 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33573 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33574 case $ac_cv_c_bigendian in
33575   yes)
33576
33577 cat >>confdefs.h <<\_ACEOF
33578 #define WORDS_BIGENDIAN 1
33579 _ACEOF
33580  ;;
33581   no)
33582      ;;
33583   *)
33584     { { echo "$as_me:$LINENO: error: unknown endianness
33585 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33586 echo "$as_me: error: unknown endianness
33587 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33588    { (exit 1); exit 1; }; } ;;
33589 esac
33590
33591 fi
33592
33593 { echo "$as_me:$LINENO: checking for short" >&5
33594 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33595 if test "${ac_cv_type_short+set}" = set; then
33596   echo $ECHO_N "(cached) $ECHO_C" >&6
33597 else
33598   cat >conftest.$ac_ext <<_ACEOF
33599 /* confdefs.h.  */
33600 _ACEOF
33601 cat confdefs.h >>conftest.$ac_ext
33602 cat >>conftest.$ac_ext <<_ACEOF
33603 /* end confdefs.h.  */
33604 $ac_includes_default
33605 typedef short ac__type_new_;
33606 int
33607 main ()
33608 {
33609 if ((ac__type_new_ *) 0)
33610   return 0;
33611 if (sizeof (ac__type_new_))
33612   return 0;
33613   ;
33614   return 0;
33615 }
33616 _ACEOF
33617 rm -f conftest.$ac_objext
33618 if { (ac_try="$ac_compile"
33619 case "(($ac_try" in
33620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33621   *) ac_try_echo=$ac_try;;
33622 esac
33623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33624   (eval "$ac_compile") 2>conftest.er1
33625   ac_status=$?
33626   grep -v '^ *+' conftest.er1 >conftest.err
33627   rm -f conftest.er1
33628   cat conftest.err >&5
33629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630   (exit $ac_status); } && {
33631          test -z "$ac_c_werror_flag" ||
33632          test ! -s conftest.err
33633        } && test -s conftest.$ac_objext; then
33634   ac_cv_type_short=yes
33635 else
33636   echo "$as_me: failed program was:" >&5
33637 sed 's/^/| /' conftest.$ac_ext >&5
33638
33639         ac_cv_type_short=no
33640 fi
33641
33642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33643 fi
33644 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33645 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33646
33647 # The cast to long int works around a bug in the HP C Compiler
33648 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33649 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33650 # This bug is HP SR number 8606223364.
33651 { echo "$as_me:$LINENO: checking size of short" >&5
33652 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33653 if test "${ac_cv_sizeof_short+set}" = set; then
33654   echo $ECHO_N "(cached) $ECHO_C" >&6
33655 else
33656   if test "$cross_compiling" = yes; then
33657   # Depending upon the size, compute the lo and hi bounds.
33658 cat >conftest.$ac_ext <<_ACEOF
33659 /* confdefs.h.  */
33660 _ACEOF
33661 cat confdefs.h >>conftest.$ac_ext
33662 cat >>conftest.$ac_ext <<_ACEOF
33663 /* end confdefs.h.  */
33664 $ac_includes_default
33665    typedef short ac__type_sizeof_;
33666 int
33667 main ()
33668 {
33669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33670 test_array [0] = 0
33671
33672   ;
33673   return 0;
33674 }
33675 _ACEOF
33676 rm -f conftest.$ac_objext
33677 if { (ac_try="$ac_compile"
33678 case "(($ac_try" in
33679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33680   *) ac_try_echo=$ac_try;;
33681 esac
33682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33683   (eval "$ac_compile") 2>conftest.er1
33684   ac_status=$?
33685   grep -v '^ *+' conftest.er1 >conftest.err
33686   rm -f conftest.er1
33687   cat conftest.err >&5
33688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689   (exit $ac_status); } && {
33690          test -z "$ac_c_werror_flag" ||
33691          test ! -s conftest.err
33692        } && test -s conftest.$ac_objext; then
33693   ac_lo=0 ac_mid=0
33694   while :; do
33695     cat >conftest.$ac_ext <<_ACEOF
33696 /* confdefs.h.  */
33697 _ACEOF
33698 cat confdefs.h >>conftest.$ac_ext
33699 cat >>conftest.$ac_ext <<_ACEOF
33700 /* end confdefs.h.  */
33701 $ac_includes_default
33702    typedef short ac__type_sizeof_;
33703 int
33704 main ()
33705 {
33706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33707 test_array [0] = 0
33708
33709   ;
33710   return 0;
33711 }
33712 _ACEOF
33713 rm -f conftest.$ac_objext
33714 if { (ac_try="$ac_compile"
33715 case "(($ac_try" in
33716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33717   *) ac_try_echo=$ac_try;;
33718 esac
33719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33720   (eval "$ac_compile") 2>conftest.er1
33721   ac_status=$?
33722   grep -v '^ *+' conftest.er1 >conftest.err
33723   rm -f conftest.er1
33724   cat conftest.err >&5
33725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726   (exit $ac_status); } && {
33727          test -z "$ac_c_werror_flag" ||
33728          test ! -s conftest.err
33729        } && test -s conftest.$ac_objext; then
33730   ac_hi=$ac_mid; break
33731 else
33732   echo "$as_me: failed program was:" >&5
33733 sed 's/^/| /' conftest.$ac_ext >&5
33734
33735         ac_lo=`expr $ac_mid + 1`
33736                         if test $ac_lo -le $ac_mid; then
33737                           ac_lo= ac_hi=
33738                           break
33739                         fi
33740                         ac_mid=`expr 2 '*' $ac_mid + 1`
33741 fi
33742
33743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33744   done
33745 else
33746   echo "$as_me: failed program was:" >&5
33747 sed 's/^/| /' conftest.$ac_ext >&5
33748
33749         cat >conftest.$ac_ext <<_ACEOF
33750 /* confdefs.h.  */
33751 _ACEOF
33752 cat confdefs.h >>conftest.$ac_ext
33753 cat >>conftest.$ac_ext <<_ACEOF
33754 /* end confdefs.h.  */
33755 $ac_includes_default
33756    typedef short ac__type_sizeof_;
33757 int
33758 main ()
33759 {
33760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33761 test_array [0] = 0
33762
33763   ;
33764   return 0;
33765 }
33766 _ACEOF
33767 rm -f conftest.$ac_objext
33768 if { (ac_try="$ac_compile"
33769 case "(($ac_try" in
33770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33771   *) ac_try_echo=$ac_try;;
33772 esac
33773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33774   (eval "$ac_compile") 2>conftest.er1
33775   ac_status=$?
33776   grep -v '^ *+' conftest.er1 >conftest.err
33777   rm -f conftest.er1
33778   cat conftest.err >&5
33779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33780   (exit $ac_status); } && {
33781          test -z "$ac_c_werror_flag" ||
33782          test ! -s conftest.err
33783        } && test -s conftest.$ac_objext; then
33784   ac_hi=-1 ac_mid=-1
33785   while :; do
33786     cat >conftest.$ac_ext <<_ACEOF
33787 /* confdefs.h.  */
33788 _ACEOF
33789 cat confdefs.h >>conftest.$ac_ext
33790 cat >>conftest.$ac_ext <<_ACEOF
33791 /* end confdefs.h.  */
33792 $ac_includes_default
33793    typedef short ac__type_sizeof_;
33794 int
33795 main ()
33796 {
33797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33798 test_array [0] = 0
33799
33800   ;
33801   return 0;
33802 }
33803 _ACEOF
33804 rm -f conftest.$ac_objext
33805 if { (ac_try="$ac_compile"
33806 case "(($ac_try" in
33807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33808   *) ac_try_echo=$ac_try;;
33809 esac
33810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33811   (eval "$ac_compile") 2>conftest.er1
33812   ac_status=$?
33813   grep -v '^ *+' conftest.er1 >conftest.err
33814   rm -f conftest.er1
33815   cat conftest.err >&5
33816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817   (exit $ac_status); } && {
33818          test -z "$ac_c_werror_flag" ||
33819          test ! -s conftest.err
33820        } && test -s conftest.$ac_objext; then
33821   ac_lo=$ac_mid; break
33822 else
33823   echo "$as_me: failed program was:" >&5
33824 sed 's/^/| /' conftest.$ac_ext >&5
33825
33826         ac_hi=`expr '(' $ac_mid ')' - 1`
33827                         if test $ac_mid -le $ac_hi; then
33828                           ac_lo= ac_hi=
33829                           break
33830                         fi
33831                         ac_mid=`expr 2 '*' $ac_mid`
33832 fi
33833
33834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33835   done
33836 else
33837   echo "$as_me: failed program was:" >&5
33838 sed 's/^/| /' conftest.$ac_ext >&5
33839
33840         ac_lo= ac_hi=
33841 fi
33842
33843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33844 fi
33845
33846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33847 # Binary search between lo and hi bounds.
33848 while test "x$ac_lo" != "x$ac_hi"; do
33849   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33850   cat >conftest.$ac_ext <<_ACEOF
33851 /* confdefs.h.  */
33852 _ACEOF
33853 cat confdefs.h >>conftest.$ac_ext
33854 cat >>conftest.$ac_ext <<_ACEOF
33855 /* end confdefs.h.  */
33856 $ac_includes_default
33857    typedef short ac__type_sizeof_;
33858 int
33859 main ()
33860 {
33861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33862 test_array [0] = 0
33863
33864   ;
33865   return 0;
33866 }
33867 _ACEOF
33868 rm -f conftest.$ac_objext
33869 if { (ac_try="$ac_compile"
33870 case "(($ac_try" in
33871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33872   *) ac_try_echo=$ac_try;;
33873 esac
33874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33875   (eval "$ac_compile") 2>conftest.er1
33876   ac_status=$?
33877   grep -v '^ *+' conftest.er1 >conftest.err
33878   rm -f conftest.er1
33879   cat conftest.err >&5
33880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881   (exit $ac_status); } && {
33882          test -z "$ac_c_werror_flag" ||
33883          test ! -s conftest.err
33884        } && test -s conftest.$ac_objext; then
33885   ac_hi=$ac_mid
33886 else
33887   echo "$as_me: failed program was:" >&5
33888 sed 's/^/| /' conftest.$ac_ext >&5
33889
33890         ac_lo=`expr '(' $ac_mid ')' + 1`
33891 fi
33892
33893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33894 done
33895 case $ac_lo in
33896 ?*) ac_cv_sizeof_short=$ac_lo;;
33897 '') if test "$ac_cv_type_short" = yes; then
33898      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33899 See \`config.log' for more details." >&5
33900 echo "$as_me: error: cannot compute sizeof (short)
33901 See \`config.log' for more details." >&2;}
33902    { (exit 77); exit 77; }; }
33903    else
33904      ac_cv_sizeof_short=0
33905    fi ;;
33906 esac
33907 else
33908   cat >conftest.$ac_ext <<_ACEOF
33909 /* confdefs.h.  */
33910 _ACEOF
33911 cat confdefs.h >>conftest.$ac_ext
33912 cat >>conftest.$ac_ext <<_ACEOF
33913 /* end confdefs.h.  */
33914 $ac_includes_default
33915    typedef short ac__type_sizeof_;
33916 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33917 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33918 #include <stdio.h>
33919 #include <stdlib.h>
33920 int
33921 main ()
33922 {
33923
33924   FILE *f = fopen ("conftest.val", "w");
33925   if (! f)
33926     return 1;
33927   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33928     {
33929       long int i = longval ();
33930       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33931         return 1;
33932       fprintf (f, "%ld\n", i);
33933     }
33934   else
33935     {
33936       unsigned long int i = ulongval ();
33937       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33938         return 1;
33939       fprintf (f, "%lu\n", i);
33940     }
33941   return ferror (f) || fclose (f) != 0;
33942
33943   ;
33944   return 0;
33945 }
33946 _ACEOF
33947 rm -f conftest$ac_exeext
33948 if { (ac_try="$ac_link"
33949 case "(($ac_try" in
33950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33951   *) ac_try_echo=$ac_try;;
33952 esac
33953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33954   (eval "$ac_link") 2>&5
33955   ac_status=$?
33956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33958   { (case "(($ac_try" in
33959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33960   *) ac_try_echo=$ac_try;;
33961 esac
33962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33963   (eval "$ac_try") 2>&5
33964   ac_status=$?
33965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33966   (exit $ac_status); }; }; then
33967   ac_cv_sizeof_short=`cat conftest.val`
33968 else
33969   echo "$as_me: program exited with status $ac_status" >&5
33970 echo "$as_me: failed program was:" >&5
33971 sed 's/^/| /' conftest.$ac_ext >&5
33972
33973 ( exit $ac_status )
33974 if test "$ac_cv_type_short" = yes; then
33975      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33976 See \`config.log' for more details." >&5
33977 echo "$as_me: error: cannot compute sizeof (short)
33978 See \`config.log' for more details." >&2;}
33979    { (exit 77); exit 77; }; }
33980    else
33981      ac_cv_sizeof_short=0
33982    fi
33983 fi
33984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33985 fi
33986 rm -f conftest.val
33987 fi
33988 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33989 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33990
33991
33992
33993 cat >>confdefs.h <<_ACEOF
33994 #define SIZEOF_SHORT $ac_cv_sizeof_short
33995 _ACEOF
33996
33997
33998 { echo "$as_me:$LINENO: checking for int" >&5
33999 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34000 if test "${ac_cv_type_int+set}" = set; then
34001   echo $ECHO_N "(cached) $ECHO_C" >&6
34002 else
34003   cat >conftest.$ac_ext <<_ACEOF
34004 /* confdefs.h.  */
34005 _ACEOF
34006 cat confdefs.h >>conftest.$ac_ext
34007 cat >>conftest.$ac_ext <<_ACEOF
34008 /* end confdefs.h.  */
34009 $ac_includes_default
34010 typedef int ac__type_new_;
34011 int
34012 main ()
34013 {
34014 if ((ac__type_new_ *) 0)
34015   return 0;
34016 if (sizeof (ac__type_new_))
34017   return 0;
34018   ;
34019   return 0;
34020 }
34021 _ACEOF
34022 rm -f conftest.$ac_objext
34023 if { (ac_try="$ac_compile"
34024 case "(($ac_try" in
34025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34026   *) ac_try_echo=$ac_try;;
34027 esac
34028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34029   (eval "$ac_compile") 2>conftest.er1
34030   ac_status=$?
34031   grep -v '^ *+' conftest.er1 >conftest.err
34032   rm -f conftest.er1
34033   cat conftest.err >&5
34034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035   (exit $ac_status); } && {
34036          test -z "$ac_c_werror_flag" ||
34037          test ! -s conftest.err
34038        } && test -s conftest.$ac_objext; then
34039   ac_cv_type_int=yes
34040 else
34041   echo "$as_me: failed program was:" >&5
34042 sed 's/^/| /' conftest.$ac_ext >&5
34043
34044         ac_cv_type_int=no
34045 fi
34046
34047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34048 fi
34049 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
34050 echo "${ECHO_T}$ac_cv_type_int" >&6; }
34051
34052 # The cast to long int works around a bug in the HP C Compiler
34053 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34054 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34055 # This bug is HP SR number 8606223364.
34056 { echo "$as_me:$LINENO: checking size of int" >&5
34057 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
34058 if test "${ac_cv_sizeof_int+set}" = set; then
34059   echo $ECHO_N "(cached) $ECHO_C" >&6
34060 else
34061   if test "$cross_compiling" = yes; then
34062   # Depending upon the size, compute the lo and hi bounds.
34063 cat >conftest.$ac_ext <<_ACEOF
34064 /* confdefs.h.  */
34065 _ACEOF
34066 cat confdefs.h >>conftest.$ac_ext
34067 cat >>conftest.$ac_ext <<_ACEOF
34068 /* end confdefs.h.  */
34069 $ac_includes_default
34070    typedef int ac__type_sizeof_;
34071 int
34072 main ()
34073 {
34074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34075 test_array [0] = 0
34076
34077   ;
34078   return 0;
34079 }
34080 _ACEOF
34081 rm -f conftest.$ac_objext
34082 if { (ac_try="$ac_compile"
34083 case "(($ac_try" in
34084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34085   *) ac_try_echo=$ac_try;;
34086 esac
34087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34088   (eval "$ac_compile") 2>conftest.er1
34089   ac_status=$?
34090   grep -v '^ *+' conftest.er1 >conftest.err
34091   rm -f conftest.er1
34092   cat conftest.err >&5
34093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094   (exit $ac_status); } && {
34095          test -z "$ac_c_werror_flag" ||
34096          test ! -s conftest.err
34097        } && test -s conftest.$ac_objext; then
34098   ac_lo=0 ac_mid=0
34099   while :; do
34100     cat >conftest.$ac_ext <<_ACEOF
34101 /* confdefs.h.  */
34102 _ACEOF
34103 cat confdefs.h >>conftest.$ac_ext
34104 cat >>conftest.$ac_ext <<_ACEOF
34105 /* end confdefs.h.  */
34106 $ac_includes_default
34107    typedef int ac__type_sizeof_;
34108 int
34109 main ()
34110 {
34111 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34112 test_array [0] = 0
34113
34114   ;
34115   return 0;
34116 }
34117 _ACEOF
34118 rm -f conftest.$ac_objext
34119 if { (ac_try="$ac_compile"
34120 case "(($ac_try" in
34121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34122   *) ac_try_echo=$ac_try;;
34123 esac
34124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34125   (eval "$ac_compile") 2>conftest.er1
34126   ac_status=$?
34127   grep -v '^ *+' conftest.er1 >conftest.err
34128   rm -f conftest.er1
34129   cat conftest.err >&5
34130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34131   (exit $ac_status); } && {
34132          test -z "$ac_c_werror_flag" ||
34133          test ! -s conftest.err
34134        } && test -s conftest.$ac_objext; then
34135   ac_hi=$ac_mid; break
34136 else
34137   echo "$as_me: failed program was:" >&5
34138 sed 's/^/| /' conftest.$ac_ext >&5
34139
34140         ac_lo=`expr $ac_mid + 1`
34141                         if test $ac_lo -le $ac_mid; then
34142                           ac_lo= ac_hi=
34143                           break
34144                         fi
34145                         ac_mid=`expr 2 '*' $ac_mid + 1`
34146 fi
34147
34148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34149   done
34150 else
34151   echo "$as_me: failed program was:" >&5
34152 sed 's/^/| /' conftest.$ac_ext >&5
34153
34154         cat >conftest.$ac_ext <<_ACEOF
34155 /* confdefs.h.  */
34156 _ACEOF
34157 cat confdefs.h >>conftest.$ac_ext
34158 cat >>conftest.$ac_ext <<_ACEOF
34159 /* end confdefs.h.  */
34160 $ac_includes_default
34161    typedef int ac__type_sizeof_;
34162 int
34163 main ()
34164 {
34165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34166 test_array [0] = 0
34167
34168   ;
34169   return 0;
34170 }
34171 _ACEOF
34172 rm -f conftest.$ac_objext
34173 if { (ac_try="$ac_compile"
34174 case "(($ac_try" in
34175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34176   *) ac_try_echo=$ac_try;;
34177 esac
34178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34179   (eval "$ac_compile") 2>conftest.er1
34180   ac_status=$?
34181   grep -v '^ *+' conftest.er1 >conftest.err
34182   rm -f conftest.er1
34183   cat conftest.err >&5
34184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185   (exit $ac_status); } && {
34186          test -z "$ac_c_werror_flag" ||
34187          test ! -s conftest.err
34188        } && test -s conftest.$ac_objext; then
34189   ac_hi=-1 ac_mid=-1
34190   while :; do
34191     cat >conftest.$ac_ext <<_ACEOF
34192 /* confdefs.h.  */
34193 _ACEOF
34194 cat confdefs.h >>conftest.$ac_ext
34195 cat >>conftest.$ac_ext <<_ACEOF
34196 /* end confdefs.h.  */
34197 $ac_includes_default
34198    typedef int ac__type_sizeof_;
34199 int
34200 main ()
34201 {
34202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34203 test_array [0] = 0
34204
34205   ;
34206   return 0;
34207 }
34208 _ACEOF
34209 rm -f conftest.$ac_objext
34210 if { (ac_try="$ac_compile"
34211 case "(($ac_try" in
34212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34213   *) ac_try_echo=$ac_try;;
34214 esac
34215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34216   (eval "$ac_compile") 2>conftest.er1
34217   ac_status=$?
34218   grep -v '^ *+' conftest.er1 >conftest.err
34219   rm -f conftest.er1
34220   cat conftest.err >&5
34221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222   (exit $ac_status); } && {
34223          test -z "$ac_c_werror_flag" ||
34224          test ! -s conftest.err
34225        } && test -s conftest.$ac_objext; then
34226   ac_lo=$ac_mid; break
34227 else
34228   echo "$as_me: failed program was:" >&5
34229 sed 's/^/| /' conftest.$ac_ext >&5
34230
34231         ac_hi=`expr '(' $ac_mid ')' - 1`
34232                         if test $ac_mid -le $ac_hi; then
34233                           ac_lo= ac_hi=
34234                           break
34235                         fi
34236                         ac_mid=`expr 2 '*' $ac_mid`
34237 fi
34238
34239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34240   done
34241 else
34242   echo "$as_me: failed program was:" >&5
34243 sed 's/^/| /' conftest.$ac_ext >&5
34244
34245         ac_lo= ac_hi=
34246 fi
34247
34248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34249 fi
34250
34251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34252 # Binary search between lo and hi bounds.
34253 while test "x$ac_lo" != "x$ac_hi"; do
34254   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34255   cat >conftest.$ac_ext <<_ACEOF
34256 /* confdefs.h.  */
34257 _ACEOF
34258 cat confdefs.h >>conftest.$ac_ext
34259 cat >>conftest.$ac_ext <<_ACEOF
34260 /* end confdefs.h.  */
34261 $ac_includes_default
34262    typedef int ac__type_sizeof_;
34263 int
34264 main ()
34265 {
34266 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34267 test_array [0] = 0
34268
34269   ;
34270   return 0;
34271 }
34272 _ACEOF
34273 rm -f conftest.$ac_objext
34274 if { (ac_try="$ac_compile"
34275 case "(($ac_try" in
34276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34277   *) ac_try_echo=$ac_try;;
34278 esac
34279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34280   (eval "$ac_compile") 2>conftest.er1
34281   ac_status=$?
34282   grep -v '^ *+' conftest.er1 >conftest.err
34283   rm -f conftest.er1
34284   cat conftest.err >&5
34285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34286   (exit $ac_status); } && {
34287          test -z "$ac_c_werror_flag" ||
34288          test ! -s conftest.err
34289        } && test -s conftest.$ac_objext; then
34290   ac_hi=$ac_mid
34291 else
34292   echo "$as_me: failed program was:" >&5
34293 sed 's/^/| /' conftest.$ac_ext >&5
34294
34295         ac_lo=`expr '(' $ac_mid ')' + 1`
34296 fi
34297
34298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34299 done
34300 case $ac_lo in
34301 ?*) ac_cv_sizeof_int=$ac_lo;;
34302 '') if test "$ac_cv_type_int" = yes; then
34303      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34304 See \`config.log' for more details." >&5
34305 echo "$as_me: error: cannot compute sizeof (int)
34306 See \`config.log' for more details." >&2;}
34307    { (exit 77); exit 77; }; }
34308    else
34309      ac_cv_sizeof_int=0
34310    fi ;;
34311 esac
34312 else
34313   cat >conftest.$ac_ext <<_ACEOF
34314 /* confdefs.h.  */
34315 _ACEOF
34316 cat confdefs.h >>conftest.$ac_ext
34317 cat >>conftest.$ac_ext <<_ACEOF
34318 /* end confdefs.h.  */
34319 $ac_includes_default
34320    typedef int ac__type_sizeof_;
34321 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34322 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34323 #include <stdio.h>
34324 #include <stdlib.h>
34325 int
34326 main ()
34327 {
34328
34329   FILE *f = fopen ("conftest.val", "w");
34330   if (! f)
34331     return 1;
34332   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34333     {
34334       long int i = longval ();
34335       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34336         return 1;
34337       fprintf (f, "%ld\n", i);
34338     }
34339   else
34340     {
34341       unsigned long int i = ulongval ();
34342       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34343         return 1;
34344       fprintf (f, "%lu\n", i);
34345     }
34346   return ferror (f) || fclose (f) != 0;
34347
34348   ;
34349   return 0;
34350 }
34351 _ACEOF
34352 rm -f conftest$ac_exeext
34353 if { (ac_try="$ac_link"
34354 case "(($ac_try" in
34355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34356   *) ac_try_echo=$ac_try;;
34357 esac
34358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34359   (eval "$ac_link") 2>&5
34360   ac_status=$?
34361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34362   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34363   { (case "(($ac_try" in
34364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34365   *) ac_try_echo=$ac_try;;
34366 esac
34367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34368   (eval "$ac_try") 2>&5
34369   ac_status=$?
34370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371   (exit $ac_status); }; }; then
34372   ac_cv_sizeof_int=`cat conftest.val`
34373 else
34374   echo "$as_me: program exited with status $ac_status" >&5
34375 echo "$as_me: failed program was:" >&5
34376 sed 's/^/| /' conftest.$ac_ext >&5
34377
34378 ( exit $ac_status )
34379 if test "$ac_cv_type_int" = yes; then
34380      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34381 See \`config.log' for more details." >&5
34382 echo "$as_me: error: cannot compute sizeof (int)
34383 See \`config.log' for more details." >&2;}
34384    { (exit 77); exit 77; }; }
34385    else
34386      ac_cv_sizeof_int=0
34387    fi
34388 fi
34389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34390 fi
34391 rm -f conftest.val
34392 fi
34393 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34394 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34395
34396
34397
34398 cat >>confdefs.h <<_ACEOF
34399 #define SIZEOF_INT $ac_cv_sizeof_int
34400 _ACEOF
34401
34402
34403 { echo "$as_me:$LINENO: checking for long" >&5
34404 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34405 if test "${ac_cv_type_long+set}" = set; then
34406   echo $ECHO_N "(cached) $ECHO_C" >&6
34407 else
34408   cat >conftest.$ac_ext <<_ACEOF
34409 /* confdefs.h.  */
34410 _ACEOF
34411 cat confdefs.h >>conftest.$ac_ext
34412 cat >>conftest.$ac_ext <<_ACEOF
34413 /* end confdefs.h.  */
34414 $ac_includes_default
34415 typedef long ac__type_new_;
34416 int
34417 main ()
34418 {
34419 if ((ac__type_new_ *) 0)
34420   return 0;
34421 if (sizeof (ac__type_new_))
34422   return 0;
34423   ;
34424   return 0;
34425 }
34426 _ACEOF
34427 rm -f conftest.$ac_objext
34428 if { (ac_try="$ac_compile"
34429 case "(($ac_try" in
34430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34431   *) ac_try_echo=$ac_try;;
34432 esac
34433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34434   (eval "$ac_compile") 2>conftest.er1
34435   ac_status=$?
34436   grep -v '^ *+' conftest.er1 >conftest.err
34437   rm -f conftest.er1
34438   cat conftest.err >&5
34439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440   (exit $ac_status); } && {
34441          test -z "$ac_c_werror_flag" ||
34442          test ! -s conftest.err
34443        } && test -s conftest.$ac_objext; then
34444   ac_cv_type_long=yes
34445 else
34446   echo "$as_me: failed program was:" >&5
34447 sed 's/^/| /' conftest.$ac_ext >&5
34448
34449         ac_cv_type_long=no
34450 fi
34451
34452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34453 fi
34454 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34455 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34456
34457 # The cast to long int works around a bug in the HP C Compiler
34458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34460 # This bug is HP SR number 8606223364.
34461 { echo "$as_me:$LINENO: checking size of long" >&5
34462 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34463 if test "${ac_cv_sizeof_long+set}" = set; then
34464   echo $ECHO_N "(cached) $ECHO_C" >&6
34465 else
34466   if test "$cross_compiling" = yes; then
34467   # Depending upon the size, compute the lo and hi bounds.
34468 cat >conftest.$ac_ext <<_ACEOF
34469 /* confdefs.h.  */
34470 _ACEOF
34471 cat confdefs.h >>conftest.$ac_ext
34472 cat >>conftest.$ac_ext <<_ACEOF
34473 /* end confdefs.h.  */
34474 $ac_includes_default
34475    typedef long ac__type_sizeof_;
34476 int
34477 main ()
34478 {
34479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34480 test_array [0] = 0
34481
34482   ;
34483   return 0;
34484 }
34485 _ACEOF
34486 rm -f conftest.$ac_objext
34487 if { (ac_try="$ac_compile"
34488 case "(($ac_try" in
34489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34490   *) ac_try_echo=$ac_try;;
34491 esac
34492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34493   (eval "$ac_compile") 2>conftest.er1
34494   ac_status=$?
34495   grep -v '^ *+' conftest.er1 >conftest.err
34496   rm -f conftest.er1
34497   cat conftest.err >&5
34498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499   (exit $ac_status); } && {
34500          test -z "$ac_c_werror_flag" ||
34501          test ! -s conftest.err
34502        } && test -s conftest.$ac_objext; then
34503   ac_lo=0 ac_mid=0
34504   while :; do
34505     cat >conftest.$ac_ext <<_ACEOF
34506 /* confdefs.h.  */
34507 _ACEOF
34508 cat confdefs.h >>conftest.$ac_ext
34509 cat >>conftest.$ac_ext <<_ACEOF
34510 /* end confdefs.h.  */
34511 $ac_includes_default
34512    typedef long ac__type_sizeof_;
34513 int
34514 main ()
34515 {
34516 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34517 test_array [0] = 0
34518
34519   ;
34520   return 0;
34521 }
34522 _ACEOF
34523 rm -f conftest.$ac_objext
34524 if { (ac_try="$ac_compile"
34525 case "(($ac_try" in
34526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34527   *) ac_try_echo=$ac_try;;
34528 esac
34529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34530   (eval "$ac_compile") 2>conftest.er1
34531   ac_status=$?
34532   grep -v '^ *+' conftest.er1 >conftest.err
34533   rm -f conftest.er1
34534   cat conftest.err >&5
34535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536   (exit $ac_status); } && {
34537          test -z "$ac_c_werror_flag" ||
34538          test ! -s conftest.err
34539        } && test -s conftest.$ac_objext; then
34540   ac_hi=$ac_mid; break
34541 else
34542   echo "$as_me: failed program was:" >&5
34543 sed 's/^/| /' conftest.$ac_ext >&5
34544
34545         ac_lo=`expr $ac_mid + 1`
34546                         if test $ac_lo -le $ac_mid; then
34547                           ac_lo= ac_hi=
34548                           break
34549                         fi
34550                         ac_mid=`expr 2 '*' $ac_mid + 1`
34551 fi
34552
34553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34554   done
34555 else
34556   echo "$as_me: failed program was:" >&5
34557 sed 's/^/| /' conftest.$ac_ext >&5
34558
34559         cat >conftest.$ac_ext <<_ACEOF
34560 /* confdefs.h.  */
34561 _ACEOF
34562 cat confdefs.h >>conftest.$ac_ext
34563 cat >>conftest.$ac_ext <<_ACEOF
34564 /* end confdefs.h.  */
34565 $ac_includes_default
34566    typedef long ac__type_sizeof_;
34567 int
34568 main ()
34569 {
34570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34571 test_array [0] = 0
34572
34573   ;
34574   return 0;
34575 }
34576 _ACEOF
34577 rm -f conftest.$ac_objext
34578 if { (ac_try="$ac_compile"
34579 case "(($ac_try" in
34580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34581   *) ac_try_echo=$ac_try;;
34582 esac
34583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34584   (eval "$ac_compile") 2>conftest.er1
34585   ac_status=$?
34586   grep -v '^ *+' conftest.er1 >conftest.err
34587   rm -f conftest.er1
34588   cat conftest.err >&5
34589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34590   (exit $ac_status); } && {
34591          test -z "$ac_c_werror_flag" ||
34592          test ! -s conftest.err
34593        } && test -s conftest.$ac_objext; then
34594   ac_hi=-1 ac_mid=-1
34595   while :; do
34596     cat >conftest.$ac_ext <<_ACEOF
34597 /* confdefs.h.  */
34598 _ACEOF
34599 cat confdefs.h >>conftest.$ac_ext
34600 cat >>conftest.$ac_ext <<_ACEOF
34601 /* end confdefs.h.  */
34602 $ac_includes_default
34603    typedef long ac__type_sizeof_;
34604 int
34605 main ()
34606 {
34607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34608 test_array [0] = 0
34609
34610   ;
34611   return 0;
34612 }
34613 _ACEOF
34614 rm -f conftest.$ac_objext
34615 if { (ac_try="$ac_compile"
34616 case "(($ac_try" in
34617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34618   *) ac_try_echo=$ac_try;;
34619 esac
34620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34621   (eval "$ac_compile") 2>conftest.er1
34622   ac_status=$?
34623   grep -v '^ *+' conftest.er1 >conftest.err
34624   rm -f conftest.er1
34625   cat conftest.err >&5
34626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34627   (exit $ac_status); } && {
34628          test -z "$ac_c_werror_flag" ||
34629          test ! -s conftest.err
34630        } && test -s conftest.$ac_objext; then
34631   ac_lo=$ac_mid; break
34632 else
34633   echo "$as_me: failed program was:" >&5
34634 sed 's/^/| /' conftest.$ac_ext >&5
34635
34636         ac_hi=`expr '(' $ac_mid ')' - 1`
34637                         if test $ac_mid -le $ac_hi; then
34638                           ac_lo= ac_hi=
34639                           break
34640                         fi
34641                         ac_mid=`expr 2 '*' $ac_mid`
34642 fi
34643
34644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34645   done
34646 else
34647   echo "$as_me: failed program was:" >&5
34648 sed 's/^/| /' conftest.$ac_ext >&5
34649
34650         ac_lo= ac_hi=
34651 fi
34652
34653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34654 fi
34655
34656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34657 # Binary search between lo and hi bounds.
34658 while test "x$ac_lo" != "x$ac_hi"; do
34659   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34660   cat >conftest.$ac_ext <<_ACEOF
34661 /* confdefs.h.  */
34662 _ACEOF
34663 cat confdefs.h >>conftest.$ac_ext
34664 cat >>conftest.$ac_ext <<_ACEOF
34665 /* end confdefs.h.  */
34666 $ac_includes_default
34667    typedef long ac__type_sizeof_;
34668 int
34669 main ()
34670 {
34671 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34672 test_array [0] = 0
34673
34674   ;
34675   return 0;
34676 }
34677 _ACEOF
34678 rm -f conftest.$ac_objext
34679 if { (ac_try="$ac_compile"
34680 case "(($ac_try" in
34681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34682   *) ac_try_echo=$ac_try;;
34683 esac
34684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34685   (eval "$ac_compile") 2>conftest.er1
34686   ac_status=$?
34687   grep -v '^ *+' conftest.er1 >conftest.err
34688   rm -f conftest.er1
34689   cat conftest.err >&5
34690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691   (exit $ac_status); } && {
34692          test -z "$ac_c_werror_flag" ||
34693          test ! -s conftest.err
34694        } && test -s conftest.$ac_objext; then
34695   ac_hi=$ac_mid
34696 else
34697   echo "$as_me: failed program was:" >&5
34698 sed 's/^/| /' conftest.$ac_ext >&5
34699
34700         ac_lo=`expr '(' $ac_mid ')' + 1`
34701 fi
34702
34703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34704 done
34705 case $ac_lo in
34706 ?*) ac_cv_sizeof_long=$ac_lo;;
34707 '') if test "$ac_cv_type_long" = yes; then
34708      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34709 See \`config.log' for more details." >&5
34710 echo "$as_me: error: cannot compute sizeof (long)
34711 See \`config.log' for more details." >&2;}
34712    { (exit 77); exit 77; }; }
34713    else
34714      ac_cv_sizeof_long=0
34715    fi ;;
34716 esac
34717 else
34718   cat >conftest.$ac_ext <<_ACEOF
34719 /* confdefs.h.  */
34720 _ACEOF
34721 cat confdefs.h >>conftest.$ac_ext
34722 cat >>conftest.$ac_ext <<_ACEOF
34723 /* end confdefs.h.  */
34724 $ac_includes_default
34725    typedef long ac__type_sizeof_;
34726 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34727 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34728 #include <stdio.h>
34729 #include <stdlib.h>
34730 int
34731 main ()
34732 {
34733
34734   FILE *f = fopen ("conftest.val", "w");
34735   if (! f)
34736     return 1;
34737   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34738     {
34739       long int i = longval ();
34740       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34741         return 1;
34742       fprintf (f, "%ld\n", i);
34743     }
34744   else
34745     {
34746       unsigned long int i = ulongval ();
34747       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34748         return 1;
34749       fprintf (f, "%lu\n", i);
34750     }
34751   return ferror (f) || fclose (f) != 0;
34752
34753   ;
34754   return 0;
34755 }
34756 _ACEOF
34757 rm -f conftest$ac_exeext
34758 if { (ac_try="$ac_link"
34759 case "(($ac_try" in
34760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34761   *) ac_try_echo=$ac_try;;
34762 esac
34763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34764   (eval "$ac_link") 2>&5
34765   ac_status=$?
34766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34768   { (case "(($ac_try" in
34769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34770   *) ac_try_echo=$ac_try;;
34771 esac
34772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34773   (eval "$ac_try") 2>&5
34774   ac_status=$?
34775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776   (exit $ac_status); }; }; then
34777   ac_cv_sizeof_long=`cat conftest.val`
34778 else
34779   echo "$as_me: program exited with status $ac_status" >&5
34780 echo "$as_me: failed program was:" >&5
34781 sed 's/^/| /' conftest.$ac_ext >&5
34782
34783 ( exit $ac_status )
34784 if test "$ac_cv_type_long" = yes; then
34785      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34786 See \`config.log' for more details." >&5
34787 echo "$as_me: error: cannot compute sizeof (long)
34788 See \`config.log' for more details." >&2;}
34789    { (exit 77); exit 77; }; }
34790    else
34791      ac_cv_sizeof_long=0
34792    fi
34793 fi
34794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34795 fi
34796 rm -f conftest.val
34797 fi
34798 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34799 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34800
34801
34802
34803 cat >>confdefs.h <<_ACEOF
34804 #define SIZEOF_LONG $ac_cv_sizeof_long
34805 _ACEOF
34806
34807
34808 { echo "$as_me:$LINENO: checking for long long" >&5
34809 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34810 if test "${ac_cv_type_long_long+set}" = set; then
34811   echo $ECHO_N "(cached) $ECHO_C" >&6
34812 else
34813   cat >conftest.$ac_ext <<_ACEOF
34814 /* confdefs.h.  */
34815 _ACEOF
34816 cat confdefs.h >>conftest.$ac_ext
34817 cat >>conftest.$ac_ext <<_ACEOF
34818 /* end confdefs.h.  */
34819 $ac_includes_default
34820 typedef long long ac__type_new_;
34821 int
34822 main ()
34823 {
34824 if ((ac__type_new_ *) 0)
34825   return 0;
34826 if (sizeof (ac__type_new_))
34827   return 0;
34828   ;
34829   return 0;
34830 }
34831 _ACEOF
34832 rm -f conftest.$ac_objext
34833 if { (ac_try="$ac_compile"
34834 case "(($ac_try" in
34835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34836   *) ac_try_echo=$ac_try;;
34837 esac
34838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34839   (eval "$ac_compile") 2>conftest.er1
34840   ac_status=$?
34841   grep -v '^ *+' conftest.er1 >conftest.err
34842   rm -f conftest.er1
34843   cat conftest.err >&5
34844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845   (exit $ac_status); } && {
34846          test -z "$ac_c_werror_flag" ||
34847          test ! -s conftest.err
34848        } && test -s conftest.$ac_objext; then
34849   ac_cv_type_long_long=yes
34850 else
34851   echo "$as_me: failed program was:" >&5
34852 sed 's/^/| /' conftest.$ac_ext >&5
34853
34854         ac_cv_type_long_long=no
34855 fi
34856
34857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34858 fi
34859 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34860 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34861
34862 # The cast to long int works around a bug in the HP C Compiler
34863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34865 # This bug is HP SR number 8606223364.
34866 { echo "$as_me:$LINENO: checking size of long long" >&5
34867 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34868 if test "${ac_cv_sizeof_long_long+set}" = set; then
34869   echo $ECHO_N "(cached) $ECHO_C" >&6
34870 else
34871   if test "$cross_compiling" = yes; then
34872   # Depending upon the size, compute the lo and hi bounds.
34873 cat >conftest.$ac_ext <<_ACEOF
34874 /* confdefs.h.  */
34875 _ACEOF
34876 cat confdefs.h >>conftest.$ac_ext
34877 cat >>conftest.$ac_ext <<_ACEOF
34878 /* end confdefs.h.  */
34879 $ac_includes_default
34880    typedef long long ac__type_sizeof_;
34881 int
34882 main ()
34883 {
34884 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34885 test_array [0] = 0
34886
34887   ;
34888   return 0;
34889 }
34890 _ACEOF
34891 rm -f conftest.$ac_objext
34892 if { (ac_try="$ac_compile"
34893 case "(($ac_try" in
34894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34895   *) ac_try_echo=$ac_try;;
34896 esac
34897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34898   (eval "$ac_compile") 2>conftest.er1
34899   ac_status=$?
34900   grep -v '^ *+' conftest.er1 >conftest.err
34901   rm -f conftest.er1
34902   cat conftest.err >&5
34903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34904   (exit $ac_status); } && {
34905          test -z "$ac_c_werror_flag" ||
34906          test ! -s conftest.err
34907        } && test -s conftest.$ac_objext; then
34908   ac_lo=0 ac_mid=0
34909   while :; do
34910     cat >conftest.$ac_ext <<_ACEOF
34911 /* confdefs.h.  */
34912 _ACEOF
34913 cat confdefs.h >>conftest.$ac_ext
34914 cat >>conftest.$ac_ext <<_ACEOF
34915 /* end confdefs.h.  */
34916 $ac_includes_default
34917    typedef long long ac__type_sizeof_;
34918 int
34919 main ()
34920 {
34921 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34922 test_array [0] = 0
34923
34924   ;
34925   return 0;
34926 }
34927 _ACEOF
34928 rm -f conftest.$ac_objext
34929 if { (ac_try="$ac_compile"
34930 case "(($ac_try" in
34931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34932   *) ac_try_echo=$ac_try;;
34933 esac
34934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34935   (eval "$ac_compile") 2>conftest.er1
34936   ac_status=$?
34937   grep -v '^ *+' conftest.er1 >conftest.err
34938   rm -f conftest.er1
34939   cat conftest.err >&5
34940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941   (exit $ac_status); } && {
34942          test -z "$ac_c_werror_flag" ||
34943          test ! -s conftest.err
34944        } && test -s conftest.$ac_objext; then
34945   ac_hi=$ac_mid; break
34946 else
34947   echo "$as_me: failed program was:" >&5
34948 sed 's/^/| /' conftest.$ac_ext >&5
34949
34950         ac_lo=`expr $ac_mid + 1`
34951                         if test $ac_lo -le $ac_mid; then
34952                           ac_lo= ac_hi=
34953                           break
34954                         fi
34955                         ac_mid=`expr 2 '*' $ac_mid + 1`
34956 fi
34957
34958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34959   done
34960 else
34961   echo "$as_me: failed program was:" >&5
34962 sed 's/^/| /' conftest.$ac_ext >&5
34963
34964         cat >conftest.$ac_ext <<_ACEOF
34965 /* confdefs.h.  */
34966 _ACEOF
34967 cat confdefs.h >>conftest.$ac_ext
34968 cat >>conftest.$ac_ext <<_ACEOF
34969 /* end confdefs.h.  */
34970 $ac_includes_default
34971    typedef long long ac__type_sizeof_;
34972 int
34973 main ()
34974 {
34975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34976 test_array [0] = 0
34977
34978   ;
34979   return 0;
34980 }
34981 _ACEOF
34982 rm -f conftest.$ac_objext
34983 if { (ac_try="$ac_compile"
34984 case "(($ac_try" in
34985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34986   *) ac_try_echo=$ac_try;;
34987 esac
34988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34989   (eval "$ac_compile") 2>conftest.er1
34990   ac_status=$?
34991   grep -v '^ *+' conftest.er1 >conftest.err
34992   rm -f conftest.er1
34993   cat conftest.err >&5
34994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995   (exit $ac_status); } && {
34996          test -z "$ac_c_werror_flag" ||
34997          test ! -s conftest.err
34998        } && test -s conftest.$ac_objext; then
34999   ac_hi=-1 ac_mid=-1
35000   while :; do
35001     cat >conftest.$ac_ext <<_ACEOF
35002 /* confdefs.h.  */
35003 _ACEOF
35004 cat confdefs.h >>conftest.$ac_ext
35005 cat >>conftest.$ac_ext <<_ACEOF
35006 /* end confdefs.h.  */
35007 $ac_includes_default
35008    typedef long long ac__type_sizeof_;
35009 int
35010 main ()
35011 {
35012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35013 test_array [0] = 0
35014
35015   ;
35016   return 0;
35017 }
35018 _ACEOF
35019 rm -f conftest.$ac_objext
35020 if { (ac_try="$ac_compile"
35021 case "(($ac_try" in
35022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35023   *) ac_try_echo=$ac_try;;
35024 esac
35025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35026   (eval "$ac_compile") 2>conftest.er1
35027   ac_status=$?
35028   grep -v '^ *+' conftest.er1 >conftest.err
35029   rm -f conftest.er1
35030   cat conftest.err >&5
35031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032   (exit $ac_status); } && {
35033          test -z "$ac_c_werror_flag" ||
35034          test ! -s conftest.err
35035        } && test -s conftest.$ac_objext; then
35036   ac_lo=$ac_mid; break
35037 else
35038   echo "$as_me: failed program was:" >&5
35039 sed 's/^/| /' conftest.$ac_ext >&5
35040
35041         ac_hi=`expr '(' $ac_mid ')' - 1`
35042                         if test $ac_mid -le $ac_hi; then
35043                           ac_lo= ac_hi=
35044                           break
35045                         fi
35046                         ac_mid=`expr 2 '*' $ac_mid`
35047 fi
35048
35049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35050   done
35051 else
35052   echo "$as_me: failed program was:" >&5
35053 sed 's/^/| /' conftest.$ac_ext >&5
35054
35055         ac_lo= ac_hi=
35056 fi
35057
35058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35059 fi
35060
35061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35062 # Binary search between lo and hi bounds.
35063 while test "x$ac_lo" != "x$ac_hi"; do
35064   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35065   cat >conftest.$ac_ext <<_ACEOF
35066 /* confdefs.h.  */
35067 _ACEOF
35068 cat confdefs.h >>conftest.$ac_ext
35069 cat >>conftest.$ac_ext <<_ACEOF
35070 /* end confdefs.h.  */
35071 $ac_includes_default
35072    typedef long long ac__type_sizeof_;
35073 int
35074 main ()
35075 {
35076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35077 test_array [0] = 0
35078
35079   ;
35080   return 0;
35081 }
35082 _ACEOF
35083 rm -f conftest.$ac_objext
35084 if { (ac_try="$ac_compile"
35085 case "(($ac_try" in
35086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35087   *) ac_try_echo=$ac_try;;
35088 esac
35089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35090   (eval "$ac_compile") 2>conftest.er1
35091   ac_status=$?
35092   grep -v '^ *+' conftest.er1 >conftest.err
35093   rm -f conftest.er1
35094   cat conftest.err >&5
35095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096   (exit $ac_status); } && {
35097          test -z "$ac_c_werror_flag" ||
35098          test ! -s conftest.err
35099        } && test -s conftest.$ac_objext; then
35100   ac_hi=$ac_mid
35101 else
35102   echo "$as_me: failed program was:" >&5
35103 sed 's/^/| /' conftest.$ac_ext >&5
35104
35105         ac_lo=`expr '(' $ac_mid ')' + 1`
35106 fi
35107
35108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35109 done
35110 case $ac_lo in
35111 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35112 '') if test "$ac_cv_type_long_long" = yes; then
35113      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35114 See \`config.log' for more details." >&5
35115 echo "$as_me: error: cannot compute sizeof (long long)
35116 See \`config.log' for more details." >&2;}
35117    { (exit 77); exit 77; }; }
35118    else
35119      ac_cv_sizeof_long_long=0
35120    fi ;;
35121 esac
35122 else
35123   cat >conftest.$ac_ext <<_ACEOF
35124 /* confdefs.h.  */
35125 _ACEOF
35126 cat confdefs.h >>conftest.$ac_ext
35127 cat >>conftest.$ac_ext <<_ACEOF
35128 /* end confdefs.h.  */
35129 $ac_includes_default
35130    typedef long long ac__type_sizeof_;
35131 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35132 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35133 #include <stdio.h>
35134 #include <stdlib.h>
35135 int
35136 main ()
35137 {
35138
35139   FILE *f = fopen ("conftest.val", "w");
35140   if (! f)
35141     return 1;
35142   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35143     {
35144       long int i = longval ();
35145       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35146         return 1;
35147       fprintf (f, "%ld\n", i);
35148     }
35149   else
35150     {
35151       unsigned long int i = ulongval ();
35152       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35153         return 1;
35154       fprintf (f, "%lu\n", i);
35155     }
35156   return ferror (f) || fclose (f) != 0;
35157
35158   ;
35159   return 0;
35160 }
35161 _ACEOF
35162 rm -f conftest$ac_exeext
35163 if { (ac_try="$ac_link"
35164 case "(($ac_try" in
35165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35166   *) ac_try_echo=$ac_try;;
35167 esac
35168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35169   (eval "$ac_link") 2>&5
35170   ac_status=$?
35171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35173   { (case "(($ac_try" in
35174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35175   *) ac_try_echo=$ac_try;;
35176 esac
35177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35178   (eval "$ac_try") 2>&5
35179   ac_status=$?
35180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181   (exit $ac_status); }; }; then
35182   ac_cv_sizeof_long_long=`cat conftest.val`
35183 else
35184   echo "$as_me: program exited with status $ac_status" >&5
35185 echo "$as_me: failed program was:" >&5
35186 sed 's/^/| /' conftest.$ac_ext >&5
35187
35188 ( exit $ac_status )
35189 if test "$ac_cv_type_long_long" = yes; then
35190      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35191 See \`config.log' for more details." >&5
35192 echo "$as_me: error: cannot compute sizeof (long long)
35193 See \`config.log' for more details." >&2;}
35194    { (exit 77); exit 77; }; }
35195    else
35196      ac_cv_sizeof_long_long=0
35197    fi
35198 fi
35199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35200 fi
35201 rm -f conftest.val
35202 fi
35203 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35204 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35205
35206
35207
35208 cat >>confdefs.h <<_ACEOF
35209 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35210 _ACEOF
35211
35212
35213 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35214 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35215 if test "${ac_cv_type_wchar_t+set}" = set; then
35216   echo $ECHO_N "(cached) $ECHO_C" >&6
35217 else
35218   cat >conftest.$ac_ext <<_ACEOF
35219 /* confdefs.h.  */
35220 _ACEOF
35221 cat confdefs.h >>conftest.$ac_ext
35222 cat >>conftest.$ac_ext <<_ACEOF
35223 /* end confdefs.h.  */
35224 $ac_includes_default
35225 typedef wchar_t ac__type_new_;
35226 int
35227 main ()
35228 {
35229 if ((ac__type_new_ *) 0)
35230   return 0;
35231 if (sizeof (ac__type_new_))
35232   return 0;
35233   ;
35234   return 0;
35235 }
35236 _ACEOF
35237 rm -f conftest.$ac_objext
35238 if { (ac_try="$ac_compile"
35239 case "(($ac_try" in
35240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35241   *) ac_try_echo=$ac_try;;
35242 esac
35243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35244   (eval "$ac_compile") 2>conftest.er1
35245   ac_status=$?
35246   grep -v '^ *+' conftest.er1 >conftest.err
35247   rm -f conftest.er1
35248   cat conftest.err >&5
35249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250   (exit $ac_status); } && {
35251          test -z "$ac_c_werror_flag" ||
35252          test ! -s conftest.err
35253        } && test -s conftest.$ac_objext; then
35254   ac_cv_type_wchar_t=yes
35255 else
35256   echo "$as_me: failed program was:" >&5
35257 sed 's/^/| /' conftest.$ac_ext >&5
35258
35259         ac_cv_type_wchar_t=no
35260 fi
35261
35262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35263 fi
35264 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35265 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35266
35267 # The cast to long int works around a bug in the HP C Compiler
35268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35270 # This bug is HP SR number 8606223364.
35271 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35272 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35273 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35274   echo $ECHO_N "(cached) $ECHO_C" >&6
35275 else
35276   if test "$cross_compiling" = yes; then
35277   # Depending upon the size, compute the lo and hi bounds.
35278 cat >conftest.$ac_ext <<_ACEOF
35279 /* confdefs.h.  */
35280 _ACEOF
35281 cat confdefs.h >>conftest.$ac_ext
35282 cat >>conftest.$ac_ext <<_ACEOF
35283 /* end confdefs.h.  */
35284 $ac_includes_default
35285    typedef wchar_t ac__type_sizeof_;
35286 int
35287 main ()
35288 {
35289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35290 test_array [0] = 0
35291
35292   ;
35293   return 0;
35294 }
35295 _ACEOF
35296 rm -f conftest.$ac_objext
35297 if { (ac_try="$ac_compile"
35298 case "(($ac_try" in
35299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35300   *) ac_try_echo=$ac_try;;
35301 esac
35302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35303   (eval "$ac_compile") 2>conftest.er1
35304   ac_status=$?
35305   grep -v '^ *+' conftest.er1 >conftest.err
35306   rm -f conftest.er1
35307   cat conftest.err >&5
35308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309   (exit $ac_status); } && {
35310          test -z "$ac_c_werror_flag" ||
35311          test ! -s conftest.err
35312        } && test -s conftest.$ac_objext; then
35313   ac_lo=0 ac_mid=0
35314   while :; do
35315     cat >conftest.$ac_ext <<_ACEOF
35316 /* confdefs.h.  */
35317 _ACEOF
35318 cat confdefs.h >>conftest.$ac_ext
35319 cat >>conftest.$ac_ext <<_ACEOF
35320 /* end confdefs.h.  */
35321 $ac_includes_default
35322    typedef wchar_t ac__type_sizeof_;
35323 int
35324 main ()
35325 {
35326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35327 test_array [0] = 0
35328
35329   ;
35330   return 0;
35331 }
35332 _ACEOF
35333 rm -f conftest.$ac_objext
35334 if { (ac_try="$ac_compile"
35335 case "(($ac_try" in
35336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35337   *) ac_try_echo=$ac_try;;
35338 esac
35339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35340   (eval "$ac_compile") 2>conftest.er1
35341   ac_status=$?
35342   grep -v '^ *+' conftest.er1 >conftest.err
35343   rm -f conftest.er1
35344   cat conftest.err >&5
35345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35346   (exit $ac_status); } && {
35347          test -z "$ac_c_werror_flag" ||
35348          test ! -s conftest.err
35349        } && test -s conftest.$ac_objext; then
35350   ac_hi=$ac_mid; break
35351 else
35352   echo "$as_me: failed program was:" >&5
35353 sed 's/^/| /' conftest.$ac_ext >&5
35354
35355         ac_lo=`expr $ac_mid + 1`
35356                         if test $ac_lo -le $ac_mid; then
35357                           ac_lo= ac_hi=
35358                           break
35359                         fi
35360                         ac_mid=`expr 2 '*' $ac_mid + 1`
35361 fi
35362
35363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35364   done
35365 else
35366   echo "$as_me: failed program was:" >&5
35367 sed 's/^/| /' conftest.$ac_ext >&5
35368
35369         cat >conftest.$ac_ext <<_ACEOF
35370 /* confdefs.h.  */
35371 _ACEOF
35372 cat confdefs.h >>conftest.$ac_ext
35373 cat >>conftest.$ac_ext <<_ACEOF
35374 /* end confdefs.h.  */
35375 $ac_includes_default
35376    typedef wchar_t ac__type_sizeof_;
35377 int
35378 main ()
35379 {
35380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35381 test_array [0] = 0
35382
35383   ;
35384   return 0;
35385 }
35386 _ACEOF
35387 rm -f conftest.$ac_objext
35388 if { (ac_try="$ac_compile"
35389 case "(($ac_try" in
35390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35391   *) ac_try_echo=$ac_try;;
35392 esac
35393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35394   (eval "$ac_compile") 2>conftest.er1
35395   ac_status=$?
35396   grep -v '^ *+' conftest.er1 >conftest.err
35397   rm -f conftest.er1
35398   cat conftest.err >&5
35399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35400   (exit $ac_status); } && {
35401          test -z "$ac_c_werror_flag" ||
35402          test ! -s conftest.err
35403        } && test -s conftest.$ac_objext; then
35404   ac_hi=-1 ac_mid=-1
35405   while :; do
35406     cat >conftest.$ac_ext <<_ACEOF
35407 /* confdefs.h.  */
35408 _ACEOF
35409 cat confdefs.h >>conftest.$ac_ext
35410 cat >>conftest.$ac_ext <<_ACEOF
35411 /* end confdefs.h.  */
35412 $ac_includes_default
35413    typedef wchar_t ac__type_sizeof_;
35414 int
35415 main ()
35416 {
35417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35418 test_array [0] = 0
35419
35420   ;
35421   return 0;
35422 }
35423 _ACEOF
35424 rm -f conftest.$ac_objext
35425 if { (ac_try="$ac_compile"
35426 case "(($ac_try" in
35427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35428   *) ac_try_echo=$ac_try;;
35429 esac
35430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35431   (eval "$ac_compile") 2>conftest.er1
35432   ac_status=$?
35433   grep -v '^ *+' conftest.er1 >conftest.err
35434   rm -f conftest.er1
35435   cat conftest.err >&5
35436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35437   (exit $ac_status); } && {
35438          test -z "$ac_c_werror_flag" ||
35439          test ! -s conftest.err
35440        } && test -s conftest.$ac_objext; then
35441   ac_lo=$ac_mid; break
35442 else
35443   echo "$as_me: failed program was:" >&5
35444 sed 's/^/| /' conftest.$ac_ext >&5
35445
35446         ac_hi=`expr '(' $ac_mid ')' - 1`
35447                         if test $ac_mid -le $ac_hi; then
35448                           ac_lo= ac_hi=
35449                           break
35450                         fi
35451                         ac_mid=`expr 2 '*' $ac_mid`
35452 fi
35453
35454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35455   done
35456 else
35457   echo "$as_me: failed program was:" >&5
35458 sed 's/^/| /' conftest.$ac_ext >&5
35459
35460         ac_lo= ac_hi=
35461 fi
35462
35463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35464 fi
35465
35466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35467 # Binary search between lo and hi bounds.
35468 while test "x$ac_lo" != "x$ac_hi"; do
35469   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35470   cat >conftest.$ac_ext <<_ACEOF
35471 /* confdefs.h.  */
35472 _ACEOF
35473 cat confdefs.h >>conftest.$ac_ext
35474 cat >>conftest.$ac_ext <<_ACEOF
35475 /* end confdefs.h.  */
35476 $ac_includes_default
35477    typedef wchar_t ac__type_sizeof_;
35478 int
35479 main ()
35480 {
35481 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35482 test_array [0] = 0
35483
35484   ;
35485   return 0;
35486 }
35487 _ACEOF
35488 rm -f conftest.$ac_objext
35489 if { (ac_try="$ac_compile"
35490 case "(($ac_try" in
35491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35492   *) ac_try_echo=$ac_try;;
35493 esac
35494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35495   (eval "$ac_compile") 2>conftest.er1
35496   ac_status=$?
35497   grep -v '^ *+' conftest.er1 >conftest.err
35498   rm -f conftest.er1
35499   cat conftest.err >&5
35500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501   (exit $ac_status); } && {
35502          test -z "$ac_c_werror_flag" ||
35503          test ! -s conftest.err
35504        } && test -s conftest.$ac_objext; then
35505   ac_hi=$ac_mid
35506 else
35507   echo "$as_me: failed program was:" >&5
35508 sed 's/^/| /' conftest.$ac_ext >&5
35509
35510         ac_lo=`expr '(' $ac_mid ')' + 1`
35511 fi
35512
35513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35514 done
35515 case $ac_lo in
35516 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35517 '') if test "$ac_cv_type_wchar_t" = yes; then
35518      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35519 See \`config.log' for more details." >&5
35520 echo "$as_me: error: cannot compute sizeof (wchar_t)
35521 See \`config.log' for more details." >&2;}
35522    { (exit 77); exit 77; }; }
35523    else
35524      ac_cv_sizeof_wchar_t=0
35525    fi ;;
35526 esac
35527 else
35528   cat >conftest.$ac_ext <<_ACEOF
35529 /* confdefs.h.  */
35530 _ACEOF
35531 cat confdefs.h >>conftest.$ac_ext
35532 cat >>conftest.$ac_ext <<_ACEOF
35533 /* end confdefs.h.  */
35534 $ac_includes_default
35535    typedef wchar_t ac__type_sizeof_;
35536 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35537 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35538 #include <stdio.h>
35539 #include <stdlib.h>
35540 int
35541 main ()
35542 {
35543
35544   FILE *f = fopen ("conftest.val", "w");
35545   if (! f)
35546     return 1;
35547   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35548     {
35549       long int i = longval ();
35550       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35551         return 1;
35552       fprintf (f, "%ld\n", i);
35553     }
35554   else
35555     {
35556       unsigned long int i = ulongval ();
35557       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35558         return 1;
35559       fprintf (f, "%lu\n", i);
35560     }
35561   return ferror (f) || fclose (f) != 0;
35562
35563   ;
35564   return 0;
35565 }
35566 _ACEOF
35567 rm -f conftest$ac_exeext
35568 if { (ac_try="$ac_link"
35569 case "(($ac_try" in
35570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35571   *) ac_try_echo=$ac_try;;
35572 esac
35573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35574   (eval "$ac_link") 2>&5
35575   ac_status=$?
35576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35578   { (case "(($ac_try" in
35579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35580   *) ac_try_echo=$ac_try;;
35581 esac
35582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35583   (eval "$ac_try") 2>&5
35584   ac_status=$?
35585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586   (exit $ac_status); }; }; then
35587   ac_cv_sizeof_wchar_t=`cat conftest.val`
35588 else
35589   echo "$as_me: program exited with status $ac_status" >&5
35590 echo "$as_me: failed program was:" >&5
35591 sed 's/^/| /' conftest.$ac_ext >&5
35592
35593 ( exit $ac_status )
35594 if test "$ac_cv_type_wchar_t" = yes; then
35595      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35596 See \`config.log' for more details." >&5
35597 echo "$as_me: error: cannot compute sizeof (wchar_t)
35598 See \`config.log' for more details." >&2;}
35599    { (exit 77); exit 77; }; }
35600    else
35601      ac_cv_sizeof_wchar_t=0
35602    fi
35603 fi
35604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35605 fi
35606 rm -f conftest.val
35607 fi
35608 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35609 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35610
35611
35612
35613 cat >>confdefs.h <<_ACEOF
35614 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35615 _ACEOF
35616
35617
35618
35619 if test "$ac_cv_sizeof_int" -lt 4 ; then
35620         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35621 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35622
35623
35624 cat >>confdefs.h <<\_ACEOF
35625 #define LBER_INT_T long
35626 _ACEOF
35627
35628 else
35629
35630 cat >>confdefs.h <<\_ACEOF
35631 #define LBER_INT_T int
35632 _ACEOF
35633
35634 fi
35635
35636
35637 cat >>confdefs.h <<\_ACEOF
35638 #define LBER_LEN_T long
35639 _ACEOF
35640
35641
35642 cat >>confdefs.h <<\_ACEOF
35643 #define LBER_SOCKET_T int
35644 _ACEOF
35645
35646
35647 cat >>confdefs.h <<\_ACEOF
35648 #define LBER_TAG_T long
35649 _ACEOF
35650
35651
35652 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35653         if test $ac_cv_sizeof_long_long -gt 4 ; then
35654                 ol_with_mp=longlong
35655
35656 cat >>confdefs.h <<\_ACEOF
35657 #define USE_MP_LONG_LONG 1
35658 _ACEOF
35659
35660         elif test $ol_with_mp = longlong ; then
35661                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35662 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35663    { (exit 1); exit 1; }; }
35664         fi
35665 fi
35666 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35667         if test $ac_cv_sizeof_long -gt 4 ; then
35668                 ol_with_mp=long
35669
35670 cat >>confdefs.h <<\_ACEOF
35671 #define USE_MP_LONG 1
35672 _ACEOF
35673
35674         elif test $ol_with_mp = long ; then
35675                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35676 echo "$as_me: error: long unusable for multiple precision" >&2;}
35677    { (exit 1); exit 1; }; }
35678         fi
35679 fi
35680 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35681
35682 for ac_header in openssl/bn.h
35683 do
35684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35686   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35689   echo $ECHO_N "(cached) $ECHO_C" >&6
35690 fi
35691 ac_res=`eval echo '${'$as_ac_Header'}'`
35692                { echo "$as_me:$LINENO: result: $ac_res" >&5
35693 echo "${ECHO_T}$ac_res" >&6; }
35694 else
35695   # Is the header compilable?
35696 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35698 cat >conftest.$ac_ext <<_ACEOF
35699 /* confdefs.h.  */
35700 _ACEOF
35701 cat confdefs.h >>conftest.$ac_ext
35702 cat >>conftest.$ac_ext <<_ACEOF
35703 /* end confdefs.h.  */
35704 $ac_includes_default
35705 #include <$ac_header>
35706 _ACEOF
35707 rm -f conftest.$ac_objext
35708 if { (ac_try="$ac_compile"
35709 case "(($ac_try" in
35710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35711   *) ac_try_echo=$ac_try;;
35712 esac
35713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35714   (eval "$ac_compile") 2>conftest.er1
35715   ac_status=$?
35716   grep -v '^ *+' conftest.er1 >conftest.err
35717   rm -f conftest.er1
35718   cat conftest.err >&5
35719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35720   (exit $ac_status); } && {
35721          test -z "$ac_c_werror_flag" ||
35722          test ! -s conftest.err
35723        } && test -s conftest.$ac_objext; then
35724   ac_header_compiler=yes
35725 else
35726   echo "$as_me: failed program was:" >&5
35727 sed 's/^/| /' conftest.$ac_ext >&5
35728
35729         ac_header_compiler=no
35730 fi
35731
35732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35734 echo "${ECHO_T}$ac_header_compiler" >&6; }
35735
35736 # Is the header present?
35737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35739 cat >conftest.$ac_ext <<_ACEOF
35740 /* confdefs.h.  */
35741 _ACEOF
35742 cat confdefs.h >>conftest.$ac_ext
35743 cat >>conftest.$ac_ext <<_ACEOF
35744 /* end confdefs.h.  */
35745 #include <$ac_header>
35746 _ACEOF
35747 if { (ac_try="$ac_cpp conftest.$ac_ext"
35748 case "(($ac_try" in
35749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35750   *) ac_try_echo=$ac_try;;
35751 esac
35752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35754   ac_status=$?
35755   grep -v '^ *+' conftest.er1 >conftest.err
35756   rm -f conftest.er1
35757   cat conftest.err >&5
35758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759   (exit $ac_status); } >/dev/null && {
35760          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35761          test ! -s conftest.err
35762        }; then
35763   ac_header_preproc=yes
35764 else
35765   echo "$as_me: failed program was:" >&5
35766 sed 's/^/| /' conftest.$ac_ext >&5
35767
35768   ac_header_preproc=no
35769 fi
35770
35771 rm -f conftest.err conftest.$ac_ext
35772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35773 echo "${ECHO_T}$ac_header_preproc" >&6; }
35774
35775 # So?  What about this header?
35776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35777   yes:no: )
35778     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35782     ac_header_preproc=yes
35783     ;;
35784   no:yes:* )
35785     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35787     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35788 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35789     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35791     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35792 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35795     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35797     ( cat <<\_ASBOX
35798 ## --------------------------------------------- ##
35799 ## Report this to <http://www.openldap.org/its/> ##
35800 ## --------------------------------------------- ##
35801 _ASBOX
35802      ) | sed "s/^/$as_me: WARNING:     /" >&2
35803     ;;
35804 esac
35805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35808   echo $ECHO_N "(cached) $ECHO_C" >&6
35809 else
35810   eval "$as_ac_Header=\$ac_header_preproc"
35811 fi
35812 ac_res=`eval echo '${'$as_ac_Header'}'`
35813                { echo "$as_me:$LINENO: result: $ac_res" >&5
35814 echo "${ECHO_T}$ac_res" >&6; }
35815
35816 fi
35817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35818   cat >>confdefs.h <<_ACEOF
35819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35820 _ACEOF
35821
35822 fi
35823
35824 done
35825
35826
35827 for ac_header in openssl/crypto.h
35828 do
35829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35831   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35834   echo $ECHO_N "(cached) $ECHO_C" >&6
35835 fi
35836 ac_res=`eval echo '${'$as_ac_Header'}'`
35837                { echo "$as_me:$LINENO: result: $ac_res" >&5
35838 echo "${ECHO_T}$ac_res" >&6; }
35839 else
35840   # Is the header compilable?
35841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35843 cat >conftest.$ac_ext <<_ACEOF
35844 /* confdefs.h.  */
35845 _ACEOF
35846 cat confdefs.h >>conftest.$ac_ext
35847 cat >>conftest.$ac_ext <<_ACEOF
35848 /* end confdefs.h.  */
35849 $ac_includes_default
35850 #include <$ac_header>
35851 _ACEOF
35852 rm -f conftest.$ac_objext
35853 if { (ac_try="$ac_compile"
35854 case "(($ac_try" in
35855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35856   *) ac_try_echo=$ac_try;;
35857 esac
35858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35859   (eval "$ac_compile") 2>conftest.er1
35860   ac_status=$?
35861   grep -v '^ *+' conftest.er1 >conftest.err
35862   rm -f conftest.er1
35863   cat conftest.err >&5
35864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865   (exit $ac_status); } && {
35866          test -z "$ac_c_werror_flag" ||
35867          test ! -s conftest.err
35868        } && test -s conftest.$ac_objext; then
35869   ac_header_compiler=yes
35870 else
35871   echo "$as_me: failed program was:" >&5
35872 sed 's/^/| /' conftest.$ac_ext >&5
35873
35874         ac_header_compiler=no
35875 fi
35876
35877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35879 echo "${ECHO_T}$ac_header_compiler" >&6; }
35880
35881 # Is the header present?
35882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35884 cat >conftest.$ac_ext <<_ACEOF
35885 /* confdefs.h.  */
35886 _ACEOF
35887 cat confdefs.h >>conftest.$ac_ext
35888 cat >>conftest.$ac_ext <<_ACEOF
35889 /* end confdefs.h.  */
35890 #include <$ac_header>
35891 _ACEOF
35892 if { (ac_try="$ac_cpp conftest.$ac_ext"
35893 case "(($ac_try" in
35894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35895   *) ac_try_echo=$ac_try;;
35896 esac
35897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35898   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35899   ac_status=$?
35900   grep -v '^ *+' conftest.er1 >conftest.err
35901   rm -f conftest.er1
35902   cat conftest.err >&5
35903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904   (exit $ac_status); } >/dev/null && {
35905          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35906          test ! -s conftest.err
35907        }; then
35908   ac_header_preproc=yes
35909 else
35910   echo "$as_me: failed program was:" >&5
35911 sed 's/^/| /' conftest.$ac_ext >&5
35912
35913   ac_header_preproc=no
35914 fi
35915
35916 rm -f conftest.err conftest.$ac_ext
35917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35918 echo "${ECHO_T}$ac_header_preproc" >&6; }
35919
35920 # So?  What about this header?
35921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35922   yes:no: )
35923     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35925     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35927     ac_header_preproc=yes
35928     ;;
35929   no:yes:* )
35930     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35932     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35933 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35934     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35936     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35937 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35940     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35942     ( cat <<\_ASBOX
35943 ## --------------------------------------------- ##
35944 ## Report this to <http://www.openldap.org/its/> ##
35945 ## --------------------------------------------- ##
35946 _ASBOX
35947      ) | sed "s/^/$as_me: WARNING:     /" >&2
35948     ;;
35949 esac
35950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35953   echo $ECHO_N "(cached) $ECHO_C" >&6
35954 else
35955   eval "$as_ac_Header=\$ac_header_preproc"
35956 fi
35957 ac_res=`eval echo '${'$as_ac_Header'}'`
35958                { echo "$as_me:$LINENO: result: $ac_res" >&5
35959 echo "${ECHO_T}$ac_res" >&6; }
35960
35961 fi
35962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35963   cat >>confdefs.h <<_ACEOF
35964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35965 _ACEOF
35966
35967 fi
35968
35969 done
35970
35971         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35972                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35973                 test "$ol_with_tls" = "found" ; then
35974                 ol_with_mp=bignum
35975
35976 cat >>confdefs.h <<\_ACEOF
35977 #define USE_MP_BIGNUM 1
35978 _ACEOF
35979
35980         elif test $ol_with_mp = bignum ; then
35981                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35982 echo "$as_me: error: bignum not available" >&2;}
35983    { (exit 1); exit 1; }; }
35984         fi
35985 fi
35986 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35987
35988 for ac_header in gmp.h
35989 do
35990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35992   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35995   echo $ECHO_N "(cached) $ECHO_C" >&6
35996 fi
35997 ac_res=`eval echo '${'$as_ac_Header'}'`
35998                { echo "$as_me:$LINENO: result: $ac_res" >&5
35999 echo "${ECHO_T}$ac_res" >&6; }
36000 else
36001   # Is the header compilable?
36002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36004 cat >conftest.$ac_ext <<_ACEOF
36005 /* confdefs.h.  */
36006 _ACEOF
36007 cat confdefs.h >>conftest.$ac_ext
36008 cat >>conftest.$ac_ext <<_ACEOF
36009 /* end confdefs.h.  */
36010 $ac_includes_default
36011 #include <$ac_header>
36012 _ACEOF
36013 rm -f conftest.$ac_objext
36014 if { (ac_try="$ac_compile"
36015 case "(($ac_try" in
36016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36017   *) ac_try_echo=$ac_try;;
36018 esac
36019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36020   (eval "$ac_compile") 2>conftest.er1
36021   ac_status=$?
36022   grep -v '^ *+' conftest.er1 >conftest.err
36023   rm -f conftest.er1
36024   cat conftest.err >&5
36025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026   (exit $ac_status); } && {
36027          test -z "$ac_c_werror_flag" ||
36028          test ! -s conftest.err
36029        } && test -s conftest.$ac_objext; then
36030   ac_header_compiler=yes
36031 else
36032   echo "$as_me: failed program was:" >&5
36033 sed 's/^/| /' conftest.$ac_ext >&5
36034
36035         ac_header_compiler=no
36036 fi
36037
36038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36040 echo "${ECHO_T}$ac_header_compiler" >&6; }
36041
36042 # Is the header present?
36043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36045 cat >conftest.$ac_ext <<_ACEOF
36046 /* confdefs.h.  */
36047 _ACEOF
36048 cat confdefs.h >>conftest.$ac_ext
36049 cat >>conftest.$ac_ext <<_ACEOF
36050 /* end confdefs.h.  */
36051 #include <$ac_header>
36052 _ACEOF
36053 if { (ac_try="$ac_cpp conftest.$ac_ext"
36054 case "(($ac_try" in
36055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36056   *) ac_try_echo=$ac_try;;
36057 esac
36058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36059   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36060   ac_status=$?
36061   grep -v '^ *+' conftest.er1 >conftest.err
36062   rm -f conftest.er1
36063   cat conftest.err >&5
36064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065   (exit $ac_status); } >/dev/null && {
36066          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36067          test ! -s conftest.err
36068        }; then
36069   ac_header_preproc=yes
36070 else
36071   echo "$as_me: failed program was:" >&5
36072 sed 's/^/| /' conftest.$ac_ext >&5
36073
36074   ac_header_preproc=no
36075 fi
36076
36077 rm -f conftest.err conftest.$ac_ext
36078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36079 echo "${ECHO_T}$ac_header_preproc" >&6; }
36080
36081 # So?  What about this header?
36082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36083   yes:no: )
36084     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36088     ac_header_preproc=yes
36089     ;;
36090   no:yes:* )
36091     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36093     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36094 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36095     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36097     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36098 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36101     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36103     ( cat <<\_ASBOX
36104 ## --------------------------------------------- ##
36105 ## Report this to <http://www.openldap.org/its/> ##
36106 ## --------------------------------------------- ##
36107 _ASBOX
36108      ) | sed "s/^/$as_me: WARNING:     /" >&2
36109     ;;
36110 esac
36111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36114   echo $ECHO_N "(cached) $ECHO_C" >&6
36115 else
36116   eval "$as_ac_Header=\$ac_header_preproc"
36117 fi
36118 ac_res=`eval echo '${'$as_ac_Header'}'`
36119                { echo "$as_me:$LINENO: result: $ac_res" >&5
36120 echo "${ECHO_T}$ac_res" >&6; }
36121
36122 fi
36123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36124   cat >>confdefs.h <<_ACEOF
36125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36126 _ACEOF
36127
36128 fi
36129
36130 done
36131
36132
36133 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36134 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
36135 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36136   echo $ECHO_N "(cached) $ECHO_C" >&6
36137 else
36138   ac_check_lib_save_LIBS=$LIBS
36139 LIBS="-lgmp  $LIBS"
36140 cat >conftest.$ac_ext <<_ACEOF
36141 /* confdefs.h.  */
36142 _ACEOF
36143 cat confdefs.h >>conftest.$ac_ext
36144 cat >>conftest.$ac_ext <<_ACEOF
36145 /* end confdefs.h.  */
36146
36147 /* Override any GCC internal prototype to avoid an error.
36148    Use char because int might match the return type of a GCC
36149    builtin and then its argument prototype would still apply.  */
36150 #ifdef __cplusplus
36151 extern "C"
36152 #endif
36153 char __gmpz_add_ui ();
36154 int
36155 main ()
36156 {
36157 return __gmpz_add_ui ();
36158   ;
36159   return 0;
36160 }
36161 _ACEOF
36162 rm -f conftest.$ac_objext conftest$ac_exeext
36163 if { (ac_try="$ac_link"
36164 case "(($ac_try" in
36165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36166   *) ac_try_echo=$ac_try;;
36167 esac
36168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36169   (eval "$ac_link") 2>conftest.er1
36170   ac_status=$?
36171   grep -v '^ *+' conftest.er1 >conftest.err
36172   rm -f conftest.er1
36173   cat conftest.err >&5
36174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36175   (exit $ac_status); } && {
36176          test -z "$ac_c_werror_flag" ||
36177          test ! -s conftest.err
36178        } && test -s conftest$ac_exeext &&
36179        $as_test_x conftest$ac_exeext; then
36180   ac_cv_lib_gmp___gmpz_add_ui=yes
36181 else
36182   echo "$as_me: failed program was:" >&5
36183 sed 's/^/| /' conftest.$ac_ext >&5
36184
36185         ac_cv_lib_gmp___gmpz_add_ui=no
36186 fi
36187
36188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36189       conftest$ac_exeext conftest.$ac_ext
36190 LIBS=$ac_check_lib_save_LIBS
36191 fi
36192 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36193 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36194 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36195   cat >>confdefs.h <<_ACEOF
36196 #define HAVE_LIBGMP 1
36197 _ACEOF
36198
36199   LIBS="-lgmp $LIBS"
36200
36201 fi
36202
36203         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36204
36205 cat >>confdefs.h <<\_ACEOF
36206 #define USE_MP_GMP 1
36207 _ACEOF
36208
36209                 ol_with_mp=gmp
36210         elif test $ol_with_mp = gmp ; then
36211                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36212 echo "$as_me: error: gmp not available" >&2;}
36213    { (exit 1); exit 1; }; }
36214         fi
36215 fi
36216 if test $ol_with_mp = auto ; then
36217         ol_with_mp=no
36218 fi
36219
36220 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36221 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36222 if test "${ac_cv_func_memcmp_working+set}" = set; then
36223   echo $ECHO_N "(cached) $ECHO_C" >&6
36224 else
36225   if test "$cross_compiling" = yes; then
36226   ac_cv_func_memcmp_working=no
36227 else
36228   cat >conftest.$ac_ext <<_ACEOF
36229 /* confdefs.h.  */
36230 _ACEOF
36231 cat confdefs.h >>conftest.$ac_ext
36232 cat >>conftest.$ac_ext <<_ACEOF
36233 /* end confdefs.h.  */
36234 $ac_includes_default
36235 int
36236 main ()
36237 {
36238
36239   /* Some versions of memcmp are not 8-bit clean.  */
36240   char c0 = '\100', c1 = '\200', c2 = '\201';
36241   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36242     return 1;
36243
36244   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36245      or more and with at least one buffer not starting on a 4-byte boundary.
36246      William Lewis provided this test program.   */
36247   {
36248     char foo[21];
36249     char bar[21];
36250     int i;
36251     for (i = 0; i < 4; i++)
36252       {
36253         char *a = foo + i;
36254         char *b = bar + i;
36255         strcpy (a, "--------01111111");
36256         strcpy (b, "--------10000000");
36257         if (memcmp (a, b, 16) >= 0)
36258           return 1;
36259       }
36260     return 0;
36261   }
36262
36263   ;
36264   return 0;
36265 }
36266 _ACEOF
36267 rm -f conftest$ac_exeext
36268 if { (ac_try="$ac_link"
36269 case "(($ac_try" in
36270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36271   *) ac_try_echo=$ac_try;;
36272 esac
36273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36274   (eval "$ac_link") 2>&5
36275   ac_status=$?
36276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36278   { (case "(($ac_try" in
36279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36280   *) ac_try_echo=$ac_try;;
36281 esac
36282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36283   (eval "$ac_try") 2>&5
36284   ac_status=$?
36285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36286   (exit $ac_status); }; }; then
36287   ac_cv_func_memcmp_working=yes
36288 else
36289   echo "$as_me: program exited with status $ac_status" >&5
36290 echo "$as_me: failed program was:" >&5
36291 sed 's/^/| /' conftest.$ac_ext >&5
36292
36293 ( exit $ac_status )
36294 ac_cv_func_memcmp_working=no
36295 fi
36296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36297 fi
36298
36299
36300 fi
36301 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36302 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36303 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36304   *" memcmp.$ac_objext "* ) ;;
36305   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36306  ;;
36307 esac
36308
36309
36310
36311 if test $ac_cv_func_memcmp_working = no ; then
36312
36313 cat >>confdefs.h <<\_ACEOF
36314 #define NEED_MEMCMP_REPLACEMENT 1
36315 _ACEOF
36316
36317 fi
36318
36319
36320 for ac_func in strftime
36321 do
36322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36326   echo $ECHO_N "(cached) $ECHO_C" >&6
36327 else
36328   cat >conftest.$ac_ext <<_ACEOF
36329 /* confdefs.h.  */
36330 _ACEOF
36331 cat confdefs.h >>conftest.$ac_ext
36332 cat >>conftest.$ac_ext <<_ACEOF
36333 /* end confdefs.h.  */
36334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36336 #define $ac_func innocuous_$ac_func
36337
36338 /* System header to define __stub macros and hopefully few prototypes,
36339     which can conflict with char $ac_func (); below.
36340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36341     <limits.h> exists even on freestanding compilers.  */
36342
36343 #ifdef __STDC__
36344 # include <limits.h>
36345 #else
36346 # include <assert.h>
36347 #endif
36348
36349 #undef $ac_func
36350
36351 /* Override any GCC internal prototype to avoid an error.
36352    Use char because int might match the return type of a GCC
36353    builtin and then its argument prototype would still apply.  */
36354 #ifdef __cplusplus
36355 extern "C"
36356 #endif
36357 char $ac_func ();
36358 /* The GNU C library defines this for functions which it implements
36359     to always fail with ENOSYS.  Some functions are actually named
36360     something starting with __ and the normal name is an alias.  */
36361 #if defined __stub_$ac_func || defined __stub___$ac_func
36362 choke me
36363 #endif
36364
36365 int
36366 main ()
36367 {
36368 return $ac_func ();
36369   ;
36370   return 0;
36371 }
36372 _ACEOF
36373 rm -f conftest.$ac_objext conftest$ac_exeext
36374 if { (ac_try="$ac_link"
36375 case "(($ac_try" in
36376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36377   *) ac_try_echo=$ac_try;;
36378 esac
36379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36380   (eval "$ac_link") 2>conftest.er1
36381   ac_status=$?
36382   grep -v '^ *+' conftest.er1 >conftest.err
36383   rm -f conftest.er1
36384   cat conftest.err >&5
36385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386   (exit $ac_status); } && {
36387          test -z "$ac_c_werror_flag" ||
36388          test ! -s conftest.err
36389        } && test -s conftest$ac_exeext &&
36390        $as_test_x conftest$ac_exeext; then
36391   eval "$as_ac_var=yes"
36392 else
36393   echo "$as_me: failed program was:" >&5
36394 sed 's/^/| /' conftest.$ac_ext >&5
36395
36396         eval "$as_ac_var=no"
36397 fi
36398
36399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36400       conftest$ac_exeext conftest.$ac_ext
36401 fi
36402 ac_res=`eval echo '${'$as_ac_var'}'`
36403                { echo "$as_me:$LINENO: result: $ac_res" >&5
36404 echo "${ECHO_T}$ac_res" >&6; }
36405 if test `eval echo '${'$as_ac_var'}'` = yes; then
36406   cat >>confdefs.h <<_ACEOF
36407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36408 _ACEOF
36409
36410 else
36411   # strftime is in -lintl on SCO UNIX.
36412 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36413 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36414 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36415   echo $ECHO_N "(cached) $ECHO_C" >&6
36416 else
36417   ac_check_lib_save_LIBS=$LIBS
36418 LIBS="-lintl  $LIBS"
36419 cat >conftest.$ac_ext <<_ACEOF
36420 /* confdefs.h.  */
36421 _ACEOF
36422 cat confdefs.h >>conftest.$ac_ext
36423 cat >>conftest.$ac_ext <<_ACEOF
36424 /* end confdefs.h.  */
36425
36426 /* Override any GCC internal prototype to avoid an error.
36427    Use char because int might match the return type of a GCC
36428    builtin and then its argument prototype would still apply.  */
36429 #ifdef __cplusplus
36430 extern "C"
36431 #endif
36432 char strftime ();
36433 int
36434 main ()
36435 {
36436 return strftime ();
36437   ;
36438   return 0;
36439 }
36440 _ACEOF
36441 rm -f conftest.$ac_objext conftest$ac_exeext
36442 if { (ac_try="$ac_link"
36443 case "(($ac_try" in
36444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36445   *) ac_try_echo=$ac_try;;
36446 esac
36447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36448   (eval "$ac_link") 2>conftest.er1
36449   ac_status=$?
36450   grep -v '^ *+' conftest.er1 >conftest.err
36451   rm -f conftest.er1
36452   cat conftest.err >&5
36453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36454   (exit $ac_status); } && {
36455          test -z "$ac_c_werror_flag" ||
36456          test ! -s conftest.err
36457        } && test -s conftest$ac_exeext &&
36458        $as_test_x conftest$ac_exeext; then
36459   ac_cv_lib_intl_strftime=yes
36460 else
36461   echo "$as_me: failed program was:" >&5
36462 sed 's/^/| /' conftest.$ac_ext >&5
36463
36464         ac_cv_lib_intl_strftime=no
36465 fi
36466
36467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36468       conftest$ac_exeext conftest.$ac_ext
36469 LIBS=$ac_check_lib_save_LIBS
36470 fi
36471 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36472 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36473 if test $ac_cv_lib_intl_strftime = yes; then
36474   cat >>confdefs.h <<\_ACEOF
36475 #define HAVE_STRFTIME 1
36476 _ACEOF
36477
36478 LIBS="-lintl $LIBS"
36479 fi
36480
36481 fi
36482 done
36483
36484
36485 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36486 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36487 if test "${ol_cv_func_inet_aton+set}" = set; then
36488   echo $ECHO_N "(cached) $ECHO_C" >&6
36489 else
36490   cat >conftest.$ac_ext <<_ACEOF
36491 /* confdefs.h.  */
36492 _ACEOF
36493 cat confdefs.h >>conftest.$ac_ext
36494 cat >>conftest.$ac_ext <<_ACEOF
36495 /* end confdefs.h.  */
36496
36497 #ifdef HAVE_SYS_TYPES_H
36498 #       include <sys/types.h>
36499 #endif
36500 #ifdef HAVE_SYS_SOCKET_H
36501 #       include <sys/socket.h>
36502 #       ifdef HAVE_SYS_SELECT_H
36503 #               include <sys/select.h>
36504 #       endif
36505 #       include <netinet/in.h>
36506 #       ifdef HAVE_ARPA_INET_H
36507 #               include <arpa/inet.h>
36508 #       endif
36509 #endif
36510
36511 int
36512 main ()
36513 {
36514 struct in_addr in;
36515 int rc = inet_aton( "255.255.255.255", &in );
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   ol_cv_func_inet_aton=yes
36539 else
36540   echo "$as_me: failed program was:" >&5
36541 sed 's/^/| /' conftest.$ac_ext >&5
36542
36543         ol_cv_func_inet_aton=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 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36550 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36551   if test $ol_cv_func_inet_aton != no; then
36552
36553 cat >>confdefs.h <<\_ACEOF
36554 #define HAVE_INET_ATON 1
36555 _ACEOF
36556
36557   fi
36558
36559
36560 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36561 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36562 if test "${ac_cv_func__spawnlp+set}" = set; then
36563   echo $ECHO_N "(cached) $ECHO_C" >&6
36564 else
36565   cat >conftest.$ac_ext <<_ACEOF
36566 /* confdefs.h.  */
36567 _ACEOF
36568 cat confdefs.h >>conftest.$ac_ext
36569 cat >>conftest.$ac_ext <<_ACEOF
36570 /* end confdefs.h.  */
36571 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36573 #define _spawnlp innocuous__spawnlp
36574
36575 /* System header to define __stub macros and hopefully few prototypes,
36576     which can conflict with char _spawnlp (); below.
36577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36578     <limits.h> exists even on freestanding compilers.  */
36579
36580 #ifdef __STDC__
36581 # include <limits.h>
36582 #else
36583 # include <assert.h>
36584 #endif
36585
36586 #undef _spawnlp
36587
36588 /* Override any GCC internal prototype to avoid an error.
36589    Use char because int might match the return type of a GCC
36590    builtin and then its argument prototype would still apply.  */
36591 #ifdef __cplusplus
36592 extern "C"
36593 #endif
36594 char _spawnlp ();
36595 /* The GNU C library defines this for functions which it implements
36596     to always fail with ENOSYS.  Some functions are actually named
36597     something starting with __ and the normal name is an alias.  */
36598 #if defined __stub__spawnlp || defined __stub____spawnlp
36599 choke me
36600 #endif
36601
36602 int
36603 main ()
36604 {
36605 return _spawnlp ();
36606   ;
36607   return 0;
36608 }
36609 _ACEOF
36610 rm -f conftest.$ac_objext conftest$ac_exeext
36611 if { (ac_try="$ac_link"
36612 case "(($ac_try" in
36613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36614   *) ac_try_echo=$ac_try;;
36615 esac
36616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36617   (eval "$ac_link") 2>conftest.er1
36618   ac_status=$?
36619   grep -v '^ *+' conftest.er1 >conftest.err
36620   rm -f conftest.er1
36621   cat conftest.err >&5
36622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623   (exit $ac_status); } && {
36624          test -z "$ac_c_werror_flag" ||
36625          test ! -s conftest.err
36626        } && test -s conftest$ac_exeext &&
36627        $as_test_x conftest$ac_exeext; then
36628   ac_cv_func__spawnlp=yes
36629 else
36630   echo "$as_me: failed program was:" >&5
36631 sed 's/^/| /' conftest.$ac_ext >&5
36632
36633         ac_cv_func__spawnlp=no
36634 fi
36635
36636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36637       conftest$ac_exeext conftest.$ac_ext
36638 fi
36639 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36640 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36641 if test $ac_cv_func__spawnlp = yes; then
36642
36643 cat >>confdefs.h <<\_ACEOF
36644 #define HAVE_SPAWNLP 1
36645 _ACEOF
36646
36647 fi
36648
36649
36650 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36651 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36652 if test "${ac_cv_func__snprintf+set}" = set; then
36653   echo $ECHO_N "(cached) $ECHO_C" >&6
36654 else
36655   cat >conftest.$ac_ext <<_ACEOF
36656 /* confdefs.h.  */
36657 _ACEOF
36658 cat confdefs.h >>conftest.$ac_ext
36659 cat >>conftest.$ac_ext <<_ACEOF
36660 /* end confdefs.h.  */
36661 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36663 #define _snprintf innocuous__snprintf
36664
36665 /* System header to define __stub macros and hopefully few prototypes,
36666     which can conflict with char _snprintf (); below.
36667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36668     <limits.h> exists even on freestanding compilers.  */
36669
36670 #ifdef __STDC__
36671 # include <limits.h>
36672 #else
36673 # include <assert.h>
36674 #endif
36675
36676 #undef _snprintf
36677
36678 /* Override any GCC internal prototype to avoid an error.
36679    Use char because int might match the return type of a GCC
36680    builtin and then its argument prototype would still apply.  */
36681 #ifdef __cplusplus
36682 extern "C"
36683 #endif
36684 char _snprintf ();
36685 /* The GNU C library defines this for functions which it implements
36686     to always fail with ENOSYS.  Some functions are actually named
36687     something starting with __ and the normal name is an alias.  */
36688 #if defined __stub__snprintf || defined __stub____snprintf
36689 choke me
36690 #endif
36691
36692 int
36693 main ()
36694 {
36695 return _snprintf ();
36696   ;
36697   return 0;
36698 }
36699 _ACEOF
36700 rm -f conftest.$ac_objext conftest$ac_exeext
36701 if { (ac_try="$ac_link"
36702 case "(($ac_try" in
36703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36704   *) ac_try_echo=$ac_try;;
36705 esac
36706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36707   (eval "$ac_link") 2>conftest.er1
36708   ac_status=$?
36709   grep -v '^ *+' conftest.er1 >conftest.err
36710   rm -f conftest.er1
36711   cat conftest.err >&5
36712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713   (exit $ac_status); } && {
36714          test -z "$ac_c_werror_flag" ||
36715          test ! -s conftest.err
36716        } && test -s conftest$ac_exeext &&
36717        $as_test_x conftest$ac_exeext; then
36718   ac_cv_func__snprintf=yes
36719 else
36720   echo "$as_me: failed program was:" >&5
36721 sed 's/^/| /' conftest.$ac_ext >&5
36722
36723         ac_cv_func__snprintf=no
36724 fi
36725
36726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36727       conftest$ac_exeext conftest.$ac_ext
36728 fi
36729 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36730 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36731 if test $ac_cv_func__snprintf = yes; then
36732   ac_cv_func_snprintf=yes
36733
36734 cat >>confdefs.h <<\_ACEOF
36735 #define snprintf _snprintf
36736 _ACEOF
36737
36738
36739 fi
36740
36741
36742
36743
36744 for ac_func in vsnprintf _vsnprintf
36745 do
36746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36750   echo $ECHO_N "(cached) $ECHO_C" >&6
36751 else
36752   cat >conftest.$ac_ext <<_ACEOF
36753 /* confdefs.h.  */
36754 _ACEOF
36755 cat confdefs.h >>conftest.$ac_ext
36756 cat >>conftest.$ac_ext <<_ACEOF
36757 /* end confdefs.h.  */
36758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36760 #define $ac_func innocuous_$ac_func
36761
36762 /* System header to define __stub macros and hopefully few prototypes,
36763     which can conflict with char $ac_func (); below.
36764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36765     <limits.h> exists even on freestanding compilers.  */
36766
36767 #ifdef __STDC__
36768 # include <limits.h>
36769 #else
36770 # include <assert.h>
36771 #endif
36772
36773 #undef $ac_func
36774
36775 /* Override any GCC internal prototype to avoid an error.
36776    Use char because int might match the return type of a GCC
36777    builtin and then its argument prototype would still apply.  */
36778 #ifdef __cplusplus
36779 extern "C"
36780 #endif
36781 char $ac_func ();
36782 /* The GNU C library defines this for functions which it implements
36783     to always fail with ENOSYS.  Some functions are actually named
36784     something starting with __ and the normal name is an alias.  */
36785 #if defined __stub_$ac_func || defined __stub___$ac_func
36786 choke me
36787 #endif
36788
36789 int
36790 main ()
36791 {
36792 return $ac_func ();
36793   ;
36794   return 0;
36795 }
36796 _ACEOF
36797 rm -f conftest.$ac_objext conftest$ac_exeext
36798 if { (ac_try="$ac_link"
36799 case "(($ac_try" in
36800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36801   *) ac_try_echo=$ac_try;;
36802 esac
36803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36804   (eval "$ac_link") 2>conftest.er1
36805   ac_status=$?
36806   grep -v '^ *+' conftest.er1 >conftest.err
36807   rm -f conftest.er1
36808   cat conftest.err >&5
36809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810   (exit $ac_status); } && {
36811          test -z "$ac_c_werror_flag" ||
36812          test ! -s conftest.err
36813        } && test -s conftest$ac_exeext &&
36814        $as_test_x conftest$ac_exeext; then
36815   eval "$as_ac_var=yes"
36816 else
36817   echo "$as_me: failed program was:" >&5
36818 sed 's/^/| /' conftest.$ac_ext >&5
36819
36820         eval "$as_ac_var=no"
36821 fi
36822
36823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36824       conftest$ac_exeext conftest.$ac_ext
36825 fi
36826 ac_res=`eval echo '${'$as_ac_var'}'`
36827                { echo "$as_me:$LINENO: result: $ac_res" >&5
36828 echo "${ECHO_T}$ac_res" >&6; }
36829 if test `eval echo '${'$as_ac_var'}'` = yes; then
36830   cat >>confdefs.h <<_ACEOF
36831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36832 _ACEOF
36833
36834 fi
36835 done
36836
36837
36838 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36839         ac_cv_func_vsnprintf=yes
36840
36841 cat >>confdefs.h <<\_ACEOF
36842 #define vsnprintf _vsnprintf
36843 _ACEOF
36844
36845 fi
36846
36847
36848 for ac_func in vprintf
36849 do
36850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36854   echo $ECHO_N "(cached) $ECHO_C" >&6
36855 else
36856   cat >conftest.$ac_ext <<_ACEOF
36857 /* confdefs.h.  */
36858 _ACEOF
36859 cat confdefs.h >>conftest.$ac_ext
36860 cat >>conftest.$ac_ext <<_ACEOF
36861 /* end confdefs.h.  */
36862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36864 #define $ac_func innocuous_$ac_func
36865
36866 /* System header to define __stub macros and hopefully few prototypes,
36867     which can conflict with char $ac_func (); below.
36868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36869     <limits.h> exists even on freestanding compilers.  */
36870
36871 #ifdef __STDC__
36872 # include <limits.h>
36873 #else
36874 # include <assert.h>
36875 #endif
36876
36877 #undef $ac_func
36878
36879 /* Override any GCC internal prototype to avoid an error.
36880    Use char because int might match the return type of a GCC
36881    builtin and then its argument prototype would still apply.  */
36882 #ifdef __cplusplus
36883 extern "C"
36884 #endif
36885 char $ac_func ();
36886 /* The GNU C library defines this for functions which it implements
36887     to always fail with ENOSYS.  Some functions are actually named
36888     something starting with __ and the normal name is an alias.  */
36889 #if defined __stub_$ac_func || defined __stub___$ac_func
36890 choke me
36891 #endif
36892
36893 int
36894 main ()
36895 {
36896 return $ac_func ();
36897   ;
36898   return 0;
36899 }
36900 _ACEOF
36901 rm -f conftest.$ac_objext conftest$ac_exeext
36902 if { (ac_try="$ac_link"
36903 case "(($ac_try" in
36904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36905   *) ac_try_echo=$ac_try;;
36906 esac
36907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36908   (eval "$ac_link") 2>conftest.er1
36909   ac_status=$?
36910   grep -v '^ *+' conftest.er1 >conftest.err
36911   rm -f conftest.er1
36912   cat conftest.err >&5
36913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914   (exit $ac_status); } && {
36915          test -z "$ac_c_werror_flag" ||
36916          test ! -s conftest.err
36917        } && test -s conftest$ac_exeext &&
36918        $as_test_x conftest$ac_exeext; then
36919   eval "$as_ac_var=yes"
36920 else
36921   echo "$as_me: failed program was:" >&5
36922 sed 's/^/| /' conftest.$ac_ext >&5
36923
36924         eval "$as_ac_var=no"
36925 fi
36926
36927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36928       conftest$ac_exeext conftest.$ac_ext
36929 fi
36930 ac_res=`eval echo '${'$as_ac_var'}'`
36931                { echo "$as_me:$LINENO: result: $ac_res" >&5
36932 echo "${ECHO_T}$ac_res" >&6; }
36933 if test `eval echo '${'$as_ac_var'}'` = yes; then
36934   cat >>confdefs.h <<_ACEOF
36935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36936 _ACEOF
36937
36938 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36939 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36940 if test "${ac_cv_func__doprnt+set}" = set; then
36941   echo $ECHO_N "(cached) $ECHO_C" >&6
36942 else
36943   cat >conftest.$ac_ext <<_ACEOF
36944 /* confdefs.h.  */
36945 _ACEOF
36946 cat confdefs.h >>conftest.$ac_ext
36947 cat >>conftest.$ac_ext <<_ACEOF
36948 /* end confdefs.h.  */
36949 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36951 #define _doprnt innocuous__doprnt
36952
36953 /* System header to define __stub macros and hopefully few prototypes,
36954     which can conflict with char _doprnt (); below.
36955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36956     <limits.h> exists even on freestanding compilers.  */
36957
36958 #ifdef __STDC__
36959 # include <limits.h>
36960 #else
36961 # include <assert.h>
36962 #endif
36963
36964 #undef _doprnt
36965
36966 /* Override any GCC internal prototype to avoid an error.
36967    Use char because int might match the return type of a GCC
36968    builtin and then its argument prototype would still apply.  */
36969 #ifdef __cplusplus
36970 extern "C"
36971 #endif
36972 char _doprnt ();
36973 /* The GNU C library defines this for functions which it implements
36974     to always fail with ENOSYS.  Some functions are actually named
36975     something starting with __ and the normal name is an alias.  */
36976 #if defined __stub__doprnt || defined __stub____doprnt
36977 choke me
36978 #endif
36979
36980 int
36981 main ()
36982 {
36983 return _doprnt ();
36984   ;
36985   return 0;
36986 }
36987 _ACEOF
36988 rm -f conftest.$ac_objext conftest$ac_exeext
36989 if { (ac_try="$ac_link"
36990 case "(($ac_try" in
36991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36992   *) ac_try_echo=$ac_try;;
36993 esac
36994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36995   (eval "$ac_link") 2>conftest.er1
36996   ac_status=$?
36997   grep -v '^ *+' conftest.er1 >conftest.err
36998   rm -f conftest.er1
36999   cat conftest.err >&5
37000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37001   (exit $ac_status); } && {
37002          test -z "$ac_c_werror_flag" ||
37003          test ! -s conftest.err
37004        } && test -s conftest$ac_exeext &&
37005        $as_test_x conftest$ac_exeext; then
37006   ac_cv_func__doprnt=yes
37007 else
37008   echo "$as_me: failed program was:" >&5
37009 sed 's/^/| /' conftest.$ac_ext >&5
37010
37011         ac_cv_func__doprnt=no
37012 fi
37013
37014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37015       conftest$ac_exeext conftest.$ac_ext
37016 fi
37017 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37018 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
37019 if test $ac_cv_func__doprnt = yes; then
37020
37021 cat >>confdefs.h <<\_ACEOF
37022 #define HAVE_DOPRNT 1
37023 _ACEOF
37024
37025 fi
37026
37027 fi
37028 done
37029
37030
37031
37032 if test $ac_cv_func_vprintf = yes ; then
37033
37034
37035 for ac_func in snprintf vsnprintf
37036 do
37037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37041   echo $ECHO_N "(cached) $ECHO_C" >&6
37042 else
37043   cat >conftest.$ac_ext <<_ACEOF
37044 /* confdefs.h.  */
37045 _ACEOF
37046 cat confdefs.h >>conftest.$ac_ext
37047 cat >>conftest.$ac_ext <<_ACEOF
37048 /* end confdefs.h.  */
37049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37051 #define $ac_func innocuous_$ac_func
37052
37053 /* System header to define __stub macros and hopefully few prototypes,
37054     which can conflict with char $ac_func (); below.
37055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37056     <limits.h> exists even on freestanding compilers.  */
37057
37058 #ifdef __STDC__
37059 # include <limits.h>
37060 #else
37061 # include <assert.h>
37062 #endif
37063
37064 #undef $ac_func
37065
37066 /* Override any GCC internal prototype to avoid an error.
37067    Use char because int might match the return type of a GCC
37068    builtin and then its argument prototype would still apply.  */
37069 #ifdef __cplusplus
37070 extern "C"
37071 #endif
37072 char $ac_func ();
37073 /* The GNU C library defines this for functions which it implements
37074     to always fail with ENOSYS.  Some functions are actually named
37075     something starting with __ and the normal name is an alias.  */
37076 #if defined __stub_$ac_func || defined __stub___$ac_func
37077 choke me
37078 #endif
37079
37080 int
37081 main ()
37082 {
37083 return $ac_func ();
37084   ;
37085   return 0;
37086 }
37087 _ACEOF
37088 rm -f conftest.$ac_objext conftest$ac_exeext
37089 if { (ac_try="$ac_link"
37090 case "(($ac_try" in
37091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37092   *) ac_try_echo=$ac_try;;
37093 esac
37094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37095   (eval "$ac_link") 2>conftest.er1
37096   ac_status=$?
37097   grep -v '^ *+' conftest.er1 >conftest.err
37098   rm -f conftest.er1
37099   cat conftest.err >&5
37100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37101   (exit $ac_status); } && {
37102          test -z "$ac_c_werror_flag" ||
37103          test ! -s conftest.err
37104        } && test -s conftest$ac_exeext &&
37105        $as_test_x conftest$ac_exeext; then
37106   eval "$as_ac_var=yes"
37107 else
37108   echo "$as_me: failed program was:" >&5
37109 sed 's/^/| /' conftest.$ac_ext >&5
37110
37111         eval "$as_ac_var=no"
37112 fi
37113
37114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37115       conftest$ac_exeext conftest.$ac_ext
37116 fi
37117 ac_res=`eval echo '${'$as_ac_var'}'`
37118                { echo "$as_me:$LINENO: result: $ac_res" >&5
37119 echo "${ECHO_T}$ac_res" >&6; }
37120 if test `eval echo '${'$as_ac_var'}'` = yes; then
37121   cat >>confdefs.h <<_ACEOF
37122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37123 _ACEOF
37124
37125 fi
37126 done
37127
37128 fi
37129
37130
37131
37132
37133
37134
37135
37136
37137
37138
37139
37140
37141
37142
37143
37144
37145
37146
37147
37148
37149
37150
37151
37152
37153
37154
37155
37156
37157
37158
37159
37160
37161
37162
37163
37164
37165
37166
37167
37168
37169
37170
37171
37172
37173
37174
37175
37176
37177
37178
37179
37180
37181
37182
37183
37184
37185
37186 for ac_func in \
37187         bcopy                   \
37188         closesocket             \
37189         chroot                  \
37190         endgrent                \
37191         endpwent                \
37192         fcntl                   \
37193         flock                   \
37194         fstat                   \
37195         getdtablesize           \
37196         geteuid                 \
37197         getgrgid                \
37198         gethostname             \
37199         getpass                 \
37200         getpassphrase           \
37201         getpwuid                \
37202         getpwnam                \
37203         getspnam                \
37204         gettimeofday            \
37205         initgroups              \
37206         inet_ntoa_b             \
37207         ioctl                   \
37208         lockf                   \
37209         memcpy                  \
37210         memmove                 \
37211         memrchr                 \
37212         mkstemp                 \
37213         mktemp                  \
37214         pipe                    \
37215         read                    \
37216         recv                    \
37217         recvfrom                \
37218         setpwfile               \
37219         setgid                  \
37220         setegid                 \
37221         setsid                  \
37222         setuid                  \
37223         seteuid                 \
37224         signal                  \
37225         strdup                  \
37226         strpbrk                 \
37227         strrchr                 \
37228         strsep                  \
37229         strstr                  \
37230         strtol                  \
37231         strtoul                 \
37232         strtoq                  \
37233         strtouq                 \
37234         strtoll                 \
37235         strspn                  \
37236         sysconf                 \
37237         waitpid                 \
37238         wait4                   \
37239         write                   \
37240         send                    \
37241         sendmsg                 \
37242         sendto                  \
37243
37244 do
37245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37249   echo $ECHO_N "(cached) $ECHO_C" >&6
37250 else
37251   cat >conftest.$ac_ext <<_ACEOF
37252 /* confdefs.h.  */
37253 _ACEOF
37254 cat confdefs.h >>conftest.$ac_ext
37255 cat >>conftest.$ac_ext <<_ACEOF
37256 /* end confdefs.h.  */
37257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37259 #define $ac_func innocuous_$ac_func
37260
37261 /* System header to define __stub macros and hopefully few prototypes,
37262     which can conflict with char $ac_func (); below.
37263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37264     <limits.h> exists even on freestanding compilers.  */
37265
37266 #ifdef __STDC__
37267 # include <limits.h>
37268 #else
37269 # include <assert.h>
37270 #endif
37271
37272 #undef $ac_func
37273
37274 /* Override any GCC internal prototype to avoid an error.
37275    Use char because int might match the return type of a GCC
37276    builtin and then its argument prototype would still apply.  */
37277 #ifdef __cplusplus
37278 extern "C"
37279 #endif
37280 char $ac_func ();
37281 /* The GNU C library defines this for functions which it implements
37282     to always fail with ENOSYS.  Some functions are actually named
37283     something starting with __ and the normal name is an alias.  */
37284 #if defined __stub_$ac_func || defined __stub___$ac_func
37285 choke me
37286 #endif
37287
37288 int
37289 main ()
37290 {
37291 return $ac_func ();
37292   ;
37293   return 0;
37294 }
37295 _ACEOF
37296 rm -f conftest.$ac_objext conftest$ac_exeext
37297 if { (ac_try="$ac_link"
37298 case "(($ac_try" in
37299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37300   *) ac_try_echo=$ac_try;;
37301 esac
37302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37303   (eval "$ac_link") 2>conftest.er1
37304   ac_status=$?
37305   grep -v '^ *+' conftest.er1 >conftest.err
37306   rm -f conftest.er1
37307   cat conftest.err >&5
37308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37309   (exit $ac_status); } && {
37310          test -z "$ac_c_werror_flag" ||
37311          test ! -s conftest.err
37312        } && test -s conftest$ac_exeext &&
37313        $as_test_x conftest$ac_exeext; then
37314   eval "$as_ac_var=yes"
37315 else
37316   echo "$as_me: failed program was:" >&5
37317 sed 's/^/| /' conftest.$ac_ext >&5
37318
37319         eval "$as_ac_var=no"
37320 fi
37321
37322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37323       conftest$ac_exeext conftest.$ac_ext
37324 fi
37325 ac_res=`eval echo '${'$as_ac_var'}'`
37326                { echo "$as_me:$LINENO: result: $ac_res" >&5
37327 echo "${ECHO_T}$ac_res" >&6; }
37328 if test `eval echo '${'$as_ac_var'}'` = yes; then
37329   cat >>confdefs.h <<_ACEOF
37330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37331 _ACEOF
37332
37333 fi
37334 done
37335
37336
37337
37338
37339 for ac_func in getopt getpeereid
37340 do
37341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37345   echo $ECHO_N "(cached) $ECHO_C" >&6
37346 else
37347   cat >conftest.$ac_ext <<_ACEOF
37348 /* confdefs.h.  */
37349 _ACEOF
37350 cat confdefs.h >>conftest.$ac_ext
37351 cat >>conftest.$ac_ext <<_ACEOF
37352 /* end confdefs.h.  */
37353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37355 #define $ac_func innocuous_$ac_func
37356
37357 /* System header to define __stub macros and hopefully few prototypes,
37358     which can conflict with char $ac_func (); below.
37359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37360     <limits.h> exists even on freestanding compilers.  */
37361
37362 #ifdef __STDC__
37363 # include <limits.h>
37364 #else
37365 # include <assert.h>
37366 #endif
37367
37368 #undef $ac_func
37369
37370 /* Override any GCC internal prototype to avoid an error.
37371    Use char because int might match the return type of a GCC
37372    builtin and then its argument prototype would still apply.  */
37373 #ifdef __cplusplus
37374 extern "C"
37375 #endif
37376 char $ac_func ();
37377 /* The GNU C library defines this for functions which it implements
37378     to always fail with ENOSYS.  Some functions are actually named
37379     something starting with __ and the normal name is an alias.  */
37380 #if defined __stub_$ac_func || defined __stub___$ac_func
37381 choke me
37382 #endif
37383
37384 int
37385 main ()
37386 {
37387 return $ac_func ();
37388   ;
37389   return 0;
37390 }
37391 _ACEOF
37392 rm -f conftest.$ac_objext conftest$ac_exeext
37393 if { (ac_try="$ac_link"
37394 case "(($ac_try" in
37395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37396   *) ac_try_echo=$ac_try;;
37397 esac
37398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37399   (eval "$ac_link") 2>conftest.er1
37400   ac_status=$?
37401   grep -v '^ *+' conftest.er1 >conftest.err
37402   rm -f conftest.er1
37403   cat conftest.err >&5
37404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405   (exit $ac_status); } && {
37406          test -z "$ac_c_werror_flag" ||
37407          test ! -s conftest.err
37408        } && test -s conftest$ac_exeext &&
37409        $as_test_x conftest$ac_exeext; then
37410   eval "$as_ac_var=yes"
37411 else
37412   echo "$as_me: failed program was:" >&5
37413 sed 's/^/| /' conftest.$ac_ext >&5
37414
37415         eval "$as_ac_var=no"
37416 fi
37417
37418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37419       conftest$ac_exeext conftest.$ac_ext
37420 fi
37421 ac_res=`eval echo '${'$as_ac_var'}'`
37422                { echo "$as_me:$LINENO: result: $ac_res" >&5
37423 echo "${ECHO_T}$ac_res" >&6; }
37424 if test `eval echo '${'$as_ac_var'}'` = yes; then
37425   cat >>confdefs.h <<_ACEOF
37426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37427 _ACEOF
37428
37429 else
37430   case " $LIBOBJS " in
37431   *" $ac_func.$ac_objext "* ) ;;
37432   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37433  ;;
37434 esac
37435
37436 fi
37437 done
37438
37439
37440
37441 if test "$ac_cv_func_getopt" != yes; then
37442         LIBSRCS="$LIBSRCS getopt.c"
37443 fi
37444
37445 if test "$ac_cv_func_getpeereid" != yes; then
37446
37447 for ac_func in getpeerucred
37448 do
37449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37453   echo $ECHO_N "(cached) $ECHO_C" >&6
37454 else
37455   cat >conftest.$ac_ext <<_ACEOF
37456 /* confdefs.h.  */
37457 _ACEOF
37458 cat confdefs.h >>conftest.$ac_ext
37459 cat >>conftest.$ac_ext <<_ACEOF
37460 /* end confdefs.h.  */
37461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37463 #define $ac_func innocuous_$ac_func
37464
37465 /* System header to define __stub macros and hopefully few prototypes,
37466     which can conflict with char $ac_func (); below.
37467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37468     <limits.h> exists even on freestanding compilers.  */
37469
37470 #ifdef __STDC__
37471 # include <limits.h>
37472 #else
37473 # include <assert.h>
37474 #endif
37475
37476 #undef $ac_func
37477
37478 /* Override any GCC internal prototype to avoid an error.
37479    Use char because int might match the return type of a GCC
37480    builtin and then its argument prototype would still apply.  */
37481 #ifdef __cplusplus
37482 extern "C"
37483 #endif
37484 char $ac_func ();
37485 /* The GNU C library defines this for functions which it implements
37486     to always fail with ENOSYS.  Some functions are actually named
37487     something starting with __ and the normal name is an alias.  */
37488 #if defined __stub_$ac_func || defined __stub___$ac_func
37489 choke me
37490 #endif
37491
37492 int
37493 main ()
37494 {
37495 return $ac_func ();
37496   ;
37497   return 0;
37498 }
37499 _ACEOF
37500 rm -f conftest.$ac_objext conftest$ac_exeext
37501 if { (ac_try="$ac_link"
37502 case "(($ac_try" in
37503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37504   *) ac_try_echo=$ac_try;;
37505 esac
37506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37507   (eval "$ac_link") 2>conftest.er1
37508   ac_status=$?
37509   grep -v '^ *+' conftest.er1 >conftest.err
37510   rm -f conftest.er1
37511   cat conftest.err >&5
37512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513   (exit $ac_status); } && {
37514          test -z "$ac_c_werror_flag" ||
37515          test ! -s conftest.err
37516        } && test -s conftest$ac_exeext &&
37517        $as_test_x conftest$ac_exeext; then
37518   eval "$as_ac_var=yes"
37519 else
37520   echo "$as_me: failed program was:" >&5
37521 sed 's/^/| /' conftest.$ac_ext >&5
37522
37523         eval "$as_ac_var=no"
37524 fi
37525
37526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37527       conftest$ac_exeext conftest.$ac_ext
37528 fi
37529 ac_res=`eval echo '${'$as_ac_var'}'`
37530                { echo "$as_me:$LINENO: result: $ac_res" >&5
37531 echo "${ECHO_T}$ac_res" >&6; }
37532 if test `eval echo '${'$as_ac_var'}'` = yes; then
37533   cat >>confdefs.h <<_ACEOF
37534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37535 _ACEOF
37536
37537 fi
37538 done
37539
37540         if test "$ac_cv_func_getpeerucred" != yes ; then
37541                 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37542 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37543 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37544   echo $ECHO_N "(cached) $ECHO_C" >&6
37545 else
37546   cat >conftest.$ac_ext <<_ACEOF
37547 /* confdefs.h.  */
37548 _ACEOF
37549 cat confdefs.h >>conftest.$ac_ext
37550 cat >>conftest.$ac_ext <<_ACEOF
37551 /* end confdefs.h.  */
37552 $ac_includes_default
37553 #ifdef HAVE_SYS_SOCKET_H
37554 #include <sys/socket.h>
37555 #endif
37556
37557 int
37558 main ()
37559 {
37560 static struct msghdr ac_aggr;
37561 if (ac_aggr.msg_accrightslen)
37562 return 0;
37563   ;
37564   return 0;
37565 }
37566 _ACEOF
37567 rm -f conftest.$ac_objext
37568 if { (ac_try="$ac_compile"
37569 case "(($ac_try" in
37570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37571   *) ac_try_echo=$ac_try;;
37572 esac
37573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37574   (eval "$ac_compile") 2>conftest.er1
37575   ac_status=$?
37576   grep -v '^ *+' conftest.er1 >conftest.err
37577   rm -f conftest.er1
37578   cat conftest.err >&5
37579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37580   (exit $ac_status); } && {
37581          test -z "$ac_c_werror_flag" ||
37582          test ! -s conftest.err
37583        } && test -s conftest.$ac_objext; then
37584   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37585 else
37586   echo "$as_me: failed program was:" >&5
37587 sed 's/^/| /' conftest.$ac_ext >&5
37588
37589         cat >conftest.$ac_ext <<_ACEOF
37590 /* confdefs.h.  */
37591 _ACEOF
37592 cat confdefs.h >>conftest.$ac_ext
37593 cat >>conftest.$ac_ext <<_ACEOF
37594 /* end confdefs.h.  */
37595 $ac_includes_default
37596 #ifdef HAVE_SYS_SOCKET_H
37597 #include <sys/socket.h>
37598 #endif
37599
37600 int
37601 main ()
37602 {
37603 static struct msghdr ac_aggr;
37604 if (sizeof ac_aggr.msg_accrightslen)
37605 return 0;
37606   ;
37607   return 0;
37608 }
37609 _ACEOF
37610 rm -f conftest.$ac_objext
37611 if { (ac_try="$ac_compile"
37612 case "(($ac_try" in
37613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37614   *) ac_try_echo=$ac_try;;
37615 esac
37616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37617   (eval "$ac_compile") 2>conftest.er1
37618   ac_status=$?
37619   grep -v '^ *+' conftest.er1 >conftest.err
37620   rm -f conftest.er1
37621   cat conftest.err >&5
37622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37623   (exit $ac_status); } && {
37624          test -z "$ac_c_werror_flag" ||
37625          test ! -s conftest.err
37626        } && test -s conftest.$ac_objext; then
37627   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37628 else
37629   echo "$as_me: failed program was:" >&5
37630 sed 's/^/| /' conftest.$ac_ext >&5
37631
37632         ac_cv_member_struct_msghdr_msg_accrightslen=no
37633 fi
37634
37635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37636 fi
37637
37638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37639 fi
37640 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37641 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37642 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37643
37644 cat >>confdefs.h <<_ACEOF
37645 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37646 _ACEOF
37647
37648
37649 fi
37650
37651                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37652                         { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37653 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37654 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37655   echo $ECHO_N "(cached) $ECHO_C" >&6
37656 else
37657   cat >conftest.$ac_ext <<_ACEOF
37658 /* confdefs.h.  */
37659 _ACEOF
37660 cat confdefs.h >>conftest.$ac_ext
37661 cat >>conftest.$ac_ext <<_ACEOF
37662 /* end confdefs.h.  */
37663 $ac_includes_default
37664 #ifdef HAVE_SYS_SOCKET_H
37665 #include <sys/socket.h>
37666 #endif
37667
37668 int
37669 main ()
37670 {
37671 static struct msghdr ac_aggr;
37672 if (ac_aggr.msg_control)
37673 return 0;
37674   ;
37675   return 0;
37676 }
37677 _ACEOF
37678 rm -f conftest.$ac_objext
37679 if { (ac_try="$ac_compile"
37680 case "(($ac_try" in
37681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37682   *) ac_try_echo=$ac_try;;
37683 esac
37684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37685   (eval "$ac_compile") 2>conftest.er1
37686   ac_status=$?
37687   grep -v '^ *+' conftest.er1 >conftest.err
37688   rm -f conftest.er1
37689   cat conftest.err >&5
37690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691   (exit $ac_status); } && {
37692          test -z "$ac_c_werror_flag" ||
37693          test ! -s conftest.err
37694        } && test -s conftest.$ac_objext; then
37695   ac_cv_member_struct_msghdr_msg_control=yes
37696 else
37697   echo "$as_me: failed program was:" >&5
37698 sed 's/^/| /' conftest.$ac_ext >&5
37699
37700         cat >conftest.$ac_ext <<_ACEOF
37701 /* confdefs.h.  */
37702 _ACEOF
37703 cat confdefs.h >>conftest.$ac_ext
37704 cat >>conftest.$ac_ext <<_ACEOF
37705 /* end confdefs.h.  */
37706 $ac_includes_default
37707 #ifdef HAVE_SYS_SOCKET_H
37708 #include <sys/socket.h>
37709 #endif
37710
37711 int
37712 main ()
37713 {
37714 static struct msghdr ac_aggr;
37715 if (sizeof ac_aggr.msg_control)
37716 return 0;
37717   ;
37718   return 0;
37719 }
37720 _ACEOF
37721 rm -f conftest.$ac_objext
37722 if { (ac_try="$ac_compile"
37723 case "(($ac_try" in
37724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37725   *) ac_try_echo=$ac_try;;
37726 esac
37727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37728   (eval "$ac_compile") 2>conftest.er1
37729   ac_status=$?
37730   grep -v '^ *+' conftest.er1 >conftest.err
37731   rm -f conftest.er1
37732   cat conftest.err >&5
37733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734   (exit $ac_status); } && {
37735          test -z "$ac_c_werror_flag" ||
37736          test ! -s conftest.err
37737        } && test -s conftest.$ac_objext; then
37738   ac_cv_member_struct_msghdr_msg_control=yes
37739 else
37740   echo "$as_me: failed program was:" >&5
37741 sed 's/^/| /' conftest.$ac_ext >&5
37742
37743         ac_cv_member_struct_msghdr_msg_control=no
37744 fi
37745
37746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37747 fi
37748
37749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37750 fi
37751 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37752 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37753 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37754
37755 cat >>confdefs.h <<_ACEOF
37756 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37757 _ACEOF
37758
37759
37760 fi
37761
37762                 fi
37763                 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37764 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37765 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37766   echo $ECHO_N "(cached) $ECHO_C" >&6
37767 else
37768   cat >conftest.$ac_ext <<_ACEOF
37769 /* confdefs.h.  */
37770 _ACEOF
37771 cat confdefs.h >>conftest.$ac_ext
37772 cat >>conftest.$ac_ext <<_ACEOF
37773 /* end confdefs.h.  */
37774 $ac_includes_default
37775 int
37776 main ()
37777 {
37778 static struct stat ac_aggr;
37779 if (ac_aggr.st_fstype)
37780 return 0;
37781   ;
37782   return 0;
37783 }
37784 _ACEOF
37785 rm -f conftest.$ac_objext
37786 if { (ac_try="$ac_compile"
37787 case "(($ac_try" in
37788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37789   *) ac_try_echo=$ac_try;;
37790 esac
37791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37792   (eval "$ac_compile") 2>conftest.er1
37793   ac_status=$?
37794   grep -v '^ *+' conftest.er1 >conftest.err
37795   rm -f conftest.er1
37796   cat conftest.err >&5
37797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37798   (exit $ac_status); } && {
37799          test -z "$ac_c_werror_flag" ||
37800          test ! -s conftest.err
37801        } && test -s conftest.$ac_objext; then
37802   ac_cv_member_struct_stat_st_fstype=yes
37803 else
37804   echo "$as_me: failed program was:" >&5
37805 sed 's/^/| /' conftest.$ac_ext >&5
37806
37807         cat >conftest.$ac_ext <<_ACEOF
37808 /* confdefs.h.  */
37809 _ACEOF
37810 cat confdefs.h >>conftest.$ac_ext
37811 cat >>conftest.$ac_ext <<_ACEOF
37812 /* end confdefs.h.  */
37813 $ac_includes_default
37814 int
37815 main ()
37816 {
37817 static struct stat ac_aggr;
37818 if (sizeof ac_aggr.st_fstype)
37819 return 0;
37820   ;
37821   return 0;
37822 }
37823 _ACEOF
37824 rm -f conftest.$ac_objext
37825 if { (ac_try="$ac_compile"
37826 case "(($ac_try" in
37827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37828   *) ac_try_echo=$ac_try;;
37829 esac
37830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37831   (eval "$ac_compile") 2>conftest.er1
37832   ac_status=$?
37833   grep -v '^ *+' conftest.er1 >conftest.err
37834   rm -f conftest.er1
37835   cat conftest.err >&5
37836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37837   (exit $ac_status); } && {
37838          test -z "$ac_c_werror_flag" ||
37839          test ! -s conftest.err
37840        } && test -s conftest.$ac_objext; then
37841   ac_cv_member_struct_stat_st_fstype=yes
37842 else
37843   echo "$as_me: failed program was:" >&5
37844 sed 's/^/| /' conftest.$ac_ext >&5
37845
37846         ac_cv_member_struct_stat_st_fstype=no
37847 fi
37848
37849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37850 fi
37851
37852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37853 fi
37854 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37855 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37856 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37857
37858 cat >>confdefs.h <<_ACEOF
37859 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37860 _ACEOF
37861
37862
37863 fi
37864 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37865 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37866 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37867   echo $ECHO_N "(cached) $ECHO_C" >&6
37868 else
37869   cat >conftest.$ac_ext <<_ACEOF
37870 /* confdefs.h.  */
37871 _ACEOF
37872 cat confdefs.h >>conftest.$ac_ext
37873 cat >>conftest.$ac_ext <<_ACEOF
37874 /* end confdefs.h.  */
37875 $ac_includes_default
37876 int
37877 main ()
37878 {
37879 static struct stat ac_aggr;
37880 if (ac_aggr.st_vfstype)
37881 return 0;
37882   ;
37883   return 0;
37884 }
37885 _ACEOF
37886 rm -f conftest.$ac_objext
37887 if { (ac_try="$ac_compile"
37888 case "(($ac_try" in
37889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37890   *) ac_try_echo=$ac_try;;
37891 esac
37892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37893   (eval "$ac_compile") 2>conftest.er1
37894   ac_status=$?
37895   grep -v '^ *+' conftest.er1 >conftest.err
37896   rm -f conftest.er1
37897   cat conftest.err >&5
37898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37899   (exit $ac_status); } && {
37900          test -z "$ac_c_werror_flag" ||
37901          test ! -s conftest.err
37902        } && test -s conftest.$ac_objext; then
37903   ac_cv_member_struct_stat_st_vfstype=yes
37904 else
37905   echo "$as_me: failed program was:" >&5
37906 sed 's/^/| /' conftest.$ac_ext >&5
37907
37908         cat >conftest.$ac_ext <<_ACEOF
37909 /* confdefs.h.  */
37910 _ACEOF
37911 cat confdefs.h >>conftest.$ac_ext
37912 cat >>conftest.$ac_ext <<_ACEOF
37913 /* end confdefs.h.  */
37914 $ac_includes_default
37915 int
37916 main ()
37917 {
37918 static struct stat ac_aggr;
37919 if (sizeof ac_aggr.st_vfstype)
37920 return 0;
37921   ;
37922   return 0;
37923 }
37924 _ACEOF
37925 rm -f conftest.$ac_objext
37926 if { (ac_try="$ac_compile"
37927 case "(($ac_try" in
37928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37929   *) ac_try_echo=$ac_try;;
37930 esac
37931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37932   (eval "$ac_compile") 2>conftest.er1
37933   ac_status=$?
37934   grep -v '^ *+' conftest.er1 >conftest.err
37935   rm -f conftest.er1
37936   cat conftest.err >&5
37937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37938   (exit $ac_status); } && {
37939          test -z "$ac_c_werror_flag" ||
37940          test ! -s conftest.err
37941        } && test -s conftest.$ac_objext; then
37942   ac_cv_member_struct_stat_st_vfstype=yes
37943 else
37944   echo "$as_me: failed program was:" >&5
37945 sed 's/^/| /' conftest.$ac_ext >&5
37946
37947         ac_cv_member_struct_stat_st_vfstype=no
37948 fi
37949
37950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37951 fi
37952
37953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37954 fi
37955 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37956 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37957 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37958
37959 cat >>confdefs.h <<_ACEOF
37960 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37961 _ACEOF
37962
37963
37964 fi
37965
37966                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37967                         cat >conftest.$ac_ext <<_ACEOF
37968 struct stat st; char *ptr=st.st_fstype;
37969 _ACEOF
37970 rm -f conftest.$ac_objext
37971 if { (ac_try="$ac_compile"
37972 case "(($ac_try" in
37973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37974   *) ac_try_echo=$ac_try;;
37975 esac
37976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37977   (eval "$ac_compile") 2>conftest.er1
37978   ac_status=$?
37979   grep -v '^ *+' conftest.er1 >conftest.err
37980   rm -f conftest.er1
37981   cat conftest.err >&5
37982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37983   (exit $ac_status); } && {
37984          test -z "$ac_c_werror_flag" ||
37985          test ! -s conftest.err
37986        } && test -s conftest.$ac_objext; then
37987
37988 cat >>confdefs.h <<\_ACEOF
37989 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37990 _ACEOF
37991
37992 else
37993   echo "$as_me: failed program was:" >&5
37994 sed 's/^/| /' conftest.$ac_ext >&5
37995
37996
37997 cat >>confdefs.h <<\_ACEOF
37998 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37999 _ACEOF
38000
38001 fi
38002
38003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38004                 fi
38005         fi
38006         LIBSRCS="$LIBSRCS getpeereid.c"
38007 fi
38008
38009 if test "$ac_cv_func_snprintf" != yes ||
38010    test "$ac_cv_func_vsnprintf" != yes; then
38011         if test "$ac_cv_func_snprintf" != yes; then
38012
38013 cat >>confdefs.h <<\_ACEOF
38014 #define snprintf ber_pvt_snprintf
38015 _ACEOF
38016
38017         fi
38018         if test "$ac_cv_func_vsnprintf" != yes; then
38019
38020 cat >>confdefs.h <<\_ACEOF
38021 #define vsnprintf ber_pvt_vsnprintf
38022 _ACEOF
38023
38024         fi
38025 fi
38026
38027
38028 if test "$ol_enable_slapi" != no ; then
38029
38030 for ac_header in ltdl.h
38031 do
38032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38034   { echo "$as_me:$LINENO: checking for $ac_header" >&5
38035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38037   echo $ECHO_N "(cached) $ECHO_C" >&6
38038 fi
38039 ac_res=`eval echo '${'$as_ac_Header'}'`
38040                { echo "$as_me:$LINENO: result: $ac_res" >&5
38041 echo "${ECHO_T}$ac_res" >&6; }
38042 else
38043   # Is the header compilable?
38044 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38046 cat >conftest.$ac_ext <<_ACEOF
38047 /* confdefs.h.  */
38048 _ACEOF
38049 cat confdefs.h >>conftest.$ac_ext
38050 cat >>conftest.$ac_ext <<_ACEOF
38051 /* end confdefs.h.  */
38052 $ac_includes_default
38053 #include <$ac_header>
38054 _ACEOF
38055 rm -f conftest.$ac_objext
38056 if { (ac_try="$ac_compile"
38057 case "(($ac_try" in
38058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38059   *) ac_try_echo=$ac_try;;
38060 esac
38061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38062   (eval "$ac_compile") 2>conftest.er1
38063   ac_status=$?
38064   grep -v '^ *+' conftest.er1 >conftest.err
38065   rm -f conftest.er1
38066   cat conftest.err >&5
38067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068   (exit $ac_status); } && {
38069          test -z "$ac_c_werror_flag" ||
38070          test ! -s conftest.err
38071        } && test -s conftest.$ac_objext; then
38072   ac_header_compiler=yes
38073 else
38074   echo "$as_me: failed program was:" >&5
38075 sed 's/^/| /' conftest.$ac_ext >&5
38076
38077         ac_header_compiler=no
38078 fi
38079
38080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38082 echo "${ECHO_T}$ac_header_compiler" >&6; }
38083
38084 # Is the header present?
38085 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38087 cat >conftest.$ac_ext <<_ACEOF
38088 /* confdefs.h.  */
38089 _ACEOF
38090 cat confdefs.h >>conftest.$ac_ext
38091 cat >>conftest.$ac_ext <<_ACEOF
38092 /* end confdefs.h.  */
38093 #include <$ac_header>
38094 _ACEOF
38095 if { (ac_try="$ac_cpp conftest.$ac_ext"
38096 case "(($ac_try" in
38097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38098   *) ac_try_echo=$ac_try;;
38099 esac
38100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38101   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38102   ac_status=$?
38103   grep -v '^ *+' conftest.er1 >conftest.err
38104   rm -f conftest.er1
38105   cat conftest.err >&5
38106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38107   (exit $ac_status); } >/dev/null && {
38108          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38109          test ! -s conftest.err
38110        }; then
38111   ac_header_preproc=yes
38112 else
38113   echo "$as_me: failed program was:" >&5
38114 sed 's/^/| /' conftest.$ac_ext >&5
38115
38116   ac_header_preproc=no
38117 fi
38118
38119 rm -f conftest.err conftest.$ac_ext
38120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38121 echo "${ECHO_T}$ac_header_preproc" >&6; }
38122
38123 # So?  What about this header?
38124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38125   yes:no: )
38126     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38130     ac_header_preproc=yes
38131     ;;
38132   no:yes:* )
38133     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38135     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38136 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38137     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38139     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38140 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38143     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38145     ( cat <<\_ASBOX
38146 ## --------------------------------------------- ##
38147 ## Report this to <http://www.openldap.org/its/> ##
38148 ## --------------------------------------------- ##
38149 _ASBOX
38150      ) | sed "s/^/$as_me: WARNING:     /" >&2
38151     ;;
38152 esac
38153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38156   echo $ECHO_N "(cached) $ECHO_C" >&6
38157 else
38158   eval "$as_ac_Header=\$ac_header_preproc"
38159 fi
38160 ac_res=`eval echo '${'$as_ac_Header'}'`
38161                { echo "$as_me:$LINENO: result: $ac_res" >&5
38162 echo "${ECHO_T}$ac_res" >&6; }
38163
38164 fi
38165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38166   cat >>confdefs.h <<_ACEOF
38167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38168 _ACEOF
38169
38170 fi
38171
38172 done
38173
38174
38175         if test $ac_cv_header_ltdl_h != yes ; then
38176                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38177 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38178    { (exit 1); exit 1; }; }
38179         fi
38180         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38181 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38182 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38183   echo $ECHO_N "(cached) $ECHO_C" >&6
38184 else
38185   ac_check_lib_save_LIBS=$LIBS
38186 LIBS="-lltdl  $LIBS"
38187 cat >conftest.$ac_ext <<_ACEOF
38188 /* confdefs.h.  */
38189 _ACEOF
38190 cat confdefs.h >>conftest.$ac_ext
38191 cat >>conftest.$ac_ext <<_ACEOF
38192 /* end confdefs.h.  */
38193
38194 /* Override any GCC internal prototype to avoid an error.
38195    Use char because int might match the return type of a GCC
38196    builtin and then its argument prototype would still apply.  */
38197 #ifdef __cplusplus
38198 extern "C"
38199 #endif
38200 char lt_dlinit ();
38201 int
38202 main ()
38203 {
38204 return lt_dlinit ();
38205   ;
38206   return 0;
38207 }
38208 _ACEOF
38209 rm -f conftest.$ac_objext conftest$ac_exeext
38210 if { (ac_try="$ac_link"
38211 case "(($ac_try" in
38212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38213   *) ac_try_echo=$ac_try;;
38214 esac
38215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38216   (eval "$ac_link") 2>conftest.er1
38217   ac_status=$?
38218   grep -v '^ *+' conftest.er1 >conftest.err
38219   rm -f conftest.er1
38220   cat conftest.err >&5
38221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38222   (exit $ac_status); } && {
38223          test -z "$ac_c_werror_flag" ||
38224          test ! -s conftest.err
38225        } && test -s conftest$ac_exeext &&
38226        $as_test_x conftest$ac_exeext; then
38227   ac_cv_lib_ltdl_lt_dlinit=yes
38228 else
38229   echo "$as_me: failed program was:" >&5
38230 sed 's/^/| /' conftest.$ac_ext >&5
38231
38232         ac_cv_lib_ltdl_lt_dlinit=no
38233 fi
38234
38235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38236       conftest$ac_exeext conftest.$ac_ext
38237 LIBS=$ac_check_lib_save_LIBS
38238 fi
38239 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38240 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38241 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38242
38243                 SLAPI_LIBS=-lltdl
38244                 LIBSLAPI=libslapi.a
38245                 LIBSLAPITOOLS=../libslapi.a
38246
38247 cat >>confdefs.h <<\_ACEOF
38248 #define HAVE_LIBLTDL 1
38249 _ACEOF
38250
38251
38252 else
38253   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38254 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38255    { (exit 1); exit 1; }; }
38256 fi
38257
38258
38259
38260 cat >>confdefs.h <<\_ACEOF
38261 #define LDAP_SLAPI 1
38262 _ACEOF
38263
38264 fi
38265
38266 if test "$ol_enable_debug" != no ; then
38267         if test "$ol_enable_debug" = traditional; then
38268
38269 cat >>confdefs.h <<\_ACEOF
38270 #define OLD_DEBUG 1
38271 _ACEOF
38272
38273         fi
38274
38275 cat >>confdefs.h <<\_ACEOF
38276 #define LDAP_DEBUG 1
38277 _ACEOF
38278
38279 fi
38280 if test "$ol_enable_syslog" = yes ; then
38281
38282 cat >>confdefs.h <<\_ACEOF
38283 #define LDAP_SYSLOG 1
38284 _ACEOF
38285
38286 fi
38287 if test "$ol_enable_proctitle" != no ; then
38288
38289 cat >>confdefs.h <<\_ACEOF
38290 #define LDAP_PROCTITLE 1
38291 _ACEOF
38292
38293 fi
38294 if test "$ol_enable_referrals" != no ; then
38295
38296 cat >>confdefs.h <<\_ACEOF
38297 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38298 _ACEOF
38299
38300 fi
38301 if test "$ol_enable_local" != no; then
38302
38303 cat >>confdefs.h <<\_ACEOF
38304 #define LDAP_PF_LOCAL 1
38305 _ACEOF
38306
38307 fi
38308 if test "$ol_link_ipv6" != no; then
38309
38310 cat >>confdefs.h <<\_ACEOF
38311 #define LDAP_PF_INET6 1
38312 _ACEOF
38313
38314 fi
38315 if test "$ol_enable_cleartext" != no ; then
38316
38317 cat >>confdefs.h <<\_ACEOF
38318 #define SLAPD_CLEARTEXT 1
38319 _ACEOF
38320
38321 fi
38322 if test "$ol_enable_crypt" != no ; then
38323
38324 cat >>confdefs.h <<\_ACEOF
38325 #define SLAPD_CRYPT 1
38326 _ACEOF
38327
38328 fi
38329 if test "$ol_link_spasswd" != no ; then
38330
38331 cat >>confdefs.h <<\_ACEOF
38332 #define SLAPD_SPASSWD 1
38333 _ACEOF
38334
38335 fi
38336 if test "$ol_enable_rlookups" != no ; then
38337
38338 cat >>confdefs.h <<\_ACEOF
38339 #define SLAPD_RLOOKUPS 1
38340 _ACEOF
38341
38342 fi
38343 if test "$ol_enable_aci" != no ; then
38344         if test $ol_enable_dynacl = no ; then
38345                 ol_enable_dynacl=yes
38346                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38347 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38348         fi
38349         if test "$ol_enable_aci" = mod ; then
38350                 MFLAG=SLAPD_MOD_DYNAMIC
38351                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38352 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38353    { (exit 1); exit 1; }; }
38354         else
38355                 MFLAG=SLAPD_MOD_STATIC
38356         fi
38357         WITH_ACI_ENABLED=$ol_enable_aci
38358
38359 cat >>confdefs.h <<_ACEOF
38360 #define SLAPD_ACI_ENABLED $MFLAG
38361 _ACEOF
38362
38363 else
38364         WITH_ACI_ENABLED=no
38365 fi
38366 if test "$ol_enable_dynacl" != no ; then
38367
38368 cat >>confdefs.h <<\_ACEOF
38369 #define SLAP_DYNACL 1
38370 _ACEOF
38371
38372 fi
38373
38374 if test "$ol_link_modules" != no ; then
38375
38376 cat >>confdefs.h <<\_ACEOF
38377 #define SLAPD_MODULES 1
38378 _ACEOF
38379
38380         BUILD_SLAPD=yes
38381         SLAPD_MODULES_LDFLAGS="-dlopen self"
38382 fi
38383
38384
38385 cat >>confdefs.h <<\_ACEOF
38386 #define SLAPD_MOD_STATIC 1
38387 _ACEOF
38388
38389
38390 cat >>confdefs.h <<\_ACEOF
38391 #define SLAPD_MOD_DYNAMIC 2
38392 _ACEOF
38393
38394
38395 if test "$ol_enable_monitor" != no ; then
38396         BUILD_SLAPD=yes
38397         BUILD_MONITOR=$ol_enable_monitor
38398         if test "$ol_enable_monitor" = mod ; then
38399                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38400                 MFLAG=SLAPD_MOD_DYNAMIC
38401         else
38402                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38403                 MFLAG=SLAPD_MOD_STATIC
38404         fi
38405
38406 cat >>confdefs.h <<_ACEOF
38407 #define SLAPD_MONITOR $MFLAG
38408 _ACEOF
38409
38410 fi
38411
38412 if test "$ol_enable_bdb" != no ; then
38413         BUILD_SLAPD=yes
38414         BUILD_BDB=$ol_enable_bdb
38415         if test "$ol_enable_bdb" = mod ; then
38416                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38417                 MFLAG=SLAPD_MOD_DYNAMIC
38418         else
38419                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38420                 MFLAG=SLAPD_MOD_STATIC
38421         fi
38422
38423 cat >>confdefs.h <<_ACEOF
38424 #define SLAPD_BDB $MFLAG
38425 _ACEOF
38426
38427 fi
38428
38429 if test "$ol_enable_dnssrv" != no ; then
38430         BUILD_SLAPD=yes
38431         BUILD_DNSSRV=$ol_enable_dnssrv
38432         if test "$ol_enable_dnssrv" = mod ; then
38433                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38434                 MFLAG=SLAPD_MOD_DYNAMIC
38435         else
38436                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38437                 MFLAG=SLAPD_MOD_STATIC
38438         fi
38439
38440 cat >>confdefs.h <<_ACEOF
38441 #define SLAPD_DNSSRV $MFLAG
38442 _ACEOF
38443
38444 fi
38445
38446 if test "$ol_enable_hdb" != no ; then
38447         BUILD_SLAPD=yes
38448         BUILD_HDB=$ol_enable_hdb
38449         if test "$ol_enable_hdb" = mod ; then
38450                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38451                 MFLAG=SLAPD_MOD_DYNAMIC
38452         else
38453                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38454                 MFLAG=SLAPD_MOD_STATIC
38455         fi
38456
38457 cat >>confdefs.h <<_ACEOF
38458 #define SLAPD_HDB $MFLAG
38459 _ACEOF
38460
38461 fi
38462
38463 if test "$ol_enable_ldap" != no ; then
38464         BUILD_SLAPD=yes
38465         BUILD_LDAP=$ol_enable_ldap
38466         if test "$ol_enable_ldap" = mod ; then
38467                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38468                 MFLAG=SLAPD_MOD_DYNAMIC
38469         else
38470                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38471                 MFLAG=SLAPD_MOD_STATIC
38472         fi
38473
38474 cat >>confdefs.h <<_ACEOF
38475 #define SLAPD_LDAP $MFLAG
38476 _ACEOF
38477
38478 fi
38479
38480 if test "$ol_enable_meta" != no ; then
38481         BUILD_SLAPD=yes
38482         BUILD_META=$ol_enable_meta
38483         BUILD_REWRITE=yes
38484         if test "$ol_enable_meta" = mod ; then
38485                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38486                 MFLAG=SLAPD_MOD_DYNAMIC
38487         else
38488                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38489                 MFLAG=SLAPD_MOD_STATIC
38490         fi
38491
38492 cat >>confdefs.h <<_ACEOF
38493 #define SLAPD_META $MFLAG
38494 _ACEOF
38495
38496 fi
38497
38498 if test "$ol_enable_ndb" != no ; then
38499         BUILD_SLAPD=yes
38500         BUILD_NDB=$ol_enable_ndb
38501         if test "$ol_enable_ndb" = mod ; then
38502                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38503                 MFLAG=SLAPD_MOD_DYNAMIC
38504         else
38505                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38506                 MFLAG=SLAPD_MOD_STATIC
38507         fi
38508
38509 cat >>confdefs.h <<_ACEOF
38510 #define SLAPD_NDB $MFLAG
38511 _ACEOF
38512
38513 fi
38514
38515 if test "$ol_enable_null" != no ; then
38516         BUILD_SLAPD=yes
38517         BUILD_NULL=$ol_enable_null
38518         if test "$ol_enable_null" = mod ; then
38519                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38520                 MFLAG=SLAPD_MOD_DYNAMIC
38521         else
38522                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38523                 MFLAG=SLAPD_MOD_STATIC
38524         fi
38525
38526 cat >>confdefs.h <<_ACEOF
38527 #define SLAPD_NULL $MFLAG
38528 _ACEOF
38529
38530 fi
38531
38532 if test "$ol_enable_passwd" != no ; then
38533         BUILD_SLAPD=yes
38534         BUILD_PASSWD=$ol_enable_passwd
38535         if test "$ol_enable_passwd" = mod ; then
38536                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38537                 MFLAG=SLAPD_MOD_DYNAMIC
38538         else
38539                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38540                 MFLAG=SLAPD_MOD_STATIC
38541         fi
38542
38543 cat >>confdefs.h <<_ACEOF
38544 #define SLAPD_PASSWD $MFLAG
38545 _ACEOF
38546
38547 fi
38548
38549 if test "$ol_link_perl" != no ; then
38550         BUILD_SLAPD=yes
38551         BUILD_PERL=$ol_enable_perl
38552         if test "$ol_enable_perl" = mod ; then
38553                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38554                 MFLAG=SLAPD_MOD_DYNAMIC
38555         else
38556                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38557                 MFLAG=SLAPD_MOD_STATIC
38558         fi
38559
38560 cat >>confdefs.h <<_ACEOF
38561 #define SLAPD_PERL $MFLAG
38562 _ACEOF
38563
38564 fi
38565
38566 if test "$ol_enable_relay" != no ; then
38567         BUILD_SLAPD=yes
38568         BUILD_RELAY=$ol_enable_relay
38569         if test "$ol_enable_relay" = mod ; then
38570                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38571                 MFLAG=SLAPD_MOD_DYNAMIC
38572         else
38573                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38574                 MFLAG=SLAPD_MOD_STATIC
38575         fi
38576
38577 cat >>confdefs.h <<_ACEOF
38578 #define SLAPD_RELAY $MFLAG
38579 _ACEOF
38580
38581 fi
38582
38583 if test "$ol_enable_shell" != no ; then
38584         if test "$ol_link_threads" != no ; then
38585                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38586 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38587         fi
38588         BUILD_SLAPD=yes
38589         BUILD_SHELL=$ol_enable_shell
38590         if test "$ol_enable_shell" = mod ; then
38591                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38592                 MFLAG=SLAPD_MOD_DYNAMIC
38593         else
38594                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38595                 MFLAG=SLAPD_MOD_STATIC
38596         fi
38597
38598 cat >>confdefs.h <<_ACEOF
38599 #define SLAPD_SHELL $MFLAG
38600 _ACEOF
38601
38602 fi
38603
38604 if test "$ol_enable_sock" != no ; then
38605         BUILD_SLAPD=yes
38606         BUILD_SOCK=$ol_enable_sock
38607         if test "$ol_enable_sock" = mod ; then
38608                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38609                 MFLAG=SLAPD_MOD_DYNAMIC
38610         else
38611                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38612                 MFLAG=SLAPD_MOD_STATIC
38613         fi
38614
38615 cat >>confdefs.h <<_ACEOF
38616 #define SLAPD_SOCK $MFLAG
38617 _ACEOF
38618
38619 fi
38620
38621 if test "$ol_link_sql" != no ; then
38622         BUILD_SLAPD=yes
38623         BUILD_SQL=$ol_enable_sql
38624         if test "$ol_enable_sql" = mod; then
38625                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38626                 MFLAG=SLAPD_MOD_DYNAMIC
38627         else
38628                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38629                 MFLAG=SLAPD_MOD_STATIC
38630         fi
38631
38632 cat >>confdefs.h <<_ACEOF
38633 #define SLAPD_SQL $MFLAG
38634 _ACEOF
38635
38636 fi
38637
38638 if test "$ol_enable_accesslog" != no ; then
38639         BUILD_ACCESSLOG=$ol_enable_accesslog
38640         if test "$ol_enable_accesslog" = mod ; then
38641                 MFLAG=SLAPD_MOD_DYNAMIC
38642                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38643         else
38644                 MFLAG=SLAPD_MOD_STATIC
38645                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38646         fi
38647
38648 cat >>confdefs.h <<_ACEOF
38649 #define SLAPD_OVER_ACCESSLOG $MFLAG
38650 _ACEOF
38651
38652 fi
38653
38654 if test "$ol_enable_auditlog" != no ; then
38655         BUILD_AUDITLOG=$ol_enable_auditlog
38656         if test "$ol_enable_auditlog" = mod ; then
38657                 MFLAG=SLAPD_MOD_DYNAMIC
38658                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38659         else
38660                 MFLAG=SLAPD_MOD_STATIC
38661                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38662         fi
38663
38664 cat >>confdefs.h <<_ACEOF
38665 #define SLAPD_OVER_AUDITLOG $MFLAG
38666 _ACEOF
38667
38668 fi
38669
38670 if test "$ol_enable_collect" != no ; then
38671         BUILD_COLLECT=$ol_enable_collect
38672         if test "$ol_enable_collect" = mod ; then
38673                 MFLAG=SLAPD_MOD_DYNAMIC
38674                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38675         else
38676                 MFLAG=SLAPD_MOD_STATIC
38677                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38678         fi
38679
38680 cat >>confdefs.h <<_ACEOF
38681 #define SLAPD_OVER_COLLECT $MFLAG
38682 _ACEOF
38683
38684 fi
38685
38686 if test "$ol_enable_constraint" != no ; then
38687         BUILD_CONSTRAINT=$ol_enable_constraint
38688         if test "$ol_enable_constraint" = mod ; then
38689                 MFLAG=SLAPD_MOD_DYNAMIC
38690                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38691         else
38692                 MFLAG=SLAPD_MOD_STATIC
38693                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38694         fi
38695
38696 cat >>confdefs.h <<_ACEOF
38697 #define SLAPD_OVER_CONSTRAINT $MFLAG
38698 _ACEOF
38699
38700 fi
38701
38702 if test "$ol_enable_dds" != no ; then
38703         BUILD_DDS=$ol_enable_dds
38704         if test "$ol_enable_dds" = mod ; then
38705                 MFLAG=SLAPD_MOD_DYNAMIC
38706                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38707         else
38708                 MFLAG=SLAPD_MOD_STATIC
38709                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38710         fi
38711
38712 cat >>confdefs.h <<_ACEOF
38713 #define SLAPD_OVER_DDS $MFLAG
38714 _ACEOF
38715
38716 fi
38717
38718 if test "$ol_enable_deref" != no ; then
38719         BUILD_DDS=$ol_enable_deref
38720         if test "$ol_enable_deref" = mod ; then
38721                 MFLAG=SLAPD_MOD_DYNAMIC
38722                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38723         else
38724                 MFLAG=SLAPD_MOD_STATIC
38725                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38726         fi
38727
38728 cat >>confdefs.h <<_ACEOF
38729 #define SLAPD_OVER_DEREF $MFLAG
38730 _ACEOF
38731
38732 fi
38733
38734 if test "$ol_enable_dyngroup" != no ; then
38735         BUILD_DYNGROUP=$ol_enable_dyngroup
38736         if test "$ol_enable_dyngroup" = mod ; then
38737                 MFLAG=SLAPD_MOD_DYNAMIC
38738                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38739         else
38740                 MFLAG=SLAPD_MOD_STATIC
38741                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38742         fi
38743
38744 cat >>confdefs.h <<_ACEOF
38745 #define SLAPD_OVER_DYNGROUP $MFLAG
38746 _ACEOF
38747
38748 fi
38749
38750 if test "$ol_enable_dynlist" != no ; then
38751         BUILD_DYNLIST=$ol_enable_dynlist
38752         if test "$ol_enable_dynlist" = mod ; then
38753                 MFLAG=SLAPD_MOD_DYNAMIC
38754                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38755         else
38756                 MFLAG=SLAPD_MOD_STATIC
38757                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38758         fi
38759
38760 cat >>confdefs.h <<_ACEOF
38761 #define SLAPD_OVER_DYNLIST $MFLAG
38762 _ACEOF
38763
38764 fi
38765
38766 if test "$ol_enable_memberof" != no ; then
38767         BUILD_MEMBEROF=$ol_enable_memberof
38768         if test "$ol_enable_memberof" = mod ; then
38769                 MFLAG=SLAPD_MOD_DYNAMIC
38770                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38771         else
38772                 MFLAG=SLAPD_MOD_STATIC
38773                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38774         fi
38775
38776 cat >>confdefs.h <<_ACEOF
38777 #define SLAPD_OVER_MEMBEROF $MFLAG
38778 _ACEOF
38779
38780 fi
38781
38782 if test "$ol_enable_ppolicy" != no ; then
38783         BUILD_PPOLICY=$ol_enable_ppolicy
38784         if test "$ol_enable_ppolicy" = mod ; then
38785                 MFLAG=SLAPD_MOD_DYNAMIC
38786                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38787         else
38788                 MFLAG=SLAPD_MOD_STATIC
38789                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38790         fi
38791
38792 cat >>confdefs.h <<_ACEOF
38793 #define SLAPD_OVER_PPOLICY $MFLAG
38794 _ACEOF
38795
38796 fi
38797
38798 if test "$ol_enable_proxycache" != no ; then
38799         BUILD_PROXYCACHE=$ol_enable_proxycache
38800         if test "$ol_enable_proxycache" = mod ; then
38801                 MFLAG=SLAPD_MOD_DYNAMIC
38802                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38803         else
38804                 MFLAG=SLAPD_MOD_STATIC
38805                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38806         fi
38807
38808 cat >>confdefs.h <<_ACEOF
38809 #define SLAPD_OVER_PROXYCACHE $MFLAG
38810 _ACEOF
38811
38812 fi
38813
38814 if test "$ol_enable_refint" != no ; then
38815         BUILD_REFINT=$ol_enable_refint
38816         if test "$ol_enable_refint" = mod ; then
38817                 MFLAG=SLAPD_MOD_DYNAMIC
38818                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38819         else
38820                 MFLAG=SLAPD_MOD_STATIC
38821                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38822         fi
38823
38824 cat >>confdefs.h <<_ACEOF
38825 #define SLAPD_OVER_REFINT $MFLAG
38826 _ACEOF
38827
38828 fi
38829
38830 if test "$ol_enable_retcode" != no ; then
38831         BUILD_RETCODE=$ol_enable_retcode
38832         if test "$ol_enable_retcode" = mod ; then
38833                 MFLAG=SLAPD_MOD_DYNAMIC
38834                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38835         else
38836                 MFLAG=SLAPD_MOD_STATIC
38837                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38838         fi
38839
38840 cat >>confdefs.h <<_ACEOF
38841 #define SLAPD_OVER_RETCODE $MFLAG
38842 _ACEOF
38843
38844 fi
38845
38846 if test "$ol_enable_rwm" != no ; then
38847         BUILD_REWRITE=yes
38848         BUILD_RWM=$ol_enable_rwm
38849         if test "$ol_enable_rwm" = mod ; then
38850                 MFLAG=SLAPD_MOD_DYNAMIC
38851                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38852         else
38853                 MFLAG=SLAPD_MOD_STATIC
38854                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38855         fi
38856
38857 cat >>confdefs.h <<_ACEOF
38858 #define SLAPD_OVER_RWM $MFLAG
38859 _ACEOF
38860
38861 fi
38862
38863 if test "$ol_enable_seqmod" != no ; then
38864         BUILD_SEQMOD=$ol_enable_seqmod
38865         if test "$ol_enable_seqmod" = mod ; then
38866                 MFLAG=SLAPD_MOD_DYNAMIC
38867                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38868         else
38869                 MFLAG=SLAPD_MOD_STATIC
38870                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38871         fi
38872
38873 cat >>confdefs.h <<_ACEOF
38874 #define SLAPD_OVER_SEQMOD $MFLAG
38875 _ACEOF
38876
38877 fi
38878
38879 if test "$ol_enable_syncprov" != no ; then
38880         BUILD_SYNCPROV=$ol_enable_syncprov
38881         if test "$ol_enable_syncprov" = mod ; then
38882                 MFLAG=SLAPD_MOD_DYNAMIC
38883                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38884         else
38885                 MFLAG=SLAPD_MOD_STATIC
38886                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38887         fi
38888
38889 cat >>confdefs.h <<_ACEOF
38890 #define SLAPD_OVER_SYNCPROV $MFLAG
38891 _ACEOF
38892
38893 fi
38894
38895 if test "$ol_enable_translucent" != no ; then
38896         BUILD_TRANSLUCENT=$ol_enable_translucent
38897         if test "$ol_enable_translucent" = mod ; then
38898                 MFLAG=SLAPD_MOD_DYNAMIC
38899                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38900         else
38901                 MFLAG=SLAPD_MOD_STATIC
38902                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38903         fi
38904
38905 cat >>confdefs.h <<_ACEOF
38906 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38907 _ACEOF
38908
38909 fi
38910
38911 if test "$ol_enable_unique" != no ; then
38912         BUILD_UNIQUE=$ol_enable_unique
38913         if test "$ol_enable_unique" = mod ; then
38914                 MFLAG=SLAPD_MOD_DYNAMIC
38915                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38916         else
38917                 MFLAG=SLAPD_MOD_STATIC
38918                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38919         fi
38920
38921 cat >>confdefs.h <<_ACEOF
38922 #define SLAPD_OVER_UNIQUE $MFLAG
38923 _ACEOF
38924
38925 fi
38926
38927 if test "$ol_enable_valsort" != no ; then
38928         BUILD_VALSORT=$ol_enable_valsort
38929         if test "$ol_enable_valsort" = mod ; then
38930                 MFLAG=SLAPD_MOD_DYNAMIC
38931                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38932         else
38933                 MFLAG=SLAPD_MOD_STATIC
38934                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38935         fi
38936
38937 cat >>confdefs.h <<_ACEOF
38938 #define SLAPD_OVER_VALSORT $MFLAG
38939 _ACEOF
38940
38941 fi
38942
38943 if test "$ol_enable_rewrite" != no ; then
38944
38945 cat >>confdefs.h <<\_ACEOF
38946 #define ENABLE_REWRITE 1
38947 _ACEOF
38948
38949         BUILD_REWRITE=yes
38950 fi
38951
38952 if test "$ol_enable_slapi" != no ; then
38953
38954 cat >>confdefs.h <<\_ACEOF
38955 #define ENABLE_SLAPI 1
38956 _ACEOF
38957
38958         BUILD_SLAPI=yes
38959         SLAPD_SLAPI_DEPEND=libslapi.a
38960 fi
38961
38962
38963
38964 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38965         PLAT=NT
38966         SLAPD_MODULES_LDFLAGS=
38967 else
38968         PLAT=UNIX
38969 fi
38970
38971
38972
38973
38974
38975
38976
38977
38978
38979
38980
38981
38982
38983
38984
38985
38986
38987
38988
38989
38990
38991
38992
38993
38994
38995
38996
38997
38998
38999
39000
39001
39002
39003
39004
39005
39006
39007
39008
39009
39010
39011
39012
39013
39014
39015
39016
39017
39018
39019
39020
39021
39022
39023
39024
39025
39026
39027
39028
39029
39030
39031
39032
39033
39034
39035
39036
39037
39038
39039
39040
39041
39042
39043
39044
39045
39046
39047
39048
39049
39050
39051
39052
39053
39054
39055
39056
39057
39058
39059
39060 # Check whether --with-xxinstall was given.
39061 if test "${with_xxinstall+set}" = set; then
39062   withval=$with_xxinstall;
39063 fi
39064
39065
39066
39067 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"
39068
39069
39070 ac_config_commands="$ac_config_commands default"
39071
39072
39073
39074 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39075 # Let make expand exec_prefix.
39076 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39077
39078 DEFS=-DHAVE_CONFIG_H
39079
39080 ac_libobjs=
39081 ac_ltlibobjs=
39082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39083   # 1. Remove the extension, and $U if already installed.
39084   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39085   ac_i=`echo "$ac_i" | sed "$ac_script"`
39086   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39087   #    will be set to the directory where LIBOBJS objects are built.
39088   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39089   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39090 done
39091 LIBOBJS=$ac_libobjs
39092
39093 LTLIBOBJS=$ac_ltlibobjs
39094
39095
39096 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39097   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39098 Usually this means the macro was only invoked conditionally." >&5
39099 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39100 Usually this means the macro was only invoked conditionally." >&2;}
39101    { (exit 1); exit 1; }; }
39102 fi
39103 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39104   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39105 Usually this means the macro was only invoked conditionally." >&5
39106 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39107 Usually this means the macro was only invoked conditionally." >&2;}
39108    { (exit 1); exit 1; }; }
39109 fi
39110 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39111   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39112 Usually this means the macro was only invoked conditionally." >&5
39113 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39114 Usually this means the macro was only invoked conditionally." >&2;}
39115    { (exit 1); exit 1; }; }
39116 fi
39117
39118 : ${CONFIG_STATUS=./config.status}
39119 ac_clean_files_save=$ac_clean_files
39120 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39121 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39122 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39123 cat >$CONFIG_STATUS <<_ACEOF
39124 #! $SHELL
39125 # Generated by $as_me.
39126 # Run this file to recreate the current configuration.
39127 # Compiler output produced by configure, useful for debugging
39128 # configure, is in config.log if it exists.
39129
39130 debug=false
39131 ac_cs_recheck=false
39132 ac_cs_silent=false
39133 SHELL=\${CONFIG_SHELL-$SHELL}
39134 _ACEOF
39135
39136 cat >>$CONFIG_STATUS <<\_ACEOF
39137 ## --------------------- ##
39138 ## M4sh Initialization.  ##
39139 ## --------------------- ##
39140
39141 # Be more Bourne compatible
39142 DUALCASE=1; export DUALCASE # for MKS sh
39143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39144   emulate sh
39145   NULLCMD=:
39146   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39147   # is contrary to our usage.  Disable this feature.
39148   alias -g '${1+"$@"}'='"$@"'
39149   setopt NO_GLOB_SUBST
39150 else
39151   case `(set -o) 2>/dev/null` in
39152   *posix*) set -o posix ;;
39153 esac
39154
39155 fi
39156
39157
39158
39159
39160 # PATH needs CR
39161 # Avoid depending upon Character Ranges.
39162 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39163 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39164 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39165 as_cr_digits='0123456789'
39166 as_cr_alnum=$as_cr_Letters$as_cr_digits
39167
39168 # The user is always right.
39169 if test "${PATH_SEPARATOR+set}" != set; then
39170   echo "#! /bin/sh" >conf$$.sh
39171   echo  "exit 0"   >>conf$$.sh
39172   chmod +x conf$$.sh
39173   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39174     PATH_SEPARATOR=';'
39175   else
39176     PATH_SEPARATOR=:
39177   fi
39178   rm -f conf$$.sh
39179 fi
39180
39181 # Support unset when possible.
39182 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39183   as_unset=unset
39184 else
39185   as_unset=false
39186 fi
39187
39188
39189 # IFS
39190 # We need space, tab and new line, in precisely that order.  Quoting is
39191 # there to prevent editors from complaining about space-tab.
39192 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39193 # splitting by setting IFS to empty value.)
39194 as_nl='
39195 '
39196 IFS=" ""        $as_nl"
39197
39198 # Find who we are.  Look in the path if we contain no directory separator.
39199 case $0 in
39200   *[\\/]* ) as_myself=$0 ;;
39201   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39202 for as_dir in $PATH
39203 do
39204   IFS=$as_save_IFS
39205   test -z "$as_dir" && as_dir=.
39206   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39207 done
39208 IFS=$as_save_IFS
39209
39210      ;;
39211 esac
39212 # We did not find ourselves, most probably we were run as `sh COMMAND'
39213 # in which case we are not to be found in the path.
39214 if test "x$as_myself" = x; then
39215   as_myself=$0
39216 fi
39217 if test ! -f "$as_myself"; then
39218   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39219   { (exit 1); exit 1; }
39220 fi
39221
39222 # Work around bugs in pre-3.0 UWIN ksh.
39223 for as_var in ENV MAIL MAILPATH
39224 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39225 done
39226 PS1='$ '
39227 PS2='> '
39228 PS4='+ '
39229
39230 # NLS nuisances.
39231 for as_var in \
39232   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39233   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39234   LC_TELEPHONE LC_TIME
39235 do
39236   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39237     eval $as_var=C; export $as_var
39238   else
39239     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39240   fi
39241 done
39242
39243 # Required to use basename.
39244 if expr a : '\(a\)' >/dev/null 2>&1 &&
39245    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39246   as_expr=expr
39247 else
39248   as_expr=false
39249 fi
39250
39251 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39252   as_basename=basename
39253 else
39254   as_basename=false
39255 fi
39256
39257
39258 # Name of the executable.
39259 as_me=`$as_basename -- "$0" ||
39260 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39261          X"$0" : 'X\(//\)$' \| \
39262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39263 echo X/"$0" |
39264     sed '/^.*\/\([^/][^/]*\)\/*$/{
39265             s//\1/
39266             q
39267           }
39268           /^X\/\(\/\/\)$/{
39269             s//\1/
39270             q
39271           }
39272           /^X\/\(\/\).*/{
39273             s//\1/
39274             q
39275           }
39276           s/.*/./; q'`
39277
39278 # CDPATH.
39279 $as_unset CDPATH
39280
39281
39282
39283   as_lineno_1=$LINENO
39284   as_lineno_2=$LINENO
39285   test "x$as_lineno_1" != "x$as_lineno_2" &&
39286   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39287
39288   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39289   # uniformly replaced by the line number.  The first 'sed' inserts a
39290   # line-number line after each line using $LINENO; the second 'sed'
39291   # does the real work.  The second script uses 'N' to pair each
39292   # line-number line with the line containing $LINENO, and appends
39293   # trailing '-' during substitution so that $LINENO is not a special
39294   # case at line end.
39295   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39296   # scripts with optimization help from Paolo Bonzini.  Blame Lee
39297   # E. McMahon (1931-1989) for sed's syntax.  :-)
39298   sed -n '
39299     p
39300     /[$]LINENO/=
39301   ' <$as_myself |
39302     sed '
39303       s/[$]LINENO.*/&-/
39304       t lineno
39305       b
39306       :lineno
39307       N
39308       :loop
39309       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39310       t loop
39311       s/-\n.*//
39312     ' >$as_me.lineno &&
39313   chmod +x "$as_me.lineno" ||
39314     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39315    { (exit 1); exit 1; }; }
39316
39317   # Don't try to exec as it changes $[0], causing all sort of problems
39318   # (the dirname of $[0] is not the place where we might find the
39319   # original and so on.  Autoconf is especially sensitive to this).
39320   . "./$as_me.lineno"
39321   # Exit status is that of the last command.
39322   exit
39323 }
39324
39325
39326 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39327   as_dirname=dirname
39328 else
39329   as_dirname=false
39330 fi
39331
39332 ECHO_C= ECHO_N= ECHO_T=
39333 case `echo -n x` in
39334 -n*)
39335   case `echo 'x\c'` in
39336   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
39337   *)   ECHO_C='\c';;
39338   esac;;
39339 *)
39340   ECHO_N='-n';;
39341 esac
39342
39343 if expr a : '\(a\)' >/dev/null 2>&1 &&
39344    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39345   as_expr=expr
39346 else
39347   as_expr=false
39348 fi
39349
39350 rm -f conf$$ conf$$.exe conf$$.file
39351 if test -d conf$$.dir; then
39352   rm -f conf$$.dir/conf$$.file
39353 else
39354   rm -f conf$$.dir
39355   mkdir conf$$.dir
39356 fi
39357 echo >conf$$.file
39358 if ln -s conf$$.file conf$$ 2>/dev/null; then
39359   as_ln_s='ln -s'
39360   # ... but there are two gotchas:
39361   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39362   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39363   # In both cases, we have to default to `cp -p'.
39364   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39365     as_ln_s='cp -p'
39366 elif ln conf$$.file conf$$ 2>/dev/null; then
39367   as_ln_s=ln
39368 else
39369   as_ln_s='cp -p'
39370 fi
39371 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39372 rmdir conf$$.dir 2>/dev/null
39373
39374 if mkdir -p . 2>/dev/null; then
39375   as_mkdir_p=:
39376 else
39377   test -d ./-p && rmdir ./-p
39378   as_mkdir_p=false
39379 fi
39380
39381 if test -x / >/dev/null 2>&1; then
39382   as_test_x='test -x'
39383 else
39384   if ls -dL / >/dev/null 2>&1; then
39385     as_ls_L_option=L
39386   else
39387     as_ls_L_option=
39388   fi
39389   as_test_x='
39390     eval sh -c '\''
39391       if test -d "$1"; then
39392         test -d "$1/.";
39393       else
39394         case $1 in
39395         -*)set "./$1";;
39396         esac;
39397         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39398         ???[sx]*):;;*)false;;esac;fi
39399     '\'' sh
39400   '
39401 fi
39402 as_executable_p=$as_test_x
39403
39404 # Sed expression to map a string onto a valid CPP name.
39405 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39406
39407 # Sed expression to map a string onto a valid variable name.
39408 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39409
39410
39411 exec 6>&1
39412
39413 # Save the log message, to keep $[0] and so on meaningful, and to
39414 # report actual input values of CONFIG_FILES etc. instead of their
39415 # values after options handling.
39416 ac_log="
39417 This file was extended by $as_me, which was
39418 generated by GNU Autoconf 2.61.  Invocation command line was
39419
39420   CONFIG_FILES    = $CONFIG_FILES
39421   CONFIG_HEADERS  = $CONFIG_HEADERS
39422   CONFIG_LINKS    = $CONFIG_LINKS
39423   CONFIG_COMMANDS = $CONFIG_COMMANDS
39424   $ $0 $@
39425
39426 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39427 "
39428
39429 _ACEOF
39430
39431 cat >>$CONFIG_STATUS <<_ACEOF
39432 # Files that config.status was made for.
39433 config_files="$ac_config_files"
39434 config_headers="$ac_config_headers"
39435 config_commands="$ac_config_commands"
39436
39437 _ACEOF
39438
39439 cat >>$CONFIG_STATUS <<\_ACEOF
39440 ac_cs_usage="\
39441 \`$as_me' instantiates files from templates according to the
39442 current configuration.
39443
39444 Usage: $0 [OPTIONS] [FILE]...
39445
39446   -h, --help       print this help, then exit
39447   -V, --version    print version number and configuration settings, then exit
39448   -q, --quiet      do not print progress messages
39449   -d, --debug      don't remove temporary files
39450       --recheck    update $as_me by reconfiguring in the same conditions
39451   --file=FILE[:TEMPLATE]
39452                    instantiate the configuration file FILE
39453   --header=FILE[:TEMPLATE]
39454                    instantiate the configuration header FILE
39455
39456 Configuration files:
39457 $config_files
39458
39459 Configuration headers:
39460 $config_headers
39461
39462 Configuration commands:
39463 $config_commands
39464
39465 Report bugs to <bug-autoconf@gnu.org>."
39466
39467 _ACEOF
39468 cat >>$CONFIG_STATUS <<_ACEOF
39469 ac_cs_version="\\
39470 config.status
39471 configured by $0, generated by GNU Autoconf 2.61,
39472   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39473
39474 Copyright (C) 2006 Free Software Foundation, Inc.
39475 This config.status script is free software; the Free Software Foundation
39476 gives unlimited permission to copy, distribute and modify it."
39477
39478 ac_pwd='$ac_pwd'
39479 srcdir='$srcdir'
39480 INSTALL='$INSTALL'
39481 _ACEOF
39482
39483 cat >>$CONFIG_STATUS <<\_ACEOF
39484 # If no file are specified by the user, then we need to provide default
39485 # value.  By we need to know if files were specified by the user.
39486 ac_need_defaults=:
39487 while test $# != 0
39488 do
39489   case $1 in
39490   --*=*)
39491     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39492     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39493     ac_shift=:
39494     ;;
39495   *)
39496     ac_option=$1
39497     ac_optarg=$2
39498     ac_shift=shift
39499     ;;
39500   esac
39501
39502   case $ac_option in
39503   # Handling of the options.
39504   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39505     ac_cs_recheck=: ;;
39506   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39507     echo "$ac_cs_version"; exit ;;
39508   --debug | --debu | --deb | --de | --d | -d )
39509     debug=: ;;
39510   --file | --fil | --fi | --f )
39511     $ac_shift
39512     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39513     ac_need_defaults=false;;
39514   --header | --heade | --head | --hea )
39515     $ac_shift
39516     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39517     ac_need_defaults=false;;
39518   --he | --h)
39519     # Conflict between --help and --header
39520     { echo "$as_me: error: ambiguous option: $1
39521 Try \`$0 --help' for more information." >&2
39522    { (exit 1); exit 1; }; };;
39523   --help | --hel | -h )
39524     echo "$ac_cs_usage"; exit ;;
39525   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39526   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39527     ac_cs_silent=: ;;
39528
39529   # This is an error.
39530   -*) { echo "$as_me: error: unrecognized option: $1
39531 Try \`$0 --help' for more information." >&2
39532    { (exit 1); exit 1; }; } ;;
39533
39534   *) ac_config_targets="$ac_config_targets $1"
39535      ac_need_defaults=false ;;
39536
39537   esac
39538   shift
39539 done
39540
39541 ac_configure_extra_args=
39542
39543 if $ac_cs_silent; then
39544   exec 6>/dev/null
39545   ac_configure_extra_args="$ac_configure_extra_args --silent"
39546 fi
39547
39548 _ACEOF
39549 cat >>$CONFIG_STATUS <<_ACEOF
39550 if \$ac_cs_recheck; then
39551   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39552   CONFIG_SHELL=$SHELL
39553   export CONFIG_SHELL
39554   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39555 fi
39556
39557 _ACEOF
39558 cat >>$CONFIG_STATUS <<\_ACEOF
39559 exec 5>>config.log
39560 {
39561   echo
39562   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39563 ## Running $as_me. ##
39564 _ASBOX
39565   echo "$ac_log"
39566 } >&5
39567
39568 _ACEOF
39569 cat >>$CONFIG_STATUS <<_ACEOF
39570 #
39571 # INIT-COMMANDS
39572 #
39573 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39574
39575 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39576 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39577
39578
39579 _ACEOF
39580
39581 cat >>$CONFIG_STATUS <<\_ACEOF
39582
39583 # Handling of arguments.
39584 for ac_config_target in $ac_config_targets
39585 do
39586   case $ac_config_target in
39587     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39588     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39589     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39590     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39591     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39592     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39593     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39594     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39595     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39596     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39597     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39598     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39599     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39600     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39601     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39602     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39603     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39604     "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" ;;
39605     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39606     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39607     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39608     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39609     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39610     "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" ;;
39611     "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" ;;
39612     "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" ;;
39613     "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" ;;
39614     "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" ;;
39615     "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" ;;
39616     "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" ;;
39617     "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" ;;
39618     "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" ;;
39619     "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" ;;
39620     "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" ;;
39621     "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" ;;
39622     "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" ;;
39623     "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" ;;
39624     "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" ;;
39625     "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" ;;
39626     "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" ;;
39627     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39628     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39629     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39630     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39631     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39632
39633   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39634 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39635    { (exit 1); exit 1; }; };;
39636   esac
39637 done
39638
39639
39640 # If the user did not use the arguments to specify the items to instantiate,
39641 # then the envvar interface is used.  Set only those that are not.
39642 # We use the long form for the default assignment because of an extremely
39643 # bizarre bug on SunOS 4.1.3.
39644 if $ac_need_defaults; then
39645   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39646   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39647   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39648 fi
39649
39650 # Have a temporary directory for convenience.  Make it in the build tree
39651 # simply because there is no reason against having it here, and in addition,
39652 # creating and moving files from /tmp can sometimes cause problems.
39653 # Hook for its removal unless debugging.
39654 # Note that there is a small window in which the directory will not be cleaned:
39655 # after its creation but before its name has been assigned to `$tmp'.
39656 $debug ||
39657 {
39658   tmp=
39659   trap 'exit_status=$?
39660   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39661 ' 0
39662   trap '{ (exit 1); exit 1; }' 1 2 13 15
39663 }
39664 # Create a (secure) tmp directory for tmp files.
39665
39666 {
39667   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39668   test -n "$tmp" && test -d "$tmp"
39669 }  ||
39670 {
39671   tmp=./conf$$-$RANDOM
39672   (umask 077 && mkdir "$tmp")
39673 } ||
39674 {
39675    echo "$me: cannot create a temporary directory in ." >&2
39676    { (exit 1); exit 1; }
39677 }
39678
39679 #
39680 # Set up the sed scripts for CONFIG_FILES section.
39681 #
39682
39683 # No need to generate the scripts if there are no CONFIG_FILES.
39684 # This happens for instance when ./config.status config.h
39685 if test -n "$CONFIG_FILES"; then
39686
39687 _ACEOF
39688
39689
39690
39691 ac_delim='%!_!# '
39692 for ac_last_try in false false false false false :; do
39693   cat >conf$$subs.sed <<_ACEOF
39694 SHELL!$SHELL$ac_delim
39695 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39696 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39697 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39698 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39699 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39700 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39701 exec_prefix!$exec_prefix$ac_delim
39702 prefix!$prefix$ac_delim
39703 program_transform_name!$program_transform_name$ac_delim
39704 bindir!$bindir$ac_delim
39705 sbindir!$sbindir$ac_delim
39706 libexecdir!$libexecdir$ac_delim
39707 datarootdir!$datarootdir$ac_delim
39708 datadir!$datadir$ac_delim
39709 sysconfdir!$sysconfdir$ac_delim
39710 sharedstatedir!$sharedstatedir$ac_delim
39711 localstatedir!$localstatedir$ac_delim
39712 includedir!$includedir$ac_delim
39713 oldincludedir!$oldincludedir$ac_delim
39714 docdir!$docdir$ac_delim
39715 infodir!$infodir$ac_delim
39716 htmldir!$htmldir$ac_delim
39717 dvidir!$dvidir$ac_delim
39718 pdfdir!$pdfdir$ac_delim
39719 psdir!$psdir$ac_delim
39720 libdir!$libdir$ac_delim
39721 localedir!$localedir$ac_delim
39722 mandir!$mandir$ac_delim
39723 DEFS!$DEFS$ac_delim
39724 ECHO_C!$ECHO_C$ac_delim
39725 ECHO_N!$ECHO_N$ac_delim
39726 ECHO_T!$ECHO_T$ac_delim
39727 LIBS!$LIBS$ac_delim
39728 build_alias!$build_alias$ac_delim
39729 host_alias!$host_alias$ac_delim
39730 target_alias!$target_alias$ac_delim
39731 build!$build$ac_delim
39732 build_cpu!$build_cpu$ac_delim
39733 build_vendor!$build_vendor$ac_delim
39734 build_os!$build_os$ac_delim
39735 host!$host$ac_delim
39736 host_cpu!$host_cpu$ac_delim
39737 host_vendor!$host_vendor$ac_delim
39738 host_os!$host_os$ac_delim
39739 target!$target$ac_delim
39740 target_cpu!$target_cpu$ac_delim
39741 target_vendor!$target_vendor$ac_delim
39742 target_os!$target_os$ac_delim
39743 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39744 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39745 INSTALL_DATA!$INSTALL_DATA$ac_delim
39746 CYGPATH_W!$CYGPATH_W$ac_delim
39747 PACKAGE!$PACKAGE$ac_delim
39748 VERSION!$VERSION$ac_delim
39749 ACLOCAL!$ACLOCAL$ac_delim
39750 AUTOCONF!$AUTOCONF$ac_delim
39751 AUTOMAKE!$AUTOMAKE$ac_delim
39752 AUTOHEADER!$AUTOHEADER$ac_delim
39753 MAKEINFO!$MAKEINFO$ac_delim
39754 install_sh!$install_sh$ac_delim
39755 STRIP!$STRIP$ac_delim
39756 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39757 mkdir_p!$mkdir_p$ac_delim
39758 AWK!$AWK$ac_delim
39759 SET_MAKE!$SET_MAKE$ac_delim
39760 am__leading_dot!$am__leading_dot$ac_delim
39761 AMTAR!$AMTAR$ac_delim
39762 am__tar!$am__tar$ac_delim
39763 am__untar!$am__untar$ac_delim
39764 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39765 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39766 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39767 top_builddir!$top_builddir$ac_delim
39768 ldap_subdir!$ldap_subdir$ac_delim
39769 CC!$CC$ac_delim
39770 AR!$AR$ac_delim
39771 CFLAGS!$CFLAGS$ac_delim
39772 LDFLAGS!$LDFLAGS$ac_delim
39773 CPPFLAGS!$CPPFLAGS$ac_delim
39774 ac_ct_CC!$ac_ct_CC$ac_delim
39775 EXEEXT!$EXEEXT$ac_delim
39776 OBJEXT!$OBJEXT$ac_delim
39777 DEPDIR!$DEPDIR$ac_delim
39778 am__include!$am__include$ac_delim
39779 am__quote!$am__quote$ac_delim
39780 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39781 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39782 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39783 CCDEPMODE!$CCDEPMODE$ac_delim
39784 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39785 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39786 GREP!$GREP$ac_delim
39787 EGREP!$EGREP$ac_delim
39788 LN_S!$LN_S$ac_delim
39789 ECHO!$ECHO$ac_delim
39790 RANLIB!$RANLIB$ac_delim
39791 _ACEOF
39792
39793   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39794     break
39795   elif $ac_last_try; then
39796     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39797 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39798    { (exit 1); exit 1; }; }
39799   else
39800     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39801   fi
39802 done
39803
39804 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39805 if test -n "$ac_eof"; then
39806   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39807   ac_eof=`expr $ac_eof + 1`
39808 fi
39809
39810 cat >>$CONFIG_STATUS <<_ACEOF
39811 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39813 _ACEOF
39814 sed '
39815 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39816 s/^/s,@/; s/!/@,|#_!!_#|/
39817 :n
39818 t n
39819 s/'"$ac_delim"'$/,g/; t
39820 s/$/\\/; p
39821 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39822 ' >>$CONFIG_STATUS <conf$$subs.sed
39823 rm -f conf$$subs.sed
39824 cat >>$CONFIG_STATUS <<_ACEOF
39825 CEOF$ac_eof
39826 _ACEOF
39827
39828
39829 ac_delim='%!_!# '
39830 for ac_last_try in false false false false false :; do
39831   cat >conf$$subs.sed <<_ACEOF
39832 DLLTOOL!$DLLTOOL$ac_delim
39833 AS!$AS$ac_delim
39834 OBJDUMP!$OBJDUMP$ac_delim
39835 CPP!$CPP$ac_delim
39836 LIBTOOL!$LIBTOOL$ac_delim
39837 PERLBIN!$PERLBIN$ac_delim
39838 OL_MKDEP!$OL_MKDEP$ac_delim
39839 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39840 LTSTATIC!$LTSTATIC$ac_delim
39841 MYSQL!$MYSQL$ac_delim
39842 LIBOBJS!$LIBOBJS$ac_delim
39843 LIBSRCS!$LIBSRCS$ac_delim
39844 PLAT!$PLAT$ac_delim
39845 WITH_SASL!$WITH_SASL$ac_delim
39846 WITH_TLS!$WITH_TLS$ac_delim
39847 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39848 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39849 BUILD_THREAD!$BUILD_THREAD$ac_delim
39850 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39851 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39852 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39853 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39854 BUILD_BDB!$BUILD_BDB$ac_delim
39855 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39856 BUILD_HDB!$BUILD_HDB$ac_delim
39857 BUILD_LDAP!$BUILD_LDAP$ac_delim
39858 BUILD_META!$BUILD_META$ac_delim
39859 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39860 BUILD_NDB!$BUILD_NDB$ac_delim
39861 BUILD_NULL!$BUILD_NULL$ac_delim
39862 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39863 BUILD_RELAY!$BUILD_RELAY$ac_delim
39864 BUILD_PERL!$BUILD_PERL$ac_delim
39865 BUILD_SHELL!$BUILD_SHELL$ac_delim
39866 BUILD_SOCK!$BUILD_SOCK$ac_delim
39867 BUILD_SQL!$BUILD_SQL$ac_delim
39868 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39869 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39870 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39871 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39872 BUILD_DDS!$BUILD_DDS$ac_delim
39873 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39874 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39875 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39876 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39877 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39878 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39879 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39880 BUILD_REFINT!$BUILD_REFINT$ac_delim
39881 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39882 BUILD_RWM!$BUILD_RWM$ac_delim
39883 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39884 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39885 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39886 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39887 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39888 LDAP_LIBS!$LDAP_LIBS$ac_delim
39889 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39890 BDB_LIBS!$BDB_LIBS$ac_delim
39891 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39892 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39893 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39894 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39895 WRAP_LIBS!$WRAP_LIBS$ac_delim
39896 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39897 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39898 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39899 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39900 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39901 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39902 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39903 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39904 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39905 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39906 KRB4_LIBS!$KRB4_LIBS$ac_delim
39907 KRB5_LIBS!$KRB5_LIBS$ac_delim
39908 SASL_LIBS!$SASL_LIBS$ac_delim
39909 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
39910 TLS_LIBS!$TLS_LIBS$ac_delim
39911 MODULES_LIBS!$MODULES_LIBS$ac_delim
39912 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39913 LIBSLAPI!$LIBSLAPI$ac_delim
39914 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39915 AUTH_LIBS!$AUTH_LIBS$ac_delim
39916 ICU_LIBS!$ICU_LIBS$ac_delim
39917 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39918 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39919 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39920 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39921 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39922 LTLIBOBJS!$LTLIBOBJS$ac_delim
39923 _ACEOF
39924
39925   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
39926     break
39927   elif $ac_last_try; then
39928     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39929 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39930    { (exit 1); exit 1; }; }
39931   else
39932     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39933   fi
39934 done
39935
39936 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39937 if test -n "$ac_eof"; then
39938   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39939   ac_eof=`expr $ac_eof + 1`
39940 fi
39941
39942 cat >>$CONFIG_STATUS <<_ACEOF
39943 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39944 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39945 _ACEOF
39946 sed '
39947 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39948 s/^/s,@/; s/!/@,|#_!!_#|/
39949 :n
39950 t n
39951 s/'"$ac_delim"'$/,g/; t
39952 s/$/\\/; p
39953 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39954 ' >>$CONFIG_STATUS <conf$$subs.sed
39955 rm -f conf$$subs.sed
39956 cat >>$CONFIG_STATUS <<_ACEOF
39957 :end
39958 s/|#_!!_#|//g
39959 CEOF$ac_eof
39960 _ACEOF
39961
39962
39963 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39964 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39965 # trailing colons and then remove the whole line if VPATH becomes empty
39966 # (actually we leave an empty line to preserve line numbers).
39967 if test "x$srcdir" = x.; then
39968   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39969 s/:*\$(srcdir):*/:/
39970 s/:*\${srcdir}:*/:/
39971 s/:*@srcdir@:*/:/
39972 s/^\([^=]*=[     ]*\):*/\1/
39973 s/:*$//
39974 s/^[^=]*=[       ]*$//
39975 }'
39976 fi
39977
39978 cat >>$CONFIG_STATUS <<\_ACEOF
39979 fi # test -n "$CONFIG_FILES"
39980
39981
39982 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39983 do
39984   case $ac_tag in
39985   :[FHLC]) ac_mode=$ac_tag; continue;;
39986   esac
39987   case $ac_mode$ac_tag in
39988   :[FHL]*:*);;
39989   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39990 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39991    { (exit 1); exit 1; }; };;
39992   :[FH]-) ac_tag=-:-;;
39993   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39994   esac
39995   ac_save_IFS=$IFS
39996   IFS=:
39997   set x $ac_tag
39998   IFS=$ac_save_IFS
39999   shift
40000   ac_file=$1
40001   shift
40002
40003   case $ac_mode in
40004   :L) ac_source=$1;;
40005   :[FH])
40006     ac_file_inputs=
40007     for ac_f
40008     do
40009       case $ac_f in
40010       -) ac_f="$tmp/stdin";;
40011       *) # Look for the file first in the build tree, then in the source tree
40012          # (if the path is not absolute).  The absolute path cannot be DOS-style,
40013          # because $ac_f cannot contain `:'.
40014          test -f "$ac_f" ||
40015            case $ac_f in
40016            [\\/$]*) false;;
40017            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40018            esac ||
40019            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40020 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40021    { (exit 1); exit 1; }; };;
40022       esac
40023       ac_file_inputs="$ac_file_inputs $ac_f"
40024     done
40025
40026     # Let's still pretend it is `configure' which instantiates (i.e., don't
40027     # use $as_me), people would be surprised to read:
40028     #    /* config.h.  Generated by config.status.  */
40029     configure_input="Generated from "`IFS=:
40030           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40031     if test x"$ac_file" != x-; then
40032       configure_input="$ac_file.  $configure_input"
40033       { echo "$as_me:$LINENO: creating $ac_file" >&5
40034 echo "$as_me: creating $ac_file" >&6;}
40035     fi
40036
40037     case $ac_tag in
40038     *:-:* | *:-) cat >"$tmp/stdin";;
40039     esac
40040     ;;
40041   esac
40042
40043   ac_dir=`$as_dirname -- "$ac_file" ||
40044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40045          X"$ac_file" : 'X\(//\)[^/]' \| \
40046          X"$ac_file" : 'X\(//\)$' \| \
40047          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40048 echo X"$ac_file" |
40049     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40050             s//\1/
40051             q
40052           }
40053           /^X\(\/\/\)[^/].*/{
40054             s//\1/
40055             q
40056           }
40057           /^X\(\/\/\)$/{
40058             s//\1/
40059             q
40060           }
40061           /^X\(\/\).*/{
40062             s//\1/
40063             q
40064           }
40065           s/.*/./; q'`
40066   { as_dir="$ac_dir"
40067   case $as_dir in #(
40068   -*) as_dir=./$as_dir;;
40069   esac
40070   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40071     as_dirs=
40072     while :; do
40073       case $as_dir in #(
40074       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40075       *) as_qdir=$as_dir;;
40076       esac
40077       as_dirs="'$as_qdir' $as_dirs"
40078       as_dir=`$as_dirname -- "$as_dir" ||
40079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40080          X"$as_dir" : 'X\(//\)[^/]' \| \
40081          X"$as_dir" : 'X\(//\)$' \| \
40082          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40083 echo X"$as_dir" |
40084     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40085             s//\1/
40086             q
40087           }
40088           /^X\(\/\/\)[^/].*/{
40089             s//\1/
40090             q
40091           }
40092           /^X\(\/\/\)$/{
40093             s//\1/
40094             q
40095           }
40096           /^X\(\/\).*/{
40097             s//\1/
40098             q
40099           }
40100           s/.*/./; q'`
40101       test -d "$as_dir" && break
40102     done
40103     test -z "$as_dirs" || eval "mkdir $as_dirs"
40104   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40105 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40106    { (exit 1); exit 1; }; }; }
40107   ac_builddir=.
40108
40109 case "$ac_dir" in
40110 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40111 *)
40112   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40113   # A ".." for each directory in $ac_dir_suffix.
40114   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40115   case $ac_top_builddir_sub in
40116   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40117   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40118   esac ;;
40119 esac
40120 ac_abs_top_builddir=$ac_pwd
40121 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40122 # for backward compatibility:
40123 ac_top_builddir=$ac_top_build_prefix
40124
40125 case $srcdir in
40126   .)  # We are building in place.
40127     ac_srcdir=.
40128     ac_top_srcdir=$ac_top_builddir_sub
40129     ac_abs_top_srcdir=$ac_pwd ;;
40130   [\\/]* | ?:[\\/]* )  # Absolute name.
40131     ac_srcdir=$srcdir$ac_dir_suffix;
40132     ac_top_srcdir=$srcdir
40133     ac_abs_top_srcdir=$srcdir ;;
40134   *) # Relative name.
40135     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40136     ac_top_srcdir=$ac_top_build_prefix$srcdir
40137     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40138 esac
40139 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40140
40141
40142   case $ac_mode in
40143   :F)
40144   #
40145   # CONFIG_FILE
40146   #
40147
40148   case $INSTALL in
40149   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40150   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40151   esac
40152 _ACEOF
40153
40154 cat >>$CONFIG_STATUS <<\_ACEOF
40155 # If the template does not know about datarootdir, expand it.
40156 # FIXME: This hack should be removed a few years after 2.60.
40157 ac_datarootdir_hack=; ac_datarootdir_seen=
40158
40159 case `sed -n '/datarootdir/ {
40160   p
40161   q
40162 }
40163 /@datadir@/p
40164 /@docdir@/p
40165 /@infodir@/p
40166 /@localedir@/p
40167 /@mandir@/p
40168 ' $ac_file_inputs` in
40169 *datarootdir*) ac_datarootdir_seen=yes;;
40170 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40171   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40172 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40173 _ACEOF
40174 cat >>$CONFIG_STATUS <<_ACEOF
40175   ac_datarootdir_hack='
40176   s&@datadir@&$datadir&g
40177   s&@docdir@&$docdir&g
40178   s&@infodir@&$infodir&g
40179   s&@localedir@&$localedir&g
40180   s&@mandir@&$mandir&g
40181     s&\\\${datarootdir}&$datarootdir&g' ;;
40182 esac
40183 _ACEOF
40184
40185 # Neutralize VPATH when `$srcdir' = `.'.
40186 # Shell code in configure.ac might set extrasub.
40187 # FIXME: do we really want to maintain this feature?
40188 cat >>$CONFIG_STATUS <<_ACEOF
40189   sed "$ac_vpsub
40190 $extrasub
40191 _ACEOF
40192 cat >>$CONFIG_STATUS <<\_ACEOF
40193 :t
40194 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40195 s&@configure_input@&$configure_input&;t t
40196 s&@top_builddir@&$ac_top_builddir_sub&;t t
40197 s&@srcdir@&$ac_srcdir&;t t
40198 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40199 s&@top_srcdir@&$ac_top_srcdir&;t t
40200 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40201 s&@builddir@&$ac_builddir&;t t
40202 s&@abs_builddir@&$ac_abs_builddir&;t t
40203 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40204 s&@INSTALL@&$ac_INSTALL&;t t
40205 $ac_datarootdir_hack
40206 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40207
40208 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40209   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40210   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40211   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40212 which seems to be undefined.  Please make sure it is defined." >&5
40213 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40214 which seems to be undefined.  Please make sure it is defined." >&2;}
40215
40216   rm -f "$tmp/stdin"
40217   case $ac_file in
40218   -) cat "$tmp/out"; rm -f "$tmp/out";;
40219   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40220   esac
40221  ;;
40222   :H)
40223   #
40224   # CONFIG_HEADER
40225   #
40226 _ACEOF
40227
40228 # Transform confdefs.h into a sed script `conftest.defines', that
40229 # substitutes the proper values into config.h.in to produce config.h.
40230 rm -f conftest.defines conftest.tail
40231 # First, append a space to every undef/define line, to ease matching.
40232 echo 's/$/ /' >conftest.defines
40233 # Then, protect against being on the right side of a sed subst, or in
40234 # an unquoted here document, in config.status.  If some macros were
40235 # called several times there might be several #defines for the same
40236 # symbol, which is useless.  But do not sort them, since the last
40237 # AC_DEFINE must be honored.
40238 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40239 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40240 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40241 # PARAMS is the parameter list in the macro definition--in most cases, it's
40242 # just an empty string.
40243 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
40244 ac_dB='\\)[      (].*,\\1define\\2'
40245 ac_dC=' '
40246 ac_dD=' ,'
40247
40248 uniq confdefs.h |
40249   sed -n '
40250         t rset
40251         :rset
40252         s/^[     ]*#[    ]*define[       ][      ]*//
40253         t ok
40254         d
40255         :ok
40256         s/[\\&,]/\\&/g
40257         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40258         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40259   ' >>conftest.defines
40260
40261 # Remove the space that was appended to ease matching.
40262 # Then replace #undef with comments.  This is necessary, for
40263 # example, in the case of _POSIX_SOURCE, which is predefined and required
40264 # on some systems where configure will not decide to define it.
40265 # (The regexp can be short, since the line contains either #define or #undef.)
40266 echo 's/ $//
40267 s,^[     #]*u.*,/* & */,' >>conftest.defines
40268
40269 # Break up conftest.defines:
40270 ac_max_sed_lines=50
40271
40272 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40273 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40274 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40275 # et cetera.
40276 ac_in='$ac_file_inputs'
40277 ac_out='"$tmp/out1"'
40278 ac_nxt='"$tmp/out2"'
40279
40280 while :
40281 do
40282   # Write a here document:
40283     cat >>$CONFIG_STATUS <<_ACEOF
40284     # First, check the format of the line:
40285     cat >"\$tmp/defines.sed" <<\\CEOF
40286 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
40287 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
40288 b
40289 :def
40290 _ACEOF
40291   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40292   echo 'CEOF
40293     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40294   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40295   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40296   grep . conftest.tail >/dev/null || break
40297   rm -f conftest.defines
40298   mv conftest.tail conftest.defines
40299 done
40300 rm -f conftest.defines conftest.tail
40301
40302 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40303 cat >>$CONFIG_STATUS <<\_ACEOF
40304   if test x"$ac_file" != x-; then
40305     echo "/* $configure_input  */" >"$tmp/config.h"
40306     cat "$ac_result" >>"$tmp/config.h"
40307     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40308       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40309 echo "$as_me: $ac_file is unchanged" >&6;}
40310     else
40311       rm -f $ac_file
40312       mv "$tmp/config.h" $ac_file
40313     fi
40314   else
40315     echo "/* $configure_input  */"
40316     cat "$ac_result"
40317   fi
40318   rm -f "$tmp/out12"
40319 # Compute $ac_file's index in $config_headers.
40320 _am_stamp_count=1
40321 for _am_header in $config_headers :; do
40322   case $_am_header in
40323     $ac_file | $ac_file:* )
40324       break ;;
40325     * )
40326       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40327   esac
40328 done
40329 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40330 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40331          X$ac_file : 'X\(//\)[^/]' \| \
40332          X$ac_file : 'X\(//\)$' \| \
40333          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40334 echo X$ac_file |
40335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40336             s//\1/
40337             q
40338           }
40339           /^X\(\/\/\)[^/].*/{
40340             s//\1/
40341             q
40342           }
40343           /^X\(\/\/\)$/{
40344             s//\1/
40345             q
40346           }
40347           /^X\(\/\).*/{
40348             s//\1/
40349             q
40350           }
40351           s/.*/./; q'`/stamp-h$_am_stamp_count
40352  ;;
40353
40354   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40355 echo "$as_me: executing $ac_file commands" >&6;}
40356  ;;
40357   esac
40358
40359
40360   case $ac_file$ac_mode in
40361     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40362   # Strip MF so we end up with the name of the file.
40363   mf=`echo "$mf" | sed -e 's/:.*$//'`
40364   # Check whether this is an Automake generated Makefile or not.
40365   # We used to match only the files named `Makefile.in', but
40366   # some people rename them; so instead we look at the file content.
40367   # Grep'ing the first line is not enough: some people post-process
40368   # each Makefile.in and add a new line on top of each file to say so.
40369   # So let's grep whole file.
40370   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40371     dirpart=`$as_dirname -- "$mf" ||
40372 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40373          X"$mf" : 'X\(//\)[^/]' \| \
40374          X"$mf" : 'X\(//\)$' \| \
40375          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40376 echo X"$mf" |
40377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40378             s//\1/
40379             q
40380           }
40381           /^X\(\/\/\)[^/].*/{
40382             s//\1/
40383             q
40384           }
40385           /^X\(\/\/\)$/{
40386             s//\1/
40387             q
40388           }
40389           /^X\(\/\).*/{
40390             s//\1/
40391             q
40392           }
40393           s/.*/./; q'`
40394   else
40395     continue
40396   fi
40397   # Extract the definition of DEPDIR, am__include, and am__quote
40398   # from the Makefile without running `make'.
40399   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40400   test -z "$DEPDIR" && continue
40401   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40402   test -z "am__include" && continue
40403   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40404   # When using ansi2knr, U may be empty or an underscore; expand it
40405   U=`sed -n 's/^U = //p' < "$mf"`
40406   # Find all dependency output files, they are included files with
40407   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40408   # simplest approach to changing $(DEPDIR) to its actual value in the
40409   # expansion.
40410   for file in `sed -n "
40411     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40412        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40413     # Make sure the directory exists.
40414     test -f "$dirpart/$file" && continue
40415     fdir=`$as_dirname -- "$file" ||
40416 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40417          X"$file" : 'X\(//\)[^/]' \| \
40418          X"$file" : 'X\(//\)$' \| \
40419          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40420 echo X"$file" |
40421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40422             s//\1/
40423             q
40424           }
40425           /^X\(\/\/\)[^/].*/{
40426             s//\1/
40427             q
40428           }
40429           /^X\(\/\/\)$/{
40430             s//\1/
40431             q
40432           }
40433           /^X\(\/\).*/{
40434             s//\1/
40435             q
40436           }
40437           s/.*/./; q'`
40438     { as_dir=$dirpart/$fdir
40439   case $as_dir in #(
40440   -*) as_dir=./$as_dir;;
40441   esac
40442   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40443     as_dirs=
40444     while :; do
40445       case $as_dir in #(
40446       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40447       *) as_qdir=$as_dir;;
40448       esac
40449       as_dirs="'$as_qdir' $as_dirs"
40450       as_dir=`$as_dirname -- "$as_dir" ||
40451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40452          X"$as_dir" : 'X\(//\)[^/]' \| \
40453          X"$as_dir" : 'X\(//\)$' \| \
40454          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40455 echo X"$as_dir" |
40456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40457             s//\1/
40458             q
40459           }
40460           /^X\(\/\/\)[^/].*/{
40461             s//\1/
40462             q
40463           }
40464           /^X\(\/\/\)$/{
40465             s//\1/
40466             q
40467           }
40468           /^X\(\/\).*/{
40469             s//\1/
40470             q
40471           }
40472           s/.*/./; q'`
40473       test -d "$as_dir" && break
40474     done
40475     test -z "$as_dirs" || eval "mkdir $as_dirs"
40476   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40477 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40478    { (exit 1); exit 1; }; }; }
40479     # echo "creating $dirpart/$file"
40480     echo '# dummy' > "$dirpart/$file"
40481   done
40482 done
40483  ;;
40484     "default":C)
40485 chmod +x tests/run
40486 date > stamp-h
40487 BACKENDSC="servers/slapd/backends.c"
40488 echo "Making $BACKENDSC"
40489 rm -f $BACKENDSC
40490 cat > $BACKENDSC << ENDX
40491 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40492  *
40493  * Copyright 1998-2009 The OpenLDAP Foundation.
40494  * All rights reserved.
40495  *
40496  * Redistribution and use in source and binary forms, with or without
40497  * modification, are permitted only as authorized by the OpenLDAP
40498  * Public License.
40499  *
40500  * A copy of this license is available in the file LICENSE in the
40501  * top-level directory of the distribution or, alternatively, at
40502  * <http://www.OpenLDAP.org/license.html>.
40503  */
40504 /* This file is automatically generated by configure; please do not edit. */
40505
40506 #include "portable.h"
40507 #include "slap.h"
40508
40509 ENDX
40510 if test "${STATIC_BACKENDS}"; then
40511         for b in config ${STATIC_BACKENDS}; do
40512                 bb=`echo "${b}" | sed -e 's/back-//'`
40513                 cat >> $BACKENDSC << ENDX
40514 extern BI_init ${bb}_back_initialize;
40515 ENDX
40516         done
40517
40518         cat >> $BACKENDSC << ENDX
40519
40520 BackendInfo slap_binfo[] = {
40521 ENDX
40522
40523         for b in config ${STATIC_BACKENDS}; do
40524                 bb=`echo "${b}" | sed -e 's/back-//'`
40525                 echo "    Add ${bb} ..."
40526                 cat >> $BACKENDSC << ENDX
40527         { "${bb}", ${bb}_back_initialize },
40528 ENDX
40529         done
40530
40531         cat >> $BACKENDSC << ENDX
40532         { NULL, NULL },
40533 };
40534
40535 /* end of generated file */
40536 ENDX
40537 fi
40538 OVERLAYSC="servers/slapd/overlays/statover.c"
40539 echo "Making $OVERLAYSC"
40540 rm -f $OVERLAYSC
40541 cat > $OVERLAYSC << ENDX
40542 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40543  *
40544  * Copyright 1998-2009 The OpenLDAP Foundation.
40545  * All rights reserved.
40546  *
40547  * Redistribution and use in source and binary forms, with or without
40548  * modification, are permitted only as authorized by the OpenLDAP
40549  * Public License.
40550  *
40551  * A copy of this license is available in the file LICENSE in the
40552  * top-level directory of the distribution or, alternatively, at
40553  * <http://www.OpenLDAP.org/license.html>.
40554  */
40555 /* This file is automatically generated by configure; please do not edit. */
40556
40557 #include "portable.h"
40558 #include "slap.h"
40559
40560 ENDX
40561 if test "${STATIC_OVERLAYS}"; then
40562         for o in ${STATIC_OVERLAYS}; do
40563                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40564                 cat >> $OVERLAYSC << ENDX
40565 extern OV_init ${oo}_initialize;
40566 ENDX
40567         done
40568 fi
40569
40570 cat >> $OVERLAYSC << ENDX
40571
40572 OverlayInit slap_oinfo[] = {
40573 ENDX
40574
40575 if test "${STATIC_OVERLAYS}"; then
40576         for o in ${STATIC_OVERLAYS}; do
40577                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40578                 echo "    Add ${oo} ..."
40579                 cat >> $OVERLAYSC << ENDX
40580         { "${oo}", ${oo}_initialize },
40581 ENDX
40582         done
40583 fi
40584
40585         cat >> $OVERLAYSC << ENDX
40586         { NULL, NULL },
40587 };
40588
40589 /* end of generated file */
40590 ENDX
40591
40592 if test "${ol_cv_mkdep}" = no; then
40593         echo '(Do not "make depend"; we do not know how to build dependencies)'
40594 else
40595         echo 'Please run "make depend" to build dependencies'
40596 fi
40597  ;;
40598
40599   esac
40600 done # for ac_tag
40601
40602
40603 { (exit 0); exit 0; }
40604 _ACEOF
40605 chmod +x $CONFIG_STATUS
40606 ac_clean_files=$ac_clean_files_save
40607
40608
40609 # configure is writing to config.log, and then calls config.status.
40610 # config.status does its own redirection, appending to config.log.
40611 # Unfortunately, on DOS this fails, as config.log is still kept open
40612 # by configure, so config.status won't be able to write to it; its
40613 # output is simply discarded.  So we exec the FD to /dev/null,
40614 # effectively closing config.log, so it can be properly (re)opened and
40615 # appended to by config.status.  When coming back to configure, we
40616 # need to make the FD available again.
40617 if test "$no_create" != yes; then
40618   ac_cs_success=:
40619   ac_config_status_args=
40620   test "$silent" = yes &&
40621     ac_config_status_args="$ac_config_status_args --quiet"
40622   exec 5>/dev/null
40623   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40624   exec 5>>config.log
40625   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40626   # would make configure fail if this is the last instruction.
40627   $ac_cs_success || { (exit 1); exit 1; }
40628 fi
40629