]> git.sur5r.net Git - openldap/blob - configure
count query answerability; allow configuration of private database
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.701 2009/07/13 13:45:25 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46   echo "#! /bin/sh" >conf$$.sh
47   echo  "exit 0"   >>conf$$.sh
48   chmod +x conf$$.sh
49   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50     PATH_SEPARATOR=';'
51   else
52     PATH_SEPARATOR=:
53   fi
54   rm -f conf$$.sh
55 fi
56
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59   as_unset=unset
60 else
61   as_unset=false
62 fi
63
64
65 # IFS
66 # We need space, tab and new line, in precisely that order.  Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
71 '
72 IFS=" ""        $as_nl"
73
74 # Find who we are.  Look in the path if we contain no directory separator.
75 case $0 in
76   *[\\/]* ) as_myself=$0 ;;
77   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
79 do
80   IFS=$as_save_IFS
81   test -z "$as_dir" && as_dir=.
82   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
85
86      ;;
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91   as_myself=$0
92 fi
93 if test ! -f "$as_myself"; then
94   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95   { (exit 1); exit 1; }
96 fi
97
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
105
106 # NLS nuisances.
107 for as_var in \
108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110   LC_TELEPHONE LC_TIME
111 do
112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113     eval $as_var=C; export $as_var
114   else
115     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116   fi
117 done
118
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
122   as_expr=expr
123 else
124   as_expr=false
125 fi
126
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128   as_basename=basename
129 else
130   as_basename=false
131 fi
132
133
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137          X"$0" : 'X\(//\)$' \| \
138          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140     sed '/^.*\/\([^/][^/]*\)\/*$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\/\)$/{
145             s//\1/
146             q
147           }
148           /^X\/\(\/\).*/{
149             s//\1/
150             q
151           }
152           s/.*/./; q'`
153
154 # CDPATH.
155 $as_unset CDPATH
156
157
158 if test "x$CONFIG_SHELL" = x; then
159   if (eval ":") 2>/dev/null; then
160   as_have_required=yes
161 else
162   as_have_required=no
163 fi
164
165   if test $as_have_required = yes &&     (eval ":
166 (as_func_return () {
167   (exit \$1)
168 }
169 as_func_success () {
170   as_func_return 0
171 }
172 as_func_failure () {
173   as_func_return 1
174 }
175 as_func_ret_success () {
176   return 0
177 }
178 as_func_ret_failure () {
179   return 1
180 }
181
182 exitcode=0
183 if as_func_success; then
184   :
185 else
186   exitcode=1
187   echo as_func_success failed.
188 fi
189
190 if as_func_failure; then
191   exitcode=1
192   echo as_func_failure succeeded.
193 fi
194
195 if as_func_ret_success; then
196   :
197 else
198   exitcode=1
199   echo as_func_ret_success failed.
200 fi
201
202 if as_func_ret_failure; then
203   exitcode=1
204   echo as_func_ret_failure succeeded.
205 fi
206
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208   :
209 else
210   exitcode=1
211   echo positional parameters were not saved.
212 fi
213
214 test \$exitcode = 0) || { (exit 1); exit 1; }
215
216 (
217   as_lineno_1=\$LINENO
218   as_lineno_2=\$LINENO
219   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
222   :
223 else
224   as_candidate_shells=
225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
228   IFS=$as_save_IFS
229   test -z "$as_dir" && as_dir=.
230   case $as_dir in
231          /*)
232            for as_base in sh bash ksh sh5; do
233              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234            done;;
235        esac
236 done
237 IFS=$as_save_IFS
238
239
240       for as_shell in $as_candidate_shells $SHELL; do
241          # Try only shells that exist, to save several forks.
242          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243                 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245   emulate sh
246   NULLCMD=:
247   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248   # is contrary to our usage.  Disable this feature.
249   alias -g '${1+"$@"}'='"$@"'
250   setopt NO_GLOB_SUBST
251 else
252   case `(set -o) 2>/dev/null` in
253   *posix*) set -o posix ;;
254 esac
255
256 fi
257
258
259 :
260 _ASEOF
261 }; then
262   CONFIG_SHELL=$as_shell
263                as_have_required=yes
264                if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266   emulate sh
267   NULLCMD=:
268   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in
274   *posix*) set -o posix ;;
275 esac
276
277 fi
278
279
280 :
281 (as_func_return () {
282   (exit $1)
283 }
284 as_func_success () {
285   as_func_return 0
286 }
287 as_func_failure () {
288   as_func_return 1
289 }
290 as_func_ret_success () {
291   return 0
292 }
293 as_func_ret_failure () {
294   return 1
295 }
296
297 exitcode=0
298 if as_func_success; then
299   :
300 else
301   exitcode=1
302   echo as_func_success failed.
303 fi
304
305 if as_func_failure; then
306   exitcode=1
307   echo as_func_failure succeeded.
308 fi
309
310 if as_func_ret_success; then
311   :
312 else
313   exitcode=1
314   echo as_func_ret_success failed.
315 fi
316
317 if as_func_ret_failure; then
318   exitcode=1
319   echo as_func_ret_failure succeeded.
320 fi
321
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
323   :
324 else
325   exitcode=1
326   echo positional parameters were not saved.
327 fi
328
329 test $exitcode = 0) || { (exit 1); exit 1; }
330
331 (
332   as_lineno_1=$LINENO
333   as_lineno_2=$LINENO
334   test "x$as_lineno_1" != "x$as_lineno_2" &&
335   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337 _ASEOF
338 }; then
339   break
340 fi
341
342 fi
343
344       done
345
346       if test "x$CONFIG_SHELL" != x; then
347   for as_var in BASH_ENV ENV
348         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349         done
350         export CONFIG_SHELL
351         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 fi
353
354
355     if test $as_have_required = no; then
356   echo This script requires a shell more modern than all the
357       echo shells that I found on your system.  Please install a
358       echo modern shell, or manually run the script under such a
359       echo shell if you do have one.
360       { (exit 1); exit 1; }
361 fi
362
363
364 fi
365
366 fi
367
368
369
370 (eval "as_func_return () {
371   (exit \$1)
372 }
373 as_func_success () {
374   as_func_return 0
375 }
376 as_func_failure () {
377   as_func_return 1
378 }
379 as_func_ret_success () {
380   return 0
381 }
382 as_func_ret_failure () {
383   return 1
384 }
385
386 exitcode=0
387 if as_func_success; then
388   :
389 else
390   exitcode=1
391   echo as_func_success failed.
392 fi
393
394 if as_func_failure; then
395   exitcode=1
396   echo as_func_failure succeeded.
397 fi
398
399 if as_func_ret_success; then
400   :
401 else
402   exitcode=1
403   echo as_func_ret_success failed.
404 fi
405
406 if as_func_ret_failure; then
407   exitcode=1
408   echo as_func_ret_failure succeeded.
409 fi
410
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412   :
413 else
414   exitcode=1
415   echo positional parameters were not saved.
416 fi
417
418 test \$exitcode = 0") || {
419   echo No shell found that supports shell functions.
420   echo Please tell autoconf@gnu.org about your system,
421   echo including any error possibly output before this
422   echo message
423 }
424
425
426
427   as_lineno_1=$LINENO
428   as_lineno_2=$LINENO
429   test "x$as_lineno_1" != "x$as_lineno_2" &&
430   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433   # uniformly replaced by the line number.  The first 'sed' inserts a
434   # line-number line after each line using $LINENO; the second 'sed'
435   # does the real work.  The second script uses 'N' to pair each
436   # line-number line with the line containing $LINENO, and appends
437   # trailing '-' during substitution so that $LINENO is not a special
438   # case at line end.
439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440   # scripts with optimization help from Paolo Bonzini.  Blame Lee
441   # E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459    { (exit 1); exit 1; }; }
460
461   # Don't try to exec as it changes $[0], causing all sort of problems
462   # (the dirname of $[0] is not the place where we might find the
463   # original and so on.  Autoconf is especially sensitive to this).
464   . "./$as_me.lineno"
465   # Exit status is that of the last command.
466   exit
467 }
468
469
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471   as_dirname=dirname
472 else
473   as_dirname=false
474 fi
475
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479   case `echo 'x\c'` in
480   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481   *)   ECHO_C='\c';;
482   esac;;
483 *)
484   ECHO_N='-n';;
485 esac
486
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
489   as_expr=expr
490 else
491   as_expr=false
492 fi
493
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496   rm -f conf$$.dir/conf$$.file
497 else
498   rm -f conf$$.dir
499   mkdir conf$$.dir
500 fi
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s='ln -s'
504   # ... but there are two gotchas:
505   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507   # In both cases, we have to default to `cp -p'.
508   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509     as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511   as_ln_s=ln
512 else
513   as_ln_s='cp -p'
514 fi
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
517
518 if mkdir -p . 2>/dev/null; then
519   as_mkdir_p=:
520 else
521   test -d ./-p && rmdir ./-p
522   as_mkdir_p=false
523 fi
524
525 if test -x / >/dev/null 2>&1; then
526   as_test_x='test -x'
527 else
528   if ls -dL / >/dev/null 2>&1; then
529     as_ls_L_option=L
530   else
531     as_ls_L_option=
532   fi
533   as_test_x='
534     eval sh -c '\''
535       if test -d "$1"; then
536         test -d "$1/.";
537       else
538         case $1 in
539         -*)set "./$1";;
540         esac;
541         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542         ???[sx]*):;;*)false;;esac;fi
543     '\'' sh
544   '
545 fi
546 as_executable_p=$as_test_x
547
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 case X$ECHO in
561 X*--fallback-echo)
562   # Remove one level of quotation (which was required for Make).
563   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564   ;;
565 esac
566
567 echo=${ECHO-echo}
568 if test "X$1" = X--no-reexec; then
569   # Discard the --no-reexec flag, and continue.
570   shift
571 elif test "X$1" = X--fallback-echo; then
572   # Avoid inline document here, it may be left over
573   :
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575   # Yippee, $echo works!
576   :
577 else
578   # Restart under the correct shell.
579   exec $SHELL "$0" --no-reexec ${1+"$@"}
580 fi
581
582 if test "X$1" = X--fallback-echo; then
583   # used as fallback echo
584   shift
585   cat <<EOF
586 $*
587 EOF
588   exit 0
589 fi
590
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 # if CDPATH is set.
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601        echo_test_string=`eval $cmd` &&
602        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603     then
604       break
605     fi
606   done
607 fi
608
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611    test "X$echo_testing_string" = "X$echo_test_string"; then
612   :
613 else
614   # The Solaris, AIX, and Digital Unix default echo programs unquote
615   # backslashes.  This makes it impossible to quote backslashes using
616   #   echo "$something" | sed 's/\\/\\\\/g'
617   #
618   # So, first we look for a working echo in the user's PATH.
619
620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621   for dir in $PATH /usr/ucb; do
622     IFS="$lt_save_ifs"
623     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626        test "X$echo_testing_string" = "X$echo_test_string"; then
627       echo="$dir/echo"
628       break
629     fi
630   done
631   IFS="$lt_save_ifs"
632
633   if test "X$echo" = Xecho; then
634     # We didn't find a better echo, so look for alternatives.
635     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637        test "X$echo_testing_string" = "X$echo_test_string"; then
638       # This shell has a builtin print -r that does the trick.
639       echo='print -r'
640     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641          test "X$CONFIG_SHELL" != X/bin/ksh; then
642       # If we have ksh, try running configure again with it.
643       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644       export ORIGINAL_CONFIG_SHELL
645       CONFIG_SHELL=/bin/ksh
646       export CONFIG_SHELL
647       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648     else
649       # Try using printf.
650       echo='printf %s\n'
651       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653          test "X$echo_testing_string" = "X$echo_test_string"; then
654         # Cool, printf works
655         :
656       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657            test "X$echo_testing_string" = 'X\t' &&
658            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659            test "X$echo_testing_string" = "X$echo_test_string"; then
660         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661         export CONFIG_SHELL
662         SHELL="$CONFIG_SHELL"
663         export SHELL
664         echo="$CONFIG_SHELL $0 --fallback-echo"
665       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666            test "X$echo_testing_string" = 'X\t' &&
667            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668            test "X$echo_testing_string" = "X$echo_test_string"; then
669         echo="$CONFIG_SHELL $0 --fallback-echo"
670       else
671         # maybe with a smaller string...
672         prev=:
673
674         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676           then
677             break
678           fi
679           prev="$cmd"
680         done
681
682         if test "$prev" != 'sed 50q "$0"'; then
683           echo_test_string=`eval $prev`
684           export echo_test_string
685           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686         else
687           # Oops.  We lost completely, so just stick with echo.
688           echo=echo
689         fi
690       fi
691     fi
692   fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 ECHO=$echo
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 OPENLDAP_LIBRELEASE
843 OPENLDAP_LIBVERSION
844 OPENLDAP_RELEASE_DATE
845 top_builddir
846 ldap_subdir
847 CC
848 AR
849 CFLAGS
850 LDFLAGS
851 CPPFLAGS
852 ac_ct_CC
853 EXEEXT
854 OBJEXT
855 DEPDIR
856 am__include
857 am__quote
858 AMDEP_TRUE
859 AMDEP_FALSE
860 AMDEPBACKSLASH
861 CCDEPMODE
862 am__fastdepCC_TRUE
863 am__fastdepCC_FALSE
864 GREP
865 EGREP
866 LN_S
867 ECHO
868 RANLIB
869 DLLTOOL
870 AS
871 OBJDUMP
872 CPP
873 LIBTOOL
874 PERLBIN
875 OL_MKDEP
876 OL_MKDEP_FLAGS
877 LTSTATIC
878 MYSQL
879 LIBOBJS
880 LIBSRCS
881 PLAT
882 WITH_SASL
883 WITH_TLS
884 WITH_MODULES_ENABLED
885 WITH_ACI_ENABLED
886 BUILD_THREAD
887 BUILD_LIBS_DYNAMIC
888 BUILD_SLAPD
889 BUILD_SLAPI
890 SLAPD_SLAPI_DEPEND
891 BUILD_BDB
892 BUILD_DNSSRV
893 BUILD_HDB
894 BUILD_LDAP
895 BUILD_META
896 BUILD_MONITOR
897 BUILD_NDB
898 BUILD_NULL
899 BUILD_PASSWD
900 BUILD_RELAY
901 BUILD_PERL
902 BUILD_SHELL
903 BUILD_SOCK
904 BUILD_SQL
905 BUILD_ACCESSLOG
906 BUILD_AUDITLOG
907 BUILD_COLLECT
908 BUILD_CONSTRAINT
909 BUILD_DDS
910 BUILD_DENYOP
911 BUILD_DYNGROUP
912 BUILD_DYNLIST
913 BUILD_LASTMOD
914 BUILD_MEMBEROF
915 BUILD_PPOLICY
916 BUILD_PROXYCACHE
917 BUILD_REFINT
918 BUILD_RETCODE
919 BUILD_RWM
920 BUILD_SEQMOD
921 BUILD_SSSVLV
922 BUILD_SYNCPROV
923 BUILD_TRANSLUCENT
924 BUILD_UNIQUE
925 BUILD_VALSORT
926 LDAP_LIBS
927 SLAPD_LIBS
928 BDB_LIBS
929 SLAPD_NDB_LIBS
930 SLAPD_NDB_INCS
931 LTHREAD_LIBS
932 LUTIL_LIBS
933 WRAP_LIBS
934 SLAPD_MODULES_CPPFLAGS
935 SLAPD_MODULES_LDFLAGS
936 SLAPD_NO_STATIC
937 SLAPD_STATIC_BACKENDS
938 SLAPD_DYNAMIC_BACKENDS
939 SLAPD_STATIC_OVERLAYS
940 SLAPD_DYNAMIC_OVERLAYS
941 PERL_CPPFLAGS
942 SLAPD_PERL_LDFLAGS
943 MOD_PERL_LDFLAGS
944 KRB4_LIBS
945 KRB5_LIBS
946 SASL_LIBS
947 TLS_LIBS
948 MODULES_LIBS
949 SLAPI_LIBS
950 LIBSLAPI
951 LIBSLAPITOOLS
952 AUTH_LIBS
953 ICU_LIBS
954 SLAPD_SLP_LIBS
955 SLAPD_GMP_LIBS
956 SLAPD_SQL_LDFLAGS
957 SLAPD_SQL_LIBS
958 SLAPD_SQL_INCLUDES
959 LTLIBOBJS'
960 ac_subst_files=''
961       ac_precious_vars='build_alias
962 host_alias
963 target_alias
964 CC
965 CFLAGS
966 LDFLAGS
967 LIBS
968 CPPFLAGS
969 CPP'
970
971
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
977 cache_file=/dev/null
978 exec_prefix=NONE
979 no_create=
980 no_recursion=
981 prefix=NONE
982 program_prefix=NONE
983 program_suffix=NONE
984 program_transform_name=s,x,x,
985 silent=
986 site=
987 srcdir=
988 verbose=
989 x_includes=NONE
990 x_libraries=NONE
991
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE}'
1009 infodir='${datarootdir}/info'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1017
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1021 do
1022   # If the previous option needs an argument, assign it.
1023   if test -n "$ac_prev"; then
1024     eval $ac_prev=\$ac_option
1025     ac_prev=
1026     continue
1027   fi
1028
1029   case $ac_option in
1030   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031   *)    ac_optarg=yes ;;
1032   esac
1033
1034   # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1036   case $ac_dashdash$ac_option in
1037   --)
1038     ac_dashdash=yes ;;
1039
1040   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041     ac_prev=bindir ;;
1042   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043     bindir=$ac_optarg ;;
1044
1045   -build | --build | --buil | --bui | --bu)
1046     ac_prev=build_alias ;;
1047   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048     build_alias=$ac_optarg ;;
1049
1050   -cache-file | --cache-file | --cache-fil | --cache-fi \
1051   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052     ac_prev=cache_file ;;
1053   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055     cache_file=$ac_optarg ;;
1056
1057   --config-cache | -C)
1058     cache_file=config.cache ;;
1059
1060   -datadir | --datadir | --datadi | --datad)
1061     ac_prev=datadir ;;
1062   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063     datadir=$ac_optarg ;;
1064
1065   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066   | --dataroo | --dataro | --datar)
1067     ac_prev=datarootdir ;;
1068   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070     datarootdir=$ac_optarg ;;
1071
1072   -disable-* | --disable-*)
1073     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077    { (exit 1); exit 1; }; }
1078     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1079     eval enable_$ac_feature=no ;;
1080
1081   -docdir | --docdir | --docdi | --doc | --do)
1082     ac_prev=docdir ;;
1083   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084     docdir=$ac_optarg ;;
1085
1086   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087     ac_prev=dvidir ;;
1088   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089     dvidir=$ac_optarg ;;
1090
1091   -enable-* | --enable-*)
1092     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096    { (exit 1); exit 1; }; }
1097     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1098     eval enable_$ac_feature=\$ac_optarg ;;
1099
1100   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102   | --exec | --exe | --ex)
1103     ac_prev=exec_prefix ;;
1104   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106   | --exec=* | --exe=* | --ex=*)
1107     exec_prefix=$ac_optarg ;;
1108
1109   -gas | --gas | --ga | --g)
1110     # Obsolete; use --with-gas.
1111     with_gas=yes ;;
1112
1113   -help | --help | --hel | --he | -h)
1114     ac_init_help=long ;;
1115   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116     ac_init_help=recursive ;;
1117   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118     ac_init_help=short ;;
1119
1120   -host | --host | --hos | --ho)
1121     ac_prev=host_alias ;;
1122   -host=* | --host=* | --hos=* | --ho=*)
1123     host_alias=$ac_optarg ;;
1124
1125   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126     ac_prev=htmldir ;;
1127   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128   | --ht=*)
1129     htmldir=$ac_optarg ;;
1130
1131   -includedir | --includedir | --includedi | --included | --include \
1132   | --includ | --inclu | --incl | --inc)
1133     ac_prev=includedir ;;
1134   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135   | --includ=* | --inclu=* | --incl=* | --inc=*)
1136     includedir=$ac_optarg ;;
1137
1138   -infodir | --infodir | --infodi | --infod | --info | --inf)
1139     ac_prev=infodir ;;
1140   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141     infodir=$ac_optarg ;;
1142
1143   -libdir | --libdir | --libdi | --libd)
1144     ac_prev=libdir ;;
1145   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146     libdir=$ac_optarg ;;
1147
1148   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149   | --libexe | --libex | --libe)
1150     ac_prev=libexecdir ;;
1151   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152   | --libexe=* | --libex=* | --libe=*)
1153     libexecdir=$ac_optarg ;;
1154
1155   -localedir | --localedir | --localedi | --localed | --locale)
1156     ac_prev=localedir ;;
1157   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158     localedir=$ac_optarg ;;
1159
1160   -localstatedir | --localstatedir | --localstatedi | --localstated \
1161   | --localstate | --localstat | --localsta | --localst | --locals)
1162     ac_prev=localstatedir ;;
1163   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165     localstatedir=$ac_optarg ;;
1166
1167   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168     ac_prev=mandir ;;
1169   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170     mandir=$ac_optarg ;;
1171
1172   -nfp | --nfp | --nf)
1173     # Obsolete; use --without-fp.
1174     with_fp=no ;;
1175
1176   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177   | --no-cr | --no-c | -n)
1178     no_create=yes ;;
1179
1180   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182     no_recursion=yes ;;
1183
1184   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186   | --oldin | --oldi | --old | --ol | --o)
1187     ac_prev=oldincludedir ;;
1188   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191     oldincludedir=$ac_optarg ;;
1192
1193   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194     ac_prev=prefix ;;
1195   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196     prefix=$ac_optarg ;;
1197
1198   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199   | --program-pre | --program-pr | --program-p)
1200     ac_prev=program_prefix ;;
1201   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203     program_prefix=$ac_optarg ;;
1204
1205   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206   | --program-suf | --program-su | --program-s)
1207     ac_prev=program_suffix ;;
1208   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210     program_suffix=$ac_optarg ;;
1211
1212   -program-transform-name | --program-transform-name \
1213   | --program-transform-nam | --program-transform-na \
1214   | --program-transform-n | --program-transform- \
1215   | --program-transform | --program-transfor \
1216   | --program-transfo | --program-transf \
1217   | --program-trans | --program-tran \
1218   | --progr-tra | --program-tr | --program-t)
1219     ac_prev=program_transform_name ;;
1220   -program-transform-name=* | --program-transform-name=* \
1221   | --program-transform-nam=* | --program-transform-na=* \
1222   | --program-transform-n=* | --program-transform-=* \
1223   | --program-transform=* | --program-transfor=* \
1224   | --program-transfo=* | --program-transf=* \
1225   | --program-trans=* | --program-tran=* \
1226   | --progr-tra=* | --program-tr=* | --program-t=*)
1227     program_transform_name=$ac_optarg ;;
1228
1229   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230     ac_prev=pdfdir ;;
1231   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232     pdfdir=$ac_optarg ;;
1233
1234   -psdir | --psdir | --psdi | --psd | --ps)
1235     ac_prev=psdir ;;
1236   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237     psdir=$ac_optarg ;;
1238
1239   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240   | -silent | --silent | --silen | --sile | --sil)
1241     silent=yes ;;
1242
1243   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244     ac_prev=sbindir ;;
1245   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246   | --sbi=* | --sb=*)
1247     sbindir=$ac_optarg ;;
1248
1249   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251   | --sharedst | --shareds | --shared | --share | --shar \
1252   | --sha | --sh)
1253     ac_prev=sharedstatedir ;;
1254   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257   | --sha=* | --sh=*)
1258     sharedstatedir=$ac_optarg ;;
1259
1260   -site | --site | --sit)
1261     ac_prev=site ;;
1262   -site=* | --site=* | --sit=*)
1263     site=$ac_optarg ;;
1264
1265   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266     ac_prev=srcdir ;;
1267   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268     srcdir=$ac_optarg ;;
1269
1270   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271   | --syscon | --sysco | --sysc | --sys | --sy)
1272     ac_prev=sysconfdir ;;
1273   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275     sysconfdir=$ac_optarg ;;
1276
1277   -target | --target | --targe | --targ | --tar | --ta | --t)
1278     ac_prev=target_alias ;;
1279   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280     target_alias=$ac_optarg ;;
1281
1282   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283     verbose=yes ;;
1284
1285   -version | --version | --versio | --versi | --vers | -V)
1286     ac_init_version=: ;;
1287
1288   -with-* | --with-*)
1289     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292       { echo "$as_me: error: invalid package name: $ac_package" >&2
1293    { (exit 1); exit 1; }; }
1294     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1295     eval with_$ac_package=\$ac_optarg ;;
1296
1297   -without-* | --without-*)
1298     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299     # Reject names that are not valid shell variable names.
1300     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301       { echo "$as_me: error: invalid package name: $ac_package" >&2
1302    { (exit 1); exit 1; }; }
1303     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1304     eval with_$ac_package=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326    { (exit 1); exit 1; }; }
1327     ;;
1328
1329   *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334    { (exit 1); exit 1; }; }
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   { echo "$as_me: error: missing argument to $ac_option" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 # Be sure to have absolute directory names.
1356 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357                 datadir sysconfdir sharedstatedir localstatedir includedir \
1358                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359                 libdir localedir mandir
1360 do
1361   eval ac_val=\$$ac_var
1362   case $ac_val in
1363     [\\/$]* | ?:[\\/]* )  continue;;
1364     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365   esac
1366   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367    { (exit 1); exit 1; }; }
1368 done
1369
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379   if test "x$build_alias" = x; then
1380     cross_compiling=maybe
1381     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382     If a cross compiler is detected then cross compile mode will be used." >&2
1383   elif test "x$build_alias" != "x$host_alias"; then
1384     cross_compiling=yes
1385   fi
1386 fi
1387
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391 test "$silent" = yes && exec 6>/dev/null
1392
1393
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397   { echo "$as_me: error: Working directory cannot be determined" >&2
1398    { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400   { echo "$as_me: error: pwd does not report name of working directory" >&2
1401    { (exit 1); exit 1; }; }
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406   ac_srcdir_defaulted=yes
1407   # Try the directory containing this script, then the parent directory.
1408   ac_confdir=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410          X"$0" : 'X\(//\)[^/]' \| \
1411          X"$0" : 'X\(//\)$' \| \
1412          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1413 echo X"$0" |
1414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415             s//\1/
1416             q
1417           }
1418           /^X\(\/\/\)[^/].*/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\/\)$/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\).*/{
1427             s//\1/
1428             q
1429           }
1430           s/.*/./; q'`
1431   srcdir=$ac_confdir
1432   if test ! -r "$srcdir/$ac_unique_file"; then
1433     srcdir=..
1434   fi
1435 else
1436   ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441    { (exit 1); exit 1; }; }
1442 fi
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 ac_abs_confdir=`(
1445         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446    { (exit 1); exit 1; }; }
1447         pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450   srcdir=.
1451 fi
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for ac_var in $ac_precious_vars; do
1459   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460   eval ac_env_${ac_var}_value=\$${ac_var}
1461   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463 done
1464
1465 #
1466 # Report the --help message.
1467 #
1468 if test "$ac_init_help" = "long"; then
1469   # Omit some internal or obsolete options to make the list less imposing.
1470   # This message is too long to be a string in the A/UX 3.1 sh.
1471   cat <<_ACEOF
1472 \`configure' configures this package to adapt to many kinds of systems.
1473
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE.  See below for descriptions of some of the useful variables.
1478
1479 Defaults for the options are specified in brackets.
1480
1481 Configuration:
1482   -h, --help              display this help and exit
1483       --help=short        display options specific to this package
1484       --help=recursive    display the short help of all the included packages
1485   -V, --version           display version information and exit
1486   -q, --quiet, --silent   do not print \`checking...' messages
1487       --cache-file=FILE   cache test results in FILE [disabled]
1488   -C, --config-cache      alias for \`--cache-file=config.cache'
1489   -n, --no-create         do not create output files
1490       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1491
1492 Installation directories:
1493   --prefix=PREFIX         install architecture-independent files in PREFIX
1494                           [$ac_default_prefix]
1495   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1496                           [PREFIX]
1497
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1502
1503 For better control, use the options below.
1504
1505 Fine tuning of the installation directories:
1506   --bindir=DIR           user executables [EPREFIX/bin]
1507   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1508   --libexecdir=DIR       program executables [EPREFIX/libexec]
1509   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1510   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1511   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1512   --libdir=DIR           object code libraries [EPREFIX/lib]
1513   --includedir=DIR       C header files [PREFIX/include]
1514   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1515   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1516   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1517   --infodir=DIR          info documentation [DATAROOTDIR/info]
1518   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1519   --mandir=DIR           man documentation [DATAROOTDIR/man]
1520   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1521   --htmldir=DIR          html documentation [DOCDIR]
1522   --dvidir=DIR           dvi documentation [DOCDIR]
1523   --pdfdir=DIR           pdf documentation [DOCDIR]
1524   --psdir=DIR            ps documentation [DOCDIR]
1525 _ACEOF
1526
1527   cat <<\_ACEOF
1528
1529 Program names:
1530   --program-prefix=PREFIX            prepend PREFIX to installed program names
1531   --program-suffix=SUFFIX            append SUFFIX to installed program names
1532   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1533
1534 System types:
1535   --build=BUILD     configure for building on BUILD [guessed]
1536   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1537   --target=TARGET   configure for building compilers for TARGET [HOST]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542
1543   cat <<\_ACEOF
1544
1545 Optional Features:
1546   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1547   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1548   --enable-debug          enable debugging no|yes|traditional [yes]
1549   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1550   --enable-syslog         enable syslog support [auto]
1551   --enable-proctitle      enable proctitle support [yes]
1552   --enable-ipv6           enable IPv6 support [auto]
1553   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1554
1555 SLAPD (Standalone LDAP Daemon) Options:
1556   --enable-slapd          enable building slapd [yes]
1557     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1558     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1559     --enable-cleartext    enable cleartext passwords [yes]
1560     --enable-crypt        enable crypt(3) passwords [no]
1561     --enable-lmpasswd     enable LAN Manager passwords [no]
1562     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1563     --enable-modules      enable dynamic module support [no]
1564     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1565     --enable-rlookups     enable reverse lookups of client hostnames [no]
1566     --enable-slapi        enable SLAPI support (experimental) [no]
1567     --enable-slp          enable SLPv2 support [no]
1568     --enable-wrappers     enable tcp wrapper support [no]
1569
1570 SLAPD Backend Options:
1571     --enable-backends     enable all available backends no|yes|mod
1572     --enable-bdb          enable Berkeley DB backend no|yes|mod [no]
1573     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1574     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1575     --enable-ldap         enable ldap backend no|yes|mod [no]
1576     --enable-meta         enable metadirectory backend no|yes|mod [no]
1577     --enable-monitor      enable monitor backend no|yes|mod [yes]
1578     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1579     --enable-null         enable null backend no|yes|mod [no]
1580     --enable-passwd       enable passwd backend no|yes|mod [no]
1581     --enable-perl         enable perl backend no|yes|mod [no]
1582     --enable-relay        enable relay backend no|yes|mod [yes]
1583     --enable-shell        enable shell backend no|yes|mod [no]
1584     --enable-sock         enable sock backend no|yes|mod [no]
1585     --enable-sql          enable sql backend no|yes|mod [no]
1586
1587 SLAPD Overlay Options:
1588     --enable-overlays     enable all available overlays no|yes|mod
1589     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1590     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1591     --enable-collect      Collect overlay no|yes|mod [no]
1592     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1593     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1594     --enable-deref        Dereference overlay no|yes|mod [no]
1595     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1596     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1597     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1598     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1599     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1600     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1601     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1602     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1603     --enable-seqmod       Sequential Modify overlay no|yes|mod [no]
1604     --enable-sssvlv       ServerSideSort/VLV overlay no|yes|mod [no]
1605     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1606     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1607     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1608     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1609
1610 Library Generation & Linking Options
1611   --enable-static[=PKGS]  build static libraries [default=yes]
1612   --enable-shared[=PKGS]  build shared libraries [default=yes]
1613   --enable-fast-install[=PKGS]
1614                           optimize for fast installation [default=yes]
1615   --disable-dependency-tracking  speeds up one-time build
1616   --enable-dependency-tracking   do not reject slow dependency extractors
1617   --disable-libtool-lock  avoid locking (might break parallel builds)
1618
1619 Optional Packages:
1620   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1621   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1622   --with-subdir=DIR       change default subdirectory used for installs
1623   --with-cyrus-sasl       with Cyrus SASL support [auto]
1624   --with-fetch            with fetch(3) URL support [auto]
1625   --with-threads          with threads [auto]
1626   --with-tls              with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1627   --with-yielding-select  with implicitly yielding select [auto]
1628   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1629   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1630   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1631   --with-pic              try to use only PIC/non-PIC objects [default=use
1632                           both]
1633   --with-tags[=TAGS]      include additional configurations [automatic]
1634
1635 See INSTALL file for further details.
1636
1637 Some influential environment variables:
1638   CC          C compiler command
1639   CFLAGS      C compiler flags
1640   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1641               nonstandard directory <lib dir>
1642   LIBS        libraries to pass to the linker, e.g. -l<library>
1643   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1644               you have headers in a nonstandard directory <include dir>
1645   CPP         C preprocessor
1646
1647 Use these variables to override the choices made by `configure' or to help
1648 it to find libraries and programs with nonstandard names/locations.
1649
1650 _ACEOF
1651 ac_status=$?
1652 fi
1653
1654 if test "$ac_init_help" = "recursive"; then
1655   # If there are subdirs, report their specific --help.
1656   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657     test -d "$ac_dir" || continue
1658     ac_builddir=.
1659
1660 case "$ac_dir" in
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *)
1663   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1664   # A ".." for each directory in $ac_dir_suffix.
1665   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1666   case $ac_top_builddir_sub in
1667   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669   esac ;;
1670 esac
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1675
1676 case $srcdir in
1677   .)  # We are building in place.
1678     ac_srcdir=.
1679     ac_top_srcdir=$ac_top_builddir_sub
1680     ac_abs_top_srcdir=$ac_pwd ;;
1681   [\\/]* | ?:[\\/]* )  # Absolute name.
1682     ac_srcdir=$srcdir$ac_dir_suffix;
1683     ac_top_srcdir=$srcdir
1684     ac_abs_top_srcdir=$srcdir ;;
1685   *) # Relative name.
1686     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687     ac_top_srcdir=$ac_top_build_prefix$srcdir
1688     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 esac
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
1692     cd "$ac_dir" || { ac_status=$?; continue; }
1693     # Check for guested configure.
1694     if test -f "$ac_srcdir/configure.gnu"; then
1695       echo &&
1696       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697     elif test -f "$ac_srcdir/configure"; then
1698       echo &&
1699       $SHELL "$ac_srcdir/configure" --help=recursive
1700     else
1701       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702     fi || ac_status=$?
1703     cd "$ac_pwd" || { ac_status=$?; break; }
1704   done
1705 fi
1706
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1709   cat <<\_ACEOF
1710 configure
1711 generated by GNU Autoconf 2.61
1712
1713 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1714 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1717
1718 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1719 Restrictions apply, see COPYRIGHT and LICENSE files.
1720 _ACEOF
1721   exit
1722 fi
1723 cat >config.log <<_ACEOF
1724 This file contains any messages produced by compilers while
1725 running configure, to aid debugging if configure makes a mistake.
1726
1727 It was created by $as_me, which was
1728 generated by GNU Autoconf 2.61.  Invocation command line was
1729
1730   $ $0 $@
1731
1732 _ACEOF
1733 exec 5>>config.log
1734 {
1735 cat <<_ASUNAME
1736 ## --------- ##
1737 ## Platform. ##
1738 ## --------- ##
1739
1740 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1741 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1742 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1743 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1744 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1745
1746 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1747 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1748
1749 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1750 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1751 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1752 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1753 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1754 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1755 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1756
1757 _ASUNAME
1758
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1761 do
1762   IFS=$as_save_IFS
1763   test -z "$as_dir" && as_dir=.
1764   echo "PATH: $as_dir"
1765 done
1766 IFS=$as_save_IFS
1767
1768 } >&5
1769
1770 cat >&5 <<_ACEOF
1771
1772
1773 ## ----------- ##
1774 ## Core tests. ##
1775 ## ----------- ##
1776
1777 _ACEOF
1778
1779
1780 # Keep a trace of the command line.
1781 # Strip out --no-create and --no-recursion so they do not pile up.
1782 # Strip out --silent because we don't want to record it for future runs.
1783 # Also quote any args containing shell meta-characters.
1784 # Make two passes to allow for proper duplicate-argument suppression.
1785 ac_configure_args=
1786 ac_configure_args0=
1787 ac_configure_args1=
1788 ac_must_keep_next=false
1789 for ac_pass in 1 2
1790 do
1791   for ac_arg
1792   do
1793     case $ac_arg in
1794     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1795     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1796     | -silent | --silent | --silen | --sile | --sil)
1797       continue ;;
1798     *\'*)
1799       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1800     esac
1801     case $ac_pass in
1802     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1803     2)
1804       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1805       if test $ac_must_keep_next = true; then
1806         ac_must_keep_next=false # Got value, back to normal.
1807       else
1808         case $ac_arg in
1809           *=* | --config-cache | -C | -disable-* | --disable-* \
1810           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1811           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1812           | -with-* | --with-* | -without-* | --without-* | --x)
1813             case "$ac_configure_args0 " in
1814               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1815             esac
1816             ;;
1817           -* ) ac_must_keep_next=true ;;
1818         esac
1819       fi
1820       ac_configure_args="$ac_configure_args '$ac_arg'"
1821       ;;
1822     esac
1823   done
1824 done
1825 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1826 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1827
1828 # When interrupted or exit'd, cleanup temporary files, and complete
1829 # config.log.  We remove comments because anyway the quotes in there
1830 # would cause problems or look ugly.
1831 # WARNING: Use '\'' to represent an apostrophe within the trap.
1832 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1833 trap 'exit_status=$?
1834   # Save into config.log some information that might help in debugging.
1835   {
1836     echo
1837
1838     cat <<\_ASBOX
1839 ## ---------------- ##
1840 ## Cache variables. ##
1841 ## ---------------- ##
1842 _ASBOX
1843     echo
1844     # The following way of writing the cache mishandles newlines in values,
1845 (
1846   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1847     eval ac_val=\$$ac_var
1848     case $ac_val in #(
1849     *${as_nl}*)
1850       case $ac_var in #(
1851       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1852 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1853       esac
1854       case $ac_var in #(
1855       _ | IFS | as_nl) ;; #(
1856       *) $as_unset $ac_var ;;
1857       esac ;;
1858     esac
1859   done
1860   (set) 2>&1 |
1861     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1862     *${as_nl}ac_space=\ *)
1863       sed -n \
1864         "s/'\''/'\''\\\\'\'''\''/g;
1865           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1866       ;; #(
1867     *)
1868       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1869       ;;
1870     esac |
1871     sort
1872 )
1873     echo
1874
1875     cat <<\_ASBOX
1876 ## ----------------- ##
1877 ## Output variables. ##
1878 ## ----------------- ##
1879 _ASBOX
1880     echo
1881     for ac_var in $ac_subst_vars
1882     do
1883       eval ac_val=\$$ac_var
1884       case $ac_val in
1885       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1886       esac
1887       echo "$ac_var='\''$ac_val'\''"
1888     done | sort
1889     echo
1890
1891     if test -n "$ac_subst_files"; then
1892       cat <<\_ASBOX
1893 ## ------------------- ##
1894 ## File substitutions. ##
1895 ## ------------------- ##
1896 _ASBOX
1897       echo
1898       for ac_var in $ac_subst_files
1899       do
1900         eval ac_val=\$$ac_var
1901         case $ac_val in
1902         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903         esac
1904         echo "$ac_var='\''$ac_val'\''"
1905       done | sort
1906       echo
1907     fi
1908
1909     if test -s confdefs.h; then
1910       cat <<\_ASBOX
1911 ## ----------- ##
1912 ## confdefs.h. ##
1913 ## ----------- ##
1914 _ASBOX
1915       echo
1916       cat confdefs.h
1917       echo
1918     fi
1919     test "$ac_signal" != 0 &&
1920       echo "$as_me: caught signal $ac_signal"
1921     echo "$as_me: exit $exit_status"
1922   } >&5
1923   rm -f core *.core core.conftest.* &&
1924     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1925     exit $exit_status
1926 ' 0
1927 for ac_signal in 1 2 13 15; do
1928   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1929 done
1930 ac_signal=0
1931
1932 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1933 rm -f -r conftest* confdefs.h
1934
1935 # Predefined preprocessor variables.
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_NAME "$PACKAGE_NAME"
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1949 _ACEOF
1950
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1954 _ACEOF
1955
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1959 _ACEOF
1960
1961
1962 # Let the site file select an alternate cache file if it wants to.
1963 # Prefer explicitly selected file to automatically selected ones.
1964 if test -n "$CONFIG_SITE"; then
1965   set x "$CONFIG_SITE"
1966 elif test "x$prefix" != xNONE; then
1967   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1968 else
1969   set x "$ac_default_prefix/share/config.site" \
1970         "$ac_default_prefix/etc/config.site"
1971 fi
1972 shift
1973 for ac_site_file
1974 do
1975   if test -r "$ac_site_file"; then
1976     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1977 echo "$as_me: loading site script $ac_site_file" >&6;}
1978     sed 's/^/| /' "$ac_site_file" >&5
1979     . "$ac_site_file"
1980   fi
1981 done
1982
1983
1984 # Check that the precious variables saved in the cache have kept the same
1985 # value.
1986 ac_cache_corrupted=false
1987 for ac_var in $ac_precious_vars; do
1988   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1989   eval ac_new_set=\$ac_env_${ac_var}_set
1990   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1991   eval ac_new_val=\$ac_env_${ac_var}_value
1992   case $ac_old_set,$ac_new_set in
1993     set,)
1994       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996       ac_cache_corrupted=: ;;
1997     ,set)
1998       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000       ac_cache_corrupted=: ;;
2001     ,);;
2002     *)
2003       if test "x$ac_old_val" != "x$ac_new_val"; then
2004         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2005 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2006         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2007 echo "$as_me:   former value:  $ac_old_val" >&2;}
2008         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2009 echo "$as_me:   current value: $ac_new_val" >&2;}
2010         ac_cache_corrupted=:
2011       fi;;
2012   esac
2013   # Pass precious variables to config.status.
2014   if test "$ac_new_set" = set; then
2015     case $ac_new_val in
2016     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2017     *) ac_arg=$ac_var=$ac_new_val ;;
2018     esac
2019     case " $ac_configure_args " in
2020       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2021       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2022     esac
2023   fi
2024 done
2025 if $ac_cache_corrupted; then
2026   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2027 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2028   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2029 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2030    { (exit 1); exit 1; }; }
2031 fi
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049 ac_ext=c
2050 ac_cpp='$CPP $CPPFLAGS'
2051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082 ac_aux_dir=
2083 for ac_dir in build "$srcdir"/build; do
2084   if test -f "$ac_dir/install-sh"; then
2085     ac_aux_dir=$ac_dir
2086     ac_install_sh="$ac_aux_dir/install-sh -c"
2087     break
2088   elif test -f "$ac_dir/install.sh"; then
2089     ac_aux_dir=$ac_dir
2090     ac_install_sh="$ac_aux_dir/install.sh -c"
2091     break
2092   elif test -f "$ac_dir/shtool"; then
2093     ac_aux_dir=$ac_dir
2094     ac_install_sh="$ac_aux_dir/shtool install -c"
2095     break
2096   fi
2097 done
2098 if test -z "$ac_aux_dir"; then
2099   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2100 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2101    { (exit 1); exit 1; }; }
2102 fi
2103
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2111
2112
2113 eval `$ac_aux_dir/version.sh`
2114 if test -z "$OL_STRING"; then
2115         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2116 echo "$as_me: error: could not determine version" >&2;}
2117    { (exit 1); exit 1; }; }
2118 fi
2119
2120 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2121         ac_cv_shtool="$ac_aux_dir/shtool"
2122 else
2123         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2124 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2125    { (exit 1); exit 1; }; }
2126 fi
2127
2128 SHTOOL="$ac_cv_shtool"
2129
2130 TB="" TN=""
2131 if test -t 1; then
2132         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2133         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2134 fi
2135
2136 OPENLDAP_CVS=""
2137 if test -d $ac_aux_dir/CVS; then
2138         OPENLDAP_CVS="(from CVS sources) "
2139 fi
2140
2141 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2142
2143 # Make sure we can run config.sub.
2144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2145   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2146 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2147    { (exit 1); exit 1; }; }
2148
2149 { echo "$as_me:$LINENO: checking build system type" >&5
2150 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2151 if test "${ac_cv_build+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   ac_build_alias=$build_alias
2155 test "x$ac_build_alias" = x &&
2156   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2157 test "x$ac_build_alias" = x &&
2158   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160    { (exit 1); exit 1; }; }
2161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2162   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2164    { (exit 1); exit 1; }; }
2165
2166 fi
2167 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168 echo "${ECHO_T}$ac_cv_build" >&6; }
2169 case $ac_cv_build in
2170 *-*-*) ;;
2171 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2172 echo "$as_me: error: invalid value of canonical build" >&2;}
2173    { (exit 1); exit 1; }; };;
2174 esac
2175 build=$ac_cv_build
2176 ac_save_IFS=$IFS; IFS='-'
2177 set x $ac_cv_build
2178 shift
2179 build_cpu=$1
2180 build_vendor=$2
2181 shift; shift
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2184 build_os=$*
2185 IFS=$ac_save_IFS
2186 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2187
2188
2189 { echo "$as_me:$LINENO: checking host system type" >&5
2190 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2191 if test "${ac_cv_host+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   if test "x$host_alias" = x; then
2195   ac_cv_host=$ac_cv_build
2196 else
2197   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2199 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2200    { (exit 1); exit 1; }; }
2201 fi
2202
2203 fi
2204 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205 echo "${ECHO_T}$ac_cv_host" >&6; }
2206 case $ac_cv_host in
2207 *-*-*) ;;
2208 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2209 echo "$as_me: error: invalid value of canonical host" >&2;}
2210    { (exit 1); exit 1; }; };;
2211 esac
2212 host=$ac_cv_host
2213 ac_save_IFS=$IFS; IFS='-'
2214 set x $ac_cv_host
2215 shift
2216 host_cpu=$1
2217 host_vendor=$2
2218 shift; shift
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2221 host_os=$*
2222 IFS=$ac_save_IFS
2223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2224
2225
2226 { echo "$as_me:$LINENO: checking target system type" >&5
2227 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2228 if test "${ac_cv_target+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test "x$target_alias" = x; then
2232   ac_cv_target=$ac_cv_host
2233 else
2234   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2235     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2236 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2237    { (exit 1); exit 1; }; }
2238 fi
2239
2240 fi
2241 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2242 echo "${ECHO_T}$ac_cv_target" >&6; }
2243 case $ac_cv_target in
2244 *-*-*) ;;
2245 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2246 echo "$as_me: error: invalid value of canonical target" >&2;}
2247    { (exit 1); exit 1; }; };;
2248 esac
2249 target=$ac_cv_target
2250 ac_save_IFS=$IFS; IFS='-'
2251 set x $ac_cv_target
2252 shift
2253 target_cpu=$1
2254 target_vendor=$2
2255 shift; shift
2256 # Remember, the first character of IFS is used to create $*,
2257 # except with old shells:
2258 target_os=$*
2259 IFS=$ac_save_IFS
2260 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2261
2262
2263 # The aliases save the names the user supplied, while $host etc.
2264 # will get canonicalized.
2265 test -n "$target_alias" &&
2266   test "$program_prefix$program_suffix$program_transform_name" = \
2267     NONENONEs,x,x, &&
2268   program_prefix=${target_alias}-
2269
2270 am__api_version="1.9"
2271 # Find a good install program.  We prefer a C program (faster),
2272 # so one script is as good as another.  But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2277 # AIX /bin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # OS/2's system install, which has a completely different semantic
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2286 if test -z "$INSTALL"; then
2287 if test "${ac_cv_path_install+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293   IFS=$as_save_IFS
2294   test -z "$as_dir" && as_dir=.
2295   # Account for people who put trailing slashes in PATH elements.
2296 case $as_dir/ in
2297   ./ | .// | /cC/* | \
2298   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2299   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2300   /usr/ucb/* ) ;;
2301   *)
2302     # OSF1 and SCO ODT 3.0 have their own names for install.
2303     # Don't use installbsd from OSF since it installs stuff as root
2304     # by default.
2305     for ac_prog in ginstall scoinst install; do
2306       for ac_exec_ext in '' $ac_executable_extensions; do
2307         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2308           if test $ac_prog = install &&
2309             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310             # AIX install.  It has an incompatible calling convention.
2311             :
2312           elif test $ac_prog = install &&
2313             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2314             # program-specific install script used by HP pwplus--don't use.
2315             :
2316           else
2317             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2318             break 3
2319           fi
2320         fi
2321       done
2322     done
2323     ;;
2324 esac
2325 done
2326 IFS=$as_save_IFS
2327
2328
2329 fi
2330   if test "${ac_cv_path_install+set}" = set; then
2331     INSTALL=$ac_cv_path_install
2332   else
2333     # As a last resort, use the slow shell script.  Don't cache a
2334     # value for INSTALL within a source directory, because that will
2335     # break other packages using the cache if that directory is
2336     # removed, or if the value is a relative name.
2337     INSTALL=$ac_install_sh
2338   fi
2339 fi
2340 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2341 echo "${ECHO_T}$INSTALL" >&6; }
2342
2343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2344 # It thinks the first close brace ends the variable substitution.
2345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2346
2347 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2348
2349 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2350
2351 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2352 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2353 # Just in case
2354 sleep 1
2355 echo timestamp > conftest.file
2356 # Do `set' in a subshell so we don't clobber the current shell's
2357 # arguments.  Must try -L first in case configure is actually a
2358 # symlink; some systems play weird games with the mod time of symlinks
2359 # (eg FreeBSD returns the mod time of the symlink's containing
2360 # directory).
2361 if (
2362    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2363    if test "$*" = "X"; then
2364       # -L didn't work.
2365       set X `ls -t $srcdir/configure conftest.file`
2366    fi
2367    rm -f conftest.file
2368    if test "$*" != "X $srcdir/configure conftest.file" \
2369       && test "$*" != "X conftest.file $srcdir/configure"; then
2370
2371       # If neither matched, then we have a broken ls.  This can happen
2372       # if, for instance, CONFIG_SHELL is bash and it inherits a
2373       # broken ls alias from the environment.  This has actually
2374       # happened.  Such a system could not be considered "sane".
2375       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2376 alias in your environment" >&5
2377 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2378 alias in your environment" >&2;}
2379    { (exit 1); exit 1; }; }
2380    fi
2381
2382    test "$2" = conftest.file
2383    )
2384 then
2385    # Ok.
2386    :
2387 else
2388    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2389 Check your system clock" >&5
2390 echo "$as_me: error: newly created file is older than distributed files!
2391 Check your system clock" >&2;}
2392    { (exit 1); exit 1; }; }
2393 fi
2394 { echo "$as_me:$LINENO: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6; }
2396 test "$program_prefix" != NONE &&
2397   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2398 # Use a double $ so make ignores it.
2399 test "$program_suffix" != NONE &&
2400   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2401 # Double any \ or $.  echo might interpret backslashes.
2402 # By default was `s,x,x', remove it if useless.
2403 cat <<\_ACEOF >conftest.sed
2404 s/[\\$]/&&/g;s/;s,x,x,$//
2405 _ACEOF
2406 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2407 rm -f conftest.sed
2408
2409 # expand $ac_aux_dir to an absolute path
2410 am_aux_dir=`cd $ac_aux_dir && pwd`
2411
2412 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2413 # Use eval to expand $SHELL
2414 if eval "$MISSING --run true"; then
2415   am_missing_run="$MISSING --run "
2416 else
2417   am_missing_run=
2418   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2419 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2420 fi
2421
2422 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2423   # We used to keeping the `.' as first argument, in order to
2424   # allow $(mkdir_p) to be used without argument.  As in
2425   #   $(mkdir_p) $(somedir)
2426   # where $(somedir) is conditionally defined.  However this is wrong
2427   # for two reasons:
2428   #  1. if the package is installed by a user who cannot write `.'
2429   #     make install will fail,
2430   #  2. the above comment should most certainly read
2431   #     $(mkdir_p) $(DESTDIR)$(somedir)
2432   #     so it does not work when $(somedir) is undefined and
2433   #     $(DESTDIR) is not.
2434   #  To support the latter case, we have to write
2435   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2436   #  so the `.' trick is pointless.
2437   mkdir_p='mkdir -p --'
2438 else
2439   # On NextStep and OpenStep, the `mkdir' command does not
2440   # recognize any option.  It will interpret all options as
2441   # directories to create, and then abort because `.' already
2442   # exists.
2443   for d in ./-p ./--version;
2444   do
2445     test -d $d && rmdir $d
2446   done
2447   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2448   if test -f "$ac_aux_dir/mkinstalldirs"; then
2449     mkdir_p='$(mkinstalldirs)'
2450   else
2451     mkdir_p='$(install_sh) -d'
2452   fi
2453 fi
2454
2455 for ac_prog in gawk mawk nawk awk
2456 do
2457   # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_AWK+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$AWK"; then
2465   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474     ac_cv_prog_AWK="$ac_prog"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480 IFS=$as_save_IFS
2481
2482 fi
2483 fi
2484 AWK=$ac_cv_prog_AWK
2485 if test -n "$AWK"; then
2486   { echo "$as_me:$LINENO: result: $AWK" >&5
2487 echo "${ECHO_T}$AWK" >&6; }
2488 else
2489   { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2491 fi
2492
2493
2494   test -n "$AWK" && break
2495 done
2496
2497 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2498 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2499 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2500 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   cat >conftest.make <<\_ACEOF
2504 SHELL = /bin/sh
2505 all:
2506         @echo '@@@%%%=$(MAKE)=@@@%%%'
2507 _ACEOF
2508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2509 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2510   *@@@%%%=?*=@@@%%%*)
2511     eval ac_cv_prog_make_${ac_make}_set=yes;;
2512   *)
2513     eval ac_cv_prog_make_${ac_make}_set=no;;
2514 esac
2515 rm -f conftest.make
2516 fi
2517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2518   { echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6; }
2520   SET_MAKE=
2521 else
2522   { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524   SET_MAKE="MAKE=${MAKE-make}"
2525 fi
2526
2527 rm -rf .tst 2>/dev/null
2528 mkdir .tst 2>/dev/null
2529 if test -d .tst; then
2530   am__leading_dot=.
2531 else
2532   am__leading_dot=_
2533 fi
2534 rmdir .tst 2>/dev/null
2535
2536 # test to see if srcdir already configured
2537 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2538    test -f $srcdir/config.status; then
2539   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2540 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2541    { (exit 1); exit 1; }; }
2542 fi
2543
2544 # test whether we have cygpath
2545 if test -z "$CYGPATH_W"; then
2546   if (cygpath --version) >/dev/null 2>/dev/null; then
2547     CYGPATH_W='cygpath -w'
2548   else
2549     CYGPATH_W=echo
2550   fi
2551 fi
2552
2553
2554 # Define the identity of the package.
2555  PACKAGE=$OL_PACKAGE
2556  VERSION=$OL_VERSION
2557
2558
2559 # Some tools Automake needs.
2560
2561 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2562
2563
2564 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2565
2566
2567 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2568
2569
2570 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2571
2572
2573 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2574
2575 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2576
2577 # Installed binaries are usually stripped using `strip' when the user
2578 # run `make install-strip'.  However `strip' might not be the right
2579 # tool to use in cross-compilation environments, therefore Automake
2580 # will honor the `STRIP' environment variable to overrule this program.
2581 if test "$cross_compiling" != no; then
2582   if test -n "$ac_tool_prefix"; then
2583   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}strip; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_STRIP+set}" = set; then
2588   echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590   if test -n "$STRIP"; then
2591   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596   IFS=$as_save_IFS
2597   test -z "$as_dir" && as_dir=.
2598   for ac_exec_ext in '' $ac_executable_extensions; do
2599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602     break 2
2603   fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 STRIP=$ac_cv_prog_STRIP
2611 if test -n "$STRIP"; then
2612   { echo "$as_me:$LINENO: result: $STRIP" >&5
2613 echo "${ECHO_T}$STRIP" >&6; }
2614 else
2615   { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2617 fi
2618
2619
2620 fi
2621 if test -z "$ac_cv_prog_STRIP"; then
2622   ac_ct_STRIP=$STRIP
2623   # Extract the first word of "strip", so it can be a program name with args.
2624 set dummy strip; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   if test -n "$ac_ct_STRIP"; then
2631   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638   for ac_exec_ext in '' $ac_executable_extensions; do
2639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640     ac_cv_prog_ac_ct_STRIP="strip"
2641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2651 if test -n "$ac_ct_STRIP"; then
2652   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2653 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2654 else
2655   { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2657 fi
2658
2659   if test "x$ac_ct_STRIP" = x; then
2660     STRIP=":"
2661   else
2662     case $cross_compiling:$ac_tool_warned in
2663 yes:)
2664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet.  If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&5
2667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2668 whose name does not start with the host triplet.  If you think this
2669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2670 ac_tool_warned=yes ;;
2671 esac
2672     STRIP=$ac_ct_STRIP
2673   fi
2674 else
2675   STRIP="$ac_cv_prog_STRIP"
2676 fi
2677
2678 fi
2679 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2680
2681 # We need awk for the "check" target.  The system "awk" is bad on
2682 # some platforms.
2683 # Always define AMTAR for backward compatibility.
2684
2685 AMTAR=${AMTAR-"${am_missing_run}tar"}
2686
2687 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2688
2689
2690
2691
2692
2693 cat >>confdefs.h <<_ACEOF
2694 #define OPENLDAP_PACKAGE "$PACKAGE"
2695 _ACEOF
2696
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define OPENLDAP_VERSION "$VERSION"
2700 _ACEOF
2701
2702
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define LDAP_VENDOR_VERSION $OL_API_INC
2706 _ACEOF
2707
2708
2709 cat >>confdefs.h <<_ACEOF
2710 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2711 _ACEOF
2712
2713
2714 cat >>confdefs.h <<_ACEOF
2715 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2716 _ACEOF
2717
2718
2719 cat >>confdefs.h <<_ACEOF
2720 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2721 _ACEOF
2722
2723
2724 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2725
2726 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2727
2728 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2729
2730
2731
2732
2733
2734
2735
2736 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2737
2738 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2739
2740 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2741
2742
2743 { echo "$as_me:$LINENO: checking configure arguments" >&5
2744 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2745
2746
2747 top_builddir=`pwd`
2748
2749 ldap_subdir="/openldap"
2750
2751
2752 # Check whether --with-subdir was given.
2753 if test "${with_subdir+set}" = set; then
2754   withval=$with_subdir; case "$withval" in
2755         no) ldap_subdir=""
2756                 ;;
2757         yes)
2758                 ;;
2759         /*|\\*)
2760                 ldap_subdir="$withval"
2761                 ;;
2762         *)
2763                 ldap_subdir="/$withval"
2764                 ;;
2765 esac
2766
2767 fi
2768
2769
2770 # OpenLDAP --enable-debug
2771
2772         # Check whether --enable-debug was given.
2773 if test "${enable_debug+set}" = set; then
2774   enableval=$enable_debug;
2775         ol_arg=invalid
2776         for ol_val in no yes traditional ; do
2777                 if test "$enableval" = "$ol_val" ; then
2778                         ol_arg="$ol_val"
2779                 fi
2780         done
2781         if test "$ol_arg" = "invalid" ; then
2782                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2783 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2784    { (exit 1); exit 1; }; }
2785         fi
2786         ol_enable_debug="$ol_arg"
2787
2788 else
2789         ol_enable_debug=yes
2790 fi
2791
2792 # end --enable-debug
2793 # OpenLDAP --enable-dynamic
2794
2795         # Check whether --enable-dynamic was given.
2796 if test "${enable_dynamic+set}" = set; then
2797   enableval=$enable_dynamic;
2798         ol_arg=invalid
2799         for ol_val in auto yes no ; do
2800                 if test "$enableval" = "$ol_val" ; then
2801                         ol_arg="$ol_val"
2802                 fi
2803         done
2804         if test "$ol_arg" = "invalid" ; then
2805                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2806 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2807    { (exit 1); exit 1; }; }
2808         fi
2809         ol_enable_dynamic="$ol_arg"
2810
2811 else
2812         ol_enable_dynamic=no
2813 fi
2814
2815 # end --enable-dynamic
2816 # OpenLDAP --enable-syslog
2817
2818         # Check whether --enable-syslog was given.
2819 if test "${enable_syslog+set}" = set; then
2820   enableval=$enable_syslog;
2821         ol_arg=invalid
2822         for ol_val in auto yes no ; do
2823                 if test "$enableval" = "$ol_val" ; then
2824                         ol_arg="$ol_val"
2825                 fi
2826         done
2827         if test "$ol_arg" = "invalid" ; then
2828                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2829 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2830    { (exit 1); exit 1; }; }
2831         fi
2832         ol_enable_syslog="$ol_arg"
2833
2834 else
2835         ol_enable_syslog=auto
2836 fi
2837
2838 # end --enable-syslog
2839 # OpenLDAP --enable-proctitle
2840
2841         # Check whether --enable-proctitle was given.
2842 if test "${enable_proctitle+set}" = set; then
2843   enableval=$enable_proctitle;
2844         ol_arg=invalid
2845         for ol_val in auto yes no ; do
2846                 if test "$enableval" = "$ol_val" ; then
2847                         ol_arg="$ol_val"
2848                 fi
2849         done
2850         if test "$ol_arg" = "invalid" ; then
2851                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2852 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2853    { (exit 1); exit 1; }; }
2854         fi
2855         ol_enable_proctitle="$ol_arg"
2856
2857 else
2858         ol_enable_proctitle=yes
2859 fi
2860
2861 # end --enable-proctitle
2862 ol_enable_referrals=${ol_enable_referrals-no}
2863 # OpenLDAP --enable-ipv6
2864
2865         # Check whether --enable-ipv6 was given.
2866 if test "${enable_ipv6+set}" = set; then
2867   enableval=$enable_ipv6;
2868         ol_arg=invalid
2869         for ol_val in auto yes no ; do
2870                 if test "$enableval" = "$ol_val" ; then
2871                         ol_arg="$ol_val"
2872                 fi
2873         done
2874         if test "$ol_arg" = "invalid" ; then
2875                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2876 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2877    { (exit 1); exit 1; }; }
2878         fi
2879         ol_enable_ipv6="$ol_arg"
2880
2881 else
2882         ol_enable_ipv6=auto
2883 fi
2884
2885 # end --enable-ipv6
2886 # OpenLDAP --enable-local
2887
2888         # Check whether --enable-local was given.
2889 if test "${enable_local+set}" = set; then
2890   enableval=$enable_local;
2891         ol_arg=invalid
2892         for ol_val in auto yes no ; do
2893                 if test "$enableval" = "$ol_val" ; then
2894                         ol_arg="$ol_val"
2895                 fi
2896         done
2897         if test "$ol_arg" = "invalid" ; then
2898                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2899 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2900    { (exit 1); exit 1; }; }
2901         fi
2902         ol_enable_local="$ol_arg"
2903
2904 else
2905         ol_enable_local=auto
2906 fi
2907
2908 # end --enable-local
2909
2910 # OpenLDAP --with-cyrus_sasl
2911
2912 # Check whether --with-cyrus_sasl was given.
2913 if test "${with_cyrus_sasl+set}" = set; then
2914   withval=$with_cyrus_sasl;
2915         ol_arg=invalid
2916         for ol_val in auto yes no  ; do
2917                 if test "$withval" = "$ol_val" ; then
2918                         ol_arg="$ol_val"
2919                 fi
2920         done
2921         if test "$ol_arg" = "invalid" ; then
2922                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2923 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2924    { (exit 1); exit 1; }; }
2925         fi
2926         ol_with_cyrus_sasl="$ol_arg"
2927
2928 else
2929         ol_with_cyrus_sasl="auto"
2930 fi
2931 # end --with-cyrus_sasl
2932
2933 # OpenLDAP --with-fetch
2934
2935 # Check whether --with-fetch was given.
2936 if test "${with_fetch+set}" = set; then
2937   withval=$with_fetch;
2938         ol_arg=invalid
2939         for ol_val in auto yes no  ; do
2940                 if test "$withval" = "$ol_val" ; then
2941                         ol_arg="$ol_val"
2942                 fi
2943         done
2944         if test "$ol_arg" = "invalid" ; then
2945                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2946 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2947    { (exit 1); exit 1; }; }
2948         fi
2949         ol_with_fetch="$ol_arg"
2950
2951 else
2952         ol_with_fetch="auto"
2953 fi
2954 # end --with-fetch
2955
2956 # OpenLDAP --with-threads
2957
2958 # Check whether --with-threads was given.
2959 if test "${with_threads+set}" = set; then
2960   withval=$with_threads;
2961         ol_arg=invalid
2962         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2963                 if test "$withval" = "$ol_val" ; then
2964                         ol_arg="$ol_val"
2965                 fi
2966         done
2967         if test "$ol_arg" = "invalid" ; then
2968                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2969 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2970    { (exit 1); exit 1; }; }
2971         fi
2972         ol_with_threads="$ol_arg"
2973
2974 else
2975         ol_with_threads="auto"
2976 fi
2977 # end --with-threads
2978
2979 # OpenLDAP --with-tls
2980
2981 # Check whether --with-tls was given.
2982 if test "${with_tls+set}" = set; then
2983   withval=$with_tls;
2984         ol_arg=invalid
2985         for ol_val in auto openssl gnutls moznss yes no  ; do
2986                 if test "$withval" = "$ol_val" ; then
2987                         ol_arg="$ol_val"
2988                 fi
2989         done
2990         if test "$ol_arg" = "invalid" ; then
2991                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2992 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2993    { (exit 1); exit 1; }; }
2994         fi
2995         ol_with_tls="$ol_arg"
2996
2997 else
2998         ol_with_tls="auto"
2999 fi
3000 # end --with-tls
3001
3002 # OpenLDAP --with-yielding_select
3003
3004 # Check whether --with-yielding_select was given.
3005 if test "${with_yielding_select+set}" = set; then
3006   withval=$with_yielding_select;
3007         ol_arg=invalid
3008         for ol_val in auto yes no manual  ; do
3009                 if test "$withval" = "$ol_val" ; then
3010                         ol_arg="$ol_val"
3011                 fi
3012         done
3013         if test "$ol_arg" = "invalid" ; then
3014                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3015 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3016    { (exit 1); exit 1; }; }
3017         fi
3018         ol_with_yielding_select="$ol_arg"
3019
3020 else
3021         ol_with_yielding_select="auto"
3022 fi
3023 # end --with-yielding_select
3024
3025 # OpenLDAP --with-mp
3026
3027 # Check whether --with-mp was given.
3028 if test "${with_mp+set}" = set; then
3029   withval=$with_mp;
3030         ol_arg=invalid
3031         for ol_val in auto longlong long bignum gmp yes no ; do
3032                 if test "$withval" = "$ol_val" ; then
3033                         ol_arg="$ol_val"
3034                 fi
3035         done
3036         if test "$ol_arg" = "invalid" ; then
3037                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3038 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3039    { (exit 1); exit 1; }; }
3040         fi
3041         ol_with_mp="$ol_arg"
3042
3043 else
3044         ol_with_mp="auto"
3045 fi
3046 # end --with-mp
3047
3048 # OpenLDAP --with-odbc
3049
3050 # Check whether --with-odbc was given.
3051 if test "${with_odbc+set}" = set; then
3052   withval=$with_odbc;
3053         ol_arg=invalid
3054         for ol_val in auto iodbc unixodbc odbc32  ; do
3055                 if test "$withval" = "$ol_val" ; then
3056                         ol_arg="$ol_val"
3057                 fi
3058         done
3059         if test "$ol_arg" = "invalid" ; then
3060                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3061 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3062    { (exit 1); exit 1; }; }
3063         fi
3064         ol_with_odbc="$ol_arg"
3065
3066 else
3067         ol_with_odbc="auto"
3068 fi
3069 # end --with-odbc
3070
3071
3072
3073 # Check whether --enable-xxslapdoptions was given.
3074 if test "${enable_xxslapdoptions+set}" = set; then
3075   enableval=$enable_xxslapdoptions;
3076 fi
3077
3078 # OpenLDAP --enable-slapd
3079
3080         # Check whether --enable-slapd was given.
3081 if test "${enable_slapd+set}" = set; then
3082   enableval=$enable_slapd;
3083         ol_arg=invalid
3084         for ol_val in auto yes no ; do
3085                 if test "$enableval" = "$ol_val" ; then
3086                         ol_arg="$ol_val"
3087                 fi
3088         done
3089         if test "$ol_arg" = "invalid" ; then
3090                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3091 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3092    { (exit 1); exit 1; }; }
3093         fi
3094         ol_enable_slapd="$ol_arg"
3095
3096 else
3097         ol_enable_slapd=yes
3098 fi
3099
3100 # end --enable-slapd
3101 # OpenLDAP --enable-dynacl
3102
3103         # Check whether --enable-dynacl was given.
3104 if test "${enable_dynacl+set}" = set; then
3105   enableval=$enable_dynacl;
3106         ol_arg=invalid
3107         for ol_val in auto yes no ; do
3108                 if test "$enableval" = "$ol_val" ; then
3109                         ol_arg="$ol_val"
3110                 fi
3111         done
3112         if test "$ol_arg" = "invalid" ; then
3113                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3115    { (exit 1); exit 1; }; }
3116         fi
3117         ol_enable_dynacl="$ol_arg"
3118
3119 else
3120         ol_enable_dynacl=no
3121 fi
3122
3123 # end --enable-dynacl
3124 # OpenLDAP --enable-aci
3125
3126         # Check whether --enable-aci was given.
3127 if test "${enable_aci+set}" = set; then
3128   enableval=$enable_aci;
3129         ol_arg=invalid
3130         for ol_val in no yes mod ; do
3131                 if test "$enableval" = "$ol_val" ; then
3132                         ol_arg="$ol_val"
3133                 fi
3134         done
3135         if test "$ol_arg" = "invalid" ; then
3136                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3138    { (exit 1); exit 1; }; }
3139         fi
3140         ol_enable_aci="$ol_arg"
3141
3142 else
3143         ol_enable_aci=no
3144 fi
3145
3146 # end --enable-aci
3147 # OpenLDAP --enable-cleartext
3148
3149         # Check whether --enable-cleartext was given.
3150 if test "${enable_cleartext+set}" = set; then
3151   enableval=$enable_cleartext;
3152         ol_arg=invalid
3153         for ol_val in auto yes no ; do
3154                 if test "$enableval" = "$ol_val" ; then
3155                         ol_arg="$ol_val"
3156                 fi
3157         done
3158         if test "$ol_arg" = "invalid" ; then
3159                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3161    { (exit 1); exit 1; }; }
3162         fi
3163         ol_enable_cleartext="$ol_arg"
3164
3165 else
3166         ol_enable_cleartext=yes
3167 fi
3168
3169 # end --enable-cleartext
3170 # OpenLDAP --enable-crypt
3171
3172         # Check whether --enable-crypt was given.
3173 if test "${enable_crypt+set}" = set; then
3174   enableval=$enable_crypt;
3175         ol_arg=invalid
3176         for ol_val in auto yes no ; do
3177                 if test "$enableval" = "$ol_val" ; then
3178                         ol_arg="$ol_val"
3179                 fi
3180         done
3181         if test "$ol_arg" = "invalid" ; then
3182                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3183 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3184    { (exit 1); exit 1; }; }
3185         fi
3186         ol_enable_crypt="$ol_arg"
3187
3188 else
3189         ol_enable_crypt=no
3190 fi
3191
3192 # end --enable-crypt
3193 # OpenLDAP --enable-lmpasswd
3194
3195         # Check whether --enable-lmpasswd was given.
3196 if test "${enable_lmpasswd+set}" = set; then
3197   enableval=$enable_lmpasswd;
3198         ol_arg=invalid
3199         for ol_val in auto yes no ; do
3200                 if test "$enableval" = "$ol_val" ; then
3201                         ol_arg="$ol_val"
3202                 fi
3203         done
3204         if test "$ol_arg" = "invalid" ; then
3205                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3207    { (exit 1); exit 1; }; }
3208         fi
3209         ol_enable_lmpasswd="$ol_arg"
3210
3211 else
3212         ol_enable_lmpasswd=no
3213 fi
3214
3215 # end --enable-lmpasswd
3216 # OpenLDAP --enable-spasswd
3217
3218         # Check whether --enable-spasswd was given.
3219 if test "${enable_spasswd+set}" = set; then
3220   enableval=$enable_spasswd;
3221         ol_arg=invalid
3222         for ol_val in auto yes no ; do
3223                 if test "$enableval" = "$ol_val" ; then
3224                         ol_arg="$ol_val"
3225                 fi
3226         done
3227         if test "$ol_arg" = "invalid" ; then
3228                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3229 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3230    { (exit 1); exit 1; }; }
3231         fi
3232         ol_enable_spasswd="$ol_arg"
3233
3234 else
3235         ol_enable_spasswd=no
3236 fi
3237
3238 # end --enable-spasswd
3239 # OpenLDAP --enable-modules
3240
3241         # Check whether --enable-modules was given.
3242 if test "${enable_modules+set}" = set; then
3243   enableval=$enable_modules;
3244         ol_arg=invalid
3245         for ol_val in auto yes no ; do
3246                 if test "$enableval" = "$ol_val" ; then
3247                         ol_arg="$ol_val"
3248                 fi
3249         done
3250         if test "$ol_arg" = "invalid" ; then
3251                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3252 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3253    { (exit 1); exit 1; }; }
3254         fi
3255         ol_enable_modules="$ol_arg"
3256
3257 else
3258         ol_enable_modules=no
3259 fi
3260
3261 # end --enable-modules
3262 # OpenLDAP --enable-rewrite
3263
3264         # Check whether --enable-rewrite was given.
3265 if test "${enable_rewrite+set}" = set; then
3266   enableval=$enable_rewrite;
3267         ol_arg=invalid
3268         for ol_val in auto yes no ; do
3269                 if test "$enableval" = "$ol_val" ; then
3270                         ol_arg="$ol_val"
3271                 fi
3272         done
3273         if test "$ol_arg" = "invalid" ; then
3274                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3275 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3276    { (exit 1); exit 1; }; }
3277         fi
3278         ol_enable_rewrite="$ol_arg"
3279
3280 else
3281         ol_enable_rewrite=auto
3282 fi
3283
3284 # end --enable-rewrite
3285 # OpenLDAP --enable-rlookups
3286
3287         # Check whether --enable-rlookups was given.
3288 if test "${enable_rlookups+set}" = set; then
3289   enableval=$enable_rlookups;
3290         ol_arg=invalid
3291         for ol_val in auto yes no ; do
3292                 if test "$enableval" = "$ol_val" ; then
3293                         ol_arg="$ol_val"
3294                 fi
3295         done
3296         if test "$ol_arg" = "invalid" ; then
3297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3299    { (exit 1); exit 1; }; }
3300         fi
3301         ol_enable_rlookups="$ol_arg"
3302
3303 else
3304         ol_enable_rlookups=no
3305 fi
3306
3307 # end --enable-rlookups
3308 # OpenLDAP --enable-slapi
3309
3310         # Check whether --enable-slapi was given.
3311 if test "${enable_slapi+set}" = set; then
3312   enableval=$enable_slapi;
3313         ol_arg=invalid
3314         for ol_val in auto yes no ; do
3315                 if test "$enableval" = "$ol_val" ; then
3316                         ol_arg="$ol_val"
3317                 fi
3318         done
3319         if test "$ol_arg" = "invalid" ; then
3320                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3322    { (exit 1); exit 1; }; }
3323         fi
3324         ol_enable_slapi="$ol_arg"
3325
3326 else
3327         ol_enable_slapi=no
3328 fi
3329
3330 # end --enable-slapi
3331 # OpenLDAP --enable-slp
3332
3333         # Check whether --enable-slp was given.
3334 if test "${enable_slp+set}" = set; then
3335   enableval=$enable_slp;
3336         ol_arg=invalid
3337         for ol_val in auto yes no ; do
3338                 if test "$enableval" = "$ol_val" ; then
3339                         ol_arg="$ol_val"
3340                 fi
3341         done
3342         if test "$ol_arg" = "invalid" ; then
3343                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3345    { (exit 1); exit 1; }; }
3346         fi
3347         ol_enable_slp="$ol_arg"
3348
3349 else
3350         ol_enable_slp=no
3351 fi
3352
3353 # end --enable-slp
3354 # OpenLDAP --enable-wrappers
3355
3356         # Check whether --enable-wrappers was given.
3357 if test "${enable_wrappers+set}" = set; then
3358   enableval=$enable_wrappers;
3359         ol_arg=invalid
3360         for ol_val in auto yes no ; do
3361                 if test "$enableval" = "$ol_val" ; then
3362                         ol_arg="$ol_val"
3363                 fi
3364         done
3365         if test "$ol_arg" = "invalid" ; then
3366                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3368    { (exit 1); exit 1; }; }
3369         fi
3370         ol_enable_wrappers="$ol_arg"
3371
3372 else
3373         ol_enable_wrappers=no
3374 fi
3375
3376 # end --enable-wrappers
3377
3378 Backends="bdb \
3379         dnssrv \
3380         hdb \
3381         ldap \
3382         meta \
3383         monitor \
3384         ndb \
3385         null \
3386         passwd \
3387         perl \
3388         relay \
3389         shell \
3390         sock \
3391         sql"
3392
3393 # Check whether --enable-xxslapbackends was given.
3394 if test "${enable_xxslapbackends+set}" = set; then
3395   enableval=$enable_xxslapbackends;
3396 fi
3397
3398
3399 # OpenLDAP --enable-backends
3400
3401         # Check whether --enable-backends was given.
3402 if test "${enable_backends+set}" = set; then
3403   enableval=$enable_backends;
3404         ol_arg=invalid
3405         for ol_val in no yes mod ; do
3406                 if test "$enableval" = "$ol_val" ; then
3407                         ol_arg="$ol_val"
3408                 fi
3409         done
3410         if test "$ol_arg" = "invalid" ; then
3411                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3412 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3413    { (exit 1); exit 1; }; }
3414         fi
3415         ol_enable_backends="$ol_arg"
3416
3417 fi
3418
3419 # end --enable-backends
3420 # OpenLDAP --enable-bdb
3421
3422         # Check whether --enable-bdb was given.
3423 if test "${enable_bdb+set}" = set; then
3424   enableval=$enable_bdb;
3425         ol_arg=invalid
3426         for ol_val in no yes mod ; do
3427                 if test "$enableval" = "$ol_val" ; then
3428                         ol_arg="$ol_val"
3429                 fi
3430         done
3431         if test "$ol_arg" = "invalid" ; then
3432                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3433 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3434    { (exit 1); exit 1; }; }
3435         fi
3436         ol_enable_bdb="$ol_arg"
3437
3438 else
3439         ol_enable_bdb=${ol_enable_backends:-no}
3440 fi
3441
3442 # end --enable-bdb
3443 # OpenLDAP --enable-dnssrv
3444
3445         # Check whether --enable-dnssrv was given.
3446 if test "${enable_dnssrv+set}" = set; then
3447   enableval=$enable_dnssrv;
3448         ol_arg=invalid
3449         for ol_val in no yes mod ; do
3450                 if test "$enableval" = "$ol_val" ; then
3451                         ol_arg="$ol_val"
3452                 fi
3453         done
3454         if test "$ol_arg" = "invalid" ; then
3455                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3456 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3457    { (exit 1); exit 1; }; }
3458         fi
3459         ol_enable_dnssrv="$ol_arg"
3460
3461 else
3462         ol_enable_dnssrv=${ol_enable_backends:-no}
3463 fi
3464
3465 # end --enable-dnssrv
3466 # OpenLDAP --enable-hdb
3467
3468         # Check whether --enable-hdb was given.
3469 if test "${enable_hdb+set}" = set; then
3470   enableval=$enable_hdb;
3471         ol_arg=invalid
3472         for ol_val in no yes mod ; do
3473                 if test "$enableval" = "$ol_val" ; then
3474                         ol_arg="$ol_val"
3475                 fi
3476         done
3477         if test "$ol_arg" = "invalid" ; then
3478                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3479 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3480    { (exit 1); exit 1; }; }
3481         fi
3482         ol_enable_hdb="$ol_arg"
3483
3484 else
3485         ol_enable_hdb=${ol_enable_backends:-yes}
3486 fi
3487
3488 # end --enable-hdb
3489 # OpenLDAP --enable-ldap
3490
3491         # Check whether --enable-ldap was given.
3492 if test "${enable_ldap+set}" = set; then
3493   enableval=$enable_ldap;
3494         ol_arg=invalid
3495         for ol_val in no yes mod ; do
3496                 if test "$enableval" = "$ol_val" ; then
3497                         ol_arg="$ol_val"
3498                 fi
3499         done
3500         if test "$ol_arg" = "invalid" ; then
3501                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3502 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3503    { (exit 1); exit 1; }; }
3504         fi
3505         ol_enable_ldap="$ol_arg"
3506
3507 else
3508         ol_enable_ldap=${ol_enable_backends:-no}
3509 fi
3510
3511 # end --enable-ldap
3512 # OpenLDAP --enable-meta
3513
3514         # Check whether --enable-meta was given.
3515 if test "${enable_meta+set}" = set; then
3516   enableval=$enable_meta;
3517         ol_arg=invalid
3518         for ol_val in no yes mod ; do
3519                 if test "$enableval" = "$ol_val" ; then
3520                         ol_arg="$ol_val"
3521                 fi
3522         done
3523         if test "$ol_arg" = "invalid" ; then
3524                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3525 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3526    { (exit 1); exit 1; }; }
3527         fi
3528         ol_enable_meta="$ol_arg"
3529
3530 else
3531         ol_enable_meta=${ol_enable_backends:-no}
3532 fi
3533
3534 # end --enable-meta
3535 # OpenLDAP --enable-monitor
3536
3537         # Check whether --enable-monitor was given.
3538 if test "${enable_monitor+set}" = set; then
3539   enableval=$enable_monitor;
3540         ol_arg=invalid
3541         for ol_val in no yes mod ; do
3542                 if test "$enableval" = "$ol_val" ; then
3543                         ol_arg="$ol_val"
3544                 fi
3545         done
3546         if test "$ol_arg" = "invalid" ; then
3547                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3549    { (exit 1); exit 1; }; }
3550         fi
3551         ol_enable_monitor="$ol_arg"
3552
3553 else
3554         ol_enable_monitor=${ol_enable_backends:-yes}
3555 fi
3556
3557 # end --enable-monitor
3558 # OpenLDAP --enable-ndb
3559
3560         # Check whether --enable-ndb was given.
3561 if test "${enable_ndb+set}" = set; then
3562   enableval=$enable_ndb;
3563         ol_arg=invalid
3564         for ol_val in no yes mod ; do
3565                 if test "$enableval" = "$ol_val" ; then
3566                         ol_arg="$ol_val"
3567                 fi
3568         done
3569         if test "$ol_arg" = "invalid" ; then
3570                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3571 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3572    { (exit 1); exit 1; }; }
3573         fi
3574         ol_enable_ndb="$ol_arg"
3575
3576 else
3577         ol_enable_ndb=${ol_enable_backends:-no}
3578 fi
3579
3580 # end --enable-ndb
3581 # OpenLDAP --enable-null
3582
3583         # Check whether --enable-null was given.
3584 if test "${enable_null+set}" = set; then
3585   enableval=$enable_null;
3586         ol_arg=invalid
3587         for ol_val in no yes mod ; do
3588                 if test "$enableval" = "$ol_val" ; then
3589                         ol_arg="$ol_val"
3590                 fi
3591         done
3592         if test "$ol_arg" = "invalid" ; then
3593                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3594 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3595    { (exit 1); exit 1; }; }
3596         fi
3597         ol_enable_null="$ol_arg"
3598
3599 else
3600         ol_enable_null=${ol_enable_backends:-no}
3601 fi
3602
3603 # end --enable-null
3604 # OpenLDAP --enable-passwd
3605
3606         # Check whether --enable-passwd was given.
3607 if test "${enable_passwd+set}" = set; then
3608   enableval=$enable_passwd;
3609         ol_arg=invalid
3610         for ol_val in no yes mod ; do
3611                 if test "$enableval" = "$ol_val" ; then
3612                         ol_arg="$ol_val"
3613                 fi
3614         done
3615         if test "$ol_arg" = "invalid" ; then
3616                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3617 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3618    { (exit 1); exit 1; }; }
3619         fi
3620         ol_enable_passwd="$ol_arg"
3621
3622 else
3623         ol_enable_passwd=${ol_enable_backends:-no}
3624 fi
3625
3626 # end --enable-passwd
3627 # OpenLDAP --enable-perl
3628
3629         # Check whether --enable-perl was given.
3630 if test "${enable_perl+set}" = set; then
3631   enableval=$enable_perl;
3632         ol_arg=invalid
3633         for ol_val in no yes mod ; do
3634                 if test "$enableval" = "$ol_val" ; then
3635                         ol_arg="$ol_val"
3636                 fi
3637         done
3638         if test "$ol_arg" = "invalid" ; then
3639                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3640 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3641    { (exit 1); exit 1; }; }
3642         fi
3643         ol_enable_perl="$ol_arg"
3644
3645 else
3646         ol_enable_perl=${ol_enable_backends:-no}
3647 fi
3648
3649 # end --enable-perl
3650 # OpenLDAP --enable-relay
3651
3652         # Check whether --enable-relay was given.
3653 if test "${enable_relay+set}" = set; then
3654   enableval=$enable_relay;
3655         ol_arg=invalid
3656         for ol_val in no yes mod ; do
3657                 if test "$enableval" = "$ol_val" ; then
3658                         ol_arg="$ol_val"
3659                 fi
3660         done
3661         if test "$ol_arg" = "invalid" ; then
3662                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3663 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3664    { (exit 1); exit 1; }; }
3665         fi
3666         ol_enable_relay="$ol_arg"
3667
3668 else
3669         ol_enable_relay=${ol_enable_backends:-yes}
3670 fi
3671
3672 # end --enable-relay
3673 # OpenLDAP --enable-shell
3674
3675         # Check whether --enable-shell was given.
3676 if test "${enable_shell+set}" = set; then
3677   enableval=$enable_shell;
3678         ol_arg=invalid
3679         for ol_val in no yes mod ; do
3680                 if test "$enableval" = "$ol_val" ; then
3681                         ol_arg="$ol_val"
3682                 fi
3683         done
3684         if test "$ol_arg" = "invalid" ; then
3685                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3686 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3687    { (exit 1); exit 1; }; }
3688         fi
3689         ol_enable_shell="$ol_arg"
3690
3691 else
3692         ol_enable_shell=${ol_enable_backends:-no}
3693 fi
3694
3695 # end --enable-shell
3696 # OpenLDAP --enable-sock
3697
3698         # Check whether --enable-sock was given.
3699 if test "${enable_sock+set}" = set; then
3700   enableval=$enable_sock;
3701         ol_arg=invalid
3702         for ol_val in no yes mod ; do
3703                 if test "$enableval" = "$ol_val" ; then
3704                         ol_arg="$ol_val"
3705                 fi
3706         done
3707         if test "$ol_arg" = "invalid" ; then
3708                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3709 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3710    { (exit 1); exit 1; }; }
3711         fi
3712         ol_enable_sock="$ol_arg"
3713
3714 else
3715         ol_enable_sock=${ol_enable_backends:-no}
3716 fi
3717
3718 # end --enable-sock
3719 # OpenLDAP --enable-sql
3720
3721         # Check whether --enable-sql was given.
3722 if test "${enable_sql+set}" = set; then
3723   enableval=$enable_sql;
3724         ol_arg=invalid
3725         for ol_val in no yes mod ; do
3726                 if test "$enableval" = "$ol_val" ; then
3727                         ol_arg="$ol_val"
3728                 fi
3729         done
3730         if test "$ol_arg" = "invalid" ; then
3731                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3732 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3733    { (exit 1); exit 1; }; }
3734         fi
3735         ol_enable_sql="$ol_arg"
3736
3737 else
3738         ol_enable_sql=${ol_enable_backends:-no}
3739 fi
3740
3741 # end --enable-sql
3742
3743 Overlays="accesslog \
3744         auditlog \
3745         collect \
3746         constraint \
3747         dds \
3748         deref \
3749         dyngroup \
3750         dynlist \
3751         memberof \
3752         ppolicy \
3753         proxycache \
3754         refint \
3755         retcode \
3756         rwm \
3757         seqmod \
3758         sssvlv \
3759         syncprov \
3760         translucent \
3761         unique \
3762         valsort"
3763
3764 # Check whether --enable-xxslapoverlays was given.
3765 if test "${enable_xxslapoverlays+set}" = set; then
3766   enableval=$enable_xxslapoverlays;
3767 fi
3768
3769
3770 # OpenLDAP --enable-overlays
3771
3772         # Check whether --enable-overlays was given.
3773 if test "${enable_overlays+set}" = set; then
3774   enableval=$enable_overlays;
3775         ol_arg=invalid
3776         for ol_val in no yes mod ; do
3777                 if test "$enableval" = "$ol_val" ; then
3778                         ol_arg="$ol_val"
3779                 fi
3780         done
3781         if test "$ol_arg" = "invalid" ; then
3782                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3783 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3784    { (exit 1); exit 1; }; }
3785         fi
3786         ol_enable_overlays="$ol_arg"
3787
3788 fi
3789
3790 # end --enable-overlays
3791 # OpenLDAP --enable-accesslog
3792
3793         # Check whether --enable-accesslog was given.
3794 if test "${enable_accesslog+set}" = set; then
3795   enableval=$enable_accesslog;
3796         ol_arg=invalid
3797         for ol_val in no yes mod ; do
3798                 if test "$enableval" = "$ol_val" ; then
3799                         ol_arg="$ol_val"
3800                 fi
3801         done
3802         if test "$ol_arg" = "invalid" ; then
3803                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3804 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3805    { (exit 1); exit 1; }; }
3806         fi
3807         ol_enable_accesslog="$ol_arg"
3808
3809 else
3810         ol_enable_accesslog=${ol_enable_overlays:-no}
3811 fi
3812
3813 # end --enable-accesslog
3814
3815 # OpenLDAP --enable-auditlog
3816
3817         # Check whether --enable-auditlog was given.
3818 if test "${enable_auditlog+set}" = set; then
3819   enableval=$enable_auditlog;
3820         ol_arg=invalid
3821         for ol_val in no yes mod ; do
3822                 if test "$enableval" = "$ol_val" ; then
3823                         ol_arg="$ol_val"
3824                 fi
3825         done
3826         if test "$ol_arg" = "invalid" ; then
3827                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3828 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3829    { (exit 1); exit 1; }; }
3830         fi
3831         ol_enable_auditlog="$ol_arg"
3832
3833 else
3834         ol_enable_auditlog=${ol_enable_overlays:-no}
3835 fi
3836
3837 # end --enable-auditlog
3838
3839 # OpenLDAP --enable-collect
3840
3841         # Check whether --enable-collect was given.
3842 if test "${enable_collect+set}" = set; then
3843   enableval=$enable_collect;
3844         ol_arg=invalid
3845         for ol_val in no yes mod ; do
3846                 if test "$enableval" = "$ol_val" ; then
3847                         ol_arg="$ol_val"
3848                 fi
3849         done
3850         if test "$ol_arg" = "invalid" ; then
3851                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3852 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3853    { (exit 1); exit 1; }; }
3854         fi
3855         ol_enable_collect="$ol_arg"
3856
3857 else
3858         ol_enable_collect=${ol_enable_overlays:-no}
3859 fi
3860
3861 # end --enable-collect
3862
3863 # OpenLDAP --enable-constraint
3864
3865         # Check whether --enable-constraint was given.
3866 if test "${enable_constraint+set}" = set; then
3867   enableval=$enable_constraint;
3868         ol_arg=invalid
3869         for ol_val in no yes mod ; do
3870                 if test "$enableval" = "$ol_val" ; then
3871                         ol_arg="$ol_val"
3872                 fi
3873         done
3874         if test "$ol_arg" = "invalid" ; then
3875                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3876 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3877    { (exit 1); exit 1; }; }
3878         fi
3879         ol_enable_constraint="$ol_arg"
3880
3881 else
3882         ol_enable_constraint=${ol_enable_overlays:-no}
3883 fi
3884
3885 # end --enable-constraint
3886
3887 # OpenLDAP --enable-dds
3888
3889         # Check whether --enable-dds was given.
3890 if test "${enable_dds+set}" = set; then
3891   enableval=$enable_dds;
3892         ol_arg=invalid
3893         for ol_val in no yes mod ; do
3894                 if test "$enableval" = "$ol_val" ; then
3895                         ol_arg="$ol_val"
3896                 fi
3897         done
3898         if test "$ol_arg" = "invalid" ; then
3899                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3900 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3901    { (exit 1); exit 1; }; }
3902         fi
3903         ol_enable_dds="$ol_arg"
3904
3905 else
3906         ol_enable_dds=${ol_enable_overlays:-no}
3907 fi
3908
3909 # end --enable-dds
3910
3911 # OpenLDAP --enable-deref
3912
3913         # Check whether --enable-deref was given.
3914 if test "${enable_deref+set}" = set; then
3915   enableval=$enable_deref;
3916         ol_arg=invalid
3917         for ol_val in no yes mod ; do
3918                 if test "$enableval" = "$ol_val" ; then
3919                         ol_arg="$ol_val"
3920                 fi
3921         done
3922         if test "$ol_arg" = "invalid" ; then
3923                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3924 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3925    { (exit 1); exit 1; }; }
3926         fi
3927         ol_enable_deref="$ol_arg"
3928
3929 else
3930         ol_enable_deref=${ol_enable_overlays:-no}
3931 fi
3932
3933 # end --enable-deref
3934
3935 # OpenLDAP --enable-dyngroup
3936
3937         # Check whether --enable-dyngroup was given.
3938 if test "${enable_dyngroup+set}" = set; then
3939   enableval=$enable_dyngroup;
3940         ol_arg=invalid
3941         for ol_val in no yes mod ; do
3942                 if test "$enableval" = "$ol_val" ; then
3943                         ol_arg="$ol_val"
3944                 fi
3945         done
3946         if test "$ol_arg" = "invalid" ; then
3947                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3948 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3949    { (exit 1); exit 1; }; }
3950         fi
3951         ol_enable_dyngroup="$ol_arg"
3952
3953 else
3954         ol_enable_dyngroup=${ol_enable_overlays:-no}
3955 fi
3956
3957 # end --enable-dyngroup
3958
3959 # OpenLDAP --enable-dynlist
3960
3961         # Check whether --enable-dynlist was given.
3962 if test "${enable_dynlist+set}" = set; then
3963   enableval=$enable_dynlist;
3964         ol_arg=invalid
3965         for ol_val in no yes mod ; do
3966                 if test "$enableval" = "$ol_val" ; then
3967                         ol_arg="$ol_val"
3968                 fi
3969         done
3970         if test "$ol_arg" = "invalid" ; then
3971                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3972 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3973    { (exit 1); exit 1; }; }
3974         fi
3975         ol_enable_dynlist="$ol_arg"
3976
3977 else
3978         ol_enable_dynlist=${ol_enable_overlays:-no}
3979 fi
3980
3981 # end --enable-dynlist
3982
3983 # OpenLDAP --enable-memberof
3984
3985         # Check whether --enable-memberof was given.
3986 if test "${enable_memberof+set}" = set; then
3987   enableval=$enable_memberof;
3988         ol_arg=invalid
3989         for ol_val in no yes mod ; do
3990                 if test "$enableval" = "$ol_val" ; then
3991                         ol_arg="$ol_val"
3992                 fi
3993         done
3994         if test "$ol_arg" = "invalid" ; then
3995                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3996 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3997    { (exit 1); exit 1; }; }
3998         fi
3999         ol_enable_memberof="$ol_arg"
4000
4001 else
4002         ol_enable_memberof=${ol_enable_overlays:-no}
4003 fi
4004
4005 # end --enable-memberof
4006
4007 # OpenLDAP --enable-ppolicy
4008
4009         # Check whether --enable-ppolicy was given.
4010 if test "${enable_ppolicy+set}" = set; then
4011   enableval=$enable_ppolicy;
4012         ol_arg=invalid
4013         for ol_val in no yes mod ; do
4014                 if test "$enableval" = "$ol_val" ; then
4015                         ol_arg="$ol_val"
4016                 fi
4017         done
4018         if test "$ol_arg" = "invalid" ; then
4019                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4020 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4021    { (exit 1); exit 1; }; }
4022         fi
4023         ol_enable_ppolicy="$ol_arg"
4024
4025 else
4026         ol_enable_ppolicy=${ol_enable_overlays:-no}
4027 fi
4028
4029 # end --enable-ppolicy
4030
4031 # OpenLDAP --enable-proxycache
4032
4033         # Check whether --enable-proxycache was given.
4034 if test "${enable_proxycache+set}" = set; then
4035   enableval=$enable_proxycache;
4036         ol_arg=invalid
4037         for ol_val in no yes mod ; do
4038                 if test "$enableval" = "$ol_val" ; then
4039                         ol_arg="$ol_val"
4040                 fi
4041         done
4042         if test "$ol_arg" = "invalid" ; then
4043                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4044 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4045    { (exit 1); exit 1; }; }
4046         fi
4047         ol_enable_proxycache="$ol_arg"
4048
4049 else
4050         ol_enable_proxycache=${ol_enable_overlays:-no}
4051 fi
4052
4053 # end --enable-proxycache
4054
4055 # OpenLDAP --enable-refint
4056
4057         # Check whether --enable-refint was given.
4058 if test "${enable_refint+set}" = set; then
4059   enableval=$enable_refint;
4060         ol_arg=invalid
4061         for ol_val in no yes mod ; do
4062                 if test "$enableval" = "$ol_val" ; then
4063                         ol_arg="$ol_val"
4064                 fi
4065         done
4066         if test "$ol_arg" = "invalid" ; then
4067                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4068 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4069    { (exit 1); exit 1; }; }
4070         fi
4071         ol_enable_refint="$ol_arg"
4072
4073 else
4074         ol_enable_refint=${ol_enable_overlays:-no}
4075 fi
4076
4077 # end --enable-refint
4078
4079 # OpenLDAP --enable-retcode
4080
4081         # Check whether --enable-retcode was given.
4082 if test "${enable_retcode+set}" = set; then
4083   enableval=$enable_retcode;
4084         ol_arg=invalid
4085         for ol_val in no yes mod ; do
4086                 if test "$enableval" = "$ol_val" ; then
4087                         ol_arg="$ol_val"
4088                 fi
4089         done
4090         if test "$ol_arg" = "invalid" ; then
4091                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4092 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4093    { (exit 1); exit 1; }; }
4094         fi
4095         ol_enable_retcode="$ol_arg"
4096
4097 else
4098         ol_enable_retcode=${ol_enable_overlays:-no}
4099 fi
4100
4101 # end --enable-retcode
4102
4103 # OpenLDAP --enable-rwm
4104
4105         # Check whether --enable-rwm was given.
4106 if test "${enable_rwm+set}" = set; then
4107   enableval=$enable_rwm;
4108         ol_arg=invalid
4109         for ol_val in no yes mod ; do
4110                 if test "$enableval" = "$ol_val" ; then
4111                         ol_arg="$ol_val"
4112                 fi
4113         done
4114         if test "$ol_arg" = "invalid" ; then
4115                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4116 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4117    { (exit 1); exit 1; }; }
4118         fi
4119         ol_enable_rwm="$ol_arg"
4120
4121 else
4122         ol_enable_rwm=${ol_enable_overlays:-no}
4123 fi
4124
4125 # end --enable-rwm
4126
4127 # OpenLDAP --enable-seqmod
4128
4129         # Check whether --enable-seqmod was given.
4130 if test "${enable_seqmod+set}" = set; then
4131   enableval=$enable_seqmod;
4132         ol_arg=invalid
4133         for ol_val in no yes mod ; do
4134                 if test "$enableval" = "$ol_val" ; then
4135                         ol_arg="$ol_val"
4136                 fi
4137         done
4138         if test "$ol_arg" = "invalid" ; then
4139                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4140 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4141    { (exit 1); exit 1; }; }
4142         fi
4143         ol_enable_seqmod="$ol_arg"
4144
4145 else
4146         ol_enable_seqmod=${ol_enable_overlays:-no}
4147 fi
4148
4149 # end --enable-seqmod
4150
4151 # OpenLDAP --enable-sssvlv
4152
4153         # Check whether --enable-sssvlv was given.
4154 if test "${enable_sssvlv+set}" = set; then
4155   enableval=$enable_sssvlv;
4156         ol_arg=invalid
4157         for ol_val in no yes mod ; do
4158                 if test "$enableval" = "$ol_val" ; then
4159                         ol_arg="$ol_val"
4160                 fi
4161         done
4162         if test "$ol_arg" = "invalid" ; then
4163                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4164 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4165    { (exit 1); exit 1; }; }
4166         fi
4167         ol_enable_sssvlv="$ol_arg"
4168
4169 else
4170         ol_enable_sssvlv=${ol_enable_overlays:-no}
4171 fi
4172
4173 # end --enable-sssvlv
4174
4175 # OpenLDAP --enable-syncprov
4176
4177         # Check whether --enable-syncprov was given.
4178 if test "${enable_syncprov+set}" = set; then
4179   enableval=$enable_syncprov;
4180         ol_arg=invalid
4181         for ol_val in no yes mod ; do
4182                 if test "$enableval" = "$ol_val" ; then
4183                         ol_arg="$ol_val"
4184                 fi
4185         done
4186         if test "$ol_arg" = "invalid" ; then
4187                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4188 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4189    { (exit 1); exit 1; }; }
4190         fi
4191         ol_enable_syncprov="$ol_arg"
4192
4193 else
4194         ol_enable_syncprov=${ol_enable_overlays:-yes}
4195 fi
4196
4197 # end --enable-syncprov
4198
4199 # OpenLDAP --enable-translucent
4200
4201         # Check whether --enable-translucent was given.
4202 if test "${enable_translucent+set}" = set; then
4203   enableval=$enable_translucent;
4204         ol_arg=invalid
4205         for ol_val in no yes mod ; do
4206                 if test "$enableval" = "$ol_val" ; then
4207                         ol_arg="$ol_val"
4208                 fi
4209         done
4210         if test "$ol_arg" = "invalid" ; then
4211                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4212 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4213    { (exit 1); exit 1; }; }
4214         fi
4215         ol_enable_translucent="$ol_arg"
4216
4217 else
4218         ol_enable_translucent=${ol_enable_overlays:-no}
4219 fi
4220
4221 # end --enable-translucent
4222
4223 # OpenLDAP --enable-unique
4224
4225         # Check whether --enable-unique was given.
4226 if test "${enable_unique+set}" = set; then
4227   enableval=$enable_unique;
4228         ol_arg=invalid
4229         for ol_val in no yes mod ; do
4230                 if test "$enableval" = "$ol_val" ; then
4231                         ol_arg="$ol_val"
4232                 fi
4233         done
4234         if test "$ol_arg" = "invalid" ; then
4235                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4236 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4237    { (exit 1); exit 1; }; }
4238         fi
4239         ol_enable_unique="$ol_arg"
4240
4241 else
4242         ol_enable_unique=${ol_enable_overlays:-no}
4243 fi
4244
4245 # end --enable-unique
4246
4247 # OpenLDAP --enable-valsort
4248
4249         # Check whether --enable-valsort was given.
4250 if test "${enable_valsort+set}" = set; then
4251   enableval=$enable_valsort;
4252         ol_arg=invalid
4253         for ol_val in no yes mod ; do
4254                 if test "$enableval" = "$ol_val" ; then
4255                         ol_arg="$ol_val"
4256                 fi
4257         done
4258         if test "$ol_arg" = "invalid" ; then
4259                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4260 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4261    { (exit 1); exit 1; }; }
4262         fi
4263         ol_enable_valsort="$ol_arg"
4264
4265 else
4266         ol_enable_valsort=${ol_enable_overlays:-no}
4267 fi
4268
4269 # end --enable-valsort
4270
4271
4272 # Check whether --enable-xxliboptions was given.
4273 if test "${enable_xxliboptions+set}" = set; then
4274   enableval=$enable_xxliboptions;
4275 fi
4276
4277 # Check whether --enable-static was given.
4278 if test "${enable_static+set}" = set; then
4279   enableval=$enable_static; p=${PACKAGE-default}
4280     case $enableval in
4281     yes) enable_static=yes ;;
4282     no) enable_static=no ;;
4283     *)
4284      enable_static=no
4285       # Look at the argument we got.  We use all the common list separators.
4286       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4287       for pkg in $enableval; do
4288         IFS="$lt_save_ifs"
4289         if test "X$pkg" = "X$p"; then
4290           enable_static=yes
4291         fi
4292       done
4293       IFS="$lt_save_ifs"
4294       ;;
4295     esac
4296 else
4297   enable_static=yes
4298 fi
4299
4300
4301 # Check whether --enable-shared was given.
4302 if test "${enable_shared+set}" = set; then
4303   enableval=$enable_shared; p=${PACKAGE-default}
4304     case $enableval in
4305     yes) enable_shared=yes ;;
4306     no) enable_shared=no ;;
4307     *)
4308       enable_shared=no
4309       # Look at the argument we got.  We use all the common list separators.
4310       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4311       for pkg in $enableval; do
4312         IFS="$lt_save_ifs"
4313         if test "X$pkg" = "X$p"; then
4314           enable_shared=yes
4315         fi
4316       done
4317       IFS="$lt_save_ifs"
4318       ;;
4319     esac
4320 else
4321   enable_shared=yes
4322 fi
4323
4324
4325
4326
4327 # validate options
4328 if test $ol_enable_slapd = no ; then
4329                 if test $ol_enable_slapi = yes ; then
4330                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4331 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4332         fi
4333         case "$ol_enable_backends" in yes | mod)
4334                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4335 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4336         esac
4337         for i in $Backends; do
4338                 eval "ol_tmp=\$ol_enable_$i"
4339                 if test $ol_tmp != no ; then
4340                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4341 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4342                         eval "ol_enable_$i=no"
4343                 fi
4344         done
4345         if test $ol_enable_modules = yes ; then
4346                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4347 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4348         fi
4349         if test $ol_enable_wrappers = yes ; then
4350                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4351 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4352         fi
4353         if test $ol_enable_rlookups = yes ; then
4354                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4355 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4356         fi
4357         if test $ol_enable_dynacl = yes ; then
4358                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4359 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4360         fi
4361         if test $ol_enable_aci != no ; then
4362                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4363 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4364         fi
4365         if test $ol_enable_rewrite = yes ; then
4366                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4367 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4368         fi
4369                 case "$ol_enable_overlays" in yes | mod)
4370                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4371 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4372         esac
4373         for i in $Overlays; do
4374                 eval "ol_tmp=\$ol_enable_$i"
4375                 if test $ol_tmp != no ; then
4376                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4377 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4378                         eval "ol_enable_$i=no"
4379                 fi
4380         done
4381
4382         # force settings to no
4383         ol_enable_slapi=no
4384
4385         ol_enable_backends=
4386         ol_enable_overlays=
4387         ol_enable_modules=no
4388         ol_enable_rlookups=no
4389         ol_enable_dynacl=no
4390         ol_enable_aci=no
4391         ol_enable_wrappers=no
4392
4393         ol_enable_rewrite=no
4394
4395 elif test $ol_enable_modules != yes &&
4396         test $ol_enable_bdb = no &&
4397         test $ol_enable_dnssrv = no &&
4398         test $ol_enable_hdb = no &&
4399         test $ol_enable_ldap = no &&
4400         test $ol_enable_meta = no &&
4401         test $ol_enable_monitor = no &&
4402         test $ol_enable_ndb = no &&
4403         test $ol_enable_null = no &&
4404         test $ol_enable_passwd = no &&
4405         test $ol_enable_perl = no &&
4406         test $ol_enable_relay = no &&
4407         test $ol_enable_shell = no &&
4408         test $ol_enable_sock = no &&
4409         test $ol_enable_sql = no ; then
4410
4411         if test $ol_enable_slapd = yes ; then
4412                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4413 echo "$as_me: error: slapd requires a backend" >&2;}
4414    { (exit 1); exit 1; }; }
4415         else
4416                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4417 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4418                 ol_enable_slapd=no
4419         fi
4420 fi
4421
4422 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4423         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4424 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4425    { (exit 1); exit 1; }; }
4426 fi
4427
4428 if test $ol_enable_lmpasswd = yes ; then
4429         if test $ol_with_tls = no ; then
4430                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4431 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4432    { (exit 1); exit 1; }; }
4433         fi
4434 fi
4435
4436 if test $ol_enable_spasswd = yes ; then
4437         if test $ol_with_cyrus_sasl = no ; then
4438                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4439 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4440    { (exit 1); exit 1; }; }
4441         fi
4442         ol_with_cyrus_sasl=yes
4443 fi
4444
4445 { echo "$as_me:$LINENO: result: done" >&5
4446 echo "${ECHO_T}done" >&6; }
4447
4448 LDAP_LIBS=
4449 BDB_LIBS=
4450 SLAPD_NDB_LIBS=
4451 SLAPD_NDB_INCS=
4452 LTHREAD_LIBS=
4453 LUTIL_LIBS=
4454
4455 SLAPD_LIBS=
4456
4457 BUILD_SLAPD=no
4458
4459 BUILD_THREAD=no
4460
4461 BUILD_SLAPI=no
4462 SLAPD_SLAPI_DEPEND=
4463
4464 BUILD_BDB=no
4465 BUILD_DNSSRV=no
4466 BUILD_HDB=no
4467 BUILD_LDAP=no
4468 BUILD_META=no
4469 BUILD_MONITOR=no
4470 BUILD_NDB=no
4471 BUILD_NULL=no
4472 BUILD_PASSWD=no
4473 BUILD_PERL=no
4474 BUILD_RELAY=no
4475 BUILD_SHELL=no
4476 BUILD_SOCK=no
4477 BUILD_SQL=no
4478
4479 BUILD_ACCESSLOG=no
4480 BUILD_AUDITLOG=no
4481 BUILD_CONSTRAINT=no
4482 BUILD_DDS=no
4483 BUILD_DENYOP=no
4484 BUILD_DYNGROUP=no
4485 BUILD_DYNLIST=no
4486 BUILD_LASTMOD=no
4487 BUILD_MEMBEROF=no
4488 BUILD_PPOLICY=no
4489 BUILD_PROXYCACHE=no
4490 BUILD_REFINT=no
4491 BUILD_RETCODE=no
4492 BUILD_RWM=no
4493 BUILD_SEQMOD=no
4494 BUILD_SSSVLV=no
4495 BUILD_SYNCPROV=no
4496 BUILD_TRANSLUCENT=no
4497 BUILD_UNIQUE=no
4498 BUILD_VALSORT=no
4499
4500 SLAPD_STATIC_OVERLAYS=
4501 SLAPD_DYNAMIC_OVERLAYS=
4502
4503 SLAPD_MODULES_LDFLAGS=
4504 SLAPD_MODULES_CPPFLAGS=
4505
4506 SLAPD_STATIC_BACKENDS=back-ldif
4507 SLAPD_DYNAMIC_BACKENDS=
4508
4509 SLAPD_PERL_LDFLAGS=
4510 MOD_PERL_LDFLAGS=
4511 PERL_CPPFLAGS=
4512
4513 SLAPD_SQL_LDFLAGS=
4514 SLAPD_SQL_LIBS=
4515 SLAPD_SQL_INCLUDES=
4516
4517 KRB4_LIBS=
4518 KRB5_LIBS=
4519 SASL_LIBS=
4520 TLS_LIBS=
4521 MODULES_LIBS=
4522 SLAPI_LIBS=
4523 LIBSLAPI=
4524 LIBSLAPITOOLS=
4525 AUTH_LIBS=
4526 ICU_LIBS=
4527
4528 SLAPD_SLP_LIBS=
4529 SLAPD_GMP_LIBS=
4530
4531
4532
4533 cat >>confdefs.h <<\_ACEOF
4534 #define HAVE_MKVERSION 1
4535 _ACEOF
4536
4537
4538
4539
4540 ol_aix_threads=no
4541 case "$target" in
4542 *-*-aix*)       if test -z "$CC" ; then
4543                 case "$ol_with_threads" in
4544                 auto | yes |  posix) ol_aix_threads=yes ;;
4545                 esac
4546         fi
4547 ;;
4548 esac
4549
4550 if test $ol_aix_threads = yes ; then
4551         if test -z "${CC}" ; then
4552                 for ac_prog in cc_r xlc_r cc
4553 do
4554   # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558 if test "${ac_cv_prog_CC+set}" = set; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561   if test -n "$CC"; then
4562   ac_cv_prog_CC="$CC" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569   for ac_exec_ext in '' $ac_executable_extensions; do
4570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571     ac_cv_prog_CC="$ac_prog"
4572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573     break 2
4574   fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 CC=$ac_cv_prog_CC
4582 if test -n "$CC"; then
4583   { echo "$as_me:$LINENO: result: $CC" >&5
4584 echo "${ECHO_T}$CC" >&6; }
4585 else
4586   { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4588 fi
4589
4590
4591   test -n "$CC" && break
4592 done
4593
4594
4595                 if test "$CC" = cc ; then
4596                                                 if test $ol_with_threads != auto ; then
4597                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4598 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4599    { (exit 1); exit 1; }; }
4600                         else
4601                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4602 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4603                         fi
4604                         ol_with_threads=no
4605                 fi
4606         fi
4607
4608         case ${CC} in cc_r | xlc_r)
4609                 ol_with_threads=posix
4610                 ol_cv_pthread_create=yes
4611                 ;;
4612         esac
4613 fi
4614
4615 if test -z "${CC}"; then
4616         for ac_prog in cc gcc
4617 do
4618   # Extract the first word of "$ac_prog", so it can be a program name with args.
4619 set dummy $ac_prog; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   if test -n "$CC"; then
4626   ac_cv_prog_CC="$CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633   for ac_exec_ext in '' $ac_executable_extensions; do
4634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635     ac_cv_prog_CC="$ac_prog"
4636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 CC=$ac_cv_prog_CC
4646 if test -n "$CC"; then
4647   { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4649 else
4650   { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4652 fi
4653
4654
4655   test -n "$CC" && break
4656 done
4657 test -n "$CC" || CC="missing"
4658
4659
4660         if test "${CC}" = "missing" ; then
4661                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4662 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4663    { (exit 1); exit 1; }; }
4664         fi
4665 fi
4666
4667 if test -z "${AR}"; then
4668         for ac_prog in ar gar
4669 do
4670   # Extract the first word of "$ac_prog", so it can be a program name with args.
4671 set dummy $ac_prog; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_prog_AR+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   if test -n "$AR"; then
4678   ac_cv_prog_AR="$AR" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683   IFS=$as_save_IFS
4684   test -z "$as_dir" && as_dir=.
4685   for ac_exec_ext in '' $ac_executable_extensions; do
4686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687     ac_cv_prog_AR="$ac_prog"
4688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689     break 2
4690   fi
4691 done
4692 done
4693 IFS=$as_save_IFS
4694
4695 fi
4696 fi
4697 AR=$ac_cv_prog_AR
4698 if test -n "$AR"; then
4699   { echo "$as_me:$LINENO: result: $AR" >&5
4700 echo "${ECHO_T}$AR" >&6; }
4701 else
4702   { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4704 fi
4705
4706
4707   test -n "$AR" && break
4708 done
4709 test -n "$AR" || AR="missing"
4710
4711
4712         if test "${AR}" = "missing" ; then
4713                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4714 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4715    { (exit 1); exit 1; }; }
4716         fi
4717 fi
4718
4719
4720
4721
4722
4723 # Check whether --enable-fast-install was given.
4724 if test "${enable_fast_install+set}" = set; then
4725   enableval=$enable_fast_install; p=${PACKAGE-default}
4726     case $enableval in
4727     yes) enable_fast_install=yes ;;
4728     no) enable_fast_install=no ;;
4729     *)
4730       enable_fast_install=no
4731       # Look at the argument we got.  We use all the common list separators.
4732       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4733       for pkg in $enableval; do
4734         IFS="$lt_save_ifs"
4735         if test "X$pkg" = "X$p"; then
4736           enable_fast_install=yes
4737         fi
4738       done
4739       IFS="$lt_save_ifs"
4740       ;;
4741     esac
4742 else
4743   enable_fast_install=yes
4744 fi
4745
4746
4747 DEPDIR="${am__leading_dot}deps"
4748
4749 ac_config_commands="$ac_config_commands depfiles"
4750
4751
4752 am_make=${MAKE-make}
4753 cat > confinc << 'END'
4754 am__doit:
4755         @echo done
4756 .PHONY: am__doit
4757 END
4758 # If we don't find an include directive, just comment out the code.
4759 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4760 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4761 am__include="#"
4762 am__quote=
4763 _am_result=none
4764 # First try GNU make style include.
4765 echo "include confinc" > confmf
4766 # We grep out `Entering directory' and `Leaving directory'
4767 # messages which can occur if `w' ends up in MAKEFLAGS.
4768 # In particular we don't look at `^make:' because GNU make might
4769 # be invoked under some other name (usually "gmake"), in which
4770 # case it prints its new name instead of `make'.
4771 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4772    am__include=include
4773    am__quote=
4774    _am_result=GNU
4775 fi
4776 # Now try BSD make style include.
4777 if test "$am__include" = "#"; then
4778    echo '.include "confinc"' > confmf
4779    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4780       am__include=.include
4781       am__quote="\""
4782       _am_result=BSD
4783    fi
4784 fi
4785
4786
4787 { echo "$as_me:$LINENO: result: $_am_result" >&5
4788 echo "${ECHO_T}$_am_result" >&6; }
4789 rm -f confinc confmf
4790
4791 # Check whether --enable-dependency-tracking was given.
4792 if test "${enable_dependency_tracking+set}" = set; then
4793   enableval=$enable_dependency_tracking;
4794 fi
4795
4796 if test "x$enable_dependency_tracking" != xno; then
4797   am_depcomp="$ac_aux_dir/depcomp"
4798   AMDEPBACKSLASH='\'
4799 fi
4800
4801
4802 if test "x$enable_dependency_tracking" != xno; then
4803   AMDEP_TRUE=
4804   AMDEP_FALSE='#'
4805 else
4806   AMDEP_TRUE='#'
4807   AMDEP_FALSE=
4808 fi
4809
4810
4811
4812 ac_ext=c
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817 if test -n "$ac_tool_prefix"; then
4818   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_prog_CC+set}" = set; then
4823   echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825   if test -n "$CC"; then
4826   ac_cv_prog_CC="$CC" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833   for ac_exec_ext in '' $ac_executable_extensions; do
4834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840 done
4841 IFS=$as_save_IFS
4842
4843 fi
4844 fi
4845 CC=$ac_cv_prog_CC
4846 if test -n "$CC"; then
4847   { echo "$as_me:$LINENO: result: $CC" >&5
4848 echo "${ECHO_T}$CC" >&6; }
4849 else
4850   { echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6; }
4852 fi
4853
4854
4855 fi
4856 if test -z "$ac_cv_prog_CC"; then
4857   ac_ct_CC=$CC
4858   # Extract the first word of "gcc", so it can be a program name with args.
4859 set dummy gcc; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   if test -n "$ac_ct_CC"; then
4866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871   IFS=$as_save_IFS
4872   test -z "$as_dir" && as_dir=.
4873   for ac_exec_ext in '' $ac_executable_extensions; do
4874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875     ac_cv_prog_ac_ct_CC="gcc"
4876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877     break 2
4878   fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 fi
4884 fi
4885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4886 if test -n "$ac_ct_CC"; then
4887   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4888 echo "${ECHO_T}$ac_ct_CC" >&6; }
4889 else
4890   { echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6; }
4892 fi
4893
4894   if test "x$ac_ct_CC" = x; then
4895     CC=""
4896   else
4897     case $cross_compiling:$ac_tool_warned in
4898 yes:)
4899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4900 whose name does not start with the host triplet.  If you think this
4901 configuration is useful to you, please write to autoconf@gnu.org." >&5
4902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4903 whose name does not start with the host triplet.  If you think this
4904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4905 ac_tool_warned=yes ;;
4906 esac
4907     CC=$ac_ct_CC
4908   fi
4909 else
4910   CC="$ac_cv_prog_CC"
4911 fi
4912
4913 if test -z "$CC"; then
4914           if test -n "$ac_tool_prefix"; then
4915     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4916 set dummy ${ac_tool_prefix}cc; ac_word=$2
4917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4919 if test "${ac_cv_prog_CC+set}" = set; then
4920   echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922   if test -n "$CC"; then
4923   ac_cv_prog_CC="$CC" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4927 do
4928   IFS=$as_save_IFS
4929   test -z "$as_dir" && as_dir=.
4930   for ac_exec_ext in '' $ac_executable_extensions; do
4931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932     ac_cv_prog_CC="${ac_tool_prefix}cc"
4933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934     break 2
4935   fi
4936 done
4937 done
4938 IFS=$as_save_IFS
4939
4940 fi
4941 fi
4942 CC=$ac_cv_prog_CC
4943 if test -n "$CC"; then
4944   { echo "$as_me:$LINENO: result: $CC" >&5
4945 echo "${ECHO_T}$CC" >&6; }
4946 else
4947   { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4949 fi
4950
4951
4952   fi
4953 fi
4954 if test -z "$CC"; then
4955   # Extract the first word of "cc", so it can be a program name with args.
4956 set dummy cc; ac_word=$2
4957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4959 if test "${ac_cv_prog_CC+set}" = set; then
4960   echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962   if test -n "$CC"; then
4963   ac_cv_prog_CC="$CC" # Let the user override the test.
4964 else
4965   ac_prog_rejected=no
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971   for ac_exec_ext in '' $ac_executable_extensions; do
4972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4974        ac_prog_rejected=yes
4975        continue
4976      fi
4977     ac_cv_prog_CC="cc"
4978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979     break 2
4980   fi
4981 done
4982 done
4983 IFS=$as_save_IFS
4984
4985 if test $ac_prog_rejected = yes; then
4986   # We found a bogon in the path, so make sure we never use it.
4987   set dummy $ac_cv_prog_CC
4988   shift
4989   if test $# != 0; then
4990     # We chose a different compiler from the bogus one.
4991     # However, it has the same basename, so the bogon will be chosen
4992     # first if we set CC to just the basename; use the full file name.
4993     shift
4994     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4995   fi
4996 fi
4997 fi
4998 fi
4999 CC=$ac_cv_prog_CC
5000 if test -n "$CC"; then
5001   { echo "$as_me:$LINENO: result: $CC" >&5
5002 echo "${ECHO_T}$CC" >&6; }
5003 else
5004   { echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6; }
5006 fi
5007
5008
5009 fi
5010 if test -z "$CC"; then
5011   if test -n "$ac_tool_prefix"; then
5012   for ac_prog in cl.exe
5013   do
5014     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5018 if test "${ac_cv_prog_CC+set}" = set; then
5019   echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021   if test -n "$CC"; then
5022   ac_cv_prog_CC="$CC" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027   IFS=$as_save_IFS
5028   test -z "$as_dir" && as_dir=.
5029   for ac_exec_ext in '' $ac_executable_extensions; do
5030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033     break 2
5034   fi
5035 done
5036 done
5037 IFS=$as_save_IFS
5038
5039 fi
5040 fi
5041 CC=$ac_cv_prog_CC
5042 if test -n "$CC"; then
5043   { echo "$as_me:$LINENO: result: $CC" >&5
5044 echo "${ECHO_T}$CC" >&6; }
5045 else
5046   { echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6; }
5048 fi
5049
5050
5051     test -n "$CC" && break
5052   done
5053 fi
5054 if test -z "$CC"; then
5055   ac_ct_CC=$CC
5056   for ac_prog in cl.exe
5057 do
5058   # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy $ac_prog; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   if test -n "$ac_ct_CC"; then
5066   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071   IFS=$as_save_IFS
5072   test -z "$as_dir" && as_dir=.
5073   for ac_exec_ext in '' $ac_executable_extensions; do
5074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075     ac_cv_prog_ac_ct_CC="$ac_prog"
5076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077     break 2
5078   fi
5079 done
5080 done
5081 IFS=$as_save_IFS
5082
5083 fi
5084 fi
5085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5086 if test -n "$ac_ct_CC"; then
5087   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5088 echo "${ECHO_T}$ac_ct_CC" >&6; }
5089 else
5090   { echo "$as_me:$LINENO: result: no" >&5
5091 echo "${ECHO_T}no" >&6; }
5092 fi
5093
5094
5095   test -n "$ac_ct_CC" && break
5096 done
5097
5098   if test "x$ac_ct_CC" = x; then
5099     CC=""
5100   else
5101     case $cross_compiling:$ac_tool_warned in
5102 yes:)
5103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5104 whose name does not start with the host triplet.  If you think this
5105 configuration is useful to you, please write to autoconf@gnu.org." >&5
5106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5107 whose name does not start with the host triplet.  If you think this
5108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5109 ac_tool_warned=yes ;;
5110 esac
5111     CC=$ac_ct_CC
5112   fi
5113 fi
5114
5115 fi
5116
5117
5118 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5119 See \`config.log' for more details." >&5
5120 echo "$as_me: error: no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details." >&2;}
5122    { (exit 1); exit 1; }; }
5123
5124 # Provide some information about the compiler.
5125 echo "$as_me:$LINENO: checking for C compiler version" >&5
5126 ac_compiler=`set X $ac_compile; echo $2`
5127 { (ac_try="$ac_compiler --version >&5"
5128 case "(($ac_try" in
5129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130   *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133   (eval "$ac_compiler --version >&5") 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); }
5137 { (ac_try="$ac_compiler -v >&5"
5138 case "(($ac_try" in
5139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140   *) ac_try_echo=$ac_try;;
5141 esac
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143   (eval "$ac_compiler -v >&5") 2>&5
5144   ac_status=$?
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); }
5147 { (ac_try="$ac_compiler -V >&5"
5148 case "(($ac_try" in
5149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150   *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153   (eval "$ac_compiler -V >&5") 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); }
5157
5158 cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h.  */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h.  */
5164
5165 int
5166 main ()
5167 {
5168
5169   ;
5170   return 0;
5171 }
5172 _ACEOF
5173 ac_clean_files_save=$ac_clean_files
5174 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5175 # Try to create an executable without -o first, disregard a.out.
5176 # It will help us diagnose broken compilers, and finding out an intuition
5177 # of exeext.
5178 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5179 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5180 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5181 #
5182 # List of possible output files, starting from the most likely.
5183 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5184 # only as a last resort.  b.out is created by i960 compilers.
5185 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5186 #
5187 # The IRIX 6 linker writes into existing files which may not be
5188 # executable, retaining their permissions.  Remove them first so a
5189 # subsequent execution test works.
5190 ac_rmfiles=
5191 for ac_file in $ac_files
5192 do
5193   case $ac_file in
5194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5195     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5196   esac
5197 done
5198 rm -f $ac_rmfiles
5199
5200 if { (ac_try="$ac_link_default"
5201 case "(($ac_try" in
5202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203   *) ac_try_echo=$ac_try;;
5204 esac
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206   (eval "$ac_link_default") 2>&5
5207   ac_status=$?
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }; then
5210   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5211 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5212 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5213 # so that the user can short-circuit this test for compilers unknown to
5214 # Autoconf.
5215 for ac_file in $ac_files ''
5216 do
5217   test -f "$ac_file" || continue
5218   case $ac_file in
5219     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5220         ;;
5221     [ab].out )
5222         # We found the default executable, but exeext='' is most
5223         # certainly right.
5224         break;;
5225     *.* )
5226         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5227         then :; else
5228            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5229         fi
5230         # We set ac_cv_exeext here because the later test for it is not
5231         # safe: cross compilers may not add the suffix if given an `-o'
5232         # argument, so we may need to know it at that point already.
5233         # Even if this section looks crufty: it has the advantage of
5234         # actually working.
5235         break;;
5236     * )
5237         break;;
5238   esac
5239 done
5240 test "$ac_cv_exeext" = no && ac_cv_exeext=
5241
5242 else
5243   ac_file=''
5244 fi
5245
5246 { echo "$as_me:$LINENO: result: $ac_file" >&5
5247 echo "${ECHO_T}$ac_file" >&6; }
5248 if test -z "$ac_file"; then
5249   echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5251
5252 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5253 See \`config.log' for more details." >&5
5254 echo "$as_me: error: C compiler cannot create executables
5255 See \`config.log' for more details." >&2;}
5256    { (exit 77); exit 77; }; }
5257 fi
5258
5259 ac_exeext=$ac_cv_exeext
5260
5261 # Check that the compiler produces executables we can run.  If not, either
5262 # the compiler is broken, or we cross compile.
5263 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5264 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5265 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5266 # If not cross compiling, check that we can run a simple program.
5267 if test "$cross_compiling" != yes; then
5268   if { ac_try='./$ac_file'
5269   { (case "(($ac_try" in
5270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271   *) ac_try_echo=$ac_try;;
5272 esac
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274   (eval "$ac_try") 2>&5
5275   ac_status=$?
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); }; }; then
5278     cross_compiling=no
5279   else
5280     if test "$cross_compiling" = maybe; then
5281         cross_compiling=yes
5282     else
5283         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5284 If you meant to cross compile, use \`--host'.
5285 See \`config.log' for more details." >&5
5286 echo "$as_me: error: cannot run C compiled programs.
5287 If you meant to cross compile, use \`--host'.
5288 See \`config.log' for more details." >&2;}
5289    { (exit 1); exit 1; }; }
5290     fi
5291   fi
5292 fi
5293 { echo "$as_me:$LINENO: result: yes" >&5
5294 echo "${ECHO_T}yes" >&6; }
5295
5296 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5297 ac_clean_files=$ac_clean_files_save
5298 # Check that the compiler produces executables we can run.  If not, either
5299 # the compiler is broken, or we cross compile.
5300 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5301 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5302 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5303 echo "${ECHO_T}$cross_compiling" >&6; }
5304
5305 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5306 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5307 if { (ac_try="$ac_link"
5308 case "(($ac_try" in
5309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310   *) ac_try_echo=$ac_try;;
5311 esac
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313   (eval "$ac_link") 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; then
5317   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5318 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5319 # work properly (i.e., refer to `conftest.exe'), while it won't with
5320 # `rm'.
5321 for ac_file in conftest.exe conftest conftest.*; do
5322   test -f "$ac_file" || continue
5323   case $ac_file in
5324     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5325     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5326           break;;
5327     * ) break;;
5328   esac
5329 done
5330 else
5331   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5332 See \`config.log' for more details." >&5
5333 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5334 See \`config.log' for more details." >&2;}
5335    { (exit 1); exit 1; }; }
5336 fi
5337
5338 rm -f conftest$ac_cv_exeext
5339 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5340 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5341
5342 rm -f conftest.$ac_ext
5343 EXEEXT=$ac_cv_exeext
5344 ac_exeext=$EXEEXT
5345 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5346 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5347 if test "${ac_cv_objext+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h.  */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h.  */
5356
5357 int
5358 main ()
5359 {
5360
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.o conftest.obj
5366 if { (ac_try="$ac_compile"
5367 case "(($ac_try" in
5368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369   *) ac_try_echo=$ac_try;;
5370 esac
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372   (eval "$ac_compile") 2>&5
5373   ac_status=$?
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); }; then
5376   for ac_file in conftest.o conftest.obj conftest.*; do
5377   test -f "$ac_file" || continue;
5378   case $ac_file in
5379     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5380     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5381        break;;
5382   esac
5383 done
5384 else
5385   echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5387
5388 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5389 See \`config.log' for more details." >&5
5390 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5391 See \`config.log' for more details." >&2;}
5392    { (exit 1); exit 1; }; }
5393 fi
5394
5395 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5396 fi
5397 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5398 echo "${ECHO_T}$ac_cv_objext" >&6; }
5399 OBJEXT=$ac_cv_objext
5400 ac_objext=$OBJEXT
5401 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5402 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5403 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h.  */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h.  */
5412
5413 int
5414 main ()
5415 {
5416 #ifndef __GNUC__
5417        choke me
5418 #endif
5419
5420   ;
5421   return 0;
5422 }
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5426 case "(($ac_try" in
5427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428   *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431   (eval "$ac_compile") 2>conftest.er1
5432   ac_status=$?
5433   grep -v '^ *+' conftest.er1 >conftest.err
5434   rm -f conftest.er1
5435   cat conftest.err >&5
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); } && {
5438          test -z "$ac_c_werror_flag" ||
5439          test ! -s conftest.err
5440        } && test -s conftest.$ac_objext; then
5441   ac_compiler_gnu=yes
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446         ac_compiler_gnu=no
5447 fi
5448
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5451
5452 fi
5453 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5455 GCC=`test $ac_compiler_gnu = yes && echo yes`
5456 ac_test_CFLAGS=${CFLAGS+set}
5457 ac_save_CFLAGS=$CFLAGS
5458 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5459 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5460 if test "${ac_cv_prog_cc_g+set}" = set; then
5461   echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463   ac_save_c_werror_flag=$ac_c_werror_flag
5464    ac_c_werror_flag=yes
5465    ac_cv_prog_cc_g=no
5466    CFLAGS="-g"
5467    cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473
5474 int
5475 main ()
5476 {
5477
5478   ;
5479   return 0;
5480 }
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489   (eval "$ac_compile") 2>conftest.er1
5490   ac_status=$?
5491   grep -v '^ *+' conftest.er1 >conftest.err
5492   rm -f conftest.er1
5493   cat conftest.err >&5
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); } && {
5496          test -z "$ac_c_werror_flag" ||
5497          test ! -s conftest.err
5498        } && test -s conftest.$ac_objext; then
5499   ac_cv_prog_cc_g=yes
5500 else
5501   echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504         CFLAGS=""
5505       cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511
5512 int
5513 main ()
5514 {
5515
5516   ;
5517   return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5522 case "(($ac_try" in
5523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524   *) ac_try_echo=$ac_try;;
5525 esac
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527   (eval "$ac_compile") 2>conftest.er1
5528   ac_status=$?
5529   grep -v '^ *+' conftest.er1 >conftest.err
5530   rm -f conftest.er1
5531   cat conftest.err >&5
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); } && {
5534          test -z "$ac_c_werror_flag" ||
5535          test ! -s conftest.err
5536        } && test -s conftest.$ac_objext; then
5537   :
5538 else
5539   echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5541
5542         ac_c_werror_flag=$ac_save_c_werror_flag
5543          CFLAGS="-g"
5544          cat >conftest.$ac_ext <<_ACEOF
5545 /* confdefs.h.  */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h.  */
5550
5551 int
5552 main ()
5553 {
5554
5555   ;
5556   return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (ac_try="$ac_compile"
5561 case "(($ac_try" in
5562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563   *) ac_try_echo=$ac_try;;
5564 esac
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566   (eval "$ac_compile") 2>conftest.er1
5567   ac_status=$?
5568   grep -v '^ *+' conftest.er1 >conftest.err
5569   rm -f conftest.er1
5570   cat conftest.err >&5
5571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572   (exit $ac_status); } && {
5573          test -z "$ac_c_werror_flag" ||
5574          test ! -s conftest.err
5575        } && test -s conftest.$ac_objext; then
5576   ac_cv_prog_cc_g=yes
5577 else
5578   echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5580
5581
5582 fi
5583
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 fi
5586
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 fi
5589
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591    ac_c_werror_flag=$ac_save_c_werror_flag
5592 fi
5593 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5594 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5595 if test "$ac_test_CFLAGS" = set; then
5596   CFLAGS=$ac_save_CFLAGS
5597 elif test $ac_cv_prog_cc_g = yes; then
5598   if test "$GCC" = yes; then
5599     CFLAGS="-g -O2"
5600   else
5601     CFLAGS="-g"
5602   fi
5603 else
5604   if test "$GCC" = yes; then
5605     CFLAGS="-O2"
5606   else
5607     CFLAGS=
5608   fi
5609 fi
5610 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5611 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5612 if test "${ac_cv_prog_cc_c89+set}" = set; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   ac_cv_prog_cc_c89=no
5616 ac_save_CC=$CC
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h.  */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h.  */
5623 #include <stdarg.h>
5624 #include <stdio.h>
5625 #include <sys/types.h>
5626 #include <sys/stat.h>
5627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5628 struct buf { int x; };
5629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5630 static char *e (p, i)
5631      char **p;
5632      int i;
5633 {
5634   return p[i];
5635 }
5636 static char *f (char * (*g) (char **, int), char **p, ...)
5637 {
5638   char *s;
5639   va_list v;
5640   va_start (v,p);
5641   s = g (p, va_arg (v,int));
5642   va_end (v);
5643   return s;
5644 }
5645
5646 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5647    function prototypes and stuff, but not '\xHH' hex character constants.
5648    These don't provoke an error unfortunately, instead are silently treated
5649    as 'x'.  The following induces an error, until -std is added to get
5650    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5651    array size at least.  It's necessary to write '\x00'==0 to get something
5652    that's true only with -std.  */
5653 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5654
5655 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5656    inside strings and character constants.  */
5657 #define FOO(x) 'x'
5658 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5659
5660 int test (int i, double x);
5661 struct s1 {int (*f) (int a);};
5662 struct s2 {int (*f) (double a);};
5663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5664 int argc;
5665 char **argv;
5666 int
5667 main ()
5668 {
5669 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5670   ;
5671   return 0;
5672 }
5673 _ACEOF
5674 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5675         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5676 do
5677   CC="$ac_save_CC $ac_arg"
5678   rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5680 case "(($ac_try" in
5681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682   *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685   (eval "$ac_compile") 2>conftest.er1
5686   ac_status=$?
5687   grep -v '^ *+' conftest.er1 >conftest.err
5688   rm -f conftest.er1
5689   cat conftest.err >&5
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } && {
5692          test -z "$ac_c_werror_flag" ||
5693          test ! -s conftest.err
5694        } && test -s conftest.$ac_objext; then
5695   ac_cv_prog_cc_c89=$ac_arg
5696 else
5697   echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5699
5700
5701 fi
5702
5703 rm -f core conftest.err conftest.$ac_objext
5704   test "x$ac_cv_prog_cc_c89" != "xno" && break
5705 done
5706 rm -f conftest.$ac_ext
5707 CC=$ac_save_CC
5708
5709 fi
5710 # AC_CACHE_VAL
5711 case "x$ac_cv_prog_cc_c89" in
5712   x)
5713     { echo "$as_me:$LINENO: result: none needed" >&5
5714 echo "${ECHO_T}none needed" >&6; } ;;
5715   xno)
5716     { echo "$as_me:$LINENO: result: unsupported" >&5
5717 echo "${ECHO_T}unsupported" >&6; } ;;
5718   *)
5719     CC="$CC $ac_cv_prog_cc_c89"
5720     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5721 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5722 esac
5723
5724
5725 ac_ext=c
5726 ac_cpp='$CPP $CPPFLAGS'
5727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5730
5731 depcc="$CC"   am_compiler_list=
5732
5733 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5734 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5735 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5736   echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5739   # We make a subdir and do the tests there.  Otherwise we can end up
5740   # making bogus files that we don't know about and never remove.  For
5741   # instance it was reported that on HP-UX the gcc test will end up
5742   # making a dummy file named `D' -- because `-MD' means `put the output
5743   # in D'.
5744   mkdir conftest.dir
5745   # Copy depcomp to subdir because otherwise we won't find it if we're
5746   # using a relative directory.
5747   cp "$am_depcomp" conftest.dir
5748   cd conftest.dir
5749   # We will build objects and dependencies in a subdirectory because
5750   # it helps to detect inapplicable dependency modes.  For instance
5751   # both Tru64's cc and ICC support -MD to output dependencies as a
5752   # side effect of compilation, but ICC will put the dependencies in
5753   # the current directory while Tru64 will put them in the object
5754   # directory.
5755   mkdir sub
5756
5757   am_cv_CC_dependencies_compiler_type=none
5758   if test "$am_compiler_list" = ""; then
5759      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5760   fi
5761   for depmode in $am_compiler_list; do
5762     # Setup a source with many dependencies, because some compilers
5763     # like to wrap large dependency lists on column 80 (with \), and
5764     # we should not choose a depcomp mode which is confused by this.
5765     #
5766     # We need to recreate these files for each test, as the compiler may
5767     # overwrite some of them when testing with obscure command lines.
5768     # This happens at least with the AIX C compiler.
5769     : > sub/conftest.c
5770     for i in 1 2 3 4 5 6; do
5771       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5772       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5773       # Solaris 8's {/usr,}/bin/sh.
5774       touch sub/conftst$i.h
5775     done
5776     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5777
5778     case $depmode in
5779     nosideeffect)
5780       # after this tag, mechanisms are not by side-effect, so they'll
5781       # only be used when explicitly requested
5782       if test "x$enable_dependency_tracking" = xyes; then
5783         continue
5784       else
5785         break
5786       fi
5787       ;;
5788     none) break ;;
5789     esac
5790     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5791     # mode.  It turns out that the SunPro C++ compiler does not properly
5792     # handle `-M -o', and we need to detect this.
5793     if depmode=$depmode \
5794        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5795        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5796        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5797          >/dev/null 2>conftest.err &&
5798        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5799        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5800        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5801       # icc doesn't choke on unknown options, it will just issue warnings
5802       # or remarks (even with -Werror).  So we grep stderr for any message
5803       # that says an option was ignored or not supported.
5804       # When given -MP, icc 7.0 and 7.1 complain thusly:
5805       #   icc: Command line warning: ignoring option '-M'; no argument required
5806       # The diagnosis changed in icc 8.0:
5807       #   icc: Command line remark: option '-MP' not supported
5808       if (grep 'ignoring option' conftest.err ||
5809           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5810         am_cv_CC_dependencies_compiler_type=$depmode
5811         break
5812       fi
5813     fi
5814   done
5815
5816   cd ..
5817   rm -rf conftest.dir
5818 else
5819   am_cv_CC_dependencies_compiler_type=none
5820 fi
5821
5822 fi
5823 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5824 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5825 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5826
5827
5828
5829 if
5830   test "x$enable_dependency_tracking" != xno \
5831   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5832   am__fastdepCC_TRUE=
5833   am__fastdepCC_FALSE='#'
5834 else
5835   am__fastdepCC_TRUE='#'
5836   am__fastdepCC_FALSE=
5837 fi
5838
5839
5840 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5841 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5842 if test "${lt_cv_path_SED+set}" = set; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   # Loop through the user's path and test for sed and gsed.
5846 # Then use that list of sed's as ones to test for truncation.
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850   IFS=$as_save_IFS
5851   test -z "$as_dir" && as_dir=.
5852   for lt_ac_prog in sed gsed; do
5853     for ac_exec_ext in '' $ac_executable_extensions; do
5854       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5855         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5856       fi
5857     done
5858   done
5859 done
5860 lt_ac_max=0
5861 lt_ac_count=0
5862 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5863 # along with /bin/sed that truncates output.
5864 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5865   test ! -f $lt_ac_sed && continue
5866   cat /dev/null > conftest.in
5867   lt_ac_count=0
5868   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5869   # Check for GNU sed and select it if it is found.
5870   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5871     lt_cv_path_SED=$lt_ac_sed
5872     break
5873   fi
5874   while true; do
5875     cat conftest.in conftest.in >conftest.tmp
5876     mv conftest.tmp conftest.in
5877     cp conftest.in conftest.nl
5878     echo >>conftest.nl
5879     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5880     cmp -s conftest.out conftest.nl || break
5881     # 10000 chars as input seems more than enough
5882     test $lt_ac_count -gt 10 && break
5883     lt_ac_count=`expr $lt_ac_count + 1`
5884     if test $lt_ac_count -gt $lt_ac_max; then
5885       lt_ac_max=$lt_ac_count
5886       lt_cv_path_SED=$lt_ac_sed
5887     fi
5888   done
5889 done
5890
5891 fi
5892
5893 SED=$lt_cv_path_SED
5894 { echo "$as_me:$LINENO: result: $SED" >&5
5895 echo "${ECHO_T}$SED" >&6; }
5896
5897 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5898 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5899 if test "${ac_cv_path_GREP+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   # Extract the first word of "grep ggrep" to use in msg output
5903 if test -z "$GREP"; then
5904 set dummy grep ggrep; ac_prog_name=$2
5905 if test "${ac_cv_path_GREP+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   ac_path_GREP_found=false
5909 # Loop through the user's path and test for each of PROGNAME-LIST
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915   for ac_prog in grep ggrep; do
5916   for ac_exec_ext in '' $ac_executable_extensions; do
5917     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5918     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5919     # Check for GNU ac_path_GREP and select it if it is found.
5920   # Check for GNU $ac_path_GREP
5921 case `"$ac_path_GREP" --version 2>&1` in
5922 *GNU*)
5923   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5924 *)
5925   ac_count=0
5926   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5927   while :
5928   do
5929     cat "conftest.in" "conftest.in" >"conftest.tmp"
5930     mv "conftest.tmp" "conftest.in"
5931     cp "conftest.in" "conftest.nl"
5932     echo 'GREP' >> "conftest.nl"
5933     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5934     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5935     ac_count=`expr $ac_count + 1`
5936     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5937       # Best one so far, save it but keep looking for a better one
5938       ac_cv_path_GREP="$ac_path_GREP"
5939       ac_path_GREP_max=$ac_count
5940     fi
5941     # 10*(2^10) chars as input seems more than enough
5942     test $ac_count -gt 10 && break
5943   done
5944   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5945 esac
5946
5947
5948     $ac_path_GREP_found && break 3
5949   done
5950 done
5951
5952 done
5953 IFS=$as_save_IFS
5954
5955
5956 fi
5957
5958 GREP="$ac_cv_path_GREP"
5959 if test -z "$GREP"; then
5960   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5961 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5962    { (exit 1); exit 1; }; }
5963 fi
5964
5965 else
5966   ac_cv_path_GREP=$GREP
5967 fi
5968
5969
5970 fi
5971 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5972 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5973  GREP="$ac_cv_path_GREP"
5974
5975
5976 { echo "$as_me:$LINENO: checking for egrep" >&5
5977 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5978 if test "${ac_cv_path_EGREP+set}" = set; then
5979   echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5982    then ac_cv_path_EGREP="$GREP -E"
5983    else
5984      # Extract the first word of "egrep" to use in msg output
5985 if test -z "$EGREP"; then
5986 set dummy egrep; ac_prog_name=$2
5987 if test "${ac_cv_path_EGREP+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   ac_path_EGREP_found=false
5991 # Loop through the user's path and test for each of PROGNAME-LIST
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997   for ac_prog in egrep; do
5998   for ac_exec_ext in '' $ac_executable_extensions; do
5999     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6000     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6001     # Check for GNU ac_path_EGREP and select it if it is found.
6002   # Check for GNU $ac_path_EGREP
6003 case `"$ac_path_EGREP" --version 2>&1` in
6004 *GNU*)
6005   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6006 *)
6007   ac_count=0
6008   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6009   while :
6010   do
6011     cat "conftest.in" "conftest.in" >"conftest.tmp"
6012     mv "conftest.tmp" "conftest.in"
6013     cp "conftest.in" "conftest.nl"
6014     echo 'EGREP' >> "conftest.nl"
6015     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6016     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6017     ac_count=`expr $ac_count + 1`
6018     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6019       # Best one so far, save it but keep looking for a better one
6020       ac_cv_path_EGREP="$ac_path_EGREP"
6021       ac_path_EGREP_max=$ac_count
6022     fi
6023     # 10*(2^10) chars as input seems more than enough
6024     test $ac_count -gt 10 && break
6025   done
6026   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6027 esac
6028
6029
6030     $ac_path_EGREP_found && break 3
6031   done
6032 done
6033
6034 done
6035 IFS=$as_save_IFS
6036
6037
6038 fi
6039
6040 EGREP="$ac_cv_path_EGREP"
6041 if test -z "$EGREP"; then
6042   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6043 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6044    { (exit 1); exit 1; }; }
6045 fi
6046
6047 else
6048   ac_cv_path_EGREP=$EGREP
6049 fi
6050
6051
6052    fi
6053 fi
6054 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6055 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6056  EGREP="$ac_cv_path_EGREP"
6057
6058
6059
6060 # Check whether --with-gnu-ld was given.
6061 if test "${with_gnu_ld+set}" = set; then
6062   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6063 else
6064   with_gnu_ld=no
6065 fi
6066
6067 ac_prog=ld
6068 if test "$GCC" = yes; then
6069   # Check if gcc -print-prog-name=ld gives a path.
6070   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6071 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6072   case $host in
6073   *-*-mingw*)
6074     # gcc leaves a trailing carriage return which upsets mingw
6075     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6076   *)
6077     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6078   esac
6079   case $ac_prog in
6080     # Accept absolute paths.
6081     [\\/]* | ?:[\\/]*)
6082       re_direlt='/[^/][^/]*/\.\./'
6083       # Canonicalize the pathname of ld
6084       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6085       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6086         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6087       done
6088       test -z "$LD" && LD="$ac_prog"
6089       ;;
6090   "")
6091     # If it fails, then pretend we aren't using GCC.
6092     ac_prog=ld
6093     ;;
6094   *)
6095     # If it is relative, then search for the first ld in PATH.
6096     with_gnu_ld=unknown
6097     ;;
6098   esac
6099 elif test "$with_gnu_ld" = yes; then
6100   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6101 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6102 else
6103   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6104 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6105 fi
6106 if test "${lt_cv_path_LD+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   if test -z "$LD"; then
6110   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6111   for ac_dir in $PATH; do
6112     IFS="$lt_save_ifs"
6113     test -z "$ac_dir" && ac_dir=.
6114     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6115       lt_cv_path_LD="$ac_dir/$ac_prog"
6116       # Check to see if the program is GNU ld.  I'd rather use --version,
6117       # but apparently some variants of GNU ld only accept -v.
6118       # Break only if it was the GNU/non-GNU ld that we prefer.
6119       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6120       *GNU* | *'with BFD'*)
6121         test "$with_gnu_ld" != no && break
6122         ;;
6123       *)
6124         test "$with_gnu_ld" != yes && break
6125         ;;
6126       esac
6127     fi
6128   done
6129   IFS="$lt_save_ifs"
6130 else
6131   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6132 fi
6133 fi
6134
6135 LD="$lt_cv_path_LD"
6136 if test -n "$LD"; then
6137   { echo "$as_me:$LINENO: result: $LD" >&5
6138 echo "${ECHO_T}$LD" >&6; }
6139 else
6140   { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6142 fi
6143 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6144 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6145    { (exit 1); exit 1; }; }
6146 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6147 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6148 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6152 case `$LD -v 2>&1 </dev/null` in
6153 *GNU* | *'with BFD'*)
6154   lt_cv_prog_gnu_ld=yes
6155   ;;
6156 *)
6157   lt_cv_prog_gnu_ld=no
6158   ;;
6159 esac
6160 fi
6161 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6162 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6163 with_gnu_ld=$lt_cv_prog_gnu_ld
6164
6165
6166 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6167 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6168 if test "${lt_cv_ld_reload_flag+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   lt_cv_ld_reload_flag='-r'
6172 fi
6173 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6174 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6175 reload_flag=$lt_cv_ld_reload_flag
6176 case $reload_flag in
6177 "" | " "*) ;;
6178 *) reload_flag=" $reload_flag" ;;
6179 esac
6180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6181 case $host_os in
6182   darwin*)
6183     if test "$GCC" = yes; then
6184       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6185     else
6186       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187     fi
6188     ;;
6189 esac
6190
6191 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6192 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6193 if test "${lt_cv_path_NM+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   if test -n "$NM"; then
6197   # Let the user override the test.
6198   lt_cv_path_NM="$NM"
6199 else
6200   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6201   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6202     IFS="$lt_save_ifs"
6203     test -z "$ac_dir" && ac_dir=.
6204     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6205     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6206       # Check to see if the nm accepts a BSD-compat flag.
6207       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6208       #   nm: unknown option "B" ignored
6209       # Tru64's nm complains that /dev/null is an invalid object file
6210       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6211       */dev/null* | *'Invalid file or object type'*)
6212         lt_cv_path_NM="$tmp_nm -B"
6213         break
6214         ;;
6215       *)
6216         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6217         */dev/null*)
6218           lt_cv_path_NM="$tmp_nm -p"
6219           break
6220           ;;
6221         *)
6222           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6223           continue # so that we can try to find one that supports BSD flags
6224           ;;
6225         esac
6226       esac
6227     fi
6228   done
6229   IFS="$lt_save_ifs"
6230   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6231 fi
6232 fi
6233 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6234 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6235 NM="$lt_cv_path_NM"
6236
6237 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6238 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6239 LN_S=$as_ln_s
6240 if test "$LN_S" = "ln -s"; then
6241   { echo "$as_me:$LINENO: result: yes" >&5
6242 echo "${ECHO_T}yes" >&6; }
6243 else
6244   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6245 echo "${ECHO_T}no, using $LN_S" >&6; }
6246 fi
6247
6248 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6249 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6250 if test "${lt_cv_deplibs_check_method+set}" = set; then
6251   echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253   lt_cv_file_magic_cmd='$MAGIC_CMD'
6254 lt_cv_file_magic_test_file=
6255 lt_cv_deplibs_check_method='unknown'
6256 # Need to set the preceding variable on all platforms that support
6257 # interlibrary dependencies.
6258 # 'none' -- dependencies not supported.
6259 # `unknown' -- same as none, but documents that we really don't know.
6260 # 'pass_all' -- all dependencies passed with no checks.
6261 # 'test_compile' -- check by making test program.
6262 # 'file_magic [[regex]]' -- check by looking for files in library path
6263 # which responds to the $file_magic_cmd with a given extended regex.
6264 # If you have `file' or equivalent on your system and you're not sure
6265 # whether `pass_all' will *always* work, you probably want this one.
6266
6267 case $host_os in
6268 aix4* | aix5*)
6269   lt_cv_deplibs_check_method=pass_all
6270   ;;
6271
6272 beos*)
6273   lt_cv_deplibs_check_method=pass_all
6274   ;;
6275
6276 bsdi[45]*)
6277   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6278   lt_cv_file_magic_cmd='/usr/bin/file -L'
6279   lt_cv_file_magic_test_file=/shlib/libc.so
6280   ;;
6281
6282 cygwin*)
6283   # func_win32_libid is a shell function defined in ltmain.sh
6284   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6285   lt_cv_file_magic_cmd='func_win32_libid'
6286   ;;
6287
6288 mingw* | pw32*)
6289   # Base MSYS/MinGW do not provide the 'file' command needed by
6290   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6291   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6292   lt_cv_file_magic_cmd='$OBJDUMP -f'
6293   ;;
6294
6295 darwin* | rhapsody*)
6296   lt_cv_deplibs_check_method=pass_all
6297   ;;
6298
6299 freebsd* | kfreebsd*-gnu | dragonfly*)
6300   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6301     case $host_cpu in
6302     i*86 )
6303       # Not sure whether the presence of OpenBSD here was a mistake.
6304       # Let's accept both of them until this is cleared up.
6305       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6306       lt_cv_file_magic_cmd=/usr/bin/file
6307       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6308       ;;
6309     esac
6310   else
6311     lt_cv_deplibs_check_method=pass_all
6312   fi
6313   ;;
6314
6315 gnu*)
6316   lt_cv_deplibs_check_method=pass_all
6317   ;;
6318
6319 hpux10.20* | hpux11*)
6320   lt_cv_file_magic_cmd=/usr/bin/file
6321   case $host_cpu in
6322   ia64*)
6323     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6324     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6325     ;;
6326   hppa*64*)
6327     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6328     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6329     ;;
6330   *)
6331     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6332     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6333     ;;
6334   esac
6335   ;;
6336
6337 irix5* | irix6* | nonstopux*)
6338   case $LD in
6339   *-32|*"-32 ") libmagic=32-bit;;
6340   *-n32|*"-n32 ") libmagic=N32;;
6341   *-64|*"-64 ") libmagic=64-bit;;
6342   *) libmagic=never-match;;
6343   esac
6344   lt_cv_deplibs_check_method=pass_all
6345   ;;
6346
6347 # This must be Linux ELF.
6348 linux*)
6349   lt_cv_deplibs_check_method=pass_all
6350   ;;
6351
6352 netbsd*)
6353   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6354     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6355   else
6356     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6357   fi
6358   ;;
6359
6360 newos6*)
6361   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6362   lt_cv_file_magic_cmd=/usr/bin/file
6363   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6364   ;;
6365
6366 nto-qnx*)
6367   lt_cv_deplibs_check_method=unknown
6368   ;;
6369
6370 openbsd*)
6371   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6372     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6373   else
6374     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6375   fi
6376   ;;
6377
6378 osf3* | osf4* | osf5*)
6379   lt_cv_deplibs_check_method=pass_all
6380   ;;
6381
6382 sco3.2v5*)
6383   lt_cv_deplibs_check_method=pass_all
6384   ;;
6385
6386 solaris*)
6387   lt_cv_deplibs_check_method=pass_all
6388   ;;
6389
6390 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6391   case $host_vendor in
6392   motorola)
6393     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6394     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6395     ;;
6396   ncr)
6397     lt_cv_deplibs_check_method=pass_all
6398     ;;
6399   sequent)
6400     lt_cv_file_magic_cmd='/bin/file'
6401     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6402     ;;
6403   sni)
6404     lt_cv_file_magic_cmd='/bin/file'
6405     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6406     lt_cv_file_magic_test_file=/lib/libc.so
6407     ;;
6408   siemens)
6409     lt_cv_deplibs_check_method=pass_all
6410     ;;
6411   esac
6412   ;;
6413
6414 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6415   lt_cv_deplibs_check_method=pass_all
6416   ;;
6417 esac
6418
6419 fi
6420 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6421 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6422 file_magic_cmd=$lt_cv_file_magic_cmd
6423 deplibs_check_method=$lt_cv_deplibs_check_method
6424 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6425
6426
6427
6428
6429 # If no C compiler was specified, use CC.
6430 LTCC=${LTCC-"$CC"}
6431
6432 # Allow CC to be a program name with arguments.
6433 compiler=$CC
6434
6435
6436 # Check whether --enable-libtool-lock was given.
6437 if test "${enable_libtool_lock+set}" = set; then
6438   enableval=$enable_libtool_lock;
6439 fi
6440
6441 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6442
6443 # Some flags need to be propagated to the compiler or linker for good
6444 # libtool support.
6445 case $host in
6446 ia64-*-hpux*)
6447   # Find out which ABI we are using.
6448   echo 'int i;' > conftest.$ac_ext
6449   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450   (eval $ac_compile) 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; then
6454     case `/usr/bin/file conftest.$ac_objext` in
6455     *ELF-32*)
6456       HPUX_IA64_MODE="32"
6457       ;;
6458     *ELF-64*)
6459       HPUX_IA64_MODE="64"
6460       ;;
6461     esac
6462   fi
6463   rm -rf conftest*
6464   ;;
6465 *-*-irix6*)
6466   # Find out which ABI we are using.
6467   echo '#line 6467 "configure"' > conftest.$ac_ext
6468   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469   (eval $ac_compile) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); }; then
6473    if test "$lt_cv_prog_gnu_ld" = yes; then
6474     case `/usr/bin/file conftest.$ac_objext` in
6475     *32-bit*)
6476       LD="${LD-ld} -melf32bsmip"
6477       ;;
6478     *N32*)
6479       LD="${LD-ld} -melf32bmipn32"
6480       ;;
6481     *64-bit*)
6482       LD="${LD-ld} -melf64bmip"
6483       ;;
6484     esac
6485    else
6486     case `/usr/bin/file conftest.$ac_objext` in
6487     *32-bit*)
6488       LD="${LD-ld} -32"
6489       ;;
6490     *N32*)
6491       LD="${LD-ld} -n32"
6492       ;;
6493     *64-bit*)
6494       LD="${LD-ld} -64"
6495       ;;
6496     esac
6497    fi
6498   fi
6499   rm -rf conftest*
6500   ;;
6501
6502 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6503   # Find out which ABI we are using.
6504   echo 'int i;' > conftest.$ac_ext
6505   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506   (eval $ac_compile) 2>&5
6507   ac_status=$?
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); }; then
6510     case `/usr/bin/file conftest.o` in
6511     *32-bit*)
6512       case $host in
6513         x86_64-*linux*)
6514           LD="${LD-ld} -m elf_i386"
6515           ;;
6516         ppc64-*linux*|powerpc64-*linux*)
6517           LD="${LD-ld} -m elf32ppclinux"
6518           ;;
6519         s390x-*linux*)
6520           LD="${LD-ld} -m elf_s390"
6521           ;;
6522         sparc64-*linux*)
6523           LD="${LD-ld} -m elf32_sparc"
6524           ;;
6525       esac
6526       ;;
6527     *64-bit*)
6528       case $host in
6529         x86_64-*linux*)
6530           LD="${LD-ld} -m elf_x86_64"
6531           ;;
6532         ppc*-*linux*|powerpc*-*linux*)
6533           LD="${LD-ld} -m elf64ppc"
6534           ;;
6535         s390*-*linux*)
6536           LD="${LD-ld} -m elf64_s390"
6537           ;;
6538         sparc*-*linux*)
6539           LD="${LD-ld} -m elf64_sparc"
6540           ;;
6541       esac
6542       ;;
6543     esac
6544   fi
6545   rm -rf conftest*
6546   ;;
6547
6548 *-*-sco3.2v5*)
6549   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6550   SAVE_CFLAGS="$CFLAGS"
6551   CFLAGS="$CFLAGS -belf"
6552   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6553 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6554 if test "${lt_cv_cc_needs_belf+set}" = set; then
6555   echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557   ac_ext=c
6558 ac_cpp='$CPP $CPPFLAGS'
6559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562
6563      cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h.  */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h.  */
6569
6570 int
6571 main ()
6572 {
6573
6574   ;
6575   return 0;
6576 }
6577 _ACEOF
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (ac_try="$ac_link"
6580 case "(($ac_try" in
6581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582   *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585   (eval "$ac_link") 2>conftest.er1
6586   ac_status=$?
6587   grep -v '^ *+' conftest.er1 >conftest.err
6588   rm -f conftest.er1
6589   cat conftest.err >&5
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); } && {
6592          test -z "$ac_c_werror_flag" ||
6593          test ! -s conftest.err
6594        } && test -s conftest$ac_exeext &&
6595        $as_test_x conftest$ac_exeext; then
6596   lt_cv_cc_needs_belf=yes
6597 else
6598   echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6600
6601         lt_cv_cc_needs_belf=no
6602 fi
6603
6604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6605       conftest$ac_exeext conftest.$ac_ext
6606      ac_ext=c
6607 ac_cpp='$CPP $CPPFLAGS'
6608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611
6612 fi
6613 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6614 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6615   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6616     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6617     CFLAGS="$SAVE_CFLAGS"
6618   fi
6619   ;;
6620 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6621   if test -n "$ac_tool_prefix"; then
6622   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   if test -n "$DLLTOOL"; then
6630   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635   IFS=$as_save_IFS
6636   test -z "$as_dir" && as_dir=.
6637   for ac_exec_ext in '' $ac_executable_extensions; do
6638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 DLLTOOL=$ac_cv_prog_DLLTOOL
6650 if test -n "$DLLTOOL"; then
6651   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6652 echo "${ECHO_T}$DLLTOOL" >&6; }
6653 else
6654   { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_DLLTOOL"; then
6661   ac_ct_DLLTOOL=$DLLTOOL
6662   # Extract the first word of "dlltool", so it can be a program name with args.
6663 set dummy dlltool; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   if test -n "$ac_ct_DLLTOOL"; then
6670   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677   for ac_exec_ext in '' $ac_executable_extensions; do
6678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6690 if test -n "$ac_ct_DLLTOOL"; then
6691   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6692 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6693 else
6694   { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6696 fi
6697
6698   if test "x$ac_ct_DLLTOOL" = x; then
6699     DLLTOOL="false"
6700   else
6701     case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6704 whose name does not start with the host triplet.  If you think this
6705 configuration is useful to you, please write to autoconf@gnu.org." >&5
6706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6707 whose name does not start with the host triplet.  If you think this
6708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6709 ac_tool_warned=yes ;;
6710 esac
6711     DLLTOOL=$ac_ct_DLLTOOL
6712   fi
6713 else
6714   DLLTOOL="$ac_cv_prog_DLLTOOL"
6715 fi
6716
6717   if test -n "$ac_tool_prefix"; then
6718   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}as; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_AS+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   if test -n "$AS"; then
6726   ac_cv_prog_AS="$AS" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733   for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_prog_AS="${ac_tool_prefix}as"
6736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 AS=$ac_cv_prog_AS
6746 if test -n "$AS"; then
6747   { echo "$as_me:$LINENO: result: $AS" >&5
6748 echo "${ECHO_T}$AS" >&6; }
6749 else
6750   { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6752 fi
6753
6754
6755 fi
6756 if test -z "$ac_cv_prog_AS"; then
6757   ac_ct_AS=$AS
6758   # Extract the first word of "as", so it can be a program name with args.
6759 set dummy as; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   if test -n "$ac_ct_AS"; then
6766   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773   for ac_exec_ext in '' $ac_executable_extensions; do
6774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775     ac_cv_prog_ac_ct_AS="as"
6776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6786 if test -n "$ac_ct_AS"; then
6787   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6788 echo "${ECHO_T}$ac_ct_AS" >&6; }
6789 else
6790   { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6792 fi
6793
6794   if test "x$ac_ct_AS" = x; then
6795     AS="false"
6796   else
6797     case $cross_compiling:$ac_tool_warned in
6798 yes:)
6799 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6800 whose name does not start with the host triplet.  If you think this
6801 configuration is useful to you, please write to autoconf@gnu.org." >&5
6802 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet.  If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807     AS=$ac_ct_AS
6808   fi
6809 else
6810   AS="$ac_cv_prog_AS"
6811 fi
6812
6813   if test -n "$ac_tool_prefix"; then
6814   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   if test -n "$OBJDUMP"; then
6822   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 OBJDUMP=$ac_cv_prog_OBJDUMP
6842 if test -n "$OBJDUMP"; then
6843   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6844 echo "${ECHO_T}$OBJDUMP" >&6; }
6845 else
6846   { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_prog_OBJDUMP"; then
6853   ac_ct_OBJDUMP=$OBJDUMP
6854   # Extract the first word of "objdump", so it can be a program name with args.
6855 set dummy objdump; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   if test -n "$ac_ct_OBJDUMP"; then
6862   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869   for ac_exec_ext in '' $ac_executable_extensions; do
6870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6882 if test -n "$ac_ct_OBJDUMP"; then
6883   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6884 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6885 else
6886   { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 fi
6889
6890   if test "x$ac_ct_OBJDUMP" = x; then
6891     OBJDUMP="false"
6892   else
6893     case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6896 whose name does not start with the host triplet.  If you think this
6897 configuration is useful to you, please write to autoconf@gnu.org." >&5
6898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet.  If you think this
6900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903     OBJDUMP=$ac_ct_OBJDUMP
6904   fi
6905 else
6906   OBJDUMP="$ac_cv_prog_OBJDUMP"
6907 fi
6908
6909   ;;
6910
6911 esac
6912
6913 need_locks="$enable_libtool_lock"
6914
6915
6916 ac_ext=c
6917 ac_cpp='$CPP $CPPFLAGS'
6918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6921 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6923 # On Suns, sometimes $CPP names a directory.
6924 if test -n "$CPP" && test -d "$CPP"; then
6925   CPP=
6926 fi
6927 if test -z "$CPP"; then
6928   if test "${ac_cv_prog_CPP+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931       # Double quotes because CPP needs to be expanded
6932     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6933     do
6934       ac_preproc_ok=false
6935 for ac_c_preproc_warn_flag in '' yes
6936 do
6937   # Use a header file that comes with gcc, so configuring glibc
6938   # with a fresh cross-compiler works.
6939   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6940   # <limits.h> exists even on freestanding compilers.
6941   # On the NeXT, cc -E runs the code through the compiler's parser,
6942   # not just through cpp. "Syntax error" is here to catch this case.
6943   cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h.  */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h.  */
6949 #ifdef __STDC__
6950 # include <limits.h>
6951 #else
6952 # include <assert.h>
6953 #endif
6954                      Syntax error
6955 _ACEOF
6956 if { (ac_try="$ac_cpp conftest.$ac_ext"
6957 case "(($ac_try" in
6958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959   *) ac_try_echo=$ac_try;;
6960 esac
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6963   ac_status=$?
6964   grep -v '^ *+' conftest.er1 >conftest.err
6965   rm -f conftest.er1
6966   cat conftest.err >&5
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); } >/dev/null && {
6969          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6970          test ! -s conftest.err
6971        }; then
6972   :
6973 else
6974   echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977   # Broken: fails on valid input.
6978 continue
6979 fi
6980
6981 rm -f conftest.err conftest.$ac_ext
6982
6983   # OK, works on sane cases.  Now check whether nonexistent headers
6984   # can be detected and how.
6985   cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991 #include <ac_nonexistent.h>
6992 _ACEOF
6993 if { (ac_try="$ac_cpp conftest.$ac_ext"
6994 case "(($ac_try" in
6995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996   *) ac_try_echo=$ac_try;;
6997 esac
6998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7000   ac_status=$?
7001   grep -v '^ *+' conftest.er1 >conftest.err
7002   rm -f conftest.er1
7003   cat conftest.err >&5
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); } >/dev/null && {
7006          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7007          test ! -s conftest.err
7008        }; then
7009   # Broken: success on invalid input.
7010 continue
7011 else
7012   echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7014
7015   # Passes both tests.
7016 ac_preproc_ok=:
7017 break
7018 fi
7019
7020 rm -f conftest.err conftest.$ac_ext
7021
7022 done
7023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7024 rm -f conftest.err conftest.$ac_ext
7025 if $ac_preproc_ok; then
7026   break
7027 fi
7028
7029     done
7030     ac_cv_prog_CPP=$CPP
7031
7032 fi
7033   CPP=$ac_cv_prog_CPP
7034 else
7035   ac_cv_prog_CPP=$CPP
7036 fi
7037 { echo "$as_me:$LINENO: result: $CPP" >&5
7038 echo "${ECHO_T}$CPP" >&6; }
7039 ac_preproc_ok=false
7040 for ac_c_preproc_warn_flag in '' yes
7041 do
7042   # Use a header file that comes with gcc, so configuring glibc
7043   # with a fresh cross-compiler works.
7044   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7045   # <limits.h> exists even on freestanding compilers.
7046   # On the NeXT, cc -E runs the code through the compiler's parser,
7047   # not just through cpp. "Syntax error" is here to catch this case.
7048   cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h.  */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h.  */
7054 #ifdef __STDC__
7055 # include <limits.h>
7056 #else
7057 # include <assert.h>
7058 #endif
7059                      Syntax error
7060 _ACEOF
7061 if { (ac_try="$ac_cpp conftest.$ac_ext"
7062 case "(($ac_try" in
7063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064   *) ac_try_echo=$ac_try;;
7065 esac
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7068   ac_status=$?
7069   grep -v '^ *+' conftest.er1 >conftest.err
7070   rm -f conftest.er1
7071   cat conftest.err >&5
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); } >/dev/null && {
7074          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7075          test ! -s conftest.err
7076        }; then
7077   :
7078 else
7079   echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082   # Broken: fails on valid input.
7083 continue
7084 fi
7085
7086 rm -f conftest.err conftest.$ac_ext
7087
7088   # OK, works on sane cases.  Now check whether nonexistent headers
7089   # can be detected and how.
7090   cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h.  */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h.  */
7096 #include <ac_nonexistent.h>
7097 _ACEOF
7098 if { (ac_try="$ac_cpp conftest.$ac_ext"
7099 case "(($ac_try" in
7100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101   *) ac_try_echo=$ac_try;;
7102 esac
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7105   ac_status=$?
7106   grep -v '^ *+' conftest.er1 >conftest.err
7107   rm -f conftest.er1
7108   cat conftest.err >&5
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); } >/dev/null && {
7111          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7112          test ! -s conftest.err
7113        }; then
7114   # Broken: success on invalid input.
7115 continue
7116 else
7117   echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120   # Passes both tests.
7121 ac_preproc_ok=:
7122 break
7123 fi
7124
7125 rm -f conftest.err conftest.$ac_ext
7126
7127 done
7128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7129 rm -f conftest.err conftest.$ac_ext
7130 if $ac_preproc_ok; then
7131   :
7132 else
7133   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7134 See \`config.log' for more details." >&5
7135 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7136 See \`config.log' for more details." >&2;}
7137    { (exit 1); exit 1; }; }
7138 fi
7139
7140 ac_ext=c
7141 ac_cpp='$CPP $CPPFLAGS'
7142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7145
7146
7147 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7148 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7149 if test "${ac_cv_header_stdc+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h.  */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h.  */
7158 #include <stdlib.h>
7159 #include <stdarg.h>
7160 #include <string.h>
7161 #include <float.h>
7162
7163 int
7164 main ()
7165 {
7166
7167   ;
7168   return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7173 case "(($ac_try" in
7174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175   *) ac_try_echo=$ac_try;;
7176 esac
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178   (eval "$ac_compile") 2>conftest.er1
7179   ac_status=$?
7180   grep -v '^ *+' conftest.er1 >conftest.err
7181   rm -f conftest.er1
7182   cat conftest.err >&5
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); } && {
7185          test -z "$ac_c_werror_flag" ||
7186          test ! -s conftest.err
7187        } && test -s conftest.$ac_objext; then
7188   ac_cv_header_stdc=yes
7189 else
7190   echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7192
7193         ac_cv_header_stdc=no
7194 fi
7195
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197
7198 if test $ac_cv_header_stdc = yes; then
7199   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7200   cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h.  */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h.  */
7206 #include <string.h>
7207
7208 _ACEOF
7209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7210   $EGREP "memchr" >/dev/null 2>&1; then
7211   :
7212 else
7213   ac_cv_header_stdc=no
7214 fi
7215 rm -f conftest*
7216
7217 fi
7218
7219 if test $ac_cv_header_stdc = yes; then
7220   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7221   cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h.  */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h.  */
7227 #include <stdlib.h>
7228
7229 _ACEOF
7230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7231   $EGREP "free" >/dev/null 2>&1; then
7232   :
7233 else
7234   ac_cv_header_stdc=no
7235 fi
7236 rm -f conftest*
7237
7238 fi
7239
7240 if test $ac_cv_header_stdc = yes; then
7241   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7242   if test "$cross_compiling" = yes; then
7243   :
7244 else
7245   cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h.  */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h.  */
7251 #include <ctype.h>
7252 #include <stdlib.h>
7253 #if ((' ' & 0x0FF) == 0x020)
7254 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7255 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7256 #else
7257 # define ISLOWER(c) \
7258                    (('a' <= (c) && (c) <= 'i') \
7259                      || ('j' <= (c) && (c) <= 'r') \
7260                      || ('s' <= (c) && (c) <= 'z'))
7261 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7262 #endif
7263
7264 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7265 int
7266 main ()
7267 {
7268   int i;
7269   for (i = 0; i < 256; i++)
7270     if (XOR (islower (i), ISLOWER (i))
7271         || toupper (i) != TOUPPER (i))
7272       return 2;
7273   return 0;
7274 }
7275 _ACEOF
7276 rm -f conftest$ac_exeext
7277 if { (ac_try="$ac_link"
7278 case "(($ac_try" in
7279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280   *) ac_try_echo=$ac_try;;
7281 esac
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283   (eval "$ac_link") 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7287   { (case "(($ac_try" in
7288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289   *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292   (eval "$ac_try") 2>&5
7293   ac_status=$?
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); }; }; then
7296   :
7297 else
7298   echo "$as_me: program exited with status $ac_status" >&5
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302 ( exit $ac_status )
7303 ac_cv_header_stdc=no
7304 fi
7305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7306 fi
7307
7308
7309 fi
7310 fi
7311 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7312 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7313 if test $ac_cv_header_stdc = yes; then
7314
7315 cat >>confdefs.h <<\_ACEOF
7316 #define STDC_HEADERS 1
7317 _ACEOF
7318
7319 fi
7320
7321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7332                   inttypes.h stdint.h unistd.h
7333 do
7334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7338   echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340   cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h.  */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h.  */
7346 $ac_includes_default
7347
7348 #include <$ac_header>
7349 _ACEOF
7350 rm -f conftest.$ac_objext
7351 if { (ac_try="$ac_compile"
7352 case "(($ac_try" in
7353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354   *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357   (eval "$ac_compile") 2>conftest.er1
7358   ac_status=$?
7359   grep -v '^ *+' conftest.er1 >conftest.err
7360   rm -f conftest.er1
7361   cat conftest.err >&5
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); } && {
7364          test -z "$ac_c_werror_flag" ||
7365          test ! -s conftest.err
7366        } && test -s conftest.$ac_objext; then
7367   eval "$as_ac_Header=yes"
7368 else
7369   echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372         eval "$as_ac_Header=no"
7373 fi
7374
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 fi
7377 ac_res=`eval echo '${'$as_ac_Header'}'`
7378                { echo "$as_me:$LINENO: result: $ac_res" >&5
7379 echo "${ECHO_T}$ac_res" >&6; }
7380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7381   cat >>confdefs.h <<_ACEOF
7382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7383 _ACEOF
7384
7385 fi
7386
7387 done
7388
7389
7390
7391 for ac_header in dlfcn.h
7392 do
7393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7395   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7398   echo $ECHO_N "(cached) $ECHO_C" >&6
7399 fi
7400 ac_res=`eval echo '${'$as_ac_Header'}'`
7401                { echo "$as_me:$LINENO: result: $ac_res" >&5
7402 echo "${ECHO_T}$ac_res" >&6; }
7403 else
7404   # Is the header compilable?
7405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h.  */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h.  */
7413 $ac_includes_default
7414 #include <$ac_header>
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (ac_try="$ac_compile"
7418 case "(($ac_try" in
7419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420   *) ac_try_echo=$ac_try;;
7421 esac
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423   (eval "$ac_compile") 2>conftest.er1
7424   ac_status=$?
7425   grep -v '^ *+' conftest.er1 >conftest.err
7426   rm -f conftest.er1
7427   cat conftest.err >&5
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); } && {
7430          test -z "$ac_c_werror_flag" ||
7431          test ! -s conftest.err
7432        } && test -s conftest.$ac_objext; then
7433   ac_header_compiler=yes
7434 else
7435   echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7437
7438         ac_header_compiler=no
7439 fi
7440
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7443 echo "${ECHO_T}$ac_header_compiler" >&6; }
7444
7445 # Is the header present?
7446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7448 cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h.  */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h.  */
7454 #include <$ac_header>
7455 _ACEOF
7456 if { (ac_try="$ac_cpp conftest.$ac_ext"
7457 case "(($ac_try" in
7458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459   *) ac_try_echo=$ac_try;;
7460 esac
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7463   ac_status=$?
7464   grep -v '^ *+' conftest.er1 >conftest.err
7465   rm -f conftest.er1
7466   cat conftest.err >&5
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); } >/dev/null && {
7469          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7470          test ! -s conftest.err
7471        }; then
7472   ac_header_preproc=yes
7473 else
7474   echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477   ac_header_preproc=no
7478 fi
7479
7480 rm -f conftest.err conftest.$ac_ext
7481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7482 echo "${ECHO_T}$ac_header_preproc" >&6; }
7483
7484 # So?  What about this header?
7485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7486   yes:no: )
7487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7491     ac_header_preproc=yes
7492     ;;
7493   no:yes:* )
7494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7506     ( cat <<\_ASBOX
7507 ## --------------------------------------------- ##
7508 ## Report this to <http://www.openldap.org/its/> ##
7509 ## --------------------------------------------- ##
7510 _ASBOX
7511      ) | sed "s/^/$as_me: WARNING:     /" >&2
7512     ;;
7513 esac
7514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   eval "$as_ac_Header=\$ac_header_preproc"
7520 fi
7521 ac_res=`eval echo '${'$as_ac_Header'}'`
7522                { echo "$as_me:$LINENO: result: $ac_res" >&5
7523 echo "${ECHO_T}$ac_res" >&6; }
7524
7525 fi
7526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7527   cat >>confdefs.h <<_ACEOF
7528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7529 _ACEOF
7530
7531 fi
7532
7533 done
7534
7535
7536 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7537
7538 # find the maximum length of command line arguments
7539 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7540 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7541 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544     i=0
7545   teststring="ABCD"
7546
7547   case $build_os in
7548   msdosdjgpp*)
7549     # On DJGPP, this test can blow up pretty badly due to problems in libc
7550     # (any single argument exceeding 2000 bytes causes a buffer overrun
7551     # during glob expansion).  Even if it were fixed, the result of this
7552     # check would be larger than it should be.
7553     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7554     ;;
7555
7556   gnu*)
7557     # Under GNU Hurd, this test is not required because there is
7558     # no limit to the length of command line arguments.
7559     # Libtool will interpret -1 as no limit whatsoever
7560     lt_cv_sys_max_cmd_len=-1;
7561     ;;
7562
7563   cygwin* | mingw*)
7564     # On Win9x/ME, this test blows up -- it succeeds, but takes
7565     # about 5 minutes as the teststring grows exponentially.
7566     # Worse, since 9x/ME are not pre-emptively multitasking,
7567     # you end up with a "frozen" computer, even though with patience
7568     # the test eventually succeeds (with a max line length of 256k).
7569     # Instead, let's just punt: use the minimum linelength reported by
7570     # all of the supported platforms: 8192 (on NT/2K/XP).
7571     lt_cv_sys_max_cmd_len=8192;
7572     ;;
7573
7574   amigaos*)
7575     # On AmigaOS with pdksh, this test takes hours, literally.
7576     # So we just punt and use a minimum line length of 8192.
7577     lt_cv_sys_max_cmd_len=8192;
7578     ;;
7579
7580   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7581     # This has been around since 386BSD, at least.  Likely further.
7582     if test -x /sbin/sysctl; then
7583       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7584     elif test -x /usr/sbin/sysctl; then
7585       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7586     else
7587       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7588     fi
7589     # And add a safety zone
7590     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7591     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7592     ;;
7593   osf*)
7594     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7595     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7596     # nice to cause kernel panics so lets avoid the loop below.
7597     # First set a reasonable default.
7598     lt_cv_sys_max_cmd_len=16384
7599     #
7600     if test -x /sbin/sysconfig; then
7601       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7602         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7603       esac
7604     fi
7605     ;;
7606   *)
7607     # If test is not a shell built-in, we'll probably end up computing a
7608     # maximum length that is only half of the actual maximum length, but
7609     # we can't tell.
7610     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7611     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7612                = "XX$teststring") >/dev/null 2>&1 &&
7613             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7614             lt_cv_sys_max_cmd_len=$new_result &&
7615             test $i != 17 # 1/2 MB should be enough
7616     do
7617       i=`expr $i + 1`
7618       teststring=$teststring$teststring
7619     done
7620     teststring=
7621     # Add a significant safety factor because C++ compilers can tack on massive
7622     # amounts of additional arguments before passing them to the linker.
7623     # It appears as though 1/2 is a usable value.
7624     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7625     ;;
7626   esac
7627
7628 fi
7629
7630 if test -n $lt_cv_sys_max_cmd_len ; then
7631   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7632 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7633 else
7634   { echo "$as_me:$LINENO: result: none" >&5
7635 echo "${ECHO_T}none" >&6; }
7636 fi
7637
7638
7639
7640
7641 # Check for command to grab the raw symbol name followed by C symbol from nm.
7642 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7643 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7644 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7645   echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647
7648 # These are sane defaults that work on at least a few old systems.
7649 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7650
7651 # Character class describing NM global symbol codes.
7652 symcode='[BCDEGRST]'
7653
7654 # Regexp to match symbols that can be accessed directly from C.
7655 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7656
7657 # Transform an extracted symbol line into a proper C declaration
7658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7659
7660 # Transform an extracted symbol line into symbol name and symbol address
7661 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7662
7663 # Define system-specific variables.
7664 case $host_os in
7665 aix*)
7666   symcode='[BCDT]'
7667   ;;
7668 cygwin* | mingw* | pw32*)
7669   symcode='[ABCDGISTW]'
7670   ;;
7671 hpux*) # Its linker distinguishes data from code symbols
7672   if test "$host_cpu" = ia64; then
7673     symcode='[ABCDEGRST]'
7674   fi
7675   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7676   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7677   ;;
7678 linux*)
7679   if test "$host_cpu" = ia64; then
7680     symcode='[ABCDGIRSTW]'
7681     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7682     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7683   fi
7684   ;;
7685 irix* | nonstopux*)
7686   symcode='[BCDEGRST]'
7687   ;;
7688 osf*)
7689   symcode='[BCDEGQRST]'
7690   ;;
7691 solaris* | sysv5*)
7692   symcode='[BDRT]'
7693   ;;
7694 sysv4)
7695   symcode='[DFNSTU]'
7696   ;;
7697 esac
7698
7699 # Handle CRLF in mingw tool chain
7700 opt_cr=
7701 case $build_os in
7702 mingw*)
7703   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7704   ;;
7705 esac
7706
7707 # If we're using GNU nm, then use its standard symbol codes.
7708 case `$NM -V 2>&1` in
7709 *GNU* | *'with BFD'*)
7710   symcode='[ABCDGIRSTW]' ;;
7711 esac
7712
7713 # Try without a prefix undercore, then with it.
7714 for ac_symprfx in "" "_"; do
7715
7716   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7717   symxfrm="\\1 $ac_symprfx\\2 \\2"
7718
7719   # Write the raw and C identifiers.
7720   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7721
7722   # Check to see that the pipe works correctly.
7723   pipe_works=no
7724
7725   rm -f conftest*
7726   cat > conftest.$ac_ext <<EOF
7727 #ifdef __cplusplus
7728 extern "C" {
7729 #endif
7730 char nm_test_var;
7731 void nm_test_func(){}
7732 #ifdef __cplusplus
7733 }
7734 #endif
7735 int main(){nm_test_var='a';nm_test_func();return(0);}
7736 EOF
7737
7738   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7739   (eval $ac_compile) 2>&5
7740   ac_status=$?
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); }; then
7743     # Now try to grab the symbols.
7744     nlist=conftest.nm
7745     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7746   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } && test -s "$nlist"; then
7750       # Try sorting and uniquifying the output.
7751       if sort "$nlist" | uniq > "$nlist"T; then
7752         mv -f "$nlist"T "$nlist"
7753       else
7754         rm -f "$nlist"T
7755       fi
7756
7757       # Make sure that we snagged all the symbols we need.
7758       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7759         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7760           cat <<EOF > conftest.$ac_ext
7761 #ifdef __cplusplus
7762 extern "C" {
7763 #endif
7764
7765 EOF
7766           # Now generate the symbol file.
7767           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7768
7769           cat <<EOF >> conftest.$ac_ext
7770 #if defined (__STDC__) && __STDC__
7771 # define lt_ptr_t void *
7772 #else
7773 # define lt_ptr_t char *
7774 # define const
7775 #endif
7776
7777 /* The mapping between symbol names and symbols. */
7778 const struct {
7779   const char *name;
7780   lt_ptr_t address;
7781 }
7782 lt_preloaded_symbols[] =
7783 {
7784 EOF
7785           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7786           cat <<\EOF >> conftest.$ac_ext
7787   {0, (lt_ptr_t) 0}
7788 };
7789
7790 #ifdef __cplusplus
7791 }
7792 #endif
7793 EOF
7794           # Now try linking the two files.
7795           mv conftest.$ac_objext conftstm.$ac_objext
7796           lt_save_LIBS="$LIBS"
7797           lt_save_CFLAGS="$CFLAGS"
7798           LIBS="conftstm.$ac_objext"
7799           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7800           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7801   (eval $ac_link) 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7805             pipe_works=yes
7806           fi
7807           LIBS="$lt_save_LIBS"
7808           CFLAGS="$lt_save_CFLAGS"
7809         else
7810           echo "cannot find nm_test_func in $nlist" >&5
7811         fi
7812       else
7813         echo "cannot find nm_test_var in $nlist" >&5
7814       fi
7815     else
7816       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7817     fi
7818   else
7819     echo "$progname: failed program was:" >&5
7820     cat conftest.$ac_ext >&5
7821   fi
7822   rm -f conftest* conftst*
7823
7824   # Do not use the global_symbol_pipe unless it works.
7825   if test "$pipe_works" = yes; then
7826     break
7827   else
7828     lt_cv_sys_global_symbol_pipe=
7829   fi
7830 done
7831
7832 fi
7833
7834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7835   lt_cv_sys_global_symbol_to_cdecl=
7836 fi
7837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7838   { echo "$as_me:$LINENO: result: failed" >&5
7839 echo "${ECHO_T}failed" >&6; }
7840 else
7841   { echo "$as_me:$LINENO: result: ok" >&5
7842 echo "${ECHO_T}ok" >&6; }
7843 fi
7844
7845 { echo "$as_me:$LINENO: checking for objdir" >&5
7846 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7847 if test "${lt_cv_objdir+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   rm -f .libs 2>/dev/null
7851 mkdir .libs 2>/dev/null
7852 if test -d .libs; then
7853   lt_cv_objdir=.libs
7854 else
7855   # MS-DOS does not allow filenames that begin with a dot.
7856   lt_cv_objdir=_libs
7857 fi
7858 rmdir .libs 2>/dev/null
7859 fi
7860 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7861 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7862 objdir=$lt_cv_objdir
7863
7864
7865
7866
7867
7868 case $host_os in
7869 aix3*)
7870   # AIX sometimes has problems with the GCC collect2 program.  For some
7871   # reason, if we set the COLLECT_NAMES environment variable, the problems
7872   # vanish in a puff of smoke.
7873   if test "X${COLLECT_NAMES+set}" != Xset; then
7874     COLLECT_NAMES=
7875     export COLLECT_NAMES
7876   fi
7877   ;;
7878 esac
7879
7880 # Sed substitution that helps us do robust quoting.  It backslashifies
7881 # metacharacters that are still active within double-quoted strings.
7882 Xsed='sed -e 1s/^X//'
7883 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7884
7885 # Same as above, but do not quote variable references.
7886 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7887
7888 # Sed substitution to delay expansion of an escaped shell variable in a
7889 # double_quote_subst'ed string.
7890 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7891
7892 # Sed substitution to avoid accidental globbing in evaled expressions
7893 no_glob_subst='s/\*/\\\*/g'
7894
7895 # Constants:
7896 rm="rm -f"
7897
7898 # Global variables:
7899 default_ofile=libtool
7900 can_build_shared=yes
7901
7902 # All known linkers require a `.a' archive for static linking (except MSVC,
7903 # which needs '.lib').
7904 libext=a
7905 ltmain="$ac_aux_dir/ltmain.sh"
7906 ofile="$default_ofile"
7907 with_gnu_ld="$lt_cv_prog_gnu_ld"
7908
7909 if test -n "$ac_tool_prefix"; then
7910   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}ar; ac_word=$2
7912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914 if test "${ac_cv_prog_AR+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   if test -n "$AR"; then
7918   ac_cv_prog_AR="$AR" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925   for ac_exec_ext in '' $ac_executable_extensions; do
7926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927     ac_cv_prog_AR="${ac_tool_prefix}ar"
7928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929     break 2
7930   fi
7931 done
7932 done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 AR=$ac_cv_prog_AR
7938 if test -n "$AR"; then
7939   { echo "$as_me:$LINENO: result: $AR" >&5
7940 echo "${ECHO_T}$AR" >&6; }
7941 else
7942   { echo "$as_me:$LINENO: result: no" >&5
7943 echo "${ECHO_T}no" >&6; }
7944 fi
7945
7946
7947 fi
7948 if test -z "$ac_cv_prog_AR"; then
7949   ac_ct_AR=$AR
7950   # Extract the first word of "ar", so it can be a program name with args.
7951 set dummy ar; ac_word=$2
7952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   if test -n "$ac_ct_AR"; then
7958   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963   IFS=$as_save_IFS
7964   test -z "$as_dir" && as_dir=.
7965   for ac_exec_ext in '' $ac_executable_extensions; do
7966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967     ac_cv_prog_ac_ct_AR="ar"
7968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969     break 2
7970   fi
7971 done
7972 done
7973 IFS=$as_save_IFS
7974
7975 fi
7976 fi
7977 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7978 if test -n "$ac_ct_AR"; then
7979   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7980 echo "${ECHO_T}$ac_ct_AR" >&6; }
7981 else
7982   { echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6; }
7984 fi
7985
7986   if test "x$ac_ct_AR" = x; then
7987     AR="false"
7988   else
7989     case $cross_compiling:$ac_tool_warned in
7990 yes:)
7991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7992 whose name does not start with the host triplet.  If you think this
7993 configuration is useful to you, please write to autoconf@gnu.org." >&5
7994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7995 whose name does not start with the host triplet.  If you think this
7996 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7997 ac_tool_warned=yes ;;
7998 esac
7999     AR=$ac_ct_AR
8000   fi
8001 else
8002   AR="$ac_cv_prog_AR"
8003 fi
8004
8005 if test -n "$ac_tool_prefix"; then
8006   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8007 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010 if test "${ac_cv_prog_RANLIB+set}" = set; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013   if test -n "$RANLIB"; then
8014   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8018 do
8019   IFS=$as_save_IFS
8020   test -z "$as_dir" && as_dir=.
8021   for ac_exec_ext in '' $ac_executable_extensions; do
8022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025     break 2
8026   fi
8027 done
8028 done
8029 IFS=$as_save_IFS
8030
8031 fi
8032 fi
8033 RANLIB=$ac_cv_prog_RANLIB
8034 if test -n "$RANLIB"; then
8035   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8036 echo "${ECHO_T}$RANLIB" >&6; }
8037 else
8038   { echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6; }
8040 fi
8041
8042
8043 fi
8044 if test -z "$ac_cv_prog_RANLIB"; then
8045   ac_ct_RANLIB=$RANLIB
8046   # Extract the first word of "ranlib", so it can be a program name with args.
8047 set dummy ranlib; ac_word=$2
8048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8051   echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053   if test -n "$ac_ct_RANLIB"; then
8054   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8058 do
8059   IFS=$as_save_IFS
8060   test -z "$as_dir" && as_dir=.
8061   for ac_exec_ext in '' $ac_executable_extensions; do
8062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063     ac_cv_prog_ac_ct_RANLIB="ranlib"
8064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065     break 2
8066   fi
8067 done
8068 done
8069 IFS=$as_save_IFS
8070
8071 fi
8072 fi
8073 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8074 if test -n "$ac_ct_RANLIB"; then
8075   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8076 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8077 else
8078   { echo "$as_me:$LINENO: result: no" >&5
8079 echo "${ECHO_T}no" >&6; }
8080 fi
8081
8082   if test "x$ac_ct_RANLIB" = x; then
8083     RANLIB=":"
8084   else
8085     case $cross_compiling:$ac_tool_warned in
8086 yes:)
8087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8088 whose name does not start with the host triplet.  If you think this
8089 configuration is useful to you, please write to autoconf@gnu.org." >&5
8090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8091 whose name does not start with the host triplet.  If you think this
8092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8093 ac_tool_warned=yes ;;
8094 esac
8095     RANLIB=$ac_ct_RANLIB
8096   fi
8097 else
8098   RANLIB="$ac_cv_prog_RANLIB"
8099 fi
8100
8101 if test -n "$ac_tool_prefix"; then
8102   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8103 set dummy ${ac_tool_prefix}strip; ac_word=$2
8104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8106 if test "${ac_cv_prog_STRIP+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   if test -n "$STRIP"; then
8110   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8111 else
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8114 do
8115   IFS=$as_save_IFS
8116   test -z "$as_dir" && as_dir=.
8117   for ac_exec_ext in '' $ac_executable_extensions; do
8118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8119     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8121     break 2
8122   fi
8123 done
8124 done
8125 IFS=$as_save_IFS
8126
8127 fi
8128 fi
8129 STRIP=$ac_cv_prog_STRIP
8130 if test -n "$STRIP"; then
8131   { echo "$as_me:$LINENO: result: $STRIP" >&5
8132 echo "${ECHO_T}$STRIP" >&6; }
8133 else
8134   { echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6; }
8136 fi
8137
8138
8139 fi
8140 if test -z "$ac_cv_prog_STRIP"; then
8141   ac_ct_STRIP=$STRIP
8142   # Extract the first word of "strip", so it can be a program name with args.
8143 set dummy strip; ac_word=$2
8144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8146 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8147   echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149   if test -n "$ac_ct_STRIP"; then
8150   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8151 else
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8154 do
8155   IFS=$as_save_IFS
8156   test -z "$as_dir" && as_dir=.
8157   for ac_exec_ext in '' $ac_executable_extensions; do
8158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159     ac_cv_prog_ac_ct_STRIP="strip"
8160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8161     break 2
8162   fi
8163 done
8164 done
8165 IFS=$as_save_IFS
8166
8167 fi
8168 fi
8169 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8170 if test -n "$ac_ct_STRIP"; then
8171   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8172 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8173 else
8174   { echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6; }
8176 fi
8177
8178   if test "x$ac_ct_STRIP" = x; then
8179     STRIP=":"
8180   else
8181     case $cross_compiling:$ac_tool_warned in
8182 yes:)
8183 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8184 whose name does not start with the host triplet.  If you think this
8185 configuration is useful to you, please write to autoconf@gnu.org." >&5
8186 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8187 whose name does not start with the host triplet.  If you think this
8188 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8189 ac_tool_warned=yes ;;
8190 esac
8191     STRIP=$ac_ct_STRIP
8192   fi
8193 else
8194   STRIP="$ac_cv_prog_STRIP"
8195 fi
8196
8197
8198 old_CC="$CC"
8199 old_CFLAGS="$CFLAGS"
8200
8201 # Set sane defaults for various variables
8202 test -z "$AR" && AR=ar
8203 test -z "$AR_FLAGS" && AR_FLAGS=cru
8204 test -z "$AS" && AS=as
8205 test -z "$CC" && CC=cc
8206 test -z "$LTCC" && LTCC=$CC
8207 test -z "$DLLTOOL" && DLLTOOL=dlltool
8208 test -z "$LD" && LD=ld
8209 test -z "$LN_S" && LN_S="ln -s"
8210 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8211 test -z "$NM" && NM=nm
8212 test -z "$SED" && SED=sed
8213 test -z "$OBJDUMP" && OBJDUMP=objdump
8214 test -z "$RANLIB" && RANLIB=:
8215 test -z "$STRIP" && STRIP=:
8216 test -z "$ac_objext" && ac_objext=o
8217
8218 # Determine commands to create old-style static archives.
8219 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8220 old_postinstall_cmds='chmod 644 $oldlib'
8221 old_postuninstall_cmds=
8222
8223 if test -n "$RANLIB"; then
8224   case $host_os in
8225   openbsd*)
8226     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8227     ;;
8228   *)
8229     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8230     ;;
8231   esac
8232   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8233 fi
8234
8235 for cc_temp in $compiler""; do
8236   case $cc_temp in
8237     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8238     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8239     \-*) ;;
8240     *) break;;
8241   esac
8242 done
8243 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8244
8245
8246 # Only perform the check for file, if the check method requires it
8247 case $deplibs_check_method in
8248 file_magic*)
8249   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8250     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8251 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8252 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8253   echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255   case $MAGIC_CMD in
8256 [\\/*] |  ?:[\\/]*)
8257   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8258   ;;
8259 *)
8260   lt_save_MAGIC_CMD="$MAGIC_CMD"
8261   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8262   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8263   for ac_dir in $ac_dummy; do
8264     IFS="$lt_save_ifs"
8265     test -z "$ac_dir" && ac_dir=.
8266     if test -f $ac_dir/${ac_tool_prefix}file; then
8267       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8268       if test -n "$file_magic_test_file"; then
8269         case $deplibs_check_method in
8270         "file_magic "*)
8271           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8272           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8273           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8274             $EGREP "$file_magic_regex" > /dev/null; then
8275             :
8276           else
8277             cat <<EOF 1>&2
8278
8279 *** Warning: the command libtool uses to detect shared libraries,
8280 *** $file_magic_cmd, produces output that libtool cannot recognize.
8281 *** The result is that libtool may fail to recognize shared libraries
8282 *** as such.  This will affect the creation of libtool libraries that
8283 *** depend on shared libraries, but programs linked with such libtool
8284 *** libraries will work regardless of this problem.  Nevertheless, you
8285 *** may want to report the problem to your system manager and/or to
8286 *** bug-libtool@gnu.org
8287
8288 EOF
8289           fi ;;
8290         esac
8291       fi
8292       break
8293     fi
8294   done
8295   IFS="$lt_save_ifs"
8296   MAGIC_CMD="$lt_save_MAGIC_CMD"
8297   ;;
8298 esac
8299 fi
8300
8301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8302 if test -n "$MAGIC_CMD"; then
8303   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8304 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8305 else
8306   { echo "$as_me:$LINENO: result: no" >&5
8307 echo "${ECHO_T}no" >&6; }
8308 fi
8309
8310 if test -z "$lt_cv_path_MAGIC_CMD"; then
8311   if test -n "$ac_tool_prefix"; then
8312     { echo "$as_me:$LINENO: checking for file" >&5
8313 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8314 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8315   echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317   case $MAGIC_CMD in
8318 [\\/*] |  ?:[\\/]*)
8319   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8320   ;;
8321 *)
8322   lt_save_MAGIC_CMD="$MAGIC_CMD"
8323   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8324   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8325   for ac_dir in $ac_dummy; do
8326     IFS="$lt_save_ifs"
8327     test -z "$ac_dir" && ac_dir=.
8328     if test -f $ac_dir/file; then
8329       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8330       if test -n "$file_magic_test_file"; then
8331         case $deplibs_check_method in
8332         "file_magic "*)
8333           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8334           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8335           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8336             $EGREP "$file_magic_regex" > /dev/null; then
8337             :
8338           else
8339             cat <<EOF 1>&2
8340
8341 *** Warning: the command libtool uses to detect shared libraries,
8342 *** $file_magic_cmd, produces output that libtool cannot recognize.
8343 *** The result is that libtool may fail to recognize shared libraries
8344 *** as such.  This will affect the creation of libtool libraries that
8345 *** depend on shared libraries, but programs linked with such libtool
8346 *** libraries will work regardless of this problem.  Nevertheless, you
8347 *** may want to report the problem to your system manager and/or to
8348 *** bug-libtool@gnu.org
8349
8350 EOF
8351           fi ;;
8352         esac
8353       fi
8354       break
8355     fi
8356   done
8357   IFS="$lt_save_ifs"
8358   MAGIC_CMD="$lt_save_MAGIC_CMD"
8359   ;;
8360 esac
8361 fi
8362
8363 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8364 if test -n "$MAGIC_CMD"; then
8365   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8366 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8367 else
8368   { echo "$as_me:$LINENO: result: no" >&5
8369 echo "${ECHO_T}no" >&6; }
8370 fi
8371
8372   else
8373     MAGIC_CMD=:
8374   fi
8375 fi
8376
8377   fi
8378   ;;
8379 esac
8380
8381 enable_dlopen=yes
8382 enable_win32_dll=yes
8383
8384 # Check whether --enable-libtool-lock was given.
8385 if test "${enable_libtool_lock+set}" = set; then
8386   enableval=$enable_libtool_lock;
8387 fi
8388
8389 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8390
8391
8392 # Check whether --with-pic was given.
8393 if test "${with_pic+set}" = set; then
8394   withval=$with_pic; pic_mode="$withval"
8395 else
8396   pic_mode=default
8397 fi
8398
8399 test -z "$pic_mode" && pic_mode=default
8400
8401 # Use C for the default configuration in the libtool script
8402 tagname=
8403 lt_save_CC="$CC"
8404 ac_ext=c
8405 ac_cpp='$CPP $CPPFLAGS'
8406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409
8410
8411 # Source file extension for C test sources.
8412 ac_ext=c
8413
8414 # Object file extension for compiled C test sources.
8415 objext=o
8416 objext=$objext
8417
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code="int some_variable = 0;\n"
8420
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code='int main(){return(0);}\n'
8423
8424
8425 # If no C compiler was specified, use CC.
8426 LTCC=${LTCC-"$CC"}
8427
8428 # Allow CC to be a program name with arguments.
8429 compiler=$CC
8430
8431
8432 # save warnings/boilerplate of simple test code
8433 ac_outfile=conftest.$ac_objext
8434 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8435 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8436 _lt_compiler_boilerplate=`cat conftest.err`
8437 $rm conftest*
8438
8439 ac_outfile=conftest.$ac_objext
8440 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8441 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8442 _lt_linker_boilerplate=`cat conftest.err`
8443 $rm conftest*
8444
8445
8446 #
8447 # Check for any special shared library compilation flags.
8448 #
8449 lt_prog_cc_shlib=
8450 if test "$GCC" = no; then
8451   case $host_os in
8452   sco3.2v5*)
8453     lt_prog_cc_shlib='-belf'
8454     ;;
8455   esac
8456 fi
8457 if test -n "$lt_prog_cc_shlib"; then
8458   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8459 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8460   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8461   else
8462     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8463 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8464     lt_cv_prog_cc_can_build_shared=no
8465   fi
8466 fi
8467
8468
8469 #
8470 # Check to make sure the static flag actually works.
8471 #
8472 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8473 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8474 if test "${lt_prog_compiler_static_works+set}" = set; then
8475   echo $ECHO_N "(cached) $ECHO_C" >&6
8476 else
8477   lt_prog_compiler_static_works=no
8478    save_LDFLAGS="$LDFLAGS"
8479    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8480    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8481    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8482      # The linker can only warn and ignore the option if not recognized
8483      # So say no if there are warnings
8484      if test -s conftest.err; then
8485        # Append any errors to the config.log.
8486        cat conftest.err 1>&5
8487        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8488        $SED '/^$/d' conftest.err >conftest.er2
8489        if diff conftest.exp conftest.er2 >/dev/null; then
8490          lt_prog_compiler_static_works=yes
8491        fi
8492      else
8493        lt_prog_compiler_static_works=yes
8494      fi
8495    fi
8496    $rm conftest*
8497    LDFLAGS="$save_LDFLAGS"
8498
8499 fi
8500 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8501 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8502
8503 if test x"$lt_prog_compiler_static_works" = xyes; then
8504     :
8505 else
8506     lt_prog_compiler_static=
8507 fi
8508
8509
8510
8511
8512 lt_prog_compiler_no_builtin_flag=
8513
8514 if test "$GCC" = yes; then
8515   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8516
8517
8518 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8519 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8520 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   lt_cv_prog_compiler_rtti_exceptions=no
8524   ac_outfile=conftest.$ac_objext
8525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8526    lt_compiler_flag="-fno-rtti -fno-exceptions"
8527    # Insert the option either (1) after the last *FLAGS variable, or
8528    # (2) before a word containing "conftest.", or (3) at the end.
8529    # Note that $ac_compile itself does not contain backslashes and begins
8530    # with a dollar sign (not a hyphen), so the echo should work correctly.
8531    # The option is referenced via a variable to avoid confusing sed.
8532    lt_compile=`echo "$ac_compile" | $SED \
8533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8535    -e 's:$: $lt_compiler_flag:'`
8536    (eval echo "\"\$as_me:8536: $lt_compile\"" >&5)
8537    (eval "$lt_compile" 2>conftest.err)
8538    ac_status=$?
8539    cat conftest.err >&5
8540    echo "$as_me:8540: \$? = $ac_status" >&5
8541    if (exit $ac_status) && test -s "$ac_outfile"; then
8542      # The compiler can only warn and ignore the option if not recognized
8543      # So say no if there are warnings other than the usual output.
8544      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8545      $SED '/^$/d' conftest.err >conftest.er2
8546      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8547        lt_cv_prog_compiler_rtti_exceptions=yes
8548      fi
8549    fi
8550    $rm conftest*
8551
8552 fi
8553 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8554 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8555
8556 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8557     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8558 else
8559     :
8560 fi
8561
8562 fi
8563
8564 lt_prog_compiler_wl=
8565 lt_prog_compiler_pic=
8566 lt_prog_compiler_static=
8567
8568 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8569 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8570
8571   if test "$GCC" = yes; then
8572     lt_prog_compiler_wl='-Wl,'
8573     lt_prog_compiler_static='-static'
8574
8575     case $host_os in
8576       aix*)
8577       # All AIX code is PIC.
8578       if test "$host_cpu" = ia64; then
8579         # AIX 5 now supports IA64 processor
8580         lt_prog_compiler_static='-Bstatic'
8581       fi
8582       ;;
8583
8584     amigaos*)
8585       # FIXME: we need at least 68020 code to build shared libraries, but
8586       # adding the `-m68020' flag to GCC prevents building anything better,
8587       # like `-m68040'.
8588       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8589       ;;
8590
8591     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8592       # PIC is the default for these OSes.
8593       ;;
8594
8595     mingw* | pw32* | os2*)
8596       # This hack is so that the source file can tell whether it is being
8597       # built for inclusion in a dll (and should export symbols for example).
8598       lt_prog_compiler_pic='-DDLL_EXPORT'
8599       ;;
8600
8601     darwin* | rhapsody*)
8602       # PIC is the default on this platform
8603       # Common symbols not allowed in MH_DYLIB files
8604       lt_prog_compiler_pic='-fno-common'
8605       ;;
8606
8607     msdosdjgpp*)
8608       # Just because we use GCC doesn't mean we suddenly get shared libraries
8609       # on systems that don't support them.
8610       lt_prog_compiler_can_build_shared=no
8611       enable_shared=no
8612       ;;
8613
8614     sysv4*MP*)
8615       if test -d /usr/nec; then
8616         lt_prog_compiler_pic=-Kconform_pic
8617       fi
8618       ;;
8619
8620     hpux*)
8621       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8622       # not for PA HP-UX.
8623       case $host_cpu in
8624       hppa*64*|ia64*)
8625         # +Z the default
8626         ;;
8627       *)
8628         lt_prog_compiler_pic='-fPIC'
8629         ;;
8630       esac
8631       ;;
8632
8633     *)
8634       lt_prog_compiler_pic='-fPIC'
8635       ;;
8636     esac
8637   else
8638     # PORTME Check for flag to pass linker flags through the system compiler.
8639     case $host_os in
8640     aix*)
8641       lt_prog_compiler_wl='-Wl,'
8642       if test "$host_cpu" = ia64; then
8643         # AIX 5 now supports IA64 processor
8644         lt_prog_compiler_static='-Bstatic'
8645       else
8646         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8647       fi
8648       ;;
8649       darwin*)
8650         # PIC is the default on this platform
8651         # Common symbols not allowed in MH_DYLIB files
8652        case $cc_basename in
8653          xlc*)
8654          lt_prog_compiler_pic='-qnocommon'
8655          lt_prog_compiler_wl='-Wl,'
8656          ;;
8657        esac
8658        ;;
8659
8660     mingw* | pw32* | os2*)
8661       # This hack is so that the source file can tell whether it is being
8662       # built for inclusion in a dll (and should export symbols for example).
8663       lt_prog_compiler_pic='-DDLL_EXPORT'
8664       ;;
8665
8666     hpux9* | hpux10* | hpux11*)
8667       lt_prog_compiler_wl='-Wl,'
8668       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8669       # not for PA HP-UX.
8670       case $host_cpu in
8671       hppa*64*|ia64*)
8672         # +Z the default
8673         ;;
8674       *)
8675         lt_prog_compiler_pic='+Z'
8676         ;;
8677       esac
8678       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8679       lt_prog_compiler_static='${wl}-a ${wl}archive'
8680       ;;
8681
8682     irix5* | irix6* | nonstopux*)
8683       lt_prog_compiler_wl='-Wl,'
8684       # PIC (with -KPIC) is the default.
8685       lt_prog_compiler_static='-non_shared'
8686       ;;
8687
8688     newsos6)
8689       lt_prog_compiler_pic='-KPIC'
8690       lt_prog_compiler_static='-Bstatic'
8691       ;;
8692
8693     linux*)
8694       case $cc_basename in
8695       icc* | ecc*)
8696         lt_prog_compiler_wl='-Wl,'
8697         lt_prog_compiler_pic='-KPIC'
8698         lt_prog_compiler_static='-static'
8699         ;;
8700       pgcc* | pgf77* | pgf90* | pgf95*)
8701         # Portland Group compilers (*not* the Pentium gcc compiler,
8702         # which looks to be a dead project)
8703         lt_prog_compiler_wl='-Wl,'
8704         lt_prog_compiler_pic='-fpic'
8705         lt_prog_compiler_static='-Bstatic'
8706         ;;
8707       ccc*)
8708         lt_prog_compiler_wl='-Wl,'
8709         # All Alpha code is PIC.
8710         lt_prog_compiler_static='-non_shared'
8711         ;;
8712       esac
8713       ;;
8714
8715     osf3* | osf4* | osf5*)
8716       lt_prog_compiler_wl='-Wl,'
8717       # All OSF/1 code is PIC.
8718       lt_prog_compiler_static='-non_shared'
8719       ;;
8720
8721     sco3.2v5*)
8722       lt_prog_compiler_pic='-Kpic'
8723       lt_prog_compiler_static='-dn'
8724       ;;
8725
8726     solaris*)
8727       lt_prog_compiler_pic='-KPIC'
8728       lt_prog_compiler_static='-Bstatic'
8729       case $cc_basename in
8730       f77* | f90* | f95*)
8731         lt_prog_compiler_wl='-Qoption ld ';;
8732       *)
8733         lt_prog_compiler_wl='-Wl,';;
8734       esac
8735       ;;
8736
8737     sunos4*)
8738       lt_prog_compiler_wl='-Qoption ld '
8739       lt_prog_compiler_pic='-PIC'
8740       lt_prog_compiler_static='-Bstatic'
8741       ;;
8742
8743     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8744       lt_prog_compiler_wl='-Wl,'
8745       lt_prog_compiler_pic='-KPIC'
8746       lt_prog_compiler_static='-Bstatic'
8747       ;;
8748
8749     sysv4*MP*)
8750       if test -d /usr/nec ;then
8751         lt_prog_compiler_pic='-Kconform_pic'
8752         lt_prog_compiler_static='-Bstatic'
8753       fi
8754       ;;
8755
8756     unicos*)
8757       lt_prog_compiler_wl='-Wl,'
8758       lt_prog_compiler_can_build_shared=no
8759       ;;
8760
8761     uts4*)
8762       lt_prog_compiler_pic='-pic'
8763       lt_prog_compiler_static='-Bstatic'
8764       ;;
8765
8766     *)
8767       lt_prog_compiler_can_build_shared=no
8768       ;;
8769     esac
8770   fi
8771
8772 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8773 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8774
8775 #
8776 # Check to make sure the PIC flag actually works.
8777 #
8778 if test -n "$lt_prog_compiler_pic"; then
8779
8780 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8782 if test "${lt_prog_compiler_pic_works+set}" = set; then
8783   echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785   lt_prog_compiler_pic_works=no
8786   ac_outfile=conftest.$ac_objext
8787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8788    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8789    # Insert the option either (1) after the last *FLAGS variable, or
8790    # (2) before a word containing "conftest.", or (3) at the end.
8791    # Note that $ac_compile itself does not contain backslashes and begins
8792    # with a dollar sign (not a hyphen), so the echo should work correctly.
8793    # The option is referenced via a variable to avoid confusing sed.
8794    lt_compile=`echo "$ac_compile" | $SED \
8795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797    -e 's:$: $lt_compiler_flag:'`
8798    (eval echo "\"\$as_me:8798: $lt_compile\"" >&5)
8799    (eval "$lt_compile" 2>conftest.err)
8800    ac_status=$?
8801    cat conftest.err >&5
8802    echo "$as_me:8802: \$? = $ac_status" >&5
8803    if (exit $ac_status) && test -s "$ac_outfile"; then
8804      # The compiler can only warn and ignore the option if not recognized
8805      # So say no if there are warnings other than the usual output.
8806      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8807      $SED '/^$/d' conftest.err >conftest.er2
8808      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8809        lt_prog_compiler_pic_works=yes
8810      fi
8811    fi
8812    $rm conftest*
8813
8814 fi
8815 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8816 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8817
8818 if test x"$lt_prog_compiler_pic_works" = xyes; then
8819     case $lt_prog_compiler_pic in
8820      "" | " "*) ;;
8821      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8822      esac
8823 else
8824     lt_prog_compiler_pic=
8825      lt_prog_compiler_can_build_shared=no
8826 fi
8827
8828 fi
8829 case $host_os in
8830   # For platforms which do not support PIC, -DPIC is meaningless:
8831   *djgpp*)
8832     lt_prog_compiler_pic=
8833     ;;
8834   *)
8835     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8836     ;;
8837 esac
8838
8839 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8840 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8841 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8842   echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844   lt_cv_prog_compiler_c_o=no
8845    $rm -r conftest 2>/dev/null
8846    mkdir conftest
8847    cd conftest
8848    mkdir out
8849    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8850
8851    lt_compiler_flag="-o out/conftest2.$ac_objext"
8852    # Insert the option either (1) after the last *FLAGS variable, or
8853    # (2) before a word containing "conftest.", or (3) at the end.
8854    # Note that $ac_compile itself does not contain backslashes and begins
8855    # with a dollar sign (not a hyphen), so the echo should work correctly.
8856    lt_compile=`echo "$ac_compile" | $SED \
8857    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859    -e 's:$: $lt_compiler_flag:'`
8860    (eval echo "\"\$as_me:8860: $lt_compile\"" >&5)
8861    (eval "$lt_compile" 2>out/conftest.err)
8862    ac_status=$?
8863    cat out/conftest.err >&5
8864    echo "$as_me:8864: \$? = $ac_status" >&5
8865    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8866    then
8867      # The compiler can only warn and ignore the option if not recognized
8868      # So say no if there are warnings
8869      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8870      $SED '/^$/d' out/conftest.err >out/conftest.er2
8871      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8872        lt_cv_prog_compiler_c_o=yes
8873      fi
8874    fi
8875    chmod u+w . 2>&5
8876    $rm conftest*
8877    # SGI C++ compiler will create directory out/ii_files/ for
8878    # template instantiation
8879    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8880    $rm out/* && rmdir out
8881    cd ..
8882    rmdir conftest
8883    $rm conftest*
8884
8885 fi
8886 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8888
8889
8890 hard_links="nottested"
8891 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8892   # do not overwrite the value of need_locks provided by the user
8893   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8895   hard_links=yes
8896   $rm conftest*
8897   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8898   touch conftest.a
8899   ln conftest.a conftest.b 2>&5 || hard_links=no
8900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901   { echo "$as_me:$LINENO: result: $hard_links" >&5
8902 echo "${ECHO_T}$hard_links" >&6; }
8903   if test "$hard_links" = no; then
8904     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8906     need_locks=warn
8907   fi
8908 else
8909   need_locks=no
8910 fi
8911
8912 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8914
8915   runpath_var=
8916   allow_undefined_flag=
8917   enable_shared_with_static_runtimes=no
8918   archive_cmds=
8919   archive_expsym_cmds=
8920   old_archive_From_new_cmds=
8921   old_archive_from_expsyms_cmds=
8922   export_dynamic_flag_spec=
8923   whole_archive_flag_spec=
8924   thread_safe_flag_spec=
8925   hardcode_libdir_flag_spec=
8926   hardcode_libdir_flag_spec_ld=
8927   hardcode_libdir_separator=
8928   hardcode_direct=no
8929   hardcode_minus_L=no
8930   hardcode_shlibpath_var=unsupported
8931   link_all_deplibs=unknown
8932   hardcode_automatic=no
8933   module_cmds=
8934   module_expsym_cmds=
8935   always_export_symbols=no
8936   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8937   # include_expsyms should be a list of space-separated symbols to be *always*
8938   # included in the symbol list
8939   include_expsyms=
8940   # exclude_expsyms can be an extended regexp of symbols to exclude
8941   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8942   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8943   # as well as any symbol that contains `d'.
8944   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8945   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8946   # platforms (ab)use it in PIC code, but their linkers get confused if
8947   # the symbol is explicitly referenced.  Since portable code cannot
8948   # rely on this symbol name, it's probably fine to never include it in
8949   # preloaded symbol tables.
8950   extract_expsyms_cmds=
8951   # Just being paranoid about ensuring that cc_basename is set.
8952   for cc_temp in $compiler""; do
8953   case $cc_temp in
8954     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8955     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8956     \-*) ;;
8957     *) break;;
8958   esac
8959 done
8960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8961
8962   case $host_os in
8963   cygwin* | mingw* | pw32*)
8964     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965     # When not using gcc, we currently assume that we are using
8966     # Microsoft Visual C++.
8967     if test "$GCC" != yes; then
8968       with_gnu_ld=no
8969     fi
8970     ;;
8971   openbsd*)
8972     with_gnu_ld=no
8973     ;;
8974   esac
8975
8976   ld_shlibs=yes
8977   if test "$with_gnu_ld" = yes; then
8978     # If archive_cmds runs LD, not CC, wlarc should be empty
8979     wlarc='${wl}'
8980
8981     # Set some defaults for GNU ld with shared library support. These
8982     # are reset later if shared libraries are not supported. Putting them
8983     # here allows them to be overridden if necessary.
8984     runpath_var=LD_RUN_PATH
8985     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8986     export_dynamic_flag_spec='${wl}--export-dynamic'
8987     # ancient GNU ld didn't support --whole-archive et. al.
8988     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8989         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8990       else
8991         whole_archive_flag_spec=
8992     fi
8993     supports_anon_versioning=no
8994     case `$LD -v 2>/dev/null` in
8995       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8996       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8997       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8998       *\ 2.11.*) ;; # other 2.11 versions
8999       *) supports_anon_versioning=yes ;;
9000     esac
9001
9002     # See if GNU ld supports shared libraries.
9003     case $host_os in
9004     aix3* | aix4* | aix5*)
9005       # On AIX/PPC, the GNU linker is very broken
9006       if test "$host_cpu" != ia64; then
9007         ld_shlibs=no
9008         cat <<EOF 1>&2
9009
9010 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9011 *** to be unable to reliably create shared libraries on AIX.
9012 *** Therefore, libtool is disabling shared libraries support.  If you
9013 *** really care for shared libraries, you may want to modify your PATH
9014 *** so that a non-GNU linker is found, and then restart.
9015
9016 EOF
9017       fi
9018       ;;
9019
9020     amigaos*)
9021       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9022       hardcode_libdir_flag_spec='-L$libdir'
9023       hardcode_minus_L=yes
9024
9025       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9026       # that the semantics of dynamic libraries on AmigaOS, at least up
9027       # to version 4, is to share data among multiple programs linked
9028       # with the same dynamic library.  Since this doesn't match the
9029       # behavior of shared libraries on other platforms, we can't use
9030       # them.
9031       ld_shlibs=no
9032       ;;
9033
9034     beos*)
9035       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9036         allow_undefined_flag=unsupported
9037         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9038         # support --undefined.  This deserves some investigation.  FIXME
9039         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040       else
9041         ld_shlibs=no
9042       fi
9043       ;;
9044
9045     cygwin* | mingw* | pw32*)
9046       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9047       # as there is no search path for DLLs.
9048       hardcode_libdir_flag_spec='-L$libdir'
9049       allow_undefined_flag=unsupported
9050       always_export_symbols=no
9051       enable_shared_with_static_runtimes=yes
9052       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9053
9054       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9055         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9056         # If the export-symbols file already is a .def file (1st line
9057         # is EXPORTS), use it as is; otherwise, prepend...
9058         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9059           cp $export_symbols $output_objdir/$soname.def;
9060         else
9061           echo EXPORTS > $output_objdir/$soname.def;
9062           cat $export_symbols >> $output_objdir/$soname.def;
9063         fi~
9064         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9065       else
9066         ld_shlibs=no
9067       fi
9068       ;;
9069
9070     linux*)
9071       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9072         tmp_addflag=
9073         case $cc_basename,$host_cpu in
9074         pgcc*)                          # Portland Group C compiler
9075           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9076           tmp_addflag=' $pic_flag'
9077           ;;
9078         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9079           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9080           tmp_addflag=' $pic_flag -Mnomain' ;;
9081         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9082           tmp_addflag=' -i_dynamic' ;;
9083         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9084           tmp_addflag=' -i_dynamic -nofor_main' ;;
9085         ifc* | ifort*)                  # Intel Fortran compiler
9086           tmp_addflag=' -nofor_main' ;;
9087         esac
9088         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089
9090         if test $supports_anon_versioning = yes; then
9091           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9092   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9093   $echo "local: *; };" >> $output_objdir/$libname.ver~
9094           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9095         fi
9096       else
9097         ld_shlibs=no
9098       fi
9099       ;;
9100
9101     netbsd*)
9102       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9103         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9104         wlarc=
9105       else
9106         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9108       fi
9109       ;;
9110
9111     solaris* | sysv5*)
9112       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9113         ld_shlibs=no
9114         cat <<EOF 1>&2
9115
9116 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9117 *** create shared libraries on Solaris systems.  Therefore, libtool
9118 *** is disabling shared libraries support.  We urge you to upgrade GNU
9119 *** binutils to release 2.9.1 or newer.  Another option is to modify
9120 *** your PATH or compiler configuration so that the native linker is
9121 *** used, and then restart.
9122
9123 EOF
9124       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9125         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9127       else
9128         ld_shlibs=no
9129       fi
9130       ;;
9131
9132     sunos4*)
9133       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9134       wlarc=
9135       hardcode_direct=yes
9136       hardcode_shlibpath_var=no
9137       ;;
9138
9139     *)
9140       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9141         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9143       else
9144         ld_shlibs=no
9145       fi
9146       ;;
9147     esac
9148
9149     if test "$ld_shlibs" = no; then
9150       runpath_var=
9151       hardcode_libdir_flag_spec=
9152       export_dynamic_flag_spec=
9153       whole_archive_flag_spec=
9154     fi
9155   else
9156     # PORTME fill in a description of your system's linker (not GNU ld)
9157     case $host_os in
9158     aix3*)
9159       allow_undefined_flag=unsupported
9160       always_export_symbols=yes
9161       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9162       # Note: this linker hardcodes the directories in LIBPATH if there
9163       # are no directories specified by -L.
9164       hardcode_minus_L=yes
9165       if test "$GCC" = yes && test -z "$link_static_flag"; then
9166         # Neither direct hardcoding nor static linking is supported with a
9167         # broken collect2.
9168         hardcode_direct=unsupported
9169       fi
9170       ;;
9171
9172     aix4* | aix5*)
9173       if test "$host_cpu" = ia64; then
9174         # On IA64, the linker does run time linking by default, so we don't
9175         # have to do anything special.
9176         aix_use_runtimelinking=no
9177         exp_sym_flag='-Bexport'
9178         no_entry_flag=""
9179       else
9180         # If we're using GNU nm, then we don't want the "-C" option.
9181         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9182         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9183           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9184         else
9185           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9186         fi
9187         aix_use_runtimelinking=no
9188
9189         # Test if we are trying to use run time linking or normal
9190         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9191         # need to do runtime linking.
9192         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9193           for ld_flag in $LDFLAGS; do
9194           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9195             aix_use_runtimelinking=yes
9196             break
9197           fi
9198           done
9199         esac
9200
9201         exp_sym_flag='-bexport'
9202         no_entry_flag='-bnoentry'
9203       fi
9204
9205       # When large executables or shared objects are built, AIX ld can
9206       # have problems creating the table of contents.  If linking a library
9207       # or program results in "error TOC overflow" add -mminimal-toc to
9208       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9209       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9210
9211       archive_cmds=''
9212       hardcode_direct=yes
9213       hardcode_libdir_separator=':'
9214       link_all_deplibs=yes
9215
9216       if test "$GCC" = yes; then
9217         case $host_os in aix4.[012]|aix4.[012].*)
9218         # We only want to do this on AIX 4.2 and lower, the check
9219         # below for broken collect2 doesn't work under 4.3+
9220           collect2name=`${CC} -print-prog-name=collect2`
9221           if test -f "$collect2name" && \
9222            strings "$collect2name" | grep resolve_lib_name >/dev/null
9223           then
9224           # We have reworked collect2
9225           hardcode_direct=yes
9226           else
9227           # We have old collect2
9228           hardcode_direct=unsupported
9229           # It fails to find uninstalled libraries when the uninstalled
9230           # path is not listed in the libpath.  Setting hardcode_minus_L
9231           # to unsupported forces relinking
9232           hardcode_minus_L=yes
9233           hardcode_libdir_flag_spec='-L$libdir'
9234           hardcode_libdir_separator=
9235           fi
9236         esac
9237         shared_flag='-shared'
9238         if test "$aix_use_runtimelinking" = yes; then
9239           shared_flag="$shared_flag "'${wl}-G'
9240         fi
9241       else
9242         # not using gcc
9243         if test "$host_cpu" = ia64; then
9244         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9245         # chokes on -Wl,-G. The following line is correct:
9246           shared_flag='-G'
9247         else
9248         if test "$aix_use_runtimelinking" = yes; then
9249             shared_flag='${wl}-G'
9250           else
9251             shared_flag='${wl}-bM:SRE'
9252         fi
9253         fi
9254       fi
9255
9256       # It seems that -bexpall does not export symbols beginning with
9257       # underscore (_), so it is better to generate a list of symbols to export.
9258       always_export_symbols=yes
9259       if test "$aix_use_runtimelinking" = yes; then
9260         # Warning - without using the other runtime loading flags (-brtl),
9261         # -berok will link without error, but may produce a broken library.
9262         allow_undefined_flag='-berok'
9263        # Determine the default libpath from the value encoded in an empty executable.
9264        cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h.  */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h.  */
9270
9271 int
9272 main ()
9273 {
9274
9275   ;
9276   return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9281 case "(($ac_try" in
9282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283   *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286   (eval "$ac_link") 2>conftest.er1
9287   ac_status=$?
9288   grep -v '^ *+' conftest.er1 >conftest.err
9289   rm -f conftest.er1
9290   cat conftest.err >&5
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } && {
9293          test -z "$ac_c_werror_flag" ||
9294          test ! -s conftest.err
9295        } && test -s conftest$ac_exeext &&
9296        $as_test_x conftest$ac_exeext; then
9297
9298 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9299 }'`
9300 # Check for a 64-bit object if we didn't find anything.
9301 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9302 }'`; fi
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307
9308 fi
9309
9310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9311       conftest$ac_exeext conftest.$ac_ext
9312 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9313
9314        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9315         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9316        else
9317         if test "$host_cpu" = ia64; then
9318           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9319           allow_undefined_flag="-z nodefs"
9320           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9321         else
9322          # Determine the default libpath from the value encoded in an empty executable.
9323          cat >conftest.$ac_ext <<_ACEOF
9324 /* confdefs.h.  */
9325 _ACEOF
9326 cat confdefs.h >>conftest.$ac_ext
9327 cat >>conftest.$ac_ext <<_ACEOF
9328 /* end confdefs.h.  */
9329
9330 int
9331 main ()
9332 {
9333
9334   ;
9335   return 0;
9336 }
9337 _ACEOF
9338 rm -f conftest.$ac_objext conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9340 case "(($ac_try" in
9341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342   *) ac_try_echo=$ac_try;;
9343 esac
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345   (eval "$ac_link") 2>conftest.er1
9346   ac_status=$?
9347   grep -v '^ *+' conftest.er1 >conftest.err
9348   rm -f conftest.er1
9349   cat conftest.err >&5
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); } && {
9352          test -z "$ac_c_werror_flag" ||
9353          test ! -s conftest.err
9354        } && test -s conftest$ac_exeext &&
9355        $as_test_x conftest$ac_exeext; then
9356
9357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9358 }'`
9359 # Check for a 64-bit object if we didn't find anything.
9360 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9361 }'`; fi
9362 else
9363   echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9365
9366
9367 fi
9368
9369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370       conftest$ac_exeext conftest.$ac_ext
9371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9372
9373          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9374           # Warning - without using the other run time loading flags,
9375           # -berok will link without error, but may produce a broken library.
9376           no_undefined_flag=' ${wl}-bernotok'
9377           allow_undefined_flag=' ${wl}-berok'
9378           # -bexpall does not export symbols beginning with underscore (_)
9379           always_export_symbols=yes
9380           # Exported symbols can be pulled into shared objects from archives
9381           whole_archive_flag_spec=' '
9382           archive_cmds_need_lc=yes
9383           # This is similar to how AIX traditionally builds its shared libraries.
9384           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9385         fi
9386       fi
9387       ;;
9388
9389     amigaos*)
9390       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9391       hardcode_libdir_flag_spec='-L$libdir'
9392       hardcode_minus_L=yes
9393       # see comment about different semantics on the GNU ld section
9394       ld_shlibs=no
9395       ;;
9396
9397     bsdi[45]*)
9398       export_dynamic_flag_spec=-rdynamic
9399       ;;
9400
9401     cygwin* | mingw* | pw32*)
9402       # When not using gcc, we currently assume that we are using
9403       # Microsoft Visual C++.
9404       # hardcode_libdir_flag_spec is actually meaningless, as there is
9405       # no search path for DLLs.
9406       hardcode_libdir_flag_spec=' '
9407       allow_undefined_flag=unsupported
9408       # Tell ltmain to make .lib files, not .a files.
9409       libext=lib
9410       # Tell ltmain to make .dll files, not .so files.
9411       shrext_cmds=".dll"
9412       # FIXME: Setting linknames here is a bad hack.
9413       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9414       # The linker will automatically build a .lib file if we build a DLL.
9415       old_archive_From_new_cmds='true'
9416       # FIXME: Should let the user specify the lib program.
9417       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9418       fix_srcfile_path='`cygpath -w "$srcfile"`'
9419       enable_shared_with_static_runtimes=yes
9420       ;;
9421
9422     darwin* | rhapsody*)
9423       case $host_os in
9424         rhapsody* | darwin1.[012])
9425          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9426          ;;
9427        *) # Darwin 1.3 on
9428          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9429            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9430          else
9431            case ${MACOSX_DEPLOYMENT_TARGET} in
9432              10.[012])
9433                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9434                ;;
9435              10.*)
9436                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9437                ;;
9438            esac
9439          fi
9440          ;;
9441       esac
9442       archive_cmds_need_lc=no
9443       hardcode_direct=no
9444       hardcode_automatic=yes
9445       hardcode_shlibpath_var=unsupported
9446       whole_archive_flag_spec=''
9447       link_all_deplibs=yes
9448     if test "$GCC" = yes ; then
9449         output_verbose_link_cmd='echo'
9450         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9451       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9452       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9453       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9454       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9455     else
9456       case $cc_basename in
9457         xlc*)
9458          output_verbose_link_cmd='echo'
9459          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9460          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9461           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9462          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9463           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9464           ;;
9465        *)
9466          ld_shlibs=no
9467           ;;
9468       esac
9469     fi
9470       ;;
9471
9472     dgux*)
9473       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474       hardcode_libdir_flag_spec='-L$libdir'
9475       hardcode_shlibpath_var=no
9476       ;;
9477
9478     freebsd1*)
9479       ld_shlibs=no
9480       ;;
9481
9482     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9483     # support.  Future versions do this automatically, but an explicit c++rt0.o
9484     # does not break anything, and helps significantly (at the cost of a little
9485     # extra space).
9486     freebsd2.2*)
9487       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9488       hardcode_libdir_flag_spec='-R$libdir'
9489       hardcode_direct=yes
9490       hardcode_shlibpath_var=no
9491       ;;
9492
9493     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9494     freebsd2*)
9495       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9496       hardcode_direct=yes
9497       hardcode_minus_L=yes
9498       hardcode_shlibpath_var=no
9499       ;;
9500
9501     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9502     freebsd* | kfreebsd*-gnu | dragonfly*)
9503       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9504       hardcode_libdir_flag_spec='-R$libdir'
9505       hardcode_direct=yes
9506       hardcode_shlibpath_var=no
9507       ;;
9508
9509     hpux9*)
9510       if test "$GCC" = yes; then
9511         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9512       else
9513         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9514       fi
9515       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9516       hardcode_libdir_separator=:
9517       hardcode_direct=yes
9518
9519       # hardcode_minus_L: Not really in the search PATH,
9520       # but as the default location of the library.
9521       hardcode_minus_L=yes
9522       export_dynamic_flag_spec='${wl}-E'
9523       ;;
9524
9525     hpux10* | hpux11*)
9526       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9527         case $host_cpu in
9528         hppa*64*|ia64*)
9529           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9530           ;;
9531         *)
9532           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9533           ;;
9534         esac
9535       else
9536         case $host_cpu in
9537         hppa*64*|ia64*)
9538           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9539           ;;
9540         *)
9541           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9542           ;;
9543         esac
9544       fi
9545       if test "$with_gnu_ld" = no; then
9546         case $host_cpu in
9547         hppa*64*)
9548           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9549           hardcode_libdir_flag_spec_ld='+b $libdir'
9550           hardcode_libdir_separator=:
9551           hardcode_direct=no
9552           hardcode_shlibpath_var=no
9553           ;;
9554         ia64*)
9555           hardcode_libdir_flag_spec='-L$libdir'
9556           hardcode_direct=no
9557           hardcode_shlibpath_var=no
9558
9559           # hardcode_minus_L: Not really in the search PATH,
9560           # but as the default location of the library.
9561           hardcode_minus_L=yes
9562           ;;
9563         *)
9564           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565           hardcode_libdir_separator=:
9566           hardcode_direct=yes
9567           export_dynamic_flag_spec='${wl}-E'
9568
9569           # hardcode_minus_L: Not really in the search PATH,
9570           # but as the default location of the library.
9571           hardcode_minus_L=yes
9572           ;;
9573         esac
9574       fi
9575       ;;
9576
9577     irix5* | irix6* | nonstopux*)
9578       if test "$GCC" = yes; then
9579         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9580       else
9581         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9582         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9583       fi
9584       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585       hardcode_libdir_separator=:
9586       link_all_deplibs=yes
9587       ;;
9588
9589     netbsd*)
9590       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9591         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9592       else
9593         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9594       fi
9595       hardcode_libdir_flag_spec='-R$libdir'
9596       hardcode_direct=yes
9597       hardcode_shlibpath_var=no
9598       ;;
9599
9600     newsos6)
9601       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602       hardcode_direct=yes
9603       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604       hardcode_libdir_separator=:
9605       hardcode_shlibpath_var=no
9606       ;;
9607
9608     openbsd*)
9609       hardcode_direct=yes
9610       hardcode_shlibpath_var=no
9611       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9612         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9613         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9614         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9615         export_dynamic_flag_spec='${wl}-E'
9616       else
9617        case $host_os in
9618          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9619            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9620            hardcode_libdir_flag_spec='-R$libdir'
9621            ;;
9622          *)
9623            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9624            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9625            ;;
9626        esac
9627       fi
9628       ;;
9629
9630     os2*)
9631       hardcode_libdir_flag_spec='-L$libdir'
9632       hardcode_minus_L=yes
9633       allow_undefined_flag=unsupported
9634       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9635       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9636       ;;
9637
9638     osf3*)
9639       if test "$GCC" = yes; then
9640         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9641         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9642       else
9643         allow_undefined_flag=' -expect_unresolved \*'
9644         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9645       fi
9646       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9647       hardcode_libdir_separator=:
9648       ;;
9649
9650     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9651       if test "$GCC" = yes; then
9652         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9653         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9654         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9655       else
9656         allow_undefined_flag=' -expect_unresolved \*'
9657         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9658         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9659         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9660
9661         # Both c and cxx compiler support -rpath directly
9662         hardcode_libdir_flag_spec='-rpath $libdir'
9663       fi
9664       hardcode_libdir_separator=:
9665       ;;
9666
9667     sco3.2v5*)
9668       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669       hardcode_shlibpath_var=no
9670       export_dynamic_flag_spec='${wl}-Bexport'
9671       runpath_var=LD_RUN_PATH
9672       hardcode_runpath_var=yes
9673       ;;
9674
9675     solaris*)
9676       no_undefined_flag=' -z text'
9677       if test "$GCC" = yes; then
9678         wlarc='${wl}'
9679         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9680         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9681           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9682       else
9683         wlarc=''
9684         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9686         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9687       fi
9688       hardcode_libdir_flag_spec='-R$libdir'
9689       hardcode_shlibpath_var=no
9690       case $host_os in
9691       solaris2.[0-5] | solaris2.[0-5].*) ;;
9692       *)
9693         # The compiler driver will combine linker options so we
9694         # cannot just pass the convience library names through
9695         # without $wl, iff we do not link with $LD.
9696         # Luckily, gcc supports the same syntax we need for Sun Studio.
9697         # Supported since Solaris 2.6 (maybe 2.5.1?)
9698         case $wlarc in
9699         '')
9700           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9701         *)
9702           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9703         esac ;;
9704       esac
9705       link_all_deplibs=yes
9706       ;;
9707
9708     sunos4*)
9709       if test "x$host_vendor" = xsequent; then
9710         # Use $CC to link under sequent, because it throws in some extra .o
9711         # files that make .init and .fini sections work.
9712         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9713       else
9714         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9715       fi
9716       hardcode_libdir_flag_spec='-L$libdir'
9717       hardcode_direct=yes
9718       hardcode_minus_L=yes
9719       hardcode_shlibpath_var=no
9720       ;;
9721
9722     sysv4)
9723       case $host_vendor in
9724         sni)
9725           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726           hardcode_direct=yes # is this really true???
9727         ;;
9728         siemens)
9729           ## LD is ld it makes a PLAMLIB
9730           ## CC just makes a GrossModule.
9731           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9732           reload_cmds='$CC -r -o $output$reload_objs'
9733           hardcode_direct=no
9734         ;;
9735         motorola)
9736           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9738         ;;
9739       esac
9740       runpath_var='LD_RUN_PATH'
9741       hardcode_shlibpath_var=no
9742       ;;
9743
9744     sysv4.3*)
9745       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746       hardcode_shlibpath_var=no
9747       export_dynamic_flag_spec='-Bexport'
9748       ;;
9749
9750     sysv4*MP*)
9751       if test -d /usr/nec; then
9752         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753         hardcode_shlibpath_var=no
9754         runpath_var=LD_RUN_PATH
9755         hardcode_runpath_var=yes
9756         ld_shlibs=yes
9757       fi
9758       ;;
9759
9760     sysv4.2uw2*)
9761       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9762       hardcode_direct=yes
9763       hardcode_minus_L=no
9764       hardcode_shlibpath_var=no
9765       hardcode_runpath_var=yes
9766       runpath_var=LD_RUN_PATH
9767       ;;
9768
9769    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9770       no_undefined_flag='${wl}-z ${wl}text'
9771       if test "$GCC" = yes; then
9772         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9773       else
9774         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9775       fi
9776       runpath_var='LD_RUN_PATH'
9777       hardcode_shlibpath_var=no
9778       ;;
9779
9780     sysv5*)
9781       no_undefined_flag=' -z text'
9782       # $CC -shared without GNU ld will not create a library from C++
9783       # object files and a static libstdc++, better avoid it by now
9784       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9786                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9787       hardcode_libdir_flag_spec=
9788       hardcode_shlibpath_var=no
9789       runpath_var='LD_RUN_PATH'
9790       ;;
9791
9792     uts4*)
9793       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794       hardcode_libdir_flag_spec='-L$libdir'
9795       hardcode_shlibpath_var=no
9796       ;;
9797
9798     *)
9799       ld_shlibs=no
9800       ;;
9801     esac
9802   fi
9803
9804 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9805 echo "${ECHO_T}$ld_shlibs" >&6; }
9806 test "$ld_shlibs" = no && can_build_shared=no
9807
9808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9809 if test "$GCC" = yes; then
9810   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9811 fi
9812
9813 #
9814 # Do we need to explicitly link libc?
9815 #
9816 case "x$archive_cmds_need_lc" in
9817 x|xyes)
9818   # Assume -lc should be added
9819   archive_cmds_need_lc=yes
9820
9821   if test "$enable_shared" = yes && test "$GCC" = yes; then
9822     case $archive_cmds in
9823     *'~'*)
9824       # FIXME: we may have to deal with multi-command sequences.
9825       ;;
9826     '$CC '*)
9827       # Test whether the compiler implicitly links with -lc since on some
9828       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9829       # to ld, don't add -lc before -lgcc.
9830       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9831 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9832       $rm conftest*
9833       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9834
9835       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9836   (eval $ac_compile) 2>&5
9837   ac_status=$?
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); } 2>conftest.err; then
9840         soname=conftest
9841         lib=conftest
9842         libobjs=conftest.$ac_objext
9843         deplibs=
9844         wl=$lt_prog_compiler_wl
9845         compiler_flags=-v
9846         linker_flags=-v
9847         verstring=
9848         output_objdir=.
9849         libname=conftest
9850         lt_save_allow_undefined_flag=$allow_undefined_flag
9851         allow_undefined_flag=
9852         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9853   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9854   ac_status=$?
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); }
9857         then
9858           archive_cmds_need_lc=no
9859         else
9860           archive_cmds_need_lc=yes
9861         fi
9862         allow_undefined_flag=$lt_save_allow_undefined_flag
9863       else
9864         cat conftest.err 1>&5
9865       fi
9866       $rm conftest*
9867       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9868 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9869       ;;
9870     esac
9871   fi
9872   ;;
9873 esac
9874
9875 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9876 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9877 library_names_spec=
9878 libname_spec='lib$name'
9879 soname_spec=
9880 shrext_cmds=".so"
9881 postinstall_cmds=
9882 postuninstall_cmds=
9883 finish_cmds=
9884 finish_eval=
9885 shlibpath_var=
9886 shlibpath_overrides_runpath=unknown
9887 version_type=none
9888 dynamic_linker="$host_os ld.so"
9889 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9890 if test "$GCC" = yes; then
9891   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9892   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9893     # if the path contains ";" then we assume it to be the separator
9894     # otherwise default to the standard path separator (i.e. ":") - it is
9895     # assumed that no part of a normal pathname contains ";" but that should
9896     # okay in the real world where ";" in dirpaths is itself problematic.
9897     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9898   else
9899     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9900   fi
9901 else
9902   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9903 fi
9904 need_lib_prefix=unknown
9905 hardcode_into_libs=no
9906
9907 # when you set need_version to no, make sure it does not cause -set_version
9908 # flags to be left without arguments
9909 need_version=unknown
9910
9911 case $host_os in
9912 aix3*)
9913   version_type=linux
9914   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9915   shlibpath_var=LIBPATH
9916
9917   # AIX 3 has no versioning support, so we append a major version to the name.
9918   soname_spec='${libname}${release}${shared_ext}$major'
9919   ;;
9920
9921 aix4* | aix5*)
9922   version_type=linux
9923   need_lib_prefix=no
9924   need_version=no
9925   hardcode_into_libs=yes
9926   if test "$host_cpu" = ia64; then
9927     # AIX 5 supports IA64
9928     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9929     shlibpath_var=LD_LIBRARY_PATH
9930   else
9931     # With GCC up to 2.95.x, collect2 would create an import file
9932     # for dependence libraries.  The import file would start with
9933     # the line `#! .'.  This would cause the generated library to
9934     # depend on `.', always an invalid library.  This was fixed in
9935     # development snapshots of GCC prior to 3.0.
9936     case $host_os in
9937       aix4 | aix4.[01] | aix4.[01].*)
9938       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9939            echo ' yes '
9940            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9941         :
9942       else
9943         can_build_shared=no
9944       fi
9945       ;;
9946     esac
9947     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9948     # soname into executable. Probably we can add versioning support to
9949     # collect2, so additional links can be useful in future.
9950     if test "$aix_use_runtimelinking" = yes; then
9951       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9952       # instead of lib<name>.a to let people know that these are not
9953       # typical AIX shared libraries.
9954       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955     else
9956       # We preserve .a as extension for shared libraries through AIX4.2
9957       # and later when we are not doing run time linking.
9958       library_names_spec='${libname}${release}.a $libname.a'
9959       soname_spec='${libname}${release}${shared_ext}$major'
9960     fi
9961     shlibpath_var=LIBPATH
9962   fi
9963   ;;
9964
9965 amigaos*)
9966   library_names_spec='$libname.ixlibrary $libname.a'
9967   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9968   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9969   ;;
9970
9971 beos*)
9972   library_names_spec='${libname}${shared_ext}'
9973   dynamic_linker="$host_os ld.so"
9974   shlibpath_var=LIBRARY_PATH
9975   ;;
9976
9977 bsdi[45]*)
9978   version_type=linux
9979   need_version=no
9980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981   soname_spec='${libname}${release}${shared_ext}$major'
9982   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9983   shlibpath_var=LD_LIBRARY_PATH
9984   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9985   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9986   # the default ld.so.conf also contains /usr/contrib/lib and
9987   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9988   # libtool to hard-code these into programs
9989   ;;
9990
9991 cygwin* | mingw* | pw32*)
9992   version_type=windows
9993   shrext_cmds=".dll"
9994   need_version=no
9995   need_lib_prefix=no
9996
9997   case $GCC,$host_os in
9998   yes,cygwin* | yes,mingw* | yes,pw32*)
9999     library_names_spec='$libname.dll.a'
10000     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10001     postinstall_cmds='base_file=`basename \${file}`~
10002       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10003       dldir=$destdir/`dirname \$dlpath`~
10004       test -d \$dldir || mkdir -p \$dldir~
10005       $install_prog $dir/$dlname \$dldir/$dlname~
10006       chmod a+x \$dldir/$dlname'
10007     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10008       dlpath=$dir/\$dldll~
10009        $rm \$dlpath'
10010     shlibpath_overrides_runpath=yes
10011
10012     case $host_os in
10013     cygwin*)
10014       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10015       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10016       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10017       ;;
10018     mingw*)
10019       # MinGW DLLs use traditional 'lib' prefix
10020       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10021       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10022       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10023         # It is most probably a Windows format PATH printed by
10024         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10025         # path with ; separators, and with drive letters. We can handle the
10026         # drive letters (cygwin fileutils understands them), so leave them,
10027         # especially as we might pass files found there to a mingw objdump,
10028         # which wouldn't understand a cygwinified path. Ahh.
10029         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10030       else
10031         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10032       fi
10033       ;;
10034     pw32*)
10035       # pw32 DLLs use 'pw' prefix rather than 'lib'
10036       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10037       ;;
10038     esac
10039     ;;
10040
10041   *)
10042     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10043     ;;
10044   esac
10045   dynamic_linker='Win32 ld.exe'
10046   # FIXME: first we should search . and the directory the executable is in
10047   shlibpath_var=PATH
10048   ;;
10049
10050 darwin* | rhapsody*)
10051   dynamic_linker="$host_os dyld"
10052   version_type=darwin
10053   need_lib_prefix=no
10054   need_version=no
10055   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10056   soname_spec='${libname}${release}${major}$shared_ext'
10057   shlibpath_overrides_runpath=yes
10058   shlibpath_var=DYLD_LIBRARY_PATH
10059   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10060   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10061   if test "$GCC" = yes; then
10062     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10063   else
10064     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10065   fi
10066   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10067   ;;
10068
10069 dgux*)
10070   version_type=linux
10071   need_lib_prefix=no
10072   need_version=no
10073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10074   soname_spec='${libname}${release}${shared_ext}$major'
10075   shlibpath_var=LD_LIBRARY_PATH
10076   ;;
10077
10078 freebsd1*)
10079   dynamic_linker=no
10080   ;;
10081
10082 kfreebsd*-gnu)
10083   version_type=linux
10084   need_lib_prefix=no
10085   need_version=no
10086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10087   soname_spec='${libname}${release}${shared_ext}$major'
10088   shlibpath_var=LD_LIBRARY_PATH
10089   shlibpath_overrides_runpath=no
10090   hardcode_into_libs=yes
10091   dynamic_linker='GNU ld.so'
10092   ;;
10093
10094 freebsd* | dragonfly*)
10095   # DragonFly does not have aout.  When/if they implement a new
10096   # versioning mechanism, adjust this.
10097   if test -x /usr/bin/objformat; then
10098     objformat=`/usr/bin/objformat`
10099   else
10100     case $host_os in
10101     freebsd[123]*) objformat=aout ;;
10102     *) objformat=elf ;;
10103     esac
10104   fi
10105   version_type=freebsd-$objformat
10106   case $version_type in
10107     freebsd-elf*)
10108       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10109       need_version=no
10110       need_lib_prefix=no
10111       ;;
10112     freebsd-*)
10113       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10114       need_version=yes
10115       ;;
10116   esac
10117   shlibpath_var=LD_LIBRARY_PATH
10118   case $host_os in
10119   freebsd2*)
10120     shlibpath_overrides_runpath=yes
10121     ;;
10122   freebsd3.[01]* | freebsdelf3.[01]*)
10123     shlibpath_overrides_runpath=yes
10124     hardcode_into_libs=yes
10125     ;;
10126   *) # from 3.2 on
10127     shlibpath_overrides_runpath=no
10128     hardcode_into_libs=yes
10129     ;;
10130   esac
10131   ;;
10132
10133 gnu*)
10134   version_type=linux
10135   need_lib_prefix=no
10136   need_version=no
10137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10138   soname_spec='${libname}${release}${shared_ext}$major'
10139   shlibpath_var=LD_LIBRARY_PATH
10140   hardcode_into_libs=yes
10141   ;;
10142
10143 hpux9* | hpux10* | hpux11*)
10144   # Give a soname corresponding to the major version so that dld.sl refuses to
10145   # link against other versions.
10146   version_type=sunos
10147   need_lib_prefix=no
10148   need_version=no
10149   case $host_cpu in
10150   ia64*)
10151     shrext_cmds='.so'
10152     hardcode_into_libs=yes
10153     dynamic_linker="$host_os dld.so"
10154     shlibpath_var=LD_LIBRARY_PATH
10155     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157     soname_spec='${libname}${release}${shared_ext}$major'
10158     if test "X$HPUX_IA64_MODE" = X32; then
10159       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10160     else
10161       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10162     fi
10163     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10164     ;;
10165    hppa*64*)
10166      shrext_cmds='.sl'
10167      hardcode_into_libs=yes
10168      dynamic_linker="$host_os dld.sl"
10169      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10170      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10171      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172      soname_spec='${libname}${release}${shared_ext}$major'
10173      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10174      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10175      ;;
10176    *)
10177     shrext_cmds='.sl'
10178     dynamic_linker="$host_os dld.sl"
10179     shlibpath_var=SHLIB_PATH
10180     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182     soname_spec='${libname}${release}${shared_ext}$major'
10183     ;;
10184   esac
10185   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10186   postinstall_cmds='chmod 555 $lib'
10187   ;;
10188
10189 irix5* | irix6* | nonstopux*)
10190   case $host_os in
10191     nonstopux*) version_type=nonstopux ;;
10192     *)
10193         if test "$lt_cv_prog_gnu_ld" = yes; then
10194                 version_type=linux
10195         else
10196                 version_type=irix
10197         fi ;;
10198   esac
10199   need_lib_prefix=no
10200   need_version=no
10201   soname_spec='${libname}${release}${shared_ext}$major'
10202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10203   case $host_os in
10204   irix5* | nonstopux*)
10205     libsuff= shlibsuff=
10206     ;;
10207   *)
10208     case $LD in # libtool.m4 will add one of these switches to LD
10209     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10210       libsuff= shlibsuff= libmagic=32-bit;;
10211     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10212       libsuff=32 shlibsuff=N32 libmagic=N32;;
10213     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10214       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10215     *) libsuff= shlibsuff= libmagic=never-match;;
10216     esac
10217     ;;
10218   esac
10219   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10220   shlibpath_overrides_runpath=no
10221   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10222   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10223   hardcode_into_libs=yes
10224   ;;
10225
10226 # No shared lib support for Linux oldld, aout, or coff.
10227 linux*oldld* | linux*aout* | linux*coff*)
10228   dynamic_linker=no
10229   ;;
10230
10231 # This must be Linux ELF.
10232 linux*)
10233   version_type=linux
10234   need_lib_prefix=no
10235   need_version=no
10236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237   soname_spec='${libname}${release}${shared_ext}$major'
10238   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10239   shlibpath_var=LD_LIBRARY_PATH
10240   shlibpath_overrides_runpath=no
10241   # This implies no fast_install, which is unacceptable.
10242   # Some rework will be needed to allow for fast_install
10243   # before this can be enabled.
10244   hardcode_into_libs=yes
10245
10246   # Append ld.so.conf contents to the search path
10247   if test -f /etc/ld.so.conf; then
10248     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10249     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10250   fi
10251
10252   # We used to test for /lib/ld.so.1 and disable shared libraries on
10253   # powerpc, because MkLinux only supported shared libraries with the
10254   # GNU dynamic linker.  Since this was broken with cross compilers,
10255   # most powerpc-linux boxes support dynamic linking these days and
10256   # people can always --disable-shared, the test was removed, and we
10257   # assume the GNU/Linux dynamic linker is in use.
10258   dynamic_linker='GNU/Linux ld.so'
10259   ;;
10260
10261 knetbsd*-gnu)
10262   version_type=linux
10263   need_lib_prefix=no
10264   need_version=no
10265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266   soname_spec='${libname}${release}${shared_ext}$major'
10267   shlibpath_var=LD_LIBRARY_PATH
10268   shlibpath_overrides_runpath=no
10269   hardcode_into_libs=yes
10270   dynamic_linker='GNU ld.so'
10271   ;;
10272
10273 netbsd*)
10274   version_type=sunos
10275   need_lib_prefix=no
10276   need_version=no
10277   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10278     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10279     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10280     dynamic_linker='NetBSD (a.out) ld.so'
10281   else
10282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10283     soname_spec='${libname}${release}${shared_ext}$major'
10284     dynamic_linker='NetBSD ld.elf_so'
10285   fi
10286   shlibpath_var=LD_LIBRARY_PATH
10287   shlibpath_overrides_runpath=yes
10288   hardcode_into_libs=yes
10289   ;;
10290
10291 newsos6)
10292   version_type=linux
10293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294   shlibpath_var=LD_LIBRARY_PATH
10295   shlibpath_overrides_runpath=yes
10296   ;;
10297
10298 nto-qnx*)
10299   version_type=linux
10300   need_lib_prefix=no
10301   need_version=no
10302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303   soname_spec='${libname}${release}${shared_ext}$major'
10304   shlibpath_var=LD_LIBRARY_PATH
10305   shlibpath_overrides_runpath=yes
10306   ;;
10307
10308 openbsd*)
10309   version_type=sunos
10310   need_lib_prefix=no
10311   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10312   case $host_os in
10313     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10314     *)                         need_version=no  ;;
10315   esac
10316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10318   shlibpath_var=LD_LIBRARY_PATH
10319   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10320     case $host_os in
10321       openbsd2.[89] | openbsd2.[89].*)
10322         shlibpath_overrides_runpath=no
10323         ;;
10324       *)
10325         shlibpath_overrides_runpath=yes
10326         ;;
10327       esac
10328   else
10329     shlibpath_overrides_runpath=yes
10330   fi
10331   ;;
10332
10333 os2*)
10334   libname_spec='$name'
10335   shrext_cmds=".dll"
10336   need_lib_prefix=no
10337   library_names_spec='$libname${shared_ext} $libname.a'
10338   dynamic_linker='OS/2 ld.exe'
10339   shlibpath_var=LIBPATH
10340   ;;
10341
10342 osf3* | osf4* | osf5*)
10343   version_type=osf
10344   need_lib_prefix=no
10345   need_version=no
10346   soname_spec='${libname}${release}${shared_ext}$major'
10347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348   shlibpath_var=LD_LIBRARY_PATH
10349   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10350   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10351   ;;
10352
10353 sco3.2v5*)
10354   version_type=osf
10355   soname_spec='${libname}${release}${shared_ext}$major'
10356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357   shlibpath_var=LD_LIBRARY_PATH
10358   ;;
10359
10360 solaris*)
10361   version_type=linux
10362   need_lib_prefix=no
10363   need_version=no
10364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365   soname_spec='${libname}${release}${shared_ext}$major'
10366   shlibpath_var=LD_LIBRARY_PATH
10367   shlibpath_overrides_runpath=yes
10368   hardcode_into_libs=yes
10369   # ldd complains unless libraries are executable
10370   postinstall_cmds='chmod +x $lib'
10371   ;;
10372
10373 sunos4*)
10374   version_type=sunos
10375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10376   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10377   shlibpath_var=LD_LIBRARY_PATH
10378   shlibpath_overrides_runpath=yes
10379   if test "$with_gnu_ld" = yes; then
10380     need_lib_prefix=no
10381   fi
10382   need_version=yes
10383   ;;
10384
10385 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10386   version_type=linux
10387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388   soname_spec='${libname}${release}${shared_ext}$major'
10389   shlibpath_var=LD_LIBRARY_PATH
10390   case $host_vendor in
10391     sni)
10392       shlibpath_overrides_runpath=no
10393       need_lib_prefix=no
10394       export_dynamic_flag_spec='${wl}-Blargedynsym'
10395       runpath_var=LD_RUN_PATH
10396       ;;
10397     siemens)
10398       need_lib_prefix=no
10399       ;;
10400     motorola)
10401       need_lib_prefix=no
10402       need_version=no
10403       shlibpath_overrides_runpath=no
10404       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10405       ;;
10406   esac
10407   ;;
10408
10409 sysv4*MP*)
10410   if test -d /usr/nec ;then
10411     version_type=linux
10412     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10413     soname_spec='$libname${shared_ext}.$major'
10414     shlibpath_var=LD_LIBRARY_PATH
10415   fi
10416   ;;
10417
10418 uts4*)
10419   version_type=linux
10420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421   soname_spec='${libname}${release}${shared_ext}$major'
10422   shlibpath_var=LD_LIBRARY_PATH
10423   ;;
10424
10425 *)
10426   dynamic_linker=no
10427   ;;
10428 esac
10429 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10430 echo "${ECHO_T}$dynamic_linker" >&6; }
10431 test "$dynamic_linker" = no && can_build_shared=no
10432
10433 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10434 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10435 hardcode_action=
10436 if test -n "$hardcode_libdir_flag_spec" || \
10437    test -n "$runpath_var" || \
10438    test "X$hardcode_automatic" = "Xyes" ; then
10439
10440   # We can hardcode non-existant directories.
10441   if test "$hardcode_direct" != no &&
10442      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10443      # have to relink, otherwise we might link with an installed library
10444      # when we should be linking with a yet-to-be-installed one
10445      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10446      test "$hardcode_minus_L" != no; then
10447     # Linking always hardcodes the temporary library directory.
10448     hardcode_action=relink
10449   else
10450     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10451     hardcode_action=immediate
10452   fi
10453 else
10454   # We cannot hardcode anything, or else we can only hardcode existing
10455   # directories.
10456   hardcode_action=unsupported
10457 fi
10458 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10459 echo "${ECHO_T}$hardcode_action" >&6; }
10460
10461 if test "$hardcode_action" = relink; then
10462   # Fast installation is not supported
10463   enable_fast_install=no
10464 elif test "$shlibpath_overrides_runpath" = yes ||
10465      test "$enable_shared" = no; then
10466   # Fast installation is not necessary
10467   enable_fast_install=needless
10468 fi
10469
10470 striplib=
10471 old_striplib=
10472 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10473 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10474 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10475   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10476   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10477   { echo "$as_me:$LINENO: result: yes" >&5
10478 echo "${ECHO_T}yes" >&6; }
10479 else
10480 # FIXME - insert some real tests, host_os isn't really good enough
10481   case $host_os in
10482    darwin*)
10483        if test -n "$STRIP" ; then
10484          striplib="$STRIP -x"
10485          { echo "$as_me:$LINENO: result: yes" >&5
10486 echo "${ECHO_T}yes" >&6; }
10487        else
10488   { echo "$as_me:$LINENO: result: no" >&5
10489 echo "${ECHO_T}no" >&6; }
10490 fi
10491        ;;
10492    *)
10493   { echo "$as_me:$LINENO: result: no" >&5
10494 echo "${ECHO_T}no" >&6; }
10495     ;;
10496   esac
10497 fi
10498
10499 if test "x$enable_dlopen" != xyes; then
10500   enable_dlopen=unknown
10501   enable_dlopen_self=unknown
10502   enable_dlopen_self_static=unknown
10503 else
10504   lt_cv_dlopen=no
10505   lt_cv_dlopen_libs=
10506
10507   case $host_os in
10508   beos*)
10509     lt_cv_dlopen="load_add_on"
10510     lt_cv_dlopen_libs=
10511     lt_cv_dlopen_self=yes
10512     ;;
10513
10514   mingw* | pw32*)
10515     lt_cv_dlopen="LoadLibrary"
10516     lt_cv_dlopen_libs=
10517    ;;
10518
10519   cygwin*)
10520     lt_cv_dlopen="dlopen"
10521     lt_cv_dlopen_libs=
10522    ;;
10523
10524   darwin*)
10525   # if libdl is installed we need to link against it
10526     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10527 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10528 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10529   echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531   ac_check_lib_save_LIBS=$LIBS
10532 LIBS="-ldl  $LIBS"
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h.  */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h.  */
10539
10540 /* Override any GCC internal prototype to avoid an error.
10541    Use char because int might match the return type of a GCC
10542    builtin and then its argument prototype would still apply.  */
10543 #ifdef __cplusplus
10544 extern "C"
10545 #endif
10546 char dlopen ();
10547 int
10548 main ()
10549 {
10550 return dlopen ();
10551   ;
10552   return 0;
10553 }
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (ac_try="$ac_link"
10557 case "(($ac_try" in
10558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559   *) ac_try_echo=$ac_try;;
10560 esac
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562   (eval "$ac_link") 2>conftest.er1
10563   ac_status=$?
10564   grep -v '^ *+' conftest.er1 >conftest.err
10565   rm -f conftest.er1
10566   cat conftest.err >&5
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } && {
10569          test -z "$ac_c_werror_flag" ||
10570          test ! -s conftest.err
10571        } && test -s conftest$ac_exeext &&
10572        $as_test_x conftest$ac_exeext; then
10573   ac_cv_lib_dl_dlopen=yes
10574 else
10575   echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10577
10578         ac_cv_lib_dl_dlopen=no
10579 fi
10580
10581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582       conftest$ac_exeext conftest.$ac_ext
10583 LIBS=$ac_check_lib_save_LIBS
10584 fi
10585 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10586 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10587 if test $ac_cv_lib_dl_dlopen = yes; then
10588   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10589 else
10590
10591     lt_cv_dlopen="dyld"
10592     lt_cv_dlopen_libs=
10593     lt_cv_dlopen_self=yes
10594
10595 fi
10596
10597    ;;
10598
10599   *)
10600     { echo "$as_me:$LINENO: checking for shl_load" >&5
10601 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10602 if test "${ac_cv_func_shl_load+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h.  */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h.  */
10611 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10613 #define shl_load innocuous_shl_load
10614
10615 /* System header to define __stub macros and hopefully few prototypes,
10616     which can conflict with char shl_load (); below.
10617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10618     <limits.h> exists even on freestanding compilers.  */
10619
10620 #ifdef __STDC__
10621 # include <limits.h>
10622 #else
10623 # include <assert.h>
10624 #endif
10625
10626 #undef shl_load
10627
10628 /* Override any GCC internal prototype to avoid an error.
10629    Use char because int might match the return type of a GCC
10630    builtin and then its argument prototype would still apply.  */
10631 #ifdef __cplusplus
10632 extern "C"
10633 #endif
10634 char shl_load ();
10635 /* The GNU C library defines this for functions which it implements
10636     to always fail with ENOSYS.  Some functions are actually named
10637     something starting with __ and the normal name is an alias.  */
10638 #if defined __stub_shl_load || defined __stub___shl_load
10639 choke me
10640 #endif
10641
10642 int
10643 main ()
10644 {
10645 return shl_load ();
10646   ;
10647   return 0;
10648 }
10649 _ACEOF
10650 rm -f conftest.$ac_objext conftest$ac_exeext
10651 if { (ac_try="$ac_link"
10652 case "(($ac_try" in
10653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654   *) ac_try_echo=$ac_try;;
10655 esac
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657   (eval "$ac_link") 2>conftest.er1
10658   ac_status=$?
10659   grep -v '^ *+' conftest.er1 >conftest.err
10660   rm -f conftest.er1
10661   cat conftest.err >&5
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } && {
10664          test -z "$ac_c_werror_flag" ||
10665          test ! -s conftest.err
10666        } && test -s conftest$ac_exeext &&
10667        $as_test_x conftest$ac_exeext; then
10668   ac_cv_func_shl_load=yes
10669 else
10670   echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673         ac_cv_func_shl_load=no
10674 fi
10675
10676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10677       conftest$ac_exeext conftest.$ac_ext
10678 fi
10679 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10680 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10681 if test $ac_cv_func_shl_load = yes; then
10682   lt_cv_dlopen="shl_load"
10683 else
10684   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10685 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10686 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10687   echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689   ac_check_lib_save_LIBS=$LIBS
10690 LIBS="-ldld  $LIBS"
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h.  */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h.  */
10697
10698 /* Override any GCC internal prototype to avoid an error.
10699    Use char because int might match the return type of a GCC
10700    builtin and then its argument prototype would still apply.  */
10701 #ifdef __cplusplus
10702 extern "C"
10703 #endif
10704 char shl_load ();
10705 int
10706 main ()
10707 {
10708 return shl_load ();
10709   ;
10710   return 0;
10711 }
10712 _ACEOF
10713 rm -f conftest.$ac_objext conftest$ac_exeext
10714 if { (ac_try="$ac_link"
10715 case "(($ac_try" in
10716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717   *) ac_try_echo=$ac_try;;
10718 esac
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720   (eval "$ac_link") 2>conftest.er1
10721   ac_status=$?
10722   grep -v '^ *+' conftest.er1 >conftest.err
10723   rm -f conftest.er1
10724   cat conftest.err >&5
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); } && {
10727          test -z "$ac_c_werror_flag" ||
10728          test ! -s conftest.err
10729        } && test -s conftest$ac_exeext &&
10730        $as_test_x conftest$ac_exeext; then
10731   ac_cv_lib_dld_shl_load=yes
10732 else
10733   echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736         ac_cv_lib_dld_shl_load=no
10737 fi
10738
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740       conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10742 fi
10743 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10744 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10745 if test $ac_cv_lib_dld_shl_load = yes; then
10746   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10747 else
10748   { echo "$as_me:$LINENO: checking for dlopen" >&5
10749 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10750 if test "${ac_cv_func_dlopen+set}" = set; then
10751   echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753   cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h.  */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h.  */
10759 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10761 #define dlopen innocuous_dlopen
10762
10763 /* System header to define __stub macros and hopefully few prototypes,
10764     which can conflict with char dlopen (); below.
10765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10766     <limits.h> exists even on freestanding compilers.  */
10767
10768 #ifdef __STDC__
10769 # include <limits.h>
10770 #else
10771 # include <assert.h>
10772 #endif
10773
10774 #undef dlopen
10775
10776 /* Override any GCC internal prototype to avoid an error.
10777    Use char because int might match the return type of a GCC
10778    builtin and then its argument prototype would still apply.  */
10779 #ifdef __cplusplus
10780 extern "C"
10781 #endif
10782 char dlopen ();
10783 /* The GNU C library defines this for functions which it implements
10784     to always fail with ENOSYS.  Some functions are actually named
10785     something starting with __ and the normal name is an alias.  */
10786 #if defined __stub_dlopen || defined __stub___dlopen
10787 choke me
10788 #endif
10789
10790 int
10791 main ()
10792 {
10793 return dlopen ();
10794   ;
10795   return 0;
10796 }
10797 _ACEOF
10798 rm -f conftest.$ac_objext conftest$ac_exeext
10799 if { (ac_try="$ac_link"
10800 case "(($ac_try" in
10801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802   *) ac_try_echo=$ac_try;;
10803 esac
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805   (eval "$ac_link") 2>conftest.er1
10806   ac_status=$?
10807   grep -v '^ *+' conftest.er1 >conftest.err
10808   rm -f conftest.er1
10809   cat conftest.err >&5
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); } && {
10812          test -z "$ac_c_werror_flag" ||
10813          test ! -s conftest.err
10814        } && test -s conftest$ac_exeext &&
10815        $as_test_x conftest$ac_exeext; then
10816   ac_cv_func_dlopen=yes
10817 else
10818   echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10820
10821         ac_cv_func_dlopen=no
10822 fi
10823
10824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10825       conftest$ac_exeext conftest.$ac_ext
10826 fi
10827 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10828 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10829 if test $ac_cv_func_dlopen = yes; then
10830   lt_cv_dlopen="dlopen"
10831 else
10832   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10833 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10834 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10835   echo $ECHO_N "(cached) $ECHO_C" >&6
10836 else
10837   ac_check_lib_save_LIBS=$LIBS
10838 LIBS="-ldl  $LIBS"
10839 cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h.  */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h.  */
10845
10846 /* Override any GCC internal prototype to avoid an error.
10847    Use char because int might match the return type of a GCC
10848    builtin and then its argument prototype would still apply.  */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 char dlopen ();
10853 int
10854 main ()
10855 {
10856 return dlopen ();
10857   ;
10858   return 0;
10859 }
10860 _ACEOF
10861 rm -f conftest.$ac_objext conftest$ac_exeext
10862 if { (ac_try="$ac_link"
10863 case "(($ac_try" in
10864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865   *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868   (eval "$ac_link") 2>conftest.er1
10869   ac_status=$?
10870   grep -v '^ *+' conftest.er1 >conftest.err
10871   rm -f conftest.er1
10872   cat conftest.err >&5
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); } && {
10875          test -z "$ac_c_werror_flag" ||
10876          test ! -s conftest.err
10877        } && test -s conftest$ac_exeext &&
10878        $as_test_x conftest$ac_exeext; then
10879   ac_cv_lib_dl_dlopen=yes
10880 else
10881   echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884         ac_cv_lib_dl_dlopen=no
10885 fi
10886
10887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10888       conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10890 fi
10891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10892 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10893 if test $ac_cv_lib_dl_dlopen = yes; then
10894   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10895 else
10896   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10897 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10898 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10899   echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10901   ac_check_lib_save_LIBS=$LIBS
10902 LIBS="-lsvld  $LIBS"
10903 cat >conftest.$ac_ext <<_ACEOF
10904 /* confdefs.h.  */
10905 _ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h.  */
10909
10910 /* Override any GCC internal prototype to avoid an error.
10911    Use char because int might match the return type of a GCC
10912    builtin and then its argument prototype would still apply.  */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char dlopen ();
10917 int
10918 main ()
10919 {
10920 return dlopen ();
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929   *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932   (eval "$ac_link") 2>conftest.er1
10933   ac_status=$?
10934   grep -v '^ *+' conftest.er1 >conftest.err
10935   rm -f conftest.er1
10936   cat conftest.err >&5
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); } && {
10939          test -z "$ac_c_werror_flag" ||
10940          test ! -s conftest.err
10941        } && test -s conftest$ac_exeext &&
10942        $as_test_x conftest$ac_exeext; then
10943   ac_cv_lib_svld_dlopen=yes
10944 else
10945   echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948         ac_cv_lib_svld_dlopen=no
10949 fi
10950
10951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10952       conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10954 fi
10955 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10956 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10957 if test $ac_cv_lib_svld_dlopen = yes; then
10958   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10959 else
10960   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10961 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10962 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965   ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-ldld  $LIBS"
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h.  */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h.  */
10973
10974 /* Override any GCC internal prototype to avoid an error.
10975    Use char because int might match the return type of a GCC
10976    builtin and then its argument prototype would still apply.  */
10977 #ifdef __cplusplus
10978 extern "C"
10979 #endif
10980 char dld_link ();
10981 int
10982 main ()
10983 {
10984 return dld_link ();
10985   ;
10986   return 0;
10987 }
10988 _ACEOF
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (ac_try="$ac_link"
10991 case "(($ac_try" in
10992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993   *) ac_try_echo=$ac_try;;
10994 esac
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996   (eval "$ac_link") 2>conftest.er1
10997   ac_status=$?
10998   grep -v '^ *+' conftest.er1 >conftest.err
10999   rm -f conftest.er1
11000   cat conftest.err >&5
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } && {
11003          test -z "$ac_c_werror_flag" ||
11004          test ! -s conftest.err
11005        } && test -s conftest$ac_exeext &&
11006        $as_test_x conftest$ac_exeext; then
11007   ac_cv_lib_dld_dld_link=yes
11008 else
11009   echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012         ac_cv_lib_dld_dld_link=no
11013 fi
11014
11015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11016       conftest$ac_exeext conftest.$ac_ext
11017 LIBS=$ac_check_lib_save_LIBS
11018 fi
11019 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11020 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11021 if test $ac_cv_lib_dld_dld_link = yes; then
11022   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11023 fi
11024
11025
11026 fi
11027
11028
11029 fi
11030
11031
11032 fi
11033
11034
11035 fi
11036
11037
11038 fi
11039
11040     ;;
11041   esac
11042
11043   if test "x$lt_cv_dlopen" != xno; then
11044     enable_dlopen=yes
11045   else
11046     enable_dlopen=no
11047   fi
11048
11049   case $lt_cv_dlopen in
11050   dlopen)
11051     save_CPPFLAGS="$CPPFLAGS"
11052     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11053
11054     save_LDFLAGS="$LDFLAGS"
11055     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11056
11057     save_LIBS="$LIBS"
11058     LIBS="$lt_cv_dlopen_libs $LIBS"
11059
11060     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11061 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11062 if test "${lt_cv_dlopen_self+set}" = set; then
11063   echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065           if test "$cross_compiling" = yes; then :
11066   lt_cv_dlopen_self=cross
11067 else
11068   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11069   lt_status=$lt_dlunknown
11070   cat > conftest.$ac_ext <<EOF
11071 #line 11071 "configure"
11072 #include "confdefs.h"
11073
11074 #if HAVE_DLFCN_H
11075 #include <dlfcn.h>
11076 #endif
11077
11078 #include <stdio.h>
11079
11080 #ifdef RTLD_GLOBAL
11081 #  define LT_DLGLOBAL           RTLD_GLOBAL
11082 #else
11083 #  ifdef DL_GLOBAL
11084 #    define LT_DLGLOBAL         DL_GLOBAL
11085 #  else
11086 #    define LT_DLGLOBAL         0
11087 #  endif
11088 #endif
11089
11090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11091    find out it does not work in some platform. */
11092 #ifndef LT_DLLAZY_OR_NOW
11093 #  ifdef RTLD_LAZY
11094 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11095 #  else
11096 #    ifdef DL_LAZY
11097 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11098 #    else
11099 #      ifdef RTLD_NOW
11100 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11101 #      else
11102 #        ifdef DL_NOW
11103 #          define LT_DLLAZY_OR_NOW      DL_NOW
11104 #        else
11105 #          define LT_DLLAZY_OR_NOW      0
11106 #        endif
11107 #      endif
11108 #    endif
11109 #  endif
11110 #endif
11111
11112 #ifdef __cplusplus
11113 extern "C" void exit (int);
11114 #endif
11115
11116 void fnord() { int i=42;}
11117 int main ()
11118 {
11119   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11120   int status = $lt_dlunknown;
11121
11122   if (self)
11123     {
11124       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11125       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11126       /* dlclose (self); */
11127     }
11128
11129     exit (status);
11130 }
11131 EOF
11132   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11133   (eval $ac_link) 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11137     (./conftest; exit; ) >&5 2>/dev/null
11138     lt_status=$?
11139     case x$lt_status in
11140       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11141       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11142       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11143     esac
11144   else :
11145     # compilation failed
11146     lt_cv_dlopen_self=no
11147   fi
11148 fi
11149 rm -fr conftest*
11150
11151
11152 fi
11153 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11154 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11155
11156     if test "x$lt_cv_dlopen_self" = xyes; then
11157       LDFLAGS="$LDFLAGS $link_static_flag"
11158       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11159 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11160 if test "${lt_cv_dlopen_self_static+set}" = set; then
11161   echo $ECHO_N "(cached) $ECHO_C" >&6
11162 else
11163           if test "$cross_compiling" = yes; then :
11164   lt_cv_dlopen_self_static=cross
11165 else
11166   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11167   lt_status=$lt_dlunknown
11168   cat > conftest.$ac_ext <<EOF
11169 #line 11169 "configure"
11170 #include "confdefs.h"
11171
11172 #if HAVE_DLFCN_H
11173 #include <dlfcn.h>
11174 #endif
11175
11176 #include <stdio.h>
11177
11178 #ifdef RTLD_GLOBAL
11179 #  define LT_DLGLOBAL           RTLD_GLOBAL
11180 #else
11181 #  ifdef DL_GLOBAL
11182 #    define LT_DLGLOBAL         DL_GLOBAL
11183 #  else
11184 #    define LT_DLGLOBAL         0
11185 #  endif
11186 #endif
11187
11188 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11189    find out it does not work in some platform. */
11190 #ifndef LT_DLLAZY_OR_NOW
11191 #  ifdef RTLD_LAZY
11192 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11193 #  else
11194 #    ifdef DL_LAZY
11195 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11196 #    else
11197 #      ifdef RTLD_NOW
11198 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11199 #      else
11200 #        ifdef DL_NOW
11201 #          define LT_DLLAZY_OR_NOW      DL_NOW
11202 #        else
11203 #          define LT_DLLAZY_OR_NOW      0
11204 #        endif
11205 #      endif
11206 #    endif
11207 #  endif
11208 #endif
11209
11210 #ifdef __cplusplus
11211 extern "C" void exit (int);
11212 #endif
11213
11214 void fnord() { int i=42;}
11215 int main ()
11216 {
11217   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11218   int status = $lt_dlunknown;
11219
11220   if (self)
11221     {
11222       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11223       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11224       /* dlclose (self); */
11225     }
11226
11227     exit (status);
11228 }
11229 EOF
11230   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231   (eval $ac_link) 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11235     (./conftest; exit; ) >&5 2>/dev/null
11236     lt_status=$?
11237     case x$lt_status in
11238       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11239       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11240       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11241     esac
11242   else :
11243     # compilation failed
11244     lt_cv_dlopen_self_static=no
11245   fi
11246 fi
11247 rm -fr conftest*
11248
11249
11250 fi
11251 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11252 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11253     fi
11254
11255     CPPFLAGS="$save_CPPFLAGS"
11256     LDFLAGS="$save_LDFLAGS"
11257     LIBS="$save_LIBS"
11258     ;;
11259   esac
11260
11261   case $lt_cv_dlopen_self in
11262   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11263   *) enable_dlopen_self=unknown ;;
11264   esac
11265
11266   case $lt_cv_dlopen_self_static in
11267   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11268   *) enable_dlopen_self_static=unknown ;;
11269   esac
11270 fi
11271
11272
11273 # Report which librarie types wil actually be built
11274 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11275 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11276 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11277 echo "${ECHO_T}$can_build_shared" >&6; }
11278
11279 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11280 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11281 test "$can_build_shared" = "no" && enable_shared=no
11282
11283 # On AIX, shared libraries and static libraries use the same namespace, and
11284 # are all built from PIC.
11285 case $host_os in
11286 aix3*)
11287   test "$enable_shared" = yes && enable_static=no
11288   if test -n "$RANLIB"; then
11289     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11290     postinstall_cmds='$RANLIB $lib'
11291   fi
11292   ;;
11293
11294 aix4* | aix5*)
11295   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11296     test "$enable_shared" = yes && enable_static=no
11297   fi
11298     ;;
11299 esac
11300 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11301 echo "${ECHO_T}$enable_shared" >&6; }
11302
11303 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11304 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11305 # Make sure either enable_shared or enable_static is yes.
11306 test "$enable_shared" = yes || enable_static=yes
11307 { echo "$as_me:$LINENO: result: $enable_static" >&5
11308 echo "${ECHO_T}$enable_static" >&6; }
11309
11310 # The else clause should only fire when bootstrapping the
11311 # libtool distribution, otherwise you forgot to ship ltmain.sh
11312 # with your package, and you will get complaints that there are
11313 # no rules to generate ltmain.sh.
11314 if test -f "$ltmain"; then
11315   # See if we are running on zsh, and set the options which allow our commands through
11316   # without removal of \ escapes.
11317   if test -n "${ZSH_VERSION+set}" ; then
11318     setopt NO_GLOB_SUBST
11319   fi
11320   # Now quote all the things that may contain metacharacters while being
11321   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11322   # variables and quote the copies for generation of the libtool script.
11323   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11324     SED SHELL STRIP \
11325     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11326     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11327     deplibs_check_method reload_flag reload_cmds need_locks \
11328     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11329     lt_cv_sys_global_symbol_to_c_name_address \
11330     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11331     old_postinstall_cmds old_postuninstall_cmds \
11332     compiler \
11333     CC \
11334     LD \
11335     lt_prog_compiler_wl \
11336     lt_prog_compiler_pic \
11337     lt_prog_compiler_static \
11338     lt_prog_compiler_no_builtin_flag \
11339     export_dynamic_flag_spec \
11340     thread_safe_flag_spec \
11341     whole_archive_flag_spec \
11342     enable_shared_with_static_runtimes \
11343     old_archive_cmds \
11344     old_archive_from_new_cmds \
11345     predep_objects \
11346     postdep_objects \
11347     predeps \
11348     postdeps \
11349     compiler_lib_search_path \
11350     archive_cmds \
11351     archive_expsym_cmds \
11352     postinstall_cmds \
11353     postuninstall_cmds \
11354     old_archive_from_expsyms_cmds \
11355     allow_undefined_flag \
11356     no_undefined_flag \
11357     export_symbols_cmds \
11358     hardcode_libdir_flag_spec \
11359     hardcode_libdir_flag_spec_ld \
11360     hardcode_libdir_separator \
11361     hardcode_automatic \
11362     module_cmds \
11363     module_expsym_cmds \
11364     lt_cv_prog_compiler_c_o \
11365     exclude_expsyms \
11366     include_expsyms; do
11367
11368     case $var in
11369     old_archive_cmds | \
11370     old_archive_from_new_cmds | \
11371     archive_cmds | \
11372     archive_expsym_cmds | \
11373     module_cmds | \
11374     module_expsym_cmds | \
11375     old_archive_from_expsyms_cmds | \
11376     export_symbols_cmds | \
11377     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11378     postinstall_cmds | postuninstall_cmds | \
11379     old_postinstall_cmds | old_postuninstall_cmds | \
11380     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11381       # Double-quote double-evaled strings.
11382       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11383       ;;
11384     *)
11385       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11386       ;;
11387     esac
11388   done
11389
11390   case $lt_echo in
11391   *'\$0 --fallback-echo"')
11392     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11393     ;;
11394   esac
11395
11396 cfgfile="${ofile}T"
11397   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11398   $rm -f "$cfgfile"
11399   { echo "$as_me:$LINENO: creating $ofile" >&5
11400 echo "$as_me: creating $ofile" >&6;}
11401
11402   cat <<__EOF__ >> "$cfgfile"
11403 #! $SHELL
11404
11405 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11406 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11407 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11408 #
11409 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11410 # Free Software Foundation, Inc.
11411 #
11412 # This file is part of GNU Libtool:
11413 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11414 #
11415 # This program is free software; you can redistribute it and/or modify
11416 # it under the terms of the GNU General Public License as published by
11417 # the Free Software Foundation; either version 2 of the License, or
11418 # (at your option) any later version.
11419 #
11420 # This program is distributed in the hope that it will be useful, but
11421 # WITHOUT ANY WARRANTY; without even the implied warranty of
11422 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11423 # General Public License for more details.
11424 #
11425 # You should have received a copy of the GNU General Public License
11426 # along with this program; if not, write to the Free Software
11427 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11428 #
11429 # As a special exception to the GNU General Public License, if you
11430 # distribute this file as part of a program that contains a
11431 # configuration script generated by Autoconf, you may include it under
11432 # the same distribution terms that you use for the rest of that program.
11433
11434 # A sed program that does not truncate output.
11435 SED=$lt_SED
11436
11437 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11438 Xsed="$SED -e 1s/^X//"
11439
11440 # The HP-UX ksh and POSIX shell print the target directory to stdout
11441 # if CDPATH is set.
11442 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11443
11444 # The names of the tagged configurations supported by this script.
11445 available_tags=
11446
11447 # ### BEGIN LIBTOOL CONFIG
11448
11449 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11450
11451 # Shell to use when invoking shell scripts.
11452 SHELL=$lt_SHELL
11453
11454 # Whether or not to build shared libraries.
11455 build_libtool_libs=$enable_shared
11456
11457 # Whether or not to build static libraries.
11458 build_old_libs=$enable_static
11459
11460 # Whether or not to add -lc for building shared libraries.
11461 build_libtool_need_lc=$archive_cmds_need_lc
11462
11463 # Whether or not to disallow shared libs when runtime libs are static
11464 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11465
11466 # Whether or not to optimize for fast installation.
11467 fast_install=$enable_fast_install
11468
11469 # The host system.
11470 host_alias=$host_alias
11471 host=$host
11472 host_os=$host_os
11473
11474 # The build system.
11475 build_alias=$build_alias
11476 build=$build
11477 build_os=$build_os
11478
11479 # An echo program that does not interpret backslashes.
11480 echo=$lt_echo
11481
11482 # The archiver.
11483 AR=$lt_AR
11484 AR_FLAGS=$lt_AR_FLAGS
11485
11486 # A C compiler.
11487 LTCC=$lt_LTCC
11488
11489 # A language-specific compiler.
11490 CC=$lt_compiler
11491
11492 # Is the compiler the GNU C compiler?
11493 with_gcc=$GCC
11494
11495 # An ERE matcher.
11496 EGREP=$lt_EGREP
11497
11498 # The linker used to build libraries.
11499 LD=$lt_LD
11500
11501 # Whether we need hard or soft links.
11502 LN_S=$lt_LN_S
11503
11504 # A BSD-compatible nm program.
11505 NM=$lt_NM
11506
11507 # A symbol stripping program
11508 STRIP=$lt_STRIP
11509
11510 # Used to examine libraries when file_magic_cmd begins "file"
11511 MAGIC_CMD=$MAGIC_CMD
11512
11513 # Used on cygwin: DLL creation program.
11514 DLLTOOL="$DLLTOOL"
11515
11516 # Used on cygwin: object dumper.
11517 OBJDUMP="$OBJDUMP"
11518
11519 # Used on cygwin: assembler.
11520 AS="$AS"
11521
11522 # The name of the directory that contains temporary libtool files.
11523 objdir=$objdir
11524
11525 # How to create reloadable object files.
11526 reload_flag=$lt_reload_flag
11527 reload_cmds=$lt_reload_cmds
11528
11529 # How to pass a linker flag through the compiler.
11530 wl=$lt_lt_prog_compiler_wl
11531
11532 # Object file suffix (normally "o").
11533 objext="$ac_objext"
11534
11535 # Old archive suffix (normally "a").
11536 libext="$libext"
11537
11538 # Shared library suffix (normally ".so").
11539 shrext_cmds='$shrext_cmds'
11540
11541 # Executable file suffix (normally "").
11542 exeext="$exeext"
11543
11544 # Additional compiler flags for building library objects.
11545 pic_flag=$lt_lt_prog_compiler_pic
11546 pic_mode=$pic_mode
11547
11548 # What is the maximum length of a command?
11549 max_cmd_len=$lt_cv_sys_max_cmd_len
11550
11551 # Does compiler simultaneously support -c and -o options?
11552 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11553
11554 # Must we lock files when doing compilation?
11555 need_locks=$lt_need_locks
11556
11557 # Do we need the lib prefix for modules?
11558 need_lib_prefix=$need_lib_prefix
11559
11560 # Do we need a version for libraries?
11561 need_version=$need_version
11562
11563 # Whether dlopen is supported.
11564 dlopen_support=$enable_dlopen
11565
11566 # Whether dlopen of programs is supported.
11567 dlopen_self=$enable_dlopen_self
11568
11569 # Whether dlopen of statically linked programs is supported.
11570 dlopen_self_static=$enable_dlopen_self_static
11571
11572 # Compiler flag to prevent dynamic linking.
11573 link_static_flag=$lt_lt_prog_compiler_static
11574
11575 # Compiler flag to turn off builtin functions.
11576 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11577
11578 # Compiler flag to allow reflexive dlopens.
11579 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11580
11581 # Compiler flag to generate shared objects directly from archives.
11582 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11583
11584 # Compiler flag to generate thread-safe objects.
11585 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11586
11587 # Library versioning type.
11588 version_type=$version_type
11589
11590 # Format of library name prefix.
11591 libname_spec=$lt_libname_spec
11592
11593 # List of archive names.  First name is the real one, the rest are links.
11594 # The last name is the one that the linker finds with -lNAME.
11595 library_names_spec=$lt_library_names_spec
11596
11597 # The coded name of the library, if different from the real name.
11598 soname_spec=$lt_soname_spec
11599
11600 # Commands used to build and install an old-style archive.
11601 RANLIB=$lt_RANLIB
11602 old_archive_cmds=$lt_old_archive_cmds
11603 old_postinstall_cmds=$lt_old_postinstall_cmds
11604 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11605
11606 # Create an old-style archive from a shared archive.
11607 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11608
11609 # Create a temporary old-style archive to link instead of a shared archive.
11610 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11611
11612 # Commands used to build and install a shared archive.
11613 archive_cmds=$lt_archive_cmds
11614 archive_expsym_cmds=$lt_archive_expsym_cmds
11615 postinstall_cmds=$lt_postinstall_cmds
11616 postuninstall_cmds=$lt_postuninstall_cmds
11617
11618 # Commands used to build a loadable module (assumed same as above if empty)
11619 module_cmds=$lt_module_cmds
11620 module_expsym_cmds=$lt_module_expsym_cmds
11621
11622 # Commands to strip libraries.
11623 old_striplib=$lt_old_striplib
11624 striplib=$lt_striplib
11625
11626 # Dependencies to place before the objects being linked to create a
11627 # shared library.
11628 predep_objects=$lt_predep_objects
11629
11630 # Dependencies to place after the objects being linked to create a
11631 # shared library.
11632 postdep_objects=$lt_postdep_objects
11633
11634 # Dependencies to place before the objects being linked to create a
11635 # shared library.
11636 predeps=$lt_predeps
11637
11638 # Dependencies to place after the objects being linked to create a
11639 # shared library.
11640 postdeps=$lt_postdeps
11641
11642 # The library search path used internally by the compiler when linking
11643 # a shared library.
11644 compiler_lib_search_path=$lt_compiler_lib_search_path
11645
11646 # Method to check whether dependent libraries are shared objects.
11647 deplibs_check_method=$lt_deplibs_check_method
11648
11649 # Command to use when deplibs_check_method == file_magic.
11650 file_magic_cmd=$lt_file_magic_cmd
11651
11652 # Flag that allows shared libraries with undefined symbols to be built.
11653 allow_undefined_flag=$lt_allow_undefined_flag
11654
11655 # Flag that forces no undefined symbols.
11656 no_undefined_flag=$lt_no_undefined_flag
11657
11658 # Commands used to finish a libtool library installation in a directory.
11659 finish_cmds=$lt_finish_cmds
11660
11661 # Same as above, but a single script fragment to be evaled but not shown.
11662 finish_eval=$lt_finish_eval
11663
11664 # Take the output of nm and produce a listing of raw symbols and C names.
11665 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11666
11667 # Transform the output of nm in a proper C declaration
11668 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11669
11670 # Transform the output of nm in a C name address pair
11671 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11672
11673 # This is the shared library runtime path variable.
11674 runpath_var=$runpath_var
11675
11676 # This is the shared library path variable.
11677 shlibpath_var=$shlibpath_var
11678
11679 # Is shlibpath searched before the hard-coded library search path?
11680 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11681
11682 # How to hardcode a shared library path into an executable.
11683 hardcode_action=$hardcode_action
11684
11685 # Whether we should hardcode library paths into libraries.
11686 hardcode_into_libs=$hardcode_into_libs
11687
11688 # Flag to hardcode \$libdir into a binary during linking.
11689 # This must work even if \$libdir does not exist.
11690 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11691
11692 # If ld is used when linking, flag to hardcode \$libdir into
11693 # a binary during linking. This must work even if \$libdir does
11694 # not exist.
11695 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11696
11697 # Whether we need a single -rpath flag with a separated argument.
11698 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11699
11700 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11701 # resulting binary.
11702 hardcode_direct=$hardcode_direct
11703
11704 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11705 # resulting binary.
11706 hardcode_minus_L=$hardcode_minus_L
11707
11708 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11709 # the resulting binary.
11710 hardcode_shlibpath_var=$hardcode_shlibpath_var
11711
11712 # Set to yes if building a shared library automatically hardcodes DIR into the library
11713 # and all subsequent libraries and executables linked against it.
11714 hardcode_automatic=$hardcode_automatic
11715
11716 # Variables whose values should be saved in libtool wrapper scripts and
11717 # restored at relink time.
11718 variables_saved_for_relink="$variables_saved_for_relink"
11719
11720 # Whether libtool must link a program against all its dependency libraries.
11721 link_all_deplibs=$link_all_deplibs
11722
11723 # Compile-time system search path for libraries
11724 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11725
11726 # Run-time system search path for libraries
11727 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11728
11729 # Fix the shell variable \$srcfile for the compiler.
11730 fix_srcfile_path="$fix_srcfile_path"
11731
11732 # Set to yes if exported symbols are required.
11733 always_export_symbols=$always_export_symbols
11734
11735 # The commands to list exported symbols.
11736 export_symbols_cmds=$lt_export_symbols_cmds
11737
11738 # The commands to extract the exported symbol list from a shared archive.
11739 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11740
11741 # Symbols that should not be listed in the preloaded symbols.
11742 exclude_expsyms=$lt_exclude_expsyms
11743
11744 # Symbols that must always be exported.
11745 include_expsyms=$lt_include_expsyms
11746
11747 # ### END LIBTOOL CONFIG
11748
11749 __EOF__
11750
11751
11752   case $host_os in
11753   aix3*)
11754     cat <<\EOF >> "$cfgfile"
11755
11756 # AIX sometimes has problems with the GCC collect2 program.  For some
11757 # reason, if we set the COLLECT_NAMES environment variable, the problems
11758 # vanish in a puff of smoke.
11759 if test "X${COLLECT_NAMES+set}" != Xset; then
11760   COLLECT_NAMES=
11761   export COLLECT_NAMES
11762 fi
11763 EOF
11764     ;;
11765   esac
11766
11767   # We use sed instead of cat because bash on DJGPP gets confused if
11768   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11769   # text mode, it properly converts lines to CR/LF.  This bash problem
11770   # is reportedly fixed, but why not run on old versions too?
11771   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11772
11773   mv -f "$cfgfile" "$ofile" || \
11774     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11775   chmod +x "$ofile"
11776
11777 else
11778   # If there is no Makefile yet, we rely on a make rule to execute
11779   # `config.status --recheck' to rerun these tests and create the
11780   # libtool script then.
11781   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11782   if test -f "$ltmain_in"; then
11783     test -f Makefile && make "$ltmain"
11784   fi
11785 fi
11786
11787
11788 ac_ext=c
11789 ac_cpp='$CPP $CPPFLAGS'
11790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11793
11794 CC="$lt_save_CC"
11795
11796
11797 # Check whether --with-tags was given.
11798 if test "${with_tags+set}" = set; then
11799   withval=$with_tags; tagnames="$withval"
11800 fi
11801
11802
11803 if test -f "$ltmain" && test -n "$tagnames"; then
11804   if test ! -f "${ofile}"; then
11805     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11806 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11807   fi
11808
11809   if test -z "$LTCC"; then
11810     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11811     if test -z "$LTCC"; then
11812       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11813 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11814     else
11815       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11816 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11817     fi
11818   fi
11819
11820   # Extract list of available tagged configurations in $ofile.
11821   # Note that this assumes the entire list is on one line.
11822   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11823
11824   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11825   for tagname in $tagnames; do
11826     IFS="$lt_save_ifs"
11827     # Check whether tagname contains only valid characters
11828     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11829     "") ;;
11830     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11831 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11832    { (exit 1); exit 1; }; }
11833         ;;
11834     esac
11835
11836     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11837     then
11838       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11839 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11840    { (exit 1); exit 1; }; }
11841     fi
11842
11843     # Update the list of available tags.
11844     if test -n "$tagname"; then
11845       echo appending configuration tag \"$tagname\" to $ofile
11846
11847       case $tagname in
11848       CXX)
11849         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11850             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11851             (test "X$CXX" != "Xg++"))) ; then
11852           :
11853         else
11854           tagname=""
11855         fi
11856         ;;
11857
11858       F77)
11859         if test -n "$F77" && test "X$F77" != "Xno"; then
11860           :
11861         else
11862           tagname=""
11863         fi
11864         ;;
11865
11866       GCJ)
11867         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11868           :
11869         else
11870           tagname=""
11871         fi
11872         ;;
11873
11874       RC)
11875
11876
11877 # Source file extension for RC test sources.
11878 ac_ext=rc
11879
11880 # Object file extension for compiled RC test sources.
11881 objext=o
11882 objext_RC=$objext
11883
11884 # Code to be used in simple compile tests
11885 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11886
11887 # Code to be used in simple link tests
11888 lt_simple_link_test_code="$lt_simple_compile_test_code"
11889
11890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11891
11892 # If no C compiler was specified, use CC.
11893 LTCC=${LTCC-"$CC"}
11894
11895 # Allow CC to be a program name with arguments.
11896 compiler=$CC
11897
11898
11899 # save warnings/boilerplate of simple test code
11900 ac_outfile=conftest.$ac_objext
11901 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11902 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11903 _lt_compiler_boilerplate=`cat conftest.err`
11904 $rm conftest*
11905
11906 ac_outfile=conftest.$ac_objext
11907 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11908 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11909 _lt_linker_boilerplate=`cat conftest.err`
11910 $rm conftest*
11911
11912
11913 # Allow CC to be a program name with arguments.
11914 lt_save_CC="$CC"
11915 CC=${RC-"windres"}
11916 compiler=$CC
11917 compiler_RC=$CC
11918 for cc_temp in $compiler""; do
11919   case $cc_temp in
11920     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11921     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11922     \-*) ;;
11923     *) break;;
11924   esac
11925 done
11926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11927
11928 lt_cv_prog_compiler_c_o_RC=yes
11929
11930 # The else clause should only fire when bootstrapping the
11931 # libtool distribution, otherwise you forgot to ship ltmain.sh
11932 # with your package, and you will get complaints that there are
11933 # no rules to generate ltmain.sh.
11934 if test -f "$ltmain"; then
11935   # See if we are running on zsh, and set the options which allow our commands through
11936   # without removal of \ escapes.
11937   if test -n "${ZSH_VERSION+set}" ; then
11938     setopt NO_GLOB_SUBST
11939   fi
11940   # Now quote all the things that may contain metacharacters while being
11941   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11942   # variables and quote the copies for generation of the libtool script.
11943   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11944     SED SHELL STRIP \
11945     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11946     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11947     deplibs_check_method reload_flag reload_cmds need_locks \
11948     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11949     lt_cv_sys_global_symbol_to_c_name_address \
11950     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11951     old_postinstall_cmds old_postuninstall_cmds \
11952     compiler_RC \
11953     CC_RC \
11954     LD_RC \
11955     lt_prog_compiler_wl_RC \
11956     lt_prog_compiler_pic_RC \
11957     lt_prog_compiler_static_RC \
11958     lt_prog_compiler_no_builtin_flag_RC \
11959     export_dynamic_flag_spec_RC \
11960     thread_safe_flag_spec_RC \
11961     whole_archive_flag_spec_RC \
11962     enable_shared_with_static_runtimes_RC \
11963     old_archive_cmds_RC \
11964     old_archive_from_new_cmds_RC \
11965     predep_objects_RC \
11966     postdep_objects_RC \
11967     predeps_RC \
11968     postdeps_RC \
11969     compiler_lib_search_path_RC \
11970     archive_cmds_RC \
11971     archive_expsym_cmds_RC \
11972     postinstall_cmds_RC \
11973     postuninstall_cmds_RC \
11974     old_archive_from_expsyms_cmds_RC \
11975     allow_undefined_flag_RC \
11976     no_undefined_flag_RC \
11977     export_symbols_cmds_RC \
11978     hardcode_libdir_flag_spec_RC \
11979     hardcode_libdir_flag_spec_ld_RC \
11980     hardcode_libdir_separator_RC \
11981     hardcode_automatic_RC \
11982     module_cmds_RC \
11983     module_expsym_cmds_RC \
11984     lt_cv_prog_compiler_c_o_RC \
11985     exclude_expsyms_RC \
11986     include_expsyms_RC; do
11987
11988     case $var in
11989     old_archive_cmds_RC | \
11990     old_archive_from_new_cmds_RC | \
11991     archive_cmds_RC | \
11992     archive_expsym_cmds_RC | \
11993     module_cmds_RC | \
11994     module_expsym_cmds_RC | \
11995     old_archive_from_expsyms_cmds_RC | \
11996     export_symbols_cmds_RC | \
11997     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11998     postinstall_cmds | postuninstall_cmds | \
11999     old_postinstall_cmds | old_postuninstall_cmds | \
12000     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12001       # Double-quote double-evaled strings.
12002       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12003       ;;
12004     *)
12005       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12006       ;;
12007     esac
12008   done
12009
12010   case $lt_echo in
12011   *'\$0 --fallback-echo"')
12012     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12013     ;;
12014   esac
12015
12016 cfgfile="$ofile"
12017
12018   cat <<__EOF__ >> "$cfgfile"
12019 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12020
12021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12022
12023 # Shell to use when invoking shell scripts.
12024 SHELL=$lt_SHELL
12025
12026 # Whether or not to build shared libraries.
12027 build_libtool_libs=$enable_shared
12028
12029 # Whether or not to build static libraries.
12030 build_old_libs=$enable_static
12031
12032 # Whether or not to add -lc for building shared libraries.
12033 build_libtool_need_lc=$archive_cmds_need_lc_RC
12034
12035 # Whether or not to disallow shared libs when runtime libs are static
12036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12037
12038 # Whether or not to optimize for fast installation.
12039 fast_install=$enable_fast_install
12040
12041 # The host system.
12042 host_alias=$host_alias
12043 host=$host
12044 host_os=$host_os
12045
12046 # The build system.
12047 build_alias=$build_alias
12048 build=$build
12049 build_os=$build_os
12050
12051 # An echo program that does not interpret backslashes.
12052 echo=$lt_echo
12053
12054 # The archiver.
12055 AR=$lt_AR
12056 AR_FLAGS=$lt_AR_FLAGS
12057
12058 # A C compiler.
12059 LTCC=$lt_LTCC
12060
12061 # A language-specific compiler.
12062 CC=$lt_compiler_RC
12063
12064 # Is the compiler the GNU C compiler?
12065 with_gcc=$GCC_RC
12066
12067 # An ERE matcher.
12068 EGREP=$lt_EGREP
12069
12070 # The linker used to build libraries.
12071 LD=$lt_LD_RC
12072
12073 # Whether we need hard or soft links.
12074 LN_S=$lt_LN_S
12075
12076 # A BSD-compatible nm program.
12077 NM=$lt_NM
12078
12079 # A symbol stripping program
12080 STRIP=$lt_STRIP
12081
12082 # Used to examine libraries when file_magic_cmd begins "file"
12083 MAGIC_CMD=$MAGIC_CMD
12084
12085 # Used on cygwin: DLL creation program.
12086 DLLTOOL="$DLLTOOL"
12087
12088 # Used on cygwin: object dumper.
12089 OBJDUMP="$OBJDUMP"
12090
12091 # Used on cygwin: assembler.
12092 AS="$AS"
12093
12094 # The name of the directory that contains temporary libtool files.
12095 objdir=$objdir
12096
12097 # How to create reloadable object files.
12098 reload_flag=$lt_reload_flag
12099 reload_cmds=$lt_reload_cmds
12100
12101 # How to pass a linker flag through the compiler.
12102 wl=$lt_lt_prog_compiler_wl_RC
12103
12104 # Object file suffix (normally "o").
12105 objext="$ac_objext"
12106
12107 # Old archive suffix (normally "a").
12108 libext="$libext"
12109
12110 # Shared library suffix (normally ".so").
12111 shrext_cmds='$shrext_cmds'
12112
12113 # Executable file suffix (normally "").
12114 exeext="$exeext"
12115
12116 # Additional compiler flags for building library objects.
12117 pic_flag=$lt_lt_prog_compiler_pic_RC
12118 pic_mode=$pic_mode
12119
12120 # What is the maximum length of a command?
12121 max_cmd_len=$lt_cv_sys_max_cmd_len
12122
12123 # Does compiler simultaneously support -c and -o options?
12124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12125
12126 # Must we lock files when doing compilation?
12127 need_locks=$lt_need_locks
12128
12129 # Do we need the lib prefix for modules?
12130 need_lib_prefix=$need_lib_prefix
12131
12132 # Do we need a version for libraries?
12133 need_version=$need_version
12134
12135 # Whether dlopen is supported.
12136 dlopen_support=$enable_dlopen
12137
12138 # Whether dlopen of programs is supported.
12139 dlopen_self=$enable_dlopen_self
12140
12141 # Whether dlopen of statically linked programs is supported.
12142 dlopen_self_static=$enable_dlopen_self_static
12143
12144 # Compiler flag to prevent dynamic linking.
12145 link_static_flag=$lt_lt_prog_compiler_static_RC
12146
12147 # Compiler flag to turn off builtin functions.
12148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12149
12150 # Compiler flag to allow reflexive dlopens.
12151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12152
12153 # Compiler flag to generate shared objects directly from archives.
12154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12155
12156 # Compiler flag to generate thread-safe objects.
12157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12158
12159 # Library versioning type.
12160 version_type=$version_type
12161
12162 # Format of library name prefix.
12163 libname_spec=$lt_libname_spec
12164
12165 # List of archive names.  First name is the real one, the rest are links.
12166 # The last name is the one that the linker finds with -lNAME.
12167 library_names_spec=$lt_library_names_spec
12168
12169 # The coded name of the library, if different from the real name.
12170 soname_spec=$lt_soname_spec
12171
12172 # Commands used to build and install an old-style archive.
12173 RANLIB=$lt_RANLIB
12174 old_archive_cmds=$lt_old_archive_cmds_RC
12175 old_postinstall_cmds=$lt_old_postinstall_cmds
12176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12177
12178 # Create an old-style archive from a shared archive.
12179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12180
12181 # Create a temporary old-style archive to link instead of a shared archive.
12182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12183
12184 # Commands used to build and install a shared archive.
12185 archive_cmds=$lt_archive_cmds_RC
12186 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12187 postinstall_cmds=$lt_postinstall_cmds
12188 postuninstall_cmds=$lt_postuninstall_cmds
12189
12190 # Commands used to build a loadable module (assumed same as above if empty)
12191 module_cmds=$lt_module_cmds_RC
12192 module_expsym_cmds=$lt_module_expsym_cmds_RC
12193
12194 # Commands to strip libraries.
12195 old_striplib=$lt_old_striplib
12196 striplib=$lt_striplib
12197
12198 # Dependencies to place before the objects being linked to create a
12199 # shared library.
12200 predep_objects=$lt_predep_objects_RC
12201
12202 # Dependencies to place after the objects being linked to create a
12203 # shared library.
12204 postdep_objects=$lt_postdep_objects_RC
12205
12206 # Dependencies to place before the objects being linked to create a
12207 # shared library.
12208 predeps=$lt_predeps_RC
12209
12210 # Dependencies to place after the objects being linked to create a
12211 # shared library.
12212 postdeps=$lt_postdeps_RC
12213
12214 # The library search path used internally by the compiler when linking
12215 # a shared library.
12216 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12217
12218 # Method to check whether dependent libraries are shared objects.
12219 deplibs_check_method=$lt_deplibs_check_method
12220
12221 # Command to use when deplibs_check_method == file_magic.
12222 file_magic_cmd=$lt_file_magic_cmd
12223
12224 # Flag that allows shared libraries with undefined symbols to be built.
12225 allow_undefined_flag=$lt_allow_undefined_flag_RC
12226
12227 # Flag that forces no undefined symbols.
12228 no_undefined_flag=$lt_no_undefined_flag_RC
12229
12230 # Commands used to finish a libtool library installation in a directory.
12231 finish_cmds=$lt_finish_cmds
12232
12233 # Same as above, but a single script fragment to be evaled but not shown.
12234 finish_eval=$lt_finish_eval
12235
12236 # Take the output of nm and produce a listing of raw symbols and C names.
12237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12238
12239 # Transform the output of nm in a proper C declaration
12240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12241
12242 # Transform the output of nm in a C name address pair
12243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12244
12245 # This is the shared library runtime path variable.
12246 runpath_var=$runpath_var
12247
12248 # This is the shared library path variable.
12249 shlibpath_var=$shlibpath_var
12250
12251 # Is shlibpath searched before the hard-coded library search path?
12252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12253
12254 # How to hardcode a shared library path into an executable.
12255 hardcode_action=$hardcode_action_RC
12256
12257 # Whether we should hardcode library paths into libraries.
12258 hardcode_into_libs=$hardcode_into_libs
12259
12260 # Flag to hardcode \$libdir into a binary during linking.
12261 # This must work even if \$libdir does not exist.
12262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12263
12264 # If ld is used when linking, flag to hardcode \$libdir into
12265 # a binary during linking. This must work even if \$libdir does
12266 # not exist.
12267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12268
12269 # Whether we need a single -rpath flag with a separated argument.
12270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12271
12272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12273 # resulting binary.
12274 hardcode_direct=$hardcode_direct_RC
12275
12276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12277 # resulting binary.
12278 hardcode_minus_L=$hardcode_minus_L_RC
12279
12280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12281 # the resulting binary.
12282 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12283
12284 # Set to yes if building a shared library automatically hardcodes DIR into the library
12285 # and all subsequent libraries and executables linked against it.
12286 hardcode_automatic=$hardcode_automatic_RC
12287
12288 # Variables whose values should be saved in libtool wrapper scripts and
12289 # restored at relink time.
12290 variables_saved_for_relink="$variables_saved_for_relink"
12291
12292 # Whether libtool must link a program against all its dependency libraries.
12293 link_all_deplibs=$link_all_deplibs_RC
12294
12295 # Compile-time system search path for libraries
12296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12297
12298 # Run-time system search path for libraries
12299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12300
12301 # Fix the shell variable \$srcfile for the compiler.
12302 fix_srcfile_path="$fix_srcfile_path_RC"
12303
12304 # Set to yes if exported symbols are required.
12305 always_export_symbols=$always_export_symbols_RC
12306
12307 # The commands to list exported symbols.
12308 export_symbols_cmds=$lt_export_symbols_cmds_RC
12309
12310 # The commands to extract the exported symbol list from a shared archive.
12311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12312
12313 # Symbols that should not be listed in the preloaded symbols.
12314 exclude_expsyms=$lt_exclude_expsyms_RC
12315
12316 # Symbols that must always be exported.
12317 include_expsyms=$lt_include_expsyms_RC
12318
12319 # ### END LIBTOOL TAG CONFIG: $tagname
12320
12321 __EOF__
12322
12323
12324 else
12325   # If there is no Makefile yet, we rely on a make rule to execute
12326   # `config.status --recheck' to rerun these tests and create the
12327   # libtool script then.
12328   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12329   if test -f "$ltmain_in"; then
12330     test -f Makefile && make "$ltmain"
12331   fi
12332 fi
12333
12334
12335 ac_ext=c
12336 ac_cpp='$CPP $CPPFLAGS'
12337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12340
12341 CC="$lt_save_CC"
12342
12343         ;;
12344
12345       *)
12346         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12347 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12348    { (exit 1); exit 1; }; }
12349         ;;
12350       esac
12351
12352       # Append the new tag name to the list of available tags.
12353       if test -n "$tagname" ; then
12354       available_tags="$available_tags $tagname"
12355     fi
12356     fi
12357   done
12358   IFS="$lt_save_ifs"
12359
12360   # Now substitute the updated list of available tags.
12361   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12362     mv "${ofile}T" "$ofile"
12363     chmod +x "$ofile"
12364   else
12365     rm -f "${ofile}T"
12366     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12367 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12368    { (exit 1); exit 1; }; }
12369   fi
12370 fi
12371
12372
12373
12374 # This can be used to rebuild libtool when needed
12375 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12376
12377 # Always use our own libtool.
12378 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12379
12380 # Prevent multiple expansion
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391 ol_link_perl=no
12392 if test $ol_enable_perl != no ; then
12393         # Extract the first word of "perl", so it can be a program name with args.
12394 set dummy perl; ac_word=$2
12395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12397 if test "${ac_cv_path_PERLBIN+set}" = set; then
12398   echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400   case $PERLBIN in
12401   [\\/]* | ?:[\\/]*)
12402   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12403   ;;
12404   *)
12405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $PATH
12407 do
12408   IFS=$as_save_IFS
12409   test -z "$as_dir" && as_dir=.
12410   for ac_exec_ext in '' $ac_executable_extensions; do
12411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12412     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12414     break 2
12415   fi
12416 done
12417 done
12418 IFS=$as_save_IFS
12419
12420   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12421   ;;
12422 esac
12423 fi
12424 PERLBIN=$ac_cv_path_PERLBIN
12425 if test -n "$PERLBIN"; then
12426   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12427 echo "${ECHO_T}$PERLBIN" >&6; }
12428 else
12429   { echo "$as_me:$LINENO: result: no" >&5
12430 echo "${ECHO_T}no" >&6; }
12431 fi
12432
12433
12434
12435         if test "no$PERLBIN" = "no" ; then
12436                 if test $ol_enable_perl = yes ; then
12437                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12438 echo "$as_me: error: could not locate perl" >&2;}
12439    { (exit 1); exit 1; }; }
12440                 fi
12441
12442         else
12443                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12444                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12445
12446                 if test x"$ol_enable_perl" = "xyes" ; then
12447                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12448                 else
12449                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12450                 fi
12451                                 ol_link_perl=yes
12452         fi
12453 fi
12454
12455 ac_ext=c
12456 ac_cpp='$CPP $CPPFLAGS'
12457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12460 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12461 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12462 # On Suns, sometimes $CPP names a directory.
12463 if test -n "$CPP" && test -d "$CPP"; then
12464   CPP=
12465 fi
12466 if test -z "$CPP"; then
12467   if test "${ac_cv_prog_CPP+set}" = set; then
12468   echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470       # Double quotes because CPP needs to be expanded
12471     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12472     do
12473       ac_preproc_ok=false
12474 for ac_c_preproc_warn_flag in '' yes
12475 do
12476   # Use a header file that comes with gcc, so configuring glibc
12477   # with a fresh cross-compiler works.
12478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12479   # <limits.h> exists even on freestanding compilers.
12480   # On the NeXT, cc -E runs the code through the compiler's parser,
12481   # not just through cpp. "Syntax error" is here to catch this case.
12482   cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h.  */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h.  */
12488 #ifdef __STDC__
12489 # include <limits.h>
12490 #else
12491 # include <assert.h>
12492 #endif
12493                      Syntax error
12494 _ACEOF
12495 if { (ac_try="$ac_cpp conftest.$ac_ext"
12496 case "(($ac_try" in
12497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498   *) ac_try_echo=$ac_try;;
12499 esac
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12502   ac_status=$?
12503   grep -v '^ *+' conftest.er1 >conftest.err
12504   rm -f conftest.er1
12505   cat conftest.err >&5
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } >/dev/null && {
12508          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12509          test ! -s conftest.err
12510        }; then
12511   :
12512 else
12513   echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12515
12516   # Broken: fails on valid input.
12517 continue
12518 fi
12519
12520 rm -f conftest.err conftest.$ac_ext
12521
12522   # OK, works on sane cases.  Now check whether nonexistent headers
12523   # can be detected and how.
12524   cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h.  */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h.  */
12530 #include <ac_nonexistent.h>
12531 _ACEOF
12532 if { (ac_try="$ac_cpp conftest.$ac_ext"
12533 case "(($ac_try" in
12534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535   *) ac_try_echo=$ac_try;;
12536 esac
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12539   ac_status=$?
12540   grep -v '^ *+' conftest.er1 >conftest.err
12541   rm -f conftest.er1
12542   cat conftest.err >&5
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); } >/dev/null && {
12545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12546          test ! -s conftest.err
12547        }; then
12548   # Broken: success on invalid input.
12549 continue
12550 else
12551   echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554   # Passes both tests.
12555 ac_preproc_ok=:
12556 break
12557 fi
12558
12559 rm -f conftest.err conftest.$ac_ext
12560
12561 done
12562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12563 rm -f conftest.err conftest.$ac_ext
12564 if $ac_preproc_ok; then
12565   break
12566 fi
12567
12568     done
12569     ac_cv_prog_CPP=$CPP
12570
12571 fi
12572   CPP=$ac_cv_prog_CPP
12573 else
12574   ac_cv_prog_CPP=$CPP
12575 fi
12576 { echo "$as_me:$LINENO: result: $CPP" >&5
12577 echo "${ECHO_T}$CPP" >&6; }
12578 ac_preproc_ok=false
12579 for ac_c_preproc_warn_flag in '' yes
12580 do
12581   # Use a header file that comes with gcc, so configuring glibc
12582   # with a fresh cross-compiler works.
12583   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584   # <limits.h> exists even on freestanding compilers.
12585   # On the NeXT, cc -E runs the code through the compiler's parser,
12586   # not just through cpp. "Syntax error" is here to catch this case.
12587   cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593 #ifdef __STDC__
12594 # include <limits.h>
12595 #else
12596 # include <assert.h>
12597 #endif
12598                      Syntax error
12599 _ACEOF
12600 if { (ac_try="$ac_cpp conftest.$ac_ext"
12601 case "(($ac_try" in
12602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603   *) ac_try_echo=$ac_try;;
12604 esac
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12607   ac_status=$?
12608   grep -v '^ *+' conftest.er1 >conftest.err
12609   rm -f conftest.er1
12610   cat conftest.err >&5
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } >/dev/null && {
12613          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12614          test ! -s conftest.err
12615        }; then
12616   :
12617 else
12618   echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621   # Broken: fails on valid input.
12622 continue
12623 fi
12624
12625 rm -f conftest.err conftest.$ac_ext
12626
12627   # OK, works on sane cases.  Now check whether nonexistent headers
12628   # can be detected and how.
12629   cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h.  */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h.  */
12635 #include <ac_nonexistent.h>
12636 _ACEOF
12637 if { (ac_try="$ac_cpp conftest.$ac_ext"
12638 case "(($ac_try" in
12639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640   *) ac_try_echo=$ac_try;;
12641 esac
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12644   ac_status=$?
12645   grep -v '^ *+' conftest.er1 >conftest.err
12646   rm -f conftest.er1
12647   cat conftest.err >&5
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); } >/dev/null && {
12650          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12651          test ! -s conftest.err
12652        }; then
12653   # Broken: success on invalid input.
12654 continue
12655 else
12656   echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659   # Passes both tests.
12660 ac_preproc_ok=:
12661 break
12662 fi
12663
12664 rm -f conftest.err conftest.$ac_ext
12665
12666 done
12667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12668 rm -f conftest.err conftest.$ac_ext
12669 if $ac_preproc_ok; then
12670   :
12671 else
12672   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12673 See \`config.log' for more details." >&5
12674 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12675 See \`config.log' for more details." >&2;}
12676    { (exit 1); exit 1; }; }
12677 fi
12678
12679 ac_ext=c
12680 ac_cpp='$CPP $CPPFLAGS'
12681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12684
12685 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12686 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12687 if test "${ol_cv_msvc+set}" = set; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690   cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h.  */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h.  */
12696
12697 #ifndef _MSC_VER
12698 #include <__FOO__/generate_error.h>
12699 #endif
12700
12701 _ACEOF
12702 if { (ac_try="$ac_cpp conftest.$ac_ext"
12703 case "(($ac_try" in
12704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705   *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12709   ac_status=$?
12710   grep -v '^ *+' conftest.er1 >conftest.err
12711   rm -f conftest.er1
12712   cat conftest.err >&5
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); } >/dev/null && {
12715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12716          test ! -s conftest.err
12717        }; then
12718   ol_cv_msvc=yes
12719 else
12720   echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723   ol_cv_msvc=no
12724 fi
12725
12726 rm -f conftest.err conftest.$ac_ext
12727 fi
12728 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12729 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12730
12731 case $host_os in
12732   *mingw32* ) ac_cv_mingw32=yes ;;
12733   *cygwin* ) ac_cv_cygwin=yes ;;
12734   *interix* ) ac_cv_interix=yes ;;
12735 esac
12736
12737
12738
12739
12740 cat >>confdefs.h <<_ACEOF
12741 #define EXEEXT "${EXEEXT}"
12742 _ACEOF
12743
12744
12745 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12746 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12747 if test "${ac_cv_lib_be_be_app+set}" = set; then
12748   echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750   ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lbe -lroot -lnet $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h.  */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h.  */
12758
12759 /* Override any GCC internal prototype to avoid an error.
12760    Use char because int might match the return type of a GCC
12761    builtin and then its argument prototype would still apply.  */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char be_app ();
12766 int
12767 main ()
12768 {
12769 return be_app ();
12770   ;
12771   return 0;
12772 }
12773 _ACEOF
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778   *) ac_try_echo=$ac_try;;
12779 esac
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781   (eval "$ac_link") 2>conftest.er1
12782   ac_status=$?
12783   grep -v '^ *+' conftest.er1 >conftest.err
12784   rm -f conftest.er1
12785   cat conftest.err >&5
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); } && {
12788          test -z "$ac_c_werror_flag" ||
12789          test ! -s conftest.err
12790        } && test -s conftest$ac_exeext &&
12791        $as_test_x conftest$ac_exeext; then
12792   ac_cv_lib_be_be_app=yes
12793 else
12794   echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797         ac_cv_lib_be_be_app=no
12798 fi
12799
12800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12801       conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12803 fi
12804 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12805 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12806 if test $ac_cv_lib_be_be_app = yes; then
12807   LIBS="$LIBS -lbe -lroot -lnet"
12808 else
12809   :
12810 fi
12811
12812
12813 ac_ext=c
12814 ac_cpp='$CPP $CPPFLAGS'
12815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12818 if test -n "$ac_tool_prefix"; then
12819   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12820 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12823 if test "${ac_cv_prog_CC+set}" = set; then
12824   echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826   if test -n "$CC"; then
12827   ac_cv_prog_CC="$CC" # Let the user override the test.
12828 else
12829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830 for as_dir in $PATH
12831 do
12832   IFS=$as_save_IFS
12833   test -z "$as_dir" && as_dir=.
12834   for ac_exec_ext in '' $ac_executable_extensions; do
12835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12836     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12838     break 2
12839   fi
12840 done
12841 done
12842 IFS=$as_save_IFS
12843
12844 fi
12845 fi
12846 CC=$ac_cv_prog_CC
12847 if test -n "$CC"; then
12848   { echo "$as_me:$LINENO: result: $CC" >&5
12849 echo "${ECHO_T}$CC" >&6; }
12850 else
12851   { echo "$as_me:$LINENO: result: no" >&5
12852 echo "${ECHO_T}no" >&6; }
12853 fi
12854
12855
12856 fi
12857 if test -z "$ac_cv_prog_CC"; then
12858   ac_ct_CC=$CC
12859   # Extract the first word of "gcc", so it can be a program name with args.
12860 set dummy gcc; ac_word=$2
12861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12864   echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866   if test -n "$ac_ct_CC"; then
12867   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12868 else
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12871 do
12872   IFS=$as_save_IFS
12873   test -z "$as_dir" && as_dir=.
12874   for ac_exec_ext in '' $ac_executable_extensions; do
12875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876     ac_cv_prog_ac_ct_CC="gcc"
12877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12878     break 2
12879   fi
12880 done
12881 done
12882 IFS=$as_save_IFS
12883
12884 fi
12885 fi
12886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12887 if test -n "$ac_ct_CC"; then
12888   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12889 echo "${ECHO_T}$ac_ct_CC" >&6; }
12890 else
12891   { echo "$as_me:$LINENO: result: no" >&5
12892 echo "${ECHO_T}no" >&6; }
12893 fi
12894
12895   if test "x$ac_ct_CC" = x; then
12896     CC=""
12897   else
12898     case $cross_compiling:$ac_tool_warned in
12899 yes:)
12900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12901 whose name does not start with the host triplet.  If you think this
12902 configuration is useful to you, please write to autoconf@gnu.org." >&5
12903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12904 whose name does not start with the host triplet.  If you think this
12905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12906 ac_tool_warned=yes ;;
12907 esac
12908     CC=$ac_ct_CC
12909   fi
12910 else
12911   CC="$ac_cv_prog_CC"
12912 fi
12913
12914 if test -z "$CC"; then
12915           if test -n "$ac_tool_prefix"; then
12916     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12917 set dummy ${ac_tool_prefix}cc; ac_word=$2
12918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12920 if test "${ac_cv_prog_CC+set}" = set; then
12921   echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923   if test -n "$CC"; then
12924   ac_cv_prog_CC="$CC" # Let the user override the test.
12925 else
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12928 do
12929   IFS=$as_save_IFS
12930   test -z "$as_dir" && as_dir=.
12931   for ac_exec_ext in '' $ac_executable_extensions; do
12932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12933     ac_cv_prog_CC="${ac_tool_prefix}cc"
12934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12935     break 2
12936   fi
12937 done
12938 done
12939 IFS=$as_save_IFS
12940
12941 fi
12942 fi
12943 CC=$ac_cv_prog_CC
12944 if test -n "$CC"; then
12945   { echo "$as_me:$LINENO: result: $CC" >&5
12946 echo "${ECHO_T}$CC" >&6; }
12947 else
12948   { echo "$as_me:$LINENO: result: no" >&5
12949 echo "${ECHO_T}no" >&6; }
12950 fi
12951
12952
12953   fi
12954 fi
12955 if test -z "$CC"; then
12956   # Extract the first word of "cc", so it can be a program name with args.
12957 set dummy cc; ac_word=$2
12958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12960 if test "${ac_cv_prog_CC+set}" = set; then
12961   echo $ECHO_N "(cached) $ECHO_C" >&6
12962 else
12963   if test -n "$CC"; then
12964   ac_cv_prog_CC="$CC" # Let the user override the test.
12965 else
12966   ac_prog_rejected=no
12967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12969 do
12970   IFS=$as_save_IFS
12971   test -z "$as_dir" && as_dir=.
12972   for ac_exec_ext in '' $ac_executable_extensions; do
12973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12974     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12975        ac_prog_rejected=yes
12976        continue
12977      fi
12978     ac_cv_prog_CC="cc"
12979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12980     break 2
12981   fi
12982 done
12983 done
12984 IFS=$as_save_IFS
12985
12986 if test $ac_prog_rejected = yes; then
12987   # We found a bogon in the path, so make sure we never use it.
12988   set dummy $ac_cv_prog_CC
12989   shift
12990   if test $# != 0; then
12991     # We chose a different compiler from the bogus one.
12992     # However, it has the same basename, so the bogon will be chosen
12993     # first if we set CC to just the basename; use the full file name.
12994     shift
12995     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12996   fi
12997 fi
12998 fi
12999 fi
13000 CC=$ac_cv_prog_CC
13001 if test -n "$CC"; then
13002   { echo "$as_me:$LINENO: result: $CC" >&5
13003 echo "${ECHO_T}$CC" >&6; }
13004 else
13005   { echo "$as_me:$LINENO: result: no" >&5
13006 echo "${ECHO_T}no" >&6; }
13007 fi
13008
13009
13010 fi
13011 if test -z "$CC"; then
13012   if test -n "$ac_tool_prefix"; then
13013   for ac_prog in cl.exe
13014   do
13015     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13019 if test "${ac_cv_prog_CC+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   if test -n "$CC"; then
13023   ac_cv_prog_CC="$CC" # Let the user override the test.
13024 else
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13027 do
13028   IFS=$as_save_IFS
13029   test -z "$as_dir" && as_dir=.
13030   for ac_exec_ext in '' $ac_executable_extensions; do
13031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13032     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13034     break 2
13035   fi
13036 done
13037 done
13038 IFS=$as_save_IFS
13039
13040 fi
13041 fi
13042 CC=$ac_cv_prog_CC
13043 if test -n "$CC"; then
13044   { echo "$as_me:$LINENO: result: $CC" >&5
13045 echo "${ECHO_T}$CC" >&6; }
13046 else
13047   { echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6; }
13049 fi
13050
13051
13052     test -n "$CC" && break
13053   done
13054 fi
13055 if test -z "$CC"; then
13056   ac_ct_CC=$CC
13057   for ac_prog in cl.exe
13058 do
13059   # Extract the first word of "$ac_prog", so it can be a program name with args.
13060 set dummy $ac_prog; ac_word=$2
13061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13064   echo $ECHO_N "(cached) $ECHO_C" >&6
13065 else
13066   if test -n "$ac_ct_CC"; then
13067   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13068 else
13069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in $PATH
13071 do
13072   IFS=$as_save_IFS
13073   test -z "$as_dir" && as_dir=.
13074   for ac_exec_ext in '' $ac_executable_extensions; do
13075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13076     ac_cv_prog_ac_ct_CC="$ac_prog"
13077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13078     break 2
13079   fi
13080 done
13081 done
13082 IFS=$as_save_IFS
13083
13084 fi
13085 fi
13086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13087 if test -n "$ac_ct_CC"; then
13088   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13089 echo "${ECHO_T}$ac_ct_CC" >&6; }
13090 else
13091   { echo "$as_me:$LINENO: result: no" >&5
13092 echo "${ECHO_T}no" >&6; }
13093 fi
13094
13095
13096   test -n "$ac_ct_CC" && break
13097 done
13098
13099   if test "x$ac_ct_CC" = x; then
13100     CC=""
13101   else
13102     case $cross_compiling:$ac_tool_warned in
13103 yes:)
13104 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13105 whose name does not start with the host triplet.  If you think this
13106 configuration is useful to you, please write to autoconf@gnu.org." >&5
13107 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13108 whose name does not start with the host triplet.  If you think this
13109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13110 ac_tool_warned=yes ;;
13111 esac
13112     CC=$ac_ct_CC
13113   fi
13114 fi
13115
13116 fi
13117
13118
13119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13120 See \`config.log' for more details." >&5
13121 echo "$as_me: error: no acceptable C compiler found in \$PATH
13122 See \`config.log' for more details." >&2;}
13123    { (exit 1); exit 1; }; }
13124
13125 # Provide some information about the compiler.
13126 echo "$as_me:$LINENO: checking for C compiler version" >&5
13127 ac_compiler=`set X $ac_compile; echo $2`
13128 { (ac_try="$ac_compiler --version >&5"
13129 case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_compiler --version >&5") 2>&5
13135   ac_status=$?
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); }
13138 { (ac_try="$ac_compiler -v >&5"
13139 case "(($ac_try" in
13140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141   *) ac_try_echo=$ac_try;;
13142 esac
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144   (eval "$ac_compiler -v >&5") 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }
13148 { (ac_try="$ac_compiler -V >&5"
13149 case "(($ac_try" in
13150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151   *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154   (eval "$ac_compiler -V >&5") 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }
13158
13159 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13160 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13161 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13162   echo $ECHO_N "(cached) $ECHO_C" >&6
13163 else
13164   cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h.  */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h.  */
13170
13171 int
13172 main ()
13173 {
13174 #ifndef __GNUC__
13175        choke me
13176 #endif
13177
13178   ;
13179   return 0;
13180 }
13181 _ACEOF
13182 rm -f conftest.$ac_objext
13183 if { (ac_try="$ac_compile"
13184 case "(($ac_try" in
13185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186   *) ac_try_echo=$ac_try;;
13187 esac
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189   (eval "$ac_compile") 2>conftest.er1
13190   ac_status=$?
13191   grep -v '^ *+' conftest.er1 >conftest.err
13192   rm -f conftest.er1
13193   cat conftest.err >&5
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } && {
13196          test -z "$ac_c_werror_flag" ||
13197          test ! -s conftest.err
13198        } && test -s conftest.$ac_objext; then
13199   ac_compiler_gnu=yes
13200 else
13201   echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204         ac_compiler_gnu=no
13205 fi
13206
13207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13209
13210 fi
13211 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13212 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13213 GCC=`test $ac_compiler_gnu = yes && echo yes`
13214 ac_test_CFLAGS=${CFLAGS+set}
13215 ac_save_CFLAGS=$CFLAGS
13216 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13217 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13218 if test "${ac_cv_prog_cc_g+set}" = set; then
13219   echo $ECHO_N "(cached) $ECHO_C" >&6
13220 else
13221   ac_save_c_werror_flag=$ac_c_werror_flag
13222    ac_c_werror_flag=yes
13223    ac_cv_prog_cc_g=no
13224    CFLAGS="-g"
13225    cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h.  */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h.  */
13231
13232 int
13233 main ()
13234 {
13235
13236   ;
13237   return 0;
13238 }
13239 _ACEOF
13240 rm -f conftest.$ac_objext
13241 if { (ac_try="$ac_compile"
13242 case "(($ac_try" in
13243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244   *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247   (eval "$ac_compile") 2>conftest.er1
13248   ac_status=$?
13249   grep -v '^ *+' conftest.er1 >conftest.err
13250   rm -f conftest.er1
13251   cat conftest.err >&5
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); } && {
13254          test -z "$ac_c_werror_flag" ||
13255          test ! -s conftest.err
13256        } && test -s conftest.$ac_objext; then
13257   ac_cv_prog_cc_g=yes
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262         CFLAGS=""
13263       cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h.  */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h.  */
13269
13270 int
13271 main ()
13272 {
13273
13274   ;
13275   return 0;
13276 }
13277 _ACEOF
13278 rm -f conftest.$ac_objext
13279 if { (ac_try="$ac_compile"
13280 case "(($ac_try" in
13281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282   *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285   (eval "$ac_compile") 2>conftest.er1
13286   ac_status=$?
13287   grep -v '^ *+' conftest.er1 >conftest.err
13288   rm -f conftest.er1
13289   cat conftest.err >&5
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } && {
13292          test -z "$ac_c_werror_flag" ||
13293          test ! -s conftest.err
13294        } && test -s conftest.$ac_objext; then
13295   :
13296 else
13297   echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13299
13300         ac_c_werror_flag=$ac_save_c_werror_flag
13301          CFLAGS="-g"
13302          cat >conftest.$ac_ext <<_ACEOF
13303 /* confdefs.h.  */
13304 _ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h.  */
13308
13309 int
13310 main ()
13311 {
13312
13313   ;
13314   return 0;
13315 }
13316 _ACEOF
13317 rm -f conftest.$ac_objext
13318 if { (ac_try="$ac_compile"
13319 case "(($ac_try" in
13320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321   *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324   (eval "$ac_compile") 2>conftest.er1
13325   ac_status=$?
13326   grep -v '^ *+' conftest.er1 >conftest.err
13327   rm -f conftest.er1
13328   cat conftest.err >&5
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } && {
13331          test -z "$ac_c_werror_flag" ||
13332          test ! -s conftest.err
13333        } && test -s conftest.$ac_objext; then
13334   ac_cv_prog_cc_g=yes
13335 else
13336   echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13338
13339
13340 fi
13341
13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 fi
13344
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346 fi
13347
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349    ac_c_werror_flag=$ac_save_c_werror_flag
13350 fi
13351 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13352 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13353 if test "$ac_test_CFLAGS" = set; then
13354   CFLAGS=$ac_save_CFLAGS
13355 elif test $ac_cv_prog_cc_g = yes; then
13356   if test "$GCC" = yes; then
13357     CFLAGS="-g -O2"
13358   else
13359     CFLAGS="-g"
13360   fi
13361 else
13362   if test "$GCC" = yes; then
13363     CFLAGS="-O2"
13364   else
13365     CFLAGS=
13366   fi
13367 fi
13368 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13369 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13370 if test "${ac_cv_prog_cc_c89+set}" = set; then
13371   echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373   ac_cv_prog_cc_c89=no
13374 ac_save_CC=$CC
13375 cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h.  */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h.  */
13381 #include <stdarg.h>
13382 #include <stdio.h>
13383 #include <sys/types.h>
13384 #include <sys/stat.h>
13385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13386 struct buf { int x; };
13387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13388 static char *e (p, i)
13389      char **p;
13390      int i;
13391 {
13392   return p[i];
13393 }
13394 static char *f (char * (*g) (char **, int), char **p, ...)
13395 {
13396   char *s;
13397   va_list v;
13398   va_start (v,p);
13399   s = g (p, va_arg (v,int));
13400   va_end (v);
13401   return s;
13402 }
13403
13404 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13405    function prototypes and stuff, but not '\xHH' hex character constants.
13406    These don't provoke an error unfortunately, instead are silently treated
13407    as 'x'.  The following induces an error, until -std is added to get
13408    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13409    array size at least.  It's necessary to write '\x00'==0 to get something
13410    that's true only with -std.  */
13411 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13412
13413 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13414    inside strings and character constants.  */
13415 #define FOO(x) 'x'
13416 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13417
13418 int test (int i, double x);
13419 struct s1 {int (*f) (int a);};
13420 struct s2 {int (*f) (double a);};
13421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13422 int argc;
13423 char **argv;
13424 int
13425 main ()
13426 {
13427 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13428   ;
13429   return 0;
13430 }
13431 _ACEOF
13432 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13433         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13434 do
13435   CC="$ac_save_CC $ac_arg"
13436   rm -f conftest.$ac_objext
13437 if { (ac_try="$ac_compile"
13438 case "(($ac_try" in
13439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440   *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443   (eval "$ac_compile") 2>conftest.er1
13444   ac_status=$?
13445   grep -v '^ *+' conftest.er1 >conftest.err
13446   rm -f conftest.er1
13447   cat conftest.err >&5
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); } && {
13450          test -z "$ac_c_werror_flag" ||
13451          test ! -s conftest.err
13452        } && test -s conftest.$ac_objext; then
13453   ac_cv_prog_cc_c89=$ac_arg
13454 else
13455   echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13457
13458
13459 fi
13460
13461 rm -f core conftest.err conftest.$ac_objext
13462   test "x$ac_cv_prog_cc_c89" != "xno" && break
13463 done
13464 rm -f conftest.$ac_ext
13465 CC=$ac_save_CC
13466
13467 fi
13468 # AC_CACHE_VAL
13469 case "x$ac_cv_prog_cc_c89" in
13470   x)
13471     { echo "$as_me:$LINENO: result: none needed" >&5
13472 echo "${ECHO_T}none needed" >&6; } ;;
13473   xno)
13474     { echo "$as_me:$LINENO: result: unsupported" >&5
13475 echo "${ECHO_T}unsupported" >&6; } ;;
13476   *)
13477     CC="$CC $ac_cv_prog_cc_c89"
13478     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13479 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13480 esac
13481
13482
13483 ac_ext=c
13484 ac_cpp='$CPP $CPPFLAGS'
13485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13488
13489 depcc="$CC"   am_compiler_list=
13490
13491 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13492 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13493 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13494   echo $ECHO_N "(cached) $ECHO_C" >&6
13495 else
13496   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13497   # We make a subdir and do the tests there.  Otherwise we can end up
13498   # making bogus files that we don't know about and never remove.  For
13499   # instance it was reported that on HP-UX the gcc test will end up
13500   # making a dummy file named `D' -- because `-MD' means `put the output
13501   # in D'.
13502   mkdir conftest.dir
13503   # Copy depcomp to subdir because otherwise we won't find it if we're
13504   # using a relative directory.
13505   cp "$am_depcomp" conftest.dir
13506   cd conftest.dir
13507   # We will build objects and dependencies in a subdirectory because
13508   # it helps to detect inapplicable dependency modes.  For instance
13509   # both Tru64's cc and ICC support -MD to output dependencies as a
13510   # side effect of compilation, but ICC will put the dependencies in
13511   # the current directory while Tru64 will put them in the object
13512   # directory.
13513   mkdir sub
13514
13515   am_cv_CC_dependencies_compiler_type=none
13516   if test "$am_compiler_list" = ""; then
13517      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13518   fi
13519   for depmode in $am_compiler_list; do
13520     # Setup a source with many dependencies, because some compilers
13521     # like to wrap large dependency lists on column 80 (with \), and
13522     # we should not choose a depcomp mode which is confused by this.
13523     #
13524     # We need to recreate these files for each test, as the compiler may
13525     # overwrite some of them when testing with obscure command lines.
13526     # This happens at least with the AIX C compiler.
13527     : > sub/conftest.c
13528     for i in 1 2 3 4 5 6; do
13529       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13530       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13531       # Solaris 8's {/usr,}/bin/sh.
13532       touch sub/conftst$i.h
13533     done
13534     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13535
13536     case $depmode in
13537     nosideeffect)
13538       # after this tag, mechanisms are not by side-effect, so they'll
13539       # only be used when explicitly requested
13540       if test "x$enable_dependency_tracking" = xyes; then
13541         continue
13542       else
13543         break
13544       fi
13545       ;;
13546     none) break ;;
13547     esac
13548     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13549     # mode.  It turns out that the SunPro C++ compiler does not properly
13550     # handle `-M -o', and we need to detect this.
13551     if depmode=$depmode \
13552        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13553        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13554        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13555          >/dev/null 2>conftest.err &&
13556        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13557        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13558        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13559       # icc doesn't choke on unknown options, it will just issue warnings
13560       # or remarks (even with -Werror).  So we grep stderr for any message
13561       # that says an option was ignored or not supported.
13562       # When given -MP, icc 7.0 and 7.1 complain thusly:
13563       #   icc: Command line warning: ignoring option '-M'; no argument required
13564       # The diagnosis changed in icc 8.0:
13565       #   icc: Command line remark: option '-MP' not supported
13566       if (grep 'ignoring option' conftest.err ||
13567           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13568         am_cv_CC_dependencies_compiler_type=$depmode
13569         break
13570       fi
13571     fi
13572   done
13573
13574   cd ..
13575   rm -rf conftest.dir
13576 else
13577   am_cv_CC_dependencies_compiler_type=none
13578 fi
13579
13580 fi
13581 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13582 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13583 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13584
13585
13586
13587 if
13588   test "x$enable_dependency_tracking" != xno \
13589   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13590   am__fastdepCC_TRUE=
13591   am__fastdepCC_FALSE='#'
13592 else
13593   am__fastdepCC_TRUE='#'
13594   am__fastdepCC_FALSE=
13595 fi
13596
13597
13598 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13599         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13600 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13601    { (exit 1); exit 1; }; }
13602 fi
13603
13604 # test for make depend flag
13605 OL_MKDEP=
13606 OL_MKDEP_FLAGS=
13607 if test -z "${MKDEP}"; then
13608         OL_MKDEP="${CC-cc}"
13609         if test -z "${MKDEP_FLAGS}"; then
13610                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13611 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13612 if test "${ol_cv_mkdep+set}" = set; then
13613   echo $ECHO_N "(cached) $ECHO_C" >&6
13614 else
13615
13616                         ol_cv_mkdep=no
13617                         for flag in "-M" "-xM"; do
13618                                 cat > conftest.c <<EOF
13619  noCode;
13620 EOF
13621                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623   (eval $ac_try) 2>&5
13624   ac_status=$?
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); }; } \
13627                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13628                                 then
13629                                         if test ! -f conftest."${ac_object}" ; then
13630                                                 ol_cv_mkdep=$flag
13631                                                 OL_MKDEP_FLAGS="$flag"
13632                                                 break
13633                                         fi
13634                                 fi
13635                         done
13636                         rm -f conftest*
13637
13638 fi
13639 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13640 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13641                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13642         else
13643                 cc_cv_mkdep=yes
13644                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13645         fi
13646 else
13647         cc_cv_mkdep=yes
13648         OL_MKDEP="${MKDEP}"
13649         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13650 fi
13651
13652
13653
13654 if test "${ol_cv_mkdep}" = no ; then
13655         # this will soon become an error
13656         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13657 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13658 fi
13659
13660 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13661 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13662 if test "${ac_cv_lib_s_afopen+set}" = set; then
13663   echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665   ac_check_lib_save_LIBS=$LIBS
13666 LIBS="-ls  $LIBS"
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h.  */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h.  */
13673
13674 /* Override any GCC internal prototype to avoid an error.
13675    Use char because int might match the return type of a GCC
13676    builtin and then its argument prototype would still apply.  */
13677 #ifdef __cplusplus
13678 extern "C"
13679 #endif
13680 char afopen ();
13681 int
13682 main ()
13683 {
13684 return afopen ();
13685   ;
13686   return 0;
13687 }
13688 _ACEOF
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (ac_try="$ac_link"
13691 case "(($ac_try" in
13692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693   *) ac_try_echo=$ac_try;;
13694 esac
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696   (eval "$ac_link") 2>conftest.er1
13697   ac_status=$?
13698   grep -v '^ *+' conftest.er1 >conftest.err
13699   rm -f conftest.er1
13700   cat conftest.err >&5
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); } && {
13703          test -z "$ac_c_werror_flag" ||
13704          test ! -s conftest.err
13705        } && test -s conftest$ac_exeext &&
13706        $as_test_x conftest$ac_exeext; then
13707   ac_cv_lib_s_afopen=yes
13708 else
13709   echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13711
13712         ac_cv_lib_s_afopen=no
13713 fi
13714
13715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13716       conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13718 fi
13719 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13720 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13721 if test $ac_cv_lib_s_afopen = yes; then
13722
13723         AUTH_LIBS=-ls
13724
13725 cat >>confdefs.h <<\_ACEOF
13726 #define HAVE_AIX_SECURITY 1
13727 _ACEOF
13728
13729
13730 fi
13731
13732
13733 case "$target" in
13734 *-ibm-openedition)
13735         ac_cv_func_getopt=no
13736
13737 cat >>confdefs.h <<\_ACEOF
13738 #define BOTH_STRINGS_H 1
13739 _ACEOF
13740
13741         ;;
13742 esac
13743
13744 ol_link_modules=no
13745 WITH_MODULES_ENABLED=no
13746 if test $ol_enable_modules != no ; then
13747
13748 for ac_header in ltdl.h
13749 do
13750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13752   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13755   echo $ECHO_N "(cached) $ECHO_C" >&6
13756 fi
13757 ac_res=`eval echo '${'$as_ac_Header'}'`
13758                { echo "$as_me:$LINENO: result: $ac_res" >&5
13759 echo "${ECHO_T}$ac_res" >&6; }
13760 else
13761   # Is the header compilable?
13762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13764 cat >conftest.$ac_ext <<_ACEOF
13765 /* confdefs.h.  */
13766 _ACEOF
13767 cat confdefs.h >>conftest.$ac_ext
13768 cat >>conftest.$ac_ext <<_ACEOF
13769 /* end confdefs.h.  */
13770 $ac_includes_default
13771 #include <$ac_header>
13772 _ACEOF
13773 rm -f conftest.$ac_objext
13774 if { (ac_try="$ac_compile"
13775 case "(($ac_try" in
13776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777   *) ac_try_echo=$ac_try;;
13778 esac
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780   (eval "$ac_compile") 2>conftest.er1
13781   ac_status=$?
13782   grep -v '^ *+' conftest.er1 >conftest.err
13783   rm -f conftest.er1
13784   cat conftest.err >&5
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); } && {
13787          test -z "$ac_c_werror_flag" ||
13788          test ! -s conftest.err
13789        } && test -s conftest.$ac_objext; then
13790   ac_header_compiler=yes
13791 else
13792   echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13794
13795         ac_header_compiler=no
13796 fi
13797
13798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13800 echo "${ECHO_T}$ac_header_compiler" >&6; }
13801
13802 # Is the header present?
13803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13805 cat >conftest.$ac_ext <<_ACEOF
13806 /* confdefs.h.  */
13807 _ACEOF
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h.  */
13811 #include <$ac_header>
13812 _ACEOF
13813 if { (ac_try="$ac_cpp conftest.$ac_ext"
13814 case "(($ac_try" in
13815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816   *) ac_try_echo=$ac_try;;
13817 esac
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13820   ac_status=$?
13821   grep -v '^ *+' conftest.er1 >conftest.err
13822   rm -f conftest.er1
13823   cat conftest.err >&5
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); } >/dev/null && {
13826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13827          test ! -s conftest.err
13828        }; then
13829   ac_header_preproc=yes
13830 else
13831   echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13833
13834   ac_header_preproc=no
13835 fi
13836
13837 rm -f conftest.err conftest.$ac_ext
13838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13839 echo "${ECHO_T}$ac_header_preproc" >&6; }
13840
13841 # So?  What about this header?
13842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13843   yes:no: )
13844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13848     ac_header_preproc=yes
13849     ;;
13850   no:yes:* )
13851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13863     ( cat <<\_ASBOX
13864 ## --------------------------------------------- ##
13865 ## Report this to <http://www.openldap.org/its/> ##
13866 ## --------------------------------------------- ##
13867 _ASBOX
13868      ) | sed "s/^/$as_me: WARNING:     /" >&2
13869     ;;
13870 esac
13871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   eval "$as_ac_Header=\$ac_header_preproc"
13877 fi
13878 ac_res=`eval echo '${'$as_ac_Header'}'`
13879                { echo "$as_me:$LINENO: result: $ac_res" >&5
13880 echo "${ECHO_T}$ac_res" >&6; }
13881
13882 fi
13883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13884   cat >>confdefs.h <<_ACEOF
13885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13886 _ACEOF
13887
13888 fi
13889
13890 done
13891
13892
13893         if test $ac_cv_header_ltdl_h = no ; then
13894                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13895 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13896    { (exit 1); exit 1; }; }
13897         fi
13898
13899         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13900 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13901 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   ac_check_lib_save_LIBS=$LIBS
13905 LIBS="-lltdl  $LIBS"
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h.  */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h.  */
13912
13913 /* Override any GCC internal prototype to avoid an error.
13914    Use char because int might match the return type of a GCC
13915    builtin and then its argument prototype would still apply.  */
13916 #ifdef __cplusplus
13917 extern "C"
13918 #endif
13919 char lt_dlinit ();
13920 int
13921 main ()
13922 {
13923 return lt_dlinit ();
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (ac_try="$ac_link"
13930 case "(($ac_try" in
13931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932   *) ac_try_echo=$ac_try;;
13933 esac
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935   (eval "$ac_link") 2>conftest.er1
13936   ac_status=$?
13937   grep -v '^ *+' conftest.er1 >conftest.err
13938   rm -f conftest.er1
13939   cat conftest.err >&5
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); } && {
13942          test -z "$ac_c_werror_flag" ||
13943          test ! -s conftest.err
13944        } && test -s conftest$ac_exeext &&
13945        $as_test_x conftest$ac_exeext; then
13946   ac_cv_lib_ltdl_lt_dlinit=yes
13947 else
13948   echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13950
13951         ac_cv_lib_ltdl_lt_dlinit=no
13952 fi
13953
13954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13955       conftest$ac_exeext conftest.$ac_ext
13956 LIBS=$ac_check_lib_save_LIBS
13957 fi
13958 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13959 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13960 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13961
13962                 MODULES_LIBS=-lltdl
13963
13964 cat >>confdefs.h <<\_ACEOF
13965 #define HAVE_LIBLTDL 1
13966 _ACEOF
13967
13968
13969 fi
13970
13971
13972         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13973                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13974 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13975    { (exit 1); exit 1; }; }
13976         fi
13977         ol_link_modules=yes
13978         WITH_MODULES_ENABLED=yes
13979
13980 else
13981         for i in $Backends; do
13982                 eval "ol_tmp=\$ol_enable_$i"
13983                 if test $ol_tmp = mod ; then
13984                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13985 echo "$as_me: WARNING: building static $i backend" >&2;}
13986                         eval "ol_enable_$i=yes"
13987                 fi
13988         done
13989         for i in $Overlays; do
13990                 eval "ol_tmp=\$ol_enable_$i"
13991                 if test $ol_tmp = mod ; then
13992                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13993 echo "$as_me: WARNING: building static $i overlay" >&2;}
13994                         eval "ol_enable_$i=yes"
13995                 fi
13996         done
13997 fi
13998
13999 # test for EBCDIC
14000 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14001 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14002 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14003   echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005
14006         cat >conftest.$ac_ext <<_ACEOF
14007 /* confdefs.h.  */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h.  */
14012
14013 #if !('M' == 0xd4)
14014 #include <__ASCII__/generate_error.h>
14015 #endif
14016
14017 _ACEOF
14018 if { (ac_try="$ac_cpp conftest.$ac_ext"
14019 case "(($ac_try" in
14020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021   *) ac_try_echo=$ac_try;;
14022 esac
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } >/dev/null && {
14031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14032          test ! -s conftest.err
14033        }; then
14034   ol_cv_cpp_ebcdic=yes
14035 else
14036   echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14038
14039   ol_cv_cpp_ebcdic=no
14040 fi
14041
14042 rm -f conftest.err conftest.$ac_ext
14043 fi
14044 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14045 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14046 if test $ol_cv_cpp_ebcdic = yes ; then
14047
14048 cat >>confdefs.h <<\_ACEOF
14049 #define HAVE_EBCDIC 1
14050 _ACEOF
14051
14052 fi
14053
14054 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14055 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14056 if test "${ol_cv_header_stdc+set}" = set; then
14057   echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059   cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065 #include <stdlib.h>
14066 #include <stdarg.h>
14067 #include <string.h>
14068 #include <float.h>
14069 _ACEOF
14070 if { (ac_try="$ac_cpp conftest.$ac_ext"
14071 case "(($ac_try" in
14072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073   *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14077   ac_status=$?
14078   grep -v '^ *+' conftest.er1 >conftest.err
14079   rm -f conftest.er1
14080   cat conftest.err >&5
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } >/dev/null && {
14083          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14084          test ! -s conftest.err
14085        }; then
14086   ol_cv_header_stdc=yes
14087 else
14088   echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14090
14091   ol_cv_header_stdc=no
14092 fi
14093
14094 rm -f conftest.err conftest.$ac_ext
14095
14096 if test $ol_cv_header_stdc = yes; then
14097   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14098 cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h.  */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h.  */
14104 #include <string.h>
14105
14106 _ACEOF
14107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14108   $EGREP "memchr" >/dev/null 2>&1; then
14109   :
14110 else
14111   ol_cv_header_stdc=no
14112 fi
14113 rm -f conftest*
14114
14115 fi
14116
14117 if test $ol_cv_header_stdc = yes; then
14118   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14119 cat >conftest.$ac_ext <<_ACEOF
14120 /* confdefs.h.  */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h.  */
14125 #include <stdlib.h>
14126
14127 _ACEOF
14128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14129   $EGREP "free" >/dev/null 2>&1; then
14130   :
14131 else
14132   ol_cv_header_stdc=no
14133 fi
14134 rm -f conftest*
14135
14136 fi
14137
14138 if test $ol_cv_header_stdc = yes; then
14139   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14140 if test "$cross_compiling" = yes; then
14141   :
14142 else
14143   cat >conftest.$ac_ext <<_ACEOF
14144 /* confdefs.h.  */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h.  */
14149 #include <ctype.h>
14150 #ifndef HAVE_EBCDIC
14151 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14152 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14153 #else
14154 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14155                 || ('j' <= (c) && (c) <= 'r') \
14156                 || ('s' <= (c) && (c) <= 'z'))
14157 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14158 #endif
14159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14160 int main () { int i; for (i = 0; i < 256; i++)
14161 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14162 exit (0); }
14163
14164 _ACEOF
14165 rm -f conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169   *) ac_try_echo=$ac_try;;
14170 esac
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172   (eval "$ac_link") 2>&5
14173   ac_status=$?
14174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14176   { (case "(($ac_try" in
14177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178   *) ac_try_echo=$ac_try;;
14179 esac
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181   (eval "$ac_try") 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; }; then
14185   :
14186 else
14187   echo "$as_me: program exited with status $ac_status" >&5
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14190
14191 ( exit $ac_status )
14192 ol_cv_header_stdc=no
14193 fi
14194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14195 fi
14196
14197
14198 fi
14199 fi
14200 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14201 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14202 if test $ol_cv_header_stdc = yes; then
14203   cat >>confdefs.h <<\_ACEOF
14204 #define STDC_HEADERS 1
14205 _ACEOF
14206
14207 fi
14208 ac_cv_header_stdc=disable
14209
14210
14211 if test $ol_cv_header_stdc != yes; then
14212         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14213 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14214 fi
14215
14216
14217
14218
14219
14220
14221 ac_header_dirent=no
14222 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14223   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14224 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14225 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14227   echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229   cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h.  */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h.  */
14235 #include <sys/types.h>
14236 #include <$ac_hdr>
14237
14238 int
14239 main ()
14240 {
14241 if ((DIR *) 0)
14242 return 0;
14243   ;
14244   return 0;
14245 }
14246 _ACEOF
14247 rm -f conftest.$ac_objext
14248 if { (ac_try="$ac_compile"
14249 case "(($ac_try" in
14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251   *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254   (eval "$ac_compile") 2>conftest.er1
14255   ac_status=$?
14256   grep -v '^ *+' conftest.er1 >conftest.err
14257   rm -f conftest.er1
14258   cat conftest.err >&5
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); } && {
14261          test -z "$ac_c_werror_flag" ||
14262          test ! -s conftest.err
14263        } && test -s conftest.$ac_objext; then
14264   eval "$as_ac_Header=yes"
14265 else
14266   echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269         eval "$as_ac_Header=no"
14270 fi
14271
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 fi
14274 ac_res=`eval echo '${'$as_ac_Header'}'`
14275                { echo "$as_me:$LINENO: result: $ac_res" >&5
14276 echo "${ECHO_T}$ac_res" >&6; }
14277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14278   cat >>confdefs.h <<_ACEOF
14279 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14280 _ACEOF
14281
14282 ac_header_dirent=$ac_hdr; break
14283 fi
14284
14285 done
14286 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14287 if test $ac_header_dirent = dirent.h; then
14288   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14289 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14290 if test "${ac_cv_search_opendir+set}" = set; then
14291   echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293   ac_func_search_save_LIBS=$LIBS
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300
14301 /* Override any GCC internal prototype to avoid an error.
14302    Use char because int might match the return type of a GCC
14303    builtin and then its argument prototype would still apply.  */
14304 #ifdef __cplusplus
14305 extern "C"
14306 #endif
14307 char opendir ();
14308 int
14309 main ()
14310 {
14311 return opendir ();
14312   ;
14313   return 0;
14314 }
14315 _ACEOF
14316 for ac_lib in '' dir; do
14317   if test -z "$ac_lib"; then
14318     ac_res="none required"
14319   else
14320     ac_res=-l$ac_lib
14321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14322   fi
14323   rm -f conftest.$ac_objext conftest$ac_exeext
14324 if { (ac_try="$ac_link"
14325 case "(($ac_try" in
14326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327   *) ac_try_echo=$ac_try;;
14328 esac
14329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330   (eval "$ac_link") 2>conftest.er1
14331   ac_status=$?
14332   grep -v '^ *+' conftest.er1 >conftest.err
14333   rm -f conftest.er1
14334   cat conftest.err >&5
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); } && {
14337          test -z "$ac_c_werror_flag" ||
14338          test ! -s conftest.err
14339        } && test -s conftest$ac_exeext &&
14340        $as_test_x conftest$ac_exeext; then
14341   ac_cv_search_opendir=$ac_res
14342 else
14343   echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14345
14346
14347 fi
14348
14349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14350       conftest$ac_exeext
14351   if test "${ac_cv_search_opendir+set}" = set; then
14352   break
14353 fi
14354 done
14355 if test "${ac_cv_search_opendir+set}" = set; then
14356   :
14357 else
14358   ac_cv_search_opendir=no
14359 fi
14360 rm conftest.$ac_ext
14361 LIBS=$ac_func_search_save_LIBS
14362 fi
14363 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14364 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14365 ac_res=$ac_cv_search_opendir
14366 if test "$ac_res" != no; then
14367   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14368
14369 fi
14370
14371 else
14372   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14374 if test "${ac_cv_search_opendir+set}" = set; then
14375   echo $ECHO_N "(cached) $ECHO_C" >&6
14376 else
14377   ac_func_search_save_LIBS=$LIBS
14378 cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h.  */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h.  */
14384
14385 /* Override any GCC internal prototype to avoid an error.
14386    Use char because int might match the return type of a GCC
14387    builtin and then its argument prototype would still apply.  */
14388 #ifdef __cplusplus
14389 extern "C"
14390 #endif
14391 char opendir ();
14392 int
14393 main ()
14394 {
14395 return opendir ();
14396   ;
14397   return 0;
14398 }
14399 _ACEOF
14400 for ac_lib in '' x; do
14401   if test -z "$ac_lib"; then
14402     ac_res="none required"
14403   else
14404     ac_res=-l$ac_lib
14405     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14406   fi
14407   rm -f conftest.$ac_objext conftest$ac_exeext
14408 if { (ac_try="$ac_link"
14409 case "(($ac_try" in
14410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411   *) ac_try_echo=$ac_try;;
14412 esac
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414   (eval "$ac_link") 2>conftest.er1
14415   ac_status=$?
14416   grep -v '^ *+' conftest.er1 >conftest.err
14417   rm -f conftest.er1
14418   cat conftest.err >&5
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); } && {
14421          test -z "$ac_c_werror_flag" ||
14422          test ! -s conftest.err
14423        } && test -s conftest$ac_exeext &&
14424        $as_test_x conftest$ac_exeext; then
14425   ac_cv_search_opendir=$ac_res
14426 else
14427   echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430
14431 fi
14432
14433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14434       conftest$ac_exeext
14435   if test "${ac_cv_search_opendir+set}" = set; then
14436   break
14437 fi
14438 done
14439 if test "${ac_cv_search_opendir+set}" = set; then
14440   :
14441 else
14442   ac_cv_search_opendir=no
14443 fi
14444 rm conftest.$ac_ext
14445 LIBS=$ac_func_search_save_LIBS
14446 fi
14447 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14448 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14449 ac_res=$ac_cv_search_opendir
14450 if test "$ac_res" != no; then
14451   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14452
14453 fi
14454
14455 fi
14456
14457 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14458 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14459 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14460   echo $ECHO_N "(cached) $ECHO_C" >&6
14461 else
14462   cat >conftest.$ac_ext <<_ACEOF
14463 /* confdefs.h.  */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h.  */
14468 #include <sys/types.h>
14469 #include <sys/wait.h>
14470 #ifndef WEXITSTATUS
14471 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14472 #endif
14473 #ifndef WIFEXITED
14474 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14475 #endif
14476
14477 int
14478 main ()
14479 {
14480   int s;
14481   wait (&s);
14482   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14483   ;
14484   return 0;
14485 }
14486 _ACEOF
14487 rm -f conftest.$ac_objext
14488 if { (ac_try="$ac_compile"
14489 case "(($ac_try" in
14490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491   *) ac_try_echo=$ac_try;;
14492 esac
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494   (eval "$ac_compile") 2>conftest.er1
14495   ac_status=$?
14496   grep -v '^ *+' conftest.er1 >conftest.err
14497   rm -f conftest.er1
14498   cat conftest.err >&5
14499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500   (exit $ac_status); } && {
14501          test -z "$ac_c_werror_flag" ||
14502          test ! -s conftest.err
14503        } && test -s conftest.$ac_objext; then
14504   ac_cv_header_sys_wait_h=yes
14505 else
14506   echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14508
14509         ac_cv_header_sys_wait_h=no
14510 fi
14511
14512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14513 fi
14514 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14515 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14516 if test $ac_cv_header_sys_wait_h = yes; then
14517
14518 cat >>confdefs.h <<\_ACEOF
14519 #define HAVE_SYS_WAIT_H 1
14520 _ACEOF
14521
14522 fi
14523
14524 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14525 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14526 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14527   echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529   cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h.  */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h.  */
14535 #include <sys/types.h>
14536 #include <termios.h>
14537 #ifdef TIOCGWINSZ
14538   yes
14539 #endif
14540
14541 _ACEOF
14542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14543   $EGREP "yes" >/dev/null 2>&1; then
14544   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14545 else
14546   ac_cv_sys_tiocgwinsz_in_termios_h=no
14547 fi
14548 rm -f conftest*
14549
14550 fi
14551 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14552 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14553
14554 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14555   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14556 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14557 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14558   echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560   cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h.  */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h.  */
14566 #include <sys/types.h>
14567 #include <sys/ioctl.h>
14568 #ifdef TIOCGWINSZ
14569   yes
14570 #endif
14571
14572 _ACEOF
14573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14574   $EGREP "yes" >/dev/null 2>&1; then
14575   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14576 else
14577   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14578 fi
14579 rm -f conftest*
14580
14581 fi
14582 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14583 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14584
14585   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14586
14587 cat >>confdefs.h <<\_ACEOF
14588 #define GWINSZ_IN_SYS_IOCTL 1
14589 _ACEOF
14590
14591   fi
14592 fi
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642 for ac_header in \
14643         arpa/inet.h             \
14644         arpa/nameser.h  \
14645         assert.h                \
14646         bits/types.h    \
14647         conio.h                 \
14648         crypt.h                 \
14649         direct.h                \
14650         errno.h                 \
14651         fcntl.h                 \
14652         filio.h                 \
14653         getopt.h                \
14654         grp.h                   \
14655         io.h                    \
14656         libutil.h               \
14657         limits.h                \
14658         locale.h                \
14659         malloc.h                \
14660         memory.h                \
14661         psap.h                  \
14662         pwd.h                   \
14663         process.h               \
14664         sgtty.h                 \
14665         shadow.h                \
14666         stddef.h                \
14667         string.h                \
14668         strings.h               \
14669         sysexits.h              \
14670         sys/file.h              \
14671         sys/filio.h             \
14672         sys/fstyp.h             \
14673         sys/errno.h             \
14674         sys/ioctl.h             \
14675         sys/param.h             \
14676         sys/privgrp.h   \
14677         sys/resource.h  \
14678         sys/select.h    \
14679         sys/socket.h    \
14680         sys/stat.h              \
14681         sys/syslog.h    \
14682         sys/time.h              \
14683         sys/types.h             \
14684         sys/uio.h               \
14685         sys/vmount.h    \
14686         syslog.h                \
14687         termios.h               \
14688         unistd.h                \
14689         utime.h                 \
14690
14691 do
14692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14694   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14697   echo $ECHO_N "(cached) $ECHO_C" >&6
14698 fi
14699 ac_res=`eval echo '${'$as_ac_Header'}'`
14700                { echo "$as_me:$LINENO: result: $ac_res" >&5
14701 echo "${ECHO_T}$ac_res" >&6; }
14702 else
14703   # Is the header compilable?
14704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h.  */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h.  */
14712 $ac_includes_default
14713 #include <$ac_header>
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (ac_try="$ac_compile"
14717 case "(($ac_try" in
14718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719   *) ac_try_echo=$ac_try;;
14720 esac
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722   (eval "$ac_compile") 2>conftest.er1
14723   ac_status=$?
14724   grep -v '^ *+' conftest.er1 >conftest.err
14725   rm -f conftest.er1
14726   cat conftest.err >&5
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); } && {
14729          test -z "$ac_c_werror_flag" ||
14730          test ! -s conftest.err
14731        } && test -s conftest.$ac_objext; then
14732   ac_header_compiler=yes
14733 else
14734   echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14736
14737         ac_header_compiler=no
14738 fi
14739
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14742 echo "${ECHO_T}$ac_header_compiler" >&6; }
14743
14744 # Is the header present?
14745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14747 cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h.  */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h.  */
14753 #include <$ac_header>
14754 _ACEOF
14755 if { (ac_try="$ac_cpp conftest.$ac_ext"
14756 case "(($ac_try" in
14757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758   *) ac_try_echo=$ac_try;;
14759 esac
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14762   ac_status=$?
14763   grep -v '^ *+' conftest.er1 >conftest.err
14764   rm -f conftest.er1
14765   cat conftest.err >&5
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); } >/dev/null && {
14768          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14769          test ! -s conftest.err
14770        }; then
14771   ac_header_preproc=yes
14772 else
14773   echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776   ac_header_preproc=no
14777 fi
14778
14779 rm -f conftest.err conftest.$ac_ext
14780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14781 echo "${ECHO_T}$ac_header_preproc" >&6; }
14782
14783 # So?  What about this header?
14784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14785   yes:no: )
14786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14790     ac_header_preproc=yes
14791     ;;
14792   no:yes:* )
14793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14805     ( cat <<\_ASBOX
14806 ## --------------------------------------------- ##
14807 ## Report this to <http://www.openldap.org/its/> ##
14808 ## --------------------------------------------- ##
14809 _ASBOX
14810      ) | sed "s/^/$as_me: WARNING:     /" >&2
14811     ;;
14812 esac
14813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14816   echo $ECHO_N "(cached) $ECHO_C" >&6
14817 else
14818   eval "$as_ac_Header=\$ac_header_preproc"
14819 fi
14820 ac_res=`eval echo '${'$as_ac_Header'}'`
14821                { echo "$as_me:$LINENO: result: $ac_res" >&5
14822 echo "${ECHO_T}$ac_res" >&6; }
14823
14824 fi
14825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14826   cat >>confdefs.h <<_ACEOF
14827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14828 _ACEOF
14829
14830 fi
14831
14832 done
14833
14834
14835 if test "$ac_cv_mingw32" = yes \
14836         -o "$ac_cv_interix" = yes \
14837         -o "$ol_cv_msvc" = yes
14838 then
14839
14840
14841 for ac_header in winsock.h winsock2.h
14842 do
14843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14845   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14848   echo $ECHO_N "(cached) $ECHO_C" >&6
14849 fi
14850 ac_res=`eval echo '${'$as_ac_Header'}'`
14851                { echo "$as_me:$LINENO: result: $ac_res" >&5
14852 echo "${ECHO_T}$ac_res" >&6; }
14853 else
14854   # Is the header compilable?
14855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14857 cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863 $ac_includes_default
14864 #include <$ac_header>
14865 _ACEOF
14866 rm -f conftest.$ac_objext
14867 if { (ac_try="$ac_compile"
14868 case "(($ac_try" in
14869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870   *) ac_try_echo=$ac_try;;
14871 esac
14872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873   (eval "$ac_compile") 2>conftest.er1
14874   ac_status=$?
14875   grep -v '^ *+' conftest.er1 >conftest.err
14876   rm -f conftest.er1
14877   cat conftest.err >&5
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); } && {
14880          test -z "$ac_c_werror_flag" ||
14881          test ! -s conftest.err
14882        } && test -s conftest.$ac_objext; then
14883   ac_header_compiler=yes
14884 else
14885   echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14887
14888         ac_header_compiler=no
14889 fi
14890
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14893 echo "${ECHO_T}$ac_header_compiler" >&6; }
14894
14895 # Is the header present?
14896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h.  */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h.  */
14904 #include <$ac_header>
14905 _ACEOF
14906 if { (ac_try="$ac_cpp conftest.$ac_ext"
14907 case "(($ac_try" in
14908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909   *) ac_try_echo=$ac_try;;
14910 esac
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14913   ac_status=$?
14914   grep -v '^ *+' conftest.er1 >conftest.err
14915   rm -f conftest.er1
14916   cat conftest.err >&5
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); } >/dev/null && {
14919          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14920          test ! -s conftest.err
14921        }; then
14922   ac_header_preproc=yes
14923 else
14924   echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927   ac_header_preproc=no
14928 fi
14929
14930 rm -f conftest.err conftest.$ac_ext
14931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14932 echo "${ECHO_T}$ac_header_preproc" >&6; }
14933
14934 # So?  What about this header?
14935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14936   yes:no: )
14937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14941     ac_header_preproc=yes
14942     ;;
14943   no:yes:* )
14944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14956     ( cat <<\_ASBOX
14957 ## --------------------------------------------- ##
14958 ## Report this to <http://www.openldap.org/its/> ##
14959 ## --------------------------------------------- ##
14960 _ASBOX
14961      ) | sed "s/^/$as_me: WARNING:     /" >&2
14962     ;;
14963 esac
14964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967   echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969   eval "$as_ac_Header=\$ac_header_preproc"
14970 fi
14971 ac_res=`eval echo '${'$as_ac_Header'}'`
14972                { echo "$as_me:$LINENO: result: $ac_res" >&5
14973 echo "${ECHO_T}$ac_res" >&6; }
14974
14975 fi
14976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14977   cat >>confdefs.h <<_ACEOF
14978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14979 _ACEOF
14980
14981 fi
14982
14983 done
14984
14985 fi
14986
14987
14988 for ac_header in resolv.h
14989 do
14990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994   echo $ECHO_N "(cached) $ECHO_C" >&6
14995 else
14996   cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h.  */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h.  */
15002 $ac_includes_default
15003 #include <netinet/in.h>
15004
15005
15006 #include <$ac_header>
15007 _ACEOF
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012   *) ac_try_echo=$ac_try;;
15013 esac
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015   (eval "$ac_compile") 2>conftest.er1
15016   ac_status=$?
15017   grep -v '^ *+' conftest.er1 >conftest.err
15018   rm -f conftest.er1
15019   cat conftest.err >&5
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); } && {
15022          test -z "$ac_c_werror_flag" ||
15023          test ! -s conftest.err
15024        } && test -s conftest.$ac_objext; then
15025   eval "$as_ac_Header=yes"
15026 else
15027   echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030         eval "$as_ac_Header=no"
15031 fi
15032
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034 fi
15035 ac_res=`eval echo '${'$as_ac_Header'}'`
15036                { echo "$as_me:$LINENO: result: $ac_res" >&5
15037 echo "${ECHO_T}$ac_res" >&6; }
15038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15039   cat >>confdefs.h <<_ACEOF
15040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15041 _ACEOF
15042
15043 fi
15044
15045 done
15046
15047
15048
15049 for ac_header in netinet/tcp.h
15050 do
15051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055   echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057   cat >conftest.$ac_ext <<_ACEOF
15058 /* confdefs.h.  */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h.  */
15063 $ac_includes_default
15064 #include <netinet/in.h>
15065
15066
15067 #include <$ac_header>
15068 _ACEOF
15069 rm -f conftest.$ac_objext
15070 if { (ac_try="$ac_compile"
15071 case "(($ac_try" in
15072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073   *) ac_try_echo=$ac_try;;
15074 esac
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076   (eval "$ac_compile") 2>conftest.er1
15077   ac_status=$?
15078   grep -v '^ *+' conftest.er1 >conftest.err
15079   rm -f conftest.er1
15080   cat conftest.err >&5
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); } && {
15083          test -z "$ac_c_werror_flag" ||
15084          test ! -s conftest.err
15085        } && test -s conftest.$ac_objext; then
15086   eval "$as_ac_Header=yes"
15087 else
15088   echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091         eval "$as_ac_Header=no"
15092 fi
15093
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 fi
15096 ac_res=`eval echo '${'$as_ac_Header'}'`
15097                { echo "$as_me:$LINENO: result: $ac_res" >&5
15098 echo "${ECHO_T}$ac_res" >&6; }
15099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15100   cat >>confdefs.h <<_ACEOF
15101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15102 _ACEOF
15103
15104 fi
15105
15106 done
15107
15108
15109
15110 for ac_header in sys/ucred.h
15111 do
15112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116   echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118   cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h.  */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h.  */
15124 $ac_includes_default
15125 #ifdef HAVE_SYS_PARAM_H
15126 #include <sys/param.h>
15127 #endif
15128
15129
15130 #include <$ac_header>
15131 _ACEOF
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136   *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139   (eval "$ac_compile") 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } && {
15146          test -z "$ac_c_werror_flag" ||
15147          test ! -s conftest.err
15148        } && test -s conftest.$ac_objext; then
15149   eval "$as_ac_Header=yes"
15150 else
15151   echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15153
15154         eval "$as_ac_Header=no"
15155 fi
15156
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158 fi
15159 ac_res=`eval echo '${'$as_ac_Header'}'`
15160                { echo "$as_me:$LINENO: result: $ac_res" >&5
15161 echo "${ECHO_T}$ac_res" >&6; }
15162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15163   cat >>confdefs.h <<_ACEOF
15164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15165 _ACEOF
15166
15167 fi
15168
15169 done
15170
15171
15172
15173
15174
15175 for ac_func in sigaction sigset
15176 do
15177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15181   echo $ECHO_N "(cached) $ECHO_C" >&6
15182 else
15183   cat >conftest.$ac_ext <<_ACEOF
15184 /* confdefs.h.  */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h.  */
15189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15191 #define $ac_func innocuous_$ac_func
15192
15193 /* System header to define __stub macros and hopefully few prototypes,
15194     which can conflict with char $ac_func (); below.
15195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15196     <limits.h> exists even on freestanding compilers.  */
15197
15198 #ifdef __STDC__
15199 # include <limits.h>
15200 #else
15201 # include <assert.h>
15202 #endif
15203
15204 #undef $ac_func
15205
15206 /* Override any GCC internal prototype to avoid an error.
15207    Use char because int might match the return type of a GCC
15208    builtin and then its argument prototype would still apply.  */
15209 #ifdef __cplusplus
15210 extern "C"
15211 #endif
15212 char $ac_func ();
15213 /* The GNU C library defines this for functions which it implements
15214     to always fail with ENOSYS.  Some functions are actually named
15215     something starting with __ and the normal name is an alias.  */
15216 #if defined __stub_$ac_func || defined __stub___$ac_func
15217 choke me
15218 #endif
15219
15220 int
15221 main ()
15222 {
15223 return $ac_func ();
15224   ;
15225   return 0;
15226 }
15227 _ACEOF
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232   *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235   (eval "$ac_link") 2>conftest.er1
15236   ac_status=$?
15237   grep -v '^ *+' conftest.er1 >conftest.err
15238   rm -f conftest.er1
15239   cat conftest.err >&5
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); } && {
15242          test -z "$ac_c_werror_flag" ||
15243          test ! -s conftest.err
15244        } && test -s conftest$ac_exeext &&
15245        $as_test_x conftest$ac_exeext; then
15246   eval "$as_ac_var=yes"
15247 else
15248   echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15250
15251         eval "$as_ac_var=no"
15252 fi
15253
15254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15255       conftest$ac_exeext conftest.$ac_ext
15256 fi
15257 ac_res=`eval echo '${'$as_ac_var'}'`
15258                { echo "$as_me:$LINENO: result: $ac_res" >&5
15259 echo "${ECHO_T}$ac_res" >&6; }
15260 if test `eval echo '${'$as_ac_var'}'` = yes; then
15261   cat >>confdefs.h <<_ACEOF
15262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15263 _ACEOF
15264
15265 fi
15266 done
15267
15268
15269 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15270
15271 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15272 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15273 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15274   echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276   ac_check_lib_save_LIBS=$LIBS
15277 LIBS="-lV3  $LIBS"
15278 cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h.  */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h.  */
15284
15285 /* Override any GCC internal prototype to avoid an error.
15286    Use char because int might match the return type of a GCC
15287    builtin and then its argument prototype would still apply.  */
15288 #ifdef __cplusplus
15289 extern "C"
15290 #endif
15291 char sigset ();
15292 int
15293 main ()
15294 {
15295 return sigset ();
15296   ;
15297   return 0;
15298 }
15299 _ACEOF
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (ac_try="$ac_link"
15302 case "(($ac_try" in
15303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304   *) ac_try_echo=$ac_try;;
15305 esac
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307   (eval "$ac_link") 2>conftest.er1
15308   ac_status=$?
15309   grep -v '^ *+' conftest.er1 >conftest.err
15310   rm -f conftest.er1
15311   cat conftest.err >&5
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); } && {
15314          test -z "$ac_c_werror_flag" ||
15315          test ! -s conftest.err
15316        } && test -s conftest$ac_exeext &&
15317        $as_test_x conftest$ac_exeext; then
15318   ac_cv_lib_V3_sigset=yes
15319 else
15320   echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15322
15323         ac_cv_lib_V3_sigset=no
15324 fi
15325
15326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15327       conftest$ac_exeext conftest.$ac_ext
15328 LIBS=$ac_check_lib_save_LIBS
15329 fi
15330 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15331 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15332 if test $ac_cv_lib_V3_sigset = yes; then
15333   cat >>confdefs.h <<_ACEOF
15334 #define HAVE_LIBV3 1
15335 _ACEOF
15336
15337   LIBS="-lV3 $LIBS"
15338
15339 fi
15340
15341 fi
15342
15343 if test $ol_cv_msvc = yes ; then
15344    ol_cv_winsock=yes
15345 fi
15346
15347 if test "$ac_cv_header_winsock_h" = yes; then
15348         { echo "$as_me:$LINENO: checking for winsock" >&5
15349 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15350 if test "${ol_cv_winsock+set}" = set; then
15351   echo $ECHO_N "(cached) $ECHO_C" >&6
15352 else
15353
15354         save_LIBS="$LIBS"
15355         for curlib in none ws2_32 wsock32; do
15356                 if test $curlib != none ; then
15357                 LIBS="$save_LIBS -l$curlib"
15358                 fi
15359                 cat >conftest.$ac_ext <<_ACEOF
15360 /* confdefs.h.  */
15361 _ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h.  */
15365 #include <winsock.h>
15366
15367 int
15368 main ()
15369 {
15370
15371                         socket(0,0,0);
15372                         select(0,NULL,NULL,NULL,NULL);
15373                         closesocket(0);
15374                         gethostname(NULL,0);
15375
15376   ;
15377   return 0;
15378 }
15379 _ACEOF
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (ac_try="$ac_link"
15382 case "(($ac_try" in
15383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384   *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387   (eval "$ac_link") 2>conftest.er1
15388   ac_status=$?
15389   grep -v '^ *+' conftest.er1 >conftest.err
15390   rm -f conftest.er1
15391   cat conftest.err >&5
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } && {
15394          test -z "$ac_c_werror_flag" ||
15395          test ! -s conftest.err
15396        } && test -s conftest$ac_exeext &&
15397        $as_test_x conftest$ac_exeext; then
15398   ol_cv_winsock=$curlib
15399 else
15400   echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403         ol_cv_winsock=no
15404 fi
15405
15406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15407       conftest$ac_exeext conftest.$ac_ext
15408
15409                 test "$ol_cv_winsock" != no && break
15410         done
15411         LIBS="$save_LIBS"
15412
15413 fi
15414 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15415 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15416
15417         if test $ol_cv_winsock != no ; then
15418
15419 cat >>confdefs.h <<\_ACEOF
15420 #define HAVE_WINSOCK 1
15421 _ACEOF
15422
15423         ac_cv_func_socket=yes
15424         ac_cv_func_select=yes
15425         ac_cv_func_closesocket=yes
15426         ac_cv_func_gethostname=yes
15427
15428                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15429                 LIBS="$LIBS -l$ol_cv_winsock"
15430                 fi
15431
15432         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15433
15434 cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_WINSOCK2 1
15436 _ACEOF
15437
15438         fi
15439         fi
15440 fi
15441
15442
15443 { echo "$as_me:$LINENO: checking for socket" >&5
15444 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15445 if test "${ac_cv_func_socket+set}" = set; then
15446   echo $ECHO_N "(cached) $ECHO_C" >&6
15447 else
15448   cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h.  */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h.  */
15454 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15456 #define socket innocuous_socket
15457
15458 /* System header to define __stub macros and hopefully few prototypes,
15459     which can conflict with char socket (); below.
15460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15461     <limits.h> exists even on freestanding compilers.  */
15462
15463 #ifdef __STDC__
15464 # include <limits.h>
15465 #else
15466 # include <assert.h>
15467 #endif
15468
15469 #undef socket
15470
15471 /* Override any GCC internal prototype to avoid an error.
15472    Use char because int might match the return type of a GCC
15473    builtin and then its argument prototype would still apply.  */
15474 #ifdef __cplusplus
15475 extern "C"
15476 #endif
15477 char socket ();
15478 /* The GNU C library defines this for functions which it implements
15479     to always fail with ENOSYS.  Some functions are actually named
15480     something starting with __ and the normal name is an alias.  */
15481 #if defined __stub_socket || defined __stub___socket
15482 choke me
15483 #endif
15484
15485 int
15486 main ()
15487 {
15488 return socket ();
15489   ;
15490   return 0;
15491 }
15492 _ACEOF
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (ac_try="$ac_link"
15495 case "(($ac_try" in
15496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497   *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500   (eval "$ac_link") 2>conftest.er1
15501   ac_status=$?
15502   grep -v '^ *+' conftest.er1 >conftest.err
15503   rm -f conftest.er1
15504   cat conftest.err >&5
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); } && {
15507          test -z "$ac_c_werror_flag" ||
15508          test ! -s conftest.err
15509        } && test -s conftest$ac_exeext &&
15510        $as_test_x conftest$ac_exeext; then
15511   ac_cv_func_socket=yes
15512 else
15513   echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15515
15516         ac_cv_func_socket=no
15517 fi
15518
15519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15520       conftest$ac_exeext conftest.$ac_ext
15521 fi
15522 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15523 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15524 if test $ac_cv_func_socket = yes; then
15525   :
15526 else
15527
15528
15529 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15530 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15531 if test "${ac_cv_lib_socket_main+set}" = set; then
15532   echo $ECHO_N "(cached) $ECHO_C" >&6
15533 else
15534   ac_check_lib_save_LIBS=$LIBS
15535 LIBS="-lsocket  $LIBS"
15536 cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h.  */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h.  */
15542
15543
15544 int
15545 main ()
15546 {
15547 return main ();
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (ac_try="$ac_link"
15554 case "(($ac_try" in
15555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556   *) ac_try_echo=$ac_try;;
15557 esac
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559   (eval "$ac_link") 2>conftest.er1
15560   ac_status=$?
15561   grep -v '^ *+' conftest.er1 >conftest.err
15562   rm -f conftest.er1
15563   cat conftest.err >&5
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); } && {
15566          test -z "$ac_c_werror_flag" ||
15567          test ! -s conftest.err
15568        } && test -s conftest$ac_exeext &&
15569        $as_test_x conftest$ac_exeext; then
15570   ac_cv_lib_socket_main=yes
15571 else
15572   echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15574
15575         ac_cv_lib_socket_main=no
15576 fi
15577
15578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15579       conftest$ac_exeext conftest.$ac_ext
15580 LIBS=$ac_check_lib_save_LIBS
15581 fi
15582 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15583 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15584 if test $ac_cv_lib_socket_main = yes; then
15585   cat >>confdefs.h <<_ACEOF
15586 #define HAVE_LIBSOCKET 1
15587 _ACEOF
15588
15589   LIBS="-lsocket $LIBS"
15590
15591 fi
15592
15593
15594 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15595 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15596 if test "${ac_cv_lib_net_main+set}" = set; then
15597   echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599   ac_check_lib_save_LIBS=$LIBS
15600 LIBS="-lnet  $LIBS"
15601 cat >conftest.$ac_ext <<_ACEOF
15602 /* confdefs.h.  */
15603 _ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h.  */
15607
15608
15609 int
15610 main ()
15611 {
15612 return main ();
15613   ;
15614   return 0;
15615 }
15616 _ACEOF
15617 rm -f conftest.$ac_objext conftest$ac_exeext
15618 if { (ac_try="$ac_link"
15619 case "(($ac_try" in
15620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621   *) ac_try_echo=$ac_try;;
15622 esac
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624   (eval "$ac_link") 2>conftest.er1
15625   ac_status=$?
15626   grep -v '^ *+' conftest.er1 >conftest.err
15627   rm -f conftest.er1
15628   cat conftest.err >&5
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); } && {
15631          test -z "$ac_c_werror_flag" ||
15632          test ! -s conftest.err
15633        } && test -s conftest$ac_exeext &&
15634        $as_test_x conftest$ac_exeext; then
15635   ac_cv_lib_net_main=yes
15636 else
15637   echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15639
15640         ac_cv_lib_net_main=no
15641 fi
15642
15643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15644       conftest$ac_exeext conftest.$ac_ext
15645 LIBS=$ac_check_lib_save_LIBS
15646 fi
15647 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15648 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15649 if test $ac_cv_lib_net_main = yes; then
15650   cat >>confdefs.h <<_ACEOF
15651 #define HAVE_LIBNET 1
15652 _ACEOF
15653
15654   LIBS="-lnet $LIBS"
15655
15656 fi
15657
15658
15659 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15660 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15661 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15662   echo $ECHO_N "(cached) $ECHO_C" >&6
15663 else
15664   ac_check_lib_save_LIBS=$LIBS
15665 LIBS="-lnsl_s  $LIBS"
15666 cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h.  */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h.  */
15672
15673
15674 int
15675 main ()
15676 {
15677 return main ();
15678   ;
15679   return 0;
15680 }
15681 _ACEOF
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (ac_try="$ac_link"
15684 case "(($ac_try" in
15685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686   *) ac_try_echo=$ac_try;;
15687 esac
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689   (eval "$ac_link") 2>conftest.er1
15690   ac_status=$?
15691   grep -v '^ *+' conftest.er1 >conftest.err
15692   rm -f conftest.er1
15693   cat conftest.err >&5
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); } && {
15696          test -z "$ac_c_werror_flag" ||
15697          test ! -s conftest.err
15698        } && test -s conftest$ac_exeext &&
15699        $as_test_x conftest$ac_exeext; then
15700   ac_cv_lib_nsl_s_main=yes
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705         ac_cv_lib_nsl_s_main=no
15706 fi
15707
15708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15709       conftest$ac_exeext conftest.$ac_ext
15710 LIBS=$ac_check_lib_save_LIBS
15711 fi
15712 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15713 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15714 if test $ac_cv_lib_nsl_s_main = yes; then
15715   cat >>confdefs.h <<_ACEOF
15716 #define HAVE_LIBNSL_S 1
15717 _ACEOF
15718
15719   LIBS="-lnsl_s $LIBS"
15720
15721 fi
15722
15723
15724 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15725 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15726 if test "${ac_cv_lib_nsl_main+set}" = set; then
15727   echo $ECHO_N "(cached) $ECHO_C" >&6
15728 else
15729   ac_check_lib_save_LIBS=$LIBS
15730 LIBS="-lnsl  $LIBS"
15731 cat >conftest.$ac_ext <<_ACEOF
15732 /* confdefs.h.  */
15733 _ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h.  */
15737
15738
15739 int
15740 main ()
15741 {
15742 return main ();
15743   ;
15744   return 0;
15745 }
15746 _ACEOF
15747 rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (ac_try="$ac_link"
15749 case "(($ac_try" in
15750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751   *) ac_try_echo=$ac_try;;
15752 esac
15753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754   (eval "$ac_link") 2>conftest.er1
15755   ac_status=$?
15756   grep -v '^ *+' conftest.er1 >conftest.err
15757   rm -f conftest.er1
15758   cat conftest.err >&5
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); } && {
15761          test -z "$ac_c_werror_flag" ||
15762          test ! -s conftest.err
15763        } && test -s conftest$ac_exeext &&
15764        $as_test_x conftest$ac_exeext; then
15765   ac_cv_lib_nsl_main=yes
15766 else
15767   echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15769
15770         ac_cv_lib_nsl_main=no
15771 fi
15772
15773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15774       conftest$ac_exeext conftest.$ac_ext
15775 LIBS=$ac_check_lib_save_LIBS
15776 fi
15777 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15778 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15779 if test $ac_cv_lib_nsl_main = yes; then
15780   cat >>confdefs.h <<_ACEOF
15781 #define HAVE_LIBNSL 1
15782 _ACEOF
15783
15784   LIBS="-lnsl $LIBS"
15785
15786 fi
15787
15788
15789 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15790 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15791 if test "${ac_cv_lib_inet_socket+set}" = set; then
15792   echo $ECHO_N "(cached) $ECHO_C" >&6
15793 else
15794   ac_check_lib_save_LIBS=$LIBS
15795 LIBS="-linet  $LIBS"
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h.  */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h.  */
15802
15803 /* Override any GCC internal prototype to avoid an error.
15804    Use char because int might match the return type of a GCC
15805    builtin and then its argument prototype would still apply.  */
15806 #ifdef __cplusplus
15807 extern "C"
15808 #endif
15809 char socket ();
15810 int
15811 main ()
15812 {
15813 return socket ();
15814   ;
15815   return 0;
15816 }
15817 _ACEOF
15818 rm -f conftest.$ac_objext conftest$ac_exeext
15819 if { (ac_try="$ac_link"
15820 case "(($ac_try" in
15821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822   *) ac_try_echo=$ac_try;;
15823 esac
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825   (eval "$ac_link") 2>conftest.er1
15826   ac_status=$?
15827   grep -v '^ *+' conftest.er1 >conftest.err
15828   rm -f conftest.er1
15829   cat conftest.err >&5
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); } && {
15832          test -z "$ac_c_werror_flag" ||
15833          test ! -s conftest.err
15834        } && test -s conftest$ac_exeext &&
15835        $as_test_x conftest$ac_exeext; then
15836   ac_cv_lib_inet_socket=yes
15837 else
15838   echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841         ac_cv_lib_inet_socket=no
15842 fi
15843
15844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15845       conftest$ac_exeext conftest.$ac_ext
15846 LIBS=$ac_check_lib_save_LIBS
15847 fi
15848 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15849 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15850 if test $ac_cv_lib_inet_socket = yes; then
15851   cat >>confdefs.h <<_ACEOF
15852 #define HAVE_LIBINET 1
15853 _ACEOF
15854
15855   LIBS="-linet $LIBS"
15856
15857 fi
15858
15859
15860 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15861 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15862 if test "${ac_cv_lib_gen_main+set}" = set; then
15863   echo $ECHO_N "(cached) $ECHO_C" >&6
15864 else
15865   ac_check_lib_save_LIBS=$LIBS
15866 LIBS="-lgen  $LIBS"
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h.  */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h.  */
15873
15874
15875 int
15876 main ()
15877 {
15878 return main ();
15879   ;
15880   return 0;
15881 }
15882 _ACEOF
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (ac_try="$ac_link"
15885 case "(($ac_try" in
15886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887   *) ac_try_echo=$ac_try;;
15888 esac
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890   (eval "$ac_link") 2>conftest.er1
15891   ac_status=$?
15892   grep -v '^ *+' conftest.er1 >conftest.err
15893   rm -f conftest.er1
15894   cat conftest.err >&5
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } && {
15897          test -z "$ac_c_werror_flag" ||
15898          test ! -s conftest.err
15899        } && test -s conftest$ac_exeext &&
15900        $as_test_x conftest$ac_exeext; then
15901   ac_cv_lib_gen_main=yes
15902 else
15903   echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15905
15906         ac_cv_lib_gen_main=no
15907 fi
15908
15909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910       conftest$ac_exeext conftest.$ac_ext
15911 LIBS=$ac_check_lib_save_LIBS
15912 fi
15913 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15914 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15915 if test $ac_cv_lib_gen_main = yes; then
15916   cat >>confdefs.h <<_ACEOF
15917 #define HAVE_LIBGEN 1
15918 _ACEOF
15919
15920   LIBS="-lgen $LIBS"
15921
15922 fi
15923
15924
15925 fi
15926
15927
15928 { echo "$as_me:$LINENO: checking for select" >&5
15929 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15930 if test "${ac_cv_func_select+set}" = set; then
15931   echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933   cat >conftest.$ac_ext <<_ACEOF
15934 /* confdefs.h.  */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h.  */
15939 /* Define select to an innocuous variant, in case <limits.h> declares select.
15940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15941 #define select innocuous_select
15942
15943 /* System header to define __stub macros and hopefully few prototypes,
15944     which can conflict with char select (); below.
15945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15946     <limits.h> exists even on freestanding compilers.  */
15947
15948 #ifdef __STDC__
15949 # include <limits.h>
15950 #else
15951 # include <assert.h>
15952 #endif
15953
15954 #undef select
15955
15956 /* Override any GCC internal prototype to avoid an error.
15957    Use char because int might match the return type of a GCC
15958    builtin and then its argument prototype would still apply.  */
15959 #ifdef __cplusplus
15960 extern "C"
15961 #endif
15962 char select ();
15963 /* The GNU C library defines this for functions which it implements
15964     to always fail with ENOSYS.  Some functions are actually named
15965     something starting with __ and the normal name is an alias.  */
15966 #if defined __stub_select || defined __stub___select
15967 choke me
15968 #endif
15969
15970 int
15971 main ()
15972 {
15973 return select ();
15974   ;
15975   return 0;
15976 }
15977 _ACEOF
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (ac_try="$ac_link"
15980 case "(($ac_try" in
15981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15982   *) ac_try_echo=$ac_try;;
15983 esac
15984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15985   (eval "$ac_link") 2>conftest.er1
15986   ac_status=$?
15987   grep -v '^ *+' conftest.er1 >conftest.err
15988   rm -f conftest.er1
15989   cat conftest.err >&5
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); } && {
15992          test -z "$ac_c_werror_flag" ||
15993          test ! -s conftest.err
15994        } && test -s conftest$ac_exeext &&
15995        $as_test_x conftest$ac_exeext; then
15996   ac_cv_func_select=yes
15997 else
15998   echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16000
16001         ac_cv_func_select=no
16002 fi
16003
16004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16005       conftest$ac_exeext conftest.$ac_ext
16006 fi
16007 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16008 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16009 if test $ac_cv_func_select = yes; then
16010   :
16011 else
16012   { { echo "$as_me:$LINENO: error: select() required." >&5
16013 echo "$as_me: error: select() required." >&2;}
16014    { (exit 1); exit 1; }; }
16015 fi
16016
16017
16018 if test "${ac_cv_header_winsock_h}" != yes; then
16019
16020
16021 for ac_header in sys/select.h sys/socket.h
16022 do
16023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16025   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028   echo $ECHO_N "(cached) $ECHO_C" >&6
16029 fi
16030 ac_res=`eval echo '${'$as_ac_Header'}'`
16031                { echo "$as_me:$LINENO: result: $ac_res" >&5
16032 echo "${ECHO_T}$ac_res" >&6; }
16033 else
16034   # Is the header compilable?
16035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h.  */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h.  */
16043 $ac_includes_default
16044 #include <$ac_header>
16045 _ACEOF
16046 rm -f conftest.$ac_objext
16047 if { (ac_try="$ac_compile"
16048 case "(($ac_try" in
16049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050   *) ac_try_echo=$ac_try;;
16051 esac
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053   (eval "$ac_compile") 2>conftest.er1
16054   ac_status=$?
16055   grep -v '^ *+' conftest.er1 >conftest.err
16056   rm -f conftest.er1
16057   cat conftest.err >&5
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); } && {
16060          test -z "$ac_c_werror_flag" ||
16061          test ! -s conftest.err
16062        } && test -s conftest.$ac_objext; then
16063   ac_header_compiler=yes
16064 else
16065   echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16067
16068         ac_header_compiler=no
16069 fi
16070
16071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16073 echo "${ECHO_T}$ac_header_compiler" >&6; }
16074
16075 # Is the header present?
16076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16078 cat >conftest.$ac_ext <<_ACEOF
16079 /* confdefs.h.  */
16080 _ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h.  */
16084 #include <$ac_header>
16085 _ACEOF
16086 if { (ac_try="$ac_cpp conftest.$ac_ext"
16087 case "(($ac_try" in
16088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089   *) ac_try_echo=$ac_try;;
16090 esac
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16093   ac_status=$?
16094   grep -v '^ *+' conftest.er1 >conftest.err
16095   rm -f conftest.er1
16096   cat conftest.err >&5
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); } >/dev/null && {
16099          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16100          test ! -s conftest.err
16101        }; then
16102   ac_header_preproc=yes
16103 else
16104   echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16106
16107   ac_header_preproc=no
16108 fi
16109
16110 rm -f conftest.err conftest.$ac_ext
16111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16112 echo "${ECHO_T}$ac_header_preproc" >&6; }
16113
16114 # So?  What about this header?
16115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16116   yes:no: )
16117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16121     ac_header_preproc=yes
16122     ;;
16123   no:yes:* )
16124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16136     ( cat <<\_ASBOX
16137 ## --------------------------------------------- ##
16138 ## Report this to <http://www.openldap.org/its/> ##
16139 ## --------------------------------------------- ##
16140 _ASBOX
16141      ) | sed "s/^/$as_me: WARNING:     /" >&2
16142     ;;
16143 esac
16144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16147   echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149   eval "$as_ac_Header=\$ac_header_preproc"
16150 fi
16151 ac_res=`eval echo '${'$as_ac_Header'}'`
16152                { echo "$as_me:$LINENO: result: $ac_res" >&5
16153 echo "${ECHO_T}$ac_res" >&6; }
16154
16155 fi
16156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16157   cat >>confdefs.h <<_ACEOF
16158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16159 _ACEOF
16160
16161 fi
16162
16163 done
16164
16165 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16166 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16167 if test "${ac_cv_func_select_args+set}" = set; then
16168   echo $ECHO_N "(cached) $ECHO_C" >&6
16169 else
16170   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16171  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16172   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16173    cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h.  */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h.  */
16179 $ac_includes_default
16180 #ifdef HAVE_SYS_SELECT_H
16181 # include <sys/select.h>
16182 #endif
16183 #ifdef HAVE_SYS_SOCKET_H
16184 # include <sys/socket.h>
16185 #endif
16186
16187 int
16188 main ()
16189 {
16190 extern int select ($ac_arg1,
16191                                             $ac_arg234, $ac_arg234, $ac_arg234,
16192                                             $ac_arg5);
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201   *) ac_try_echo=$ac_try;;
16202 esac
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204   (eval "$ac_compile") 2>conftest.er1
16205   ac_status=$?
16206   grep -v '^ *+' conftest.er1 >conftest.err
16207   rm -f conftest.er1
16208   cat conftest.err >&5
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } && {
16211          test -z "$ac_c_werror_flag" ||
16212          test ! -s conftest.err
16213        } && test -s conftest.$ac_objext; then
16214   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16215 else
16216   echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219
16220 fi
16221
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223   done
16224  done
16225 done
16226 # Provide a safe default value.
16227 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16228
16229 fi
16230 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16231 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16232 ac_save_IFS=$IFS; IFS=','
16233 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16234 IFS=$ac_save_IFS
16235 shift
16236
16237 cat >>confdefs.h <<_ACEOF
16238 #define SELECT_TYPE_ARG1 $1
16239 _ACEOF
16240
16241
16242 cat >>confdefs.h <<_ACEOF
16243 #define SELECT_TYPE_ARG234 ($2)
16244 _ACEOF
16245
16246
16247 cat >>confdefs.h <<_ACEOF
16248 #define SELECT_TYPE_ARG5 ($3)
16249 _ACEOF
16250
16251 rm -f conftest*
16252
16253 fi
16254
16255
16256
16257 for ac_func in poll
16258 do
16259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16263   echo $ECHO_N "(cached) $ECHO_C" >&6
16264 else
16265   cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h.  */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h.  */
16271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16273 #define $ac_func innocuous_$ac_func
16274
16275 /* System header to define __stub macros and hopefully few prototypes,
16276     which can conflict with char $ac_func (); below.
16277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16278     <limits.h> exists even on freestanding compilers.  */
16279
16280 #ifdef __STDC__
16281 # include <limits.h>
16282 #else
16283 # include <assert.h>
16284 #endif
16285
16286 #undef $ac_func
16287
16288 /* Override any GCC internal prototype to avoid an error.
16289    Use char because int might match the return type of a GCC
16290    builtin and then its argument prototype would still apply.  */
16291 #ifdef __cplusplus
16292 extern "C"
16293 #endif
16294 char $ac_func ();
16295 /* The GNU C library defines this for functions which it implements
16296     to always fail with ENOSYS.  Some functions are actually named
16297     something starting with __ and the normal name is an alias.  */
16298 #if defined __stub_$ac_func || defined __stub___$ac_func
16299 choke me
16300 #endif
16301
16302 int
16303 main ()
16304 {
16305 return $ac_func ();
16306   ;
16307   return 0;
16308 }
16309 _ACEOF
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (ac_try="$ac_link"
16312 case "(($ac_try" in
16313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314   *) ac_try_echo=$ac_try;;
16315 esac
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317   (eval "$ac_link") 2>conftest.er1
16318   ac_status=$?
16319   grep -v '^ *+' conftest.er1 >conftest.err
16320   rm -f conftest.er1
16321   cat conftest.err >&5
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); } && {
16324          test -z "$ac_c_werror_flag" ||
16325          test ! -s conftest.err
16326        } && test -s conftest$ac_exeext &&
16327        $as_test_x conftest$ac_exeext; then
16328   eval "$as_ac_var=yes"
16329 else
16330   echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333         eval "$as_ac_var=no"
16334 fi
16335
16336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16337       conftest$ac_exeext conftest.$ac_ext
16338 fi
16339 ac_res=`eval echo '${'$as_ac_var'}'`
16340                { echo "$as_me:$LINENO: result: $ac_res" >&5
16341 echo "${ECHO_T}$ac_res" >&6; }
16342 if test `eval echo '${'$as_ac_var'}'` = yes; then
16343   cat >>confdefs.h <<_ACEOF
16344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16345 _ACEOF
16346
16347 fi
16348 done
16349
16350 if test $ac_cv_func_poll = yes; then
16351
16352
16353 for ac_header in poll.h sys/poll.h
16354 do
16355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16357   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16360   echo $ECHO_N "(cached) $ECHO_C" >&6
16361 fi
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363                { echo "$as_me:$LINENO: result: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16365 else
16366   # Is the header compilable?
16367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16369 cat >conftest.$ac_ext <<_ACEOF
16370 /* confdefs.h.  */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h.  */
16375 $ac_includes_default
16376 #include <$ac_header>
16377 _ACEOF
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382   *) ac_try_echo=$ac_try;;
16383 esac
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385   (eval "$ac_compile") 2>conftest.er1
16386   ac_status=$?
16387   grep -v '^ *+' conftest.er1 >conftest.err
16388   rm -f conftest.er1
16389   cat conftest.err >&5
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } && {
16392          test -z "$ac_c_werror_flag" ||
16393          test ! -s conftest.err
16394        } && test -s conftest.$ac_objext; then
16395   ac_header_compiler=yes
16396 else
16397   echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16399
16400         ac_header_compiler=no
16401 fi
16402
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16405 echo "${ECHO_T}$ac_header_compiler" >&6; }
16406
16407 # Is the header present?
16408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16410 cat >conftest.$ac_ext <<_ACEOF
16411 /* confdefs.h.  */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h.  */
16416 #include <$ac_header>
16417 _ACEOF
16418 if { (ac_try="$ac_cpp conftest.$ac_ext"
16419 case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16425   ac_status=$?
16426   grep -v '^ *+' conftest.er1 >conftest.err
16427   rm -f conftest.er1
16428   cat conftest.err >&5
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); } >/dev/null && {
16431          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16432          test ! -s conftest.err
16433        }; then
16434   ac_header_preproc=yes
16435 else
16436   echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439   ac_header_preproc=no
16440 fi
16441
16442 rm -f conftest.err conftest.$ac_ext
16443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16444 echo "${ECHO_T}$ac_header_preproc" >&6; }
16445
16446 # So?  What about this header?
16447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16448   yes:no: )
16449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16453     ac_header_preproc=yes
16454     ;;
16455   no:yes:* )
16456     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16458     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16459 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16460     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16462     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16463 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16466     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16468     ( cat <<\_ASBOX
16469 ## --------------------------------------------- ##
16470 ## Report this to <http://www.openldap.org/its/> ##
16471 ## --------------------------------------------- ##
16472 _ASBOX
16473      ) | sed "s/^/$as_me: WARNING:     /" >&2
16474     ;;
16475 esac
16476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16479   echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481   eval "$as_ac_Header=\$ac_header_preproc"
16482 fi
16483 ac_res=`eval echo '${'$as_ac_Header'}'`
16484                { echo "$as_me:$LINENO: result: $ac_res" >&5
16485 echo "${ECHO_T}$ac_res" >&6; }
16486
16487 fi
16488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16489   cat >>confdefs.h <<_ACEOF
16490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16491 _ACEOF
16492
16493 fi
16494
16495 done
16496
16497 fi
16498
16499
16500 for ac_header in sys/epoll.h
16501 do
16502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16504   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16507   echo $ECHO_N "(cached) $ECHO_C" >&6
16508 fi
16509 ac_res=`eval echo '${'$as_ac_Header'}'`
16510                { echo "$as_me:$LINENO: result: $ac_res" >&5
16511 echo "${ECHO_T}$ac_res" >&6; }
16512 else
16513   # Is the header compilable?
16514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16516 cat >conftest.$ac_ext <<_ACEOF
16517 /* confdefs.h.  */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h.  */
16522 $ac_includes_default
16523 #include <$ac_header>
16524 _ACEOF
16525 rm -f conftest.$ac_objext
16526 if { (ac_try="$ac_compile"
16527 case "(($ac_try" in
16528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529   *) ac_try_echo=$ac_try;;
16530 esac
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532   (eval "$ac_compile") 2>conftest.er1
16533   ac_status=$?
16534   grep -v '^ *+' conftest.er1 >conftest.err
16535   rm -f conftest.er1
16536   cat conftest.err >&5
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); } && {
16539          test -z "$ac_c_werror_flag" ||
16540          test ! -s conftest.err
16541        } && test -s conftest.$ac_objext; then
16542   ac_header_compiler=yes
16543 else
16544   echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547         ac_header_compiler=no
16548 fi
16549
16550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16552 echo "${ECHO_T}$ac_header_compiler" >&6; }
16553
16554 # Is the header present?
16555 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16557 cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h.  */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h.  */
16563 #include <$ac_header>
16564 _ACEOF
16565 if { (ac_try="$ac_cpp conftest.$ac_ext"
16566 case "(($ac_try" in
16567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568   *) ac_try_echo=$ac_try;;
16569 esac
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16572   ac_status=$?
16573   grep -v '^ *+' conftest.er1 >conftest.err
16574   rm -f conftest.er1
16575   cat conftest.err >&5
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); } >/dev/null && {
16578          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16579          test ! -s conftest.err
16580        }; then
16581   ac_header_preproc=yes
16582 else
16583   echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16585
16586   ac_header_preproc=no
16587 fi
16588
16589 rm -f conftest.err conftest.$ac_ext
16590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16591 echo "${ECHO_T}$ac_header_preproc" >&6; }
16592
16593 # So?  What about this header?
16594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16595   yes:no: )
16596     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16600     ac_header_preproc=yes
16601     ;;
16602   no:yes:* )
16603     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16605     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16606 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16607     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16609     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16610 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16613     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16615     ( cat <<\_ASBOX
16616 ## --------------------------------------------- ##
16617 ## Report this to <http://www.openldap.org/its/> ##
16618 ## --------------------------------------------- ##
16619 _ASBOX
16620      ) | sed "s/^/$as_me: WARNING:     /" >&2
16621     ;;
16622 esac
16623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16626   echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628   eval "$as_ac_Header=\$ac_header_preproc"
16629 fi
16630 ac_res=`eval echo '${'$as_ac_Header'}'`
16631                { echo "$as_me:$LINENO: result: $ac_res" >&5
16632 echo "${ECHO_T}$ac_res" >&6; }
16633
16634 fi
16635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16636   cat >>confdefs.h <<_ACEOF
16637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16638 _ACEOF
16639
16640 fi
16641
16642 done
16643
16644 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16645         { echo "$as_me:$LINENO: checking for epoll system call" >&5
16646 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16647         if test "$cross_compiling" = yes; then
16648   { echo "$as_me:$LINENO: result: no" >&5
16649 echo "${ECHO_T}no" >&6; }
16650 else
16651   cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h.  */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h.  */
16657 int main(int argc, char **argv)
16658 {
16659         int epfd = epoll_create(256);
16660         exit (epfd == -1 ? 1 : 0);
16661 }
16662 _ACEOF
16663 rm -f conftest$ac_exeext
16664 if { (ac_try="$ac_link"
16665 case "(($ac_try" in
16666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667   *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670   (eval "$ac_link") 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16674   { (case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679   (eval "$ac_try") 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; }; then
16683   { echo "$as_me:$LINENO: result: yes" >&5
16684 echo "${ECHO_T}yes" >&6; }
16685
16686 cat >>confdefs.h <<\_ACEOF
16687 #define HAVE_EPOLL 1
16688 _ACEOF
16689
16690 else
16691   echo "$as_me: program exited with status $ac_status" >&5
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16694
16695 ( exit $ac_status )
16696 { echo "$as_me:$LINENO: result: no" >&5
16697 echo "${ECHO_T}no" >&6; }
16698 fi
16699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16700 fi
16701
16702
16703 fi
16704
16705
16706 for ac_header in sys/devpoll.h
16707 do
16708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16710   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16713   echo $ECHO_N "(cached) $ECHO_C" >&6
16714 fi
16715 ac_res=`eval echo '${'$as_ac_Header'}'`
16716                { echo "$as_me:$LINENO: result: $ac_res" >&5
16717 echo "${ECHO_T}$ac_res" >&6; }
16718 else
16719   # Is the header compilable?
16720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h.  */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h.  */
16728 $ac_includes_default
16729 #include <$ac_header>
16730 _ACEOF
16731 rm -f conftest.$ac_objext
16732 if { (ac_try="$ac_compile"
16733 case "(($ac_try" in
16734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735   *) ac_try_echo=$ac_try;;
16736 esac
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738   (eval "$ac_compile") 2>conftest.er1
16739   ac_status=$?
16740   grep -v '^ *+' conftest.er1 >conftest.err
16741   rm -f conftest.er1
16742   cat conftest.err >&5
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); } && {
16745          test -z "$ac_c_werror_flag" ||
16746          test ! -s conftest.err
16747        } && test -s conftest.$ac_objext; then
16748   ac_header_compiler=yes
16749 else
16750   echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753         ac_header_compiler=no
16754 fi
16755
16756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16758 echo "${ECHO_T}$ac_header_compiler" >&6; }
16759
16760 # Is the header present?
16761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16763 cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h.  */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h.  */
16769 #include <$ac_header>
16770 _ACEOF
16771 if { (ac_try="$ac_cpp conftest.$ac_ext"
16772 case "(($ac_try" in
16773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774   *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16778   ac_status=$?
16779   grep -v '^ *+' conftest.er1 >conftest.err
16780   rm -f conftest.er1
16781   cat conftest.err >&5
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); } >/dev/null && {
16784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16785          test ! -s conftest.err
16786        }; then
16787   ac_header_preproc=yes
16788 else
16789   echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16791
16792   ac_header_preproc=no
16793 fi
16794
16795 rm -f conftest.err conftest.$ac_ext
16796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16797 echo "${ECHO_T}$ac_header_preproc" >&6; }
16798
16799 # So?  What about this header?
16800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16801   yes:no: )
16802     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16806     ac_header_preproc=yes
16807     ;;
16808   no:yes:* )
16809     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16811     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16812 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16813     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16815     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16816 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16819     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16821     ( cat <<\_ASBOX
16822 ## --------------------------------------------- ##
16823 ## Report this to <http://www.openldap.org/its/> ##
16824 ## --------------------------------------------- ##
16825 _ASBOX
16826      ) | sed "s/^/$as_me: WARNING:     /" >&2
16827     ;;
16828 esac
16829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16832   echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834   eval "$as_ac_Header=\$ac_header_preproc"
16835 fi
16836 ac_res=`eval echo '${'$as_ac_Header'}'`
16837                { echo "$as_me:$LINENO: result: $ac_res" >&5
16838 echo "${ECHO_T}$ac_res" >&6; }
16839
16840 fi
16841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16842   cat >>confdefs.h <<_ACEOF
16843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16844 _ACEOF
16845
16846 fi
16847
16848 done
16849
16850 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16851                 -a "${ac_cv_header_poll_h}" = yes ; \
16852 then
16853         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16854 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16855         if test "$cross_compiling" = yes; then
16856   { echo "$as_me:$LINENO: result: no" >&5
16857 echo "${ECHO_T}no" >&6; }
16858 else
16859   cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h.  */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h.  */
16865 int main(int argc, char **argv)
16866 {
16867         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16868         exit (devpollfd == -1 ? 1 : 0);
16869 }
16870 _ACEOF
16871 rm -f conftest$ac_exeext
16872 if { (ac_try="$ac_link"
16873 case "(($ac_try" in
16874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875   *) ac_try_echo=$ac_try;;
16876 esac
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878   (eval "$ac_link") 2>&5
16879   ac_status=$?
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16882   { (case "(($ac_try" in
16883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884   *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887   (eval "$ac_try") 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); }; }; then
16891   { echo "$as_me:$LINENO: result: yes" >&5
16892 echo "${ECHO_T}yes" >&6; }
16893
16894 cat >>confdefs.h <<\_ACEOF
16895 #define HAVE_DEVPOLL 1
16896 _ACEOF
16897
16898 else
16899   echo "$as_me: program exited with status $ac_status" >&5
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16902
16903 ( exit $ac_status )
16904 { echo "$as_me:$LINENO: result: no" >&5
16905 echo "${ECHO_T}no" >&6; }
16906 fi
16907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16908 fi
16909
16910
16911 fi
16912
16913 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16914 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16915 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16916   echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918
16919         cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h.  */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h.  */
16925
16926 #include <stdio.h>
16927 #include <sys/types.h>
16928 #include <errno.h>
16929 #ifdef _WIN32
16930 #include <stdlib.h>
16931 #endif
16932 int
16933 main ()
16934 {
16935 char *c = (char *) *sys_errlist
16936   ;
16937   return 0;
16938 }
16939 _ACEOF
16940 rm -f conftest.$ac_objext
16941 if { (ac_try="$ac_compile"
16942 case "(($ac_try" in
16943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944   *) ac_try_echo=$ac_try;;
16945 esac
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947   (eval "$ac_compile") 2>conftest.er1
16948   ac_status=$?
16949   grep -v '^ *+' conftest.er1 >conftest.err
16950   rm -f conftest.er1
16951   cat conftest.err >&5
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); } && {
16954          test -z "$ac_c_werror_flag" ||
16955          test ! -s conftest.err
16956        } && test -s conftest.$ac_objext; then
16957   ol_cv_dcl_sys_errlist=yes
16958         ol_cv_have_sys_errlist=yes
16959 else
16960   echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16962
16963         ol_cv_dcl_sys_errlist=no
16964 fi
16965
16966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16967 fi
16968 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16969 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16970 #
16971 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16972 if test $ol_cv_dcl_sys_errlist = no ; then
16973
16974 cat >>confdefs.h <<\_ACEOF
16975 #define DECL_SYS_ERRLIST 1
16976 _ACEOF
16977
16978
16979         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16980 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16981 if test "${ol_cv_have_sys_errlist+set}" = set; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984
16985                 cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h.  */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h.  */
16991 #include <errno.h>
16992 int
16993 main ()
16994 {
16995 char *c = (char *) *sys_errlist
16996   ;
16997   return 0;
16998 }
16999 _ACEOF
17000 rm -f conftest.$ac_objext conftest$ac_exeext
17001 if { (ac_try="$ac_link"
17002 case "(($ac_try" in
17003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004   *) ac_try_echo=$ac_try;;
17005 esac
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007   (eval "$ac_link") 2>conftest.er1
17008   ac_status=$?
17009   grep -v '^ *+' conftest.er1 >conftest.err
17010   rm -f conftest.er1
17011   cat conftest.err >&5
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); } && {
17014          test -z "$ac_c_werror_flag" ||
17015          test ! -s conftest.err
17016        } && test -s conftest$ac_exeext &&
17017        $as_test_x conftest$ac_exeext; then
17018   ol_cv_have_sys_errlist=yes
17019 else
17020   echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023         ol_cv_have_sys_errlist=no
17024 fi
17025
17026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17027       conftest$ac_exeext conftest.$ac_ext
17028 fi
17029 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17030 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17031 fi
17032 if test $ol_cv_have_sys_errlist = yes ; then
17033
17034 cat >>confdefs.h <<\_ACEOF
17035 #define HAVE_SYS_ERRLIST 1
17036 _ACEOF
17037
17038 fi
17039
17040
17041 for ac_func in strerror strerror_r
17042 do
17043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17047   echo $ECHO_N "(cached) $ECHO_C" >&6
17048 else
17049   cat >conftest.$ac_ext <<_ACEOF
17050 /* confdefs.h.  */
17051 _ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h.  */
17055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17057 #define $ac_func innocuous_$ac_func
17058
17059 /* System header to define __stub macros and hopefully few prototypes,
17060     which can conflict with char $ac_func (); below.
17061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17062     <limits.h> exists even on freestanding compilers.  */
17063
17064 #ifdef __STDC__
17065 # include <limits.h>
17066 #else
17067 # include <assert.h>
17068 #endif
17069
17070 #undef $ac_func
17071
17072 /* Override any GCC internal prototype to avoid an error.
17073    Use char because int might match the return type of a GCC
17074    builtin and then its argument prototype would still apply.  */
17075 #ifdef __cplusplus
17076 extern "C"
17077 #endif
17078 char $ac_func ();
17079 /* The GNU C library defines this for functions which it implements
17080     to always fail with ENOSYS.  Some functions are actually named
17081     something starting with __ and the normal name is an alias.  */
17082 #if defined __stub_$ac_func || defined __stub___$ac_func
17083 choke me
17084 #endif
17085
17086 int
17087 main ()
17088 {
17089 return $ac_func ();
17090   ;
17091   return 0;
17092 }
17093 _ACEOF
17094 rm -f conftest.$ac_objext conftest$ac_exeext
17095 if { (ac_try="$ac_link"
17096 case "(($ac_try" in
17097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098   *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101   (eval "$ac_link") 2>conftest.er1
17102   ac_status=$?
17103   grep -v '^ *+' conftest.er1 >conftest.err
17104   rm -f conftest.er1
17105   cat conftest.err >&5
17106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107   (exit $ac_status); } && {
17108          test -z "$ac_c_werror_flag" ||
17109          test ! -s conftest.err
17110        } && test -s conftest$ac_exeext &&
17111        $as_test_x conftest$ac_exeext; then
17112   eval "$as_ac_var=yes"
17113 else
17114   echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117         eval "$as_ac_var=no"
17118 fi
17119
17120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17121       conftest$ac_exeext conftest.$ac_ext
17122 fi
17123 ac_res=`eval echo '${'$as_ac_var'}'`
17124                { echo "$as_me:$LINENO: result: $ac_res" >&5
17125 echo "${ECHO_T}$ac_res" >&6; }
17126 if test `eval echo '${'$as_ac_var'}'` = yes; then
17127   cat >>confdefs.h <<_ACEOF
17128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17129 _ACEOF
17130
17131 fi
17132 done
17133
17134 ol_cv_func_strerror_r=no
17135 if test "${ac_cv_func_strerror_r}" = yes ; then
17136         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17137 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17138 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17139   echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141
17142         cat >conftest.$ac_ext <<_ACEOF
17143 /* confdefs.h.  */
17144 _ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h.  */
17148 #include <string.h>
17149 _ACEOF
17150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17151   $EGREP "strerror_r" >/dev/null 2>&1; then
17152   ol_decl_strerror_r=yes
17153 else
17154   ol_decl_strerror_r=no
17155 fi
17156 rm -f conftest*
17157
17158         if test $ol_decl_strerror_r = yes ; then
17159                 cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h.  */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h.  */
17165 #include <string.h>
17166 int
17167 main ()
17168 {
17169    /* from autoconf 2.59 */
17170                                 char buf[100];
17171                                 char x = *strerror_r (0, buf, sizeof buf);
17172                                 char *p = strerror_r (0, buf, sizeof buf);
17173
17174   ;
17175   return 0;
17176 }
17177 _ACEOF
17178 rm -f conftest.$ac_objext
17179 if { (ac_try="$ac_compile"
17180 case "(($ac_try" in
17181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182   *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185   (eval "$ac_compile") 2>conftest.er1
17186   ac_status=$?
17187   grep -v '^ *+' conftest.er1 >conftest.err
17188   rm -f conftest.er1
17189   cat conftest.err >&5
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); } && {
17192          test -z "$ac_c_werror_flag" ||
17193          test ! -s conftest.err
17194        } && test -s conftest.$ac_objext; then
17195   ol_cv_nonposix_strerror_r=yes
17196 else
17197   echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200         ol_cv_nonposix_strerror_r=no
17201 fi
17202
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204         else
17205                 if test "$cross_compiling" = yes; then
17206   ol_cv_nonposix_strerror=no
17207 else
17208   cat >conftest.$ac_ext <<_ACEOF
17209 /* confdefs.h.  */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h.  */
17214
17215                         main() {
17216                                 char buf[100];
17217                                 buf[0] = 0;
17218                                 strerror_r( 1, buf, sizeof buf );
17219                                 exit( buf[0] == 0 );
17220                         }
17221
17222 _ACEOF
17223 rm -f conftest$ac_exeext
17224 if { (ac_try="$ac_link"
17225 case "(($ac_try" in
17226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227   *) ac_try_echo=$ac_try;;
17228 esac
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230   (eval "$ac_link") 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17234   { (case "(($ac_try" in
17235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236   *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239   (eval "$ac_try") 2>&5
17240   ac_status=$?
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); }; }; then
17243   ol_cv_nonposix_strerror_r=yes
17244 else
17245   echo "$as_me: program exited with status $ac_status" >&5
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249 ( exit $ac_status )
17250 ol_cv_nonposix_strerror=no
17251 fi
17252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17253 fi
17254
17255
17256         fi
17257
17258 fi
17259 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17260 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17261 if test $ol_cv_nonposix_strerror_r = yes ; then
17262
17263 cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_NONPOSIX_STRERROR_R 1
17265 _ACEOF
17266
17267 fi
17268
17269 elif test "${ac_cv_func_strerror}" = no ; then
17270         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17271 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17272 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17273   echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275
17276         cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282
17283 #include <stdio.h>
17284 #include <sys/types.h>
17285 #include <errno.h>
17286 #ifdef _WIN32
17287 #include <stdlib.h>
17288 #endif
17289 int
17290 main ()
17291 {
17292 char *c = (char *) *sys_errlist
17293   ;
17294   return 0;
17295 }
17296 _ACEOF
17297 rm -f conftest.$ac_objext
17298 if { (ac_try="$ac_compile"
17299 case "(($ac_try" in
17300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301   *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304   (eval "$ac_compile") 2>conftest.er1
17305   ac_status=$?
17306   grep -v '^ *+' conftest.er1 >conftest.err
17307   rm -f conftest.er1
17308   cat conftest.err >&5
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); } && {
17311          test -z "$ac_c_werror_flag" ||
17312          test ! -s conftest.err
17313        } && test -s conftest.$ac_objext; then
17314   ol_cv_dcl_sys_errlist=yes
17315         ol_cv_have_sys_errlist=yes
17316 else
17317   echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17319
17320         ol_cv_dcl_sys_errlist=no
17321 fi
17322
17323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17324 fi
17325 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17326 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17327 #
17328 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17329 if test $ol_cv_dcl_sys_errlist = no ; then
17330
17331 cat >>confdefs.h <<\_ACEOF
17332 #define DECL_SYS_ERRLIST 1
17333 _ACEOF
17334
17335
17336         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17337 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17338 if test "${ol_cv_have_sys_errlist+set}" = set; then
17339   echo $ECHO_N "(cached) $ECHO_C" >&6
17340 else
17341
17342                 cat >conftest.$ac_ext <<_ACEOF
17343 /* confdefs.h.  */
17344 _ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h.  */
17348 #include <errno.h>
17349 int
17350 main ()
17351 {
17352 char *c = (char *) *sys_errlist
17353   ;
17354   return 0;
17355 }
17356 _ACEOF
17357 rm -f conftest.$ac_objext conftest$ac_exeext
17358 if { (ac_try="$ac_link"
17359 case "(($ac_try" in
17360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361   *) ac_try_echo=$ac_try;;
17362 esac
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364   (eval "$ac_link") 2>conftest.er1
17365   ac_status=$?
17366   grep -v '^ *+' conftest.er1 >conftest.err
17367   rm -f conftest.er1
17368   cat conftest.err >&5
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); } && {
17371          test -z "$ac_c_werror_flag" ||
17372          test ! -s conftest.err
17373        } && test -s conftest$ac_exeext &&
17374        $as_test_x conftest$ac_exeext; then
17375   ol_cv_have_sys_errlist=yes
17376 else
17377   echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17379
17380         ol_cv_have_sys_errlist=no
17381 fi
17382
17383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17384       conftest$ac_exeext conftest.$ac_ext
17385 fi
17386 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17387 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17388 fi
17389 if test $ol_cv_have_sys_errlist = yes ; then
17390
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_SYS_ERRLIST 1
17393 _ACEOF
17394
17395 fi
17396
17397 fi
17398
17399
17400
17401 for ac_header in regex.h
17402 do
17403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17407   echo $ECHO_N "(cached) $ECHO_C" >&6
17408 else
17409   cat >conftest.$ac_ext <<_ACEOF
17410 /* confdefs.h.  */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h.  */
17415 $ac_includes_default
17416 #ifdef HAVE_SYS_TYPES_H
17417 #include <sys/types.h>
17418 #endif
17419
17420
17421 #include <$ac_header>
17422 _ACEOF
17423 rm -f conftest.$ac_objext
17424 if { (ac_try="$ac_compile"
17425 case "(($ac_try" in
17426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427   *) ac_try_echo=$ac_try;;
17428 esac
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430   (eval "$ac_compile") 2>conftest.er1
17431   ac_status=$?
17432   grep -v '^ *+' conftest.er1 >conftest.err
17433   rm -f conftest.er1
17434   cat conftest.err >&5
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); } && {
17437          test -z "$ac_c_werror_flag" ||
17438          test ! -s conftest.err
17439        } && test -s conftest.$ac_objext; then
17440   eval "$as_ac_Header=yes"
17441 else
17442   echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17444
17445         eval "$as_ac_Header=no"
17446 fi
17447
17448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17449 fi
17450 ac_res=`eval echo '${'$as_ac_Header'}'`
17451                { echo "$as_me:$LINENO: result: $ac_res" >&5
17452 echo "${ECHO_T}$ac_res" >&6; }
17453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17454   cat >>confdefs.h <<_ACEOF
17455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17456 _ACEOF
17457
17458 fi
17459
17460 done
17461
17462
17463 if test "$ac_cv_header_regex_h" != yes ; then
17464         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17465 echo "$as_me: error: POSIX regex.h required." >&2;}
17466    { (exit 1); exit 1; }; }
17467 fi
17468 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17469 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17470 if test "${ac_cv_search_regfree+set}" = set; then
17471   echo $ECHO_N "(cached) $ECHO_C" >&6
17472 else
17473   ac_func_search_save_LIBS=$LIBS
17474 cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h.  */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h.  */
17480
17481 /* Override any GCC internal prototype to avoid an error.
17482    Use char because int might match the return type of a GCC
17483    builtin and then its argument prototype would still apply.  */
17484 #ifdef __cplusplus
17485 extern "C"
17486 #endif
17487 char regfree ();
17488 int
17489 main ()
17490 {
17491 return regfree ();
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 for ac_lib in '' regex gnuregex; do
17497   if test -z "$ac_lib"; then
17498     ac_res="none required"
17499   else
17500     ac_res=-l$ac_lib
17501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17502   fi
17503   rm -f conftest.$ac_objext conftest$ac_exeext
17504 if { (ac_try="$ac_link"
17505 case "(($ac_try" in
17506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507   *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510   (eval "$ac_link") 2>conftest.er1
17511   ac_status=$?
17512   grep -v '^ *+' conftest.er1 >conftest.err
17513   rm -f conftest.er1
17514   cat conftest.err >&5
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); } && {
17517          test -z "$ac_c_werror_flag" ||
17518          test ! -s conftest.err
17519        } && test -s conftest$ac_exeext &&
17520        $as_test_x conftest$ac_exeext; then
17521   ac_cv_search_regfree=$ac_res
17522 else
17523   echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17525
17526
17527 fi
17528
17529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17530       conftest$ac_exeext
17531   if test "${ac_cv_search_regfree+set}" = set; then
17532   break
17533 fi
17534 done
17535 if test "${ac_cv_search_regfree+set}" = set; then
17536   :
17537 else
17538   ac_cv_search_regfree=no
17539 fi
17540 rm conftest.$ac_ext
17541 LIBS=$ac_func_search_save_LIBS
17542 fi
17543 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17544 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17545 ac_res=$ac_cv_search_regfree
17546 if test "$ac_res" != no; then
17547   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17548   :
17549 else
17550   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17551 echo "$as_me: error: POSIX regex required." >&2;}
17552    { (exit 1); exit 1; }; }
17553 fi
17554
17555
17556
17557 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17558 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17559 if test "${ol_cv_c_posix_regex+set}" = set; then
17560   echo $ECHO_N "(cached) $ECHO_C" >&6
17561 else
17562
17563         if test "$cross_compiling" = yes; then
17564   ol_cv_c_posix_regex=cross
17565 else
17566   cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h.  */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h.  */
17572
17573 #include <sys/types.h>
17574 #include <regex.h>
17575 static char *pattern, *string;
17576 main()
17577 {
17578         int rc;
17579         regex_t re;
17580
17581         pattern = "^A";
17582
17583         if(regcomp(&re, pattern, 0)) {
17584                 return -1;
17585         }
17586
17587         string = "ALL MATCH";
17588
17589         rc = regexec(&re, string, 0, (void*)0, 0);
17590
17591         regfree(&re);
17592
17593         return rc;
17594 }
17595 _ACEOF
17596 rm -f conftest$ac_exeext
17597 if { (ac_try="$ac_link"
17598 case "(($ac_try" in
17599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600   *) ac_try_echo=$ac_try;;
17601 esac
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603   (eval "$ac_link") 2>&5
17604   ac_status=$?
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17607   { (case "(($ac_try" in
17608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609   *) ac_try_echo=$ac_try;;
17610 esac
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612   (eval "$ac_try") 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; }; then
17616   ol_cv_c_posix_regex=yes
17617 else
17618   echo "$as_me: program exited with status $ac_status" >&5
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17621
17622 ( exit $ac_status )
17623 ol_cv_c_posix_regex=no
17624 fi
17625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17626 fi
17627
17628
17629 fi
17630 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17631 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17632
17633 if test "$ol_cv_c_posix_regex" = no ; then
17634         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17635 echo "$as_me: error: broken POSIX regex!" >&2;}
17636    { (exit 1); exit 1; }; }
17637 fi
17638
17639
17640 have_uuid=no
17641
17642 for ac_header in sys/uuid.h
17643 do
17644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17646   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17649   echo $ECHO_N "(cached) $ECHO_C" >&6
17650 fi
17651 ac_res=`eval echo '${'$as_ac_Header'}'`
17652                { echo "$as_me:$LINENO: result: $ac_res" >&5
17653 echo "${ECHO_T}$ac_res" >&6; }
17654 else
17655   # Is the header compilable?
17656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17658 cat >conftest.$ac_ext <<_ACEOF
17659 /* confdefs.h.  */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h.  */
17664 $ac_includes_default
17665 #include <$ac_header>
17666 _ACEOF
17667 rm -f conftest.$ac_objext
17668 if { (ac_try="$ac_compile"
17669 case "(($ac_try" in
17670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671   *) ac_try_echo=$ac_try;;
17672 esac
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674   (eval "$ac_compile") 2>conftest.er1
17675   ac_status=$?
17676   grep -v '^ *+' conftest.er1 >conftest.err
17677   rm -f conftest.er1
17678   cat conftest.err >&5
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); } && {
17681          test -z "$ac_c_werror_flag" ||
17682          test ! -s conftest.err
17683        } && test -s conftest.$ac_objext; then
17684   ac_header_compiler=yes
17685 else
17686   echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689         ac_header_compiler=no
17690 fi
17691
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17694 echo "${ECHO_T}$ac_header_compiler" >&6; }
17695
17696 # Is the header present?
17697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17699 cat >conftest.$ac_ext <<_ACEOF
17700 /* confdefs.h.  */
17701 _ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h.  */
17705 #include <$ac_header>
17706 _ACEOF
17707 if { (ac_try="$ac_cpp conftest.$ac_ext"
17708 case "(($ac_try" in
17709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710   *) ac_try_echo=$ac_try;;
17711 esac
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17714   ac_status=$?
17715   grep -v '^ *+' conftest.er1 >conftest.err
17716   rm -f conftest.er1
17717   cat conftest.err >&5
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); } >/dev/null && {
17720          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17721          test ! -s conftest.err
17722        }; then
17723   ac_header_preproc=yes
17724 else
17725   echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17727
17728   ac_header_preproc=no
17729 fi
17730
17731 rm -f conftest.err conftest.$ac_ext
17732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17733 echo "${ECHO_T}$ac_header_preproc" >&6; }
17734
17735 # So?  What about this header?
17736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17737   yes:no: )
17738     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17742     ac_header_preproc=yes
17743     ;;
17744   no:yes:* )
17745     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17747     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17748 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17749     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17751     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17752 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17755     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17757     ( cat <<\_ASBOX
17758 ## --------------------------------------------- ##
17759 ## Report this to <http://www.openldap.org/its/> ##
17760 ## --------------------------------------------- ##
17761 _ASBOX
17762      ) | sed "s/^/$as_me: WARNING:     /" >&2
17763     ;;
17764 esac
17765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17768   echo $ECHO_N "(cached) $ECHO_C" >&6
17769 else
17770   eval "$as_ac_Header=\$ac_header_preproc"
17771 fi
17772 ac_res=`eval echo '${'$as_ac_Header'}'`
17773                { echo "$as_me:$LINENO: result: $ac_res" >&5
17774 echo "${ECHO_T}$ac_res" >&6; }
17775
17776 fi
17777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17778   cat >>confdefs.h <<_ACEOF
17779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17780 _ACEOF
17781
17782 fi
17783
17784 done
17785
17786 if test $ac_cv_header_sys_uuid_h = yes ; then
17787         save_LIBS="$LIBS"
17788         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17789 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17790 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17791   echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793   ac_func_search_save_LIBS=$LIBS
17794 cat >conftest.$ac_ext <<_ACEOF
17795 /* confdefs.h.  */
17796 _ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h.  */
17800
17801 /* Override any GCC internal prototype to avoid an error.
17802    Use char because int might match the return type of a GCC
17803    builtin and then its argument prototype would still apply.  */
17804 #ifdef __cplusplus
17805 extern "C"
17806 #endif
17807 char uuid_to_str ();
17808 int
17809 main ()
17810 {
17811 return uuid_to_str ();
17812   ;
17813   return 0;
17814 }
17815 _ACEOF
17816 for ac_lib in '' uuid; do
17817   if test -z "$ac_lib"; then
17818     ac_res="none required"
17819   else
17820     ac_res=-l$ac_lib
17821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17822   fi
17823   rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_link") 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } && {
17837          test -z "$ac_c_werror_flag" ||
17838          test ! -s conftest.err
17839        } && test -s conftest$ac_exeext &&
17840        $as_test_x conftest$ac_exeext; then
17841   ac_cv_search_uuid_to_str=$ac_res
17842 else
17843   echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846
17847 fi
17848
17849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17850       conftest$ac_exeext
17851   if test "${ac_cv_search_uuid_to_str+set}" = set; then
17852   break
17853 fi
17854 done
17855 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17856   :
17857 else
17858   ac_cv_search_uuid_to_str=no
17859 fi
17860 rm conftest.$ac_ext
17861 LIBS=$ac_func_search_save_LIBS
17862 fi
17863 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17864 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17865 ac_res=$ac_cv_search_uuid_to_str
17866 if test "$ac_res" != no; then
17867   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17868   have_uuid=yes
17869 else
17870   :
17871 fi
17872
17873         { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17874 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17875 if test "${ac_cv_search_uuid_create+set}" = set; then
17876   echo $ECHO_N "(cached) $ECHO_C" >&6
17877 else
17878   ac_func_search_save_LIBS=$LIBS
17879 cat >conftest.$ac_ext <<_ACEOF
17880 /* confdefs.h.  */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h.  */
17885
17886 /* Override any GCC internal prototype to avoid an error.
17887    Use char because int might match the return type of a GCC
17888    builtin and then its argument prototype would still apply.  */
17889 #ifdef __cplusplus
17890 extern "C"
17891 #endif
17892 char uuid_create ();
17893 int
17894 main ()
17895 {
17896 return uuid_create ();
17897   ;
17898   return 0;
17899 }
17900 _ACEOF
17901 for ac_lib in '' uuid; do
17902   if test -z "$ac_lib"; then
17903     ac_res="none required"
17904   else
17905     ac_res=-l$ac_lib
17906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17907   fi
17908   rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (ac_try="$ac_link"
17910 case "(($ac_try" in
17911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912   *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915   (eval "$ac_link") 2>conftest.er1
17916   ac_status=$?
17917   grep -v '^ *+' conftest.er1 >conftest.err
17918   rm -f conftest.er1
17919   cat conftest.err >&5
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); } && {
17922          test -z "$ac_c_werror_flag" ||
17923          test ! -s conftest.err
17924        } && test -s conftest$ac_exeext &&
17925        $as_test_x conftest$ac_exeext; then
17926   ac_cv_search_uuid_create=$ac_res
17927 else
17928   echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931
17932 fi
17933
17934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17935       conftest$ac_exeext
17936   if test "${ac_cv_search_uuid_create+set}" = set; then
17937   break
17938 fi
17939 done
17940 if test "${ac_cv_search_uuid_create+set}" = set; then
17941   :
17942 else
17943   ac_cv_search_uuid_create=no
17944 fi
17945 rm conftest.$ac_ext
17946 LIBS=$ac_func_search_save_LIBS
17947 fi
17948 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17949 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17950 ac_res=$ac_cv_search_uuid_create
17951 if test "$ac_res" != no; then
17952   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17953   :
17954 else
17955   have_uuid=no
17956 fi
17957
17958         LIBS="$save_LIBS"
17959
17960         if test $have_uuid = yes ; then
17961
17962 cat >>confdefs.h <<\_ACEOF
17963 #define HAVE_UUID_TO_STR 1
17964 _ACEOF
17965
17966
17967                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17968                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17969         fi
17970 fi
17971
17972 if test $have_uuid = no ; then
17973
17974 for ac_header in uuid/uuid.h
17975 do
17976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17978   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17981   echo $ECHO_N "(cached) $ECHO_C" >&6
17982 fi
17983 ac_res=`eval echo '${'$as_ac_Header'}'`
17984                { echo "$as_me:$LINENO: result: $ac_res" >&5
17985 echo "${ECHO_T}$ac_res" >&6; }
17986 else
17987   # Is the header compilable?
17988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17990 cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h.  */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h.  */
17996 $ac_includes_default
17997 #include <$ac_header>
17998 _ACEOF
17999 rm -f conftest.$ac_objext
18000 if { (ac_try="$ac_compile"
18001 case "(($ac_try" in
18002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003   *) ac_try_echo=$ac_try;;
18004 esac
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006   (eval "$ac_compile") 2>conftest.er1
18007   ac_status=$?
18008   grep -v '^ *+' conftest.er1 >conftest.err
18009   rm -f conftest.er1
18010   cat conftest.err >&5
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); } && {
18013          test -z "$ac_c_werror_flag" ||
18014          test ! -s conftest.err
18015        } && test -s conftest.$ac_objext; then
18016   ac_header_compiler=yes
18017 else
18018   echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18020
18021         ac_header_compiler=no
18022 fi
18023
18024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18026 echo "${ECHO_T}$ac_header_compiler" >&6; }
18027
18028 # Is the header present?
18029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18031 cat >conftest.$ac_ext <<_ACEOF
18032 /* confdefs.h.  */
18033 _ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h.  */
18037 #include <$ac_header>
18038 _ACEOF
18039 if { (ac_try="$ac_cpp conftest.$ac_ext"
18040 case "(($ac_try" in
18041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042   *) ac_try_echo=$ac_try;;
18043 esac
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18046   ac_status=$?
18047   grep -v '^ *+' conftest.er1 >conftest.err
18048   rm -f conftest.er1
18049   cat conftest.err >&5
18050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051   (exit $ac_status); } >/dev/null && {
18052          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18053          test ! -s conftest.err
18054        }; then
18055   ac_header_preproc=yes
18056 else
18057   echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060   ac_header_preproc=no
18061 fi
18062
18063 rm -f conftest.err conftest.$ac_ext
18064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18065 echo "${ECHO_T}$ac_header_preproc" >&6; }
18066
18067 # So?  What about this header?
18068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18069   yes:no: )
18070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18074     ac_header_preproc=yes
18075     ;;
18076   no:yes:* )
18077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18089     ( cat <<\_ASBOX
18090 ## --------------------------------------------- ##
18091 ## Report this to <http://www.openldap.org/its/> ##
18092 ## --------------------------------------------- ##
18093 _ASBOX
18094      ) | sed "s/^/$as_me: WARNING:     /" >&2
18095     ;;
18096 esac
18097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18100   echo $ECHO_N "(cached) $ECHO_C" >&6
18101 else
18102   eval "$as_ac_Header=\$ac_header_preproc"
18103 fi
18104 ac_res=`eval echo '${'$as_ac_Header'}'`
18105                { echo "$as_me:$LINENO: result: $ac_res" >&5
18106 echo "${ECHO_T}$ac_res" >&6; }
18107
18108 fi
18109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18110   cat >>confdefs.h <<_ACEOF
18111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18112 _ACEOF
18113
18114 fi
18115
18116 done
18117
18118         if test $ac_cv_header_uuid_uuid_h = yes ; then
18119                 save_LIBS="$LIBS"
18120                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18121 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18122 if test "${ac_cv_search_uuid_generate+set}" = set; then
18123   echo $ECHO_N "(cached) $ECHO_C" >&6
18124 else
18125   ac_func_search_save_LIBS=$LIBS
18126 cat >conftest.$ac_ext <<_ACEOF
18127 /* confdefs.h.  */
18128 _ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h.  */
18132
18133 /* Override any GCC internal prototype to avoid an error.
18134    Use char because int might match the return type of a GCC
18135    builtin and then its argument prototype would still apply.  */
18136 #ifdef __cplusplus
18137 extern "C"
18138 #endif
18139 char uuid_generate ();
18140 int
18141 main ()
18142 {
18143 return uuid_generate ();
18144   ;
18145   return 0;
18146 }
18147 _ACEOF
18148 for ac_lib in '' uuid; do
18149   if test -z "$ac_lib"; then
18150     ac_res="none required"
18151   else
18152     ac_res=-l$ac_lib
18153     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18154   fi
18155   rm -f conftest.$ac_objext conftest$ac_exeext
18156 if { (ac_try="$ac_link"
18157 case "(($ac_try" in
18158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159   *) ac_try_echo=$ac_try;;
18160 esac
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162   (eval "$ac_link") 2>conftest.er1
18163   ac_status=$?
18164   grep -v '^ *+' conftest.er1 >conftest.err
18165   rm -f conftest.er1
18166   cat conftest.err >&5
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); } && {
18169          test -z "$ac_c_werror_flag" ||
18170          test ! -s conftest.err
18171        } && test -s conftest$ac_exeext &&
18172        $as_test_x conftest$ac_exeext; then
18173   ac_cv_search_uuid_generate=$ac_res
18174 else
18175   echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178
18179 fi
18180
18181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18182       conftest$ac_exeext
18183   if test "${ac_cv_search_uuid_generate+set}" = set; then
18184   break
18185 fi
18186 done
18187 if test "${ac_cv_search_uuid_generate+set}" = set; then
18188   :
18189 else
18190   ac_cv_search_uuid_generate=no
18191 fi
18192 rm conftest.$ac_ext
18193 LIBS=$ac_func_search_save_LIBS
18194 fi
18195 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18196 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18197 ac_res=$ac_cv_search_uuid_generate
18198 if test "$ac_res" != no; then
18199   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18200   have_uuid=yes
18201 else
18202   :
18203 fi
18204
18205                 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18206 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18207 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18208   echo $ECHO_N "(cached) $ECHO_C" >&6
18209 else
18210   ac_func_search_save_LIBS=$LIBS
18211 cat >conftest.$ac_ext <<_ACEOF
18212 /* confdefs.h.  */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h.  */
18217
18218 /* Override any GCC internal prototype to avoid an error.
18219    Use char because int might match the return type of a GCC
18220    builtin and then its argument prototype would still apply.  */
18221 #ifdef __cplusplus
18222 extern "C"
18223 #endif
18224 char uuid_unparse_lower ();
18225 int
18226 main ()
18227 {
18228 return uuid_unparse_lower ();
18229   ;
18230   return 0;
18231 }
18232 _ACEOF
18233 for ac_lib in '' uuid; do
18234   if test -z "$ac_lib"; then
18235     ac_res="none required"
18236   else
18237     ac_res=-l$ac_lib
18238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18239   fi
18240   rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (ac_try="$ac_link"
18242 case "(($ac_try" in
18243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244   *) ac_try_echo=$ac_try;;
18245 esac
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247   (eval "$ac_link") 2>conftest.er1
18248   ac_status=$?
18249   grep -v '^ *+' conftest.er1 >conftest.err
18250   rm -f conftest.er1
18251   cat conftest.err >&5
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); } && {
18254          test -z "$ac_c_werror_flag" ||
18255          test ! -s conftest.err
18256        } && test -s conftest$ac_exeext &&
18257        $as_test_x conftest$ac_exeext; then
18258   ac_cv_search_uuid_unparse_lower=$ac_res
18259 else
18260   echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18262
18263
18264 fi
18265
18266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18267       conftest$ac_exeext
18268   if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18269   break
18270 fi
18271 done
18272 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18273   :
18274 else
18275   ac_cv_search_uuid_unparse_lower=no
18276 fi
18277 rm conftest.$ac_ext
18278 LIBS=$ac_func_search_save_LIBS
18279 fi
18280 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18281 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18282 ac_res=$ac_cv_search_uuid_unparse_lower
18283 if test "$ac_res" != no; then
18284   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18285   :
18286 else
18287   have_uuid=no
18288 fi
18289
18290                 LIBS="$save_LIBS"
18291
18292                 if test $have_uuid = yes ; then
18293
18294 cat >>confdefs.h <<\_ACEOF
18295 #define HAVE_UUID_GENERATE 1
18296 _ACEOF
18297
18298
18299                         test "$ac_cv_search_uuid_generate" = "none required" || \
18300                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18301                 fi
18302         fi
18303 fi
18304
18305 if test $have_uuid = no ; then
18306         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18307 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18308         save_LIBS="$LIBS"
18309         LIBS="$LIBS -lrpcrt4"
18310         cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h.  */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h.  */
18316
18317                 int __stdcall UuidCreate(void *);
18318                 int __stdcall UuidToStringA(void *,void **);
18319
18320 int
18321 main ()
18322 {
18323
18324                 UuidCreate(0);
18325                 UuidToStringA(0,0);
18326
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (ac_try="$ac_link"
18333 case "(($ac_try" in
18334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335   *) ac_try_echo=$ac_try;;
18336 esac
18337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338   (eval "$ac_link") 2>conftest.er1
18339   ac_status=$?
18340   grep -v '^ *+' conftest.er1 >conftest.err
18341   rm -f conftest.er1
18342   cat conftest.err >&5
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); } && {
18345          test -z "$ac_c_werror_flag" ||
18346          test ! -s conftest.err
18347        } && test -s conftest$ac_exeext &&
18348        $as_test_x conftest$ac_exeext; then
18349   need_rpcrt=yes
18350 else
18351   echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18353
18354         need_rpcrt=no
18355 fi
18356
18357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18358       conftest$ac_exeext conftest.$ac_ext
18359         if test $need_rpcrt = yes; then
18360                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18361         fi
18362         LIBS="$save_LIBS"
18363         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18364 echo "${ECHO_T}$need_rpcrt" >&6; }
18365 fi
18366
18367 ol_cv_lib_resolver=no
18368 if test $ol_cv_lib_resolver = no ; then
18369         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18370 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18371 if test "${ol_cv_resolver_none+set}" = set; then
18372   echo $ECHO_N "(cached) $ECHO_C" >&6
18373 else
18374
18375         ol_RESOLVER_LIB=
18376         ol_LIBS=$LIBS
18377         LIBS="$ol_RESOLVER_LIB $LIBS"
18378
18379         cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h.  */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h.  */
18385
18386 #ifdef HAVE_SYS_TYPES_H
18387 #       include <sys/types.h>
18388 #endif
18389 #include <netinet/in.h>
18390 #ifdef HAVE_ARPA_NAMESER_H
18391 #       include <arpa/nameser.h>
18392 #endif
18393 #ifdef HAVE_RESOLV_H
18394 #       include <resolv.h>
18395 #endif
18396
18397 int
18398 main ()
18399 {
18400 {
18401         int len, status;
18402         char *request = NULL;
18403         unsigned char reply[64*1024];
18404         unsigned char host[64*1024];
18405         unsigned char *p;
18406
18407 #ifdef NS_HFIXEDSZ
18408         /* Bind 8/9 interface */
18409         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18410 #else
18411         /* Bind 4 interface */
18412 # ifndef T_SRV
18413 #  define T_SRV 33
18414 # endif
18415         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18416 #endif
18417         p = reply;
18418 #ifdef NS_HFIXEDSZ
18419         /* Bind 8/9 interface */
18420         p += NS_HFIXEDSZ;
18421 #elif defined(HFIXEDSZ)
18422         /* Bind 4 interface w/ HFIXEDSZ */
18423         p += HFIXEDSZ;
18424 #else
18425         /* Bind 4 interface w/o HFIXEDSZ */
18426         p += sizeof(HEADER);
18427 #endif
18428         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18429 }
18430   ;
18431   return 0;
18432 }
18433 _ACEOF
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438   *) ac_try_echo=$ac_try;;
18439 esac
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441   (eval "$ac_link") 2>conftest.er1
18442   ac_status=$?
18443   grep -v '^ *+' conftest.er1 >conftest.err
18444   rm -f conftest.er1
18445   cat conftest.err >&5
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); } && {
18448          test -z "$ac_c_werror_flag" ||
18449          test ! -s conftest.err
18450        } && test -s conftest$ac_exeext &&
18451        $as_test_x conftest$ac_exeext; then
18452   ol_cv_resolver_none=yes
18453 else
18454   echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18456
18457         ol_cv_resolver_none=no
18458 fi
18459
18460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18461       conftest$ac_exeext conftest.$ac_ext
18462
18463         LIBS="$ol_LIBS"
18464
18465 fi
18466 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18467 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18468
18469         if test $ol_cv_resolver_none = yes ; then
18470                 ol_cv_lib_resolver=yes
18471         fi
18472 fi
18473
18474 if test $ol_cv_lib_resolver = no ; then
18475         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18476 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18477 if test "${ol_cv_resolver_resolv+set}" = set; then
18478   echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480
18481         ol_RESOLVER_LIB=-lresolv
18482         ol_LIBS=$LIBS
18483         LIBS="$ol_RESOLVER_LIB $LIBS"
18484
18485         cat >conftest.$ac_ext <<_ACEOF
18486 /* confdefs.h.  */
18487 _ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h.  */
18491
18492 #ifdef HAVE_SYS_TYPES_H
18493 #       include <sys/types.h>
18494 #endif
18495 #include <netinet/in.h>
18496 #ifdef HAVE_ARPA_NAMESER_H
18497 #       include <arpa/nameser.h>
18498 #endif
18499 #ifdef HAVE_RESOLV_H
18500 #       include <resolv.h>
18501 #endif
18502
18503 int
18504 main ()
18505 {
18506 {
18507         int len, status;
18508         char *request = NULL;
18509         unsigned char reply[64*1024];
18510         unsigned char host[64*1024];
18511         unsigned char *p;
18512
18513 #ifdef NS_HFIXEDSZ
18514         /* Bind 8/9 interface */
18515         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18516 #else
18517         /* Bind 4 interface */
18518 # ifndef T_SRV
18519 #  define T_SRV 33
18520 # endif
18521         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18522 #endif
18523         p = reply;
18524 #ifdef NS_HFIXEDSZ
18525         /* Bind 8/9 interface */
18526         p += NS_HFIXEDSZ;
18527 #elif defined(HFIXEDSZ)
18528         /* Bind 4 interface w/ HFIXEDSZ */
18529         p += HFIXEDSZ;
18530 #else
18531         /* Bind 4 interface w/o HFIXEDSZ */
18532         p += sizeof(HEADER);
18533 #endif
18534         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18535 }
18536   ;
18537   return 0;
18538 }
18539 _ACEOF
18540 rm -f conftest.$ac_objext conftest$ac_exeext
18541 if { (ac_try="$ac_link"
18542 case "(($ac_try" in
18543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544   *) ac_try_echo=$ac_try;;
18545 esac
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547   (eval "$ac_link") 2>conftest.er1
18548   ac_status=$?
18549   grep -v '^ *+' conftest.er1 >conftest.err
18550   rm -f conftest.er1
18551   cat conftest.err >&5
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); } && {
18554          test -z "$ac_c_werror_flag" ||
18555          test ! -s conftest.err
18556        } && test -s conftest$ac_exeext &&
18557        $as_test_x conftest$ac_exeext; then
18558   ol_cv_resolver_resolv=yes
18559 else
18560   echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18562
18563         ol_cv_resolver_resolv=no
18564 fi
18565
18566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18567       conftest$ac_exeext conftest.$ac_ext
18568
18569         LIBS="$ol_LIBS"
18570
18571 fi
18572 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18573 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18574
18575         if test $ol_cv_resolver_resolv = yes ; then
18576                 ol_cv_lib_resolver=-lresolv
18577         fi
18578 fi
18579
18580 if test $ol_cv_lib_resolver = no ; then
18581         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18582 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18583 if test "${ol_cv_resolver_bind+set}" = set; then
18584   echo $ECHO_N "(cached) $ECHO_C" >&6
18585 else
18586
18587         ol_RESOLVER_LIB=-lbind
18588         ol_LIBS=$LIBS
18589         LIBS="$ol_RESOLVER_LIB $LIBS"
18590
18591         cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597
18598 #ifdef HAVE_SYS_TYPES_H
18599 #       include <sys/types.h>
18600 #endif
18601 #include <netinet/in.h>
18602 #ifdef HAVE_ARPA_NAMESER_H
18603 #       include <arpa/nameser.h>
18604 #endif
18605 #ifdef HAVE_RESOLV_H
18606 #       include <resolv.h>
18607 #endif
18608
18609 int
18610 main ()
18611 {
18612 {
18613         int len, status;
18614         char *request = NULL;
18615         unsigned char reply[64*1024];
18616         unsigned char host[64*1024];
18617         unsigned char *p;
18618
18619 #ifdef NS_HFIXEDSZ
18620         /* Bind 8/9 interface */
18621         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18622 #else
18623         /* Bind 4 interface */
18624 # ifndef T_SRV
18625 #  define T_SRV 33
18626 # endif
18627         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18628 #endif
18629         p = reply;
18630 #ifdef NS_HFIXEDSZ
18631         /* Bind 8/9 interface */
18632         p += NS_HFIXEDSZ;
18633 #elif defined(HFIXEDSZ)
18634         /* Bind 4 interface w/ HFIXEDSZ */
18635         p += HFIXEDSZ;
18636 #else
18637         /* Bind 4 interface w/o HFIXEDSZ */
18638         p += sizeof(HEADER);
18639 #endif
18640         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18641 }
18642   ;
18643   return 0;
18644 }
18645 _ACEOF
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (ac_try="$ac_link"
18648 case "(($ac_try" in
18649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650   *) ac_try_echo=$ac_try;;
18651 esac
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653   (eval "$ac_link") 2>conftest.er1
18654   ac_status=$?
18655   grep -v '^ *+' conftest.er1 >conftest.err
18656   rm -f conftest.er1
18657   cat conftest.err >&5
18658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659   (exit $ac_status); } && {
18660          test -z "$ac_c_werror_flag" ||
18661          test ! -s conftest.err
18662        } && test -s conftest$ac_exeext &&
18663        $as_test_x conftest$ac_exeext; then
18664   ol_cv_resolver_bind=yes
18665 else
18666   echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18668
18669         ol_cv_resolver_bind=no
18670 fi
18671
18672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18673       conftest$ac_exeext conftest.$ac_ext
18674
18675         LIBS="$ol_LIBS"
18676
18677 fi
18678 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18679 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18680
18681         if test $ol_cv_resolver_bind = yes ; then
18682                 ol_cv_lib_resolver=-lbind
18683         fi
18684 fi
18685
18686
18687
18688 ol_link_dnssrv=no
18689 if test "$ol_cv_lib_resolver" != no ; then
18690
18691 cat >>confdefs.h <<\_ACEOF
18692 #define HAVE_RES_QUERY 1
18693 _ACEOF
18694
18695
18696         if test "$ol_enable_dnssrv" != no ; then
18697                 ol_link_dnssrv=yes
18698         fi
18699
18700         if test "$ol_cv_lib_resolver" != yes ; then
18701                 LIBS="$ol_cv_lib_resolver $LIBS"
18702         fi
18703 fi
18704
18705 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18706         if test "$ol_link_dnssrv" = no ; then
18707                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18708 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18709    { (exit 1); exit 1; }; }
18710         fi
18711 else
18712         ol_enable_dnssrv=no
18713 fi
18714
18715
18716 for ac_func in hstrerror
18717 do
18718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18722   echo $ECHO_N "(cached) $ECHO_C" >&6
18723 else
18724   cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h.  */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h.  */
18730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18732 #define $ac_func innocuous_$ac_func
18733
18734 /* System header to define __stub macros and hopefully few prototypes,
18735     which can conflict with char $ac_func (); below.
18736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18737     <limits.h> exists even on freestanding compilers.  */
18738
18739 #ifdef __STDC__
18740 # include <limits.h>
18741 #else
18742 # include <assert.h>
18743 #endif
18744
18745 #undef $ac_func
18746
18747 /* Override any GCC internal prototype to avoid an error.
18748    Use char because int might match the return type of a GCC
18749    builtin and then its argument prototype would still apply.  */
18750 #ifdef __cplusplus
18751 extern "C"
18752 #endif
18753 char $ac_func ();
18754 /* The GNU C library defines this for functions which it implements
18755     to always fail with ENOSYS.  Some functions are actually named
18756     something starting with __ and the normal name is an alias.  */
18757 #if defined __stub_$ac_func || defined __stub___$ac_func
18758 choke me
18759 #endif
18760
18761 int
18762 main ()
18763 {
18764 return $ac_func ();
18765   ;
18766   return 0;
18767 }
18768 _ACEOF
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (ac_try="$ac_link"
18771 case "(($ac_try" in
18772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773   *) ac_try_echo=$ac_try;;
18774 esac
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776   (eval "$ac_link") 2>conftest.er1
18777   ac_status=$?
18778   grep -v '^ *+' conftest.er1 >conftest.err
18779   rm -f conftest.er1
18780   cat conftest.err >&5
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); } && {
18783          test -z "$ac_c_werror_flag" ||
18784          test ! -s conftest.err
18785        } && test -s conftest$ac_exeext &&
18786        $as_test_x conftest$ac_exeext; then
18787   eval "$as_ac_var=yes"
18788 else
18789   echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792         eval "$as_ac_var=no"
18793 fi
18794
18795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18796       conftest$ac_exeext conftest.$ac_ext
18797 fi
18798 ac_res=`eval echo '${'$as_ac_var'}'`
18799                { echo "$as_me:$LINENO: result: $ac_res" >&5
18800 echo "${ECHO_T}$ac_res" >&6; }
18801 if test `eval echo '${'$as_ac_var'}'` = yes; then
18802   cat >>confdefs.h <<_ACEOF
18803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18804 _ACEOF
18805
18806 fi
18807 done
18808
18809
18810
18811
18812
18813
18814 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18815 do
18816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h.  */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h.  */
18828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18830 #define $ac_func innocuous_$ac_func
18831
18832 /* System header to define __stub macros and hopefully few prototypes,
18833     which can conflict with char $ac_func (); below.
18834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18835     <limits.h> exists even on freestanding compilers.  */
18836
18837 #ifdef __STDC__
18838 # include <limits.h>
18839 #else
18840 # include <assert.h>
18841 #endif
18842
18843 #undef $ac_func
18844
18845 /* Override any GCC internal prototype to avoid an error.
18846    Use char because int might match the return type of a GCC
18847    builtin and then its argument prototype would still apply.  */
18848 #ifdef __cplusplus
18849 extern "C"
18850 #endif
18851 char $ac_func ();
18852 /* The GNU C library defines this for functions which it implements
18853     to always fail with ENOSYS.  Some functions are actually named
18854     something starting with __ and the normal name is an alias.  */
18855 #if defined __stub_$ac_func || defined __stub___$ac_func
18856 choke me
18857 #endif
18858
18859 int
18860 main ()
18861 {
18862 return $ac_func ();
18863   ;
18864   return 0;
18865 }
18866 _ACEOF
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (ac_try="$ac_link"
18869 case "(($ac_try" in
18870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871   *) ac_try_echo=$ac_try;;
18872 esac
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874   (eval "$ac_link") 2>conftest.er1
18875   ac_status=$?
18876   grep -v '^ *+' conftest.er1 >conftest.err
18877   rm -f conftest.er1
18878   cat conftest.err >&5
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } && {
18881          test -z "$ac_c_werror_flag" ||
18882          test ! -s conftest.err
18883        } && test -s conftest$ac_exeext &&
18884        $as_test_x conftest$ac_exeext; then
18885   eval "$as_ac_var=yes"
18886 else
18887   echo "$as_me: failed program was:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18889
18890         eval "$as_ac_var=no"
18891 fi
18892
18893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18894       conftest$ac_exeext conftest.$ac_ext
18895 fi
18896 ac_res=`eval echo '${'$as_ac_var'}'`
18897                { echo "$as_me:$LINENO: result: $ac_res" >&5
18898 echo "${ECHO_T}$ac_res" >&6; }
18899 if test `eval echo '${'$as_ac_var'}'` = yes; then
18900   cat >>confdefs.h <<_ACEOF
18901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18902 _ACEOF
18903
18904 fi
18905 done
18906
18907
18908 ol_link_ipv6=no
18909 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18910         if test $ol_enable_ipv6 = yes ; then
18911                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18912 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18913    { (exit 1); exit 1; }; }
18914         fi
18915 elif test $ol_enable_ipv6 != no ; then
18916         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18917 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18918 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18919   echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921
18922                 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h.  */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h.  */
18928
18929 #                       include <netinet/in.h>
18930 #                       ifdef INET6_ADDRSTRLEN
18931                                 __has_inet6_addrstrlen__;
18932 #                       endif
18933
18934 _ACEOF
18935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18936   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18937   ol_cv_inet6_addrstrlen=yes
18938 else
18939   ol_cv_inet6_addrstrlen=no
18940 fi
18941 rm -f conftest*
18942
18943 fi
18944 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18945 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18946
18947
18948         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18949 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18950 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18951   echo $ECHO_N "(cached) $ECHO_C" >&6
18952 else
18953
18954                 cat >conftest.$ac_ext <<_ACEOF
18955 /* confdefs.h.  */
18956 _ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h.  */
18960
18961 #include <sys/types.h>
18962 #include <sys/socket.h>
18963
18964 int
18965 main ()
18966 {
18967
18968                         struct sockaddr_storage ss;
18969
18970   ;
18971   return 0;
18972 }
18973 _ACEOF
18974 rm -f conftest.$ac_objext
18975 if { (ac_try="$ac_compile"
18976 case "(($ac_try" in
18977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978   *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981   (eval "$ac_compile") 2>conftest.er1
18982   ac_status=$?
18983   grep -v '^ *+' conftest.er1 >conftest.err
18984   rm -f conftest.er1
18985   cat conftest.err >&5
18986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987   (exit $ac_status); } && {
18988          test -z "$ac_c_werror_flag" ||
18989          test ! -s conftest.err
18990        } && test -s conftest.$ac_objext; then
18991   ol_cv_struct_sockaddr_storage=yes
18992 else
18993   echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18995
18996         ol_cv_struct_sockaddr_storage=no
18997 fi
18998
18999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000 fi
19001 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19002 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19003
19004         if test $ol_cv_inet6_addrstrlen = yes &&
19005            test $ol_cv_struct_sockaddr_storage = yes ; then
19006                 ol_link_ipv6=yes
19007         elif test $ol_enable_ipv6 = yes &&
19008              test $ol_cv_inet6_addrstrlen = no ; then
19009                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19010 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19011    { (exit 1); exit 1; }; }
19012         elif test $ol_enable_ipv6 = yes &&
19013              test $ol_cv_struct_sockaddr_storage = no ; then
19014                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19015 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19016    { (exit 1); exit 1; }; }
19017         fi
19018 fi
19019
19020 if test $ol_enable_local != no ; then
19021
19022 for ac_header in sys/un.h
19023 do
19024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19026   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19029   echo $ECHO_N "(cached) $ECHO_C" >&6
19030 fi
19031 ac_res=`eval echo '${'$as_ac_Header'}'`
19032                { echo "$as_me:$LINENO: result: $ac_res" >&5
19033 echo "${ECHO_T}$ac_res" >&6; }
19034 else
19035   # Is the header compilable?
19036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19038 cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h.  */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h.  */
19044 $ac_includes_default
19045 #include <$ac_header>
19046 _ACEOF
19047 rm -f conftest.$ac_objext
19048 if { (ac_try="$ac_compile"
19049 case "(($ac_try" in
19050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051   *) ac_try_echo=$ac_try;;
19052 esac
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054   (eval "$ac_compile") 2>conftest.er1
19055   ac_status=$?
19056   grep -v '^ *+' conftest.er1 >conftest.err
19057   rm -f conftest.er1
19058   cat conftest.err >&5
19059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); } && {
19061          test -z "$ac_c_werror_flag" ||
19062          test ! -s conftest.err
19063        } && test -s conftest.$ac_objext; then
19064   ac_header_compiler=yes
19065 else
19066   echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19068
19069         ac_header_compiler=no
19070 fi
19071
19072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19074 echo "${ECHO_T}$ac_header_compiler" >&6; }
19075
19076 # Is the header present?
19077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19079 cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085 #include <$ac_header>
19086 _ACEOF
19087 if { (ac_try="$ac_cpp conftest.$ac_ext"
19088 case "(($ac_try" in
19089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090   *) ac_try_echo=$ac_try;;
19091 esac
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19094   ac_status=$?
19095   grep -v '^ *+' conftest.er1 >conftest.err
19096   rm -f conftest.er1
19097   cat conftest.err >&5
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); } >/dev/null && {
19100          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19101          test ! -s conftest.err
19102        }; then
19103   ac_header_preproc=yes
19104 else
19105   echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19107
19108   ac_header_preproc=no
19109 fi
19110
19111 rm -f conftest.err conftest.$ac_ext
19112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19113 echo "${ECHO_T}$ac_header_preproc" >&6; }
19114
19115 # So?  What about this header?
19116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19117   yes:no: )
19118     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19122     ac_header_preproc=yes
19123     ;;
19124   no:yes:* )
19125     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19127     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19128 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19129     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19131     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19132 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19135     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19137     ( cat <<\_ASBOX
19138 ## --------------------------------------------- ##
19139 ## Report this to <http://www.openldap.org/its/> ##
19140 ## --------------------------------------------- ##
19141 _ASBOX
19142      ) | sed "s/^/$as_me: WARNING:     /" >&2
19143     ;;
19144 esac
19145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19148   echo $ECHO_N "(cached) $ECHO_C" >&6
19149 else
19150   eval "$as_ac_Header=\$ac_header_preproc"
19151 fi
19152 ac_res=`eval echo '${'$as_ac_Header'}'`
19153                { echo "$as_me:$LINENO: result: $ac_res" >&5
19154 echo "${ECHO_T}$ac_res" >&6; }
19155
19156 fi
19157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19158   cat >>confdefs.h <<_ACEOF
19159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19160 _ACEOF
19161
19162 fi
19163
19164 done
19165
19166
19167         if test $ol_enable_local = auto ; then
19168                 ol_enable_local=$ac_cv_header_sys_un_h
19169         elif test $ac_cv_header_sys_un_h = no ; then
19170                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19171 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19172    { (exit 1); exit 1; }; }
19173         fi
19174 fi
19175
19176
19177 if test $ol_with_tls = yes ; then
19178         ol_with_tls=auto
19179 fi
19180
19181 ol_link_tls=no
19182 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19183
19184 for ac_header in openssl/ssl.h
19185 do
19186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19188   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19191   echo $ECHO_N "(cached) $ECHO_C" >&6
19192 fi
19193 ac_res=`eval echo '${'$as_ac_Header'}'`
19194                { echo "$as_me:$LINENO: result: $ac_res" >&5
19195 echo "${ECHO_T}$ac_res" >&6; }
19196 else
19197   # Is the header compilable?
19198 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19200 cat >conftest.$ac_ext <<_ACEOF
19201 /* confdefs.h.  */
19202 _ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h.  */
19206 $ac_includes_default
19207 #include <$ac_header>
19208 _ACEOF
19209 rm -f conftest.$ac_objext
19210 if { (ac_try="$ac_compile"
19211 case "(($ac_try" in
19212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213   *) ac_try_echo=$ac_try;;
19214 esac
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216   (eval "$ac_compile") 2>conftest.er1
19217   ac_status=$?
19218   grep -v '^ *+' conftest.er1 >conftest.err
19219   rm -f conftest.er1
19220   cat conftest.err >&5
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); } && {
19223          test -z "$ac_c_werror_flag" ||
19224          test ! -s conftest.err
19225        } && test -s conftest.$ac_objext; then
19226   ac_header_compiler=yes
19227 else
19228   echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19230
19231         ac_header_compiler=no
19232 fi
19233
19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19236 echo "${ECHO_T}$ac_header_compiler" >&6; }
19237
19238 # Is the header present?
19239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19241 cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h.  */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h.  */
19247 #include <$ac_header>
19248 _ACEOF
19249 if { (ac_try="$ac_cpp conftest.$ac_ext"
19250 case "(($ac_try" in
19251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252   *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19256   ac_status=$?
19257   grep -v '^ *+' conftest.er1 >conftest.err
19258   rm -f conftest.er1
19259   cat conftest.err >&5
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); } >/dev/null && {
19262          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19263          test ! -s conftest.err
19264        }; then
19265   ac_header_preproc=yes
19266 else
19267   echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19269
19270   ac_header_preproc=no
19271 fi
19272
19273 rm -f conftest.err conftest.$ac_ext
19274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19275 echo "${ECHO_T}$ac_header_preproc" >&6; }
19276
19277 # So?  What about this header?
19278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19279   yes:no: )
19280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19284     ac_header_preproc=yes
19285     ;;
19286   no:yes:* )
19287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19299     ( cat <<\_ASBOX
19300 ## --------------------------------------------- ##
19301 ## Report this to <http://www.openldap.org/its/> ##
19302 ## --------------------------------------------- ##
19303 _ASBOX
19304      ) | sed "s/^/$as_me: WARNING:     /" >&2
19305     ;;
19306 esac
19307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19310   echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312   eval "$as_ac_Header=\$ac_header_preproc"
19313 fi
19314 ac_res=`eval echo '${'$as_ac_Header'}'`
19315                { echo "$as_me:$LINENO: result: $ac_res" >&5
19316 echo "${ECHO_T}$ac_res" >&6; }
19317
19318 fi
19319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19320   cat >>confdefs.h <<_ACEOF
19321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19322 _ACEOF
19323
19324 fi
19325
19326 done
19327
19328
19329         if test $ac_cv_header_openssl_ssl_h = yes ; then
19330                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19331 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19332 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   ac_check_lib_save_LIBS=$LIBS
19336 LIBS="-lssl -lcrypto $LIBS"
19337 cat >conftest.$ac_ext <<_ACEOF
19338 /* confdefs.h.  */
19339 _ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h.  */
19343
19344 /* Override any GCC internal prototype to avoid an error.
19345    Use char because int might match the return type of a GCC
19346    builtin and then its argument prototype would still apply.  */
19347 #ifdef __cplusplus
19348 extern "C"
19349 #endif
19350 char SSL_library_init ();
19351 int
19352 main ()
19353 {
19354 return SSL_library_init ();
19355   ;
19356   return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (ac_try="$ac_link"
19361 case "(($ac_try" in
19362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363   *) ac_try_echo=$ac_try;;
19364 esac
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366   (eval "$ac_link") 2>conftest.er1
19367   ac_status=$?
19368   grep -v '^ *+' conftest.er1 >conftest.err
19369   rm -f conftest.er1
19370   cat conftest.err >&5
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } && {
19373          test -z "$ac_c_werror_flag" ||
19374          test ! -s conftest.err
19375        } && test -s conftest$ac_exeext &&
19376        $as_test_x conftest$ac_exeext; then
19377   ac_cv_lib_ssl_SSL_library_init=yes
19378 else
19379   echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382         ac_cv_lib_ssl_SSL_library_init=no
19383 fi
19384
19385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19386       conftest$ac_exeext conftest.$ac_ext
19387 LIBS=$ac_check_lib_save_LIBS
19388 fi
19389 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19390 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19391 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19392   have_openssl=yes
19393                         need_rsaref=no
19394 else
19395   have_openssl=no
19396 fi
19397
19398
19399                 if test $have_openssl = no ; then
19400                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19401 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19402 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19403   echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405   ac_check_lib_save_LIBS=$LIBS
19406 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h.  */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h.  */
19413
19414 /* Override any GCC internal prototype to avoid an error.
19415    Use char because int might match the return type of a GCC
19416    builtin and then its argument prototype would still apply.  */
19417 #ifdef __cplusplus
19418 extern "C"
19419 #endif
19420 char ssl3_accept ();
19421 int
19422 main ()
19423 {
19424 return ssl3_accept ();
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430 if { (ac_try="$ac_link"
19431 case "(($ac_try" in
19432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433   *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436   (eval "$ac_link") 2>conftest.er1
19437   ac_status=$?
19438   grep -v '^ *+' conftest.er1 >conftest.err
19439   rm -f conftest.er1
19440   cat conftest.err >&5
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } && {
19443          test -z "$ac_c_werror_flag" ||
19444          test ! -s conftest.err
19445        } && test -s conftest$ac_exeext &&
19446        $as_test_x conftest$ac_exeext; then
19447   ac_cv_lib_ssl_ssl3_accept=yes
19448 else
19449   echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19451
19452         ac_cv_lib_ssl_ssl3_accept=no
19453 fi
19454
19455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19456       conftest$ac_exeext conftest.$ac_ext
19457 LIBS=$ac_check_lib_save_LIBS
19458 fi
19459 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19460 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19461 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19462   have_openssl=yes
19463                                 need_rsaref=yes
19464 else
19465   have_openssl=no
19466 fi
19467
19468                 fi
19469
19470                 if test $have_openssl = yes ; then
19471                         ol_with_tls=openssl
19472                         ol_link_tls=yes
19473
19474
19475 cat >>confdefs.h <<\_ACEOF
19476 #define HAVE_OPENSSL 1
19477 _ACEOF
19478
19479
19480                         if test $need_rsaref = yes; then
19481
19482 cat >>confdefs.h <<\_ACEOF
19483 #define HAVE_RSAREF 1
19484 _ACEOF
19485
19486
19487                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19488                         else
19489                                 TLS_LIBS="-lssl -lcrypto"
19490                         fi
19491
19492                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19493 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19494 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19495   echo $ECHO_N "(cached) $ECHO_C" >&6
19496 else
19497
19498                 cat >conftest.$ac_ext <<_ACEOF
19499 /* confdefs.h.  */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h.  */
19504
19505 #ifdef HAVE_OPENSSL_SSL_H
19506 #include <openssl/ssl.h>
19507 #endif
19508
19509 /* Require 0.9.7d+ */
19510 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19511         char *__ssl_compat = "0.9.7d";
19512 #endif
19513
19514 _ACEOF
19515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19516   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19517   ol_cv_ssl_crl_compat=yes
19518 else
19519   ol_cv_ssl_crl_compat=no
19520 fi
19521 rm -f conftest*
19522
19523 fi
19524 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19525 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19526
19527                         if test $ol_cv_ssl_crl_compat = yes ; then
19528
19529 cat >>confdefs.h <<\_ACEOF
19530 #define HAVE_OPENSSL_CRL 1
19531 _ACEOF
19532
19533                         fi
19534                 fi
19535         fi
19536 fi
19537
19538 if test $ol_link_tls = no ; then
19539         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19540
19541 for ac_header in gnutls/gnutls.h
19542 do
19543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19545   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19548   echo $ECHO_N "(cached) $ECHO_C" >&6
19549 fi
19550 ac_res=`eval echo '${'$as_ac_Header'}'`
19551                { echo "$as_me:$LINENO: result: $ac_res" >&5
19552 echo "${ECHO_T}$ac_res" >&6; }
19553 else
19554   # Is the header compilable?
19555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h.  */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h.  */
19563 $ac_includes_default
19564 #include <$ac_header>
19565 _ACEOF
19566 rm -f conftest.$ac_objext
19567 if { (ac_try="$ac_compile"
19568 case "(($ac_try" in
19569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570   *) ac_try_echo=$ac_try;;
19571 esac
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573   (eval "$ac_compile") 2>conftest.er1
19574   ac_status=$?
19575   grep -v '^ *+' conftest.er1 >conftest.err
19576   rm -f conftest.er1
19577   cat conftest.err >&5
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); } && {
19580          test -z "$ac_c_werror_flag" ||
19581          test ! -s conftest.err
19582        } && test -s conftest.$ac_objext; then
19583   ac_header_compiler=yes
19584 else
19585   echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19587
19588         ac_header_compiler=no
19589 fi
19590
19591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19593 echo "${ECHO_T}$ac_header_compiler" >&6; }
19594
19595 # Is the header present?
19596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h.  */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h.  */
19604 #include <$ac_header>
19605 _ACEOF
19606 if { (ac_try="$ac_cpp conftest.$ac_ext"
19607 case "(($ac_try" in
19608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609   *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19613   ac_status=$?
19614   grep -v '^ *+' conftest.er1 >conftest.err
19615   rm -f conftest.er1
19616   cat conftest.err >&5
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); } >/dev/null && {
19619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19620          test ! -s conftest.err
19621        }; then
19622   ac_header_preproc=yes
19623 else
19624   echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19626
19627   ac_header_preproc=no
19628 fi
19629
19630 rm -f conftest.err conftest.$ac_ext
19631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19632 echo "${ECHO_T}$ac_header_preproc" >&6; }
19633
19634 # So?  What about this header?
19635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19636   yes:no: )
19637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19641     ac_header_preproc=yes
19642     ;;
19643   no:yes:* )
19644     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19646     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19647 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19648     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19650     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19651 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19654     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19656     ( cat <<\_ASBOX
19657 ## --------------------------------------------- ##
19658 ## Report this to <http://www.openldap.org/its/> ##
19659 ## --------------------------------------------- ##
19660 _ASBOX
19661      ) | sed "s/^/$as_me: WARNING:     /" >&2
19662     ;;
19663 esac
19664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19667   echo $ECHO_N "(cached) $ECHO_C" >&6
19668 else
19669   eval "$as_ac_Header=\$ac_header_preproc"
19670 fi
19671 ac_res=`eval echo '${'$as_ac_Header'}'`
19672                { echo "$as_me:$LINENO: result: $ac_res" >&5
19673 echo "${ECHO_T}$ac_res" >&6; }
19674
19675 fi
19676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19677   cat >>confdefs.h <<_ACEOF
19678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19679 _ACEOF
19680
19681 fi
19682
19683 done
19684
19685
19686                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19687                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19688 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19689 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19690   echo $ECHO_N "(cached) $ECHO_C" >&6
19691 else
19692   ac_check_lib_save_LIBS=$LIBS
19693 LIBS="-lgnutls  $LIBS"
19694 cat >conftest.$ac_ext <<_ACEOF
19695 /* confdefs.h.  */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h.  */
19700
19701 /* Override any GCC internal prototype to avoid an error.
19702    Use char because int might match the return type of a GCC
19703    builtin and then its argument prototype would still apply.  */
19704 #ifdef __cplusplus
19705 extern "C"
19706 #endif
19707 char gnutls_init ();
19708 int
19709 main ()
19710 {
19711 return gnutls_init ();
19712   ;
19713   return 0;
19714 }
19715 _ACEOF
19716 rm -f conftest.$ac_objext conftest$ac_exeext
19717 if { (ac_try="$ac_link"
19718 case "(($ac_try" in
19719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720   *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723   (eval "$ac_link") 2>conftest.er1
19724   ac_status=$?
19725   grep -v '^ *+' conftest.er1 >conftest.err
19726   rm -f conftest.er1
19727   cat conftest.err >&5
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); } && {
19730          test -z "$ac_c_werror_flag" ||
19731          test ! -s conftest.err
19732        } && test -s conftest$ac_exeext &&
19733        $as_test_x conftest$ac_exeext; then
19734   ac_cv_lib_gnutls_gnutls_init=yes
19735 else
19736   echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19738
19739         ac_cv_lib_gnutls_gnutls_init=no
19740 fi
19741
19742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19743       conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19745 fi
19746 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19747 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19748 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19749   have_gnutls=yes
19750 else
19751   have_gnutls=no
19752 fi
19753
19754
19755                         if test $have_gnutls = yes ; then
19756                                 ol_with_tls=gnutls
19757                                 ol_link_tls=yes
19758
19759                                 TLS_LIBS="-lgnutls"
19760
19761
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_GNUTLS 1
19764 _ACEOF
19765
19766                         fi
19767                 fi
19768         fi
19769 fi
19770
19771 if test $ol_link_tls = no ; then
19772         if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
19773                 have_moznss=no
19774
19775 for ac_header in nssutil.h
19776 do
19777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19779   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19782   echo $ECHO_N "(cached) $ECHO_C" >&6
19783 fi
19784 ac_res=`eval echo '${'$as_ac_Header'}'`
19785                { echo "$as_me:$LINENO: result: $ac_res" >&5
19786 echo "${ECHO_T}$ac_res" >&6; }
19787 else
19788   # Is the header compilable?
19789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19791 cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h.  */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h.  */
19797 $ac_includes_default
19798 #include <$ac_header>
19799 _ACEOF
19800 rm -f conftest.$ac_objext
19801 if { (ac_try="$ac_compile"
19802 case "(($ac_try" in
19803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804   *) ac_try_echo=$ac_try;;
19805 esac
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807   (eval "$ac_compile") 2>conftest.er1
19808   ac_status=$?
19809   grep -v '^ *+' conftest.er1 >conftest.err
19810   rm -f conftest.er1
19811   cat conftest.err >&5
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); } && {
19814          test -z "$ac_c_werror_flag" ||
19815          test ! -s conftest.err
19816        } && test -s conftest.$ac_objext; then
19817   ac_header_compiler=yes
19818 else
19819   echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822         ac_header_compiler=no
19823 fi
19824
19825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19827 echo "${ECHO_T}$ac_header_compiler" >&6; }
19828
19829 # Is the header present?
19830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19832 cat >conftest.$ac_ext <<_ACEOF
19833 /* confdefs.h.  */
19834 _ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h.  */
19838 #include <$ac_header>
19839 _ACEOF
19840 if { (ac_try="$ac_cpp conftest.$ac_ext"
19841 case "(($ac_try" in
19842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843   *) ac_try_echo=$ac_try;;
19844 esac
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } >/dev/null && {
19853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19854          test ! -s conftest.err
19855        }; then
19856   ac_header_preproc=yes
19857 else
19858   echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19860
19861   ac_header_preproc=no
19862 fi
19863
19864 rm -f conftest.err conftest.$ac_ext
19865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19866 echo "${ECHO_T}$ac_header_preproc" >&6; }
19867
19868 # So?  What about this header?
19869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19870   yes:no: )
19871     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19875     ac_header_preproc=yes
19876     ;;
19877   no:yes:* )
19878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19880     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19881 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19882     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19884     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19885 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19888     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19890     ( cat <<\_ASBOX
19891 ## --------------------------------------------- ##
19892 ## Report this to <http://www.openldap.org/its/> ##
19893 ## --------------------------------------------- ##
19894 _ASBOX
19895      ) | sed "s/^/$as_me: WARNING:     /" >&2
19896     ;;
19897 esac
19898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19901   echo $ECHO_N "(cached) $ECHO_C" >&6
19902 else
19903   eval "$as_ac_Header=\$ac_header_preproc"
19904 fi
19905 ac_res=`eval echo '${'$as_ac_Header'}'`
19906                { echo "$as_me:$LINENO: result: $ac_res" >&5
19907 echo "${ECHO_T}$ac_res" >&6; }
19908
19909 fi
19910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19911   cat >>confdefs.h <<_ACEOF
19912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19913 _ACEOF
19914
19915 fi
19916
19917 done
19918
19919                 if test "$ac_cv_header_nssutil_h" = yes ; then
19920                         { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
19921 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
19922 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
19923   echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925   ac_check_lib_save_LIBS=$LIBS
19926 LIBS="-lnss3  $LIBS"
19927 cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933
19934 /* Override any GCC internal prototype to avoid an error.
19935    Use char because int might match the return type of a GCC
19936    builtin and then its argument prototype would still apply.  */
19937 #ifdef __cplusplus
19938 extern "C"
19939 #endif
19940 char NSS_Initialize ();
19941 int
19942 main ()
19943 {
19944 return NSS_Initialize ();
19945   ;
19946   return 0;
19947 }
19948 _ACEOF
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (ac_try="$ac_link"
19951 case "(($ac_try" in
19952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953   *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956   (eval "$ac_link") 2>conftest.er1
19957   ac_status=$?
19958   grep -v '^ *+' conftest.er1 >conftest.err
19959   rm -f conftest.er1
19960   cat conftest.err >&5
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); } && {
19963          test -z "$ac_c_werror_flag" ||
19964          test ! -s conftest.err
19965        } && test -s conftest$ac_exeext &&
19966        $as_test_x conftest$ac_exeext; then
19967   ac_cv_lib_nss3_NSS_Initialize=yes
19968 else
19969   echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19971
19972         ac_cv_lib_nss3_NSS_Initialize=no
19973 fi
19974
19975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19976       conftest$ac_exeext conftest.$ac_ext
19977 LIBS=$ac_check_lib_save_LIBS
19978 fi
19979 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
19980 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
19981 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
19982    have_moznss=yes
19983 else
19984    have_moznss=no
19985 fi
19986
19987                 fi
19988
19989                 if test "$have_moznss" = yes ; then
19990                         ol_with_tls=moznss
19991                         ol_link_tls=yes
19992
19993 cat >>confdefs.h <<\_ACEOF
19994 #define HAVE_MOZNSS 1
19995 _ACEOF
19996
19997                         TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
19998                 else
19999                         { { echo "$as_me:$LINENO: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&5
20000 echo "$as_me: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&2;}
20001    { (exit 1); exit 1; }; }
20002                 fi
20003         fi
20004 fi
20005
20006 WITH_TLS=no
20007 if test $ol_link_tls = yes ; then
20008
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE_TLS 1
20011 _ACEOF
20012
20013         WITH_TLS=yes
20014 elif test $ol_with_tls = auto ; then
20015         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20016 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20017         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20018 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20019 elif test $ol_with_tls != no ; then
20020         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20021 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20022    { (exit 1); exit 1; }; }
20023 else
20024         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20025 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20026 fi
20027
20028 if test $ol_enable_lmpasswd != no; then
20029         if test $ol_link_tls != yes ; then
20030                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20031 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20032    { (exit 1); exit 1; }; }
20033         fi
20034
20035
20036 cat >>confdefs.h <<\_ACEOF
20037 #define SLAPD_LMHASH 1
20038 _ACEOF
20039
20040 fi
20041
20042 ol_link_threads=no
20043
20044 case $ol_with_threads in auto | yes | nt)
20045
20046
20047         { echo "$as_me:$LINENO: checking for _beginthread" >&5
20048 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20049 if test "${ac_cv_func__beginthread+set}" = set; then
20050   echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052   cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h.  */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h.  */
20058 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20060 #define _beginthread innocuous__beginthread
20061
20062 /* System header to define __stub macros and hopefully few prototypes,
20063     which can conflict with char _beginthread (); below.
20064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20065     <limits.h> exists even on freestanding compilers.  */
20066
20067 #ifdef __STDC__
20068 # include <limits.h>
20069 #else
20070 # include <assert.h>
20071 #endif
20072
20073 #undef _beginthread
20074
20075 /* Override any GCC internal prototype to avoid an error.
20076    Use char because int might match the return type of a GCC
20077    builtin and then its argument prototype would still apply.  */
20078 #ifdef __cplusplus
20079 extern "C"
20080 #endif
20081 char _beginthread ();
20082 /* The GNU C library defines this for functions which it implements
20083     to always fail with ENOSYS.  Some functions are actually named
20084     something starting with __ and the normal name is an alias.  */
20085 #if defined __stub__beginthread || defined __stub____beginthread
20086 choke me
20087 #endif
20088
20089 int
20090 main ()
20091 {
20092 return _beginthread ();
20093   ;
20094   return 0;
20095 }
20096 _ACEOF
20097 rm -f conftest.$ac_objext conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101   *) ac_try_echo=$ac_try;;
20102 esac
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104   (eval "$ac_link") 2>conftest.er1
20105   ac_status=$?
20106   grep -v '^ *+' conftest.er1 >conftest.err
20107   rm -f conftest.er1
20108   cat conftest.err >&5
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); } && {
20111          test -z "$ac_c_werror_flag" ||
20112          test ! -s conftest.err
20113        } && test -s conftest$ac_exeext &&
20114        $as_test_x conftest$ac_exeext; then
20115   ac_cv_func__beginthread=yes
20116 else
20117   echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120         ac_cv_func__beginthread=no
20121 fi
20122
20123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20124       conftest$ac_exeext conftest.$ac_ext
20125 fi
20126 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20127 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20128
20129
20130         if test $ac_cv_func__beginthread = yes ; then
20131
20132 cat >>confdefs.h <<\_ACEOF
20133 #define HAVE_NT_THREADS 1
20134 _ACEOF
20135
20136                 ol_cv_nt_threads=yes
20137         fi
20138
20139
20140         if test "$ol_cv_nt_threads" = yes ; then
20141                 ol_link_threads=nt
20142                 ol_with_threads=found
20143                 ol_with_yielding_select=yes
20144
20145
20146 cat >>confdefs.h <<\_ACEOF
20147 #define HAVE_NT_SERVICE_MANAGER 1
20148 _ACEOF
20149
20150
20151 cat >>confdefs.h <<\_ACEOF
20152 #define HAVE_NT_EVENT_LOG 1
20153 _ACEOF
20154
20155         fi
20156
20157         if test $ol_with_threads = nt ; then
20158                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20159 echo "$as_me: error: could not locate NT Threads" >&2;}
20160    { (exit 1); exit 1; }; }
20161         fi
20162         ;;
20163 esac
20164
20165 case $ol_with_threads in auto | yes | posix)
20166
20167
20168 for ac_header in pthread.h
20169 do
20170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20172   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20175   echo $ECHO_N "(cached) $ECHO_C" >&6
20176 fi
20177 ac_res=`eval echo '${'$as_ac_Header'}'`
20178                { echo "$as_me:$LINENO: result: $ac_res" >&5
20179 echo "${ECHO_T}$ac_res" >&6; }
20180 else
20181   # Is the header compilable?
20182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h.  */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h.  */
20190 $ac_includes_default
20191 #include <$ac_header>
20192 _ACEOF
20193 rm -f conftest.$ac_objext
20194 if { (ac_try="$ac_compile"
20195 case "(($ac_try" in
20196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197   *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200   (eval "$ac_compile") 2>conftest.er1
20201   ac_status=$?
20202   grep -v '^ *+' conftest.er1 >conftest.err
20203   rm -f conftest.er1
20204   cat conftest.err >&5
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); } && {
20207          test -z "$ac_c_werror_flag" ||
20208          test ! -s conftest.err
20209        } && test -s conftest.$ac_objext; then
20210   ac_header_compiler=yes
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215         ac_header_compiler=no
20216 fi
20217
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20220 echo "${ECHO_T}$ac_header_compiler" >&6; }
20221
20222 # Is the header present?
20223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h.  */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h.  */
20231 #include <$ac_header>
20232 _ACEOF
20233 if { (ac_try="$ac_cpp conftest.$ac_ext"
20234 case "(($ac_try" in
20235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236   *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20240   ac_status=$?
20241   grep -v '^ *+' conftest.er1 >conftest.err
20242   rm -f conftest.er1
20243   cat conftest.err >&5
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); } >/dev/null && {
20246          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20247          test ! -s conftest.err
20248        }; then
20249   ac_header_preproc=yes
20250 else
20251   echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20253
20254   ac_header_preproc=no
20255 fi
20256
20257 rm -f conftest.err conftest.$ac_ext
20258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20259 echo "${ECHO_T}$ac_header_preproc" >&6; }
20260
20261 # So?  What about this header?
20262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20263   yes:no: )
20264     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20268     ac_header_preproc=yes
20269     ;;
20270   no:yes:* )
20271     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20273     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20274 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20275     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20277     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20278 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20281     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20283     ( cat <<\_ASBOX
20284 ## --------------------------------------------- ##
20285 ## Report this to <http://www.openldap.org/its/> ##
20286 ## --------------------------------------------- ##
20287 _ASBOX
20288      ) | sed "s/^/$as_me: WARNING:     /" >&2
20289     ;;
20290 esac
20291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20294   echo $ECHO_N "(cached) $ECHO_C" >&6
20295 else
20296   eval "$as_ac_Header=\$ac_header_preproc"
20297 fi
20298 ac_res=`eval echo '${'$as_ac_Header'}'`
20299                { echo "$as_me:$LINENO: result: $ac_res" >&5
20300 echo "${ECHO_T}$ac_res" >&6; }
20301
20302 fi
20303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20304   cat >>confdefs.h <<_ACEOF
20305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20306 _ACEOF
20307
20308 fi
20309
20310 done
20311
20312
20313         if test $ac_cv_header_pthread_h = yes ; then
20314                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20315 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20316 if test "${ol_cv_pthread_version+set}" = set; then
20317   echo $ECHO_N "(cached) $ECHO_C" >&6
20318 else
20319
20320         cat >conftest.$ac_ext <<_ACEOF
20321 /* confdefs.h.  */
20322 _ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h.  */
20326
20327 #               include <pthread.h>
20328
20329 int
20330 main ()
20331 {
20332
20333                 int i = PTHREAD_CREATE_JOINABLE;
20334
20335   ;
20336   return 0;
20337 }
20338 _ACEOF
20339 rm -f conftest.$ac_objext
20340 if { (ac_try="$ac_compile"
20341 case "(($ac_try" in
20342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343   *) ac_try_echo=$ac_try;;
20344 esac
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346   (eval "$ac_compile") 2>conftest.er1
20347   ac_status=$?
20348   grep -v '^ *+' conftest.er1 >conftest.err
20349   rm -f conftest.er1
20350   cat conftest.err >&5
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); } && {
20353          test -z "$ac_c_werror_flag" ||
20354          test ! -s conftest.err
20355        } && test -s conftest.$ac_objext; then
20356
20357         cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363 #include <pthread.h>
20364
20365 _ACEOF
20366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20367   $EGREP "pthread_detach" >/dev/null 2>&1; then
20368   ol_cv_pthread_version=10
20369 else
20370   ol_cv_pthread_version=8
20371 fi
20372 rm -f conftest*
20373
20374 else
20375   echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20377
20378
20379         cat >conftest.$ac_ext <<_ACEOF
20380 /* confdefs.h.  */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h.  */
20385
20386 #               include <pthread.h>
20387 #               ifdef PTHREAD_CREATE_UNDETACHED
20388                 draft7
20389 #               endif
20390
20391 _ACEOF
20392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20393   $EGREP "draft7" >/dev/null 2>&1; then
20394   ol_cv_pthread_version=7
20395 else
20396
20397         cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h.  */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h.  */
20403 #include <pthread.h>
20404
20405 _ACEOF
20406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20407   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20408   ol_cv_pthread_version=6
20409 else
20410
20411         cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417
20418 #               include <pthread.h>
20419 #ifdef          PTHREAD_MUTEX_INITIALIZER
20420                 draft5
20421 #endif
20422
20423 _ACEOF
20424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20425   $EGREP "draft5" >/dev/null 2>&1; then
20426   ol_cv_pthread_version=5
20427 else
20428   ol_cv_pthread_version=4
20429 fi
20430 rm -f conftest*
20431
20432 fi
20433 rm -f conftest*
20434
20435 fi
20436 rm -f conftest*
20437
20438 fi
20439
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441
20442 fi
20443 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20444 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20445
20446
20447                 if test $ol_cv_pthread_version != 0 ; then
20448
20449 cat >>confdefs.h <<_ACEOF
20450 #define HAVE_PTHREADS $ol_cv_pthread_version
20451 _ACEOF
20452
20453                 else
20454                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20455 echo "$as_me: error: unknown pthread version" >&2;}
20456    { (exit 1); exit 1; }; }
20457                 fi
20458
20459                 # consider threads found
20460                 ol_with_threads=found
20461
20462
20463         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20464 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20465 if test "${ol_cv_header_linux_threads+set}" = set; then
20466   echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468   cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h.  */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h.  */
20474 #include <pthread.h>
20475 _ACEOF
20476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20477   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20478   ol_cv_header_linux_threads=yes
20479 else
20480   ol_cv_header_linux_threads=no
20481 fi
20482 rm -f conftest*
20483
20484
20485 fi
20486 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20487 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20488         if test $ol_cv_header_linux_threads = yes; then
20489
20490 cat >>confdefs.h <<\_ACEOF
20491 #define HAVE_LINUX_THREADS 1
20492 _ACEOF
20493
20494         fi
20495
20496
20497         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20498 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20499 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20500   echo $ECHO_N "(cached) $ECHO_C" >&6
20501 else
20502   cat >conftest.$ac_ext <<_ACEOF
20503 /* confdefs.h.  */
20504 _ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h.  */
20508 #include <pthread.h>
20509 #ifdef _POSIX_THREAD_IS_GNU_PTH
20510         __gnu_pth__;
20511 #endif
20512
20513 _ACEOF
20514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20515   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20516   ol_cv_header_gnu_pth_pthread_h=yes
20517 else
20518   ol_cv_header_gnu_pth_pthread_h=no
20519 fi
20520 rm -f conftest*
20521
20522
20523 fi
20524 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20525 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20526
20527
20528                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20529
20530 for ac_header in sched.h
20531 do
20532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20534   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20537   echo $ECHO_N "(cached) $ECHO_C" >&6
20538 fi
20539 ac_res=`eval echo '${'$as_ac_Header'}'`
20540                { echo "$as_me:$LINENO: result: $ac_res" >&5
20541 echo "${ECHO_T}$ac_res" >&6; }
20542 else
20543   # Is the header compilable?
20544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20546 cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h.  */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h.  */
20552 $ac_includes_default
20553 #include <$ac_header>
20554 _ACEOF
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559   *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562   (eval "$ac_compile") 2>conftest.er1
20563   ac_status=$?
20564   grep -v '^ *+' conftest.er1 >conftest.err
20565   rm -f conftest.er1
20566   cat conftest.err >&5
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); } && {
20569          test -z "$ac_c_werror_flag" ||
20570          test ! -s conftest.err
20571        } && test -s conftest.$ac_objext; then
20572   ac_header_compiler=yes
20573 else
20574   echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577         ac_header_compiler=no
20578 fi
20579
20580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20582 echo "${ECHO_T}$ac_header_compiler" >&6; }
20583
20584 # Is the header present?
20585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h.  */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h.  */
20593 #include <$ac_header>
20594 _ACEOF
20595 if { (ac_try="$ac_cpp conftest.$ac_ext"
20596 case "(($ac_try" in
20597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598   *) ac_try_echo=$ac_try;;
20599 esac
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20602   ac_status=$?
20603   grep -v '^ *+' conftest.er1 >conftest.err
20604   rm -f conftest.er1
20605   cat conftest.err >&5
20606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607   (exit $ac_status); } >/dev/null && {
20608          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20609          test ! -s conftest.err
20610        }; then
20611   ac_header_preproc=yes
20612 else
20613   echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20615
20616   ac_header_preproc=no
20617 fi
20618
20619 rm -f conftest.err conftest.$ac_ext
20620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20621 echo "${ECHO_T}$ac_header_preproc" >&6; }
20622
20623 # So?  What about this header?
20624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20625   yes:no: )
20626     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20630     ac_header_preproc=yes
20631     ;;
20632   no:yes:* )
20633     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20635     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20636 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20637     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20639     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20640 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20643     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20645     ( cat <<\_ASBOX
20646 ## --------------------------------------------- ##
20647 ## Report this to <http://www.openldap.org/its/> ##
20648 ## --------------------------------------------- ##
20649 _ASBOX
20650      ) | sed "s/^/$as_me: WARNING:     /" >&2
20651     ;;
20652 esac
20653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20656   echo $ECHO_N "(cached) $ECHO_C" >&6
20657 else
20658   eval "$as_ac_Header=\$ac_header_preproc"
20659 fi
20660 ac_res=`eval echo '${'$as_ac_Header'}'`
20661                { echo "$as_me:$LINENO: result: $ac_res" >&5
20662 echo "${ECHO_T}$ac_res" >&6; }
20663
20664 fi
20665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20666   cat >>confdefs.h <<_ACEOF
20667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20668 _ACEOF
20669
20670 fi
20671
20672 done
20673
20674                 fi
20675
20676
20677                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20678 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20679 if test "${ol_cv_pthread_create+set}" = set; then
20680   echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682
20683                         if test "$cross_compiling" = yes; then
20684   cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h.  */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h.  */
20690
20691 /* pthread test headers */
20692 #include <pthread.h>
20693 #if HAVE_PTHREADS < 7
20694 #include <errno.h>
20695 #endif
20696 #ifndef NULL
20697 #define NULL (void*)0
20698 #endif
20699
20700 static void *task(p)
20701         void *p;
20702 {
20703         return (void *) (p == NULL);
20704 }
20705
20706 int
20707 main ()
20708 {
20709
20710         /* pthread test function */
20711 #ifndef PTHREAD_CREATE_DETACHED
20712 #define PTHREAD_CREATE_DETACHED 1
20713 #endif
20714         pthread_t t;
20715         int status;
20716         int detach = PTHREAD_CREATE_DETACHED;
20717
20718 #if HAVE_PTHREADS > 4
20719         /* Final pthreads */
20720         pthread_attr_t attr;
20721
20722         status = pthread_attr_init(&attr);
20723         if( status ) return status;
20724
20725 #if HAVE_PTHREADS < 7
20726         status = pthread_attr_setdetachstate(&attr, &detach);
20727         if( status < 0 ) status = errno;
20728 #else
20729         status = pthread_attr_setdetachstate(&attr, detach);
20730 #endif
20731         if( status ) return status;
20732         status = pthread_create( &t, &attr, task, NULL );
20733 #if HAVE_PTHREADS < 7
20734         if( status < 0 ) status = errno;
20735 #endif
20736         if( status ) return status;
20737 #else
20738         /* Draft 4 pthreads */
20739         status = pthread_create( &t, pthread_attr_default, task, NULL );
20740         if( status ) return errno;
20741
20742         /* give thread a chance to complete */
20743         /* it should remain joinable and hence detachable */
20744         sleep( 1 );
20745
20746         status = pthread_detach( &t );
20747         if( status ) return errno;
20748 #endif
20749
20750 #ifdef HAVE_LINUX_THREADS
20751         pthread_kill_other_threads_np();
20752 #endif
20753
20754         return 0;
20755
20756   ;
20757   return 0;
20758 }
20759 _ACEOF
20760 rm -f conftest.$ac_objext conftest$ac_exeext
20761 if { (ac_try="$ac_link"
20762 case "(($ac_try" in
20763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764   *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767   (eval "$ac_link") 2>conftest.er1
20768   ac_status=$?
20769   grep -v '^ *+' conftest.er1 >conftest.err
20770   rm -f conftest.er1
20771   cat conftest.err >&5
20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); } && {
20774          test -z "$ac_c_werror_flag" ||
20775          test ! -s conftest.err
20776        } && test -s conftest$ac_exeext &&
20777        $as_test_x conftest$ac_exeext; then
20778   ol_cv_pthread_create=yes
20779 else
20780   echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783         ol_cv_pthread_create=no
20784 fi
20785
20786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20787       conftest$ac_exeext conftest.$ac_ext
20788 else
20789   cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h.  */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h.  */
20795
20796 /* pthread test headers */
20797 #include <pthread.h>
20798 #if HAVE_PTHREADS < 7
20799 #include <errno.h>
20800 #endif
20801 #ifndef NULL
20802 #define NULL (void*)0
20803 #endif
20804
20805 static void *task(p)
20806         void *p;
20807 {
20808         return (void *) (p == NULL);
20809 }
20810
20811
20812 int main(argc, argv)
20813         int argc;
20814         char **argv;
20815 {
20816
20817         /* pthread test function */
20818 #ifndef PTHREAD_CREATE_DETACHED
20819 #define PTHREAD_CREATE_DETACHED 1
20820 #endif
20821         pthread_t t;
20822         int status;
20823         int detach = PTHREAD_CREATE_DETACHED;
20824
20825 #if HAVE_PTHREADS > 4
20826         /* Final pthreads */
20827         pthread_attr_t attr;
20828
20829         status = pthread_attr_init(&attr);
20830         if( status ) return status;
20831
20832 #if HAVE_PTHREADS < 7
20833         status = pthread_attr_setdetachstate(&attr, &detach);
20834         if( status < 0 ) status = errno;
20835 #else
20836         status = pthread_attr_setdetachstate(&attr, detach);
20837 #endif
20838         if( status ) return status;
20839         status = pthread_create( &t, &attr, task, NULL );
20840 #if HAVE_PTHREADS < 7
20841         if( status < 0 ) status = errno;
20842 #endif
20843         if( status ) return status;
20844 #else
20845         /* Draft 4 pthreads */
20846         status = pthread_create( &t, pthread_attr_default, task, NULL );
20847         if( status ) return errno;
20848
20849         /* give thread a chance to complete */
20850         /* it should remain joinable and hence detachable */
20851         sleep( 1 );
20852
20853         status = pthread_detach( &t );
20854         if( status ) return errno;
20855 #endif
20856
20857 #ifdef HAVE_LINUX_THREADS
20858         pthread_kill_other_threads_np();
20859 #endif
20860
20861         return 0;
20862
20863 }
20864
20865 _ACEOF
20866 rm -f conftest$ac_exeext
20867 if { (ac_try="$ac_link"
20868 case "(($ac_try" in
20869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870   *) ac_try_echo=$ac_try;;
20871 esac
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873   (eval "$ac_link") 2>&5
20874   ac_status=$?
20875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20877   { (case "(($ac_try" in
20878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879   *) ac_try_echo=$ac_try;;
20880 esac
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882   (eval "$ac_try") 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); }; }; then
20886   ol_cv_pthread_create=yes
20887 else
20888   echo "$as_me: program exited with status $ac_status" >&5
20889 echo "$as_me: failed program was:" >&5
20890 sed 's/^/| /' conftest.$ac_ext >&5
20891
20892 ( exit $ac_status )
20893 ol_cv_pthread_create=no
20894 fi
20895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20896 fi
20897
20898
20899 fi
20900 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20901 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20902
20903                 if test $ol_cv_pthread_create != no ; then
20904                         ol_link_threads=posix
20905                         ol_link_pthreads=""
20906                 fi
20907
20908                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20909 if test "$ol_link_threads" = no ; then
20910         # try -kthread
20911         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20912 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20913 if test "${ol_cv_pthread_kthread+set}" = set; then
20914   echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916
20917                 # save the flags
20918                 ol_LIBS="$LIBS"
20919                 LIBS="-kthread $LIBS"
20920
20921                 if test "$cross_compiling" = yes; then
20922   cat >conftest.$ac_ext <<_ACEOF
20923 /* confdefs.h.  */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h.  */
20928
20929 /* pthread test headers */
20930 #include <pthread.h>
20931 #if HAVE_PTHREADS < 7
20932 #include <errno.h>
20933 #endif
20934 #ifndef NULL
20935 #define NULL (void*)0
20936 #endif
20937
20938 static void *task(p)
20939         void *p;
20940 {
20941         return (void *) (p == NULL);
20942 }
20943
20944 int
20945 main ()
20946 {
20947
20948         /* pthread test function */
20949 #ifndef PTHREAD_CREATE_DETACHED
20950 #define PTHREAD_CREATE_DETACHED 1
20951 #endif
20952         pthread_t t;
20953         int status;
20954         int detach = PTHREAD_CREATE_DETACHED;
20955
20956 #if HAVE_PTHREADS > 4
20957         /* Final pthreads */
20958         pthread_attr_t attr;
20959
20960         status = pthread_attr_init(&attr);
20961         if( status ) return status;
20962
20963 #if HAVE_PTHREADS < 7
20964         status = pthread_attr_setdetachstate(&attr, &detach);
20965         if( status < 0 ) status = errno;
20966 #else
20967         status = pthread_attr_setdetachstate(&attr, detach);
20968 #endif
20969         if( status ) return status;
20970         status = pthread_create( &t, &attr, task, NULL );
20971 #if HAVE_PTHREADS < 7
20972         if( status < 0 ) status = errno;
20973 #endif
20974         if( status ) return status;
20975 #else
20976         /* Draft 4 pthreads */
20977         status = pthread_create( &t, pthread_attr_default, task, NULL );
20978         if( status ) return errno;
20979
20980         /* give thread a chance to complete */
20981         /* it should remain joinable and hence detachable */
20982         sleep( 1 );
20983
20984         status = pthread_detach( &t );
20985         if( status ) return errno;
20986 #endif
20987
20988 #ifdef HAVE_LINUX_THREADS
20989         pthread_kill_other_threads_np();
20990 #endif
20991
20992         return 0;
20993
20994   ;
20995   return 0;
20996 }
20997 _ACEOF
20998 rm -f conftest.$ac_objext conftest$ac_exeext
20999 if { (ac_try="$ac_link"
21000 case "(($ac_try" in
21001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002   *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005   (eval "$ac_link") 2>conftest.er1
21006   ac_status=$?
21007   grep -v '^ *+' conftest.er1 >conftest.err
21008   rm -f conftest.er1
21009   cat conftest.err >&5
21010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); } && {
21012          test -z "$ac_c_werror_flag" ||
21013          test ! -s conftest.err
21014        } && test -s conftest$ac_exeext &&
21015        $as_test_x conftest$ac_exeext; then
21016   ol_cv_pthread_kthread=yes
21017 else
21018   echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21020
21021         ol_cv_pthread_kthread=no
21022 fi
21023
21024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21025       conftest$ac_exeext conftest.$ac_ext
21026 else
21027   cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h.  */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h.  */
21033
21034 /* pthread test headers */
21035 #include <pthread.h>
21036 #if HAVE_PTHREADS < 7
21037 #include <errno.h>
21038 #endif
21039 #ifndef NULL
21040 #define NULL (void*)0
21041 #endif
21042
21043 static void *task(p)
21044         void *p;
21045 {
21046         return (void *) (p == NULL);
21047 }
21048
21049
21050 int main(argc, argv)
21051         int argc;
21052         char **argv;
21053 {
21054
21055         /* pthread test function */
21056 #ifndef PTHREAD_CREATE_DETACHED
21057 #define PTHREAD_CREATE_DETACHED 1
21058 #endif
21059         pthread_t t;
21060         int status;
21061         int detach = PTHREAD_CREATE_DETACHED;
21062
21063 #if HAVE_PTHREADS > 4
21064         /* Final pthreads */
21065         pthread_attr_t attr;
21066
21067         status = pthread_attr_init(&attr);
21068         if( status ) return status;
21069
21070 #if HAVE_PTHREADS < 7
21071         status = pthread_attr_setdetachstate(&attr, &detach);
21072         if( status < 0 ) status = errno;
21073 #else
21074         status = pthread_attr_setdetachstate(&attr, detach);
21075 #endif
21076         if( status ) return status;
21077         status = pthread_create( &t, &attr, task, NULL );
21078 #if HAVE_PTHREADS < 7
21079         if( status < 0 ) status = errno;
21080 #endif
21081         if( status ) return status;
21082 #else
21083         /* Draft 4 pthreads */
21084         status = pthread_create( &t, pthread_attr_default, task, NULL );
21085         if( status ) return errno;
21086
21087         /* give thread a chance to complete */
21088         /* it should remain joinable and hence detachable */
21089         sleep( 1 );
21090
21091         status = pthread_detach( &t );
21092         if( status ) return errno;
21093 #endif
21094
21095 #ifdef HAVE_LINUX_THREADS
21096         pthread_kill_other_threads_np();
21097 #endif
21098
21099         return 0;
21100
21101 }
21102
21103 _ACEOF
21104 rm -f conftest$ac_exeext
21105 if { (ac_try="$ac_link"
21106 case "(($ac_try" in
21107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108   *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111   (eval "$ac_link") 2>&5
21112   ac_status=$?
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21115   { (case "(($ac_try" in
21116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117   *) ac_try_echo=$ac_try;;
21118 esac
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120   (eval "$ac_try") 2>&5
21121   ac_status=$?
21122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123   (exit $ac_status); }; }; then
21124   ol_cv_pthread_kthread=yes
21125 else
21126   echo "$as_me: program exited with status $ac_status" >&5
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130 ( exit $ac_status )
21131 ol_cv_pthread_kthread=no
21132 fi
21133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21134 fi
21135
21136
21137
21138                 # restore the LIBS
21139                 LIBS="$ol_LIBS"
21140
21141 fi
21142 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21143 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21144
21145         if test $ol_cv_pthread_kthread = yes ; then
21146                 ol_link_pthreads="-kthread"
21147                 ol_link_threads=posix
21148         fi
21149 fi
21150
21151                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21152 if test "$ol_link_threads" = no ; then
21153         # try -pthread
21154         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21155 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21156 if test "${ol_cv_pthread_pthread+set}" = set; then
21157   echo $ECHO_N "(cached) $ECHO_C" >&6
21158 else
21159
21160                 # save the flags
21161                 ol_LIBS="$LIBS"
21162                 LIBS="-pthread $LIBS"
21163
21164                 if test "$cross_compiling" = yes; then
21165   cat >conftest.$ac_ext <<_ACEOF
21166 /* confdefs.h.  */
21167 _ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h.  */
21171
21172 /* pthread test headers */
21173 #include <pthread.h>
21174 #if HAVE_PTHREADS < 7
21175 #include <errno.h>
21176 #endif
21177 #ifndef NULL
21178 #define NULL (void*)0
21179 #endif
21180
21181 static void *task(p)
21182         void *p;
21183 {
21184         return (void *) (p == NULL);
21185 }
21186
21187 int
21188 main ()
21189 {
21190
21191         /* pthread test function */
21192 #ifndef PTHREAD_CREATE_DETACHED
21193 #define PTHREAD_CREATE_DETACHED 1
21194 #endif
21195         pthread_t t;
21196         int status;
21197         int detach = PTHREAD_CREATE_DETACHED;
21198
21199 #if HAVE_PTHREADS > 4
21200         /* Final pthreads */
21201         pthread_attr_t attr;
21202
21203         status = pthread_attr_init(&attr);
21204         if( status ) return status;
21205
21206 #if HAVE_PTHREADS < 7
21207         status = pthread_attr_setdetachstate(&attr, &detach);
21208         if( status < 0 ) status = errno;
21209 #else
21210         status = pthread_attr_setdetachstate(&attr, detach);
21211 #endif
21212         if( status ) return status;
21213         status = pthread_create( &t, &attr, task, NULL );
21214 #if HAVE_PTHREADS < 7
21215         if( status < 0 ) status = errno;
21216 #endif
21217         if( status ) return status;
21218 #else
21219         /* Draft 4 pthreads */
21220         status = pthread_create( &t, pthread_attr_default, task, NULL );
21221         if( status ) return errno;
21222
21223         /* give thread a chance to complete */
21224         /* it should remain joinable and hence detachable */
21225         sleep( 1 );
21226
21227         status = pthread_detach( &t );
21228         if( status ) return errno;
21229 #endif
21230
21231 #ifdef HAVE_LINUX_THREADS
21232         pthread_kill_other_threads_np();
21233 #endif
21234
21235         return 0;
21236
21237   ;
21238   return 0;
21239 }
21240 _ACEOF
21241 rm -f conftest.$ac_objext conftest$ac_exeext
21242 if { (ac_try="$ac_link"
21243 case "(($ac_try" in
21244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245   *) ac_try_echo=$ac_try;;
21246 esac
21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248   (eval "$ac_link") 2>conftest.er1
21249   ac_status=$?
21250   grep -v '^ *+' conftest.er1 >conftest.err
21251   rm -f conftest.er1
21252   cat conftest.err >&5
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); } && {
21255          test -z "$ac_c_werror_flag" ||
21256          test ! -s conftest.err
21257        } && test -s conftest$ac_exeext &&
21258        $as_test_x conftest$ac_exeext; then
21259   ol_cv_pthread_pthread=yes
21260 else
21261   echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264         ol_cv_pthread_pthread=no
21265 fi
21266
21267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21268       conftest$ac_exeext conftest.$ac_ext
21269 else
21270   cat >conftest.$ac_ext <<_ACEOF
21271 /* confdefs.h.  */
21272 _ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h.  */
21276
21277 /* pthread test headers */
21278 #include <pthread.h>
21279 #if HAVE_PTHREADS < 7
21280 #include <errno.h>
21281 #endif
21282 #ifndef NULL
21283 #define NULL (void*)0
21284 #endif
21285
21286 static void *task(p)
21287         void *p;
21288 {
21289         return (void *) (p == NULL);
21290 }
21291
21292
21293 int main(argc, argv)
21294         int argc;
21295         char **argv;
21296 {
21297
21298         /* pthread test function */
21299 #ifndef PTHREAD_CREATE_DETACHED
21300 #define PTHREAD_CREATE_DETACHED 1
21301 #endif
21302         pthread_t t;
21303         int status;
21304         int detach = PTHREAD_CREATE_DETACHED;
21305
21306 #if HAVE_PTHREADS > 4
21307         /* Final pthreads */
21308         pthread_attr_t attr;
21309
21310         status = pthread_attr_init(&attr);
21311         if( status ) return status;
21312
21313 #if HAVE_PTHREADS < 7
21314         status = pthread_attr_setdetachstate(&attr, &detach);
21315         if( status < 0 ) status = errno;
21316 #else
21317         status = pthread_attr_setdetachstate(&attr, detach);
21318 #endif
21319         if( status ) return status;
21320         status = pthread_create( &t, &attr, task, NULL );
21321 #if HAVE_PTHREADS < 7
21322         if( status < 0 ) status = errno;
21323 #endif
21324         if( status ) return status;
21325 #else
21326         /* Draft 4 pthreads */
21327         status = pthread_create( &t, pthread_attr_default, task, NULL );
21328         if( status ) return errno;
21329
21330         /* give thread a chance to complete */
21331         /* it should remain joinable and hence detachable */
21332         sleep( 1 );
21333
21334         status = pthread_detach( &t );
21335         if( status ) return errno;
21336 #endif
21337
21338 #ifdef HAVE_LINUX_THREADS
21339         pthread_kill_other_threads_np();
21340 #endif
21341
21342         return 0;
21343
21344 }
21345
21346 _ACEOF
21347 rm -f conftest$ac_exeext
21348 if { (ac_try="$ac_link"
21349 case "(($ac_try" in
21350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351   *) ac_try_echo=$ac_try;;
21352 esac
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354   (eval "$ac_link") 2>&5
21355   ac_status=$?
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21358   { (case "(($ac_try" in
21359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360   *) ac_try_echo=$ac_try;;
21361 esac
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363   (eval "$ac_try") 2>&5
21364   ac_status=$?
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); }; }; then
21367   ol_cv_pthread_pthread=yes
21368 else
21369   echo "$as_me: program exited with status $ac_status" >&5
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21372
21373 ( exit $ac_status )
21374 ol_cv_pthread_pthread=no
21375 fi
21376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21377 fi
21378
21379
21380
21381                 # restore the LIBS
21382                 LIBS="$ol_LIBS"
21383
21384 fi
21385 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21386 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21387
21388         if test $ol_cv_pthread_pthread = yes ; then
21389                 ol_link_pthreads="-pthread"
21390                 ol_link_threads=posix
21391         fi
21392 fi
21393
21394                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21395 if test "$ol_link_threads" = no ; then
21396         # try -pthreads
21397         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21398 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21399 if test "${ol_cv_pthread_pthreads+set}" = set; then
21400   echo $ECHO_N "(cached) $ECHO_C" >&6
21401 else
21402
21403                 # save the flags
21404                 ol_LIBS="$LIBS"
21405                 LIBS="-pthreads $LIBS"
21406
21407                 if test "$cross_compiling" = yes; then
21408   cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h.  */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h.  */
21414
21415 /* pthread test headers */
21416 #include <pthread.h>
21417 #if HAVE_PTHREADS < 7
21418 #include <errno.h>
21419 #endif
21420 #ifndef NULL
21421 #define NULL (void*)0
21422 #endif
21423
21424 static void *task(p)
21425         void *p;
21426 {
21427         return (void *) (p == NULL);
21428 }
21429
21430 int
21431 main ()
21432 {
21433
21434         /* pthread test function */
21435 #ifndef PTHREAD_CREATE_DETACHED
21436 #define PTHREAD_CREATE_DETACHED 1
21437 #endif
21438         pthread_t t;
21439         int status;
21440         int detach = PTHREAD_CREATE_DETACHED;
21441
21442 #if HAVE_PTHREADS > 4
21443         /* Final pthreads */
21444         pthread_attr_t attr;
21445
21446         status = pthread_attr_init(&attr);
21447         if( status ) return status;
21448
21449 #if HAVE_PTHREADS < 7
21450         status = pthread_attr_setdetachstate(&attr, &detach);
21451         if( status < 0 ) status = errno;
21452 #else
21453         status = pthread_attr_setdetachstate(&attr, detach);
21454 #endif
21455         if( status ) return status;
21456         status = pthread_create( &t, &attr, task, NULL );
21457 #if HAVE_PTHREADS < 7
21458         if( status < 0 ) status = errno;
21459 #endif
21460         if( status ) return status;
21461 #else
21462         /* Draft 4 pthreads */
21463         status = pthread_create( &t, pthread_attr_default, task, NULL );
21464         if( status ) return errno;
21465
21466         /* give thread a chance to complete */
21467         /* it should remain joinable and hence detachable */
21468         sleep( 1 );
21469
21470         status = pthread_detach( &t );
21471         if( status ) return errno;
21472 #endif
21473
21474 #ifdef HAVE_LINUX_THREADS
21475         pthread_kill_other_threads_np();
21476 #endif
21477
21478         return 0;
21479
21480   ;
21481   return 0;
21482 }
21483 _ACEOF
21484 rm -f conftest.$ac_objext conftest$ac_exeext
21485 if { (ac_try="$ac_link"
21486 case "(($ac_try" in
21487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488   *) ac_try_echo=$ac_try;;
21489 esac
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491   (eval "$ac_link") 2>conftest.er1
21492   ac_status=$?
21493   grep -v '^ *+' conftest.er1 >conftest.err
21494   rm -f conftest.er1
21495   cat conftest.err >&5
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); } && {
21498          test -z "$ac_c_werror_flag" ||
21499          test ! -s conftest.err
21500        } && test -s conftest$ac_exeext &&
21501        $as_test_x conftest$ac_exeext; then
21502   ol_cv_pthread_pthreads=yes
21503 else
21504   echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507         ol_cv_pthread_pthreads=no
21508 fi
21509
21510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21511       conftest$ac_exeext conftest.$ac_ext
21512 else
21513   cat >conftest.$ac_ext <<_ACEOF
21514 /* confdefs.h.  */
21515 _ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h.  */
21519
21520 /* pthread test headers */
21521 #include <pthread.h>
21522 #if HAVE_PTHREADS < 7
21523 #include <errno.h>
21524 #endif
21525 #ifndef NULL
21526 #define NULL (void*)0
21527 #endif
21528
21529 static void *task(p)
21530         void *p;
21531 {
21532         return (void *) (p == NULL);
21533 }
21534
21535
21536 int main(argc, argv)
21537         int argc;
21538         char **argv;
21539 {
21540
21541         /* pthread test function */
21542 #ifndef PTHREAD_CREATE_DETACHED
21543 #define PTHREAD_CREATE_DETACHED 1
21544 #endif
21545         pthread_t t;
21546         int status;
21547         int detach = PTHREAD_CREATE_DETACHED;
21548
21549 #if HAVE_PTHREADS > 4
21550         /* Final pthreads */
21551         pthread_attr_t attr;
21552
21553         status = pthread_attr_init(&attr);
21554         if( status ) return status;
21555
21556 #if HAVE_PTHREADS < 7
21557         status = pthread_attr_setdetachstate(&attr, &detach);
21558         if( status < 0 ) status = errno;
21559 #else
21560         status = pthread_attr_setdetachstate(&attr, detach);
21561 #endif
21562         if( status ) return status;
21563         status = pthread_create( &t, &attr, task, NULL );
21564 #if HAVE_PTHREADS < 7
21565         if( status < 0 ) status = errno;
21566 #endif
21567         if( status ) return status;
21568 #else
21569         /* Draft 4 pthreads */
21570         status = pthread_create( &t, pthread_attr_default, task, NULL );
21571         if( status ) return errno;
21572
21573         /* give thread a chance to complete */
21574         /* it should remain joinable and hence detachable */
21575         sleep( 1 );
21576
21577         status = pthread_detach( &t );
21578         if( status ) return errno;
21579 #endif
21580
21581 #ifdef HAVE_LINUX_THREADS
21582         pthread_kill_other_threads_np();
21583 #endif
21584
21585         return 0;
21586
21587 }
21588
21589 _ACEOF
21590 rm -f conftest$ac_exeext
21591 if { (ac_try="$ac_link"
21592 case "(($ac_try" in
21593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594   *) ac_try_echo=$ac_try;;
21595 esac
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597   (eval "$ac_link") 2>&5
21598   ac_status=$?
21599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21601   { (case "(($ac_try" in
21602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603   *) ac_try_echo=$ac_try;;
21604 esac
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606   (eval "$ac_try") 2>&5
21607   ac_status=$?
21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609   (exit $ac_status); }; }; then
21610   ol_cv_pthread_pthreads=yes
21611 else
21612   echo "$as_me: program exited with status $ac_status" >&5
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616 ( exit $ac_status )
21617 ol_cv_pthread_pthreads=no
21618 fi
21619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21620 fi
21621
21622
21623
21624                 # restore the LIBS
21625                 LIBS="$ol_LIBS"
21626
21627 fi
21628 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21629 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21630
21631         if test $ol_cv_pthread_pthreads = yes ; then
21632                 ol_link_pthreads="-pthreads"
21633                 ol_link_threads=posix
21634         fi
21635 fi
21636
21637                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21638 if test "$ol_link_threads" = no ; then
21639         # try -mthreads
21640         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21641 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21642 if test "${ol_cv_pthread_mthreads+set}" = set; then
21643   echo $ECHO_N "(cached) $ECHO_C" >&6
21644 else
21645
21646                 # save the flags
21647                 ol_LIBS="$LIBS"
21648                 LIBS="-mthreads $LIBS"
21649
21650                 if test "$cross_compiling" = yes; then
21651   cat >conftest.$ac_ext <<_ACEOF
21652 /* confdefs.h.  */
21653 _ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h.  */
21657
21658 /* pthread test headers */
21659 #include <pthread.h>
21660 #if HAVE_PTHREADS < 7
21661 #include <errno.h>
21662 #endif
21663 #ifndef NULL
21664 #define NULL (void*)0
21665 #endif
21666
21667 static void *task(p)
21668         void *p;
21669 {
21670         return (void *) (p == NULL);
21671 }
21672
21673 int
21674 main ()
21675 {
21676
21677         /* pthread test function */
21678 #ifndef PTHREAD_CREATE_DETACHED
21679 #define PTHREAD_CREATE_DETACHED 1
21680 #endif
21681         pthread_t t;
21682         int status;
21683         int detach = PTHREAD_CREATE_DETACHED;
21684
21685 #if HAVE_PTHREADS > 4
21686         /* Final pthreads */
21687         pthread_attr_t attr;
21688
21689         status = pthread_attr_init(&attr);
21690         if( status ) return status;
21691
21692 #if HAVE_PTHREADS < 7
21693         status = pthread_attr_setdetachstate(&attr, &detach);
21694         if( status < 0 ) status = errno;
21695 #else
21696         status = pthread_attr_setdetachstate(&attr, detach);
21697 #endif
21698         if( status ) return status;
21699         status = pthread_create( &t, &attr, task, NULL );
21700 #if HAVE_PTHREADS < 7
21701         if( status < 0 ) status = errno;
21702 #endif
21703         if( status ) return status;
21704 #else
21705         /* Draft 4 pthreads */
21706         status = pthread_create( &t, pthread_attr_default, task, NULL );
21707         if( status ) return errno;
21708
21709         /* give thread a chance to complete */
21710         /* it should remain joinable and hence detachable */
21711         sleep( 1 );
21712
21713         status = pthread_detach( &t );
21714         if( status ) return errno;
21715 #endif
21716
21717 #ifdef HAVE_LINUX_THREADS
21718         pthread_kill_other_threads_np();
21719 #endif
21720
21721         return 0;
21722
21723   ;
21724   return 0;
21725 }
21726 _ACEOF
21727 rm -f conftest.$ac_objext conftest$ac_exeext
21728 if { (ac_try="$ac_link"
21729 case "(($ac_try" in
21730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21731   *) ac_try_echo=$ac_try;;
21732 esac
21733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21734   (eval "$ac_link") 2>conftest.er1
21735   ac_status=$?
21736   grep -v '^ *+' conftest.er1 >conftest.err
21737   rm -f conftest.er1
21738   cat conftest.err >&5
21739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740   (exit $ac_status); } && {
21741          test -z "$ac_c_werror_flag" ||
21742          test ! -s conftest.err
21743        } && test -s conftest$ac_exeext &&
21744        $as_test_x conftest$ac_exeext; then
21745   ol_cv_pthread_mthreads=yes
21746 else
21747   echo "$as_me: failed program was:" >&5
21748 sed 's/^/| /' conftest.$ac_ext >&5
21749
21750         ol_cv_pthread_mthreads=no
21751 fi
21752
21753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21754       conftest$ac_exeext conftest.$ac_ext
21755 else
21756   cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h.  */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h.  */
21762
21763 /* pthread test headers */
21764 #include <pthread.h>
21765 #if HAVE_PTHREADS < 7
21766 #include <errno.h>
21767 #endif
21768 #ifndef NULL
21769 #define NULL (void*)0
21770 #endif
21771
21772 static void *task(p)
21773         void *p;
21774 {
21775         return (void *) (p == NULL);
21776 }
21777
21778
21779 int main(argc, argv)
21780         int argc;
21781         char **argv;
21782 {
21783
21784         /* pthread test function */
21785 #ifndef PTHREAD_CREATE_DETACHED
21786 #define PTHREAD_CREATE_DETACHED 1
21787 #endif
21788         pthread_t t;
21789         int status;
21790         int detach = PTHREAD_CREATE_DETACHED;
21791
21792 #if HAVE_PTHREADS > 4
21793         /* Final pthreads */
21794         pthread_attr_t attr;
21795
21796         status = pthread_attr_init(&attr);
21797         if( status ) return status;
21798
21799 #if HAVE_PTHREADS < 7
21800         status = pthread_attr_setdetachstate(&attr, &detach);
21801         if( status < 0 ) status = errno;
21802 #else
21803         status = pthread_attr_setdetachstate(&attr, detach);
21804 #endif
21805         if( status ) return status;
21806         status = pthread_create( &t, &attr, task, NULL );
21807 #if HAVE_PTHREADS < 7
21808         if( status < 0 ) status = errno;
21809 #endif
21810         if( status ) return status;
21811 #else
21812         /* Draft 4 pthreads */
21813         status = pthread_create( &t, pthread_attr_default, task, NULL );
21814         if( status ) return errno;
21815
21816         /* give thread a chance to complete */
21817         /* it should remain joinable and hence detachable */
21818         sleep( 1 );
21819
21820         status = pthread_detach( &t );
21821         if( status ) return errno;
21822 #endif
21823
21824 #ifdef HAVE_LINUX_THREADS
21825         pthread_kill_other_threads_np();
21826 #endif
21827
21828         return 0;
21829
21830 }
21831
21832 _ACEOF
21833 rm -f conftest$ac_exeext
21834 if { (ac_try="$ac_link"
21835 case "(($ac_try" in
21836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837   *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840   (eval "$ac_link") 2>&5
21841   ac_status=$?
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21844   { (case "(($ac_try" in
21845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846   *) ac_try_echo=$ac_try;;
21847 esac
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849   (eval "$ac_try") 2>&5
21850   ac_status=$?
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); }; }; then
21853   ol_cv_pthread_mthreads=yes
21854 else
21855   echo "$as_me: program exited with status $ac_status" >&5
21856 echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21858
21859 ( exit $ac_status )
21860 ol_cv_pthread_mthreads=no
21861 fi
21862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21863 fi
21864
21865
21866
21867                 # restore the LIBS
21868                 LIBS="$ol_LIBS"
21869
21870 fi
21871 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21872 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21873
21874         if test $ol_cv_pthread_mthreads = yes ; then
21875                 ol_link_pthreads="-mthreads"
21876                 ol_link_threads=posix
21877         fi
21878 fi
21879
21880                 # Pthread try link: -thread (ol_cv_pthread_thread)
21881 if test "$ol_link_threads" = no ; then
21882         # try -thread
21883         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21884 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21885 if test "${ol_cv_pthread_thread+set}" = set; then
21886   echo $ECHO_N "(cached) $ECHO_C" >&6
21887 else
21888
21889                 # save the flags
21890                 ol_LIBS="$LIBS"
21891                 LIBS="-thread $LIBS"
21892
21893                 if test "$cross_compiling" = yes; then
21894   cat >conftest.$ac_ext <<_ACEOF
21895 /* confdefs.h.  */
21896 _ACEOF
21897 cat confdefs.h >>conftest.$ac_ext
21898 cat >>conftest.$ac_ext <<_ACEOF
21899 /* end confdefs.h.  */
21900
21901 /* pthread test headers */
21902 #include <pthread.h>
21903 #if HAVE_PTHREADS < 7
21904 #include <errno.h>
21905 #endif
21906 #ifndef NULL
21907 #define NULL (void*)0
21908 #endif
21909
21910 static void *task(p)
21911         void *p;
21912 {
21913         return (void *) (p == NULL);
21914 }
21915
21916 int
21917 main ()
21918 {
21919
21920         /* pthread test function */
21921 #ifndef PTHREAD_CREATE_DETACHED
21922 #define PTHREAD_CREATE_DETACHED 1
21923 #endif
21924         pthread_t t;
21925         int status;
21926         int detach = PTHREAD_CREATE_DETACHED;
21927
21928 #if HAVE_PTHREADS > 4
21929         /* Final pthreads */
21930         pthread_attr_t attr;
21931
21932         status = pthread_attr_init(&attr);
21933         if( status ) return status;
21934
21935 #if HAVE_PTHREADS < 7
21936         status = pthread_attr_setdetachstate(&attr, &detach);
21937         if( status < 0 ) status = errno;
21938 #else
21939         status = pthread_attr_setdetachstate(&attr, detach);
21940 #endif
21941         if( status ) return status;
21942         status = pthread_create( &t, &attr, task, NULL );
21943 #if HAVE_PTHREADS < 7
21944         if( status < 0 ) status = errno;
21945 #endif
21946         if( status ) return status;
21947 #else
21948         /* Draft 4 pthreads */
21949         status = pthread_create( &t, pthread_attr_default, task, NULL );
21950         if( status ) return errno;
21951
21952         /* give thread a chance to complete */
21953         /* it should remain joinable and hence detachable */
21954         sleep( 1 );
21955
21956         status = pthread_detach( &t );
21957         if( status ) return errno;
21958 #endif
21959
21960 #ifdef HAVE_LINUX_THREADS
21961         pthread_kill_other_threads_np();
21962 #endif
21963
21964         return 0;
21965
21966   ;
21967   return 0;
21968 }
21969 _ACEOF
21970 rm -f conftest.$ac_objext conftest$ac_exeext
21971 if { (ac_try="$ac_link"
21972 case "(($ac_try" in
21973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974   *) ac_try_echo=$ac_try;;
21975 esac
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977   (eval "$ac_link") 2>conftest.er1
21978   ac_status=$?
21979   grep -v '^ *+' conftest.er1 >conftest.err
21980   rm -f conftest.er1
21981   cat conftest.err >&5
21982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); } && {
21984          test -z "$ac_c_werror_flag" ||
21985          test ! -s conftest.err
21986        } && test -s conftest$ac_exeext &&
21987        $as_test_x conftest$ac_exeext; then
21988   ol_cv_pthread_thread=yes
21989 else
21990   echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21992
21993         ol_cv_pthread_thread=no
21994 fi
21995
21996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21997       conftest$ac_exeext conftest.$ac_ext
21998 else
21999   cat >conftest.$ac_ext <<_ACEOF
22000 /* confdefs.h.  */
22001 _ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h.  */
22005
22006 /* pthread test headers */
22007 #include <pthread.h>
22008 #if HAVE_PTHREADS < 7
22009 #include <errno.h>
22010 #endif
22011 #ifndef NULL
22012 #define NULL (void*)0
22013 #endif
22014
22015 static void *task(p)
22016         void *p;
22017 {
22018         return (void *) (p == NULL);
22019 }
22020
22021
22022 int main(argc, argv)
22023         int argc;
22024         char **argv;
22025 {
22026
22027         /* pthread test function */
22028 #ifndef PTHREAD_CREATE_DETACHED
22029 #define PTHREAD_CREATE_DETACHED 1
22030 #endif
22031         pthread_t t;
22032         int status;
22033         int detach = PTHREAD_CREATE_DETACHED;
22034
22035 #if HAVE_PTHREADS > 4
22036         /* Final pthreads */
22037         pthread_attr_t attr;
22038
22039         status = pthread_attr_init(&attr);
22040         if( status ) return status;
22041
22042 #if HAVE_PTHREADS < 7
22043         status = pthread_attr_setdetachstate(&attr, &detach);
22044         if( status < 0 ) status = errno;
22045 #else
22046         status = pthread_attr_setdetachstate(&attr, detach);
22047 #endif
22048         if( status ) return status;
22049         status = pthread_create( &t, &attr, task, NULL );
22050 #if HAVE_PTHREADS < 7
22051         if( status < 0 ) status = errno;
22052 #endif
22053         if( status ) return status;
22054 #else
22055         /* Draft 4 pthreads */
22056         status = pthread_create( &t, pthread_attr_default, task, NULL );
22057         if( status ) return errno;
22058
22059         /* give thread a chance to complete */
22060         /* it should remain joinable and hence detachable */
22061         sleep( 1 );
22062
22063         status = pthread_detach( &t );
22064         if( status ) return errno;
22065 #endif
22066
22067 #ifdef HAVE_LINUX_THREADS
22068         pthread_kill_other_threads_np();
22069 #endif
22070
22071         return 0;
22072
22073 }
22074
22075 _ACEOF
22076 rm -f conftest$ac_exeext
22077 if { (ac_try="$ac_link"
22078 case "(($ac_try" in
22079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080   *) ac_try_echo=$ac_try;;
22081 esac
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083   (eval "$ac_link") 2>&5
22084   ac_status=$?
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22087   { (case "(($ac_try" in
22088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089   *) ac_try_echo=$ac_try;;
22090 esac
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092   (eval "$ac_try") 2>&5
22093   ac_status=$?
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); }; }; then
22096   ol_cv_pthread_thread=yes
22097 else
22098   echo "$as_me: program exited with status $ac_status" >&5
22099 echo "$as_me: failed program was:" >&5
22100 sed 's/^/| /' conftest.$ac_ext >&5
22101
22102 ( exit $ac_status )
22103 ol_cv_pthread_thread=no
22104 fi
22105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22106 fi
22107
22108
22109
22110                 # restore the LIBS
22111                 LIBS="$ol_LIBS"
22112
22113 fi
22114 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22115 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22116
22117         if test $ol_cv_pthread_thread = yes ; then
22118                 ol_link_pthreads="-thread"
22119                 ol_link_threads=posix
22120         fi
22121 fi
22122
22123
22124                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22125 if test "$ol_link_threads" = no ; then
22126         # try -lpthread -lmach -lexc -lc_r
22127         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22128 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22129 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22130   echo $ECHO_N "(cached) $ECHO_C" >&6
22131 else
22132
22133                 # save the flags
22134                 ol_LIBS="$LIBS"
22135                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22136
22137                 if test "$cross_compiling" = yes; then
22138   cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144
22145 /* pthread test headers */
22146 #include <pthread.h>
22147 #if HAVE_PTHREADS < 7
22148 #include <errno.h>
22149 #endif
22150 #ifndef NULL
22151 #define NULL (void*)0
22152 #endif
22153
22154 static void *task(p)
22155         void *p;
22156 {
22157         return (void *) (p == NULL);
22158 }
22159
22160 int
22161 main ()
22162 {
22163
22164         /* pthread test function */
22165 #ifndef PTHREAD_CREATE_DETACHED
22166 #define PTHREAD_CREATE_DETACHED 1
22167 #endif
22168         pthread_t t;
22169         int status;
22170         int detach = PTHREAD_CREATE_DETACHED;
22171
22172 #if HAVE_PTHREADS > 4
22173         /* Final pthreads */
22174         pthread_attr_t attr;
22175
22176         status = pthread_attr_init(&attr);
22177         if( status ) return status;
22178
22179 #if HAVE_PTHREADS < 7
22180         status = pthread_attr_setdetachstate(&attr, &detach);
22181         if( status < 0 ) status = errno;
22182 #else
22183         status = pthread_attr_setdetachstate(&attr, detach);
22184 #endif
22185         if( status ) return status;
22186         status = pthread_create( &t, &attr, task, NULL );
22187 #if HAVE_PTHREADS < 7
22188         if( status < 0 ) status = errno;
22189 #endif
22190         if( status ) return status;
22191 #else
22192         /* Draft 4 pthreads */
22193         status = pthread_create( &t, pthread_attr_default, task, NULL );
22194         if( status ) return errno;
22195
22196         /* give thread a chance to complete */
22197         /* it should remain joinable and hence detachable */
22198         sleep( 1 );
22199
22200         status = pthread_detach( &t );
22201         if( status ) return errno;
22202 #endif
22203
22204 #ifdef HAVE_LINUX_THREADS
22205         pthread_kill_other_threads_np();
22206 #endif
22207
22208         return 0;
22209
22210   ;
22211   return 0;
22212 }
22213 _ACEOF
22214 rm -f conftest.$ac_objext conftest$ac_exeext
22215 if { (ac_try="$ac_link"
22216 case "(($ac_try" in
22217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22218   *) ac_try_echo=$ac_try;;
22219 esac
22220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22221   (eval "$ac_link") 2>conftest.er1
22222   ac_status=$?
22223   grep -v '^ *+' conftest.er1 >conftest.err
22224   rm -f conftest.er1
22225   cat conftest.err >&5
22226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227   (exit $ac_status); } && {
22228          test -z "$ac_c_werror_flag" ||
22229          test ! -s conftest.err
22230        } && test -s conftest$ac_exeext &&
22231        $as_test_x conftest$ac_exeext; then
22232   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22233 else
22234   echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22236
22237         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22238 fi
22239
22240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22241       conftest$ac_exeext conftest.$ac_ext
22242 else
22243   cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h.  */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h.  */
22249
22250 /* pthread test headers */
22251 #include <pthread.h>
22252 #if HAVE_PTHREADS < 7
22253 #include <errno.h>
22254 #endif
22255 #ifndef NULL
22256 #define NULL (void*)0
22257 #endif
22258
22259 static void *task(p)
22260         void *p;
22261 {
22262         return (void *) (p == NULL);
22263 }
22264
22265
22266 int main(argc, argv)
22267         int argc;
22268         char **argv;
22269 {
22270
22271         /* pthread test function */
22272 #ifndef PTHREAD_CREATE_DETACHED
22273 #define PTHREAD_CREATE_DETACHED 1
22274 #endif
22275         pthread_t t;
22276         int status;
22277         int detach = PTHREAD_CREATE_DETACHED;
22278
22279 #if HAVE_PTHREADS > 4
22280         /* Final pthreads */
22281         pthread_attr_t attr;
22282
22283         status = pthread_attr_init(&attr);
22284         if( status ) return status;
22285
22286 #if HAVE_PTHREADS < 7
22287         status = pthread_attr_setdetachstate(&attr, &detach);
22288         if( status < 0 ) status = errno;
22289 #else
22290         status = pthread_attr_setdetachstate(&attr, detach);
22291 #endif
22292         if( status ) return status;
22293         status = pthread_create( &t, &attr, task, NULL );
22294 #if HAVE_PTHREADS < 7
22295         if( status < 0 ) status = errno;
22296 #endif
22297         if( status ) return status;
22298 #else
22299         /* Draft 4 pthreads */
22300         status = pthread_create( &t, pthread_attr_default, task, NULL );
22301         if( status ) return errno;
22302
22303         /* give thread a chance to complete */
22304         /* it should remain joinable and hence detachable */
22305         sleep( 1 );
22306
22307         status = pthread_detach( &t );
22308         if( status ) return errno;
22309 #endif
22310
22311 #ifdef HAVE_LINUX_THREADS
22312         pthread_kill_other_threads_np();
22313 #endif
22314
22315         return 0;
22316
22317 }
22318
22319 _ACEOF
22320 rm -f conftest$ac_exeext
22321 if { (ac_try="$ac_link"
22322 case "(($ac_try" in
22323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324   *) ac_try_echo=$ac_try;;
22325 esac
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327   (eval "$ac_link") 2>&5
22328   ac_status=$?
22329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22331   { (case "(($ac_try" in
22332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333   *) ac_try_echo=$ac_try;;
22334 esac
22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336   (eval "$ac_try") 2>&5
22337   ac_status=$?
22338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339   (exit $ac_status); }; }; then
22340   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22341 else
22342   echo "$as_me: program exited with status $ac_status" >&5
22343 echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22345
22346 ( exit $ac_status )
22347 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22348 fi
22349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22350 fi
22351
22352
22353
22354                 # restore the LIBS
22355                 LIBS="$ol_LIBS"
22356
22357 fi
22358 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22359 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22360
22361         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22362                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22363                 ol_link_threads=posix
22364         fi
22365 fi
22366
22367                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22368 if test "$ol_link_threads" = no ; then
22369         # try -lpthread -lmach -lexc
22370         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22371 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22372 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22373   echo $ECHO_N "(cached) $ECHO_C" >&6
22374 else
22375
22376                 # save the flags
22377                 ol_LIBS="$LIBS"
22378                 LIBS="-lpthread -lmach -lexc $LIBS"
22379
22380                 if test "$cross_compiling" = yes; then
22381   cat >conftest.$ac_ext <<_ACEOF
22382 /* confdefs.h.  */
22383 _ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h.  */
22387
22388 /* pthread test headers */
22389 #include <pthread.h>
22390 #if HAVE_PTHREADS < 7
22391 #include <errno.h>
22392 #endif
22393 #ifndef NULL
22394 #define NULL (void*)0
22395 #endif
22396
22397 static void *task(p)
22398         void *p;
22399 {
22400         return (void *) (p == NULL);
22401 }
22402
22403 int
22404 main ()
22405 {
22406
22407         /* pthread test function */
22408 #ifndef PTHREAD_CREATE_DETACHED
22409 #define PTHREAD_CREATE_DETACHED 1
22410 #endif
22411         pthread_t t;
22412         int status;
22413         int detach = PTHREAD_CREATE_DETACHED;
22414
22415 #if HAVE_PTHREADS > 4
22416         /* Final pthreads */
22417         pthread_attr_t attr;
22418
22419         status = pthread_attr_init(&attr);
22420         if( status ) return status;
22421
22422 #if HAVE_PTHREADS < 7
22423         status = pthread_attr_setdetachstate(&attr, &detach);
22424         if( status < 0 ) status = errno;
22425 #else
22426         status = pthread_attr_setdetachstate(&attr, detach);
22427 #endif
22428         if( status ) return status;
22429         status = pthread_create( &t, &attr, task, NULL );
22430 #if HAVE_PTHREADS < 7
22431         if( status < 0 ) status = errno;
22432 #endif
22433         if( status ) return status;
22434 #else
22435         /* Draft 4 pthreads */
22436         status = pthread_create( &t, pthread_attr_default, task, NULL );
22437         if( status ) return errno;
22438
22439         /* give thread a chance to complete */
22440         /* it should remain joinable and hence detachable */
22441         sleep( 1 );
22442
22443         status = pthread_detach( &t );
22444         if( status ) return errno;
22445 #endif
22446
22447 #ifdef HAVE_LINUX_THREADS
22448         pthread_kill_other_threads_np();
22449 #endif
22450
22451         return 0;
22452
22453   ;
22454   return 0;
22455 }
22456 _ACEOF
22457 rm -f conftest.$ac_objext conftest$ac_exeext
22458 if { (ac_try="$ac_link"
22459 case "(($ac_try" in
22460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461   *) ac_try_echo=$ac_try;;
22462 esac
22463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464   (eval "$ac_link") 2>conftest.er1
22465   ac_status=$?
22466   grep -v '^ *+' conftest.er1 >conftest.err
22467   rm -f conftest.er1
22468   cat conftest.err >&5
22469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470   (exit $ac_status); } && {
22471          test -z "$ac_c_werror_flag" ||
22472          test ! -s conftest.err
22473        } && test -s conftest$ac_exeext &&
22474        $as_test_x conftest$ac_exeext; then
22475   ol_cv_pthread_lpthread_lmach_lexc=yes
22476 else
22477   echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22479
22480         ol_cv_pthread_lpthread_lmach_lexc=no
22481 fi
22482
22483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22484       conftest$ac_exeext conftest.$ac_ext
22485 else
22486   cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h.  */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h.  */
22492
22493 /* pthread test headers */
22494 #include <pthread.h>
22495 #if HAVE_PTHREADS < 7
22496 #include <errno.h>
22497 #endif
22498 #ifndef NULL
22499 #define NULL (void*)0
22500 #endif
22501
22502 static void *task(p)
22503         void *p;
22504 {
22505         return (void *) (p == NULL);
22506 }
22507
22508
22509 int main(argc, argv)
22510         int argc;
22511         char **argv;
22512 {
22513
22514         /* pthread test function */
22515 #ifndef PTHREAD_CREATE_DETACHED
22516 #define PTHREAD_CREATE_DETACHED 1
22517 #endif
22518         pthread_t t;
22519         int status;
22520         int detach = PTHREAD_CREATE_DETACHED;
22521
22522 #if HAVE_PTHREADS > 4
22523         /* Final pthreads */
22524         pthread_attr_t attr;
22525
22526         status = pthread_attr_init(&attr);
22527         if( status ) return status;
22528
22529 #if HAVE_PTHREADS < 7
22530         status = pthread_attr_setdetachstate(&attr, &detach);
22531         if( status < 0 ) status = errno;
22532 #else
22533         status = pthread_attr_setdetachstate(&attr, detach);
22534 #endif
22535         if( status ) return status;
22536         status = pthread_create( &t, &attr, task, NULL );
22537 #if HAVE_PTHREADS < 7
22538         if( status < 0 ) status = errno;
22539 #endif
22540         if( status ) return status;
22541 #else
22542         /* Draft 4 pthreads */
22543         status = pthread_create( &t, pthread_attr_default, task, NULL );
22544         if( status ) return errno;
22545
22546         /* give thread a chance to complete */
22547         /* it should remain joinable and hence detachable */
22548         sleep( 1 );
22549
22550         status = pthread_detach( &t );
22551         if( status ) return errno;
22552 #endif
22553
22554 #ifdef HAVE_LINUX_THREADS
22555         pthread_kill_other_threads_np();
22556 #endif
22557
22558         return 0;
22559
22560 }
22561
22562 _ACEOF
22563 rm -f conftest$ac_exeext
22564 if { (ac_try="$ac_link"
22565 case "(($ac_try" in
22566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567   *) ac_try_echo=$ac_try;;
22568 esac
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570   (eval "$ac_link") 2>&5
22571   ac_status=$?
22572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22574   { (case "(($ac_try" in
22575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576   *) ac_try_echo=$ac_try;;
22577 esac
22578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22579   (eval "$ac_try") 2>&5
22580   ac_status=$?
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); }; }; then
22583   ol_cv_pthread_lpthread_lmach_lexc=yes
22584 else
22585   echo "$as_me: program exited with status $ac_status" >&5
22586 echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22588
22589 ( exit $ac_status )
22590 ol_cv_pthread_lpthread_lmach_lexc=no
22591 fi
22592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22593 fi
22594
22595
22596
22597                 # restore the LIBS
22598                 LIBS="$ol_LIBS"
22599
22600 fi
22601 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22602 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22603
22604         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22605                 ol_link_pthreads="-lpthread -lmach -lexc"
22606                 ol_link_threads=posix
22607         fi
22608 fi
22609
22610
22611                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22612 if test "$ol_link_threads" = no ; then
22613         # try -lpthread -Wl,-woff,85
22614         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22615 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22616 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22617   echo $ECHO_N "(cached) $ECHO_C" >&6
22618 else
22619
22620                 # save the flags
22621                 ol_LIBS="$LIBS"
22622                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22623
22624                 if test "$cross_compiling" = yes; then
22625   cat >conftest.$ac_ext <<_ACEOF
22626 /* confdefs.h.  */
22627 _ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h.  */
22631
22632 /* pthread test headers */
22633 #include <pthread.h>
22634 #if HAVE_PTHREADS < 7
22635 #include <errno.h>
22636 #endif
22637 #ifndef NULL
22638 #define NULL (void*)0
22639 #endif
22640
22641 static void *task(p)
22642         void *p;
22643 {
22644         return (void *) (p == NULL);
22645 }
22646
22647 int
22648 main ()
22649 {
22650
22651         /* pthread test function */
22652 #ifndef PTHREAD_CREATE_DETACHED
22653 #define PTHREAD_CREATE_DETACHED 1
22654 #endif
22655         pthread_t t;
22656         int status;
22657         int detach = PTHREAD_CREATE_DETACHED;
22658
22659 #if HAVE_PTHREADS > 4
22660         /* Final pthreads */
22661         pthread_attr_t attr;
22662
22663         status = pthread_attr_init(&attr);
22664         if( status ) return status;
22665
22666 #if HAVE_PTHREADS < 7
22667         status = pthread_attr_setdetachstate(&attr, &detach);
22668         if( status < 0 ) status = errno;
22669 #else
22670         status = pthread_attr_setdetachstate(&attr, detach);
22671 #endif
22672         if( status ) return status;
22673         status = pthread_create( &t, &attr, task, NULL );
22674 #if HAVE_PTHREADS < 7
22675         if( status < 0 ) status = errno;
22676 #endif
22677         if( status ) return status;
22678 #else
22679         /* Draft 4 pthreads */
22680         status = pthread_create( &t, pthread_attr_default, task, NULL );
22681         if( status ) return errno;
22682
22683         /* give thread a chance to complete */
22684         /* it should remain joinable and hence detachable */
22685         sleep( 1 );
22686
22687         status = pthread_detach( &t );
22688         if( status ) return errno;
22689 #endif
22690
22691 #ifdef HAVE_LINUX_THREADS
22692         pthread_kill_other_threads_np();
22693 #endif
22694
22695         return 0;
22696
22697   ;
22698   return 0;
22699 }
22700 _ACEOF
22701 rm -f conftest.$ac_objext conftest$ac_exeext
22702 if { (ac_try="$ac_link"
22703 case "(($ac_try" in
22704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705   *) ac_try_echo=$ac_try;;
22706 esac
22707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22708   (eval "$ac_link") 2>conftest.er1
22709   ac_status=$?
22710   grep -v '^ *+' conftest.er1 >conftest.err
22711   rm -f conftest.er1
22712   cat conftest.err >&5
22713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714   (exit $ac_status); } && {
22715          test -z "$ac_c_werror_flag" ||
22716          test ! -s conftest.err
22717        } && test -s conftest$ac_exeext &&
22718        $as_test_x conftest$ac_exeext; then
22719   ol_cv_pthread_lib_lpthread_woff=yes
22720 else
22721   echo "$as_me: failed program was:" >&5
22722 sed 's/^/| /' conftest.$ac_ext >&5
22723
22724         ol_cv_pthread_lib_lpthread_woff=no
22725 fi
22726
22727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22728       conftest$ac_exeext conftest.$ac_ext
22729 else
22730   cat >conftest.$ac_ext <<_ACEOF
22731 /* confdefs.h.  */
22732 _ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h.  */
22736
22737 /* pthread test headers */
22738 #include <pthread.h>
22739 #if HAVE_PTHREADS < 7
22740 #include <errno.h>
22741 #endif
22742 #ifndef NULL
22743 #define NULL (void*)0
22744 #endif
22745
22746 static void *task(p)
22747         void *p;
22748 {
22749         return (void *) (p == NULL);
22750 }
22751
22752
22753 int main(argc, argv)
22754         int argc;
22755         char **argv;
22756 {
22757
22758         /* pthread test function */
22759 #ifndef PTHREAD_CREATE_DETACHED
22760 #define PTHREAD_CREATE_DETACHED 1
22761 #endif
22762         pthread_t t;
22763         int status;
22764         int detach = PTHREAD_CREATE_DETACHED;
22765
22766 #if HAVE_PTHREADS > 4
22767         /* Final pthreads */
22768         pthread_attr_t attr;
22769
22770         status = pthread_attr_init(&attr);
22771         if( status ) return status;
22772
22773 #if HAVE_PTHREADS < 7
22774         status = pthread_attr_setdetachstate(&attr, &detach);
22775         if( status < 0 ) status = errno;
22776 #else
22777         status = pthread_attr_setdetachstate(&attr, detach);
22778 #endif
22779         if( status ) return status;
22780         status = pthread_create( &t, &attr, task, NULL );
22781 #if HAVE_PTHREADS < 7
22782         if( status < 0 ) status = errno;
22783 #endif
22784         if( status ) return status;
22785 #else
22786         /* Draft 4 pthreads */
22787         status = pthread_create( &t, pthread_attr_default, task, NULL );
22788         if( status ) return errno;
22789
22790         /* give thread a chance to complete */
22791         /* it should remain joinable and hence detachable */
22792         sleep( 1 );
22793
22794         status = pthread_detach( &t );
22795         if( status ) return errno;
22796 #endif
22797
22798 #ifdef HAVE_LINUX_THREADS
22799         pthread_kill_other_threads_np();
22800 #endif
22801
22802         return 0;
22803
22804 }
22805
22806 _ACEOF
22807 rm -f conftest$ac_exeext
22808 if { (ac_try="$ac_link"
22809 case "(($ac_try" in
22810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22811   *) ac_try_echo=$ac_try;;
22812 esac
22813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22814   (eval "$ac_link") 2>&5
22815   ac_status=$?
22816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22818   { (case "(($ac_try" in
22819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820   *) ac_try_echo=$ac_try;;
22821 esac
22822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22823   (eval "$ac_try") 2>&5
22824   ac_status=$?
22825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826   (exit $ac_status); }; }; then
22827   ol_cv_pthread_lib_lpthread_woff=yes
22828 else
22829   echo "$as_me: program exited with status $ac_status" >&5
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22832
22833 ( exit $ac_status )
22834 ol_cv_pthread_lib_lpthread_woff=no
22835 fi
22836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22837 fi
22838
22839
22840
22841                 # restore the LIBS
22842                 LIBS="$ol_LIBS"
22843
22844 fi
22845 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22846 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22847
22848         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22849                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22850                 ol_link_threads=posix
22851         fi
22852 fi
22853
22854
22855                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22856 if test "$ol_link_threads" = no ; then
22857         # try -lpthread
22858         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22859 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22860 if test "${ol_cv_pthread_lpthread+set}" = set; then
22861   echo $ECHO_N "(cached) $ECHO_C" >&6
22862 else
22863
22864                 # save the flags
22865                 ol_LIBS="$LIBS"
22866                 LIBS="-lpthread $LIBS"
22867
22868                 if test "$cross_compiling" = yes; then
22869   cat >conftest.$ac_ext <<_ACEOF
22870 /* confdefs.h.  */
22871 _ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h.  */
22875
22876 /* pthread test headers */
22877 #include <pthread.h>
22878 #if HAVE_PTHREADS < 7
22879 #include <errno.h>
22880 #endif
22881 #ifndef NULL
22882 #define NULL (void*)0
22883 #endif
22884
22885 static void *task(p)
22886         void *p;
22887 {
22888         return (void *) (p == NULL);
22889 }
22890
22891 int
22892 main ()
22893 {
22894
22895         /* pthread test function */
22896 #ifndef PTHREAD_CREATE_DETACHED
22897 #define PTHREAD_CREATE_DETACHED 1
22898 #endif
22899         pthread_t t;
22900         int status;
22901         int detach = PTHREAD_CREATE_DETACHED;
22902
22903 #if HAVE_PTHREADS > 4
22904         /* Final pthreads */
22905         pthread_attr_t attr;
22906
22907         status = pthread_attr_init(&attr);
22908         if( status ) return status;
22909
22910 #if HAVE_PTHREADS < 7
22911         status = pthread_attr_setdetachstate(&attr, &detach);
22912         if( status < 0 ) status = errno;
22913 #else
22914         status = pthread_attr_setdetachstate(&attr, detach);
22915 #endif
22916         if( status ) return status;
22917         status = pthread_create( &t, &attr, task, NULL );
22918 #if HAVE_PTHREADS < 7
22919         if( status < 0 ) status = errno;
22920 #endif
22921         if( status ) return status;
22922 #else
22923         /* Draft 4 pthreads */
22924         status = pthread_create( &t, pthread_attr_default, task, NULL );
22925         if( status ) return errno;
22926
22927         /* give thread a chance to complete */
22928         /* it should remain joinable and hence detachable */
22929         sleep( 1 );
22930
22931         status = pthread_detach( &t );
22932         if( status ) return errno;
22933 #endif
22934
22935 #ifdef HAVE_LINUX_THREADS
22936         pthread_kill_other_threads_np();
22937 #endif
22938
22939         return 0;
22940
22941   ;
22942   return 0;
22943 }
22944 _ACEOF
22945 rm -f conftest.$ac_objext conftest$ac_exeext
22946 if { (ac_try="$ac_link"
22947 case "(($ac_try" in
22948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22949   *) ac_try_echo=$ac_try;;
22950 esac
22951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22952   (eval "$ac_link") 2>conftest.er1
22953   ac_status=$?
22954   grep -v '^ *+' conftest.er1 >conftest.err
22955   rm -f conftest.er1
22956   cat conftest.err >&5
22957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958   (exit $ac_status); } && {
22959          test -z "$ac_c_werror_flag" ||
22960          test ! -s conftest.err
22961        } && test -s conftest$ac_exeext &&
22962        $as_test_x conftest$ac_exeext; then
22963   ol_cv_pthread_lpthread=yes
22964 else
22965   echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22967
22968         ol_cv_pthread_lpthread=no
22969 fi
22970
22971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22972       conftest$ac_exeext conftest.$ac_ext
22973 else
22974   cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h.  */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h.  */
22980
22981 /* pthread test headers */
22982 #include <pthread.h>
22983 #if HAVE_PTHREADS < 7
22984 #include <errno.h>
22985 #endif
22986 #ifndef NULL
22987 #define NULL (void*)0
22988 #endif
22989
22990 static void *task(p)
22991         void *p;
22992 {
22993         return (void *) (p == NULL);
22994 }
22995
22996
22997 int main(argc, argv)
22998         int argc;
22999         char **argv;
23000 {
23001
23002         /* pthread test function */
23003 #ifndef PTHREAD_CREATE_DETACHED
23004 #define PTHREAD_CREATE_DETACHED 1
23005 #endif
23006         pthread_t t;
23007         int status;
23008         int detach = PTHREAD_CREATE_DETACHED;
23009
23010 #if HAVE_PTHREADS > 4
23011         /* Final pthreads */
23012         pthread_attr_t attr;
23013
23014         status = pthread_attr_init(&attr);
23015         if( status ) return status;
23016
23017 #if HAVE_PTHREADS < 7
23018         status = pthread_attr_setdetachstate(&attr, &detach);
23019         if( status < 0 ) status = errno;
23020 #else
23021         status = pthread_attr_setdetachstate(&attr, detach);
23022 #endif
23023         if( status ) return status;
23024         status = pthread_create( &t, &attr, task, NULL );
23025 #if HAVE_PTHREADS < 7
23026         if( status < 0 ) status = errno;
23027 #endif
23028         if( status ) return status;
23029 #else
23030         /* Draft 4 pthreads */
23031         status = pthread_create( &t, pthread_attr_default, task, NULL );
23032         if( status ) return errno;
23033
23034         /* give thread a chance to complete */
23035         /* it should remain joinable and hence detachable */
23036         sleep( 1 );
23037
23038         status = pthread_detach( &t );
23039         if( status ) return errno;
23040 #endif
23041
23042 #ifdef HAVE_LINUX_THREADS
23043         pthread_kill_other_threads_np();
23044 #endif
23045
23046         return 0;
23047
23048 }
23049
23050 _ACEOF
23051 rm -f conftest$ac_exeext
23052 if { (ac_try="$ac_link"
23053 case "(($ac_try" in
23054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055   *) ac_try_echo=$ac_try;;
23056 esac
23057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058   (eval "$ac_link") 2>&5
23059   ac_status=$?
23060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23062   { (case "(($ac_try" in
23063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064   *) ac_try_echo=$ac_try;;
23065 esac
23066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23067   (eval "$ac_try") 2>&5
23068   ac_status=$?
23069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070   (exit $ac_status); }; }; then
23071   ol_cv_pthread_lpthread=yes
23072 else
23073   echo "$as_me: program exited with status $ac_status" >&5
23074 echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23076
23077 ( exit $ac_status )
23078 ol_cv_pthread_lpthread=no
23079 fi
23080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23081 fi
23082
23083
23084
23085                 # restore the LIBS
23086                 LIBS="$ol_LIBS"
23087
23088 fi
23089 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23090 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23091
23092         if test $ol_cv_pthread_lpthread = yes ; then
23093                 ol_link_pthreads="-lpthread"
23094                 ol_link_threads=posix
23095         fi
23096 fi
23097
23098                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23099 if test "$ol_link_threads" = no ; then
23100         # try -lc_r
23101         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23102 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23103 if test "${ol_cv_pthread_lc_r+set}" = set; then
23104   echo $ECHO_N "(cached) $ECHO_C" >&6
23105 else
23106
23107                 # save the flags
23108                 ol_LIBS="$LIBS"
23109                 LIBS="-lc_r $LIBS"
23110
23111                 if test "$cross_compiling" = yes; then
23112   cat >conftest.$ac_ext <<_ACEOF
23113 /* confdefs.h.  */
23114 _ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h.  */
23118
23119 /* pthread test headers */
23120 #include <pthread.h>
23121 #if HAVE_PTHREADS < 7
23122 #include <errno.h>
23123 #endif
23124 #ifndef NULL
23125 #define NULL (void*)0
23126 #endif
23127
23128 static void *task(p)
23129         void *p;
23130 {
23131         return (void *) (p == NULL);
23132 }
23133
23134 int
23135 main ()
23136 {
23137
23138         /* pthread test function */
23139 #ifndef PTHREAD_CREATE_DETACHED
23140 #define PTHREAD_CREATE_DETACHED 1
23141 #endif
23142         pthread_t t;
23143         int status;
23144         int detach = PTHREAD_CREATE_DETACHED;
23145
23146 #if HAVE_PTHREADS > 4
23147         /* Final pthreads */
23148         pthread_attr_t attr;
23149
23150         status = pthread_attr_init(&attr);
23151         if( status ) return status;
23152
23153 #if HAVE_PTHREADS < 7
23154         status = pthread_attr_setdetachstate(&attr, &detach);
23155         if( status < 0 ) status = errno;
23156 #else
23157         status = pthread_attr_setdetachstate(&attr, detach);
23158 #endif
23159         if( status ) return status;
23160         status = pthread_create( &t, &attr, task, NULL );
23161 #if HAVE_PTHREADS < 7
23162         if( status < 0 ) status = errno;
23163 #endif
23164         if( status ) return status;
23165 #else
23166         /* Draft 4 pthreads */
23167         status = pthread_create( &t, pthread_attr_default, task, NULL );
23168         if( status ) return errno;
23169
23170         /* give thread a chance to complete */
23171         /* it should remain joinable and hence detachable */
23172         sleep( 1 );
23173
23174         status = pthread_detach( &t );
23175         if( status ) return errno;
23176 #endif
23177
23178 #ifdef HAVE_LINUX_THREADS
23179         pthread_kill_other_threads_np();
23180 #endif
23181
23182         return 0;
23183
23184   ;
23185   return 0;
23186 }
23187 _ACEOF
23188 rm -f conftest.$ac_objext conftest$ac_exeext
23189 if { (ac_try="$ac_link"
23190 case "(($ac_try" in
23191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23192   *) ac_try_echo=$ac_try;;
23193 esac
23194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23195   (eval "$ac_link") 2>conftest.er1
23196   ac_status=$?
23197   grep -v '^ *+' conftest.er1 >conftest.err
23198   rm -f conftest.er1
23199   cat conftest.err >&5
23200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201   (exit $ac_status); } && {
23202          test -z "$ac_c_werror_flag" ||
23203          test ! -s conftest.err
23204        } && test -s conftest$ac_exeext &&
23205        $as_test_x conftest$ac_exeext; then
23206   ol_cv_pthread_lc_r=yes
23207 else
23208   echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23210
23211         ol_cv_pthread_lc_r=no
23212 fi
23213
23214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23215       conftest$ac_exeext conftest.$ac_ext
23216 else
23217   cat >conftest.$ac_ext <<_ACEOF
23218 /* confdefs.h.  */
23219 _ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h.  */
23223
23224 /* pthread test headers */
23225 #include <pthread.h>
23226 #if HAVE_PTHREADS < 7
23227 #include <errno.h>
23228 #endif
23229 #ifndef NULL
23230 #define NULL (void*)0
23231 #endif
23232
23233 static void *task(p)
23234         void *p;
23235 {
23236         return (void *) (p == NULL);
23237 }
23238
23239
23240 int main(argc, argv)
23241         int argc;
23242         char **argv;
23243 {
23244
23245         /* pthread test function */
23246 #ifndef PTHREAD_CREATE_DETACHED
23247 #define PTHREAD_CREATE_DETACHED 1
23248 #endif
23249         pthread_t t;
23250         int status;
23251         int detach = PTHREAD_CREATE_DETACHED;
23252
23253 #if HAVE_PTHREADS > 4
23254         /* Final pthreads */
23255         pthread_attr_t attr;
23256
23257         status = pthread_attr_init(&attr);
23258         if( status ) return status;
23259
23260 #if HAVE_PTHREADS < 7
23261         status = pthread_attr_setdetachstate(&attr, &detach);
23262         if( status < 0 ) status = errno;
23263 #else
23264         status = pthread_attr_setdetachstate(&attr, detach);
23265 #endif
23266         if( status ) return status;
23267         status = pthread_create( &t, &attr, task, NULL );
23268 #if HAVE_PTHREADS < 7
23269         if( status < 0 ) status = errno;
23270 #endif
23271         if( status ) return status;
23272 #else
23273         /* Draft 4 pthreads */
23274         status = pthread_create( &t, pthread_attr_default, task, NULL );
23275         if( status ) return errno;
23276
23277         /* give thread a chance to complete */
23278         /* it should remain joinable and hence detachable */
23279         sleep( 1 );
23280
23281         status = pthread_detach( &t );
23282         if( status ) return errno;
23283 #endif
23284
23285 #ifdef HAVE_LINUX_THREADS
23286         pthread_kill_other_threads_np();
23287 #endif
23288
23289         return 0;
23290
23291 }
23292
23293 _ACEOF
23294 rm -f conftest$ac_exeext
23295 if { (ac_try="$ac_link"
23296 case "(($ac_try" in
23297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23298   *) ac_try_echo=$ac_try;;
23299 esac
23300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23301   (eval "$ac_link") 2>&5
23302   ac_status=$?
23303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23305   { (case "(($ac_try" in
23306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23307   *) ac_try_echo=$ac_try;;
23308 esac
23309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23310   (eval "$ac_try") 2>&5
23311   ac_status=$?
23312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313   (exit $ac_status); }; }; then
23314   ol_cv_pthread_lc_r=yes
23315 else
23316   echo "$as_me: program exited with status $ac_status" >&5
23317 echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23319
23320 ( exit $ac_status )
23321 ol_cv_pthread_lc_r=no
23322 fi
23323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23324 fi
23325
23326
23327
23328                 # restore the LIBS
23329                 LIBS="$ol_LIBS"
23330
23331 fi
23332 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23333 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23334
23335         if test $ol_cv_pthread_lc_r = yes ; then
23336                 ol_link_pthreads="-lc_r"
23337                 ol_link_threads=posix
23338         fi
23339 fi
23340
23341
23342                 # Pthread try link: -threads (ol_cv_pthread_threads)
23343 if test "$ol_link_threads" = no ; then
23344         # try -threads
23345         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23346 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23347 if test "${ol_cv_pthread_threads+set}" = set; then
23348   echo $ECHO_N "(cached) $ECHO_C" >&6
23349 else
23350
23351                 # save the flags
23352                 ol_LIBS="$LIBS"
23353                 LIBS="-threads $LIBS"
23354
23355                 if test "$cross_compiling" = yes; then
23356   cat >conftest.$ac_ext <<_ACEOF
23357 /* confdefs.h.  */
23358 _ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h.  */
23362
23363 /* pthread test headers */
23364 #include <pthread.h>
23365 #if HAVE_PTHREADS < 7
23366 #include <errno.h>
23367 #endif
23368 #ifndef NULL
23369 #define NULL (void*)0
23370 #endif
23371
23372 static void *task(p)
23373         void *p;
23374 {
23375         return (void *) (p == NULL);
23376 }
23377
23378 int
23379 main ()
23380 {
23381
23382         /* pthread test function */
23383 #ifndef PTHREAD_CREATE_DETACHED
23384 #define PTHREAD_CREATE_DETACHED 1
23385 #endif
23386         pthread_t t;
23387         int status;
23388         int detach = PTHREAD_CREATE_DETACHED;
23389
23390 #if HAVE_PTHREADS > 4
23391         /* Final pthreads */
23392         pthread_attr_t attr;
23393
23394         status = pthread_attr_init(&attr);
23395         if( status ) return status;
23396
23397 #if HAVE_PTHREADS < 7
23398         status = pthread_attr_setdetachstate(&attr, &detach);
23399         if( status < 0 ) status = errno;
23400 #else
23401         status = pthread_attr_setdetachstate(&attr, detach);
23402 #endif
23403         if( status ) return status;
23404         status = pthread_create( &t, &attr, task, NULL );
23405 #if HAVE_PTHREADS < 7
23406         if( status < 0 ) status = errno;
23407 #endif
23408         if( status ) return status;
23409 #else
23410         /* Draft 4 pthreads */
23411         status = pthread_create( &t, pthread_attr_default, task, NULL );
23412         if( status ) return errno;
23413
23414         /* give thread a chance to complete */
23415         /* it should remain joinable and hence detachable */
23416         sleep( 1 );
23417
23418         status = pthread_detach( &t );
23419         if( status ) return errno;
23420 #endif
23421
23422 #ifdef HAVE_LINUX_THREADS
23423         pthread_kill_other_threads_np();
23424 #endif
23425
23426         return 0;
23427
23428   ;
23429   return 0;
23430 }
23431 _ACEOF
23432 rm -f conftest.$ac_objext conftest$ac_exeext
23433 if { (ac_try="$ac_link"
23434 case "(($ac_try" in
23435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436   *) ac_try_echo=$ac_try;;
23437 esac
23438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23439   (eval "$ac_link") 2>conftest.er1
23440   ac_status=$?
23441   grep -v '^ *+' conftest.er1 >conftest.err
23442   rm -f conftest.er1
23443   cat conftest.err >&5
23444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445   (exit $ac_status); } && {
23446          test -z "$ac_c_werror_flag" ||
23447          test ! -s conftest.err
23448        } && test -s conftest$ac_exeext &&
23449        $as_test_x conftest$ac_exeext; then
23450   ol_cv_pthread_threads=yes
23451 else
23452   echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23454
23455         ol_cv_pthread_threads=no
23456 fi
23457
23458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23459       conftest$ac_exeext conftest.$ac_ext
23460 else
23461   cat >conftest.$ac_ext <<_ACEOF
23462 /* confdefs.h.  */
23463 _ACEOF
23464 cat confdefs.h >>conftest.$ac_ext
23465 cat >>conftest.$ac_ext <<_ACEOF
23466 /* end confdefs.h.  */
23467
23468 /* pthread test headers */
23469 #include <pthread.h>
23470 #if HAVE_PTHREADS < 7
23471 #include <errno.h>
23472 #endif
23473 #ifndef NULL
23474 #define NULL (void*)0
23475 #endif
23476
23477 static void *task(p)
23478         void *p;
23479 {
23480         return (void *) (p == NULL);
23481 }
23482
23483
23484 int main(argc, argv)
23485         int argc;
23486         char **argv;
23487 {
23488
23489         /* pthread test function */
23490 #ifndef PTHREAD_CREATE_DETACHED
23491 #define PTHREAD_CREATE_DETACHED 1
23492 #endif
23493         pthread_t t;
23494         int status;
23495         int detach = PTHREAD_CREATE_DETACHED;
23496
23497 #if HAVE_PTHREADS > 4
23498         /* Final pthreads */
23499         pthread_attr_t attr;
23500
23501         status = pthread_attr_init(&attr);
23502         if( status ) return status;
23503
23504 #if HAVE_PTHREADS < 7
23505         status = pthread_attr_setdetachstate(&attr, &detach);
23506         if( status < 0 ) status = errno;
23507 #else
23508         status = pthread_attr_setdetachstate(&attr, detach);
23509 #endif
23510         if( status ) return status;
23511         status = pthread_create( &t, &attr, task, NULL );
23512 #if HAVE_PTHREADS < 7
23513         if( status < 0 ) status = errno;
23514 #endif
23515         if( status ) return status;
23516 #else
23517         /* Draft 4 pthreads */
23518         status = pthread_create( &t, pthread_attr_default, task, NULL );
23519         if( status ) return errno;
23520
23521         /* give thread a chance to complete */
23522         /* it should remain joinable and hence detachable */
23523         sleep( 1 );
23524
23525         status = pthread_detach( &t );
23526         if( status ) return errno;
23527 #endif
23528
23529 #ifdef HAVE_LINUX_THREADS
23530         pthread_kill_other_threads_np();
23531 #endif
23532
23533         return 0;
23534
23535 }
23536
23537 _ACEOF
23538 rm -f conftest$ac_exeext
23539 if { (ac_try="$ac_link"
23540 case "(($ac_try" in
23541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542   *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545   (eval "$ac_link") 2>&5
23546   ac_status=$?
23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23549   { (case "(($ac_try" in
23550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551   *) ac_try_echo=$ac_try;;
23552 esac
23553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554   (eval "$ac_try") 2>&5
23555   ac_status=$?
23556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557   (exit $ac_status); }; }; then
23558   ol_cv_pthread_threads=yes
23559 else
23560   echo "$as_me: program exited with status $ac_status" >&5
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23563
23564 ( exit $ac_status )
23565 ol_cv_pthread_threads=no
23566 fi
23567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23568 fi
23569
23570
23571
23572                 # restore the LIBS
23573                 LIBS="$ol_LIBS"
23574
23575 fi
23576 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23577 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23578
23579         if test $ol_cv_pthread_threads = yes ; then
23580                 ol_link_pthreads="-threads"
23581                 ol_link_threads=posix
23582         fi
23583 fi
23584
23585
23586                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23587 if test "$ol_link_threads" = no ; then
23588         # try -lpthreads -lmach -lexc -lc_r
23589         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23590 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23591 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23592   echo $ECHO_N "(cached) $ECHO_C" >&6
23593 else
23594
23595                 # save the flags
23596                 ol_LIBS="$LIBS"
23597                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23598
23599                 if test "$cross_compiling" = yes; then
23600   cat >conftest.$ac_ext <<_ACEOF
23601 /* confdefs.h.  */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h.  */
23606
23607 /* pthread test headers */
23608 #include <pthread.h>
23609 #if HAVE_PTHREADS < 7
23610 #include <errno.h>
23611 #endif
23612 #ifndef NULL
23613 #define NULL (void*)0
23614 #endif
23615
23616 static void *task(p)
23617         void *p;
23618 {
23619         return (void *) (p == NULL);
23620 }
23621
23622 int
23623 main ()
23624 {
23625
23626         /* pthread test function */
23627 #ifndef PTHREAD_CREATE_DETACHED
23628 #define PTHREAD_CREATE_DETACHED 1
23629 #endif
23630         pthread_t t;
23631         int status;
23632         int detach = PTHREAD_CREATE_DETACHED;
23633
23634 #if HAVE_PTHREADS > 4
23635         /* Final pthreads */
23636         pthread_attr_t attr;
23637
23638         status = pthread_attr_init(&attr);
23639         if( status ) return status;
23640
23641 #if HAVE_PTHREADS < 7
23642         status = pthread_attr_setdetachstate(&attr, &detach);
23643         if( status < 0 ) status = errno;
23644 #else
23645         status = pthread_attr_setdetachstate(&attr, detach);
23646 #endif
23647         if( status ) return status;
23648         status = pthread_create( &t, &attr, task, NULL );
23649 #if HAVE_PTHREADS < 7
23650         if( status < 0 ) status = errno;
23651 #endif
23652         if( status ) return status;
23653 #else
23654         /* Draft 4 pthreads */
23655         status = pthread_create( &t, pthread_attr_default, task, NULL );
23656         if( status ) return errno;
23657
23658         /* give thread a chance to complete */
23659         /* it should remain joinable and hence detachable */
23660         sleep( 1 );
23661
23662         status = pthread_detach( &t );
23663         if( status ) return errno;
23664 #endif
23665
23666 #ifdef HAVE_LINUX_THREADS
23667         pthread_kill_other_threads_np();
23668 #endif
23669
23670         return 0;
23671
23672   ;
23673   return 0;
23674 }
23675 _ACEOF
23676 rm -f conftest.$ac_objext conftest$ac_exeext
23677 if { (ac_try="$ac_link"
23678 case "(($ac_try" in
23679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680   *) ac_try_echo=$ac_try;;
23681 esac
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683   (eval "$ac_link") 2>conftest.er1
23684   ac_status=$?
23685   grep -v '^ *+' conftest.er1 >conftest.err
23686   rm -f conftest.er1
23687   cat conftest.err >&5
23688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689   (exit $ac_status); } && {
23690          test -z "$ac_c_werror_flag" ||
23691          test ! -s conftest.err
23692        } && test -s conftest$ac_exeext &&
23693        $as_test_x conftest$ac_exeext; then
23694   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23695 else
23696   echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23698
23699         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23700 fi
23701
23702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23703       conftest$ac_exeext conftest.$ac_ext
23704 else
23705   cat >conftest.$ac_ext <<_ACEOF
23706 /* confdefs.h.  */
23707 _ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h.  */
23711
23712 /* pthread test headers */
23713 #include <pthread.h>
23714 #if HAVE_PTHREADS < 7
23715 #include <errno.h>
23716 #endif
23717 #ifndef NULL
23718 #define NULL (void*)0
23719 #endif
23720
23721 static void *task(p)
23722         void *p;
23723 {
23724         return (void *) (p == NULL);
23725 }
23726
23727
23728 int main(argc, argv)
23729         int argc;
23730         char **argv;
23731 {
23732
23733         /* pthread test function */
23734 #ifndef PTHREAD_CREATE_DETACHED
23735 #define PTHREAD_CREATE_DETACHED 1
23736 #endif
23737         pthread_t t;
23738         int status;
23739         int detach = PTHREAD_CREATE_DETACHED;
23740
23741 #if HAVE_PTHREADS > 4
23742         /* Final pthreads */
23743         pthread_attr_t attr;
23744
23745         status = pthread_attr_init(&attr);
23746         if( status ) return status;
23747
23748 #if HAVE_PTHREADS < 7
23749         status = pthread_attr_setdetachstate(&attr, &detach);
23750         if( status < 0 ) status = errno;
23751 #else
23752         status = pthread_attr_setdetachstate(&attr, detach);
23753 #endif
23754         if( status ) return status;
23755         status = pthread_create( &t, &attr, task, NULL );
23756 #if HAVE_PTHREADS < 7
23757         if( status < 0 ) status = errno;
23758 #endif
23759         if( status ) return status;
23760 #else
23761         /* Draft 4 pthreads */
23762         status = pthread_create( &t, pthread_attr_default, task, NULL );
23763         if( status ) return errno;
23764
23765         /* give thread a chance to complete */
23766         /* it should remain joinable and hence detachable */
23767         sleep( 1 );
23768
23769         status = pthread_detach( &t );
23770         if( status ) return errno;
23771 #endif
23772
23773 #ifdef HAVE_LINUX_THREADS
23774         pthread_kill_other_threads_np();
23775 #endif
23776
23777         return 0;
23778
23779 }
23780
23781 _ACEOF
23782 rm -f conftest$ac_exeext
23783 if { (ac_try="$ac_link"
23784 case "(($ac_try" in
23785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786   *) ac_try_echo=$ac_try;;
23787 esac
23788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23789   (eval "$ac_link") 2>&5
23790   ac_status=$?
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23793   { (case "(($ac_try" in
23794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795   *) ac_try_echo=$ac_try;;
23796 esac
23797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23798   (eval "$ac_try") 2>&5
23799   ac_status=$?
23800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801   (exit $ac_status); }; }; then
23802   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23803 else
23804   echo "$as_me: program exited with status $ac_status" >&5
23805 echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23807
23808 ( exit $ac_status )
23809 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23810 fi
23811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23812 fi
23813
23814
23815
23816                 # restore the LIBS
23817                 LIBS="$ol_LIBS"
23818
23819 fi
23820 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23821 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23822
23823         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23824                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23825                 ol_link_threads=posix
23826         fi
23827 fi
23828
23829                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23830 if test "$ol_link_threads" = no ; then
23831         # try -lpthreads -lmach -lexc
23832         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23833 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23834 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23835   echo $ECHO_N "(cached) $ECHO_C" >&6
23836 else
23837
23838                 # save the flags
23839                 ol_LIBS="$LIBS"
23840                 LIBS="-lpthreads -lmach -lexc $LIBS"
23841
23842                 if test "$cross_compiling" = yes; then
23843   cat >conftest.$ac_ext <<_ACEOF
23844 /* confdefs.h.  */
23845 _ACEOF
23846 cat confdefs.h >>conftest.$ac_ext
23847 cat >>conftest.$ac_ext <<_ACEOF
23848 /* end confdefs.h.  */
23849
23850 /* pthread test headers */
23851 #include <pthread.h>
23852 #if HAVE_PTHREADS < 7
23853 #include <errno.h>
23854 #endif
23855 #ifndef NULL
23856 #define NULL (void*)0
23857 #endif
23858
23859 static void *task(p)
23860         void *p;
23861 {
23862         return (void *) (p == NULL);
23863 }
23864
23865 int
23866 main ()
23867 {
23868
23869         /* pthread test function */
23870 #ifndef PTHREAD_CREATE_DETACHED
23871 #define PTHREAD_CREATE_DETACHED 1
23872 #endif
23873         pthread_t t;
23874         int status;
23875         int detach = PTHREAD_CREATE_DETACHED;
23876
23877 #if HAVE_PTHREADS > 4
23878         /* Final pthreads */
23879         pthread_attr_t attr;
23880
23881         status = pthread_attr_init(&attr);
23882         if( status ) return status;
23883
23884 #if HAVE_PTHREADS < 7
23885         status = pthread_attr_setdetachstate(&attr, &detach);
23886         if( status < 0 ) status = errno;
23887 #else
23888         status = pthread_attr_setdetachstate(&attr, detach);
23889 #endif
23890         if( status ) return status;
23891         status = pthread_create( &t, &attr, task, NULL );
23892 #if HAVE_PTHREADS < 7
23893         if( status < 0 ) status = errno;
23894 #endif
23895         if( status ) return status;
23896 #else
23897         /* Draft 4 pthreads */
23898         status = pthread_create( &t, pthread_attr_default, task, NULL );
23899         if( status ) return errno;
23900
23901         /* give thread a chance to complete */
23902         /* it should remain joinable and hence detachable */
23903         sleep( 1 );
23904
23905         status = pthread_detach( &t );
23906         if( status ) return errno;
23907 #endif
23908
23909 #ifdef HAVE_LINUX_THREADS
23910         pthread_kill_other_threads_np();
23911 #endif
23912
23913         return 0;
23914
23915   ;
23916   return 0;
23917 }
23918 _ACEOF
23919 rm -f conftest.$ac_objext conftest$ac_exeext
23920 if { (ac_try="$ac_link"
23921 case "(($ac_try" in
23922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923   *) ac_try_echo=$ac_try;;
23924 esac
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926   (eval "$ac_link") 2>conftest.er1
23927   ac_status=$?
23928   grep -v '^ *+' conftest.er1 >conftest.err
23929   rm -f conftest.er1
23930   cat conftest.err >&5
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); } && {
23933          test -z "$ac_c_werror_flag" ||
23934          test ! -s conftest.err
23935        } && test -s conftest$ac_exeext &&
23936        $as_test_x conftest$ac_exeext; then
23937   ol_cv_pthread_lpthreads_lmach_lexc=yes
23938 else
23939   echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23941
23942         ol_cv_pthread_lpthreads_lmach_lexc=no
23943 fi
23944
23945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23946       conftest$ac_exeext conftest.$ac_ext
23947 else
23948   cat >conftest.$ac_ext <<_ACEOF
23949 /* confdefs.h.  */
23950 _ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h.  */
23954
23955 /* pthread test headers */
23956 #include <pthread.h>
23957 #if HAVE_PTHREADS < 7
23958 #include <errno.h>
23959 #endif
23960 #ifndef NULL
23961 #define NULL (void*)0
23962 #endif
23963
23964 static void *task(p)
23965         void *p;
23966 {
23967         return (void *) (p == NULL);
23968 }
23969
23970
23971 int main(argc, argv)
23972         int argc;
23973         char **argv;
23974 {
23975
23976         /* pthread test function */
23977 #ifndef PTHREAD_CREATE_DETACHED
23978 #define PTHREAD_CREATE_DETACHED 1
23979 #endif
23980         pthread_t t;
23981         int status;
23982         int detach = PTHREAD_CREATE_DETACHED;
23983
23984 #if HAVE_PTHREADS > 4
23985         /* Final pthreads */
23986         pthread_attr_t attr;
23987
23988         status = pthread_attr_init(&attr);
23989         if( status ) return status;
23990
23991 #if HAVE_PTHREADS < 7
23992         status = pthread_attr_setdetachstate(&attr, &detach);
23993         if( status < 0 ) status = errno;
23994 #else
23995         status = pthread_attr_setdetachstate(&attr, detach);
23996 #endif
23997         if( status ) return status;
23998         status = pthread_create( &t, &attr, task, NULL );
23999 #if HAVE_PTHREADS < 7
24000         if( status < 0 ) status = errno;
24001 #endif
24002         if( status ) return status;
24003 #else
24004         /* Draft 4 pthreads */
24005         status = pthread_create( &t, pthread_attr_default, task, NULL );
24006         if( status ) return errno;
24007
24008         /* give thread a chance to complete */
24009         /* it should remain joinable and hence detachable */
24010         sleep( 1 );
24011
24012         status = pthread_detach( &t );
24013         if( status ) return errno;
24014 #endif
24015
24016 #ifdef HAVE_LINUX_THREADS
24017         pthread_kill_other_threads_np();
24018 #endif
24019
24020         return 0;
24021
24022 }
24023
24024 _ACEOF
24025 rm -f conftest$ac_exeext
24026 if { (ac_try="$ac_link"
24027 case "(($ac_try" in
24028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24029   *) ac_try_echo=$ac_try;;
24030 esac
24031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24032   (eval "$ac_link") 2>&5
24033   ac_status=$?
24034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24036   { (case "(($ac_try" in
24037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038   *) ac_try_echo=$ac_try;;
24039 esac
24040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041   (eval "$ac_try") 2>&5
24042   ac_status=$?
24043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); }; }; then
24045   ol_cv_pthread_lpthreads_lmach_lexc=yes
24046 else
24047   echo "$as_me: program exited with status $ac_status" >&5
24048 echo "$as_me: failed program was:" >&5
24049 sed 's/^/| /' conftest.$ac_ext >&5
24050
24051 ( exit $ac_status )
24052 ol_cv_pthread_lpthreads_lmach_lexc=no
24053 fi
24054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24055 fi
24056
24057
24058
24059                 # restore the LIBS
24060                 LIBS="$ol_LIBS"
24061
24062 fi
24063 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24064 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24065
24066         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24067                 ol_link_pthreads="-lpthreads -lmach -lexc"
24068                 ol_link_threads=posix
24069         fi
24070 fi
24071
24072                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24073 if test "$ol_link_threads" = no ; then
24074         # try -lpthreads -lexc
24075         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24076 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24077 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24078   echo $ECHO_N "(cached) $ECHO_C" >&6
24079 else
24080
24081                 # save the flags
24082                 ol_LIBS="$LIBS"
24083                 LIBS="-lpthreads -lexc $LIBS"
24084
24085                 if test "$cross_compiling" = yes; then
24086   cat >conftest.$ac_ext <<_ACEOF
24087 /* confdefs.h.  */
24088 _ACEOF
24089 cat confdefs.h >>conftest.$ac_ext
24090 cat >>conftest.$ac_ext <<_ACEOF
24091 /* end confdefs.h.  */
24092
24093 /* pthread test headers */
24094 #include <pthread.h>
24095 #if HAVE_PTHREADS < 7
24096 #include <errno.h>
24097 #endif
24098 #ifndef NULL
24099 #define NULL (void*)0
24100 #endif
24101
24102 static void *task(p)
24103         void *p;
24104 {
24105         return (void *) (p == NULL);
24106 }
24107
24108 int
24109 main ()
24110 {
24111
24112         /* pthread test function */
24113 #ifndef PTHREAD_CREATE_DETACHED
24114 #define PTHREAD_CREATE_DETACHED 1
24115 #endif
24116         pthread_t t;
24117         int status;
24118         int detach = PTHREAD_CREATE_DETACHED;
24119
24120 #if HAVE_PTHREADS > 4
24121         /* Final pthreads */
24122         pthread_attr_t attr;
24123
24124         status = pthread_attr_init(&attr);
24125         if( status ) return status;
24126
24127 #if HAVE_PTHREADS < 7
24128         status = pthread_attr_setdetachstate(&attr, &detach);
24129         if( status < 0 ) status = errno;
24130 #else
24131         status = pthread_attr_setdetachstate(&attr, detach);
24132 #endif
24133         if( status ) return status;
24134         status = pthread_create( &t, &attr, task, NULL );
24135 #if HAVE_PTHREADS < 7
24136         if( status < 0 ) status = errno;
24137 #endif
24138         if( status ) return status;
24139 #else
24140         /* Draft 4 pthreads */
24141         status = pthread_create( &t, pthread_attr_default, task, NULL );
24142         if( status ) return errno;
24143
24144         /* give thread a chance to complete */
24145         /* it should remain joinable and hence detachable */
24146         sleep( 1 );
24147
24148         status = pthread_detach( &t );
24149         if( status ) return errno;
24150 #endif
24151
24152 #ifdef HAVE_LINUX_THREADS
24153         pthread_kill_other_threads_np();
24154 #endif
24155
24156         return 0;
24157
24158   ;
24159   return 0;
24160 }
24161 _ACEOF
24162 rm -f conftest.$ac_objext conftest$ac_exeext
24163 if { (ac_try="$ac_link"
24164 case "(($ac_try" in
24165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166   *) ac_try_echo=$ac_try;;
24167 esac
24168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24169   (eval "$ac_link") 2>conftest.er1
24170   ac_status=$?
24171   grep -v '^ *+' conftest.er1 >conftest.err
24172   rm -f conftest.er1
24173   cat conftest.err >&5
24174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175   (exit $ac_status); } && {
24176          test -z "$ac_c_werror_flag" ||
24177          test ! -s conftest.err
24178        } && test -s conftest$ac_exeext &&
24179        $as_test_x conftest$ac_exeext; then
24180   ol_cv_pthread_lpthreads_lexc=yes
24181 else
24182   echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24184
24185         ol_cv_pthread_lpthreads_lexc=no
24186 fi
24187
24188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24189       conftest$ac_exeext conftest.$ac_ext
24190 else
24191   cat >conftest.$ac_ext <<_ACEOF
24192 /* confdefs.h.  */
24193 _ACEOF
24194 cat confdefs.h >>conftest.$ac_ext
24195 cat >>conftest.$ac_ext <<_ACEOF
24196 /* end confdefs.h.  */
24197
24198 /* pthread test headers */
24199 #include <pthread.h>
24200 #if HAVE_PTHREADS < 7
24201 #include <errno.h>
24202 #endif
24203 #ifndef NULL
24204 #define NULL (void*)0
24205 #endif
24206
24207 static void *task(p)
24208         void *p;
24209 {
24210         return (void *) (p == NULL);
24211 }
24212
24213
24214 int main(argc, argv)
24215         int argc;
24216         char **argv;
24217 {
24218
24219         /* pthread test function */
24220 #ifndef PTHREAD_CREATE_DETACHED
24221 #define PTHREAD_CREATE_DETACHED 1
24222 #endif
24223         pthread_t t;
24224         int status;
24225         int detach = PTHREAD_CREATE_DETACHED;
24226
24227 #if HAVE_PTHREADS > 4
24228         /* Final pthreads */
24229         pthread_attr_t attr;
24230
24231         status = pthread_attr_init(&attr);
24232         if( status ) return status;
24233
24234 #if HAVE_PTHREADS < 7
24235         status = pthread_attr_setdetachstate(&attr, &detach);
24236         if( status < 0 ) status = errno;
24237 #else
24238         status = pthread_attr_setdetachstate(&attr, detach);
24239 #endif
24240         if( status ) return status;
24241         status = pthread_create( &t, &attr, task, NULL );
24242 #if HAVE_PTHREADS < 7
24243         if( status < 0 ) status = errno;
24244 #endif
24245         if( status ) return status;
24246 #else
24247         /* Draft 4 pthreads */
24248         status = pthread_create( &t, pthread_attr_default, task, NULL );
24249         if( status ) return errno;
24250
24251         /* give thread a chance to complete */
24252         /* it should remain joinable and hence detachable */
24253         sleep( 1 );
24254
24255         status = pthread_detach( &t );
24256         if( status ) return errno;
24257 #endif
24258
24259 #ifdef HAVE_LINUX_THREADS
24260         pthread_kill_other_threads_np();
24261 #endif
24262
24263         return 0;
24264
24265 }
24266
24267 _ACEOF
24268 rm -f conftest$ac_exeext
24269 if { (ac_try="$ac_link"
24270 case "(($ac_try" in
24271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24272   *) ac_try_echo=$ac_try;;
24273 esac
24274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24275   (eval "$ac_link") 2>&5
24276   ac_status=$?
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24279   { (case "(($ac_try" in
24280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24281   *) ac_try_echo=$ac_try;;
24282 esac
24283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24284   (eval "$ac_try") 2>&5
24285   ac_status=$?
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); }; }; then
24288   ol_cv_pthread_lpthreads_lexc=yes
24289 else
24290   echo "$as_me: program exited with status $ac_status" >&5
24291 echo "$as_me: failed program was:" >&5
24292 sed 's/^/| /' conftest.$ac_ext >&5
24293
24294 ( exit $ac_status )
24295 ol_cv_pthread_lpthreads_lexc=no
24296 fi
24297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24298 fi
24299
24300
24301
24302                 # restore the LIBS
24303                 LIBS="$ol_LIBS"
24304
24305 fi
24306 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24307 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24308
24309         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24310                 ol_link_pthreads="-lpthreads -lexc"
24311                 ol_link_threads=posix
24312         fi
24313 fi
24314
24315
24316                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24317 if test "$ol_link_threads" = no ; then
24318         # try -lpthreads
24319         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24320 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24321 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24322   echo $ECHO_N "(cached) $ECHO_C" >&6
24323 else
24324
24325                 # save the flags
24326                 ol_LIBS="$LIBS"
24327                 LIBS="-lpthreads $LIBS"
24328
24329                 if test "$cross_compiling" = yes; then
24330   cat >conftest.$ac_ext <<_ACEOF
24331 /* confdefs.h.  */
24332 _ACEOF
24333 cat confdefs.h >>conftest.$ac_ext
24334 cat >>conftest.$ac_ext <<_ACEOF
24335 /* end confdefs.h.  */
24336
24337 /* pthread test headers */
24338 #include <pthread.h>
24339 #if HAVE_PTHREADS < 7
24340 #include <errno.h>
24341 #endif
24342 #ifndef NULL
24343 #define NULL (void*)0
24344 #endif
24345
24346 static void *task(p)
24347         void *p;
24348 {
24349         return (void *) (p == NULL);
24350 }
24351
24352 int
24353 main ()
24354 {
24355
24356         /* pthread test function */
24357 #ifndef PTHREAD_CREATE_DETACHED
24358 #define PTHREAD_CREATE_DETACHED 1
24359 #endif
24360         pthread_t t;
24361         int status;
24362         int detach = PTHREAD_CREATE_DETACHED;
24363
24364 #if HAVE_PTHREADS > 4
24365         /* Final pthreads */
24366         pthread_attr_t attr;
24367
24368         status = pthread_attr_init(&attr);
24369         if( status ) return status;
24370
24371 #if HAVE_PTHREADS < 7
24372         status = pthread_attr_setdetachstate(&attr, &detach);
24373         if( status < 0 ) status = errno;
24374 #else
24375         status = pthread_attr_setdetachstate(&attr, detach);
24376 #endif
24377         if( status ) return status;
24378         status = pthread_create( &t, &attr, task, NULL );
24379 #if HAVE_PTHREADS < 7
24380         if( status < 0 ) status = errno;
24381 #endif
24382         if( status ) return status;
24383 #else
24384         /* Draft 4 pthreads */
24385         status = pthread_create( &t, pthread_attr_default, task, NULL );
24386         if( status ) return errno;
24387
24388         /* give thread a chance to complete */
24389         /* it should remain joinable and hence detachable */
24390         sleep( 1 );
24391
24392         status = pthread_detach( &t );
24393         if( status ) return errno;
24394 #endif
24395
24396 #ifdef HAVE_LINUX_THREADS
24397         pthread_kill_other_threads_np();
24398 #endif
24399
24400         return 0;
24401
24402   ;
24403   return 0;
24404 }
24405 _ACEOF
24406 rm -f conftest.$ac_objext conftest$ac_exeext
24407 if { (ac_try="$ac_link"
24408 case "(($ac_try" in
24409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410   *) ac_try_echo=$ac_try;;
24411 esac
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413   (eval "$ac_link") 2>conftest.er1
24414   ac_status=$?
24415   grep -v '^ *+' conftest.er1 >conftest.err
24416   rm -f conftest.er1
24417   cat conftest.err >&5
24418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419   (exit $ac_status); } && {
24420          test -z "$ac_c_werror_flag" ||
24421          test ! -s conftest.err
24422        } && test -s conftest$ac_exeext &&
24423        $as_test_x conftest$ac_exeext; then
24424   ol_cv_pthread_lib_lpthreads=yes
24425 else
24426   echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24428
24429         ol_cv_pthread_lib_lpthreads=no
24430 fi
24431
24432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24433       conftest$ac_exeext conftest.$ac_ext
24434 else
24435   cat >conftest.$ac_ext <<_ACEOF
24436 /* confdefs.h.  */
24437 _ACEOF
24438 cat confdefs.h >>conftest.$ac_ext
24439 cat >>conftest.$ac_ext <<_ACEOF
24440 /* end confdefs.h.  */
24441
24442 /* pthread test headers */
24443 #include <pthread.h>
24444 #if HAVE_PTHREADS < 7
24445 #include <errno.h>
24446 #endif
24447 #ifndef NULL
24448 #define NULL (void*)0
24449 #endif
24450
24451 static void *task(p)
24452         void *p;
24453 {
24454         return (void *) (p == NULL);
24455 }
24456
24457
24458 int main(argc, argv)
24459         int argc;
24460         char **argv;
24461 {
24462
24463         /* pthread test function */
24464 #ifndef PTHREAD_CREATE_DETACHED
24465 #define PTHREAD_CREATE_DETACHED 1
24466 #endif
24467         pthread_t t;
24468         int status;
24469         int detach = PTHREAD_CREATE_DETACHED;
24470
24471 #if HAVE_PTHREADS > 4
24472         /* Final pthreads */
24473         pthread_attr_t attr;
24474
24475         status = pthread_attr_init(&attr);
24476         if( status ) return status;
24477
24478 #if HAVE_PTHREADS < 7
24479         status = pthread_attr_setdetachstate(&attr, &detach);
24480         if( status < 0 ) status = errno;
24481 #else
24482         status = pthread_attr_setdetachstate(&attr, detach);
24483 #endif
24484         if( status ) return status;
24485         status = pthread_create( &t, &attr, task, NULL );
24486 #if HAVE_PTHREADS < 7
24487         if( status < 0 ) status = errno;
24488 #endif
24489         if( status ) return status;
24490 #else
24491         /* Draft 4 pthreads */
24492         status = pthread_create( &t, pthread_attr_default, task, NULL );
24493         if( status ) return errno;
24494
24495         /* give thread a chance to complete */
24496         /* it should remain joinable and hence detachable */
24497         sleep( 1 );
24498
24499         status = pthread_detach( &t );
24500         if( status ) return errno;
24501 #endif
24502
24503 #ifdef HAVE_LINUX_THREADS
24504         pthread_kill_other_threads_np();
24505 #endif
24506
24507         return 0;
24508
24509 }
24510
24511 _ACEOF
24512 rm -f conftest$ac_exeext
24513 if { (ac_try="$ac_link"
24514 case "(($ac_try" in
24515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516   *) ac_try_echo=$ac_try;;
24517 esac
24518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24519   (eval "$ac_link") 2>&5
24520   ac_status=$?
24521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24523   { (case "(($ac_try" in
24524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525   *) ac_try_echo=$ac_try;;
24526 esac
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528   (eval "$ac_try") 2>&5
24529   ac_status=$?
24530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531   (exit $ac_status); }; }; then
24532   ol_cv_pthread_lib_lpthreads=yes
24533 else
24534   echo "$as_me: program exited with status $ac_status" >&5
24535 echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24537
24538 ( exit $ac_status )
24539 ol_cv_pthread_lib_lpthreads=no
24540 fi
24541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24542 fi
24543
24544
24545
24546                 # restore the LIBS
24547                 LIBS="$ol_LIBS"
24548
24549 fi
24550 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24551 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24552
24553         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24554                 ol_link_pthreads="-lpthreads"
24555                 ol_link_threads=posix
24556         fi
24557 fi
24558
24559
24560                 if test $ol_link_threads != no ; then
24561                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24562
24563                                                 save_CPPFLAGS="$CPPFLAGS"
24564                         save_LIBS="$LIBS"
24565                         LIBS="$LTHREAD_LIBS $LIBS"
24566
24567
24568
24569
24570 for ac_func in sched_yield pthread_yield thr_yield
24571 do
24572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24576   echo $ECHO_N "(cached) $ECHO_C" >&6
24577 else
24578   cat >conftest.$ac_ext <<_ACEOF
24579 /* confdefs.h.  */
24580 _ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h.  */
24584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24586 #define $ac_func innocuous_$ac_func
24587
24588 /* System header to define __stub macros and hopefully few prototypes,
24589     which can conflict with char $ac_func (); below.
24590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24591     <limits.h> exists even on freestanding compilers.  */
24592
24593 #ifdef __STDC__
24594 # include <limits.h>
24595 #else
24596 # include <assert.h>
24597 #endif
24598
24599 #undef $ac_func
24600
24601 /* Override any GCC internal prototype to avoid an error.
24602    Use char because int might match the return type of a GCC
24603    builtin and then its argument prototype would still apply.  */
24604 #ifdef __cplusplus
24605 extern "C"
24606 #endif
24607 char $ac_func ();
24608 /* The GNU C library defines this for functions which it implements
24609     to always fail with ENOSYS.  Some functions are actually named
24610     something starting with __ and the normal name is an alias.  */
24611 #if defined __stub_$ac_func || defined __stub___$ac_func
24612 choke me
24613 #endif
24614
24615 int
24616 main ()
24617 {
24618 return $ac_func ();
24619   ;
24620   return 0;
24621 }
24622 _ACEOF
24623 rm -f conftest.$ac_objext conftest$ac_exeext
24624 if { (ac_try="$ac_link"
24625 case "(($ac_try" in
24626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627   *) ac_try_echo=$ac_try;;
24628 esac
24629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24630   (eval "$ac_link") 2>conftest.er1
24631   ac_status=$?
24632   grep -v '^ *+' conftest.er1 >conftest.err
24633   rm -f conftest.er1
24634   cat conftest.err >&5
24635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636   (exit $ac_status); } && {
24637          test -z "$ac_c_werror_flag" ||
24638          test ! -s conftest.err
24639        } && test -s conftest$ac_exeext &&
24640        $as_test_x conftest$ac_exeext; then
24641   eval "$as_ac_var=yes"
24642 else
24643   echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24645
24646         eval "$as_ac_var=no"
24647 fi
24648
24649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24650       conftest$ac_exeext conftest.$ac_ext
24651 fi
24652 ac_res=`eval echo '${'$as_ac_var'}'`
24653                { echo "$as_me:$LINENO: result: $ac_res" >&5
24654 echo "${ECHO_T}$ac_res" >&6; }
24655 if test `eval echo '${'$as_ac_var'}'` = yes; then
24656   cat >>confdefs.h <<_ACEOF
24657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24658 _ACEOF
24659
24660 fi
24661 done
24662
24663
24664                         if test $ac_cv_func_sched_yield = no &&
24665                            test $ac_cv_func_pthread_yield = no &&
24666                            test $ac_cv_func_thr_yield = no ; then
24667                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24668 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24669 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24670   echo $ECHO_N "(cached) $ECHO_C" >&6
24671 else
24672   ac_check_lib_save_LIBS=$LIBS
24673 LIBS="-lrt  $LIBS"
24674 cat >conftest.$ac_ext <<_ACEOF
24675 /* confdefs.h.  */
24676 _ACEOF
24677 cat confdefs.h >>conftest.$ac_ext
24678 cat >>conftest.$ac_ext <<_ACEOF
24679 /* end confdefs.h.  */
24680
24681 /* Override any GCC internal prototype to avoid an error.
24682    Use char because int might match the return type of a GCC
24683    builtin and then its argument prototype would still apply.  */
24684 #ifdef __cplusplus
24685 extern "C"
24686 #endif
24687 char sched_yield ();
24688 int
24689 main ()
24690 {
24691 return sched_yield ();
24692   ;
24693   return 0;
24694 }
24695 _ACEOF
24696 rm -f conftest.$ac_objext conftest$ac_exeext
24697 if { (ac_try="$ac_link"
24698 case "(($ac_try" in
24699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700   *) ac_try_echo=$ac_try;;
24701 esac
24702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24703   (eval "$ac_link") 2>conftest.er1
24704   ac_status=$?
24705   grep -v '^ *+' conftest.er1 >conftest.err
24706   rm -f conftest.er1
24707   cat conftest.err >&5
24708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709   (exit $ac_status); } && {
24710          test -z "$ac_c_werror_flag" ||
24711          test ! -s conftest.err
24712        } && test -s conftest$ac_exeext &&
24713        $as_test_x conftest$ac_exeext; then
24714   ac_cv_lib_rt_sched_yield=yes
24715 else
24716   echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24718
24719         ac_cv_lib_rt_sched_yield=no
24720 fi
24721
24722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24723       conftest$ac_exeext conftest.$ac_ext
24724 LIBS=$ac_check_lib_save_LIBS
24725 fi
24726 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24727 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24728 if test $ac_cv_lib_rt_sched_yield = yes; then
24729   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24730
24731 cat >>confdefs.h <<\_ACEOF
24732 #define HAVE_SCHED_YIELD 1
24733 _ACEOF
24734
24735                                         ac_cv_func_sched_yield=yes
24736 else
24737   ac_cv_func_sched_yield=no
24738 fi
24739
24740                         fi
24741                         if test $ac_cv_func_sched_yield = no &&
24742                            test $ac_cv_func_pthread_yield = no &&
24743                            test "$ac_cv_func_thr_yield" = no ; then
24744                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24745 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24746                         fi
24747
24748
24749 for ac_func in pthread_kill
24750 do
24751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24755   echo $ECHO_N "(cached) $ECHO_C" >&6
24756 else
24757   cat >conftest.$ac_ext <<_ACEOF
24758 /* confdefs.h.  */
24759 _ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h.  */
24763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24765 #define $ac_func innocuous_$ac_func
24766
24767 /* System header to define __stub macros and hopefully few prototypes,
24768     which can conflict with char $ac_func (); below.
24769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24770     <limits.h> exists even on freestanding compilers.  */
24771
24772 #ifdef __STDC__
24773 # include <limits.h>
24774 #else
24775 # include <assert.h>
24776 #endif
24777
24778 #undef $ac_func
24779
24780 /* Override any GCC internal prototype to avoid an error.
24781    Use char because int might match the return type of a GCC
24782    builtin and then its argument prototype would still apply.  */
24783 #ifdef __cplusplus
24784 extern "C"
24785 #endif
24786 char $ac_func ();
24787 /* The GNU C library defines this for functions which it implements
24788     to always fail with ENOSYS.  Some functions are actually named
24789     something starting with __ and the normal name is an alias.  */
24790 #if defined __stub_$ac_func || defined __stub___$ac_func
24791 choke me
24792 #endif
24793
24794 int
24795 main ()
24796 {
24797 return $ac_func ();
24798   ;
24799   return 0;
24800 }
24801 _ACEOF
24802 rm -f conftest.$ac_objext conftest$ac_exeext
24803 if { (ac_try="$ac_link"
24804 case "(($ac_try" in
24805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806   *) ac_try_echo=$ac_try;;
24807 esac
24808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809   (eval "$ac_link") 2>conftest.er1
24810   ac_status=$?
24811   grep -v '^ *+' conftest.er1 >conftest.err
24812   rm -f conftest.er1
24813   cat conftest.err >&5
24814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815   (exit $ac_status); } && {
24816          test -z "$ac_c_werror_flag" ||
24817          test ! -s conftest.err
24818        } && test -s conftest$ac_exeext &&
24819        $as_test_x conftest$ac_exeext; then
24820   eval "$as_ac_var=yes"
24821 else
24822   echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24824
24825         eval "$as_ac_var=no"
24826 fi
24827
24828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24829       conftest$ac_exeext conftest.$ac_ext
24830 fi
24831 ac_res=`eval echo '${'$as_ac_var'}'`
24832                { echo "$as_me:$LINENO: result: $ac_res" >&5
24833 echo "${ECHO_T}$ac_res" >&6; }
24834 if test `eval echo '${'$as_ac_var'}'` = yes; then
24835   cat >>confdefs.h <<_ACEOF
24836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24837 _ACEOF
24838
24839 fi
24840 done
24841
24842
24843                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24844 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24845 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24846   echo $ECHO_N "(cached) $ECHO_C" >&6
24847 else
24848
24849                                                                 cat >conftest.$ac_ext <<_ACEOF
24850 /* confdefs.h.  */
24851 _ACEOF
24852 cat confdefs.h >>conftest.$ac_ext
24853 cat >>conftest.$ac_ext <<_ACEOF
24854 /* end confdefs.h.  */
24855
24856 #include <pthread.h>
24857 pthread_rwlock_t rwlock;
24858
24859 int
24860 main ()
24861 {
24862 pthread_rwlock_destroy(&rwlock);
24863   ;
24864   return 0;
24865 }
24866 _ACEOF
24867 rm -f conftest.$ac_objext conftest$ac_exeext
24868 if { (ac_try="$ac_link"
24869 case "(($ac_try" in
24870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24871   *) ac_try_echo=$ac_try;;
24872 esac
24873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24874   (eval "$ac_link") 2>conftest.er1
24875   ac_status=$?
24876   grep -v '^ *+' conftest.er1 >conftest.err
24877   rm -f conftest.er1
24878   cat conftest.err >&5
24879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880   (exit $ac_status); } && {
24881          test -z "$ac_c_werror_flag" ||
24882          test ! -s conftest.err
24883        } && test -s conftest$ac_exeext &&
24884        $as_test_x conftest$ac_exeext; then
24885   ol_cv_func_pthread_rwlock_destroy=yes
24886 else
24887   echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24889
24890         ol_cv_func_pthread_rwlock_destroy=no
24891 fi
24892
24893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24894       conftest$ac_exeext conftest.$ac_ext
24895
24896 fi
24897 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24898 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24899                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24900
24901 cat >>confdefs.h <<\_ACEOF
24902 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24903 _ACEOF
24904
24905                         fi
24906
24907                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24908 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24909 if test "${ol_cv_func_pthread_detach+set}" = set; then
24910   echo $ECHO_N "(cached) $ECHO_C" >&6
24911 else
24912
24913                                                                 cat >conftest.$ac_ext <<_ACEOF
24914 /* confdefs.h.  */
24915 _ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h.  */
24919
24920 #include <pthread.h>
24921 #ifndef NULL
24922 #define NULL (void*)0
24923 #endif
24924
24925 int
24926 main ()
24927 {
24928 pthread_detach(NULL);
24929   ;
24930   return 0;
24931 }
24932 _ACEOF
24933 rm -f conftest.$ac_objext conftest$ac_exeext
24934 if { (ac_try="$ac_link"
24935 case "(($ac_try" in
24936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24937   *) ac_try_echo=$ac_try;;
24938 esac
24939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24940   (eval "$ac_link") 2>conftest.er1
24941   ac_status=$?
24942   grep -v '^ *+' conftest.er1 >conftest.err
24943   rm -f conftest.er1
24944   cat conftest.err >&5
24945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946   (exit $ac_status); } && {
24947          test -z "$ac_c_werror_flag" ||
24948          test ! -s conftest.err
24949        } && test -s conftest$ac_exeext &&
24950        $as_test_x conftest$ac_exeext; then
24951   ol_cv_func_pthread_detach=yes
24952 else
24953   echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24955
24956         ol_cv_func_pthread_detach=no
24957 fi
24958
24959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24960       conftest$ac_exeext conftest.$ac_ext
24961
24962 fi
24963 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24964 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24965
24966                         if test $ol_cv_func_pthread_detach = no ; then
24967                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24968 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24969    { (exit 1); exit 1; }; }
24970                         fi
24971
24972
24973 cat >>confdefs.h <<\_ACEOF
24974 #define HAVE_PTHREAD_DETACH 1
24975 _ACEOF
24976
24977
24978
24979
24980
24981
24982 for ac_func in \
24983                                 pthread_setconcurrency \
24984                                 pthread_getconcurrency \
24985                                 thr_setconcurrency \
24986                                 thr_getconcurrency \
24987
24988 do
24989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24993   echo $ECHO_N "(cached) $ECHO_C" >&6
24994 else
24995   cat >conftest.$ac_ext <<_ACEOF
24996 /* confdefs.h.  */
24997 _ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h.  */
25001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25003 #define $ac_func innocuous_$ac_func
25004
25005 /* System header to define __stub macros and hopefully few prototypes,
25006     which can conflict with char $ac_func (); below.
25007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25008     <limits.h> exists even on freestanding compilers.  */
25009
25010 #ifdef __STDC__
25011 # include <limits.h>
25012 #else
25013 # include <assert.h>
25014 #endif
25015
25016 #undef $ac_func
25017
25018 /* Override any GCC internal prototype to avoid an error.
25019    Use char because int might match the return type of a GCC
25020    builtin and then its argument prototype would still apply.  */
25021 #ifdef __cplusplus
25022 extern "C"
25023 #endif
25024 char $ac_func ();
25025 /* The GNU C library defines this for functions which it implements
25026     to always fail with ENOSYS.  Some functions are actually named
25027     something starting with __ and the normal name is an alias.  */
25028 #if defined __stub_$ac_func || defined __stub___$ac_func
25029 choke me
25030 #endif
25031
25032 int
25033 main ()
25034 {
25035 return $ac_func ();
25036   ;
25037   return 0;
25038 }
25039 _ACEOF
25040 rm -f conftest.$ac_objext conftest$ac_exeext
25041 if { (ac_try="$ac_link"
25042 case "(($ac_try" in
25043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044   *) ac_try_echo=$ac_try;;
25045 esac
25046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25047   (eval "$ac_link") 2>conftest.er1
25048   ac_status=$?
25049   grep -v '^ *+' conftest.er1 >conftest.err
25050   rm -f conftest.er1
25051   cat conftest.err >&5
25052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053   (exit $ac_status); } && {
25054          test -z "$ac_c_werror_flag" ||
25055          test ! -s conftest.err
25056        } && test -s conftest$ac_exeext &&
25057        $as_test_x conftest$ac_exeext; then
25058   eval "$as_ac_var=yes"
25059 else
25060   echo "$as_me: failed program was:" >&5
25061 sed 's/^/| /' conftest.$ac_ext >&5
25062
25063         eval "$as_ac_var=no"
25064 fi
25065
25066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25067       conftest$ac_exeext conftest.$ac_ext
25068 fi
25069 ac_res=`eval echo '${'$as_ac_var'}'`
25070                { echo "$as_me:$LINENO: result: $ac_res" >&5
25071 echo "${ECHO_T}$ac_res" >&6; }
25072 if test `eval echo '${'$as_ac_var'}'` = yes; then
25073   cat >>confdefs.h <<_ACEOF
25074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25075 _ACEOF
25076
25077 fi
25078 done
25079
25080
25081
25082
25083 for ac_func in pthread_kill_other_threads_np
25084 do
25085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25089   echo $ECHO_N "(cached) $ECHO_C" >&6
25090 else
25091   cat >conftest.$ac_ext <<_ACEOF
25092 /* confdefs.h.  */
25093 _ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h.  */
25097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25099 #define $ac_func innocuous_$ac_func
25100
25101 /* System header to define __stub macros and hopefully few prototypes,
25102     which can conflict with char $ac_func (); below.
25103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25104     <limits.h> exists even on freestanding compilers.  */
25105
25106 #ifdef __STDC__
25107 # include <limits.h>
25108 #else
25109 # include <assert.h>
25110 #endif
25111
25112 #undef $ac_func
25113
25114 /* Override any GCC internal prototype to avoid an error.
25115    Use char because int might match the return type of a GCC
25116    builtin and then its argument prototype would still apply.  */
25117 #ifdef __cplusplus
25118 extern "C"
25119 #endif
25120 char $ac_func ();
25121 /* The GNU C library defines this for functions which it implements
25122     to always fail with ENOSYS.  Some functions are actually named
25123     something starting with __ and the normal name is an alias.  */
25124 #if defined __stub_$ac_func || defined __stub___$ac_func
25125 choke me
25126 #endif
25127
25128 int
25129 main ()
25130 {
25131 return $ac_func ();
25132   ;
25133   return 0;
25134 }
25135 _ACEOF
25136 rm -f conftest.$ac_objext conftest$ac_exeext
25137 if { (ac_try="$ac_link"
25138 case "(($ac_try" in
25139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25140   *) ac_try_echo=$ac_try;;
25141 esac
25142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25143   (eval "$ac_link") 2>conftest.er1
25144   ac_status=$?
25145   grep -v '^ *+' conftest.er1 >conftest.err
25146   rm -f conftest.er1
25147   cat conftest.err >&5
25148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149   (exit $ac_status); } && {
25150          test -z "$ac_c_werror_flag" ||
25151          test ! -s conftest.err
25152        } && test -s conftest$ac_exeext &&
25153        $as_test_x conftest$ac_exeext; then
25154   eval "$as_ac_var=yes"
25155 else
25156   echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25158
25159         eval "$as_ac_var=no"
25160 fi
25161
25162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25163       conftest$ac_exeext conftest.$ac_ext
25164 fi
25165 ac_res=`eval echo '${'$as_ac_var'}'`
25166                { echo "$as_me:$LINENO: result: $ac_res" >&5
25167 echo "${ECHO_T}$ac_res" >&6; }
25168 if test `eval echo '${'$as_ac_var'}'` = yes; then
25169   cat >>confdefs.h <<_ACEOF
25170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25171 _ACEOF
25172
25173 fi
25174 done
25175
25176         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25177 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25178 if test "${ol_cv_sys_linux_threads+set}" = set; then
25179   echo $ECHO_N "(cached) $ECHO_C" >&6
25180 else
25181   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25182 fi
25183 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25184 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25185
25186
25187
25188
25189         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25190 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25191 if test "${ol_cv_linux_threads+set}" = set; then
25192   echo $ECHO_N "(cached) $ECHO_C" >&6
25193 else
25194
25195                 if test $ol_cv_header_linux_threads = yes &&
25196                    test $ol_cv_sys_linux_threads = yes; then
25197                         ol_cv_linux_threads=yes
25198                 elif test $ol_cv_header_linux_threads = no &&
25199                      test $ol_cv_sys_linux_threads = no; then
25200                         ol_cv_linux_threads=no
25201                 else
25202                         ol_cv_linux_threads=error
25203                 fi
25204
25205 fi
25206 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25207 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25208
25209
25210                         if test $ol_cv_linux_threads = error; then
25211                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25212 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25213    { (exit 1); exit 1; }; };
25214                         fi
25215
25216                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25217 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25218 if test "${ol_cv_pthread_create_works+set}" = set; then
25219   echo $ECHO_N "(cached) $ECHO_C" >&6
25220 else
25221
25222                         if test "$cross_compiling" = yes; then
25223                                 ol_cv_pthread_create_works=yes
25224 else
25225   cat >conftest.$ac_ext <<_ACEOF
25226 /* confdefs.h.  */
25227 _ACEOF
25228 cat confdefs.h >>conftest.$ac_ext
25229 cat >>conftest.$ac_ext <<_ACEOF
25230 /* end confdefs.h.  */
25231
25232 /* pthread test headers */
25233 #include <pthread.h>
25234 #if HAVE_PTHREADS < 7
25235 #include <errno.h>
25236 #endif
25237 #ifndef NULL
25238 #define NULL (void*)0
25239 #endif
25240
25241 static void *task(p)
25242         void *p;
25243 {
25244         return (void *) (p == NULL);
25245 }
25246
25247
25248 int main(argc, argv)
25249         int argc;
25250         char **argv;
25251 {
25252
25253         /* pthread test function */
25254 #ifndef PTHREAD_CREATE_DETACHED
25255 #define PTHREAD_CREATE_DETACHED 1
25256 #endif
25257         pthread_t t;
25258         int status;
25259         int detach = PTHREAD_CREATE_DETACHED;
25260
25261 #if HAVE_PTHREADS > 4
25262         /* Final pthreads */
25263         pthread_attr_t attr;
25264
25265         status = pthread_attr_init(&attr);
25266         if( status ) return status;
25267
25268 #if HAVE_PTHREADS < 7
25269         status = pthread_attr_setdetachstate(&attr, &detach);
25270         if( status < 0 ) status = errno;
25271 #else
25272         status = pthread_attr_setdetachstate(&attr, detach);
25273 #endif
25274         if( status ) return status;
25275         status = pthread_create( &t, &attr, task, NULL );
25276 #if HAVE_PTHREADS < 7
25277         if( status < 0 ) status = errno;
25278 #endif
25279         if( status ) return status;
25280 #else
25281         /* Draft 4 pthreads */
25282         status = pthread_create( &t, pthread_attr_default, task, NULL );
25283         if( status ) return errno;
25284
25285         /* give thread a chance to complete */
25286         /* it should remain joinable and hence detachable */
25287         sleep( 1 );
25288
25289         status = pthread_detach( &t );
25290         if( status ) return errno;
25291 #endif
25292
25293 #ifdef HAVE_LINUX_THREADS
25294         pthread_kill_other_threads_np();
25295 #endif
25296
25297         return 0;
25298
25299 }
25300
25301 _ACEOF
25302 rm -f conftest$ac_exeext
25303 if { (ac_try="$ac_link"
25304 case "(($ac_try" in
25305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306   *) ac_try_echo=$ac_try;;
25307 esac
25308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309   (eval "$ac_link") 2>&5
25310   ac_status=$?
25311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25313   { (case "(($ac_try" in
25314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315   *) ac_try_echo=$ac_try;;
25316 esac
25317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25318   (eval "$ac_try") 2>&5
25319   ac_status=$?
25320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321   (exit $ac_status); }; }; then
25322   ol_cv_pthread_create_works=yes
25323 else
25324   echo "$as_me: program exited with status $ac_status" >&5
25325 echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328 ( exit $ac_status )
25329 ol_cv_pthread_create_works=no
25330 fi
25331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25332 fi
25333
25334
25335 fi
25336 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25337 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25338
25339                         if test $ol_cv_pthread_create_works = no ; then
25340                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25341 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25342    { (exit 1); exit 1; }; }
25343                         fi
25344
25345                         ol_replace_broken_yield=no
25346
25347                         if test $ol_replace_broken_yield = yes ; then
25348
25349 cat >>confdefs.h <<\_ACEOF
25350 #define REPLACE_BROKEN_YIELD 1
25351 _ACEOF
25352
25353                         fi
25354
25355                                                 if test $ol_with_yielding_select = auto ; then
25356                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25357 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25358 if test "${ol_cv_pthread_select_yields+set}" = set; then
25359   echo $ECHO_N "(cached) $ECHO_C" >&6
25360 else
25361
25362                                 if test "$cross_compiling" = yes; then
25363   ol_cv_pthread_select_yields=cross
25364 else
25365   cat >conftest.$ac_ext <<_ACEOF
25366 /* confdefs.h.  */
25367 _ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h.  */
25371
25372 #include <sys/types.h>
25373 #include <sys/time.h>
25374 #include <unistd.h>
25375 #include <pthread.h>
25376 #ifndef NULL
25377 #define NULL (void*) 0
25378 #endif
25379
25380 static int fildes[2];
25381
25382 static void *task(p)
25383         void *p;
25384 {
25385         int i;
25386         struct timeval tv;
25387
25388         fd_set rfds;
25389
25390         tv.tv_sec=10;
25391         tv.tv_usec=0;
25392
25393         FD_ZERO(&rfds);
25394         FD_SET(fildes[0], &rfds);
25395
25396         /* we're not interested in any fds */
25397         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25398
25399         if(i < 0) {
25400                 perror("select");
25401                 exit(10);
25402         }
25403
25404         exit(0); /* if we exit here, the select blocked the whole process */
25405 }
25406
25407 int main(argc, argv)
25408         int argc;
25409         char **argv;
25410 {
25411         pthread_t t;
25412
25413         /* create a pipe to select */
25414         if(pipe(&fildes[0])) {
25415                 perror("select");
25416                 exit(1);
25417         }
25418
25419 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25420         (void) pthread_setconcurrency(2);
25421 #else
25422 #ifdef HAVE_THR_SETCONCURRENCY
25423         /* Set Solaris LWP concurrency to 2 */
25424         thr_setconcurrency(2);
25425 #endif
25426 #endif
25427
25428 #if HAVE_PTHREADS < 6
25429         pthread_create(&t, pthread_attr_default, task, NULL);
25430 #else
25431         pthread_create(&t, NULL, task, NULL);
25432 #endif
25433
25434         /* make sure task runs first */
25435 #ifdef HAVE_THR_YIELD
25436         thr_yield();
25437 #elif defined( HAVE_SCHED_YIELD )
25438         sched_yield();
25439 #elif defined( HAVE_PTHREAD_YIELD )
25440         pthread_yield();
25441 #endif
25442
25443         exit(2);
25444 }
25445 _ACEOF
25446 rm -f conftest$ac_exeext
25447 if { (ac_try="$ac_link"
25448 case "(($ac_try" in
25449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450   *) ac_try_echo=$ac_try;;
25451 esac
25452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25453   (eval "$ac_link") 2>&5
25454   ac_status=$?
25455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25457   { (case "(($ac_try" in
25458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459   *) ac_try_echo=$ac_try;;
25460 esac
25461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25462   (eval "$ac_try") 2>&5
25463   ac_status=$?
25464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465   (exit $ac_status); }; }; then
25466   ol_cv_pthread_select_yields=no
25467 else
25468   echo "$as_me: program exited with status $ac_status" >&5
25469 echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25471
25472 ( exit $ac_status )
25473 ol_cv_pthread_select_yields=yes
25474 fi
25475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25476 fi
25477
25478
25479 fi
25480 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25481 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25482
25483                                 if test $ol_cv_pthread_select_yields = cross ; then
25484                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25485 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25486    { (exit 1); exit 1; }; }
25487                                 fi
25488
25489                                 if test $ol_cv_pthread_select_yields = yes ; then
25490                                         ol_with_yielding_select=yes
25491                                 fi
25492                         fi
25493
25494                                                 CPPFLAGS="$save_CPPFLAGS"
25495                         LIBS="$save_LIBS"
25496                 else
25497                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25498 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25499    { (exit 1); exit 1; }; }
25500                 fi
25501         fi
25502
25503         if test $ol_with_threads = posix ; then
25504                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25505 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25506    { (exit 1); exit 1; }; }
25507         fi
25508         ;;
25509 esac
25510
25511 case $ol_with_threads in auto | yes | mach)
25512
25513
25514
25515 for ac_header in mach/cthreads.h cthreads.h
25516 do
25517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25519   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25522   echo $ECHO_N "(cached) $ECHO_C" >&6
25523 fi
25524 ac_res=`eval echo '${'$as_ac_Header'}'`
25525                { echo "$as_me:$LINENO: result: $ac_res" >&5
25526 echo "${ECHO_T}$ac_res" >&6; }
25527 else
25528   # Is the header compilable?
25529 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25531 cat >conftest.$ac_ext <<_ACEOF
25532 /* confdefs.h.  */
25533 _ACEOF
25534 cat confdefs.h >>conftest.$ac_ext
25535 cat >>conftest.$ac_ext <<_ACEOF
25536 /* end confdefs.h.  */
25537 $ac_includes_default
25538 #include <$ac_header>
25539 _ACEOF
25540 rm -f conftest.$ac_objext
25541 if { (ac_try="$ac_compile"
25542 case "(($ac_try" in
25543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25544   *) ac_try_echo=$ac_try;;
25545 esac
25546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25547   (eval "$ac_compile") 2>conftest.er1
25548   ac_status=$?
25549   grep -v '^ *+' conftest.er1 >conftest.err
25550   rm -f conftest.er1
25551   cat conftest.err >&5
25552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553   (exit $ac_status); } && {
25554          test -z "$ac_c_werror_flag" ||
25555          test ! -s conftest.err
25556        } && test -s conftest.$ac_objext; then
25557   ac_header_compiler=yes
25558 else
25559   echo "$as_me: failed program was:" >&5
25560 sed 's/^/| /' conftest.$ac_ext >&5
25561
25562         ac_header_compiler=no
25563 fi
25564
25565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25567 echo "${ECHO_T}$ac_header_compiler" >&6; }
25568
25569 # Is the header present?
25570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25572 cat >conftest.$ac_ext <<_ACEOF
25573 /* confdefs.h.  */
25574 _ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h.  */
25578 #include <$ac_header>
25579 _ACEOF
25580 if { (ac_try="$ac_cpp conftest.$ac_ext"
25581 case "(($ac_try" in
25582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583   *) ac_try_echo=$ac_try;;
25584 esac
25585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25587   ac_status=$?
25588   grep -v '^ *+' conftest.er1 >conftest.err
25589   rm -f conftest.er1
25590   cat conftest.err >&5
25591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592   (exit $ac_status); } >/dev/null && {
25593          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25594          test ! -s conftest.err
25595        }; then
25596   ac_header_preproc=yes
25597 else
25598   echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25600
25601   ac_header_preproc=no
25602 fi
25603
25604 rm -f conftest.err conftest.$ac_ext
25605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25606 echo "${ECHO_T}$ac_header_preproc" >&6; }
25607
25608 # So?  What about this header?
25609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25610   yes:no: )
25611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25615     ac_header_preproc=yes
25616     ;;
25617   no:yes:* )
25618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25620     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25621 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25622     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25624     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25625 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25628     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25630     ( cat <<\_ASBOX
25631 ## --------------------------------------------- ##
25632 ## Report this to <http://www.openldap.org/its/> ##
25633 ## --------------------------------------------- ##
25634 _ASBOX
25635      ) | sed "s/^/$as_me: WARNING:     /" >&2
25636     ;;
25637 esac
25638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25641   echo $ECHO_N "(cached) $ECHO_C" >&6
25642 else
25643   eval "$as_ac_Header=\$ac_header_preproc"
25644 fi
25645 ac_res=`eval echo '${'$as_ac_Header'}'`
25646                { echo "$as_me:$LINENO: result: $ac_res" >&5
25647 echo "${ECHO_T}$ac_res" >&6; }
25648
25649 fi
25650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25651   cat >>confdefs.h <<_ACEOF
25652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25653 _ACEOF
25654
25655 fi
25656
25657 done
25658
25659         if test $ac_cv_header_mach_cthreads_h = yes ; then
25660                 ol_with_threads=found
25661
25662                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25663 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25664 if test "${ac_cv_func_cthread_fork+set}" = set; then
25665   echo $ECHO_N "(cached) $ECHO_C" >&6
25666 else
25667   cat >conftest.$ac_ext <<_ACEOF
25668 /* confdefs.h.  */
25669 _ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h.  */
25673 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25675 #define cthread_fork innocuous_cthread_fork
25676
25677 /* System header to define __stub macros and hopefully few prototypes,
25678     which can conflict with char cthread_fork (); below.
25679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25680     <limits.h> exists even on freestanding compilers.  */
25681
25682 #ifdef __STDC__
25683 # include <limits.h>
25684 #else
25685 # include <assert.h>
25686 #endif
25687
25688 #undef cthread_fork
25689
25690 /* Override any GCC internal prototype to avoid an error.
25691    Use char because int might match the return type of a GCC
25692    builtin and then its argument prototype would still apply.  */
25693 #ifdef __cplusplus
25694 extern "C"
25695 #endif
25696 char cthread_fork ();
25697 /* The GNU C library defines this for functions which it implements
25698     to always fail with ENOSYS.  Some functions are actually named
25699     something starting with __ and the normal name is an alias.  */
25700 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25701 choke me
25702 #endif
25703
25704 int
25705 main ()
25706 {
25707 return cthread_fork ();
25708   ;
25709   return 0;
25710 }
25711 _ACEOF
25712 rm -f conftest.$ac_objext conftest$ac_exeext
25713 if { (ac_try="$ac_link"
25714 case "(($ac_try" in
25715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25716   *) ac_try_echo=$ac_try;;
25717 esac
25718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25719   (eval "$ac_link") 2>conftest.er1
25720   ac_status=$?
25721   grep -v '^ *+' conftest.er1 >conftest.err
25722   rm -f conftest.er1
25723   cat conftest.err >&5
25724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725   (exit $ac_status); } && {
25726          test -z "$ac_c_werror_flag" ||
25727          test ! -s conftest.err
25728        } && test -s conftest$ac_exeext &&
25729        $as_test_x conftest$ac_exeext; then
25730   ac_cv_func_cthread_fork=yes
25731 else
25732   echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25734
25735         ac_cv_func_cthread_fork=no
25736 fi
25737
25738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25739       conftest$ac_exeext conftest.$ac_ext
25740 fi
25741 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25742 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25743 if test $ac_cv_func_cthread_fork = yes; then
25744   ol_link_threads=yes
25745 fi
25746
25747
25748                 if test $ol_link_threads = no ; then
25749                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25750 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25751 if test "${ol_cv_cthread_all_load+set}" = set; then
25752   echo $ECHO_N "(cached) $ECHO_C" >&6
25753 else
25754
25755                                                                 save_LIBS="$LIBS"
25756                                 LIBS="-all_load $LIBS"
25757                                 cat >conftest.$ac_ext <<_ACEOF
25758 /* confdefs.h.  */
25759 _ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h.  */
25763 #include <mach/cthreads.h>
25764 int
25765 main ()
25766 {
25767
25768                                         cthread_fork((void *)0, (void *)0);
25769
25770   ;
25771   return 0;
25772 }
25773 _ACEOF
25774 rm -f conftest.$ac_objext conftest$ac_exeext
25775 if { (ac_try="$ac_link"
25776 case "(($ac_try" in
25777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25778   *) ac_try_echo=$ac_try;;
25779 esac
25780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25781   (eval "$ac_link") 2>conftest.er1
25782   ac_status=$?
25783   grep -v '^ *+' conftest.er1 >conftest.err
25784   rm -f conftest.er1
25785   cat conftest.err >&5
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); } && {
25788          test -z "$ac_c_werror_flag" ||
25789          test ! -s conftest.err
25790        } && test -s conftest$ac_exeext &&
25791        $as_test_x conftest$ac_exeext; then
25792   ol_cv_cthread_all_load=yes
25793 else
25794   echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25796
25797         ol_cv_cthread_all_load=no
25798 fi
25799
25800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25801       conftest$ac_exeext conftest.$ac_ext
25802                                                                 LIBS="$save_LIBS"
25803
25804 fi
25805 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25806 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25807
25808                         if test $ol_cv_cthread_all_load = yes ; then
25809                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25810                                 ol_link_threads=mach
25811                                 ol_with_threads=found
25812                         fi
25813                 fi
25814
25815         elif test $ac_cv_header_cthreads_h = yes ; then
25816
25817                 ol_with_threads=found
25818
25819                                 save_LIBS="$LIBS"
25820                 LIBS="$LIBS -lthreads"
25821                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25822 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25823 if test "${ac_cv_func_cthread_fork+set}" = set; then
25824   echo $ECHO_N "(cached) $ECHO_C" >&6
25825 else
25826   cat >conftest.$ac_ext <<_ACEOF
25827 /* confdefs.h.  */
25828 _ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h.  */
25832 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25834 #define cthread_fork innocuous_cthread_fork
25835
25836 /* System header to define __stub macros and hopefully few prototypes,
25837     which can conflict with char cthread_fork (); below.
25838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25839     <limits.h> exists even on freestanding compilers.  */
25840
25841 #ifdef __STDC__
25842 # include <limits.h>
25843 #else
25844 # include <assert.h>
25845 #endif
25846
25847 #undef cthread_fork
25848
25849 /* Override any GCC internal prototype to avoid an error.
25850    Use char because int might match the return type of a GCC
25851    builtin and then its argument prototype would still apply.  */
25852 #ifdef __cplusplus
25853 extern "C"
25854 #endif
25855 char cthread_fork ();
25856 /* The GNU C library defines this for functions which it implements
25857     to always fail with ENOSYS.  Some functions are actually named
25858     something starting with __ and the normal name is an alias.  */
25859 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25860 choke me
25861 #endif
25862
25863 int
25864 main ()
25865 {
25866 return cthread_fork ();
25867   ;
25868   return 0;
25869 }
25870 _ACEOF
25871 rm -f conftest.$ac_objext conftest$ac_exeext
25872 if { (ac_try="$ac_link"
25873 case "(($ac_try" in
25874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25875   *) ac_try_echo=$ac_try;;
25876 esac
25877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25878   (eval "$ac_link") 2>conftest.er1
25879   ac_status=$?
25880   grep -v '^ *+' conftest.er1 >conftest.err
25881   rm -f conftest.er1
25882   cat conftest.err >&5
25883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884   (exit $ac_status); } && {
25885          test -z "$ac_c_werror_flag" ||
25886          test ! -s conftest.err
25887        } && test -s conftest$ac_exeext &&
25888        $as_test_x conftest$ac_exeext; then
25889   ac_cv_func_cthread_fork=yes
25890 else
25891   echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25893
25894         ac_cv_func_cthread_fork=no
25895 fi
25896
25897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25898       conftest$ac_exeext conftest.$ac_ext
25899 fi
25900 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25901 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25902 if test $ac_cv_func_cthread_fork = yes; then
25903   ol_link_threads=yes
25904 fi
25905
25906                 LIBS="$save_LIBS"
25907
25908                 if test $ol_link_threads = yes ; then
25909                         LTHREAD_LIBS="-lthreads"
25910                         ol_link_threads=mach
25911                         ol_with_threads=found
25912                 else
25913                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25914 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25915    { (exit 1); exit 1; }; }
25916                 fi
25917
25918         elif test $ol_with_threads = mach ; then
25919                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25920 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25921    { (exit 1); exit 1; }; }
25922         fi
25923
25924         if test $ol_link_threads = mach ; then
25925
25926 cat >>confdefs.h <<\_ACEOF
25927 #define HAVE_MACH_CTHREADS 1
25928 _ACEOF
25929
25930         elif test $ol_with_threads = found ; then
25931                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25932 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25933    { (exit 1); exit 1; }; }
25934         fi
25935         ;;
25936 esac
25937
25938 case $ol_with_threads in auto | yes | pth)
25939
25940
25941 for ac_header in pth.h
25942 do
25943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25945   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25948   echo $ECHO_N "(cached) $ECHO_C" >&6
25949 fi
25950 ac_res=`eval echo '${'$as_ac_Header'}'`
25951                { echo "$as_me:$LINENO: result: $ac_res" >&5
25952 echo "${ECHO_T}$ac_res" >&6; }
25953 else
25954   # Is the header compilable?
25955 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25957 cat >conftest.$ac_ext <<_ACEOF
25958 /* confdefs.h.  */
25959 _ACEOF
25960 cat confdefs.h >>conftest.$ac_ext
25961 cat >>conftest.$ac_ext <<_ACEOF
25962 /* end confdefs.h.  */
25963 $ac_includes_default
25964 #include <$ac_header>
25965 _ACEOF
25966 rm -f conftest.$ac_objext
25967 if { (ac_try="$ac_compile"
25968 case "(($ac_try" in
25969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970   *) ac_try_echo=$ac_try;;
25971 esac
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973   (eval "$ac_compile") 2>conftest.er1
25974   ac_status=$?
25975   grep -v '^ *+' conftest.er1 >conftest.err
25976   rm -f conftest.er1
25977   cat conftest.err >&5
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); } && {
25980          test -z "$ac_c_werror_flag" ||
25981          test ! -s conftest.err
25982        } && test -s conftest.$ac_objext; then
25983   ac_header_compiler=yes
25984 else
25985   echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25987
25988         ac_header_compiler=no
25989 fi
25990
25991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25993 echo "${ECHO_T}$ac_header_compiler" >&6; }
25994
25995 # Is the header present?
25996 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25998 cat >conftest.$ac_ext <<_ACEOF
25999 /* confdefs.h.  */
26000 _ACEOF
26001 cat confdefs.h >>conftest.$ac_ext
26002 cat >>conftest.$ac_ext <<_ACEOF
26003 /* end confdefs.h.  */
26004 #include <$ac_header>
26005 _ACEOF
26006 if { (ac_try="$ac_cpp conftest.$ac_ext"
26007 case "(($ac_try" in
26008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26009   *) ac_try_echo=$ac_try;;
26010 esac
26011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26012   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26013   ac_status=$?
26014   grep -v '^ *+' conftest.er1 >conftest.err
26015   rm -f conftest.er1
26016   cat conftest.err >&5
26017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018   (exit $ac_status); } >/dev/null && {
26019          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26020          test ! -s conftest.err
26021        }; then
26022   ac_header_preproc=yes
26023 else
26024   echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26026
26027   ac_header_preproc=no
26028 fi
26029
26030 rm -f conftest.err conftest.$ac_ext
26031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26032 echo "${ECHO_T}$ac_header_preproc" >&6; }
26033
26034 # So?  What about this header?
26035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26036   yes:no: )
26037     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26041     ac_header_preproc=yes
26042     ;;
26043   no:yes:* )
26044     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26046     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26047 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26048     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26050     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26051 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26054     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26056     ( cat <<\_ASBOX
26057 ## --------------------------------------------- ##
26058 ## Report this to <http://www.openldap.org/its/> ##
26059 ## --------------------------------------------- ##
26060 _ASBOX
26061      ) | sed "s/^/$as_me: WARNING:     /" >&2
26062     ;;
26063 esac
26064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26067   echo $ECHO_N "(cached) $ECHO_C" >&6
26068 else
26069   eval "$as_ac_Header=\$ac_header_preproc"
26070 fi
26071 ac_res=`eval echo '${'$as_ac_Header'}'`
26072                { echo "$as_me:$LINENO: result: $ac_res" >&5
26073 echo "${ECHO_T}$ac_res" >&6; }
26074
26075 fi
26076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26077   cat >>confdefs.h <<_ACEOF
26078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26079 _ACEOF
26080
26081 fi
26082
26083 done
26084
26085
26086         if test $ac_cv_header_pth_h = yes ; then
26087                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26088 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26089 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26090   echo $ECHO_N "(cached) $ECHO_C" >&6
26091 else
26092   ac_check_lib_save_LIBS=$LIBS
26093 LIBS="-lpth  $LIBS"
26094 cat >conftest.$ac_ext <<_ACEOF
26095 /* confdefs.h.  */
26096 _ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h.  */
26100
26101 /* Override any GCC internal prototype to avoid an error.
26102    Use char because int might match the return type of a GCC
26103    builtin and then its argument prototype would still apply.  */
26104 #ifdef __cplusplus
26105 extern "C"
26106 #endif
26107 char pth_version ();
26108 int
26109 main ()
26110 {
26111 return pth_version ();
26112   ;
26113   return 0;
26114 }
26115 _ACEOF
26116 rm -f conftest.$ac_objext conftest$ac_exeext
26117 if { (ac_try="$ac_link"
26118 case "(($ac_try" in
26119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26120   *) ac_try_echo=$ac_try;;
26121 esac
26122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26123   (eval "$ac_link") 2>conftest.er1
26124   ac_status=$?
26125   grep -v '^ *+' conftest.er1 >conftest.err
26126   rm -f conftest.er1
26127   cat conftest.err >&5
26128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129   (exit $ac_status); } && {
26130          test -z "$ac_c_werror_flag" ||
26131          test ! -s conftest.err
26132        } && test -s conftest$ac_exeext &&
26133        $as_test_x conftest$ac_exeext; then
26134   ac_cv_lib_pth_pth_version=yes
26135 else
26136   echo "$as_me: failed program was:" >&5
26137 sed 's/^/| /' conftest.$ac_ext >&5
26138
26139         ac_cv_lib_pth_pth_version=no
26140 fi
26141
26142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26143       conftest$ac_exeext conftest.$ac_ext
26144 LIBS=$ac_check_lib_save_LIBS
26145 fi
26146 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26147 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26148 if test $ac_cv_lib_pth_pth_version = yes; then
26149   have_pth=yes
26150 else
26151   have_pth=no
26152 fi
26153
26154
26155                 if test $have_pth = yes ; then
26156
26157 cat >>confdefs.h <<\_ACEOF
26158 #define HAVE_GNU_PTH 1
26159 _ACEOF
26160
26161                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26162                         ol_link_threads=pth
26163                         ol_with_threads=found
26164
26165                         if test $ol_with_yielding_select = auto ; then
26166                                 ol_with_yielding_select=yes
26167                         fi
26168                 fi
26169         fi
26170         ;;
26171 esac
26172
26173 case $ol_with_threads in auto | yes | lwp)
26174
26175
26176
26177 for ac_header in thread.h synch.h
26178 do
26179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26181   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26184   echo $ECHO_N "(cached) $ECHO_C" >&6
26185 fi
26186 ac_res=`eval echo '${'$as_ac_Header'}'`
26187                { echo "$as_me:$LINENO: result: $ac_res" >&5
26188 echo "${ECHO_T}$ac_res" >&6; }
26189 else
26190   # Is the header compilable?
26191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26193 cat >conftest.$ac_ext <<_ACEOF
26194 /* confdefs.h.  */
26195 _ACEOF
26196 cat confdefs.h >>conftest.$ac_ext
26197 cat >>conftest.$ac_ext <<_ACEOF
26198 /* end confdefs.h.  */
26199 $ac_includes_default
26200 #include <$ac_header>
26201 _ACEOF
26202 rm -f conftest.$ac_objext
26203 if { (ac_try="$ac_compile"
26204 case "(($ac_try" in
26205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206   *) ac_try_echo=$ac_try;;
26207 esac
26208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209   (eval "$ac_compile") 2>conftest.er1
26210   ac_status=$?
26211   grep -v '^ *+' conftest.er1 >conftest.err
26212   rm -f conftest.er1
26213   cat conftest.err >&5
26214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215   (exit $ac_status); } && {
26216          test -z "$ac_c_werror_flag" ||
26217          test ! -s conftest.err
26218        } && test -s conftest.$ac_objext; then
26219   ac_header_compiler=yes
26220 else
26221   echo "$as_me: failed program was:" >&5
26222 sed 's/^/| /' conftest.$ac_ext >&5
26223
26224         ac_header_compiler=no
26225 fi
26226
26227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26229 echo "${ECHO_T}$ac_header_compiler" >&6; }
26230
26231 # Is the header present?
26232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26234 cat >conftest.$ac_ext <<_ACEOF
26235 /* confdefs.h.  */
26236 _ACEOF
26237 cat confdefs.h >>conftest.$ac_ext
26238 cat >>conftest.$ac_ext <<_ACEOF
26239 /* end confdefs.h.  */
26240 #include <$ac_header>
26241 _ACEOF
26242 if { (ac_try="$ac_cpp conftest.$ac_ext"
26243 case "(($ac_try" in
26244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26245   *) ac_try_echo=$ac_try;;
26246 esac
26247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26249   ac_status=$?
26250   grep -v '^ *+' conftest.er1 >conftest.err
26251   rm -f conftest.er1
26252   cat conftest.err >&5
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); } >/dev/null && {
26255          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26256          test ! -s conftest.err
26257        }; then
26258   ac_header_preproc=yes
26259 else
26260   echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26262
26263   ac_header_preproc=no
26264 fi
26265
26266 rm -f conftest.err conftest.$ac_ext
26267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26268 echo "${ECHO_T}$ac_header_preproc" >&6; }
26269
26270 # So?  What about this header?
26271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26272   yes:no: )
26273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26277     ac_header_preproc=yes
26278     ;;
26279   no:yes:* )
26280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26282     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26283 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26284     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26286     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26287 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26290     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26292     ( cat <<\_ASBOX
26293 ## --------------------------------------------- ##
26294 ## Report this to <http://www.openldap.org/its/> ##
26295 ## --------------------------------------------- ##
26296 _ASBOX
26297      ) | sed "s/^/$as_me: WARNING:     /" >&2
26298     ;;
26299 esac
26300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26303   echo $ECHO_N "(cached) $ECHO_C" >&6
26304 else
26305   eval "$as_ac_Header=\$ac_header_preproc"
26306 fi
26307 ac_res=`eval echo '${'$as_ac_Header'}'`
26308                { echo "$as_me:$LINENO: result: $ac_res" >&5
26309 echo "${ECHO_T}$ac_res" >&6; }
26310
26311 fi
26312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26313   cat >>confdefs.h <<_ACEOF
26314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26315 _ACEOF
26316
26317 fi
26318
26319 done
26320
26321         if test $ac_cv_header_thread_h = yes &&
26322            test $ac_cv_header_synch_h = yes ; then
26323                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26324 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26325 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26326   echo $ECHO_N "(cached) $ECHO_C" >&6
26327 else
26328   ac_check_lib_save_LIBS=$LIBS
26329 LIBS="-lthread  $LIBS"
26330 cat >conftest.$ac_ext <<_ACEOF
26331 /* confdefs.h.  */
26332 _ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h.  */
26336
26337 /* Override any GCC internal prototype to avoid an error.
26338    Use char because int might match the return type of a GCC
26339    builtin and then its argument prototype would still apply.  */
26340 #ifdef __cplusplus
26341 extern "C"
26342 #endif
26343 char thr_create ();
26344 int
26345 main ()
26346 {
26347 return thr_create ();
26348   ;
26349   return 0;
26350 }
26351 _ACEOF
26352 rm -f conftest.$ac_objext conftest$ac_exeext
26353 if { (ac_try="$ac_link"
26354 case "(($ac_try" in
26355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26356   *) ac_try_echo=$ac_try;;
26357 esac
26358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26359   (eval "$ac_link") 2>conftest.er1
26360   ac_status=$?
26361   grep -v '^ *+' conftest.er1 >conftest.err
26362   rm -f conftest.er1
26363   cat conftest.err >&5
26364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365   (exit $ac_status); } && {
26366          test -z "$ac_c_werror_flag" ||
26367          test ! -s conftest.err
26368        } && test -s conftest$ac_exeext &&
26369        $as_test_x conftest$ac_exeext; then
26370   ac_cv_lib_thread_thr_create=yes
26371 else
26372   echo "$as_me: failed program was:" >&5
26373 sed 's/^/| /' conftest.$ac_ext >&5
26374
26375         ac_cv_lib_thread_thr_create=no
26376 fi
26377
26378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26379       conftest$ac_exeext conftest.$ac_ext
26380 LIBS=$ac_check_lib_save_LIBS
26381 fi
26382 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26383 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26384 if test $ac_cv_lib_thread_thr_create = yes; then
26385   have_thr=yes
26386 else
26387   have_thr=no
26388 fi
26389
26390
26391                 if test $have_thr = yes ; then
26392
26393 cat >>confdefs.h <<\_ACEOF
26394 #define HAVE_THR 1
26395 _ACEOF
26396
26397                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26398                         ol_link_threads=thr
26399
26400                         if test $ol_with_yielding_select = auto ; then
26401                                 ol_with_yielding_select=yes
26402                         fi
26403
26404
26405
26406 for ac_func in \
26407                                 thr_setconcurrency \
26408                                 thr_getconcurrency \
26409
26410 do
26411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26415   echo $ECHO_N "(cached) $ECHO_C" >&6
26416 else
26417   cat >conftest.$ac_ext <<_ACEOF
26418 /* confdefs.h.  */
26419 _ACEOF
26420 cat confdefs.h >>conftest.$ac_ext
26421 cat >>conftest.$ac_ext <<_ACEOF
26422 /* end confdefs.h.  */
26423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26425 #define $ac_func innocuous_$ac_func
26426
26427 /* System header to define __stub macros and hopefully few prototypes,
26428     which can conflict with char $ac_func (); below.
26429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26430     <limits.h> exists even on freestanding compilers.  */
26431
26432 #ifdef __STDC__
26433 # include <limits.h>
26434 #else
26435 # include <assert.h>
26436 #endif
26437
26438 #undef $ac_func
26439
26440 /* Override any GCC internal prototype to avoid an error.
26441    Use char because int might match the return type of a GCC
26442    builtin and then its argument prototype would still apply.  */
26443 #ifdef __cplusplus
26444 extern "C"
26445 #endif
26446 char $ac_func ();
26447 /* The GNU C library defines this for functions which it implements
26448     to always fail with ENOSYS.  Some functions are actually named
26449     something starting with __ and the normal name is an alias.  */
26450 #if defined __stub_$ac_func || defined __stub___$ac_func
26451 choke me
26452 #endif
26453
26454 int
26455 main ()
26456 {
26457 return $ac_func ();
26458   ;
26459   return 0;
26460 }
26461 _ACEOF
26462 rm -f conftest.$ac_objext conftest$ac_exeext
26463 if { (ac_try="$ac_link"
26464 case "(($ac_try" in
26465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26466   *) ac_try_echo=$ac_try;;
26467 esac
26468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26469   (eval "$ac_link") 2>conftest.er1
26470   ac_status=$?
26471   grep -v '^ *+' conftest.er1 >conftest.err
26472   rm -f conftest.er1
26473   cat conftest.err >&5
26474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475   (exit $ac_status); } && {
26476          test -z "$ac_c_werror_flag" ||
26477          test ! -s conftest.err
26478        } && test -s conftest$ac_exeext &&
26479        $as_test_x conftest$ac_exeext; then
26480   eval "$as_ac_var=yes"
26481 else
26482   echo "$as_me: failed program was:" >&5
26483 sed 's/^/| /' conftest.$ac_ext >&5
26484
26485         eval "$as_ac_var=no"
26486 fi
26487
26488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26489       conftest$ac_exeext conftest.$ac_ext
26490 fi
26491 ac_res=`eval echo '${'$as_ac_var'}'`
26492                { echo "$as_me:$LINENO: result: $ac_res" >&5
26493 echo "${ECHO_T}$ac_res" >&6; }
26494 if test `eval echo '${'$as_ac_var'}'` = yes; then
26495   cat >>confdefs.h <<_ACEOF
26496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26497 _ACEOF
26498
26499 fi
26500 done
26501
26502                 fi
26503         fi
26504
26505
26506 for ac_header in lwp/lwp.h
26507 do
26508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26510   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26513   echo $ECHO_N "(cached) $ECHO_C" >&6
26514 fi
26515 ac_res=`eval echo '${'$as_ac_Header'}'`
26516                { echo "$as_me:$LINENO: result: $ac_res" >&5
26517 echo "${ECHO_T}$ac_res" >&6; }
26518 else
26519   # Is the header compilable?
26520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26522 cat >conftest.$ac_ext <<_ACEOF
26523 /* confdefs.h.  */
26524 _ACEOF
26525 cat confdefs.h >>conftest.$ac_ext
26526 cat >>conftest.$ac_ext <<_ACEOF
26527 /* end confdefs.h.  */
26528 $ac_includes_default
26529 #include <$ac_header>
26530 _ACEOF
26531 rm -f conftest.$ac_objext
26532 if { (ac_try="$ac_compile"
26533 case "(($ac_try" in
26534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26535   *) ac_try_echo=$ac_try;;
26536 esac
26537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26538   (eval "$ac_compile") 2>conftest.er1
26539   ac_status=$?
26540   grep -v '^ *+' conftest.er1 >conftest.err
26541   rm -f conftest.er1
26542   cat conftest.err >&5
26543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544   (exit $ac_status); } && {
26545          test -z "$ac_c_werror_flag" ||
26546          test ! -s conftest.err
26547        } && test -s conftest.$ac_objext; then
26548   ac_header_compiler=yes
26549 else
26550   echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26552
26553         ac_header_compiler=no
26554 fi
26555
26556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26558 echo "${ECHO_T}$ac_header_compiler" >&6; }
26559
26560 # Is the header present?
26561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26563 cat >conftest.$ac_ext <<_ACEOF
26564 /* confdefs.h.  */
26565 _ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h.  */
26569 #include <$ac_header>
26570 _ACEOF
26571 if { (ac_try="$ac_cpp conftest.$ac_ext"
26572 case "(($ac_try" in
26573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26574   *) ac_try_echo=$ac_try;;
26575 esac
26576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26578   ac_status=$?
26579   grep -v '^ *+' conftest.er1 >conftest.err
26580   rm -f conftest.er1
26581   cat conftest.err >&5
26582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583   (exit $ac_status); } >/dev/null && {
26584          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26585          test ! -s conftest.err
26586        }; then
26587   ac_header_preproc=yes
26588 else
26589   echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26591
26592   ac_header_preproc=no
26593 fi
26594
26595 rm -f conftest.err conftest.$ac_ext
26596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26597 echo "${ECHO_T}$ac_header_preproc" >&6; }
26598
26599 # So?  What about this header?
26600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26601   yes:no: )
26602     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26606     ac_header_preproc=yes
26607     ;;
26608   no:yes:* )
26609     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26611     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26612 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26613     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26615     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26616 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26619     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26621     ( cat <<\_ASBOX
26622 ## --------------------------------------------- ##
26623 ## Report this to <http://www.openldap.org/its/> ##
26624 ## --------------------------------------------- ##
26625 _ASBOX
26626      ) | sed "s/^/$as_me: WARNING:     /" >&2
26627     ;;
26628 esac
26629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26632   echo $ECHO_N "(cached) $ECHO_C" >&6
26633 else
26634   eval "$as_ac_Header=\$ac_header_preproc"
26635 fi
26636 ac_res=`eval echo '${'$as_ac_Header'}'`
26637                { echo "$as_me:$LINENO: result: $ac_res" >&5
26638 echo "${ECHO_T}$ac_res" >&6; }
26639
26640 fi
26641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26642   cat >>confdefs.h <<_ACEOF
26643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26644 _ACEOF
26645
26646 fi
26647
26648 done
26649
26650         if test $ac_cv_header_lwp_lwp_h = yes ; then
26651                 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26652 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26653 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26654   echo $ECHO_N "(cached) $ECHO_C" >&6
26655 else
26656   ac_check_lib_save_LIBS=$LIBS
26657 LIBS="-llwp  $LIBS"
26658 cat >conftest.$ac_ext <<_ACEOF
26659 /* confdefs.h.  */
26660 _ACEOF
26661 cat confdefs.h >>conftest.$ac_ext
26662 cat >>conftest.$ac_ext <<_ACEOF
26663 /* end confdefs.h.  */
26664
26665 /* Override any GCC internal prototype to avoid an error.
26666    Use char because int might match the return type of a GCC
26667    builtin and then its argument prototype would still apply.  */
26668 #ifdef __cplusplus
26669 extern "C"
26670 #endif
26671 char lwp_create ();
26672 int
26673 main ()
26674 {
26675 return lwp_create ();
26676   ;
26677   return 0;
26678 }
26679 _ACEOF
26680 rm -f conftest.$ac_objext conftest$ac_exeext
26681 if { (ac_try="$ac_link"
26682 case "(($ac_try" in
26683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26684   *) ac_try_echo=$ac_try;;
26685 esac
26686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26687   (eval "$ac_link") 2>conftest.er1
26688   ac_status=$?
26689   grep -v '^ *+' conftest.er1 >conftest.err
26690   rm -f conftest.er1
26691   cat conftest.err >&5
26692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693   (exit $ac_status); } && {
26694          test -z "$ac_c_werror_flag" ||
26695          test ! -s conftest.err
26696        } && test -s conftest$ac_exeext &&
26697        $as_test_x conftest$ac_exeext; then
26698   ac_cv_lib_lwp_lwp_create=yes
26699 else
26700   echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26702
26703         ac_cv_lib_lwp_lwp_create=no
26704 fi
26705
26706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26707       conftest$ac_exeext conftest.$ac_ext
26708 LIBS=$ac_check_lib_save_LIBS
26709 fi
26710 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26711 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26712 if test $ac_cv_lib_lwp_lwp_create = yes; then
26713   have_lwp=yes
26714 else
26715   have_lwp=no
26716 fi
26717
26718
26719                 if test $have_lwp = yes ; then
26720
26721 cat >>confdefs.h <<\_ACEOF
26722 #define HAVE_LWP 1
26723 _ACEOF
26724
26725                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26726                         ol_link_threads=lwp
26727
26728                         if test $ol_with_yielding_select = auto ; then
26729                                 ol_with_yielding_select=no
26730                         fi
26731                 fi
26732         fi
26733         ;;
26734 esac
26735
26736 if test $ol_with_yielding_select = yes ; then
26737
26738 cat >>confdefs.h <<\_ACEOF
26739 #define HAVE_YIELDING_SELECT 1
26740 _ACEOF
26741
26742 fi
26743
26744 if test $ol_with_threads = manual ; then
26745                 ol_link_threads=yes
26746
26747         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26748 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26749
26750
26751
26752 for ac_header in pthread.h sched.h
26753 do
26754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26756   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26759   echo $ECHO_N "(cached) $ECHO_C" >&6
26760 fi
26761 ac_res=`eval echo '${'$as_ac_Header'}'`
26762                { echo "$as_me:$LINENO: result: $ac_res" >&5
26763 echo "${ECHO_T}$ac_res" >&6; }
26764 else
26765   # Is the header compilable?
26766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26768 cat >conftest.$ac_ext <<_ACEOF
26769 /* confdefs.h.  */
26770 _ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h.  */
26774 $ac_includes_default
26775 #include <$ac_header>
26776 _ACEOF
26777 rm -f conftest.$ac_objext
26778 if { (ac_try="$ac_compile"
26779 case "(($ac_try" in
26780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26781   *) ac_try_echo=$ac_try;;
26782 esac
26783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26784   (eval "$ac_compile") 2>conftest.er1
26785   ac_status=$?
26786   grep -v '^ *+' conftest.er1 >conftest.err
26787   rm -f conftest.er1
26788   cat conftest.err >&5
26789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790   (exit $ac_status); } && {
26791          test -z "$ac_c_werror_flag" ||
26792          test ! -s conftest.err
26793        } && test -s conftest.$ac_objext; then
26794   ac_header_compiler=yes
26795 else
26796   echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26798
26799         ac_header_compiler=no
26800 fi
26801
26802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26804 echo "${ECHO_T}$ac_header_compiler" >&6; }
26805
26806 # Is the header present?
26807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26809 cat >conftest.$ac_ext <<_ACEOF
26810 /* confdefs.h.  */
26811 _ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h.  */
26815 #include <$ac_header>
26816 _ACEOF
26817 if { (ac_try="$ac_cpp conftest.$ac_ext"
26818 case "(($ac_try" in
26819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820   *) ac_try_echo=$ac_try;;
26821 esac
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26824   ac_status=$?
26825   grep -v '^ *+' conftest.er1 >conftest.err
26826   rm -f conftest.er1
26827   cat conftest.err >&5
26828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829   (exit $ac_status); } >/dev/null && {
26830          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26831          test ! -s conftest.err
26832        }; then
26833   ac_header_preproc=yes
26834 else
26835   echo "$as_me: failed program was:" >&5
26836 sed 's/^/| /' conftest.$ac_ext >&5
26837
26838   ac_header_preproc=no
26839 fi
26840
26841 rm -f conftest.err conftest.$ac_ext
26842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26843 echo "${ECHO_T}$ac_header_preproc" >&6; }
26844
26845 # So?  What about this header?
26846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26847   yes:no: )
26848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26852     ac_header_preproc=yes
26853     ;;
26854   no:yes:* )
26855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26867     ( cat <<\_ASBOX
26868 ## --------------------------------------------- ##
26869 ## Report this to <http://www.openldap.org/its/> ##
26870 ## --------------------------------------------- ##
26871 _ASBOX
26872      ) | sed "s/^/$as_me: WARNING:     /" >&2
26873     ;;
26874 esac
26875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26878   echo $ECHO_N "(cached) $ECHO_C" >&6
26879 else
26880   eval "$as_ac_Header=\$ac_header_preproc"
26881 fi
26882 ac_res=`eval echo '${'$as_ac_Header'}'`
26883                { echo "$as_me:$LINENO: result: $ac_res" >&5
26884 echo "${ECHO_T}$ac_res" >&6; }
26885
26886 fi
26887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26888   cat >>confdefs.h <<_ACEOF
26889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26890 _ACEOF
26891
26892 fi
26893
26894 done
26895
26896
26897
26898 for ac_func in sched_yield pthread_yield
26899 do
26900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26904   echo $ECHO_N "(cached) $ECHO_C" >&6
26905 else
26906   cat >conftest.$ac_ext <<_ACEOF
26907 /* confdefs.h.  */
26908 _ACEOF
26909 cat confdefs.h >>conftest.$ac_ext
26910 cat >>conftest.$ac_ext <<_ACEOF
26911 /* end confdefs.h.  */
26912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26914 #define $ac_func innocuous_$ac_func
26915
26916 /* System header to define __stub macros and hopefully few prototypes,
26917     which can conflict with char $ac_func (); below.
26918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26919     <limits.h> exists even on freestanding compilers.  */
26920
26921 #ifdef __STDC__
26922 # include <limits.h>
26923 #else
26924 # include <assert.h>
26925 #endif
26926
26927 #undef $ac_func
26928
26929 /* Override any GCC internal prototype to avoid an error.
26930    Use char because int might match the return type of a GCC
26931    builtin and then its argument prototype would still apply.  */
26932 #ifdef __cplusplus
26933 extern "C"
26934 #endif
26935 char $ac_func ();
26936 /* The GNU C library defines this for functions which it implements
26937     to always fail with ENOSYS.  Some functions are actually named
26938     something starting with __ and the normal name is an alias.  */
26939 #if defined __stub_$ac_func || defined __stub___$ac_func
26940 choke me
26941 #endif
26942
26943 int
26944 main ()
26945 {
26946 return $ac_func ();
26947   ;
26948   return 0;
26949 }
26950 _ACEOF
26951 rm -f conftest.$ac_objext conftest$ac_exeext
26952 if { (ac_try="$ac_link"
26953 case "(($ac_try" in
26954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26955   *) ac_try_echo=$ac_try;;
26956 esac
26957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26958   (eval "$ac_link") 2>conftest.er1
26959   ac_status=$?
26960   grep -v '^ *+' conftest.er1 >conftest.err
26961   rm -f conftest.er1
26962   cat conftest.err >&5
26963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964   (exit $ac_status); } && {
26965          test -z "$ac_c_werror_flag" ||
26966          test ! -s conftest.err
26967        } && test -s conftest$ac_exeext &&
26968        $as_test_x conftest$ac_exeext; then
26969   eval "$as_ac_var=yes"
26970 else
26971   echo "$as_me: failed program was:" >&5
26972 sed 's/^/| /' conftest.$ac_ext >&5
26973
26974         eval "$as_ac_var=no"
26975 fi
26976
26977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26978       conftest$ac_exeext conftest.$ac_ext
26979 fi
26980 ac_res=`eval echo '${'$as_ac_var'}'`
26981                { echo "$as_me:$LINENO: result: $ac_res" >&5
26982 echo "${ECHO_T}$ac_res" >&6; }
26983 if test `eval echo '${'$as_ac_var'}'` = yes; then
26984   cat >>confdefs.h <<_ACEOF
26985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26986 _ACEOF
26987
26988 fi
26989 done
26990
26991
26992         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26993 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26994 if test "${ol_cv_header_linux_threads+set}" = set; then
26995   echo $ECHO_N "(cached) $ECHO_C" >&6
26996 else
26997   cat >conftest.$ac_ext <<_ACEOF
26998 /* confdefs.h.  */
26999 _ACEOF
27000 cat confdefs.h >>conftest.$ac_ext
27001 cat >>conftest.$ac_ext <<_ACEOF
27002 /* end confdefs.h.  */
27003 #include <pthread.h>
27004 _ACEOF
27005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27006   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
27007   ol_cv_header_linux_threads=yes
27008 else
27009   ol_cv_header_linux_threads=no
27010 fi
27011 rm -f conftest*
27012
27013
27014 fi
27015 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
27016 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
27017         if test $ol_cv_header_linux_threads = yes; then
27018
27019 cat >>confdefs.h <<\_ACEOF
27020 #define HAVE_LINUX_THREADS 1
27021 _ACEOF
27022
27023         fi
27024
27025
27026
27027 for ac_header in mach/cthreads.h
27028 do
27029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27031   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27034   echo $ECHO_N "(cached) $ECHO_C" >&6
27035 fi
27036 ac_res=`eval echo '${'$as_ac_Header'}'`
27037                { echo "$as_me:$LINENO: result: $ac_res" >&5
27038 echo "${ECHO_T}$ac_res" >&6; }
27039 else
27040   # Is the header compilable?
27041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27043 cat >conftest.$ac_ext <<_ACEOF
27044 /* confdefs.h.  */
27045 _ACEOF
27046 cat confdefs.h >>conftest.$ac_ext
27047 cat >>conftest.$ac_ext <<_ACEOF
27048 /* end confdefs.h.  */
27049 $ac_includes_default
27050 #include <$ac_header>
27051 _ACEOF
27052 rm -f conftest.$ac_objext
27053 if { (ac_try="$ac_compile"
27054 case "(($ac_try" in
27055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056   *) ac_try_echo=$ac_try;;
27057 esac
27058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059   (eval "$ac_compile") 2>conftest.er1
27060   ac_status=$?
27061   grep -v '^ *+' conftest.er1 >conftest.err
27062   rm -f conftest.er1
27063   cat conftest.err >&5
27064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065   (exit $ac_status); } && {
27066          test -z "$ac_c_werror_flag" ||
27067          test ! -s conftest.err
27068        } && test -s conftest.$ac_objext; then
27069   ac_header_compiler=yes
27070 else
27071   echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27073
27074         ac_header_compiler=no
27075 fi
27076
27077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27079 echo "${ECHO_T}$ac_header_compiler" >&6; }
27080
27081 # Is the header present?
27082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27084 cat >conftest.$ac_ext <<_ACEOF
27085 /* confdefs.h.  */
27086 _ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h.  */
27090 #include <$ac_header>
27091 _ACEOF
27092 if { (ac_try="$ac_cpp conftest.$ac_ext"
27093 case "(($ac_try" in
27094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095   *) ac_try_echo=$ac_try;;
27096 esac
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27099   ac_status=$?
27100   grep -v '^ *+' conftest.er1 >conftest.err
27101   rm -f conftest.er1
27102   cat conftest.err >&5
27103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104   (exit $ac_status); } >/dev/null && {
27105          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27106          test ! -s conftest.err
27107        }; then
27108   ac_header_preproc=yes
27109 else
27110   echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.$ac_ext >&5
27112
27113   ac_header_preproc=no
27114 fi
27115
27116 rm -f conftest.err conftest.$ac_ext
27117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27118 echo "${ECHO_T}$ac_header_preproc" >&6; }
27119
27120 # So?  What about this header?
27121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27122   yes:no: )
27123     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27127     ac_header_preproc=yes
27128     ;;
27129   no:yes:* )
27130     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27132     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27133 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27134     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27136     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27137 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27140     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27142     ( cat <<\_ASBOX
27143 ## --------------------------------------------- ##
27144 ## Report this to <http://www.openldap.org/its/> ##
27145 ## --------------------------------------------- ##
27146 _ASBOX
27147      ) | sed "s/^/$as_me: WARNING:     /" >&2
27148     ;;
27149 esac
27150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27153   echo $ECHO_N "(cached) $ECHO_C" >&6
27154 else
27155   eval "$as_ac_Header=\$ac_header_preproc"
27156 fi
27157 ac_res=`eval echo '${'$as_ac_Header'}'`
27158                { echo "$as_me:$LINENO: result: $ac_res" >&5
27159 echo "${ECHO_T}$ac_res" >&6; }
27160
27161 fi
27162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27163   cat >>confdefs.h <<_ACEOF
27164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27165 _ACEOF
27166
27167 fi
27168
27169 done
27170
27171
27172 for ac_header in lwp/lwp.h
27173 do
27174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27176   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27179   echo $ECHO_N "(cached) $ECHO_C" >&6
27180 fi
27181 ac_res=`eval echo '${'$as_ac_Header'}'`
27182                { echo "$as_me:$LINENO: result: $ac_res" >&5
27183 echo "${ECHO_T}$ac_res" >&6; }
27184 else
27185   # Is the header compilable?
27186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27188 cat >conftest.$ac_ext <<_ACEOF
27189 /* confdefs.h.  */
27190 _ACEOF
27191 cat confdefs.h >>conftest.$ac_ext
27192 cat >>conftest.$ac_ext <<_ACEOF
27193 /* end confdefs.h.  */
27194 $ac_includes_default
27195 #include <$ac_header>
27196 _ACEOF
27197 rm -f conftest.$ac_objext
27198 if { (ac_try="$ac_compile"
27199 case "(($ac_try" in
27200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201   *) ac_try_echo=$ac_try;;
27202 esac
27203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204   (eval "$ac_compile") 2>conftest.er1
27205   ac_status=$?
27206   grep -v '^ *+' conftest.er1 >conftest.err
27207   rm -f conftest.er1
27208   cat conftest.err >&5
27209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210   (exit $ac_status); } && {
27211          test -z "$ac_c_werror_flag" ||
27212          test ! -s conftest.err
27213        } && test -s conftest.$ac_objext; then
27214   ac_header_compiler=yes
27215 else
27216   echo "$as_me: failed program was:" >&5
27217 sed 's/^/| /' conftest.$ac_ext >&5
27218
27219         ac_header_compiler=no
27220 fi
27221
27222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27224 echo "${ECHO_T}$ac_header_compiler" >&6; }
27225
27226 # Is the header present?
27227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27229 cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h.  */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h.  */
27235 #include <$ac_header>
27236 _ACEOF
27237 if { (ac_try="$ac_cpp conftest.$ac_ext"
27238 case "(($ac_try" in
27239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240   *) ac_try_echo=$ac_try;;
27241 esac
27242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27244   ac_status=$?
27245   grep -v '^ *+' conftest.er1 >conftest.err
27246   rm -f conftest.er1
27247   cat conftest.err >&5
27248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249   (exit $ac_status); } >/dev/null && {
27250          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27251          test ! -s conftest.err
27252        }; then
27253   ac_header_preproc=yes
27254 else
27255   echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.$ac_ext >&5
27257
27258   ac_header_preproc=no
27259 fi
27260
27261 rm -f conftest.err conftest.$ac_ext
27262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27263 echo "${ECHO_T}$ac_header_preproc" >&6; }
27264
27265 # So?  What about this header?
27266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27267   yes:no: )
27268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27272     ac_header_preproc=yes
27273     ;;
27274   no:yes:* )
27275     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27277     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27278 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27279     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27281     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27282 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27285     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27287     ( cat <<\_ASBOX
27288 ## --------------------------------------------- ##
27289 ## Report this to <http://www.openldap.org/its/> ##
27290 ## --------------------------------------------- ##
27291 _ASBOX
27292      ) | sed "s/^/$as_me: WARNING:     /" >&2
27293     ;;
27294 esac
27295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27298   echo $ECHO_N "(cached) $ECHO_C" >&6
27299 else
27300   eval "$as_ac_Header=\$ac_header_preproc"
27301 fi
27302 ac_res=`eval echo '${'$as_ac_Header'}'`
27303                { echo "$as_me:$LINENO: result: $ac_res" >&5
27304 echo "${ECHO_T}$ac_res" >&6; }
27305
27306 fi
27307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27308   cat >>confdefs.h <<_ACEOF
27309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27310 _ACEOF
27311
27312 fi
27313
27314 done
27315
27316
27317
27318 for ac_header in thread.h synch.h
27319 do
27320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27322   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27325   echo $ECHO_N "(cached) $ECHO_C" >&6
27326 fi
27327 ac_res=`eval echo '${'$as_ac_Header'}'`
27328                { echo "$as_me:$LINENO: result: $ac_res" >&5
27329 echo "${ECHO_T}$ac_res" >&6; }
27330 else
27331   # Is the header compilable?
27332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27334 cat >conftest.$ac_ext <<_ACEOF
27335 /* confdefs.h.  */
27336 _ACEOF
27337 cat confdefs.h >>conftest.$ac_ext
27338 cat >>conftest.$ac_ext <<_ACEOF
27339 /* end confdefs.h.  */
27340 $ac_includes_default
27341 #include <$ac_header>
27342 _ACEOF
27343 rm -f conftest.$ac_objext
27344 if { (ac_try="$ac_compile"
27345 case "(($ac_try" in
27346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347   *) ac_try_echo=$ac_try;;
27348 esac
27349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27350   (eval "$ac_compile") 2>conftest.er1
27351   ac_status=$?
27352   grep -v '^ *+' conftest.er1 >conftest.err
27353   rm -f conftest.er1
27354   cat conftest.err >&5
27355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356   (exit $ac_status); } && {
27357          test -z "$ac_c_werror_flag" ||
27358          test ! -s conftest.err
27359        } && test -s conftest.$ac_objext; then
27360   ac_header_compiler=yes
27361 else
27362   echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27364
27365         ac_header_compiler=no
27366 fi
27367
27368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27370 echo "${ECHO_T}$ac_header_compiler" >&6; }
27371
27372 # Is the header present?
27373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27375 cat >conftest.$ac_ext <<_ACEOF
27376 /* confdefs.h.  */
27377 _ACEOF
27378 cat confdefs.h >>conftest.$ac_ext
27379 cat >>conftest.$ac_ext <<_ACEOF
27380 /* end confdefs.h.  */
27381 #include <$ac_header>
27382 _ACEOF
27383 if { (ac_try="$ac_cpp conftest.$ac_ext"
27384 case "(($ac_try" in
27385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386   *) ac_try_echo=$ac_try;;
27387 esac
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27390   ac_status=$?
27391   grep -v '^ *+' conftest.er1 >conftest.err
27392   rm -f conftest.er1
27393   cat conftest.err >&5
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); } >/dev/null && {
27396          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27397          test ! -s conftest.err
27398        }; then
27399   ac_header_preproc=yes
27400 else
27401   echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27403
27404   ac_header_preproc=no
27405 fi
27406
27407 rm -f conftest.err conftest.$ac_ext
27408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27409 echo "${ECHO_T}$ac_header_preproc" >&6; }
27410
27411 # So?  What about this header?
27412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27413   yes:no: )
27414     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27418     ac_header_preproc=yes
27419     ;;
27420   no:yes:* )
27421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27423     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27424 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27425     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27427     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27428 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27431     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27433     ( cat <<\_ASBOX
27434 ## --------------------------------------------- ##
27435 ## Report this to <http://www.openldap.org/its/> ##
27436 ## --------------------------------------------- ##
27437 _ASBOX
27438      ) | sed "s/^/$as_me: WARNING:     /" >&2
27439     ;;
27440 esac
27441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27444   echo $ECHO_N "(cached) $ECHO_C" >&6
27445 else
27446   eval "$as_ac_Header=\$ac_header_preproc"
27447 fi
27448 ac_res=`eval echo '${'$as_ac_Header'}'`
27449                { echo "$as_me:$LINENO: result: $ac_res" >&5
27450 echo "${ECHO_T}$ac_res" >&6; }
27451
27452 fi
27453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27454   cat >>confdefs.h <<_ACEOF
27455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27456 _ACEOF
27457
27458 fi
27459
27460 done
27461
27462 fi
27463
27464 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27465                         cat >>confdefs.h <<\_ACEOF
27466 #define REENTRANT 1
27467 _ACEOF
27468
27469         cat >>confdefs.h <<\_ACEOF
27470 #define _REENTRANT 1
27471 _ACEOF
27472
27473         cat >>confdefs.h <<\_ACEOF
27474 #define THREAD_SAFE 1
27475 _ACEOF
27476
27477         cat >>confdefs.h <<\_ACEOF
27478 #define _THREAD_SAFE 1
27479 _ACEOF
27480
27481         cat >>confdefs.h <<\_ACEOF
27482 #define THREADSAFE 1
27483 _ACEOF
27484
27485         cat >>confdefs.h <<\_ACEOF
27486 #define _THREADSAFE 1
27487 _ACEOF
27488
27489         cat >>confdefs.h <<\_ACEOF
27490 #define _SGI_MP_SOURCE 1
27491 _ACEOF
27492
27493
27494                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27495 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27496 if test "${ol_cv_errno_thread_specific+set}" = set; then
27497   echo $ECHO_N "(cached) $ECHO_C" >&6
27498 else
27499
27500                 cat >conftest.$ac_ext <<_ACEOF
27501 /* confdefs.h.  */
27502 _ACEOF
27503 cat confdefs.h >>conftest.$ac_ext
27504 cat >>conftest.$ac_ext <<_ACEOF
27505 /* end confdefs.h.  */
27506 #include <errno.h>
27507 int
27508 main ()
27509 {
27510 errno = 0;
27511   ;
27512   return 0;
27513 }
27514 _ACEOF
27515 rm -f conftest.$ac_objext conftest$ac_exeext
27516 if { (ac_try="$ac_link"
27517 case "(($ac_try" in
27518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27519   *) ac_try_echo=$ac_try;;
27520 esac
27521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27522   (eval "$ac_link") 2>conftest.er1
27523   ac_status=$?
27524   grep -v '^ *+' conftest.er1 >conftest.err
27525   rm -f conftest.er1
27526   cat conftest.err >&5
27527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528   (exit $ac_status); } && {
27529          test -z "$ac_c_werror_flag" ||
27530          test ! -s conftest.err
27531        } && test -s conftest$ac_exeext &&
27532        $as_test_x conftest$ac_exeext; then
27533   ol_cv_errno_thread_specific=yes
27534 else
27535   echo "$as_me: failed program was:" >&5
27536 sed 's/^/| /' conftest.$ac_ext >&5
27537
27538         ol_cv_errno_thread_specific=no
27539 fi
27540
27541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27542       conftest$ac_exeext conftest.$ac_ext
27543
27544 fi
27545 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27546 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27547
27548                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27549 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27550 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27551   echo $ECHO_N "(cached) $ECHO_C" >&6
27552 else
27553
27554                 cat >conftest.$ac_ext <<_ACEOF
27555 /* confdefs.h.  */
27556 _ACEOF
27557 cat confdefs.h >>conftest.$ac_ext
27558 cat >>conftest.$ac_ext <<_ACEOF
27559 /* end confdefs.h.  */
27560 #include <netdb.h>
27561 int
27562 main ()
27563 {
27564 h_errno = 0;
27565   ;
27566   return 0;
27567 }
27568 _ACEOF
27569 rm -f conftest.$ac_objext conftest$ac_exeext
27570 if { (ac_try="$ac_link"
27571 case "(($ac_try" in
27572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573   *) ac_try_echo=$ac_try;;
27574 esac
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576   (eval "$ac_link") 2>conftest.er1
27577   ac_status=$?
27578   grep -v '^ *+' conftest.er1 >conftest.err
27579   rm -f conftest.er1
27580   cat conftest.err >&5
27581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582   (exit $ac_status); } && {
27583          test -z "$ac_c_werror_flag" ||
27584          test ! -s conftest.err
27585        } && test -s conftest$ac_exeext &&
27586        $as_test_x conftest$ac_exeext; then
27587   ol_cv_h_errno_thread_specific=yes
27588 else
27589   echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27591
27592         ol_cv_h_errno_thread_specific=no
27593 fi
27594
27595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27596       conftest$ac_exeext conftest.$ac_ext
27597
27598 fi
27599 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27600 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27601
27602         if test $ol_cv_errno_thread_specific != yes ||
27603            test $ol_cv_h_errno_thread_specific != yes ; then
27604                 LIBS="$LTHREAD_LIBS $LIBS"
27605                 LTHREAD_LIBS=""
27606         fi
27607
27608 fi
27609
27610 if test $ol_link_threads = no ; then
27611         if test $ol_with_threads = yes ; then
27612                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27613 echo "$as_me: error: no suitable thread support" >&2;}
27614    { (exit 1); exit 1; }; }
27615         fi
27616
27617         if test $ol_with_threads = auto ; then
27618                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27619 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27620                 ol_with_threads=no
27621         fi
27622
27623
27624 cat >>confdefs.h <<\_ACEOF
27625 #define NO_THREADS 1
27626 _ACEOF
27627
27628         LTHREAD_LIBS=""
27629         BUILD_THREAD=no
27630 else
27631         BUILD_THREAD=yes
27632 fi
27633
27634 if test $ol_link_threads != no ; then
27635
27636 cat >>confdefs.h <<\_ACEOF
27637 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27638 _ACEOF
27639
27640 fi
27641
27642
27643
27644
27645 for ac_func in \
27646         ctime_r                 \
27647         gethostbyname_r gethostbyaddr_r \
27648
27649 do
27650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27654   echo $ECHO_N "(cached) $ECHO_C" >&6
27655 else
27656   cat >conftest.$ac_ext <<_ACEOF
27657 /* confdefs.h.  */
27658 _ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h.  */
27662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27664 #define $ac_func innocuous_$ac_func
27665
27666 /* System header to define __stub macros and hopefully few prototypes,
27667     which can conflict with char $ac_func (); below.
27668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27669     <limits.h> exists even on freestanding compilers.  */
27670
27671 #ifdef __STDC__
27672 # include <limits.h>
27673 #else
27674 # include <assert.h>
27675 #endif
27676
27677 #undef $ac_func
27678
27679 /* Override any GCC internal prototype to avoid an error.
27680    Use char because int might match the return type of a GCC
27681    builtin and then its argument prototype would still apply.  */
27682 #ifdef __cplusplus
27683 extern "C"
27684 #endif
27685 char $ac_func ();
27686 /* The GNU C library defines this for functions which it implements
27687     to always fail with ENOSYS.  Some functions are actually named
27688     something starting with __ and the normal name is an alias.  */
27689 #if defined __stub_$ac_func || defined __stub___$ac_func
27690 choke me
27691 #endif
27692
27693 int
27694 main ()
27695 {
27696 return $ac_func ();
27697   ;
27698   return 0;
27699 }
27700 _ACEOF
27701 rm -f conftest.$ac_objext conftest$ac_exeext
27702 if { (ac_try="$ac_link"
27703 case "(($ac_try" in
27704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705   *) ac_try_echo=$ac_try;;
27706 esac
27707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27708   (eval "$ac_link") 2>conftest.er1
27709   ac_status=$?
27710   grep -v '^ *+' conftest.er1 >conftest.err
27711   rm -f conftest.er1
27712   cat conftest.err >&5
27713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714   (exit $ac_status); } && {
27715          test -z "$ac_c_werror_flag" ||
27716          test ! -s conftest.err
27717        } && test -s conftest$ac_exeext &&
27718        $as_test_x conftest$ac_exeext; then
27719   eval "$as_ac_var=yes"
27720 else
27721   echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27723
27724         eval "$as_ac_var=no"
27725 fi
27726
27727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27728       conftest$ac_exeext conftest.$ac_ext
27729 fi
27730 ac_res=`eval echo '${'$as_ac_var'}'`
27731                { echo "$as_me:$LINENO: result: $ac_res" >&5
27732 echo "${ECHO_T}$ac_res" >&6; }
27733 if test `eval echo '${'$as_ac_var'}'` = yes; then
27734   cat >>confdefs.h <<_ACEOF
27735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27736 _ACEOF
27737
27738 fi
27739 done
27740
27741
27742 if test "$ac_cv_func_ctime_r" = no ; then
27743         ol_cv_func_ctime_r_nargs=0
27744 else
27745         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27746 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27747 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27748   echo $ECHO_N "(cached) $ECHO_C" >&6
27749 else
27750   cat >conftest.$ac_ext <<_ACEOF
27751 /* confdefs.h.  */
27752 _ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h.  */
27756 #include <time.h>
27757 int
27758 main ()
27759 {
27760 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27761   ;
27762   return 0;
27763 }
27764 _ACEOF
27765 rm -f conftest.$ac_objext
27766 if { (ac_try="$ac_compile"
27767 case "(($ac_try" in
27768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769   *) ac_try_echo=$ac_try;;
27770 esac
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772   (eval "$ac_compile") 2>conftest.er1
27773   ac_status=$?
27774   grep -v '^ *+' conftest.er1 >conftest.err
27775   rm -f conftest.er1
27776   cat conftest.err >&5
27777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778   (exit $ac_status); } && {
27779          test -z "$ac_c_werror_flag" ||
27780          test ! -s conftest.err
27781        } && test -s conftest.$ac_objext; then
27782   ol_cv_func_ctime_r_nargs3=yes
27783 else
27784   echo "$as_me: failed program was:" >&5
27785 sed 's/^/| /' conftest.$ac_ext >&5
27786
27787         ol_cv_func_ctime_r_nargs3=no
27788 fi
27789
27790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27791
27792         cat >conftest.$ac_ext <<_ACEOF
27793 /* confdefs.h.  */
27794 _ACEOF
27795 cat confdefs.h >>conftest.$ac_ext
27796 cat >>conftest.$ac_ext <<_ACEOF
27797 /* end confdefs.h.  */
27798 #include <time.h>
27799 int
27800 main ()
27801 {
27802 time_t ti; char *buffer; ctime_r(&ti,buffer);
27803   ;
27804   return 0;
27805 }
27806 _ACEOF
27807 rm -f conftest.$ac_objext
27808 if { (ac_try="$ac_compile"
27809 case "(($ac_try" in
27810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27811   *) ac_try_echo=$ac_try;;
27812 esac
27813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27814   (eval "$ac_compile") 2>conftest.er1
27815   ac_status=$?
27816   grep -v '^ *+' conftest.er1 >conftest.err
27817   rm -f conftest.er1
27818   cat conftest.err >&5
27819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820   (exit $ac_status); } && {
27821          test -z "$ac_c_werror_flag" ||
27822          test ! -s conftest.err
27823        } && test -s conftest.$ac_objext; then
27824   ol_cv_func_ctime_r_nargs2=yes
27825 else
27826   echo "$as_me: failed program was:" >&5
27827 sed 's/^/| /' conftest.$ac_ext >&5
27828
27829         ol_cv_func_ctime_r_nargs2=no
27830 fi
27831
27832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27833
27834         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27835            test $ol_cv_func_ctime_r_nargs2 = no ; then
27836
27837                 ol_cv_func_ctime_r_nargs=3
27838
27839         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27840              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27841
27842                 ol_cv_func_ctime_r_nargs=2
27843
27844         else
27845                 ol_cv_func_ctime_r_nargs=0
27846         fi
27847
27848 fi
27849 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27850 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27851
27852   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27853
27854 cat >>confdefs.h <<_ACEOF
27855 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27856 _ACEOF
27857
27858   fi
27859
27860 fi
27861
27862 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27863         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27864 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27865 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27866   echo $ECHO_N "(cached) $ECHO_C" >&6
27867 else
27868   cat >conftest.$ac_ext <<_ACEOF
27869 /* confdefs.h.  */
27870 _ACEOF
27871 cat confdefs.h >>conftest.$ac_ext
27872 cat >>conftest.$ac_ext <<_ACEOF
27873 /* end confdefs.h.  */
27874 #include <sys/types.h>
27875 #include <sys/socket.h>
27876 #include <netinet/in.h>
27877 #include <netdb.h>
27878 #define BUFSIZE (sizeof(struct hostent)+10)
27879 int
27880 main ()
27881 {
27882 struct hostent hent; char buffer[BUFSIZE];
27883                 int bufsize=BUFSIZE;int h_errno;
27884                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27885                         buffer, bufsize, &h_errno);
27886   ;
27887   return 0;
27888 }
27889 _ACEOF
27890 rm -f conftest.$ac_objext
27891 if { (ac_try="$ac_compile"
27892 case "(($ac_try" in
27893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27894   *) ac_try_echo=$ac_try;;
27895 esac
27896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27897   (eval "$ac_compile") 2>conftest.er1
27898   ac_status=$?
27899   grep -v '^ *+' conftest.er1 >conftest.err
27900   rm -f conftest.er1
27901   cat conftest.err >&5
27902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903   (exit $ac_status); } && {
27904          test -z "$ac_c_werror_flag" ||
27905          test ! -s conftest.err
27906        } && test -s conftest.$ac_objext; then
27907   ol_cv_func_gethostbyname_r_nargs5=yes
27908 else
27909   echo "$as_me: failed program was:" >&5
27910 sed 's/^/| /' conftest.$ac_ext >&5
27911
27912         ol_cv_func_gethostbyname_r_nargs5=no
27913 fi
27914
27915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27916
27917         cat >conftest.$ac_ext <<_ACEOF
27918 /* confdefs.h.  */
27919 _ACEOF
27920 cat confdefs.h >>conftest.$ac_ext
27921 cat >>conftest.$ac_ext <<_ACEOF
27922 /* end confdefs.h.  */
27923 #include <sys/types.h>
27924 #include <sys/socket.h>
27925 #include <netinet/in.h>
27926 #include <netdb.h>
27927 #define BUFSIZE (sizeof(struct hostent)+10)
27928 int
27929 main ()
27930 {
27931 struct hostent hent;struct hostent *rhent;
27932                 char buffer[BUFSIZE];
27933                 int bufsize=BUFSIZE;int h_errno;
27934                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27935                         &rhent, &h_errno);
27936   ;
27937   return 0;
27938 }
27939 _ACEOF
27940 rm -f conftest.$ac_objext
27941 if { (ac_try="$ac_compile"
27942 case "(($ac_try" in
27943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944   *) ac_try_echo=$ac_try;;
27945 esac
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947   (eval "$ac_compile") 2>conftest.er1
27948   ac_status=$?
27949   grep -v '^ *+' conftest.er1 >conftest.err
27950   rm -f conftest.er1
27951   cat conftest.err >&5
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); } && {
27954          test -z "$ac_c_werror_flag" ||
27955          test ! -s conftest.err
27956        } && test -s conftest.$ac_objext; then
27957   ol_cv_func_gethostbyname_r_nargs6=yes
27958 else
27959   echo "$as_me: failed program was:" >&5
27960 sed 's/^/| /' conftest.$ac_ext >&5
27961
27962         ol_cv_func_gethostbyname_r_nargs6=no
27963 fi
27964
27965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27966
27967         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27968            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27969
27970                 ol_cv_func_gethostbyname_r_nargs=5
27971
27972         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27973              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27974
27975                 ol_cv_func_gethostbyname_r_nargs=6
27976
27977         else
27978                 ol_cv_func_gethostbyname_r_nargs=0
27979         fi
27980
27981 fi
27982 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27983 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27984   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27985
27986 cat >>confdefs.h <<_ACEOF
27987 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27988 _ACEOF
27989
27990   fi
27991
27992 else
27993         ol_cv_func_gethostbyname_r_nargs=0
27994 fi
27995
27996 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27997         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27998 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27999 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
28000   echo $ECHO_N "(cached) $ECHO_C" >&6
28001 else
28002   cat >conftest.$ac_ext <<_ACEOF
28003 /* confdefs.h.  */
28004 _ACEOF
28005 cat confdefs.h >>conftest.$ac_ext
28006 cat >>conftest.$ac_ext <<_ACEOF
28007 /* end confdefs.h.  */
28008 #include <sys/types.h>
28009 #include <sys/socket.h>
28010 #include <netinet/in.h>
28011 #include <netdb.h>
28012 #define BUFSIZE (sizeof(struct hostent)+10)
28013 int
28014 main ()
28015 {
28016 struct hostent hent; char buffer[BUFSIZE];
28017             struct in_addr add;
28018             size_t alen=sizeof(struct in_addr);
28019             int bufsize=BUFSIZE;int h_errno;
28020                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28021                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
28022   ;
28023   return 0;
28024 }
28025 _ACEOF
28026 rm -f conftest.$ac_objext
28027 if { (ac_try="$ac_compile"
28028 case "(($ac_try" in
28029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030   *) ac_try_echo=$ac_try;;
28031 esac
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033   (eval "$ac_compile") 2>conftest.er1
28034   ac_status=$?
28035   grep -v '^ *+' conftest.er1 >conftest.err
28036   rm -f conftest.er1
28037   cat conftest.err >&5
28038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039   (exit $ac_status); } && {
28040          test -z "$ac_c_werror_flag" ||
28041          test ! -s conftest.err
28042        } && test -s conftest.$ac_objext; then
28043   ol_cv_func_gethostbyaddr_r_nargs7=yes
28044 else
28045   echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28047
28048         ol_cv_func_gethostbyaddr_r_nargs7=no
28049 fi
28050
28051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28052
28053         cat >conftest.$ac_ext <<_ACEOF
28054 /* confdefs.h.  */
28055 _ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h.  */
28059 #include <sys/types.h>
28060 #include <sys/socket.h>
28061 #include <netinet/in.h>
28062 #include <netdb.h>
28063 #define BUFSIZE (sizeof(struct hostent)+10)
28064 int
28065 main ()
28066 {
28067 struct hostent hent;
28068                 struct hostent *rhent; char buffer[BUFSIZE];
28069                 struct in_addr add;
28070                 size_t alen=sizeof(struct in_addr);
28071                 int bufsize=BUFSIZE;int h_errno;
28072                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28073                         alen, AF_INET, &hent, buffer, bufsize,
28074                         &rhent, &h_errno);
28075   ;
28076   return 0;
28077 }
28078 _ACEOF
28079 rm -f conftest.$ac_objext
28080 if { (ac_try="$ac_compile"
28081 case "(($ac_try" in
28082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28083   *) ac_try_echo=$ac_try;;
28084 esac
28085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28086   (eval "$ac_compile") 2>conftest.er1
28087   ac_status=$?
28088   grep -v '^ *+' conftest.er1 >conftest.err
28089   rm -f conftest.er1
28090   cat conftest.err >&5
28091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092   (exit $ac_status); } && {
28093          test -z "$ac_c_werror_flag" ||
28094          test ! -s conftest.err
28095        } && test -s conftest.$ac_objext; then
28096   ol_cv_func_gethostbyaddr_r_nargs8=yes
28097 else
28098   echo "$as_me: failed program was:" >&5
28099 sed 's/^/| /' conftest.$ac_ext >&5
28100
28101         ol_cv_func_gethostbyaddr_r_nargs8=no
28102 fi
28103
28104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28105
28106         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28107            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28108
28109                 ol_cv_func_gethostbyaddr_r_nargs=7
28110
28111         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28112              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28113
28114                 ol_cv_func_gethostbyaddr_r_nargs=8
28115
28116         else
28117                 ol_cv_func_gethostbyaddr_r_nargs=0
28118         fi
28119
28120 fi
28121 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28122 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
28123   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28124
28125 cat >>confdefs.h <<_ACEOF
28126 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28127 _ACEOF
28128
28129   fi
28130
28131 else
28132         ol_cv_func_gethostbyaddr_r_nargs=0
28133 fi
28134
28135 ol_link_bdb=no
28136
28137 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28138         ol_cv_berkeley_db=no
28139
28140 for ac_header in db.h
28141 do
28142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28144   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28147   echo $ECHO_N "(cached) $ECHO_C" >&6
28148 fi
28149 ac_res=`eval echo '${'$as_ac_Header'}'`
28150                { echo "$as_me:$LINENO: result: $ac_res" >&5
28151 echo "${ECHO_T}$ac_res" >&6; }
28152 else
28153   # Is the header compilable?
28154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28156 cat >conftest.$ac_ext <<_ACEOF
28157 /* confdefs.h.  */
28158 _ACEOF
28159 cat confdefs.h >>conftest.$ac_ext
28160 cat >>conftest.$ac_ext <<_ACEOF
28161 /* end confdefs.h.  */
28162 $ac_includes_default
28163 #include <$ac_header>
28164 _ACEOF
28165 rm -f conftest.$ac_objext
28166 if { (ac_try="$ac_compile"
28167 case "(($ac_try" in
28168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169   *) ac_try_echo=$ac_try;;
28170 esac
28171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172   (eval "$ac_compile") 2>conftest.er1
28173   ac_status=$?
28174   grep -v '^ *+' conftest.er1 >conftest.err
28175   rm -f conftest.er1
28176   cat conftest.err >&5
28177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178   (exit $ac_status); } && {
28179          test -z "$ac_c_werror_flag" ||
28180          test ! -s conftest.err
28181        } && test -s conftest.$ac_objext; then
28182   ac_header_compiler=yes
28183 else
28184   echo "$as_me: failed program was:" >&5
28185 sed 's/^/| /' conftest.$ac_ext >&5
28186
28187         ac_header_compiler=no
28188 fi
28189
28190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28192 echo "${ECHO_T}$ac_header_compiler" >&6; }
28193
28194 # Is the header present?
28195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28197 cat >conftest.$ac_ext <<_ACEOF
28198 /* confdefs.h.  */
28199 _ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h.  */
28203 #include <$ac_header>
28204 _ACEOF
28205 if { (ac_try="$ac_cpp conftest.$ac_ext"
28206 case "(($ac_try" in
28207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28208   *) ac_try_echo=$ac_try;;
28209 esac
28210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28212   ac_status=$?
28213   grep -v '^ *+' conftest.er1 >conftest.err
28214   rm -f conftest.er1
28215   cat conftest.err >&5
28216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217   (exit $ac_status); } >/dev/null && {
28218          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28219          test ! -s conftest.err
28220        }; then
28221   ac_header_preproc=yes
28222 else
28223   echo "$as_me: failed program was:" >&5
28224 sed 's/^/| /' conftest.$ac_ext >&5
28225
28226   ac_header_preproc=no
28227 fi
28228
28229 rm -f conftest.err conftest.$ac_ext
28230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28231 echo "${ECHO_T}$ac_header_preproc" >&6; }
28232
28233 # So?  What about this header?
28234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28235   yes:no: )
28236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28240     ac_header_preproc=yes
28241     ;;
28242   no:yes:* )
28243     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28245     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28246 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28247     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28249     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28250 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28253     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28255     ( cat <<\_ASBOX
28256 ## --------------------------------------------- ##
28257 ## Report this to <http://www.openldap.org/its/> ##
28258 ## --------------------------------------------- ##
28259 _ASBOX
28260      ) | sed "s/^/$as_me: WARNING:     /" >&2
28261     ;;
28262 esac
28263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28266   echo $ECHO_N "(cached) $ECHO_C" >&6
28267 else
28268   eval "$as_ac_Header=\$ac_header_preproc"
28269 fi
28270 ac_res=`eval echo '${'$as_ac_Header'}'`
28271                { echo "$as_me:$LINENO: result: $ac_res" >&5
28272 echo "${ECHO_T}$ac_res" >&6; }
28273
28274 fi
28275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28276   cat >>confdefs.h <<_ACEOF
28277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28278 _ACEOF
28279
28280 fi
28281
28282 done
28283
28284 if test $ac_cv_header_db_h = yes; then
28285         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28286 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28287 if test "${ol_cv_bdb_major+set}" = set; then
28288   echo $ECHO_N "(cached) $ECHO_C" >&6
28289 else
28290
28291         cat >conftest.$ac_ext <<_ACEOF
28292
28293 #include <db.h>
28294 #ifndef DB_VERSION_MAJOR
28295 #       define DB_VERSION_MAJOR 1
28296 #endif
28297 __db_version DB_VERSION_MAJOR
28298
28299 _ACEOF
28300         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28301         ol_cv_bdb_major=${3}
28302
28303 fi
28304 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28305 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28306 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28307         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28308 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28309    { (exit 1); exit 1; }; } ;;
28310 esac
28311
28312 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28313 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28314 if test "${ol_cv_bdb_minor+set}" = set; then
28315   echo $ECHO_N "(cached) $ECHO_C" >&6
28316 else
28317
28318         cat >conftest.$ac_ext <<_ACEOF
28319
28320 #include <db.h>
28321 #ifndef DB_VERSION_MINOR
28322 #       define DB_VERSION_MINOR 0
28323 #endif
28324 __db_version DB_VERSION_MINOR
28325
28326 _ACEOF
28327         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28328         ol_cv_bdb_minor=${3}
28329
28330 fi
28331 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28332 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28333 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28334         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28335 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28336    { (exit 1); exit 1; }; } ;;
28337 esac
28338
28339         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28340 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28341 if test "${ol_cv_bdb_compat+set}" = set; then
28342   echo $ECHO_N "(cached) $ECHO_C" >&6
28343 else
28344
28345         cat >conftest.$ac_ext <<_ACEOF
28346 /* confdefs.h.  */
28347 _ACEOF
28348 cat confdefs.h >>conftest.$ac_ext
28349 cat >>conftest.$ac_ext <<_ACEOF
28350 /* end confdefs.h.  */
28351
28352 #include <db.h>
28353
28354  /* this check could be improved */
28355 #ifndef DB_VERSION_MAJOR
28356 #       define DB_VERSION_MAJOR 1
28357 #endif
28358 #ifndef DB_VERSION_MINOR
28359 #       define DB_VERSION_MINOR 0
28360 #endif
28361
28362 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28363
28364 /* require 4.4 or later */
28365 #if DB_VERSION_MM >= 0x0404
28366         __db_version_compat
28367 #endif
28368
28369 _ACEOF
28370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28371   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28372   ol_cv_bdb_compat=yes
28373 else
28374   ol_cv_bdb_compat=no
28375 fi
28376 rm -f conftest*
28377
28378 fi
28379 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28380 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28381
28382
28383         if test $ol_cv_bdb_compat != yes ; then
28384                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28385 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28386    { (exit 1); exit 1; }; }
28387         fi
28388
28389         ol_cv_lib_db=no
28390
28391 if test $ol_cv_bdb_major = 4 ; then
28392         if test $ol_cv_lib_db = no ; then
28393         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28394 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28395 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28396   echo $ECHO_N "(cached) $ECHO_C" >&6
28397 else
28398
28399         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28400         ol_LIBS=$LIBS
28401         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28402
28403         cat >conftest.$ac_ext <<_ACEOF
28404 /* confdefs.h.  */
28405 _ACEOF
28406 cat confdefs.h >>conftest.$ac_ext
28407 cat >>conftest.$ac_ext <<_ACEOF
28408 /* end confdefs.h.  */
28409
28410 #ifdef HAVE_DB_185_H
28411 # include <db_185.h>
28412 #else
28413 # include <db.h>
28414 #endif
28415
28416 #ifndef DB_VERSION_MAJOR
28417 # define DB_VERSION_MAJOR 1
28418 #endif
28419
28420 #ifndef NULL
28421 #define NULL ((void*)0)
28422 #endif
28423
28424 int
28425 main ()
28426 {
28427
28428 #if DB_VERSION_MAJOR > 2
28429         db_env_create( NULL, 0 );
28430 #elif DB_VERSION_MAJOR > 1
28431         db_appexit( NULL );
28432 #else
28433         (void) dbopen( NULL, 0, 0, 0, NULL);
28434 #endif
28435
28436   ;
28437   return 0;
28438 }
28439 _ACEOF
28440 rm -f conftest.$ac_objext conftest$ac_exeext
28441 if { (ac_try="$ac_link"
28442 case "(($ac_try" in
28443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28444   *) ac_try_echo=$ac_try;;
28445 esac
28446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28447   (eval "$ac_link") 2>conftest.er1
28448   ac_status=$?
28449   grep -v '^ *+' conftest.er1 >conftest.err
28450   rm -f conftest.er1
28451   cat conftest.err >&5
28452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453   (exit $ac_status); } && {
28454          test -z "$ac_c_werror_flag" ||
28455          test ! -s conftest.err
28456        } && test -s conftest$ac_exeext &&
28457        $as_test_x conftest$ac_exeext; then
28458   ol_cv_db_db_4_dot_m=yes
28459 else
28460   echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28462
28463         ol_cv_db_db_4_dot_m=no
28464 fi
28465
28466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28467       conftest$ac_exeext conftest.$ac_ext
28468
28469         LIBS="$ol_LIBS"
28470
28471 fi
28472 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28473 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28474
28475         if test $ol_cv_db_db_4_dot_m = yes ; then
28476                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28477         fi
28478 fi
28479
28480         if test $ol_cv_lib_db = no ; then
28481         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28482 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28483 if test "${ol_cv_db_db4m+set}" = set; then
28484   echo $ECHO_N "(cached) $ECHO_C" >&6
28485 else
28486
28487         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28488         ol_LIBS=$LIBS
28489         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28490
28491         cat >conftest.$ac_ext <<_ACEOF
28492 /* confdefs.h.  */
28493 _ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h.  */
28497
28498 #ifdef HAVE_DB_185_H
28499 # include <db_185.h>
28500 #else
28501 # include <db.h>
28502 #endif
28503
28504 #ifndef DB_VERSION_MAJOR
28505 # define DB_VERSION_MAJOR 1
28506 #endif
28507
28508 #ifndef NULL
28509 #define NULL ((void*)0)
28510 #endif
28511
28512 int
28513 main ()
28514 {
28515
28516 #if DB_VERSION_MAJOR > 2
28517         db_env_create( NULL, 0 );
28518 #elif DB_VERSION_MAJOR > 1
28519         db_appexit( NULL );
28520 #else
28521         (void) dbopen( NULL, 0, 0, 0, NULL);
28522 #endif
28523
28524   ;
28525   return 0;
28526 }
28527 _ACEOF
28528 rm -f conftest.$ac_objext conftest$ac_exeext
28529 if { (ac_try="$ac_link"
28530 case "(($ac_try" in
28531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28532   *) ac_try_echo=$ac_try;;
28533 esac
28534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28535   (eval "$ac_link") 2>conftest.er1
28536   ac_status=$?
28537   grep -v '^ *+' conftest.er1 >conftest.err
28538   rm -f conftest.er1
28539   cat conftest.err >&5
28540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541   (exit $ac_status); } && {
28542          test -z "$ac_c_werror_flag" ||
28543          test ! -s conftest.err
28544        } && test -s conftest$ac_exeext &&
28545        $as_test_x conftest$ac_exeext; then
28546   ol_cv_db_db4m=yes
28547 else
28548   echo "$as_me: failed program was:" >&5
28549 sed 's/^/| /' conftest.$ac_ext >&5
28550
28551         ol_cv_db_db4m=no
28552 fi
28553
28554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28555       conftest$ac_exeext conftest.$ac_ext
28556
28557         LIBS="$ol_LIBS"
28558
28559 fi
28560 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28561 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28562
28563         if test $ol_cv_db_db4m = yes ; then
28564                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28565         fi
28566 fi
28567
28568         if test $ol_cv_lib_db = no ; then
28569         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28570 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28571 if test "${ol_cv_db_db_4m+set}" = set; then
28572   echo $ECHO_N "(cached) $ECHO_C" >&6
28573 else
28574
28575         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28576         ol_LIBS=$LIBS
28577         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28578
28579         cat >conftest.$ac_ext <<_ACEOF
28580 /* confdefs.h.  */
28581 _ACEOF
28582 cat confdefs.h >>conftest.$ac_ext
28583 cat >>conftest.$ac_ext <<_ACEOF
28584 /* end confdefs.h.  */
28585
28586 #ifdef HAVE_DB_185_H
28587 # include <db_185.h>
28588 #else
28589 # include <db.h>
28590 #endif
28591
28592 #ifndef DB_VERSION_MAJOR
28593 # define DB_VERSION_MAJOR 1
28594 #endif
28595
28596 #ifndef NULL
28597 #define NULL ((void*)0)
28598 #endif
28599
28600 int
28601 main ()
28602 {
28603
28604 #if DB_VERSION_MAJOR > 2
28605         db_env_create( NULL, 0 );
28606 #elif DB_VERSION_MAJOR > 1
28607         db_appexit( NULL );
28608 #else
28609         (void) dbopen( NULL, 0, 0, 0, NULL);
28610 #endif
28611
28612   ;
28613   return 0;
28614 }
28615 _ACEOF
28616 rm -f conftest.$ac_objext conftest$ac_exeext
28617 if { (ac_try="$ac_link"
28618 case "(($ac_try" in
28619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28620   *) ac_try_echo=$ac_try;;
28621 esac
28622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28623   (eval "$ac_link") 2>conftest.er1
28624   ac_status=$?
28625   grep -v '^ *+' conftest.er1 >conftest.err
28626   rm -f conftest.er1
28627   cat conftest.err >&5
28628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629   (exit $ac_status); } && {
28630          test -z "$ac_c_werror_flag" ||
28631          test ! -s conftest.err
28632        } && test -s conftest$ac_exeext &&
28633        $as_test_x conftest$ac_exeext; then
28634   ol_cv_db_db_4m=yes
28635 else
28636   echo "$as_me: failed program was:" >&5
28637 sed 's/^/| /' conftest.$ac_ext >&5
28638
28639         ol_cv_db_db_4m=no
28640 fi
28641
28642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28643       conftest$ac_exeext conftest.$ac_ext
28644
28645         LIBS="$ol_LIBS"
28646
28647 fi
28648 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28649 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28650
28651         if test $ol_cv_db_db_4m = yes ; then
28652                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28653         fi
28654 fi
28655
28656         if test $ol_cv_lib_db = no ; then
28657         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28658 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28659 if test "${ol_cv_db_db_4_m+set}" = set; then
28660   echo $ECHO_N "(cached) $ECHO_C" >&6
28661 else
28662
28663         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28664         ol_LIBS=$LIBS
28665         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28666
28667         cat >conftest.$ac_ext <<_ACEOF
28668 /* confdefs.h.  */
28669 _ACEOF
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h.  */
28673
28674 #ifdef HAVE_DB_185_H
28675 # include <db_185.h>
28676 #else
28677 # include <db.h>
28678 #endif
28679
28680 #ifndef DB_VERSION_MAJOR
28681 # define DB_VERSION_MAJOR 1
28682 #endif
28683
28684 #ifndef NULL
28685 #define NULL ((void*)0)
28686 #endif
28687
28688 int
28689 main ()
28690 {
28691
28692 #if DB_VERSION_MAJOR > 2
28693         db_env_create( NULL, 0 );
28694 #elif DB_VERSION_MAJOR > 1
28695         db_appexit( NULL );
28696 #else
28697         (void) dbopen( NULL, 0, 0, 0, NULL);
28698 #endif
28699
28700   ;
28701   return 0;
28702 }
28703 _ACEOF
28704 rm -f conftest.$ac_objext conftest$ac_exeext
28705 if { (ac_try="$ac_link"
28706 case "(($ac_try" in
28707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708   *) ac_try_echo=$ac_try;;
28709 esac
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711   (eval "$ac_link") 2>conftest.er1
28712   ac_status=$?
28713   grep -v '^ *+' conftest.er1 >conftest.err
28714   rm -f conftest.er1
28715   cat conftest.err >&5
28716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717   (exit $ac_status); } && {
28718          test -z "$ac_c_werror_flag" ||
28719          test ! -s conftest.err
28720        } && test -s conftest$ac_exeext &&
28721        $as_test_x conftest$ac_exeext; then
28722   ol_cv_db_db_4_m=yes
28723 else
28724   echo "$as_me: failed program was:" >&5
28725 sed 's/^/| /' conftest.$ac_ext >&5
28726
28727         ol_cv_db_db_4_m=no
28728 fi
28729
28730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28731       conftest$ac_exeext conftest.$ac_ext
28732
28733         LIBS="$ol_LIBS"
28734
28735 fi
28736 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28737 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28738
28739         if test $ol_cv_db_db_4_m = yes ; then
28740                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28741         fi
28742 fi
28743
28744         if test $ol_cv_lib_db = no ; then
28745         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28746 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28747 if test "${ol_cv_db_db_4+set}" = set; then
28748   echo $ECHO_N "(cached) $ECHO_C" >&6
28749 else
28750
28751         ol_DB_LIB=-ldb-4
28752         ol_LIBS=$LIBS
28753         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28754
28755         cat >conftest.$ac_ext <<_ACEOF
28756 /* confdefs.h.  */
28757 _ACEOF
28758 cat confdefs.h >>conftest.$ac_ext
28759 cat >>conftest.$ac_ext <<_ACEOF
28760 /* end confdefs.h.  */
28761
28762 #ifdef HAVE_DB_185_H
28763 # include <db_185.h>
28764 #else
28765 # include <db.h>
28766 #endif
28767
28768 #ifndef DB_VERSION_MAJOR
28769 # define DB_VERSION_MAJOR 1
28770 #endif
28771
28772 #ifndef NULL
28773 #define NULL ((void*)0)
28774 #endif
28775
28776 int
28777 main ()
28778 {
28779
28780 #if DB_VERSION_MAJOR > 2
28781         db_env_create( NULL, 0 );
28782 #elif DB_VERSION_MAJOR > 1
28783         db_appexit( NULL );
28784 #else
28785         (void) dbopen( NULL, 0, 0, 0, NULL);
28786 #endif
28787
28788   ;
28789   return 0;
28790 }
28791 _ACEOF
28792 rm -f conftest.$ac_objext conftest$ac_exeext
28793 if { (ac_try="$ac_link"
28794 case "(($ac_try" in
28795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28796   *) ac_try_echo=$ac_try;;
28797 esac
28798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28799   (eval "$ac_link") 2>conftest.er1
28800   ac_status=$?
28801   grep -v '^ *+' conftest.er1 >conftest.err
28802   rm -f conftest.er1
28803   cat conftest.err >&5
28804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805   (exit $ac_status); } && {
28806          test -z "$ac_c_werror_flag" ||
28807          test ! -s conftest.err
28808        } && test -s conftest$ac_exeext &&
28809        $as_test_x conftest$ac_exeext; then
28810   ol_cv_db_db_4=yes
28811 else
28812   echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28814
28815         ol_cv_db_db_4=no
28816 fi
28817
28818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28819       conftest$ac_exeext conftest.$ac_ext
28820
28821         LIBS="$ol_LIBS"
28822
28823 fi
28824 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28825 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28826
28827         if test $ol_cv_db_db_4 = yes ; then
28828                 ol_cv_lib_db=-ldb-4
28829         fi
28830 fi
28831
28832         if test $ol_cv_lib_db = no ; then
28833         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28834 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28835 if test "${ol_cv_db_db4+set}" = set; then
28836   echo $ECHO_N "(cached) $ECHO_C" >&6
28837 else
28838
28839         ol_DB_LIB=-ldb4
28840         ol_LIBS=$LIBS
28841         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28842
28843         cat >conftest.$ac_ext <<_ACEOF
28844 /* confdefs.h.  */
28845 _ACEOF
28846 cat confdefs.h >>conftest.$ac_ext
28847 cat >>conftest.$ac_ext <<_ACEOF
28848 /* end confdefs.h.  */
28849
28850 #ifdef HAVE_DB_185_H
28851 # include <db_185.h>
28852 #else
28853 # include <db.h>
28854 #endif
28855
28856 #ifndef DB_VERSION_MAJOR
28857 # define DB_VERSION_MAJOR 1
28858 #endif
28859
28860 #ifndef NULL
28861 #define NULL ((void*)0)
28862 #endif
28863
28864 int
28865 main ()
28866 {
28867
28868 #if DB_VERSION_MAJOR > 2
28869         db_env_create( NULL, 0 );
28870 #elif DB_VERSION_MAJOR > 1
28871         db_appexit( NULL );
28872 #else
28873         (void) dbopen( NULL, 0, 0, 0, NULL);
28874 #endif
28875
28876   ;
28877   return 0;
28878 }
28879 _ACEOF
28880 rm -f conftest.$ac_objext conftest$ac_exeext
28881 if { (ac_try="$ac_link"
28882 case "(($ac_try" in
28883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28884   *) ac_try_echo=$ac_try;;
28885 esac
28886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28887   (eval "$ac_link") 2>conftest.er1
28888   ac_status=$?
28889   grep -v '^ *+' conftest.er1 >conftest.err
28890   rm -f conftest.er1
28891   cat conftest.err >&5
28892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893   (exit $ac_status); } && {
28894          test -z "$ac_c_werror_flag" ||
28895          test ! -s conftest.err
28896        } && test -s conftest$ac_exeext &&
28897        $as_test_x conftest$ac_exeext; then
28898   ol_cv_db_db4=yes
28899 else
28900   echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.$ac_ext >&5
28902
28903         ol_cv_db_db4=no
28904 fi
28905
28906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28907       conftest$ac_exeext conftest.$ac_ext
28908
28909         LIBS="$ol_LIBS"
28910
28911 fi
28912 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28913 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28914
28915         if test $ol_cv_db_db4 = yes ; then
28916                 ol_cv_lib_db=-ldb4
28917         fi
28918 fi
28919
28920         if test $ol_cv_lib_db = no ; then
28921         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28922 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28923 if test "${ol_cv_db_db+set}" = set; then
28924   echo $ECHO_N "(cached) $ECHO_C" >&6
28925 else
28926
28927         ol_DB_LIB=-ldb
28928         ol_LIBS=$LIBS
28929         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28930
28931         cat >conftest.$ac_ext <<_ACEOF
28932 /* confdefs.h.  */
28933 _ACEOF
28934 cat confdefs.h >>conftest.$ac_ext
28935 cat >>conftest.$ac_ext <<_ACEOF
28936 /* end confdefs.h.  */
28937
28938 #ifdef HAVE_DB_185_H
28939 # include <db_185.h>
28940 #else
28941 # include <db.h>
28942 #endif
28943
28944 #ifndef DB_VERSION_MAJOR
28945 # define DB_VERSION_MAJOR 1
28946 #endif
28947
28948 #ifndef NULL
28949 #define NULL ((void*)0)
28950 #endif
28951
28952 int
28953 main ()
28954 {
28955
28956 #if DB_VERSION_MAJOR > 2
28957         db_env_create( NULL, 0 );
28958 #elif DB_VERSION_MAJOR > 1
28959         db_appexit( NULL );
28960 #else
28961         (void) dbopen( NULL, 0, 0, 0, NULL);
28962 #endif
28963
28964   ;
28965   return 0;
28966 }
28967 _ACEOF
28968 rm -f conftest.$ac_objext conftest$ac_exeext
28969 if { (ac_try="$ac_link"
28970 case "(($ac_try" in
28971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28972   *) ac_try_echo=$ac_try;;
28973 esac
28974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28975   (eval "$ac_link") 2>conftest.er1
28976   ac_status=$?
28977   grep -v '^ *+' conftest.er1 >conftest.err
28978   rm -f conftest.er1
28979   cat conftest.err >&5
28980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28981   (exit $ac_status); } && {
28982          test -z "$ac_c_werror_flag" ||
28983          test ! -s conftest.err
28984        } && test -s conftest$ac_exeext &&
28985        $as_test_x conftest$ac_exeext; then
28986   ol_cv_db_db=yes
28987 else
28988   echo "$as_me: failed program was:" >&5
28989 sed 's/^/| /' conftest.$ac_ext >&5
28990
28991         ol_cv_db_db=no
28992 fi
28993
28994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28995       conftest$ac_exeext conftest.$ac_ext
28996
28997         LIBS="$ol_LIBS"
28998
28999 fi
29000 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29001 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29002
29003         if test $ol_cv_db_db = yes ; then
29004                 ol_cv_lib_db=-ldb
29005         fi
29006 fi
29007
29008 fi
29009 if test $ol_cv_lib_db = no ; then
29010         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29011 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29012 if test "${ol_cv_db_none+set}" = set; then
29013   echo $ECHO_N "(cached) $ECHO_C" >&6
29014 else
29015
29016         ol_DB_LIB=
29017         ol_LIBS=$LIBS
29018         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29019
29020         cat >conftest.$ac_ext <<_ACEOF
29021 /* confdefs.h.  */
29022 _ACEOF
29023 cat confdefs.h >>conftest.$ac_ext
29024 cat >>conftest.$ac_ext <<_ACEOF
29025 /* end confdefs.h.  */
29026
29027 #ifdef HAVE_DB_185_H
29028 # include <db_185.h>
29029 #else
29030 # include <db.h>
29031 #endif
29032
29033 #ifndef DB_VERSION_MAJOR
29034 # define DB_VERSION_MAJOR 1
29035 #endif
29036
29037 #ifndef NULL
29038 #define NULL ((void*)0)
29039 #endif
29040
29041 int
29042 main ()
29043 {
29044
29045 #if DB_VERSION_MAJOR > 2
29046         db_env_create( NULL, 0 );
29047 #elif DB_VERSION_MAJOR > 1
29048         db_appexit( NULL );
29049 #else
29050         (void) dbopen( NULL, 0, 0, 0, NULL);
29051 #endif
29052
29053   ;
29054   return 0;
29055 }
29056 _ACEOF
29057 rm -f conftest.$ac_objext conftest$ac_exeext
29058 if { (ac_try="$ac_link"
29059 case "(($ac_try" in
29060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061   *) ac_try_echo=$ac_try;;
29062 esac
29063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29064   (eval "$ac_link") 2>conftest.er1
29065   ac_status=$?
29066   grep -v '^ *+' conftest.er1 >conftest.err
29067   rm -f conftest.er1
29068   cat conftest.err >&5
29069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070   (exit $ac_status); } && {
29071          test -z "$ac_c_werror_flag" ||
29072          test ! -s conftest.err
29073        } && test -s conftest$ac_exeext &&
29074        $as_test_x conftest$ac_exeext; then
29075   ol_cv_db_none=yes
29076 else
29077   echo "$as_me: failed program was:" >&5
29078 sed 's/^/| /' conftest.$ac_ext >&5
29079
29080         ol_cv_db_none=no
29081 fi
29082
29083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29084       conftest$ac_exeext conftest.$ac_ext
29085
29086         LIBS="$ol_LIBS"
29087
29088 fi
29089 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29090 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29091
29092         if test $ol_cv_db_none = yes ; then
29093                 ol_cv_lib_db=yes
29094         fi
29095 fi
29096
29097
29098         if test "$ol_cv_lib_db" != no ; then
29099                 ol_cv_berkeley_db=yes
29100                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29101 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29102 if test "${ol_cv_berkeley_db_version+set}" = set; then
29103   echo $ECHO_N "(cached) $ECHO_C" >&6
29104 else
29105
29106         ol_LIBS="$LIBS"
29107         LIBS="$LTHREAD_LIBS $LIBS"
29108         if test $ol_cv_lib_db != yes ; then
29109                 LIBS="$ol_cv_lib_db $LIBS"
29110         fi
29111
29112         if test "$cross_compiling" = yes; then
29113   ol_cv_berkeley_db_version=cross
29114 else
29115   cat >conftest.$ac_ext <<_ACEOF
29116 /* confdefs.h.  */
29117 _ACEOF
29118 cat confdefs.h >>conftest.$ac_ext
29119 cat >>conftest.$ac_ext <<_ACEOF
29120 /* end confdefs.h.  */
29121
29122 #ifdef HAVE_DB_185_H
29123         choke me;
29124 #else
29125 #include <db.h>
29126 #endif
29127 #ifndef DB_VERSION_MAJOR
29128 # define DB_VERSION_MAJOR 1
29129 #endif
29130 #ifndef NULL
29131 #define NULL ((void *)0)
29132 #endif
29133 main()
29134 {
29135 #if DB_VERSION_MAJOR > 1
29136         char *version;
29137         int major, minor, patch;
29138
29139         version = db_version( &major, &minor, &patch );
29140
29141         if( major != DB_VERSION_MAJOR ||
29142                 minor != DB_VERSION_MINOR ||
29143                 patch != DB_VERSION_PATCH )
29144         {
29145                 printf("Berkeley DB version mismatch\n"
29146                         "\theader: %s\n\tlibrary: %s\n",
29147                         DB_VERSION_STRING, version);
29148                 return 1;
29149         }
29150 #endif
29151
29152         return 0;
29153 }
29154 _ACEOF
29155 rm -f conftest$ac_exeext
29156 if { (ac_try="$ac_link"
29157 case "(($ac_try" in
29158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29159   *) ac_try_echo=$ac_try;;
29160 esac
29161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29162   (eval "$ac_link") 2>&5
29163   ac_status=$?
29164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29166   { (case "(($ac_try" in
29167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29168   *) ac_try_echo=$ac_try;;
29169 esac
29170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29171   (eval "$ac_try") 2>&5
29172   ac_status=$?
29173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174   (exit $ac_status); }; }; then
29175   ol_cv_berkeley_db_version=yes
29176 else
29177   echo "$as_me: program exited with status $ac_status" >&5
29178 echo "$as_me: failed program was:" >&5
29179 sed 's/^/| /' conftest.$ac_ext >&5
29180
29181 ( exit $ac_status )
29182 ol_cv_berkeley_db_version=no
29183 fi
29184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29185 fi
29186
29187
29188
29189         LIBS="$ol_LIBS"
29190
29191 fi
29192 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29193 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29194
29195         if test $ol_cv_berkeley_db_version = no ; then
29196                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29197 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29198    { (exit 1); exit 1; }; }
29199         fi
29200
29201                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29202 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29203 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29204   echo $ECHO_N "(cached) $ECHO_C" >&6
29205 else
29206
29207         ol_LIBS="$LIBS"
29208         LIBS="$LTHREAD_LIBS $LIBS"
29209         if test $ol_cv_lib_db != yes ; then
29210                 LIBS="$ol_cv_lib_db $LIBS"
29211         fi
29212
29213         if test "$cross_compiling" = yes; then
29214   ol_cv_berkeley_db_thread=cross
29215 else
29216   cat >conftest.$ac_ext <<_ACEOF
29217 /* confdefs.h.  */
29218 _ACEOF
29219 cat confdefs.h >>conftest.$ac_ext
29220 cat >>conftest.$ac_ext <<_ACEOF
29221 /* end confdefs.h.  */
29222
29223 #ifdef HAVE_DB_185_H
29224         choke me;
29225 #else
29226 #include <db.h>
29227 #endif
29228 #ifndef NULL
29229 #define NULL ((void *)0)
29230 #endif
29231 main()
29232 {
29233         int rc;
29234         u_int32_t flags = DB_CREATE |
29235 #ifdef DB_PRIVATE
29236                 DB_PRIVATE |
29237 #endif
29238                 DB_THREAD;
29239
29240 #if DB_VERSION_MAJOR > 2
29241         DB_ENV *env = NULL;
29242
29243         rc = db_env_create( &env, 0 );
29244
29245         flags |= DB_INIT_MPOOL;
29246 #ifdef DB_MPOOL_PRIVATE
29247         flags |= DB_MPOOL_PRIVATE;
29248 #endif
29249
29250         if( rc ) {
29251                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29252                 return rc;
29253         }
29254
29255 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29256         rc = (env->open)( env, NULL, flags, 0 );
29257 #else
29258         rc = (env->open)( env, NULL, NULL, flags, 0 );
29259 #endif
29260
29261         if ( rc == 0 ) {
29262                 rc = env->close( env, 0 );
29263         }
29264
29265         if( rc ) {
29266                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29267                 return rc;
29268         }
29269
29270 #else
29271         DB_ENV env;
29272         memset( &env, '\0', sizeof(env) );
29273
29274         rc = db_appinit( NULL, NULL, &env, flags );
29275
29276         if( rc == 0 ) {
29277                 db_appexit( &env );
29278         }
29279
29280         unlink("__db_mpool.share");
29281         unlink("__db_lock.share");
29282 #endif
29283
29284         return rc;
29285 }
29286 _ACEOF
29287 rm -f conftest$ac_exeext
29288 if { (ac_try="$ac_link"
29289 case "(($ac_try" in
29290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291   *) ac_try_echo=$ac_try;;
29292 esac
29293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294   (eval "$ac_link") 2>&5
29295   ac_status=$?
29296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29298   { (case "(($ac_try" in
29299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29300   *) ac_try_echo=$ac_try;;
29301 esac
29302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29303   (eval "$ac_try") 2>&5
29304   ac_status=$?
29305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306   (exit $ac_status); }; }; then
29307   ol_cv_berkeley_db_thread=yes
29308 else
29309   echo "$as_me: program exited with status $ac_status" >&5
29310 echo "$as_me: failed program was:" >&5
29311 sed 's/^/| /' conftest.$ac_ext >&5
29312
29313 ( exit $ac_status )
29314 ol_cv_berkeley_db_thread=no
29315 fi
29316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29317 fi
29318
29319
29320
29321         LIBS="$ol_LIBS"
29322
29323 fi
29324 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29325 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29326
29327         if test $ol_cv_berkeley_db_thread != no ; then
29328
29329 cat >>confdefs.h <<\_ACEOF
29330 #define HAVE_BERKELEY_DB_THREAD 1
29331 _ACEOF
29332
29333         fi
29334
29335         fi
29336 fi
29337
29338
29339         if test $ol_cv_berkeley_db = no ; then
29340                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29341 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29342    { (exit 1); exit 1; }; }
29343         fi
29344
29345
29346 cat >>confdefs.h <<\_ACEOF
29347 #define HAVE_BERKELEY_DB 1
29348 _ACEOF
29349
29350
29351                         if test $ol_cv_lib_db != yes ; then
29352                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29353         fi
29354
29355         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29356
29357         ol_link_bdb=yes
29358 fi
29359
29360
29361 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29362         BUILD_LIBS_DYNAMIC=shared
29363
29364 cat >>confdefs.h <<\_ACEOF
29365 #define LDAP_LIBS_DYNAMIC 1
29366 _ACEOF
29367
29368         LTSTATIC=""
29369 else
29370         BUILD_LIBS_DYNAMIC=static
29371         LTSTATIC="-static"
29372 fi
29373
29374 if test $ol_enable_wrappers != no ; then
29375
29376 for ac_header in tcpd.h
29377 do
29378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29380   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29383   echo $ECHO_N "(cached) $ECHO_C" >&6
29384 fi
29385 ac_res=`eval echo '${'$as_ac_Header'}'`
29386                { echo "$as_me:$LINENO: result: $ac_res" >&5
29387 echo "${ECHO_T}$ac_res" >&6; }
29388 else
29389   # Is the header compilable?
29390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29392 cat >conftest.$ac_ext <<_ACEOF
29393 /* confdefs.h.  */
29394 _ACEOF
29395 cat confdefs.h >>conftest.$ac_ext
29396 cat >>conftest.$ac_ext <<_ACEOF
29397 /* end confdefs.h.  */
29398 $ac_includes_default
29399 #include <$ac_header>
29400 _ACEOF
29401 rm -f conftest.$ac_objext
29402 if { (ac_try="$ac_compile"
29403 case "(($ac_try" in
29404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405   *) ac_try_echo=$ac_try;;
29406 esac
29407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29408   (eval "$ac_compile") 2>conftest.er1
29409   ac_status=$?
29410   grep -v '^ *+' conftest.er1 >conftest.err
29411   rm -f conftest.er1
29412   cat conftest.err >&5
29413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414   (exit $ac_status); } && {
29415          test -z "$ac_c_werror_flag" ||
29416          test ! -s conftest.err
29417        } && test -s conftest.$ac_objext; then
29418   ac_header_compiler=yes
29419 else
29420   echo "$as_me: failed program was:" >&5
29421 sed 's/^/| /' conftest.$ac_ext >&5
29422
29423         ac_header_compiler=no
29424 fi
29425
29426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29428 echo "${ECHO_T}$ac_header_compiler" >&6; }
29429
29430 # Is the header present?
29431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29433 cat >conftest.$ac_ext <<_ACEOF
29434 /* confdefs.h.  */
29435 _ACEOF
29436 cat confdefs.h >>conftest.$ac_ext
29437 cat >>conftest.$ac_ext <<_ACEOF
29438 /* end confdefs.h.  */
29439 #include <$ac_header>
29440 _ACEOF
29441 if { (ac_try="$ac_cpp conftest.$ac_ext"
29442 case "(($ac_try" in
29443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444   *) ac_try_echo=$ac_try;;
29445 esac
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29448   ac_status=$?
29449   grep -v '^ *+' conftest.er1 >conftest.err
29450   rm -f conftest.er1
29451   cat conftest.err >&5
29452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453   (exit $ac_status); } >/dev/null && {
29454          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29455          test ! -s conftest.err
29456        }; then
29457   ac_header_preproc=yes
29458 else
29459   echo "$as_me: failed program was:" >&5
29460 sed 's/^/| /' conftest.$ac_ext >&5
29461
29462   ac_header_preproc=no
29463 fi
29464
29465 rm -f conftest.err conftest.$ac_ext
29466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29467 echo "${ECHO_T}$ac_header_preproc" >&6; }
29468
29469 # So?  What about this header?
29470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29471   yes:no: )
29472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29476     ac_header_preproc=yes
29477     ;;
29478   no:yes:* )
29479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29491     ( cat <<\_ASBOX
29492 ## --------------------------------------------- ##
29493 ## Report this to <http://www.openldap.org/its/> ##
29494 ## --------------------------------------------- ##
29495 _ASBOX
29496      ) | sed "s/^/$as_me: WARNING:     /" >&2
29497     ;;
29498 esac
29499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29502   echo $ECHO_N "(cached) $ECHO_C" >&6
29503 else
29504   eval "$as_ac_Header=\$ac_header_preproc"
29505 fi
29506 ac_res=`eval echo '${'$as_ac_Header'}'`
29507                { echo "$as_me:$LINENO: result: $ac_res" >&5
29508 echo "${ECHO_T}$ac_res" >&6; }
29509
29510 fi
29511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29512   cat >>confdefs.h <<_ACEOF
29513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29514 _ACEOF
29515
29516                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29517 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29518                 save_LIBS="$LIBS"
29519                 LIBS="$LIBS -lwrap"
29520                 cat >conftest.$ac_ext <<_ACEOF
29521 /* confdefs.h.  */
29522 _ACEOF
29523 cat confdefs.h >>conftest.$ac_ext
29524 cat >>conftest.$ac_ext <<_ACEOF
29525 /* end confdefs.h.  */
29526
29527 #include <tcpd.h>
29528 int allow_severity = 0;
29529 int deny_severity  = 0;
29530
29531 struct request_info *req;
29532
29533 int
29534 main ()
29535 {
29536
29537 hosts_access(req)
29538
29539   ;
29540   return 0;
29541 }
29542 _ACEOF
29543 rm -f conftest.$ac_objext conftest$ac_exeext
29544 if { (ac_try="$ac_link"
29545 case "(($ac_try" in
29546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29547   *) ac_try_echo=$ac_try;;
29548 esac
29549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29550   (eval "$ac_link") 2>conftest.er1
29551   ac_status=$?
29552   grep -v '^ *+' conftest.er1 >conftest.err
29553   rm -f conftest.er1
29554   cat conftest.err >&5
29555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556   (exit $ac_status); } && {
29557          test -z "$ac_c_werror_flag" ||
29558          test ! -s conftest.err
29559        } && test -s conftest$ac_exeext &&
29560        $as_test_x conftest$ac_exeext; then
29561   { echo "$as_me:$LINENO: result: -lwrap" >&5
29562 echo "${ECHO_T}-lwrap" >&6; }
29563                 have_wrappers=yes
29564                 LIBS="$save_LIBS"
29565 else
29566   echo "$as_me: failed program was:" >&5
29567 sed 's/^/| /' conftest.$ac_ext >&5
29568
29569
29570                                 LIBS="$LIBS -lnsl"
29571                 cat >conftest.$ac_ext <<_ACEOF
29572 /* confdefs.h.  */
29573 _ACEOF
29574 cat confdefs.h >>conftest.$ac_ext
29575 cat >>conftest.$ac_ext <<_ACEOF
29576 /* end confdefs.h.  */
29577
29578 #include <tcpd.h>
29579 int allow_severity = 0;
29580 int deny_severity  = 0;
29581
29582 struct request_info *req;
29583
29584 int
29585 main ()
29586 {
29587
29588 hosts_access(req)
29589
29590   ;
29591   return 0;
29592 }
29593 _ACEOF
29594 rm -f conftest.$ac_objext conftest$ac_exeext
29595 if { (ac_try="$ac_link"
29596 case "(($ac_try" in
29597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29598   *) ac_try_echo=$ac_try;;
29599 esac
29600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29601   (eval "$ac_link") 2>conftest.er1
29602   ac_status=$?
29603   grep -v '^ *+' conftest.er1 >conftest.err
29604   rm -f conftest.er1
29605   cat conftest.err >&5
29606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607   (exit $ac_status); } && {
29608          test -z "$ac_c_werror_flag" ||
29609          test ! -s conftest.err
29610        } && test -s conftest$ac_exeext &&
29611        $as_test_x conftest$ac_exeext; then
29612   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29613 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29614                 have_wrappers=yes
29615                 LIBS="$save_LIBS -lnsl"
29616 else
29617   echo "$as_me: failed program was:" >&5
29618 sed 's/^/| /' conftest.$ac_ext >&5
29619
29620
29621                 { echo "$as_me:$LINENO: result: no" >&5
29622 echo "${ECHO_T}no" >&6; }
29623                 have_wrappers=no
29624                 LIBS=$save_LIBS
29625 fi
29626
29627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29628       conftest$ac_exeext conftest.$ac_ext
29629 fi
29630
29631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29632       conftest$ac_exeext conftest.$ac_ext
29633 else
29634   have_wrappers=no
29635 fi
29636
29637 done
29638
29639
29640         if test $have_wrappers = yes ; then
29641
29642 cat >>confdefs.h <<\_ACEOF
29643 #define HAVE_TCPD 1
29644 _ACEOF
29645
29646                 WRAP_LIBS="-lwrap"
29647         elif test $ol_enable_wrappers = yes ; then
29648                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29649 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29650    { (exit 1); exit 1; }; }
29651         else
29652                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29653 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29654                 WRAP_LIBS=""
29655         fi
29656 fi
29657
29658 if test $ol_enable_syslog != no ; then
29659         { echo "$as_me:$LINENO: checking for openlog" >&5
29660 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29661 if test "${ac_cv_func_openlog+set}" = set; then
29662   echo $ECHO_N "(cached) $ECHO_C" >&6
29663 else
29664   cat >conftest.$ac_ext <<_ACEOF
29665 /* confdefs.h.  */
29666 _ACEOF
29667 cat confdefs.h >>conftest.$ac_ext
29668 cat >>conftest.$ac_ext <<_ACEOF
29669 /* end confdefs.h.  */
29670 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29672 #define openlog innocuous_openlog
29673
29674 /* System header to define __stub macros and hopefully few prototypes,
29675     which can conflict with char openlog (); below.
29676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29677     <limits.h> exists even on freestanding compilers.  */
29678
29679 #ifdef __STDC__
29680 # include <limits.h>
29681 #else
29682 # include <assert.h>
29683 #endif
29684
29685 #undef openlog
29686
29687 /* Override any GCC internal prototype to avoid an error.
29688    Use char because int might match the return type of a GCC
29689    builtin and then its argument prototype would still apply.  */
29690 #ifdef __cplusplus
29691 extern "C"
29692 #endif
29693 char openlog ();
29694 /* The GNU C library defines this for functions which it implements
29695     to always fail with ENOSYS.  Some functions are actually named
29696     something starting with __ and the normal name is an alias.  */
29697 #if defined __stub_openlog || defined __stub___openlog
29698 choke me
29699 #endif
29700
29701 int
29702 main ()
29703 {
29704 return openlog ();
29705   ;
29706   return 0;
29707 }
29708 _ACEOF
29709 rm -f conftest.$ac_objext conftest$ac_exeext
29710 if { (ac_try="$ac_link"
29711 case "(($ac_try" in
29712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713   *) ac_try_echo=$ac_try;;
29714 esac
29715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716   (eval "$ac_link") 2>conftest.er1
29717   ac_status=$?
29718   grep -v '^ *+' conftest.er1 >conftest.err
29719   rm -f conftest.er1
29720   cat conftest.err >&5
29721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722   (exit $ac_status); } && {
29723          test -z "$ac_c_werror_flag" ||
29724          test ! -s conftest.err
29725        } && test -s conftest$ac_exeext &&
29726        $as_test_x conftest$ac_exeext; then
29727   ac_cv_func_openlog=yes
29728 else
29729   echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29731
29732         ac_cv_func_openlog=no
29733 fi
29734
29735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29736       conftest$ac_exeext conftest.$ac_ext
29737 fi
29738 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29739 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29740
29741         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29742                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29743 echo "$as_me: error: could not find syslog" >&2;}
29744    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29745         fi
29746         ol_enable_syslog=$ac_cv_func_openlog
29747 fi
29748
29749 ol_link_sql=no
29750 if test $ol_enable_sql != no ; then
29751
29752
29753 for ac_header in sql.h sqlext.h
29754 do
29755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29757   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29760   echo $ECHO_N "(cached) $ECHO_C" >&6
29761 fi
29762 ac_res=`eval echo '${'$as_ac_Header'}'`
29763                { echo "$as_me:$LINENO: result: $ac_res" >&5
29764 echo "${ECHO_T}$ac_res" >&6; }
29765 else
29766   # Is the header compilable?
29767 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29769 cat >conftest.$ac_ext <<_ACEOF
29770 /* confdefs.h.  */
29771 _ACEOF
29772 cat confdefs.h >>conftest.$ac_ext
29773 cat >>conftest.$ac_ext <<_ACEOF
29774 /* end confdefs.h.  */
29775 $ac_includes_default
29776 #include <$ac_header>
29777 _ACEOF
29778 rm -f conftest.$ac_objext
29779 if { (ac_try="$ac_compile"
29780 case "(($ac_try" in
29781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782   *) ac_try_echo=$ac_try;;
29783 esac
29784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785   (eval "$ac_compile") 2>conftest.er1
29786   ac_status=$?
29787   grep -v '^ *+' conftest.er1 >conftest.err
29788   rm -f conftest.er1
29789   cat conftest.err >&5
29790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); } && {
29792          test -z "$ac_c_werror_flag" ||
29793          test ! -s conftest.err
29794        } && test -s conftest.$ac_objext; then
29795   ac_header_compiler=yes
29796 else
29797   echo "$as_me: failed program was:" >&5
29798 sed 's/^/| /' conftest.$ac_ext >&5
29799
29800         ac_header_compiler=no
29801 fi
29802
29803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29805 echo "${ECHO_T}$ac_header_compiler" >&6; }
29806
29807 # Is the header present?
29808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29810 cat >conftest.$ac_ext <<_ACEOF
29811 /* confdefs.h.  */
29812 _ACEOF
29813 cat confdefs.h >>conftest.$ac_ext
29814 cat >>conftest.$ac_ext <<_ACEOF
29815 /* end confdefs.h.  */
29816 #include <$ac_header>
29817 _ACEOF
29818 if { (ac_try="$ac_cpp conftest.$ac_ext"
29819 case "(($ac_try" in
29820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821   *) ac_try_echo=$ac_try;;
29822 esac
29823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29825   ac_status=$?
29826   grep -v '^ *+' conftest.er1 >conftest.err
29827   rm -f conftest.er1
29828   cat conftest.err >&5
29829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830   (exit $ac_status); } >/dev/null && {
29831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29832          test ! -s conftest.err
29833        }; then
29834   ac_header_preproc=yes
29835 else
29836   echo "$as_me: failed program was:" >&5
29837 sed 's/^/| /' conftest.$ac_ext >&5
29838
29839   ac_header_preproc=no
29840 fi
29841
29842 rm -f conftest.err conftest.$ac_ext
29843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29844 echo "${ECHO_T}$ac_header_preproc" >&6; }
29845
29846 # So?  What about this header?
29847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29848   yes:no: )
29849     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29853     ac_header_preproc=yes
29854     ;;
29855   no:yes:* )
29856     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29858     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29859 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29860     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29862     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29863 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29866     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29868     ( cat <<\_ASBOX
29869 ## --------------------------------------------- ##
29870 ## Report this to <http://www.openldap.org/its/> ##
29871 ## --------------------------------------------- ##
29872 _ASBOX
29873      ) | sed "s/^/$as_me: WARNING:     /" >&2
29874     ;;
29875 esac
29876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29879   echo $ECHO_N "(cached) $ECHO_C" >&6
29880 else
29881   eval "$as_ac_Header=\$ac_header_preproc"
29882 fi
29883 ac_res=`eval echo '${'$as_ac_Header'}'`
29884                { echo "$as_me:$LINENO: result: $ac_res" >&5
29885 echo "${ECHO_T}$ac_res" >&6; }
29886
29887 fi
29888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29889   cat >>confdefs.h <<_ACEOF
29890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29891 _ACEOF
29892
29893 else
29894
29895                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29896 echo "$as_me: error: could not locate SQL headers" >&2;}
29897    { (exit 1); exit 1; }; }
29898
29899 fi
29900
29901 done
29902
29903
29904         sql_LIBS="$LIBS"
29905         LIBS="$LTHREAD_LIBS"
29906
29907         if test $ol_with_odbc = auto ; then
29908                 ol_with_odbc="iodbc unixodbc odbc32"
29909         fi
29910
29911         for odbc in $ol_with_odbc ; do
29912                 if test $ol_link_sql = no ; then
29913                         case $odbc in
29914                         iodbc)
29915                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29916 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29917 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29918   echo $ECHO_N "(cached) $ECHO_C" >&6
29919 else
29920   ac_check_lib_save_LIBS=$LIBS
29921 LIBS="-liodbc  $LIBS"
29922 cat >conftest.$ac_ext <<_ACEOF
29923 /* confdefs.h.  */
29924 _ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h.  */
29928
29929 /* Override any GCC internal prototype to avoid an error.
29930    Use char because int might match the return type of a GCC
29931    builtin and then its argument prototype would still apply.  */
29932 #ifdef __cplusplus
29933 extern "C"
29934 #endif
29935 char SQLDriverConnect ();
29936 int
29937 main ()
29938 {
29939 return SQLDriverConnect ();
29940   ;
29941   return 0;
29942 }
29943 _ACEOF
29944 rm -f conftest.$ac_objext conftest$ac_exeext
29945 if { (ac_try="$ac_link"
29946 case "(($ac_try" in
29947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29948   *) ac_try_echo=$ac_try;;
29949 esac
29950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29951   (eval "$ac_link") 2>conftest.er1
29952   ac_status=$?
29953   grep -v '^ *+' conftest.er1 >conftest.err
29954   rm -f conftest.er1
29955   cat conftest.err >&5
29956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957   (exit $ac_status); } && {
29958          test -z "$ac_c_werror_flag" ||
29959          test ! -s conftest.err
29960        } && test -s conftest$ac_exeext &&
29961        $as_test_x conftest$ac_exeext; then
29962   ac_cv_lib_iodbc_SQLDriverConnect=yes
29963 else
29964   echo "$as_me: failed program was:" >&5
29965 sed 's/^/| /' conftest.$ac_ext >&5
29966
29967         ac_cv_lib_iodbc_SQLDriverConnect=no
29968 fi
29969
29970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29971       conftest$ac_exeext conftest.$ac_ext
29972 LIBS=$ac_check_lib_save_LIBS
29973 fi
29974 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29975 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29976 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29977   have_iodbc=yes
29978 else
29979   have_iodbc=no
29980 fi
29981
29982                                 if test $have_iodbc = yes ; then
29983                                         ol_link_sql="-liodbc"
29984                                 fi
29985                                 ;;
29986
29987                         unixodbc)
29988                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29989 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29990 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29991   echo $ECHO_N "(cached) $ECHO_C" >&6
29992 else
29993   ac_check_lib_save_LIBS=$LIBS
29994 LIBS="-lodbc  $LIBS"
29995 cat >conftest.$ac_ext <<_ACEOF
29996 /* confdefs.h.  */
29997 _ACEOF
29998 cat confdefs.h >>conftest.$ac_ext
29999 cat >>conftest.$ac_ext <<_ACEOF
30000 /* end confdefs.h.  */
30001
30002 /* Override any GCC internal prototype to avoid an error.
30003    Use char because int might match the return type of a GCC
30004    builtin and then its argument prototype would still apply.  */
30005 #ifdef __cplusplus
30006 extern "C"
30007 #endif
30008 char SQLDriverConnect ();
30009 int
30010 main ()
30011 {
30012 return SQLDriverConnect ();
30013   ;
30014   return 0;
30015 }
30016 _ACEOF
30017 rm -f conftest.$ac_objext conftest$ac_exeext
30018 if { (ac_try="$ac_link"
30019 case "(($ac_try" in
30020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30021   *) ac_try_echo=$ac_try;;
30022 esac
30023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30024   (eval "$ac_link") 2>conftest.er1
30025   ac_status=$?
30026   grep -v '^ *+' conftest.er1 >conftest.err
30027   rm -f conftest.er1
30028   cat conftest.err >&5
30029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030   (exit $ac_status); } && {
30031          test -z "$ac_c_werror_flag" ||
30032          test ! -s conftest.err
30033        } && test -s conftest$ac_exeext &&
30034        $as_test_x conftest$ac_exeext; then
30035   ac_cv_lib_odbc_SQLDriverConnect=yes
30036 else
30037   echo "$as_me: failed program was:" >&5
30038 sed 's/^/| /' conftest.$ac_ext >&5
30039
30040         ac_cv_lib_odbc_SQLDriverConnect=no
30041 fi
30042
30043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30044       conftest$ac_exeext conftest.$ac_ext
30045 LIBS=$ac_check_lib_save_LIBS
30046 fi
30047 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30048 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30049 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30050   have_odbc=yes
30051 else
30052   have_odbc=no
30053 fi
30054
30055                                 if test $have_odbc = yes ; then
30056                                         ol_link_sql="-lodbc"
30057                                 fi
30058                                 ;;
30059
30060                         odbc32)
30061                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30062 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30063 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30064   echo $ECHO_N "(cached) $ECHO_C" >&6
30065 else
30066   ac_check_lib_save_LIBS=$LIBS
30067 LIBS="-lodbc32  $LIBS"
30068 cat >conftest.$ac_ext <<_ACEOF
30069 /* confdefs.h.  */
30070 _ACEOF
30071 cat confdefs.h >>conftest.$ac_ext
30072 cat >>conftest.$ac_ext <<_ACEOF
30073 /* end confdefs.h.  */
30074
30075 /* Override any GCC internal prototype to avoid an error.
30076    Use char because int might match the return type of a GCC
30077    builtin and then its argument prototype would still apply.  */
30078 #ifdef __cplusplus
30079 extern "C"
30080 #endif
30081 char SQLDriverConnect ();
30082 int
30083 main ()
30084 {
30085 return SQLDriverConnect ();
30086   ;
30087   return 0;
30088 }
30089 _ACEOF
30090 rm -f conftest.$ac_objext conftest$ac_exeext
30091 if { (ac_try="$ac_link"
30092 case "(($ac_try" in
30093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30094   *) ac_try_echo=$ac_try;;
30095 esac
30096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30097   (eval "$ac_link") 2>conftest.er1
30098   ac_status=$?
30099   grep -v '^ *+' conftest.er1 >conftest.err
30100   rm -f conftest.er1
30101   cat conftest.err >&5
30102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103   (exit $ac_status); } && {
30104          test -z "$ac_c_werror_flag" ||
30105          test ! -s conftest.err
30106        } && test -s conftest$ac_exeext &&
30107        $as_test_x conftest$ac_exeext; then
30108   ac_cv_lib_odbc32_SQLDriverConnect=yes
30109 else
30110   echo "$as_me: failed program was:" >&5
30111 sed 's/^/| /' conftest.$ac_ext >&5
30112
30113         ac_cv_lib_odbc32_SQLDriverConnect=no
30114 fi
30115
30116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30117       conftest$ac_exeext conftest.$ac_ext
30118 LIBS=$ac_check_lib_save_LIBS
30119 fi
30120 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30121 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30122 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30123   have_odbc32=yes
30124 else
30125   have_odbc32=no
30126 fi
30127
30128                                 if test $have_odbc32 = yes ; then
30129                                         ol_link_sql="-lodbc32"
30130                                 fi
30131                                 ;;
30132
30133                         *)
30134                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30135 echo "$as_me: error: unknown ODBC library" >&2;}
30136    { (exit 1); exit 1; }; }
30137                                 ;;
30138                         esac
30139                 fi
30140         done
30141
30142         LIBS="$sql_LIBS"
30143
30144         if test $ol_link_sql != no ; then
30145                 SLAPD_SQL_LIBS="$ol_link_sql"
30146
30147         elif test $ol_enable_sql != auto ; then
30148                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30149 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30150    { (exit 1); exit 1; }; }
30151         fi
30152 fi
30153
30154 ol_link_ndb=no
30155 if test $ol_enable_ndb != no ; then
30156         # Extract the first word of "mysql_config", so it can be a program name with args.
30157 set dummy mysql_config; ac_word=$2
30158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30160 if test "${ac_cv_prog_MYSQL+set}" = set; then
30161   echo $ECHO_N "(cached) $ECHO_C" >&6
30162 else
30163   if test -n "$MYSQL"; then
30164   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30165 else
30166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30167 for as_dir in $PATH
30168 do
30169   IFS=$as_save_IFS
30170   test -z "$as_dir" && as_dir=.
30171   for ac_exec_ext in '' $ac_executable_extensions; do
30172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30173     ac_cv_prog_MYSQL="yes"
30174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30175     break 2
30176   fi
30177 done
30178 done
30179 IFS=$as_save_IFS
30180
30181 fi
30182 fi
30183 MYSQL=$ac_cv_prog_MYSQL
30184 if test -n "$MYSQL"; then
30185   { echo "$as_me:$LINENO: result: $MYSQL" >&5
30186 echo "${ECHO_T}$MYSQL" >&6; }
30187 else
30188   { echo "$as_me:$LINENO: result: no" >&5
30189 echo "${ECHO_T}no" >&6; }
30190 fi
30191
30192
30193         if test "$MYSQL" != yes ; then
30194                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30195 echo "$as_me: error: could not locate mysql_config" >&2;}
30196    { (exit 1); exit 1; }; }
30197         fi
30198
30199         SQL_INC=`mysql_config --include`
30200         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30201
30202         save_CPPFLAGS="$CPPFLAGS"
30203         CPPFLAGS="$SLAPD_NDB_INCS"
30204         { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30205 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30206         cat >conftest.$ac_ext <<_ACEOF
30207 /* confdefs.h.  */
30208 _ACEOF
30209 cat confdefs.h >>conftest.$ac_ext
30210 cat >>conftest.$ac_ext <<_ACEOF
30211 /* end confdefs.h.  */
30212 #include <NdbApi.hpp>
30213 _ACEOF
30214 if { (ac_try="$ac_cpp conftest.$ac_ext"
30215 case "(($ac_try" in
30216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30217   *) ac_try_echo=$ac_try;;
30218 esac
30219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30221   ac_status=$?
30222   grep -v '^ *+' conftest.er1 >conftest.err
30223   rm -f conftest.er1
30224   cat conftest.err >&5
30225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226   (exit $ac_status); } >/dev/null && {
30227          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30228          test ! -s conftest.err
30229        }; then
30230   { echo "$as_me:$LINENO: result: yes" >&5
30231 echo "${ECHO_T}yes" >&6; }
30232 else
30233   echo "$as_me: failed program was:" >&5
30234 sed 's/^/| /' conftest.$ac_ext >&5
30235
30236   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30237 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30238    { (exit 1); exit 1; }; }
30239
30240 fi
30241
30242 rm -f conftest.err conftest.$ac_ext
30243         CPPFLAGS="$save_CPPFLAGS"
30244
30245         SQL_LIB=`mysql_config --libs_r`
30246         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30247
30248         save_LDFLAGS="$LDFLAGS"
30249         save_LIBS="$LIBS"
30250         LDFLAGS="$SQL_LIB"
30251         { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30252 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30253 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30254   echo $ECHO_N "(cached) $ECHO_C" >&6
30255 else
30256   ac_check_lib_save_LIBS=$LIBS
30257 LIBS="-lndbclient -lstdc++ $LIBS"
30258 cat >conftest.$ac_ext <<_ACEOF
30259 /* confdefs.h.  */
30260 _ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h.  */
30264
30265 /* Override any GCC internal prototype to avoid an error.
30266    Use char because int might match the return type of a GCC
30267    builtin and then its argument prototype would still apply.  */
30268 #ifdef __cplusplus
30269 extern "C"
30270 #endif
30271 char ndb_init ();
30272 int
30273 main ()
30274 {
30275 return ndb_init ();
30276   ;
30277   return 0;
30278 }
30279 _ACEOF
30280 rm -f conftest.$ac_objext conftest$ac_exeext
30281 if { (ac_try="$ac_link"
30282 case "(($ac_try" in
30283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30284   *) ac_try_echo=$ac_try;;
30285 esac
30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30287   (eval "$ac_link") 2>conftest.er1
30288   ac_status=$?
30289   grep -v '^ *+' conftest.er1 >conftest.err
30290   rm -f conftest.er1
30291   cat conftest.err >&5
30292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293   (exit $ac_status); } && {
30294          test -z "$ac_c_werror_flag" ||
30295          test ! -s conftest.err
30296        } && test -s conftest$ac_exeext &&
30297        $as_test_x conftest$ac_exeext; then
30298   ac_cv_lib_ndbclient_ndb_init=yes
30299 else
30300   echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30302
30303         ac_cv_lib_ndbclient_ndb_init=no
30304 fi
30305
30306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30307       conftest$ac_exeext conftest.$ac_ext
30308 LIBS=$ac_check_lib_save_LIBS
30309 fi
30310 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30311 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30312 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30313   : ok
30314 else
30315
30316                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30317 echo "$as_me: error: could not locate ndbclient library" >&2;}
30318    { (exit 1); exit 1; }; }
30319
30320 fi
30321
30322         LIBS="$save_LIBS"
30323         LDFLAGS="$save_LDFLAGS"
30324
30325         if test "$ol_enable_ndb" = yes ; then
30326                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30327         fi
30328 fi
30329
30330 ol_icu=no
30331
30332 for ac_header in unicode/utypes.h
30333 do
30334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30336   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30339   echo $ECHO_N "(cached) $ECHO_C" >&6
30340 fi
30341 ac_res=`eval echo '${'$as_ac_Header'}'`
30342                { echo "$as_me:$LINENO: result: $ac_res" >&5
30343 echo "${ECHO_T}$ac_res" >&6; }
30344 else
30345   # Is the header compilable?
30346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30348 cat >conftest.$ac_ext <<_ACEOF
30349 /* confdefs.h.  */
30350 _ACEOF
30351 cat confdefs.h >>conftest.$ac_ext
30352 cat >>conftest.$ac_ext <<_ACEOF
30353 /* end confdefs.h.  */
30354 $ac_includes_default
30355 #include <$ac_header>
30356 _ACEOF
30357 rm -f conftest.$ac_objext
30358 if { (ac_try="$ac_compile"
30359 case "(($ac_try" in
30360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361   *) ac_try_echo=$ac_try;;
30362 esac
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364   (eval "$ac_compile") 2>conftest.er1
30365   ac_status=$?
30366   grep -v '^ *+' conftest.er1 >conftest.err
30367   rm -f conftest.er1
30368   cat conftest.err >&5
30369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370   (exit $ac_status); } && {
30371          test -z "$ac_c_werror_flag" ||
30372          test ! -s conftest.err
30373        } && test -s conftest.$ac_objext; then
30374   ac_header_compiler=yes
30375 else
30376   echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30378
30379         ac_header_compiler=no
30380 fi
30381
30382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30384 echo "${ECHO_T}$ac_header_compiler" >&6; }
30385
30386 # Is the header present?
30387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30389 cat >conftest.$ac_ext <<_ACEOF
30390 /* confdefs.h.  */
30391 _ACEOF
30392 cat confdefs.h >>conftest.$ac_ext
30393 cat >>conftest.$ac_ext <<_ACEOF
30394 /* end confdefs.h.  */
30395 #include <$ac_header>
30396 _ACEOF
30397 if { (ac_try="$ac_cpp conftest.$ac_ext"
30398 case "(($ac_try" in
30399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30400   *) ac_try_echo=$ac_try;;
30401 esac
30402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30404   ac_status=$?
30405   grep -v '^ *+' conftest.er1 >conftest.err
30406   rm -f conftest.er1
30407   cat conftest.err >&5
30408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409   (exit $ac_status); } >/dev/null && {
30410          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30411          test ! -s conftest.err
30412        }; then
30413   ac_header_preproc=yes
30414 else
30415   echo "$as_me: failed program was:" >&5
30416 sed 's/^/| /' conftest.$ac_ext >&5
30417
30418   ac_header_preproc=no
30419 fi
30420
30421 rm -f conftest.err conftest.$ac_ext
30422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30423 echo "${ECHO_T}$ac_header_preproc" >&6; }
30424
30425 # So?  What about this header?
30426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30427   yes:no: )
30428     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30432     ac_header_preproc=yes
30433     ;;
30434   no:yes:* )
30435     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30437     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30438 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30439     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30441     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30442 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30445     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30447     ( cat <<\_ASBOX
30448 ## --------------------------------------------- ##
30449 ## Report this to <http://www.openldap.org/its/> ##
30450 ## --------------------------------------------- ##
30451 _ASBOX
30452      ) | sed "s/^/$as_me: WARNING:     /" >&2
30453     ;;
30454 esac
30455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30458   echo $ECHO_N "(cached) $ECHO_C" >&6
30459 else
30460   eval "$as_ac_Header=\$ac_header_preproc"
30461 fi
30462 ac_res=`eval echo '${'$as_ac_Header'}'`
30463                { echo "$as_me:$LINENO: result: $ac_res" >&5
30464 echo "${ECHO_T}$ac_res" >&6; }
30465
30466 fi
30467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30468   cat >>confdefs.h <<_ACEOF
30469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30470 _ACEOF
30471
30472 fi
30473
30474 done
30475
30476 if test $ac_cv_header_unicode_utypes_h = yes ; then
30477                 OL_ICULIBS="-licuuc -licudata"
30478
30479         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30480 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30481 if test "${ol_cv_lib_icu+set}" = set; then
30482   echo $ECHO_N "(cached) $ECHO_C" >&6
30483 else
30484
30485                 ol_LIBS="$LIBS"
30486                 LIBS="$OL_ICULIBS $LIBS"
30487                 cat >conftest.$ac_ext <<_ACEOF
30488 /* confdefs.h.  */
30489 _ACEOF
30490 cat confdefs.h >>conftest.$ac_ext
30491 cat >>conftest.$ac_ext <<_ACEOF
30492 /* end confdefs.h.  */
30493
30494 #include <unicode/utypes.h>
30495
30496 int
30497 main ()
30498 {
30499
30500 (void) u_errorName(0);
30501
30502   ;
30503   return 0;
30504 }
30505 _ACEOF
30506 rm -f conftest.$ac_objext conftest$ac_exeext
30507 if { (ac_try="$ac_link"
30508 case "(($ac_try" in
30509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510   *) ac_try_echo=$ac_try;;
30511 esac
30512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513   (eval "$ac_link") 2>conftest.er1
30514   ac_status=$?
30515   grep -v '^ *+' conftest.er1 >conftest.err
30516   rm -f conftest.er1
30517   cat conftest.err >&5
30518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519   (exit $ac_status); } && {
30520          test -z "$ac_c_werror_flag" ||
30521          test ! -s conftest.err
30522        } && test -s conftest$ac_exeext &&
30523        $as_test_x conftest$ac_exeext; then
30524   ol_cv_lib_icu=yes
30525 else
30526   echo "$as_me: failed program was:" >&5
30527 sed 's/^/| /' conftest.$ac_ext >&5
30528
30529         ol_cv_lib_icu=no
30530 fi
30531
30532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30533       conftest$ac_exeext conftest.$ac_ext
30534                 LIBS="$ol_LIBS"
30535
30536 fi
30537 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30538 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30539
30540         if test $ol_cv_lib_icu != no ; then
30541                 ol_icu="$OL_ICULIBS"
30542
30543 cat >>confdefs.h <<\_ACEOF
30544 #define HAVE_ICU 1
30545 _ACEOF
30546
30547         fi
30548 fi
30549
30550 if test "$ol_icu" = no ; then
30551         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30552 echo "$as_me: WARNING: ICU not available" >&2;}
30553 else
30554         ICU_LIBS="$ol_icu"
30555 fi
30556 WITH_SASL=no
30557 ol_link_sasl=no
30558 ol_link_spasswd=no
30559 if test $ol_with_cyrus_sasl != no ; then
30560
30561
30562 for ac_header in sasl/sasl.h sasl.h
30563 do
30564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30566   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30569   echo $ECHO_N "(cached) $ECHO_C" >&6
30570 fi
30571 ac_res=`eval echo '${'$as_ac_Header'}'`
30572                { echo "$as_me:$LINENO: result: $ac_res" >&5
30573 echo "${ECHO_T}$ac_res" >&6; }
30574 else
30575   # Is the header compilable?
30576 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30578 cat >conftest.$ac_ext <<_ACEOF
30579 /* confdefs.h.  */
30580 _ACEOF
30581 cat confdefs.h >>conftest.$ac_ext
30582 cat >>conftest.$ac_ext <<_ACEOF
30583 /* end confdefs.h.  */
30584 $ac_includes_default
30585 #include <$ac_header>
30586 _ACEOF
30587 rm -f conftest.$ac_objext
30588 if { (ac_try="$ac_compile"
30589 case "(($ac_try" in
30590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591   *) ac_try_echo=$ac_try;;
30592 esac
30593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30594   (eval "$ac_compile") 2>conftest.er1
30595   ac_status=$?
30596   grep -v '^ *+' conftest.er1 >conftest.err
30597   rm -f conftest.er1
30598   cat conftest.err >&5
30599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600   (exit $ac_status); } && {
30601          test -z "$ac_c_werror_flag" ||
30602          test ! -s conftest.err
30603        } && test -s conftest.$ac_objext; then
30604   ac_header_compiler=yes
30605 else
30606   echo "$as_me: failed program was:" >&5
30607 sed 's/^/| /' conftest.$ac_ext >&5
30608
30609         ac_header_compiler=no
30610 fi
30611
30612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30614 echo "${ECHO_T}$ac_header_compiler" >&6; }
30615
30616 # Is the header present?
30617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30619 cat >conftest.$ac_ext <<_ACEOF
30620 /* confdefs.h.  */
30621 _ACEOF
30622 cat confdefs.h >>conftest.$ac_ext
30623 cat >>conftest.$ac_ext <<_ACEOF
30624 /* end confdefs.h.  */
30625 #include <$ac_header>
30626 _ACEOF
30627 if { (ac_try="$ac_cpp conftest.$ac_ext"
30628 case "(($ac_try" in
30629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30630   *) ac_try_echo=$ac_try;;
30631 esac
30632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30634   ac_status=$?
30635   grep -v '^ *+' conftest.er1 >conftest.err
30636   rm -f conftest.er1
30637   cat conftest.err >&5
30638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639   (exit $ac_status); } >/dev/null && {
30640          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30641          test ! -s conftest.err
30642        }; then
30643   ac_header_preproc=yes
30644 else
30645   echo "$as_me: failed program was:" >&5
30646 sed 's/^/| /' conftest.$ac_ext >&5
30647
30648   ac_header_preproc=no
30649 fi
30650
30651 rm -f conftest.err conftest.$ac_ext
30652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30653 echo "${ECHO_T}$ac_header_preproc" >&6; }
30654
30655 # So?  What about this header?
30656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30657   yes:no: )
30658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30662     ac_header_preproc=yes
30663     ;;
30664   no:yes:* )
30665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30677     ( cat <<\_ASBOX
30678 ## --------------------------------------------- ##
30679 ## Report this to <http://www.openldap.org/its/> ##
30680 ## --------------------------------------------- ##
30681 _ASBOX
30682      ) | sed "s/^/$as_me: WARNING:     /" >&2
30683     ;;
30684 esac
30685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30688   echo $ECHO_N "(cached) $ECHO_C" >&6
30689 else
30690   eval "$as_ac_Header=\$ac_header_preproc"
30691 fi
30692 ac_res=`eval echo '${'$as_ac_Header'}'`
30693                { echo "$as_me:$LINENO: result: $ac_res" >&5
30694 echo "${ECHO_T}$ac_res" >&6; }
30695
30696 fi
30697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30698   cat >>confdefs.h <<_ACEOF
30699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30700 _ACEOF
30701
30702 fi
30703
30704 done
30705
30706
30707         if test $ac_cv_header_sasl_sasl_h = yes ||
30708            test $ac_cv_header_sasl_h = yes; then
30709                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30710 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30711 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30712   echo $ECHO_N "(cached) $ECHO_C" >&6
30713 else
30714   ac_check_lib_save_LIBS=$LIBS
30715 LIBS="-lsasl2  $LIBS"
30716 cat >conftest.$ac_ext <<_ACEOF
30717 /* confdefs.h.  */
30718 _ACEOF
30719 cat confdefs.h >>conftest.$ac_ext
30720 cat >>conftest.$ac_ext <<_ACEOF
30721 /* end confdefs.h.  */
30722
30723 /* Override any GCC internal prototype to avoid an error.
30724    Use char because int might match the return type of a GCC
30725    builtin and then its argument prototype would still apply.  */
30726 #ifdef __cplusplus
30727 extern "C"
30728 #endif
30729 char sasl_client_init ();
30730 int
30731 main ()
30732 {
30733 return sasl_client_init ();
30734   ;
30735   return 0;
30736 }
30737 _ACEOF
30738 rm -f conftest.$ac_objext conftest$ac_exeext
30739 if { (ac_try="$ac_link"
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_link") 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_exeext &&
30755        $as_test_x conftest$ac_exeext; then
30756   ac_cv_lib_sasl2_sasl_client_init=yes
30757 else
30758   echo "$as_me: failed program was:" >&5
30759 sed 's/^/| /' conftest.$ac_ext >&5
30760
30761         ac_cv_lib_sasl2_sasl_client_init=no
30762 fi
30763
30764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30765       conftest$ac_exeext conftest.$ac_ext
30766 LIBS=$ac_check_lib_save_LIBS
30767 fi
30768 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30769 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30770 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30771   ol_link_sasl="-lsasl2"
30772 else
30773   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30774 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30775 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30776   echo $ECHO_N "(cached) $ECHO_C" >&6
30777 else
30778   ac_check_lib_save_LIBS=$LIBS
30779 LIBS="-lsasl  $LIBS"
30780 cat >conftest.$ac_ext <<_ACEOF
30781 /* confdefs.h.  */
30782 _ACEOF
30783 cat confdefs.h >>conftest.$ac_ext
30784 cat >>conftest.$ac_ext <<_ACEOF
30785 /* end confdefs.h.  */
30786
30787 /* Override any GCC internal prototype to avoid an error.
30788    Use char because int might match the return type of a GCC
30789    builtin and then its argument prototype would still apply.  */
30790 #ifdef __cplusplus
30791 extern "C"
30792 #endif
30793 char sasl_client_init ();
30794 int
30795 main ()
30796 {
30797 return sasl_client_init ();
30798   ;
30799   return 0;
30800 }
30801 _ACEOF
30802 rm -f conftest.$ac_objext conftest$ac_exeext
30803 if { (ac_try="$ac_link"
30804 case "(($ac_try" in
30805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30806   *) ac_try_echo=$ac_try;;
30807 esac
30808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30809   (eval "$ac_link") 2>conftest.er1
30810   ac_status=$?
30811   grep -v '^ *+' conftest.er1 >conftest.err
30812   rm -f conftest.er1
30813   cat conftest.err >&5
30814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815   (exit $ac_status); } && {
30816          test -z "$ac_c_werror_flag" ||
30817          test ! -s conftest.err
30818        } && test -s conftest$ac_exeext &&
30819        $as_test_x conftest$ac_exeext; then
30820   ac_cv_lib_sasl_sasl_client_init=yes
30821 else
30822   echo "$as_me: failed program was:" >&5
30823 sed 's/^/| /' conftest.$ac_ext >&5
30824
30825         ac_cv_lib_sasl_sasl_client_init=no
30826 fi
30827
30828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30829       conftest$ac_exeext conftest.$ac_ext
30830 LIBS=$ac_check_lib_save_LIBS
30831 fi
30832 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30833 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30834 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30835   ol_link_sasl="-lsasl"
30836 fi
30837
30838 fi
30839
30840         fi
30841
30842         if test $ol_link_sasl = no ; then
30843                 if test $ol_with_cyrus_sasl != auto ; then
30844                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30845 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30846    { (exit 1); exit 1; }; }
30847                 else
30848                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30849 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30850                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30851 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30852                         if test $ol_link_tls = no ; then
30853                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30854 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30855                         fi
30856                 fi
30857         else
30858                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30859 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30860 if test "${ol_cv_sasl_compat+set}" = set; then
30861   echo $ECHO_N "(cached) $ECHO_C" >&6
30862 else
30863
30864         cat >conftest.$ac_ext <<_ACEOF
30865 /* confdefs.h.  */
30866 _ACEOF
30867 cat confdefs.h >>conftest.$ac_ext
30868 cat >>conftest.$ac_ext <<_ACEOF
30869 /* end confdefs.h.  */
30870
30871 #ifdef HAVE_SASL_SASL_H
30872 #include <sasl/sasl.h>
30873 #else
30874 #include <sasl.h>
30875 #endif
30876
30877 /* Require 2.1.15+ */
30878 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
30879         char *__sasl_compat = "2.2+ or better okay (we guess)";
30880 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
30881         && SASL_VERSION_STEP >=15
30882         char *__sasl_compat = "2.1.15+ or better okay";
30883 #endif
30884
30885 _ACEOF
30886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30887   $EGREP "__sasl_compat" >/dev/null 2>&1; then
30888   ol_cv_sasl_compat=yes
30889 else
30890   ol_cv_sasl_compat=no
30891 fi
30892 rm -f conftest*
30893
30894 fi
30895 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30896 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30897
30898                 if test $ol_cv_sasl_compat = no ; then
30899                         ol_link_sasl=no
30900                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30901 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30902    { (exit 1); exit 1; }; }
30903                 fi
30904
30905
30906 cat >>confdefs.h <<\_ACEOF
30907 #define HAVE_CYRUS_SASL 1
30908 _ACEOF
30909
30910                 SASL_LIBS="$ol_link_sasl"
30911                 if test $ol_enable_spasswd != no ; then
30912                         ol_link_spasswd=yes
30913                 fi
30914
30915                 ac_save_LIBS="$LIBS"
30916                 LIBS="$LIBS $ol_link_sasl"
30917                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30918 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30919 if test "${ac_cv_func_sasl_version+set}" = set; then
30920   echo $ECHO_N "(cached) $ECHO_C" >&6
30921 else
30922   cat >conftest.$ac_ext <<_ACEOF
30923 /* confdefs.h.  */
30924 _ACEOF
30925 cat confdefs.h >>conftest.$ac_ext
30926 cat >>conftest.$ac_ext <<_ACEOF
30927 /* end confdefs.h.  */
30928 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30930 #define sasl_version innocuous_sasl_version
30931
30932 /* System header to define __stub macros and hopefully few prototypes,
30933     which can conflict with char sasl_version (); below.
30934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30935     <limits.h> exists even on freestanding compilers.  */
30936
30937 #ifdef __STDC__
30938 # include <limits.h>
30939 #else
30940 # include <assert.h>
30941 #endif
30942
30943 #undef sasl_version
30944
30945 /* Override any GCC internal prototype to avoid an error.
30946    Use char because int might match the return type of a GCC
30947    builtin and then its argument prototype would still apply.  */
30948 #ifdef __cplusplus
30949 extern "C"
30950 #endif
30951 char sasl_version ();
30952 /* The GNU C library defines this for functions which it implements
30953     to always fail with ENOSYS.  Some functions are actually named
30954     something starting with __ and the normal name is an alias.  */
30955 #if defined __stub_sasl_version || defined __stub___sasl_version
30956 choke me
30957 #endif
30958
30959 int
30960 main ()
30961 {
30962 return sasl_version ();
30963   ;
30964   return 0;
30965 }
30966 _ACEOF
30967 rm -f conftest.$ac_objext conftest$ac_exeext
30968 if { (ac_try="$ac_link"
30969 case "(($ac_try" in
30970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30971   *) ac_try_echo=$ac_try;;
30972 esac
30973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30974   (eval "$ac_link") 2>conftest.er1
30975   ac_status=$?
30976   grep -v '^ *+' conftest.er1 >conftest.err
30977   rm -f conftest.er1
30978   cat conftest.err >&5
30979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980   (exit $ac_status); } && {
30981          test -z "$ac_c_werror_flag" ||
30982          test ! -s conftest.err
30983        } && test -s conftest$ac_exeext &&
30984        $as_test_x conftest$ac_exeext; then
30985   ac_cv_func_sasl_version=yes
30986 else
30987   echo "$as_me: failed program was:" >&5
30988 sed 's/^/| /' conftest.$ac_ext >&5
30989
30990         ac_cv_func_sasl_version=no
30991 fi
30992
30993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30994       conftest$ac_exeext conftest.$ac_ext
30995 fi
30996 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30997 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
30998 if test $ac_cv_func_sasl_version = yes; then
30999
31000 cat >>confdefs.h <<\_ACEOF
31001 #define HAVE_SASL_VERSION 1
31002 _ACEOF
31003
31004 fi
31005
31006                 LIBS="$ac_save_LIBS"
31007
31008                 WITH_SASL=yes
31009         fi
31010
31011 else
31012         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31013 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31014         if test $ol_link_tls = no ; then
31015                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31016 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31017         fi
31018 fi
31019
31020 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31021         dev=no
31022         if test -r /dev/urandom ; then
31023                 dev="/dev/urandom";
31024         elif test -r /idev/urandom ; then
31025                 dev="/idev/urandom";
31026         elif test -r /dev/srandom ; then
31027                 dev="/dev/srandom";
31028         elif test -r /dev/random ; then
31029                 dev="/dev/random";
31030         elif test -r /idev/random ; then
31031                 dev="/idev/random";
31032         fi
31033
31034         if test $dev != no ; then
31035
31036 cat >>confdefs.h <<_ACEOF
31037 #define URANDOM_DEVICE "$dev"
31038 _ACEOF
31039
31040         fi
31041 fi
31042
31043 ol_link_fetch=no
31044 if test $ol_with_fetch != no ; then
31045         ol_LIBS=$LIBS
31046 LIBS="-lfetch -lcom_err $LIBS"
31047 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31048 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31049 if test "${ol_cv_lib_fetch+set}" = set; then
31050   echo $ECHO_N "(cached) $ECHO_C" >&6
31051 else
31052
31053         cat >conftest.$ac_ext <<_ACEOF
31054 /* confdefs.h.  */
31055 _ACEOF
31056 cat confdefs.h >>conftest.$ac_ext
31057 cat >>conftest.$ac_ext <<_ACEOF
31058 /* end confdefs.h.  */
31059
31060 #ifdef HAVE_SYS_PARAM_H
31061 #include <sys/param.h>
31062 #endif
31063 #include <stdio.h>
31064 #include <fetch.h>
31065 int
31066 main ()
31067 {
31068 struct url *u = fetchParseURL("file:///");
31069   ;
31070   return 0;
31071 }
31072 _ACEOF
31073 rm -f conftest.$ac_objext conftest$ac_exeext
31074 if { (ac_try="$ac_link"
31075 case "(($ac_try" in
31076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31077   *) ac_try_echo=$ac_try;;
31078 esac
31079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31080   (eval "$ac_link") 2>conftest.er1
31081   ac_status=$?
31082   grep -v '^ *+' conftest.er1 >conftest.err
31083   rm -f conftest.er1
31084   cat conftest.err >&5
31085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086   (exit $ac_status); } && {
31087          test -z "$ac_c_werror_flag" ||
31088          test ! -s conftest.err
31089        } && test -s conftest$ac_exeext &&
31090        $as_test_x conftest$ac_exeext; then
31091   ol_cv_lib_fetch=yes
31092 else
31093   echo "$as_me: failed program was:" >&5
31094 sed 's/^/| /' conftest.$ac_ext >&5
31095
31096         ol_cv_lib_fetch=no
31097 fi
31098
31099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31100       conftest$ac_exeext conftest.$ac_ext
31101 fi
31102 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31103 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31104 LIBS=$ol_LIBS
31105 if test $ol_cv_lib_fetch != no ; then
31106         ol_link_fetch="-lfetch -lcom_err"
31107
31108 cat >>confdefs.h <<\_ACEOF
31109 #define HAVE_FETCH 1
31110 _ACEOF
31111
31112 fi
31113
31114
31115         if test $ol_cv_lib_fetch != no ; then
31116                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31117                 ol_link_fetch=freebsd
31118
31119         elif test $ol_with_fetch != auto ; then
31120                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31121 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31122    { (exit 1); exit 1; }; }
31123         fi
31124 fi
31125
31126 if test $ol_enable_crypt != no ; then
31127         save_LIBS="$LIBS"
31128         LIBS="$TLS_LIBS $LIBS"
31129
31130         { echo "$as_me:$LINENO: checking for crypt" >&5
31131 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31132 if test "${ac_cv_func_crypt+set}" = set; then
31133   echo $ECHO_N "(cached) $ECHO_C" >&6
31134 else
31135   cat >conftest.$ac_ext <<_ACEOF
31136 /* confdefs.h.  */
31137 _ACEOF
31138 cat confdefs.h >>conftest.$ac_ext
31139 cat >>conftest.$ac_ext <<_ACEOF
31140 /* end confdefs.h.  */
31141 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31143 #define crypt innocuous_crypt
31144
31145 /* System header to define __stub macros and hopefully few prototypes,
31146     which can conflict with char crypt (); below.
31147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31148     <limits.h> exists even on freestanding compilers.  */
31149
31150 #ifdef __STDC__
31151 # include <limits.h>
31152 #else
31153 # include <assert.h>
31154 #endif
31155
31156 #undef crypt
31157
31158 /* Override any GCC internal prototype to avoid an error.
31159    Use char because int might match the return type of a GCC
31160    builtin and then its argument prototype would still apply.  */
31161 #ifdef __cplusplus
31162 extern "C"
31163 #endif
31164 char crypt ();
31165 /* The GNU C library defines this for functions which it implements
31166     to always fail with ENOSYS.  Some functions are actually named
31167     something starting with __ and the normal name is an alias.  */
31168 #if defined __stub_crypt || defined __stub___crypt
31169 choke me
31170 #endif
31171
31172 int
31173 main ()
31174 {
31175 return crypt ();
31176   ;
31177   return 0;
31178 }
31179 _ACEOF
31180 rm -f conftest.$ac_objext conftest$ac_exeext
31181 if { (ac_try="$ac_link"
31182 case "(($ac_try" in
31183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31184   *) ac_try_echo=$ac_try;;
31185 esac
31186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31187   (eval "$ac_link") 2>conftest.er1
31188   ac_status=$?
31189   grep -v '^ *+' conftest.er1 >conftest.err
31190   rm -f conftest.er1
31191   cat conftest.err >&5
31192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193   (exit $ac_status); } && {
31194          test -z "$ac_c_werror_flag" ||
31195          test ! -s conftest.err
31196        } && test -s conftest$ac_exeext &&
31197        $as_test_x conftest$ac_exeext; then
31198   ac_cv_func_crypt=yes
31199 else
31200   echo "$as_me: failed program was:" >&5
31201 sed 's/^/| /' conftest.$ac_ext >&5
31202
31203         ac_cv_func_crypt=no
31204 fi
31205
31206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31207       conftest$ac_exeext conftest.$ac_ext
31208 fi
31209 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31210 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31211 if test $ac_cv_func_crypt = yes; then
31212   have_crypt=yes
31213 else
31214
31215                 LIBS="$save_LIBS"
31216                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31217 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31218 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31219   echo $ECHO_N "(cached) $ECHO_C" >&6
31220 else
31221   ac_check_lib_save_LIBS=$LIBS
31222 LIBS="-lcrypt  $LIBS"
31223 cat >conftest.$ac_ext <<_ACEOF
31224 /* confdefs.h.  */
31225 _ACEOF
31226 cat confdefs.h >>conftest.$ac_ext
31227 cat >>conftest.$ac_ext <<_ACEOF
31228 /* end confdefs.h.  */
31229
31230 /* Override any GCC internal prototype to avoid an error.
31231    Use char because int might match the return type of a GCC
31232    builtin and then its argument prototype would still apply.  */
31233 #ifdef __cplusplus
31234 extern "C"
31235 #endif
31236 char crypt ();
31237 int
31238 main ()
31239 {
31240 return crypt ();
31241   ;
31242   return 0;
31243 }
31244 _ACEOF
31245 rm -f conftest.$ac_objext conftest$ac_exeext
31246 if { (ac_try="$ac_link"
31247 case "(($ac_try" in
31248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249   *) ac_try_echo=$ac_try;;
31250 esac
31251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252   (eval "$ac_link") 2>conftest.er1
31253   ac_status=$?
31254   grep -v '^ *+' conftest.er1 >conftest.err
31255   rm -f conftest.er1
31256   cat conftest.err >&5
31257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258   (exit $ac_status); } && {
31259          test -z "$ac_c_werror_flag" ||
31260          test ! -s conftest.err
31261        } && test -s conftest$ac_exeext &&
31262        $as_test_x conftest$ac_exeext; then
31263   ac_cv_lib_crypt_crypt=yes
31264 else
31265   echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31267
31268         ac_cv_lib_crypt_crypt=no
31269 fi
31270
31271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31272       conftest$ac_exeext conftest.$ac_ext
31273 LIBS=$ac_check_lib_save_LIBS
31274 fi
31275 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31276 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31277 if test $ac_cv_lib_crypt_crypt = yes; then
31278   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31279                         have_crypt=yes
31280 else
31281   have_crypt=no
31282 fi
31283
31284 fi
31285
31286
31287         LIBS="$save_LIBS"
31288
31289         if test $have_crypt = yes ; then
31290
31291 cat >>confdefs.h <<\_ACEOF
31292 #define HAVE_CRYPT 1
31293 _ACEOF
31294
31295         else
31296                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31297 echo "$as_me: WARNING: could not find crypt" >&2;}
31298                 if test $ol_enable_crypt = yes ; then
31299                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31300 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31301    { (exit 1); exit 1; }; }
31302                 fi
31303
31304                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31305 echo "$as_me: WARNING: disabling crypt support" >&2;}
31306                 ol_enable_crypt=no
31307         fi
31308 fi
31309
31310 if test $ol_enable_proctitle != no ; then
31311         { echo "$as_me:$LINENO: checking for setproctitle" >&5
31312 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31313 if test "${ac_cv_func_setproctitle+set}" = set; then
31314   echo $ECHO_N "(cached) $ECHO_C" >&6
31315 else
31316   cat >conftest.$ac_ext <<_ACEOF
31317 /* confdefs.h.  */
31318 _ACEOF
31319 cat confdefs.h >>conftest.$ac_ext
31320 cat >>conftest.$ac_ext <<_ACEOF
31321 /* end confdefs.h.  */
31322 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31324 #define setproctitle innocuous_setproctitle
31325
31326 /* System header to define __stub macros and hopefully few prototypes,
31327     which can conflict with char setproctitle (); below.
31328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31329     <limits.h> exists even on freestanding compilers.  */
31330
31331 #ifdef __STDC__
31332 # include <limits.h>
31333 #else
31334 # include <assert.h>
31335 #endif
31336
31337 #undef setproctitle
31338
31339 /* Override any GCC internal prototype to avoid an error.
31340    Use char because int might match the return type of a GCC
31341    builtin and then its argument prototype would still apply.  */
31342 #ifdef __cplusplus
31343 extern "C"
31344 #endif
31345 char setproctitle ();
31346 /* The GNU C library defines this for functions which it implements
31347     to always fail with ENOSYS.  Some functions are actually named
31348     something starting with __ and the normal name is an alias.  */
31349 #if defined __stub_setproctitle || defined __stub___setproctitle
31350 choke me
31351 #endif
31352
31353 int
31354 main ()
31355 {
31356 return setproctitle ();
31357   ;
31358   return 0;
31359 }
31360 _ACEOF
31361 rm -f conftest.$ac_objext conftest$ac_exeext
31362 if { (ac_try="$ac_link"
31363 case "(($ac_try" in
31364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31365   *) ac_try_echo=$ac_try;;
31366 esac
31367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31368   (eval "$ac_link") 2>conftest.er1
31369   ac_status=$?
31370   grep -v '^ *+' conftest.er1 >conftest.err
31371   rm -f conftest.er1
31372   cat conftest.err >&5
31373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374   (exit $ac_status); } && {
31375          test -z "$ac_c_werror_flag" ||
31376          test ! -s conftest.err
31377        } && test -s conftest$ac_exeext &&
31378        $as_test_x conftest$ac_exeext; then
31379   ac_cv_func_setproctitle=yes
31380 else
31381   echo "$as_me: failed program was:" >&5
31382 sed 's/^/| /' conftest.$ac_ext >&5
31383
31384         ac_cv_func_setproctitle=no
31385 fi
31386
31387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31388       conftest$ac_exeext conftest.$ac_ext
31389 fi
31390 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31391 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31392 if test $ac_cv_func_setproctitle = yes; then
31393   have_setproctitle=yes
31394 else
31395
31396                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31397 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31398 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31399   echo $ECHO_N "(cached) $ECHO_C" >&6
31400 else
31401   ac_check_lib_save_LIBS=$LIBS
31402 LIBS="-lutil  $LIBS"
31403 cat >conftest.$ac_ext <<_ACEOF
31404 /* confdefs.h.  */
31405 _ACEOF
31406 cat confdefs.h >>conftest.$ac_ext
31407 cat >>conftest.$ac_ext <<_ACEOF
31408 /* end confdefs.h.  */
31409
31410 /* Override any GCC internal prototype to avoid an error.
31411    Use char because int might match the return type of a GCC
31412    builtin and then its argument prototype would still apply.  */
31413 #ifdef __cplusplus
31414 extern "C"
31415 #endif
31416 char setproctitle ();
31417 int
31418 main ()
31419 {
31420 return setproctitle ();
31421   ;
31422   return 0;
31423 }
31424 _ACEOF
31425 rm -f conftest.$ac_objext conftest$ac_exeext
31426 if { (ac_try="$ac_link"
31427 case "(($ac_try" in
31428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429   *) ac_try_echo=$ac_try;;
31430 esac
31431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432   (eval "$ac_link") 2>conftest.er1
31433   ac_status=$?
31434   grep -v '^ *+' conftest.er1 >conftest.err
31435   rm -f conftest.er1
31436   cat conftest.err >&5
31437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438   (exit $ac_status); } && {
31439          test -z "$ac_c_werror_flag" ||
31440          test ! -s conftest.err
31441        } && test -s conftest$ac_exeext &&
31442        $as_test_x conftest$ac_exeext; then
31443   ac_cv_lib_util_setproctitle=yes
31444 else
31445   echo "$as_me: failed program was:" >&5
31446 sed 's/^/| /' conftest.$ac_ext >&5
31447
31448         ac_cv_lib_util_setproctitle=no
31449 fi
31450
31451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31452       conftest$ac_exeext conftest.$ac_ext
31453 LIBS=$ac_check_lib_save_LIBS
31454 fi
31455 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31456 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31457 if test $ac_cv_lib_util_setproctitle = yes; then
31458   have_setproctitle=yes
31459                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31460 else
31461   have_setproctitle=no
31462                         case " $LIBOBJS " in
31463   *" setproctitle.$ac_objext "* ) ;;
31464   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31465  ;;
31466 esac
31467
31468                         LIBSRCS="$LIBSRCS setproctitle.c"
31469 fi
31470
31471 fi
31472
31473
31474         if test $have_setproctitle = yes ; then
31475
31476 cat >>confdefs.h <<\_ACEOF
31477 #define HAVE_SETPROCTITLE 1
31478 _ACEOF
31479
31480         fi
31481 fi
31482
31483 if test $ol_enable_slp != no ; then
31484
31485 for ac_header in slp.h
31486 do
31487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31489   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31492   echo $ECHO_N "(cached) $ECHO_C" >&6
31493 fi
31494 ac_res=`eval echo '${'$as_ac_Header'}'`
31495                { echo "$as_me:$LINENO: result: $ac_res" >&5
31496 echo "${ECHO_T}$ac_res" >&6; }
31497 else
31498   # Is the header compilable?
31499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31501 cat >conftest.$ac_ext <<_ACEOF
31502 /* confdefs.h.  */
31503 _ACEOF
31504 cat confdefs.h >>conftest.$ac_ext
31505 cat >>conftest.$ac_ext <<_ACEOF
31506 /* end confdefs.h.  */
31507 $ac_includes_default
31508 #include <$ac_header>
31509 _ACEOF
31510 rm -f conftest.$ac_objext
31511 if { (ac_try="$ac_compile"
31512 case "(($ac_try" in
31513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31514   *) ac_try_echo=$ac_try;;
31515 esac
31516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31517   (eval "$ac_compile") 2>conftest.er1
31518   ac_status=$?
31519   grep -v '^ *+' conftest.er1 >conftest.err
31520   rm -f conftest.er1
31521   cat conftest.err >&5
31522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523   (exit $ac_status); } && {
31524          test -z "$ac_c_werror_flag" ||
31525          test ! -s conftest.err
31526        } && test -s conftest.$ac_objext; then
31527   ac_header_compiler=yes
31528 else
31529   echo "$as_me: failed program was:" >&5
31530 sed 's/^/| /' conftest.$ac_ext >&5
31531
31532         ac_header_compiler=no
31533 fi
31534
31535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31537 echo "${ECHO_T}$ac_header_compiler" >&6; }
31538
31539 # Is the header present?
31540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31542 cat >conftest.$ac_ext <<_ACEOF
31543 /* confdefs.h.  */
31544 _ACEOF
31545 cat confdefs.h >>conftest.$ac_ext
31546 cat >>conftest.$ac_ext <<_ACEOF
31547 /* end confdefs.h.  */
31548 #include <$ac_header>
31549 _ACEOF
31550 if { (ac_try="$ac_cpp conftest.$ac_ext"
31551 case "(($ac_try" in
31552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31553   *) ac_try_echo=$ac_try;;
31554 esac
31555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31557   ac_status=$?
31558   grep -v '^ *+' conftest.er1 >conftest.err
31559   rm -f conftest.er1
31560   cat conftest.err >&5
31561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562   (exit $ac_status); } >/dev/null && {
31563          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31564          test ! -s conftest.err
31565        }; then
31566   ac_header_preproc=yes
31567 else
31568   echo "$as_me: failed program was:" >&5
31569 sed 's/^/| /' conftest.$ac_ext >&5
31570
31571   ac_header_preproc=no
31572 fi
31573
31574 rm -f conftest.err conftest.$ac_ext
31575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31576 echo "${ECHO_T}$ac_header_preproc" >&6; }
31577
31578 # So?  What about this header?
31579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31580   yes:no: )
31581     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31585     ac_header_preproc=yes
31586     ;;
31587   no:yes:* )
31588     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31590     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31591 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31592     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31594     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31595 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31598     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31600     ( cat <<\_ASBOX
31601 ## --------------------------------------------- ##
31602 ## Report this to <http://www.openldap.org/its/> ##
31603 ## --------------------------------------------- ##
31604 _ASBOX
31605      ) | sed "s/^/$as_me: WARNING:     /" >&2
31606     ;;
31607 esac
31608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31611   echo $ECHO_N "(cached) $ECHO_C" >&6
31612 else
31613   eval "$as_ac_Header=\$ac_header_preproc"
31614 fi
31615 ac_res=`eval echo '${'$as_ac_Header'}'`
31616                { echo "$as_me:$LINENO: result: $ac_res" >&5
31617 echo "${ECHO_T}$ac_res" >&6; }
31618
31619 fi
31620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31621   cat >>confdefs.h <<_ACEOF
31622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31623 _ACEOF
31624
31625 fi
31626
31627 done
31628
31629
31630         if test $ac_cv_header_slp_h = yes ; then
31631                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31632 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31633 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31634   echo $ECHO_N "(cached) $ECHO_C" >&6
31635 else
31636   ac_check_lib_save_LIBS=$LIBS
31637 LIBS="-lslp  $LIBS"
31638 cat >conftest.$ac_ext <<_ACEOF
31639 /* confdefs.h.  */
31640 _ACEOF
31641 cat confdefs.h >>conftest.$ac_ext
31642 cat >>conftest.$ac_ext <<_ACEOF
31643 /* end confdefs.h.  */
31644
31645 /* Override any GCC internal prototype to avoid an error.
31646    Use char because int might match the return type of a GCC
31647    builtin and then its argument prototype would still apply.  */
31648 #ifdef __cplusplus
31649 extern "C"
31650 #endif
31651 char SLPOpen ();
31652 int
31653 main ()
31654 {
31655 return SLPOpen ();
31656   ;
31657   return 0;
31658 }
31659 _ACEOF
31660 rm -f conftest.$ac_objext conftest$ac_exeext
31661 if { (ac_try="$ac_link"
31662 case "(($ac_try" in
31663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664   *) ac_try_echo=$ac_try;;
31665 esac
31666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667   (eval "$ac_link") 2>conftest.er1
31668   ac_status=$?
31669   grep -v '^ *+' conftest.er1 >conftest.err
31670   rm -f conftest.er1
31671   cat conftest.err >&5
31672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673   (exit $ac_status); } && {
31674          test -z "$ac_c_werror_flag" ||
31675          test ! -s conftest.err
31676        } && test -s conftest$ac_exeext &&
31677        $as_test_x conftest$ac_exeext; then
31678   ac_cv_lib_slp_SLPOpen=yes
31679 else
31680   echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.$ac_ext >&5
31682
31683         ac_cv_lib_slp_SLPOpen=no
31684 fi
31685
31686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31687       conftest$ac_exeext conftest.$ac_ext
31688 LIBS=$ac_check_lib_save_LIBS
31689 fi
31690 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31691 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31692 if test $ac_cv_lib_slp_SLPOpen = yes; then
31693   have_slp=yes
31694 else
31695   have_slp=no
31696 fi
31697
31698                 if test $have_slp = yes ; then
31699
31700 cat >>confdefs.h <<\_ACEOF
31701 #define HAVE_SLP 1
31702 _ACEOF
31703
31704                         SLAPD_SLP_LIBS=-lslp
31705                 fi
31706
31707         elif test $ol_enable_slp = yes ; then
31708                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31709 echo "$as_me: error: SLP not found" >&2;}
31710    { (exit 1); exit 1; }; }
31711         fi
31712 fi
31713
31714
31715 { echo "$as_me:$LINENO: checking for mode_t" >&5
31716 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31717 if test "${ac_cv_type_mode_t+set}" = set; then
31718   echo $ECHO_N "(cached) $ECHO_C" >&6
31719 else
31720   cat >conftest.$ac_ext <<_ACEOF
31721 /* confdefs.h.  */
31722 _ACEOF
31723 cat confdefs.h >>conftest.$ac_ext
31724 cat >>conftest.$ac_ext <<_ACEOF
31725 /* end confdefs.h.  */
31726 $ac_includes_default
31727 typedef mode_t ac__type_new_;
31728 int
31729 main ()
31730 {
31731 if ((ac__type_new_ *) 0)
31732   return 0;
31733 if (sizeof (ac__type_new_))
31734   return 0;
31735   ;
31736   return 0;
31737 }
31738 _ACEOF
31739 rm -f conftest.$ac_objext
31740 if { (ac_try="$ac_compile"
31741 case "(($ac_try" in
31742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31743   *) ac_try_echo=$ac_try;;
31744 esac
31745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31746   (eval "$ac_compile") 2>conftest.er1
31747   ac_status=$?
31748   grep -v '^ *+' conftest.er1 >conftest.err
31749   rm -f conftest.er1
31750   cat conftest.err >&5
31751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752   (exit $ac_status); } && {
31753          test -z "$ac_c_werror_flag" ||
31754          test ! -s conftest.err
31755        } && test -s conftest.$ac_objext; then
31756   ac_cv_type_mode_t=yes
31757 else
31758   echo "$as_me: failed program was:" >&5
31759 sed 's/^/| /' conftest.$ac_ext >&5
31760
31761         ac_cv_type_mode_t=no
31762 fi
31763
31764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31765 fi
31766 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31767 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31768 if test $ac_cv_type_mode_t = yes; then
31769   :
31770 else
31771
31772 cat >>confdefs.h <<_ACEOF
31773 #define mode_t int
31774 _ACEOF
31775
31776 fi
31777
31778 { echo "$as_me:$LINENO: checking for off_t" >&5
31779 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31780 if test "${ac_cv_type_off_t+set}" = set; then
31781   echo $ECHO_N "(cached) $ECHO_C" >&6
31782 else
31783   cat >conftest.$ac_ext <<_ACEOF
31784 /* confdefs.h.  */
31785 _ACEOF
31786 cat confdefs.h >>conftest.$ac_ext
31787 cat >>conftest.$ac_ext <<_ACEOF
31788 /* end confdefs.h.  */
31789 $ac_includes_default
31790 typedef off_t ac__type_new_;
31791 int
31792 main ()
31793 {
31794 if ((ac__type_new_ *) 0)
31795   return 0;
31796 if (sizeof (ac__type_new_))
31797   return 0;
31798   ;
31799   return 0;
31800 }
31801 _ACEOF
31802 rm -f conftest.$ac_objext
31803 if { (ac_try="$ac_compile"
31804 case "(($ac_try" in
31805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31806   *) ac_try_echo=$ac_try;;
31807 esac
31808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31809   (eval "$ac_compile") 2>conftest.er1
31810   ac_status=$?
31811   grep -v '^ *+' conftest.er1 >conftest.err
31812   rm -f conftest.er1
31813   cat conftest.err >&5
31814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815   (exit $ac_status); } && {
31816          test -z "$ac_c_werror_flag" ||
31817          test ! -s conftest.err
31818        } && test -s conftest.$ac_objext; then
31819   ac_cv_type_off_t=yes
31820 else
31821   echo "$as_me: failed program was:" >&5
31822 sed 's/^/| /' conftest.$ac_ext >&5
31823
31824         ac_cv_type_off_t=no
31825 fi
31826
31827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31828 fi
31829 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31830 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31831 if test $ac_cv_type_off_t = yes; then
31832   :
31833 else
31834
31835 cat >>confdefs.h <<_ACEOF
31836 #define off_t long
31837 _ACEOF
31838
31839 fi
31840
31841 { echo "$as_me:$LINENO: checking for pid_t" >&5
31842 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31843 if test "${ac_cv_type_pid_t+set}" = set; then
31844   echo $ECHO_N "(cached) $ECHO_C" >&6
31845 else
31846   cat >conftest.$ac_ext <<_ACEOF
31847 /* confdefs.h.  */
31848 _ACEOF
31849 cat confdefs.h >>conftest.$ac_ext
31850 cat >>conftest.$ac_ext <<_ACEOF
31851 /* end confdefs.h.  */
31852 $ac_includes_default
31853 typedef pid_t ac__type_new_;
31854 int
31855 main ()
31856 {
31857 if ((ac__type_new_ *) 0)
31858   return 0;
31859 if (sizeof (ac__type_new_))
31860   return 0;
31861   ;
31862   return 0;
31863 }
31864 _ACEOF
31865 rm -f conftest.$ac_objext
31866 if { (ac_try="$ac_compile"
31867 case "(($ac_try" in
31868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31869   *) ac_try_echo=$ac_try;;
31870 esac
31871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31872   (eval "$ac_compile") 2>conftest.er1
31873   ac_status=$?
31874   grep -v '^ *+' conftest.er1 >conftest.err
31875   rm -f conftest.er1
31876   cat conftest.err >&5
31877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31878   (exit $ac_status); } && {
31879          test -z "$ac_c_werror_flag" ||
31880          test ! -s conftest.err
31881        } && test -s conftest.$ac_objext; then
31882   ac_cv_type_pid_t=yes
31883 else
31884   echo "$as_me: failed program was:" >&5
31885 sed 's/^/| /' conftest.$ac_ext >&5
31886
31887         ac_cv_type_pid_t=no
31888 fi
31889
31890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31891 fi
31892 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31893 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31894 if test $ac_cv_type_pid_t = yes; then
31895   :
31896 else
31897
31898 cat >>confdefs.h <<_ACEOF
31899 #define pid_t int
31900 _ACEOF
31901
31902 fi
31903
31904 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31905 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31906 if test "${ac_cv_type_ssize_t+set}" = set; then
31907   echo $ECHO_N "(cached) $ECHO_C" >&6
31908 else
31909   cat >conftest.$ac_ext <<_ACEOF
31910 /* confdefs.h.  */
31911 _ACEOF
31912 cat confdefs.h >>conftest.$ac_ext
31913 cat >>conftest.$ac_ext <<_ACEOF
31914 /* end confdefs.h.  */
31915 $ac_includes_default
31916 typedef ssize_t ac__type_new_;
31917 int
31918 main ()
31919 {
31920 if ((ac__type_new_ *) 0)
31921   return 0;
31922 if (sizeof (ac__type_new_))
31923   return 0;
31924   ;
31925   return 0;
31926 }
31927 _ACEOF
31928 rm -f conftest.$ac_objext
31929 if { (ac_try="$ac_compile"
31930 case "(($ac_try" in
31931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932   *) ac_try_echo=$ac_try;;
31933 esac
31934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935   (eval "$ac_compile") 2>conftest.er1
31936   ac_status=$?
31937   grep -v '^ *+' conftest.er1 >conftest.err
31938   rm -f conftest.er1
31939   cat conftest.err >&5
31940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941   (exit $ac_status); } && {
31942          test -z "$ac_c_werror_flag" ||
31943          test ! -s conftest.err
31944        } && test -s conftest.$ac_objext; then
31945   ac_cv_type_ssize_t=yes
31946 else
31947   echo "$as_me: failed program was:" >&5
31948 sed 's/^/| /' conftest.$ac_ext >&5
31949
31950         ac_cv_type_ssize_t=no
31951 fi
31952
31953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31954 fi
31955 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31956 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31957 if test $ac_cv_type_ssize_t = yes; then
31958   :
31959 else
31960
31961 cat >>confdefs.h <<_ACEOF
31962 #define ssize_t signed int
31963 _ACEOF
31964
31965 fi
31966
31967 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31968 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31969 if test "${ac_cv_type_caddr_t+set}" = set; then
31970   echo $ECHO_N "(cached) $ECHO_C" >&6
31971 else
31972   cat >conftest.$ac_ext <<_ACEOF
31973 /* confdefs.h.  */
31974 _ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h.  */
31978 $ac_includes_default
31979 typedef caddr_t ac__type_new_;
31980 int
31981 main ()
31982 {
31983 if ((ac__type_new_ *) 0)
31984   return 0;
31985 if (sizeof (ac__type_new_))
31986   return 0;
31987   ;
31988   return 0;
31989 }
31990 _ACEOF
31991 rm -f conftest.$ac_objext
31992 if { (ac_try="$ac_compile"
31993 case "(($ac_try" in
31994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995   *) ac_try_echo=$ac_try;;
31996 esac
31997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31998   (eval "$ac_compile") 2>conftest.er1
31999   ac_status=$?
32000   grep -v '^ *+' conftest.er1 >conftest.err
32001   rm -f conftest.er1
32002   cat conftest.err >&5
32003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004   (exit $ac_status); } && {
32005          test -z "$ac_c_werror_flag" ||
32006          test ! -s conftest.err
32007        } && test -s conftest.$ac_objext; then
32008   ac_cv_type_caddr_t=yes
32009 else
32010   echo "$as_me: failed program was:" >&5
32011 sed 's/^/| /' conftest.$ac_ext >&5
32012
32013         ac_cv_type_caddr_t=no
32014 fi
32015
32016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32017 fi
32018 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32019 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32020 if test $ac_cv_type_caddr_t = yes; then
32021   :
32022 else
32023
32024 cat >>confdefs.h <<_ACEOF
32025 #define caddr_t char *
32026 _ACEOF
32027
32028 fi
32029
32030 { echo "$as_me:$LINENO: checking for size_t" >&5
32031 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32032 if test "${ac_cv_type_size_t+set}" = set; then
32033   echo $ECHO_N "(cached) $ECHO_C" >&6
32034 else
32035   cat >conftest.$ac_ext <<_ACEOF
32036 /* confdefs.h.  */
32037 _ACEOF
32038 cat confdefs.h >>conftest.$ac_ext
32039 cat >>conftest.$ac_ext <<_ACEOF
32040 /* end confdefs.h.  */
32041 $ac_includes_default
32042 typedef size_t ac__type_new_;
32043 int
32044 main ()
32045 {
32046 if ((ac__type_new_ *) 0)
32047   return 0;
32048 if (sizeof (ac__type_new_))
32049   return 0;
32050   ;
32051   return 0;
32052 }
32053 _ACEOF
32054 rm -f conftest.$ac_objext
32055 if { (ac_try="$ac_compile"
32056 case "(($ac_try" in
32057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32058   *) ac_try_echo=$ac_try;;
32059 esac
32060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32061   (eval "$ac_compile") 2>conftest.er1
32062   ac_status=$?
32063   grep -v '^ *+' conftest.er1 >conftest.err
32064   rm -f conftest.er1
32065   cat conftest.err >&5
32066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067   (exit $ac_status); } && {
32068          test -z "$ac_c_werror_flag" ||
32069          test ! -s conftest.err
32070        } && test -s conftest.$ac_objext; then
32071   ac_cv_type_size_t=yes
32072 else
32073   echo "$as_me: failed program was:" >&5
32074 sed 's/^/| /' conftest.$ac_ext >&5
32075
32076         ac_cv_type_size_t=no
32077 fi
32078
32079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32080 fi
32081 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32082 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32083 if test $ac_cv_type_size_t = yes; then
32084   :
32085 else
32086
32087 cat >>confdefs.h <<_ACEOF
32088 #define size_t unsigned
32089 _ACEOF
32090
32091 fi
32092
32093
32094 { echo "$as_me:$LINENO: checking for long long" >&5
32095 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32096 if test "${ac_cv_type_long_long+set}" = set; then
32097   echo $ECHO_N "(cached) $ECHO_C" >&6
32098 else
32099   cat >conftest.$ac_ext <<_ACEOF
32100 /* confdefs.h.  */
32101 _ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h.  */
32105 $ac_includes_default
32106 typedef long long ac__type_new_;
32107 int
32108 main ()
32109 {
32110 if ((ac__type_new_ *) 0)
32111   return 0;
32112 if (sizeof (ac__type_new_))
32113   return 0;
32114   ;
32115   return 0;
32116 }
32117 _ACEOF
32118 rm -f conftest.$ac_objext
32119 if { (ac_try="$ac_compile"
32120 case "(($ac_try" in
32121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32122   *) ac_try_echo=$ac_try;;
32123 esac
32124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32125   (eval "$ac_compile") 2>conftest.er1
32126   ac_status=$?
32127   grep -v '^ *+' conftest.er1 >conftest.err
32128   rm -f conftest.er1
32129   cat conftest.err >&5
32130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131   (exit $ac_status); } && {
32132          test -z "$ac_c_werror_flag" ||
32133          test ! -s conftest.err
32134        } && test -s conftest.$ac_objext; then
32135   ac_cv_type_long_long=yes
32136 else
32137   echo "$as_me: failed program was:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32139
32140         ac_cv_type_long_long=no
32141 fi
32142
32143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32144 fi
32145 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32146 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32147 if test $ac_cv_type_long_long = yes; then
32148
32149 cat >>confdefs.h <<_ACEOF
32150 #define HAVE_LONG_LONG 1
32151 _ACEOF
32152
32153
32154 fi
32155
32156 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32157 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32158 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32159   echo $ECHO_N "(cached) $ECHO_C" >&6
32160 else
32161   cat >conftest.$ac_ext <<_ACEOF
32162 /* confdefs.h.  */
32163 _ACEOF
32164 cat confdefs.h >>conftest.$ac_ext
32165 cat >>conftest.$ac_ext <<_ACEOF
32166 /* end confdefs.h.  */
32167 $ac_includes_default
32168 typedef ptrdiff_t ac__type_new_;
32169 int
32170 main ()
32171 {
32172 if ((ac__type_new_ *) 0)
32173   return 0;
32174 if (sizeof (ac__type_new_))
32175   return 0;
32176   ;
32177   return 0;
32178 }
32179 _ACEOF
32180 rm -f conftest.$ac_objext
32181 if { (ac_try="$ac_compile"
32182 case "(($ac_try" in
32183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32184   *) ac_try_echo=$ac_try;;
32185 esac
32186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32187   (eval "$ac_compile") 2>conftest.er1
32188   ac_status=$?
32189   grep -v '^ *+' conftest.er1 >conftest.err
32190   rm -f conftest.er1
32191   cat conftest.err >&5
32192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193   (exit $ac_status); } && {
32194          test -z "$ac_c_werror_flag" ||
32195          test ! -s conftest.err
32196        } && test -s conftest.$ac_objext; then
32197   ac_cv_type_ptrdiff_t=yes
32198 else
32199   echo "$as_me: failed program was:" >&5
32200 sed 's/^/| /' conftest.$ac_ext >&5
32201
32202         ac_cv_type_ptrdiff_t=no
32203 fi
32204
32205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32206 fi
32207 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32208 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32209 if test $ac_cv_type_ptrdiff_t = yes; then
32210
32211 cat >>confdefs.h <<_ACEOF
32212 #define HAVE_PTRDIFF_T 1
32213 _ACEOF
32214
32215
32216 fi
32217
32218
32219
32220 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32221 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32222 if test "${ac_cv_type_socklen_t+set}" = set; then
32223   echo $ECHO_N "(cached) $ECHO_C" >&6
32224 else
32225   cat >conftest.$ac_ext <<_ACEOF
32226 /* confdefs.h.  */
32227 _ACEOF
32228 cat confdefs.h >>conftest.$ac_ext
32229 cat >>conftest.$ac_ext <<_ACEOF
32230 /* end confdefs.h.  */
32231 $ac_includes_default
32232 #ifdef HAVE_SYS_SOCKET_H
32233 #include <sys/socket.h>
32234 #endif
32235
32236 typedef socklen_t ac__type_new_;
32237 int
32238 main ()
32239 {
32240 if ((ac__type_new_ *) 0)
32241   return 0;
32242 if (sizeof (ac__type_new_))
32243   return 0;
32244   ;
32245   return 0;
32246 }
32247 _ACEOF
32248 rm -f conftest.$ac_objext
32249 if { (ac_try="$ac_compile"
32250 case "(($ac_try" in
32251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32252   *) ac_try_echo=$ac_try;;
32253 esac
32254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32255   (eval "$ac_compile") 2>conftest.er1
32256   ac_status=$?
32257   grep -v '^ *+' conftest.er1 >conftest.err
32258   rm -f conftest.er1
32259   cat conftest.err >&5
32260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261   (exit $ac_status); } && {
32262          test -z "$ac_c_werror_flag" ||
32263          test ! -s conftest.err
32264        } && test -s conftest.$ac_objext; then
32265   ac_cv_type_socklen_t=yes
32266 else
32267   echo "$as_me: failed program was:" >&5
32268 sed 's/^/| /' conftest.$ac_ext >&5
32269
32270         ac_cv_type_socklen_t=no
32271 fi
32272
32273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32274 fi
32275 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32276 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32277
32278
32279 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32280 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32281 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32282   echo $ECHO_N "(cached) $ECHO_C" >&6
32283 else
32284
32285         set socklen_t int unsigned "unsigned long" long size_t
32286         test "$ac_cv_type_socklen_t" = yes || shift
32287         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32288         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32289                 cat >conftest.$ac_ext <<_ACEOF
32290 /* confdefs.h.  */
32291 _ACEOF
32292 cat confdefs.h >>conftest.$ac_ext
32293 cat >>conftest.$ac_ext <<_ACEOF
32294 /* end confdefs.h.  */
32295 $ac_includes_default
32296 #ifdef HAVE_SYS_SOCKET_H
32297 #include <sys/socket.h>
32298 #endif
32299 extern int accept(int s, $addrtype *ap, $lentype *lp);
32300
32301 int
32302 main ()
32303 {
32304
32305 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32306
32307   ;
32308   return 0;
32309 }
32310 _ACEOF
32311 rm -f conftest.$ac_objext
32312 if { (ac_try="$ac_compile"
32313 case "(($ac_try" in
32314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32315   *) ac_try_echo=$ac_try;;
32316 esac
32317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32318   (eval "$ac_compile") 2>conftest.er1
32319   ac_status=$?
32320   grep -v '^ *+' conftest.er1 >conftest.err
32321   rm -f conftest.er1
32322   cat conftest.err >&5
32323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324   (exit $ac_status); } && {
32325          test -z "$ac_c_werror_flag" ||
32326          test ! -s conftest.err
32327        } && test -s conftest.$ac_objext; then
32328   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32329 else
32330   echo "$as_me: failed program was:" >&5
32331 sed 's/^/| /' conftest.$ac_ext >&5
32332
32333
32334 fi
32335
32336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32337         done ; done
32338 fi
32339
32340 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32341 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32342
32343 cat >>confdefs.h <<_ACEOF
32344 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32345 _ACEOF
32346
32347
32348 if test "$ac_cv_type_socklen_t" != yes; then
32349
32350 cat >>confdefs.h <<_ACEOF
32351 #define socklen_t $ol_cv_type_ber_socklen_t
32352 _ACEOF
32353
32354 fi
32355
32356
32357 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32358 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32359 if test "${ac_cv_type_signal+set}" = set; then
32360   echo $ECHO_N "(cached) $ECHO_C" >&6
32361 else
32362   cat >conftest.$ac_ext <<_ACEOF
32363 /* confdefs.h.  */
32364 _ACEOF
32365 cat confdefs.h >>conftest.$ac_ext
32366 cat >>conftest.$ac_ext <<_ACEOF
32367 /* end confdefs.h.  */
32368 #include <sys/types.h>
32369 #include <signal.h>
32370
32371 int
32372 main ()
32373 {
32374 return *(signal (0, 0)) (0) == 1;
32375   ;
32376   return 0;
32377 }
32378 _ACEOF
32379 rm -f conftest.$ac_objext
32380 if { (ac_try="$ac_compile"
32381 case "(($ac_try" in
32382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383   *) ac_try_echo=$ac_try;;
32384 esac
32385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386   (eval "$ac_compile") 2>conftest.er1
32387   ac_status=$?
32388   grep -v '^ *+' conftest.er1 >conftest.err
32389   rm -f conftest.er1
32390   cat conftest.err >&5
32391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392   (exit $ac_status); } && {
32393          test -z "$ac_c_werror_flag" ||
32394          test ! -s conftest.err
32395        } && test -s conftest.$ac_objext; then
32396   ac_cv_type_signal=int
32397 else
32398   echo "$as_me: failed program was:" >&5
32399 sed 's/^/| /' conftest.$ac_ext >&5
32400
32401         ac_cv_type_signal=void
32402 fi
32403
32404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32405 fi
32406 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32407 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32408
32409 cat >>confdefs.h <<_ACEOF
32410 #define RETSIGTYPE $ac_cv_type_signal
32411 _ACEOF
32412
32413
32414
32415 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32416 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32417 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32418   echo $ECHO_N "(cached) $ECHO_C" >&6
32419 else
32420   cat >conftest.$ac_ext <<_ACEOF
32421 /* confdefs.h.  */
32422 _ACEOF
32423 cat confdefs.h >>conftest.$ac_ext
32424 cat >>conftest.$ac_ext <<_ACEOF
32425 /* end confdefs.h.  */
32426 $ac_includes_default
32427 #include <signal.h>
32428
32429
32430 typedef sig_atomic_t ac__type_new_;
32431 int
32432 main ()
32433 {
32434 if ((ac__type_new_ *) 0)
32435   return 0;
32436 if (sizeof (ac__type_new_))
32437   return 0;
32438   ;
32439   return 0;
32440 }
32441 _ACEOF
32442 rm -f conftest.$ac_objext
32443 if { (ac_try="$ac_compile"
32444 case "(($ac_try" in
32445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32446   *) ac_try_echo=$ac_try;;
32447 esac
32448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32449   (eval "$ac_compile") 2>conftest.er1
32450   ac_status=$?
32451   grep -v '^ *+' conftest.er1 >conftest.err
32452   rm -f conftest.er1
32453   cat conftest.err >&5
32454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32455   (exit $ac_status); } && {
32456          test -z "$ac_c_werror_flag" ||
32457          test ! -s conftest.err
32458        } && test -s conftest.$ac_objext; then
32459   ac_cv_type_sig_atomic_t=yes
32460 else
32461   echo "$as_me: failed program was:" >&5
32462 sed 's/^/| /' conftest.$ac_ext >&5
32463
32464         ac_cv_type_sig_atomic_t=no
32465 fi
32466
32467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32468 fi
32469 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32470 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32471 if test $ac_cv_type_sig_atomic_t = yes; then
32472   :
32473 else
32474
32475 cat >>confdefs.h <<_ACEOF
32476 #define sig_atomic_t int
32477 _ACEOF
32478
32479 fi
32480
32481
32482 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32483 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32484 if test "${ac_cv_type_uid_t+set}" = set; then
32485   echo $ECHO_N "(cached) $ECHO_C" >&6
32486 else
32487   cat >conftest.$ac_ext <<_ACEOF
32488 /* confdefs.h.  */
32489 _ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h.  */
32493 #include <sys/types.h>
32494
32495 _ACEOF
32496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32497   $EGREP "uid_t" >/dev/null 2>&1; then
32498   ac_cv_type_uid_t=yes
32499 else
32500   ac_cv_type_uid_t=no
32501 fi
32502 rm -f conftest*
32503
32504 fi
32505 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32506 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32507 if test $ac_cv_type_uid_t = no; then
32508
32509 cat >>confdefs.h <<\_ACEOF
32510 #define uid_t int
32511 _ACEOF
32512
32513
32514 cat >>confdefs.h <<\_ACEOF
32515 #define gid_t int
32516 _ACEOF
32517
32518 fi
32519
32520
32521 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32522 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32523 if test "${ac_cv_header_time+set}" = set; then
32524   echo $ECHO_N "(cached) $ECHO_C" >&6
32525 else
32526   cat >conftest.$ac_ext <<_ACEOF
32527 /* confdefs.h.  */
32528 _ACEOF
32529 cat confdefs.h >>conftest.$ac_ext
32530 cat >>conftest.$ac_ext <<_ACEOF
32531 /* end confdefs.h.  */
32532 #include <sys/types.h>
32533 #include <sys/time.h>
32534 #include <time.h>
32535
32536 int
32537 main ()
32538 {
32539 if ((struct tm *) 0)
32540 return 0;
32541   ;
32542   return 0;
32543 }
32544 _ACEOF
32545 rm -f conftest.$ac_objext
32546 if { (ac_try="$ac_compile"
32547 case "(($ac_try" in
32548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32549   *) ac_try_echo=$ac_try;;
32550 esac
32551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32552   (eval "$ac_compile") 2>conftest.er1
32553   ac_status=$?
32554   grep -v '^ *+' conftest.er1 >conftest.err
32555   rm -f conftest.er1
32556   cat conftest.err >&5
32557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558   (exit $ac_status); } && {
32559          test -z "$ac_c_werror_flag" ||
32560          test ! -s conftest.err
32561        } && test -s conftest.$ac_objext; then
32562   ac_cv_header_time=yes
32563 else
32564   echo "$as_me: failed program was:" >&5
32565 sed 's/^/| /' conftest.$ac_ext >&5
32566
32567         ac_cv_header_time=no
32568 fi
32569
32570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32571 fi
32572 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32573 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32574 if test $ac_cv_header_time = yes; then
32575
32576 cat >>confdefs.h <<\_ACEOF
32577 #define TIME_WITH_SYS_TIME 1
32578 _ACEOF
32579
32580 fi
32581
32582 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32583 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32584 if test "${ac_cv_struct_tm+set}" = set; then
32585   echo $ECHO_N "(cached) $ECHO_C" >&6
32586 else
32587   cat >conftest.$ac_ext <<_ACEOF
32588 /* confdefs.h.  */
32589 _ACEOF
32590 cat confdefs.h >>conftest.$ac_ext
32591 cat >>conftest.$ac_ext <<_ACEOF
32592 /* end confdefs.h.  */
32593 #include <sys/types.h>
32594 #include <time.h>
32595
32596 int
32597 main ()
32598 {
32599 struct tm tm;
32600                                      int *p = &tm.tm_sec;
32601                                      return !p;
32602   ;
32603   return 0;
32604 }
32605 _ACEOF
32606 rm -f conftest.$ac_objext
32607 if { (ac_try="$ac_compile"
32608 case "(($ac_try" in
32609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32610   *) ac_try_echo=$ac_try;;
32611 esac
32612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32613   (eval "$ac_compile") 2>conftest.er1
32614   ac_status=$?
32615   grep -v '^ *+' conftest.er1 >conftest.err
32616   rm -f conftest.er1
32617   cat conftest.err >&5
32618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619   (exit $ac_status); } && {
32620          test -z "$ac_c_werror_flag" ||
32621          test ! -s conftest.err
32622        } && test -s conftest.$ac_objext; then
32623   ac_cv_struct_tm=time.h
32624 else
32625   echo "$as_me: failed program was:" >&5
32626 sed 's/^/| /' conftest.$ac_ext >&5
32627
32628         ac_cv_struct_tm=sys/time.h
32629 fi
32630
32631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32632 fi
32633 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32634 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32635 if test $ac_cv_struct_tm = sys/time.h; then
32636
32637 cat >>confdefs.h <<\_ACEOF
32638 #define TM_IN_SYS_TIME 1
32639 _ACEOF
32640
32641 fi
32642
32643 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32644 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32645 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32646   echo $ECHO_N "(cached) $ECHO_C" >&6
32647 else
32648   cat >conftest.$ac_ext <<_ACEOF
32649 /* confdefs.h.  */
32650 _ACEOF
32651 cat confdefs.h >>conftest.$ac_ext
32652 cat >>conftest.$ac_ext <<_ACEOF
32653 /* end confdefs.h.  */
32654 $ac_includes_default
32655 int
32656 main ()
32657 {
32658 static struct stat ac_aggr;
32659 if (ac_aggr.st_blksize)
32660 return 0;
32661   ;
32662   return 0;
32663 }
32664 _ACEOF
32665 rm -f conftest.$ac_objext
32666 if { (ac_try="$ac_compile"
32667 case "(($ac_try" in
32668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32669   *) ac_try_echo=$ac_try;;
32670 esac
32671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32672   (eval "$ac_compile") 2>conftest.er1
32673   ac_status=$?
32674   grep -v '^ *+' conftest.er1 >conftest.err
32675   rm -f conftest.er1
32676   cat conftest.err >&5
32677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32678   (exit $ac_status); } && {
32679          test -z "$ac_c_werror_flag" ||
32680          test ! -s conftest.err
32681        } && test -s conftest.$ac_objext; then
32682   ac_cv_member_struct_stat_st_blksize=yes
32683 else
32684   echo "$as_me: failed program was:" >&5
32685 sed 's/^/| /' conftest.$ac_ext >&5
32686
32687         cat >conftest.$ac_ext <<_ACEOF
32688 /* confdefs.h.  */
32689 _ACEOF
32690 cat confdefs.h >>conftest.$ac_ext
32691 cat >>conftest.$ac_ext <<_ACEOF
32692 /* end confdefs.h.  */
32693 $ac_includes_default
32694 int
32695 main ()
32696 {
32697 static struct stat ac_aggr;
32698 if (sizeof ac_aggr.st_blksize)
32699 return 0;
32700   ;
32701   return 0;
32702 }
32703 _ACEOF
32704 rm -f conftest.$ac_objext
32705 if { (ac_try="$ac_compile"
32706 case "(($ac_try" in
32707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32708   *) ac_try_echo=$ac_try;;
32709 esac
32710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32711   (eval "$ac_compile") 2>conftest.er1
32712   ac_status=$?
32713   grep -v '^ *+' conftest.er1 >conftest.err
32714   rm -f conftest.er1
32715   cat conftest.err >&5
32716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717   (exit $ac_status); } && {
32718          test -z "$ac_c_werror_flag" ||
32719          test ! -s conftest.err
32720        } && test -s conftest.$ac_objext; then
32721   ac_cv_member_struct_stat_st_blksize=yes
32722 else
32723   echo "$as_me: failed program was:" >&5
32724 sed 's/^/| /' conftest.$ac_ext >&5
32725
32726         ac_cv_member_struct_stat_st_blksize=no
32727 fi
32728
32729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32730 fi
32731
32732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32733 fi
32734 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32735 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32736 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32737
32738 cat >>confdefs.h <<_ACEOF
32739 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32740 _ACEOF
32741
32742
32743 fi
32744
32745 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32746 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32747 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32748   echo $ECHO_N "(cached) $ECHO_C" >&6
32749 else
32750   cat >conftest.$ac_ext <<_ACEOF
32751 /* confdefs.h.  */
32752 _ACEOF
32753 cat confdefs.h >>conftest.$ac_ext
32754 cat >>conftest.$ac_ext <<_ACEOF
32755 /* end confdefs.h.  */
32756 $ac_includes_default
32757 #include <pwd.h>
32758
32759 int
32760 main ()
32761 {
32762 static struct passwd ac_aggr;
32763 if (ac_aggr.pw_gecos)
32764 return 0;
32765   ;
32766   return 0;
32767 }
32768 _ACEOF
32769 rm -f conftest.$ac_objext
32770 if { (ac_try="$ac_compile"
32771 case "(($ac_try" in
32772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32773   *) ac_try_echo=$ac_try;;
32774 esac
32775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32776   (eval "$ac_compile") 2>conftest.er1
32777   ac_status=$?
32778   grep -v '^ *+' conftest.er1 >conftest.err
32779   rm -f conftest.er1
32780   cat conftest.err >&5
32781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32782   (exit $ac_status); } && {
32783          test -z "$ac_c_werror_flag" ||
32784          test ! -s conftest.err
32785        } && test -s conftest.$ac_objext; then
32786   ac_cv_member_struct_passwd_pw_gecos=yes
32787 else
32788   echo "$as_me: failed program was:" >&5
32789 sed 's/^/| /' conftest.$ac_ext >&5
32790
32791         cat >conftest.$ac_ext <<_ACEOF
32792 /* confdefs.h.  */
32793 _ACEOF
32794 cat confdefs.h >>conftest.$ac_ext
32795 cat >>conftest.$ac_ext <<_ACEOF
32796 /* end confdefs.h.  */
32797 $ac_includes_default
32798 #include <pwd.h>
32799
32800 int
32801 main ()
32802 {
32803 static struct passwd ac_aggr;
32804 if (sizeof ac_aggr.pw_gecos)
32805 return 0;
32806   ;
32807   return 0;
32808 }
32809 _ACEOF
32810 rm -f conftest.$ac_objext
32811 if { (ac_try="$ac_compile"
32812 case "(($ac_try" in
32813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814   *) ac_try_echo=$ac_try;;
32815 esac
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817   (eval "$ac_compile") 2>conftest.er1
32818   ac_status=$?
32819   grep -v '^ *+' conftest.er1 >conftest.err
32820   rm -f conftest.er1
32821   cat conftest.err >&5
32822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823   (exit $ac_status); } && {
32824          test -z "$ac_c_werror_flag" ||
32825          test ! -s conftest.err
32826        } && test -s conftest.$ac_objext; then
32827   ac_cv_member_struct_passwd_pw_gecos=yes
32828 else
32829   echo "$as_me: failed program was:" >&5
32830 sed 's/^/| /' conftest.$ac_ext >&5
32831
32832         ac_cv_member_struct_passwd_pw_gecos=no
32833 fi
32834
32835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32836 fi
32837
32838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32839 fi
32840 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32841 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32842 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32843
32844 cat >>confdefs.h <<_ACEOF
32845 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32846 _ACEOF
32847
32848
32849 fi
32850
32851 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32852 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32853 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32854   echo $ECHO_N "(cached) $ECHO_C" >&6
32855 else
32856   cat >conftest.$ac_ext <<_ACEOF
32857 /* confdefs.h.  */
32858 _ACEOF
32859 cat confdefs.h >>conftest.$ac_ext
32860 cat >>conftest.$ac_ext <<_ACEOF
32861 /* end confdefs.h.  */
32862 $ac_includes_default
32863 #include <pwd.h>
32864
32865 int
32866 main ()
32867 {
32868 static struct passwd ac_aggr;
32869 if (ac_aggr.pw_passwd)
32870 return 0;
32871   ;
32872   return 0;
32873 }
32874 _ACEOF
32875 rm -f conftest.$ac_objext
32876 if { (ac_try="$ac_compile"
32877 case "(($ac_try" in
32878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32879   *) ac_try_echo=$ac_try;;
32880 esac
32881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32882   (eval "$ac_compile") 2>conftest.er1
32883   ac_status=$?
32884   grep -v '^ *+' conftest.er1 >conftest.err
32885   rm -f conftest.er1
32886   cat conftest.err >&5
32887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888   (exit $ac_status); } && {
32889          test -z "$ac_c_werror_flag" ||
32890          test ! -s conftest.err
32891        } && test -s conftest.$ac_objext; then
32892   ac_cv_member_struct_passwd_pw_passwd=yes
32893 else
32894   echo "$as_me: failed program was:" >&5
32895 sed 's/^/| /' conftest.$ac_ext >&5
32896
32897         cat >conftest.$ac_ext <<_ACEOF
32898 /* confdefs.h.  */
32899 _ACEOF
32900 cat confdefs.h >>conftest.$ac_ext
32901 cat >>conftest.$ac_ext <<_ACEOF
32902 /* end confdefs.h.  */
32903 $ac_includes_default
32904 #include <pwd.h>
32905
32906 int
32907 main ()
32908 {
32909 static struct passwd ac_aggr;
32910 if (sizeof ac_aggr.pw_passwd)
32911 return 0;
32912   ;
32913   return 0;
32914 }
32915 _ACEOF
32916 rm -f conftest.$ac_objext
32917 if { (ac_try="$ac_compile"
32918 case "(($ac_try" in
32919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32920   *) ac_try_echo=$ac_try;;
32921 esac
32922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32923   (eval "$ac_compile") 2>conftest.er1
32924   ac_status=$?
32925   grep -v '^ *+' conftest.er1 >conftest.err
32926   rm -f conftest.er1
32927   cat conftest.err >&5
32928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929   (exit $ac_status); } && {
32930          test -z "$ac_c_werror_flag" ||
32931          test ! -s conftest.err
32932        } && test -s conftest.$ac_objext; then
32933   ac_cv_member_struct_passwd_pw_passwd=yes
32934 else
32935   echo "$as_me: failed program was:" >&5
32936 sed 's/^/| /' conftest.$ac_ext >&5
32937
32938         ac_cv_member_struct_passwd_pw_passwd=no
32939 fi
32940
32941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32942 fi
32943
32944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32945 fi
32946 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32947 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32948 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32949
32950 cat >>confdefs.h <<_ACEOF
32951 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32952 _ACEOF
32953
32954
32955 fi
32956
32957
32958 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32959 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32960 if test "${ol_cv_c_upper_lower+set}" = set; then
32961   echo $ECHO_N "(cached) $ECHO_C" >&6
32962 else
32963
32964         if test "$cross_compiling" = yes; then
32965   ol_cv_c_upper_lower=safe
32966 else
32967   cat >conftest.$ac_ext <<_ACEOF
32968 /* confdefs.h.  */
32969 _ACEOF
32970 cat confdefs.h >>conftest.$ac_ext
32971 cat >>conftest.$ac_ext <<_ACEOF
32972 /* end confdefs.h.  */
32973
32974 #include <ctype.h>
32975 main()
32976 {
32977         if ('C' == toupper('C'))
32978                 exit(0);
32979         else
32980                 exit(1);
32981 }
32982 _ACEOF
32983 rm -f conftest$ac_exeext
32984 if { (ac_try="$ac_link"
32985 case "(($ac_try" in
32986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32987   *) ac_try_echo=$ac_try;;
32988 esac
32989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32990   (eval "$ac_link") 2>&5
32991   ac_status=$?
32992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32994   { (case "(($ac_try" in
32995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32996   *) ac_try_echo=$ac_try;;
32997 esac
32998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32999   (eval "$ac_try") 2>&5
33000   ac_status=$?
33001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002   (exit $ac_status); }; }; then
33003   ol_cv_c_upper_lower=no
33004 else
33005   echo "$as_me: program exited with status $ac_status" >&5
33006 echo "$as_me: failed program was:" >&5
33007 sed 's/^/| /' conftest.$ac_ext >&5
33008
33009 ( exit $ac_status )
33010 ol_cv_c_upper_lower=yes
33011 fi
33012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33013 fi
33014
33015
33016 fi
33017 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33018 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33019 if test $ol_cv_c_upper_lower != no ; then
33020
33021 cat >>confdefs.h <<\_ACEOF
33022 #define C_UPPER_LOWER 1
33023 _ACEOF
33024
33025 fi
33026
33027 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33028 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33029 if test "${ac_cv_c_const+set}" = set; then
33030   echo $ECHO_N "(cached) $ECHO_C" >&6
33031 else
33032   cat >conftest.$ac_ext <<_ACEOF
33033 /* confdefs.h.  */
33034 _ACEOF
33035 cat confdefs.h >>conftest.$ac_ext
33036 cat >>conftest.$ac_ext <<_ACEOF
33037 /* end confdefs.h.  */
33038
33039 int
33040 main ()
33041 {
33042 /* FIXME: Include the comments suggested by Paul. */
33043 #ifndef __cplusplus
33044   /* Ultrix mips cc rejects this.  */
33045   typedef int charset[2];
33046   const charset cs;
33047   /* SunOS 4.1.1 cc rejects this.  */
33048   char const *const *pcpcc;
33049   char **ppc;
33050   /* NEC SVR4.0.2 mips cc rejects this.  */
33051   struct point {int x, y;};
33052   static struct point const zero = {0,0};
33053   /* AIX XL C 1.02.0.0 rejects this.
33054      It does not let you subtract one const X* pointer from another in
33055      an arm of an if-expression whose if-part is not a constant
33056      expression */
33057   const char *g = "string";
33058   pcpcc = &g + (g ? g-g : 0);
33059   /* HPUX 7.0 cc rejects these. */
33060   ++pcpcc;
33061   ppc = (char**) pcpcc;
33062   pcpcc = (char const *const *) ppc;
33063   { /* SCO 3.2v4 cc rejects this.  */
33064     char *t;
33065     char const *s = 0 ? (char *) 0 : (char const *) 0;
33066
33067     *t++ = 0;
33068     if (s) return 0;
33069   }
33070   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33071     int x[] = {25, 17};
33072     const int *foo = &x[0];
33073     ++foo;
33074   }
33075   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33076     typedef const int *iptr;
33077     iptr p = 0;
33078     ++p;
33079   }
33080   { /* AIX XL C 1.02.0.0 rejects this saying
33081        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33082     struct s { int j; const int *ap[3]; };
33083     struct s *b; b->j = 5;
33084   }
33085   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33086     const int foo = 10;
33087     if (!foo) return 0;
33088   }
33089   return !cs[0] && !zero.x;
33090 #endif
33091
33092   ;
33093   return 0;
33094 }
33095 _ACEOF
33096 rm -f conftest.$ac_objext
33097 if { (ac_try="$ac_compile"
33098 case "(($ac_try" in
33099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100   *) ac_try_echo=$ac_try;;
33101 esac
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103   (eval "$ac_compile") 2>conftest.er1
33104   ac_status=$?
33105   grep -v '^ *+' conftest.er1 >conftest.err
33106   rm -f conftest.er1
33107   cat conftest.err >&5
33108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109   (exit $ac_status); } && {
33110          test -z "$ac_c_werror_flag" ||
33111          test ! -s conftest.err
33112        } && test -s conftest.$ac_objext; then
33113   ac_cv_c_const=yes
33114 else
33115   echo "$as_me: failed program was:" >&5
33116 sed 's/^/| /' conftest.$ac_ext >&5
33117
33118         ac_cv_c_const=no
33119 fi
33120
33121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33122 fi
33123 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33124 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33125 if test $ac_cv_c_const = no; then
33126
33127 cat >>confdefs.h <<\_ACEOF
33128 #define const
33129 _ACEOF
33130
33131 fi
33132
33133 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33134 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33135 if test "${ol_cv_c_volatile+set}" = set; then
33136   echo $ECHO_N "(cached) $ECHO_C" >&6
33137 else
33138   cat >conftest.$ac_ext <<_ACEOF
33139 /* confdefs.h.  */
33140 _ACEOF
33141 cat confdefs.h >>conftest.$ac_ext
33142 cat >>conftest.$ac_ext <<_ACEOF
33143 /* end confdefs.h.  */
33144 int x, y, z;
33145 int
33146 main ()
33147 {
33148 volatile int a; int * volatile b = x ? &y : &z;
33149       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33150       *b = 0;
33151   ;
33152   return 0;
33153 }
33154 _ACEOF
33155 rm -f conftest.$ac_objext
33156 if { (ac_try="$ac_compile"
33157 case "(($ac_try" in
33158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33159   *) ac_try_echo=$ac_try;;
33160 esac
33161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33162   (eval "$ac_compile") 2>conftest.er1
33163   ac_status=$?
33164   grep -v '^ *+' conftest.er1 >conftest.err
33165   rm -f conftest.er1
33166   cat conftest.err >&5
33167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168   (exit $ac_status); } && {
33169          test -z "$ac_c_werror_flag" ||
33170          test ! -s conftest.err
33171        } && test -s conftest.$ac_objext; then
33172   ol_cv_c_volatile=yes
33173 else
33174   echo "$as_me: failed program was:" >&5
33175 sed 's/^/| /' conftest.$ac_ext >&5
33176
33177         ol_cv_c_volatile=no
33178 fi
33179
33180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33181 fi
33182 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33183 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33184   if test $ol_cv_c_volatile = yes; then
33185     :
33186   else
33187
33188 cat >>confdefs.h <<\_ACEOF
33189 #define volatile
33190 _ACEOF
33191
33192   fi
33193
33194
33195 if test $cross_compiling = yes ; then
33196         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33197 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33198
33199 cat >>confdefs.h <<\_ACEOF
33200 #define CROSS_COMPILING 1
33201 _ACEOF
33202
33203 else
33204         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33205 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33206 if test "${ac_cv_c_bigendian+set}" = set; then
33207   echo $ECHO_N "(cached) $ECHO_C" >&6
33208 else
33209   # See if sys/param.h defines the BYTE_ORDER macro.
33210 cat >conftest.$ac_ext <<_ACEOF
33211 /* confdefs.h.  */
33212 _ACEOF
33213 cat confdefs.h >>conftest.$ac_ext
33214 cat >>conftest.$ac_ext <<_ACEOF
33215 /* end confdefs.h.  */
33216 #include <sys/types.h>
33217 #include <sys/param.h>
33218
33219 int
33220 main ()
33221 {
33222 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33223         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33224  bogus endian macros
33225 #endif
33226
33227   ;
33228   return 0;
33229 }
33230 _ACEOF
33231 rm -f conftest.$ac_objext
33232 if { (ac_try="$ac_compile"
33233 case "(($ac_try" in
33234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33235   *) ac_try_echo=$ac_try;;
33236 esac
33237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33238   (eval "$ac_compile") 2>conftest.er1
33239   ac_status=$?
33240   grep -v '^ *+' conftest.er1 >conftest.err
33241   rm -f conftest.er1
33242   cat conftest.err >&5
33243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244   (exit $ac_status); } && {
33245          test -z "$ac_c_werror_flag" ||
33246          test ! -s conftest.err
33247        } && test -s conftest.$ac_objext; then
33248   # It does; now see whether it defined to BIG_ENDIAN or not.
33249 cat >conftest.$ac_ext <<_ACEOF
33250 /* confdefs.h.  */
33251 _ACEOF
33252 cat confdefs.h >>conftest.$ac_ext
33253 cat >>conftest.$ac_ext <<_ACEOF
33254 /* end confdefs.h.  */
33255 #include <sys/types.h>
33256 #include <sys/param.h>
33257
33258 int
33259 main ()
33260 {
33261 #if BYTE_ORDER != BIG_ENDIAN
33262  not big endian
33263 #endif
33264
33265   ;
33266   return 0;
33267 }
33268 _ACEOF
33269 rm -f conftest.$ac_objext
33270 if { (ac_try="$ac_compile"
33271 case "(($ac_try" in
33272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33273   *) ac_try_echo=$ac_try;;
33274 esac
33275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33276   (eval "$ac_compile") 2>conftest.er1
33277   ac_status=$?
33278   grep -v '^ *+' conftest.er1 >conftest.err
33279   rm -f conftest.er1
33280   cat conftest.err >&5
33281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282   (exit $ac_status); } && {
33283          test -z "$ac_c_werror_flag" ||
33284          test ! -s conftest.err
33285        } && test -s conftest.$ac_objext; then
33286   ac_cv_c_bigendian=yes
33287 else
33288   echo "$as_me: failed program was:" >&5
33289 sed 's/^/| /' conftest.$ac_ext >&5
33290
33291         ac_cv_c_bigendian=no
33292 fi
33293
33294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33295 else
33296   echo "$as_me: failed program was:" >&5
33297 sed 's/^/| /' conftest.$ac_ext >&5
33298
33299         # It does not; compile a test program.
33300 if test "$cross_compiling" = yes; then
33301   # try to guess the endianness by grepping values into an object file
33302   ac_cv_c_bigendian=unknown
33303   cat >conftest.$ac_ext <<_ACEOF
33304 /* confdefs.h.  */
33305 _ACEOF
33306 cat confdefs.h >>conftest.$ac_ext
33307 cat >>conftest.$ac_ext <<_ACEOF
33308 /* end confdefs.h.  */
33309 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33310 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33311 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33312 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33313 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33314 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33315 int
33316 main ()
33317 {
33318  _ascii (); _ebcdic ();
33319   ;
33320   return 0;
33321 }
33322 _ACEOF
33323 rm -f conftest.$ac_objext
33324 if { (ac_try="$ac_compile"
33325 case "(($ac_try" in
33326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33327   *) ac_try_echo=$ac_try;;
33328 esac
33329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33330   (eval "$ac_compile") 2>conftest.er1
33331   ac_status=$?
33332   grep -v '^ *+' conftest.er1 >conftest.err
33333   rm -f conftest.er1
33334   cat conftest.err >&5
33335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336   (exit $ac_status); } && {
33337          test -z "$ac_c_werror_flag" ||
33338          test ! -s conftest.err
33339        } && test -s conftest.$ac_objext; then
33340   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33341   ac_cv_c_bigendian=yes
33342 fi
33343 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33344   if test "$ac_cv_c_bigendian" = unknown; then
33345     ac_cv_c_bigendian=no
33346   else
33347     # finding both strings is unlikely to happen, but who knows?
33348     ac_cv_c_bigendian=unknown
33349   fi
33350 fi
33351 else
33352   echo "$as_me: failed program was:" >&5
33353 sed 's/^/| /' conftest.$ac_ext >&5
33354
33355
33356 fi
33357
33358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33359 else
33360   cat >conftest.$ac_ext <<_ACEOF
33361 /* confdefs.h.  */
33362 _ACEOF
33363 cat confdefs.h >>conftest.$ac_ext
33364 cat >>conftest.$ac_ext <<_ACEOF
33365 /* end confdefs.h.  */
33366 $ac_includes_default
33367 int
33368 main ()
33369 {
33370
33371   /* Are we little or big endian?  From Harbison&Steele.  */
33372   union
33373   {
33374     long int l;
33375     char c[sizeof (long int)];
33376   } u;
33377   u.l = 1;
33378   return u.c[sizeof (long int) - 1] == 1;
33379
33380   ;
33381   return 0;
33382 }
33383 _ACEOF
33384 rm -f conftest$ac_exeext
33385 if { (ac_try="$ac_link"
33386 case "(($ac_try" in
33387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33388   *) ac_try_echo=$ac_try;;
33389 esac
33390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33391   (eval "$ac_link") 2>&5
33392   ac_status=$?
33393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33395   { (case "(($ac_try" in
33396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33397   *) ac_try_echo=$ac_try;;
33398 esac
33399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33400   (eval "$ac_try") 2>&5
33401   ac_status=$?
33402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403   (exit $ac_status); }; }; then
33404   ac_cv_c_bigendian=no
33405 else
33406   echo "$as_me: program exited with status $ac_status" >&5
33407 echo "$as_me: failed program was:" >&5
33408 sed 's/^/| /' conftest.$ac_ext >&5
33409
33410 ( exit $ac_status )
33411 ac_cv_c_bigendian=yes
33412 fi
33413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33414 fi
33415
33416
33417 fi
33418
33419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33420 fi
33421 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33422 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33423 case $ac_cv_c_bigendian in
33424   yes)
33425
33426 cat >>confdefs.h <<\_ACEOF
33427 #define WORDS_BIGENDIAN 1
33428 _ACEOF
33429  ;;
33430   no)
33431      ;;
33432   *)
33433     { { echo "$as_me:$LINENO: error: unknown endianness
33434 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33435 echo "$as_me: error: unknown endianness
33436 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33437    { (exit 1); exit 1; }; } ;;
33438 esac
33439
33440 fi
33441
33442 { echo "$as_me:$LINENO: checking for short" >&5
33443 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33444 if test "${ac_cv_type_short+set}" = set; then
33445   echo $ECHO_N "(cached) $ECHO_C" >&6
33446 else
33447   cat >conftest.$ac_ext <<_ACEOF
33448 /* confdefs.h.  */
33449 _ACEOF
33450 cat confdefs.h >>conftest.$ac_ext
33451 cat >>conftest.$ac_ext <<_ACEOF
33452 /* end confdefs.h.  */
33453 $ac_includes_default
33454 typedef short ac__type_new_;
33455 int
33456 main ()
33457 {
33458 if ((ac__type_new_ *) 0)
33459   return 0;
33460 if (sizeof (ac__type_new_))
33461   return 0;
33462   ;
33463   return 0;
33464 }
33465 _ACEOF
33466 rm -f conftest.$ac_objext
33467 if { (ac_try="$ac_compile"
33468 case "(($ac_try" in
33469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470   *) ac_try_echo=$ac_try;;
33471 esac
33472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473   (eval "$ac_compile") 2>conftest.er1
33474   ac_status=$?
33475   grep -v '^ *+' conftest.er1 >conftest.err
33476   rm -f conftest.er1
33477   cat conftest.err >&5
33478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479   (exit $ac_status); } && {
33480          test -z "$ac_c_werror_flag" ||
33481          test ! -s conftest.err
33482        } && test -s conftest.$ac_objext; then
33483   ac_cv_type_short=yes
33484 else
33485   echo "$as_me: failed program was:" >&5
33486 sed 's/^/| /' conftest.$ac_ext >&5
33487
33488         ac_cv_type_short=no
33489 fi
33490
33491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33492 fi
33493 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33494 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33495
33496 # The cast to long int works around a bug in the HP C Compiler
33497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33499 # This bug is HP SR number 8606223364.
33500 { echo "$as_me:$LINENO: checking size of short" >&5
33501 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33502 if test "${ac_cv_sizeof_short+set}" = set; then
33503   echo $ECHO_N "(cached) $ECHO_C" >&6
33504 else
33505   if test "$cross_compiling" = yes; then
33506   # Depending upon the size, compute the lo and hi bounds.
33507 cat >conftest.$ac_ext <<_ACEOF
33508 /* confdefs.h.  */
33509 _ACEOF
33510 cat confdefs.h >>conftest.$ac_ext
33511 cat >>conftest.$ac_ext <<_ACEOF
33512 /* end confdefs.h.  */
33513 $ac_includes_default
33514    typedef short ac__type_sizeof_;
33515 int
33516 main ()
33517 {
33518 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33519 test_array [0] = 0
33520
33521   ;
33522   return 0;
33523 }
33524 _ACEOF
33525 rm -f conftest.$ac_objext
33526 if { (ac_try="$ac_compile"
33527 case "(($ac_try" in
33528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33529   *) ac_try_echo=$ac_try;;
33530 esac
33531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33532   (eval "$ac_compile") 2>conftest.er1
33533   ac_status=$?
33534   grep -v '^ *+' conftest.er1 >conftest.err
33535   rm -f conftest.er1
33536   cat conftest.err >&5
33537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538   (exit $ac_status); } && {
33539          test -z "$ac_c_werror_flag" ||
33540          test ! -s conftest.err
33541        } && test -s conftest.$ac_objext; then
33542   ac_lo=0 ac_mid=0
33543   while :; do
33544     cat >conftest.$ac_ext <<_ACEOF
33545 /* confdefs.h.  */
33546 _ACEOF
33547 cat confdefs.h >>conftest.$ac_ext
33548 cat >>conftest.$ac_ext <<_ACEOF
33549 /* end confdefs.h.  */
33550 $ac_includes_default
33551    typedef short ac__type_sizeof_;
33552 int
33553 main ()
33554 {
33555 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33556 test_array [0] = 0
33557
33558   ;
33559   return 0;
33560 }
33561 _ACEOF
33562 rm -f conftest.$ac_objext
33563 if { (ac_try="$ac_compile"
33564 case "(($ac_try" in
33565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33566   *) ac_try_echo=$ac_try;;
33567 esac
33568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33569   (eval "$ac_compile") 2>conftest.er1
33570   ac_status=$?
33571   grep -v '^ *+' conftest.er1 >conftest.err
33572   rm -f conftest.er1
33573   cat conftest.err >&5
33574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575   (exit $ac_status); } && {
33576          test -z "$ac_c_werror_flag" ||
33577          test ! -s conftest.err
33578        } && test -s conftest.$ac_objext; then
33579   ac_hi=$ac_mid; break
33580 else
33581   echo "$as_me: failed program was:" >&5
33582 sed 's/^/| /' conftest.$ac_ext >&5
33583
33584         ac_lo=`expr $ac_mid + 1`
33585                         if test $ac_lo -le $ac_mid; then
33586                           ac_lo= ac_hi=
33587                           break
33588                         fi
33589                         ac_mid=`expr 2 '*' $ac_mid + 1`
33590 fi
33591
33592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33593   done
33594 else
33595   echo "$as_me: failed program was:" >&5
33596 sed 's/^/| /' conftest.$ac_ext >&5
33597
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_sizeof_;
33606 int
33607 main ()
33608 {
33609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33610 test_array [0] = 0
33611
33612   ;
33613   return 0;
33614 }
33615 _ACEOF
33616 rm -f conftest.$ac_objext
33617 if { (ac_try="$ac_compile"
33618 case "(($ac_try" in
33619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620   *) ac_try_echo=$ac_try;;
33621 esac
33622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623   (eval "$ac_compile") 2>conftest.er1
33624   ac_status=$?
33625   grep -v '^ *+' conftest.er1 >conftest.err
33626   rm -f conftest.er1
33627   cat conftest.err >&5
33628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629   (exit $ac_status); } && {
33630          test -z "$ac_c_werror_flag" ||
33631          test ! -s conftest.err
33632        } && test -s conftest.$ac_objext; then
33633   ac_hi=-1 ac_mid=-1
33634   while :; do
33635     cat >conftest.$ac_ext <<_ACEOF
33636 /* confdefs.h.  */
33637 _ACEOF
33638 cat confdefs.h >>conftest.$ac_ext
33639 cat >>conftest.$ac_ext <<_ACEOF
33640 /* end confdefs.h.  */
33641 $ac_includes_default
33642    typedef short ac__type_sizeof_;
33643 int
33644 main ()
33645 {
33646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33647 test_array [0] = 0
33648
33649   ;
33650   return 0;
33651 }
33652 _ACEOF
33653 rm -f conftest.$ac_objext
33654 if { (ac_try="$ac_compile"
33655 case "(($ac_try" in
33656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33657   *) ac_try_echo=$ac_try;;
33658 esac
33659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33660   (eval "$ac_compile") 2>conftest.er1
33661   ac_status=$?
33662   grep -v '^ *+' conftest.er1 >conftest.err
33663   rm -f conftest.er1
33664   cat conftest.err >&5
33665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666   (exit $ac_status); } && {
33667          test -z "$ac_c_werror_flag" ||
33668          test ! -s conftest.err
33669        } && test -s conftest.$ac_objext; then
33670   ac_lo=$ac_mid; break
33671 else
33672   echo "$as_me: failed program was:" >&5
33673 sed 's/^/| /' conftest.$ac_ext >&5
33674
33675         ac_hi=`expr '(' $ac_mid ')' - 1`
33676                         if test $ac_mid -le $ac_hi; then
33677                           ac_lo= ac_hi=
33678                           break
33679                         fi
33680                         ac_mid=`expr 2 '*' $ac_mid`
33681 fi
33682
33683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33684   done
33685 else
33686   echo "$as_me: failed program was:" >&5
33687 sed 's/^/| /' conftest.$ac_ext >&5
33688
33689         ac_lo= ac_hi=
33690 fi
33691
33692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33693 fi
33694
33695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33696 # Binary search between lo and hi bounds.
33697 while test "x$ac_lo" != "x$ac_hi"; do
33698   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33699   cat >conftest.$ac_ext <<_ACEOF
33700 /* confdefs.h.  */
33701 _ACEOF
33702 cat confdefs.h >>conftest.$ac_ext
33703 cat >>conftest.$ac_ext <<_ACEOF
33704 /* end confdefs.h.  */
33705 $ac_includes_default
33706    typedef short ac__type_sizeof_;
33707 int
33708 main ()
33709 {
33710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33711 test_array [0] = 0
33712
33713   ;
33714   return 0;
33715 }
33716 _ACEOF
33717 rm -f conftest.$ac_objext
33718 if { (ac_try="$ac_compile"
33719 case "(($ac_try" in
33720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721   *) ac_try_echo=$ac_try;;
33722 esac
33723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724   (eval "$ac_compile") 2>conftest.er1
33725   ac_status=$?
33726   grep -v '^ *+' conftest.er1 >conftest.err
33727   rm -f conftest.er1
33728   cat conftest.err >&5
33729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730   (exit $ac_status); } && {
33731          test -z "$ac_c_werror_flag" ||
33732          test ! -s conftest.err
33733        } && test -s conftest.$ac_objext; then
33734   ac_hi=$ac_mid
33735 else
33736   echo "$as_me: failed program was:" >&5
33737 sed 's/^/| /' conftest.$ac_ext >&5
33738
33739         ac_lo=`expr '(' $ac_mid ')' + 1`
33740 fi
33741
33742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33743 done
33744 case $ac_lo in
33745 ?*) ac_cv_sizeof_short=$ac_lo;;
33746 '') if test "$ac_cv_type_short" = yes; then
33747      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33748 See \`config.log' for more details." >&5
33749 echo "$as_me: error: cannot compute sizeof (short)
33750 See \`config.log' for more details." >&2;}
33751    { (exit 77); exit 77; }; }
33752    else
33753      ac_cv_sizeof_short=0
33754    fi ;;
33755 esac
33756 else
33757   cat >conftest.$ac_ext <<_ACEOF
33758 /* confdefs.h.  */
33759 _ACEOF
33760 cat confdefs.h >>conftest.$ac_ext
33761 cat >>conftest.$ac_ext <<_ACEOF
33762 /* end confdefs.h.  */
33763 $ac_includes_default
33764    typedef short ac__type_sizeof_;
33765 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33766 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33767 #include <stdio.h>
33768 #include <stdlib.h>
33769 int
33770 main ()
33771 {
33772
33773   FILE *f = fopen ("conftest.val", "w");
33774   if (! f)
33775     return 1;
33776   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33777     {
33778       long int i = longval ();
33779       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33780         return 1;
33781       fprintf (f, "%ld\n", i);
33782     }
33783   else
33784     {
33785       unsigned long int i = ulongval ();
33786       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33787         return 1;
33788       fprintf (f, "%lu\n", i);
33789     }
33790   return ferror (f) || fclose (f) != 0;
33791
33792   ;
33793   return 0;
33794 }
33795 _ACEOF
33796 rm -f conftest$ac_exeext
33797 if { (ac_try="$ac_link"
33798 case "(($ac_try" in
33799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33800   *) ac_try_echo=$ac_try;;
33801 esac
33802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33803   (eval "$ac_link") 2>&5
33804   ac_status=$?
33805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33806   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33807   { (case "(($ac_try" in
33808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33809   *) ac_try_echo=$ac_try;;
33810 esac
33811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33812   (eval "$ac_try") 2>&5
33813   ac_status=$?
33814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815   (exit $ac_status); }; }; then
33816   ac_cv_sizeof_short=`cat conftest.val`
33817 else
33818   echo "$as_me: program exited with status $ac_status" >&5
33819 echo "$as_me: failed program was:" >&5
33820 sed 's/^/| /' conftest.$ac_ext >&5
33821
33822 ( exit $ac_status )
33823 if test "$ac_cv_type_short" = yes; then
33824      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33825 See \`config.log' for more details." >&5
33826 echo "$as_me: error: cannot compute sizeof (short)
33827 See \`config.log' for more details." >&2;}
33828    { (exit 77); exit 77; }; }
33829    else
33830      ac_cv_sizeof_short=0
33831    fi
33832 fi
33833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33834 fi
33835 rm -f conftest.val
33836 fi
33837 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33838 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33839
33840
33841
33842 cat >>confdefs.h <<_ACEOF
33843 #define SIZEOF_SHORT $ac_cv_sizeof_short
33844 _ACEOF
33845
33846
33847 { echo "$as_me:$LINENO: checking for int" >&5
33848 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33849 if test "${ac_cv_type_int+set}" = set; then
33850   echo $ECHO_N "(cached) $ECHO_C" >&6
33851 else
33852   cat >conftest.$ac_ext <<_ACEOF
33853 /* confdefs.h.  */
33854 _ACEOF
33855 cat confdefs.h >>conftest.$ac_ext
33856 cat >>conftest.$ac_ext <<_ACEOF
33857 /* end confdefs.h.  */
33858 $ac_includes_default
33859 typedef int ac__type_new_;
33860 int
33861 main ()
33862 {
33863 if ((ac__type_new_ *) 0)
33864   return 0;
33865 if (sizeof (ac__type_new_))
33866   return 0;
33867   ;
33868   return 0;
33869 }
33870 _ACEOF
33871 rm -f conftest.$ac_objext
33872 if { (ac_try="$ac_compile"
33873 case "(($ac_try" in
33874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33875   *) ac_try_echo=$ac_try;;
33876 esac
33877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33878   (eval "$ac_compile") 2>conftest.er1
33879   ac_status=$?
33880   grep -v '^ *+' conftest.er1 >conftest.err
33881   rm -f conftest.er1
33882   cat conftest.err >&5
33883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884   (exit $ac_status); } && {
33885          test -z "$ac_c_werror_flag" ||
33886          test ! -s conftest.err
33887        } && test -s conftest.$ac_objext; then
33888   ac_cv_type_int=yes
33889 else
33890   echo "$as_me: failed program was:" >&5
33891 sed 's/^/| /' conftest.$ac_ext >&5
33892
33893         ac_cv_type_int=no
33894 fi
33895
33896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33897 fi
33898 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33899 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33900
33901 # The cast to long int works around a bug in the HP C Compiler
33902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33904 # This bug is HP SR number 8606223364.
33905 { echo "$as_me:$LINENO: checking size of int" >&5
33906 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33907 if test "${ac_cv_sizeof_int+set}" = set; then
33908   echo $ECHO_N "(cached) $ECHO_C" >&6
33909 else
33910   if test "$cross_compiling" = yes; then
33911   # Depending upon the size, compute the lo and hi bounds.
33912 cat >conftest.$ac_ext <<_ACEOF
33913 /* confdefs.h.  */
33914 _ACEOF
33915 cat confdefs.h >>conftest.$ac_ext
33916 cat >>conftest.$ac_ext <<_ACEOF
33917 /* end confdefs.h.  */
33918 $ac_includes_default
33919    typedef int ac__type_sizeof_;
33920 int
33921 main ()
33922 {
33923 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33924 test_array [0] = 0
33925
33926   ;
33927   return 0;
33928 }
33929 _ACEOF
33930 rm -f conftest.$ac_objext
33931 if { (ac_try="$ac_compile"
33932 case "(($ac_try" in
33933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33934   *) ac_try_echo=$ac_try;;
33935 esac
33936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33937   (eval "$ac_compile") 2>conftest.er1
33938   ac_status=$?
33939   grep -v '^ *+' conftest.er1 >conftest.err
33940   rm -f conftest.er1
33941   cat conftest.err >&5
33942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943   (exit $ac_status); } && {
33944          test -z "$ac_c_werror_flag" ||
33945          test ! -s conftest.err
33946        } && test -s conftest.$ac_objext; then
33947   ac_lo=0 ac_mid=0
33948   while :; do
33949     cat >conftest.$ac_ext <<_ACEOF
33950 /* confdefs.h.  */
33951 _ACEOF
33952 cat confdefs.h >>conftest.$ac_ext
33953 cat >>conftest.$ac_ext <<_ACEOF
33954 /* end confdefs.h.  */
33955 $ac_includes_default
33956    typedef int ac__type_sizeof_;
33957 int
33958 main ()
33959 {
33960 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33961 test_array [0] = 0
33962
33963   ;
33964   return 0;
33965 }
33966 _ACEOF
33967 rm -f conftest.$ac_objext
33968 if { (ac_try="$ac_compile"
33969 case "(($ac_try" in
33970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33971   *) ac_try_echo=$ac_try;;
33972 esac
33973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33974   (eval "$ac_compile") 2>conftest.er1
33975   ac_status=$?
33976   grep -v '^ *+' conftest.er1 >conftest.err
33977   rm -f conftest.er1
33978   cat conftest.err >&5
33979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980   (exit $ac_status); } && {
33981          test -z "$ac_c_werror_flag" ||
33982          test ! -s conftest.err
33983        } && test -s conftest.$ac_objext; then
33984   ac_hi=$ac_mid; break
33985 else
33986   echo "$as_me: failed program was:" >&5
33987 sed 's/^/| /' conftest.$ac_ext >&5
33988
33989         ac_lo=`expr $ac_mid + 1`
33990                         if test $ac_lo -le $ac_mid; then
33991                           ac_lo= ac_hi=
33992                           break
33993                         fi
33994                         ac_mid=`expr 2 '*' $ac_mid + 1`
33995 fi
33996
33997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33998   done
33999 else
34000   echo "$as_me: failed program was:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34002
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_sizeof_;
34011 int
34012 main ()
34013 {
34014 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34015 test_array [0] = 0
34016
34017   ;
34018   return 0;
34019 }
34020 _ACEOF
34021 rm -f conftest.$ac_objext
34022 if { (ac_try="$ac_compile"
34023 case "(($ac_try" in
34024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34025   *) ac_try_echo=$ac_try;;
34026 esac
34027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34028   (eval "$ac_compile") 2>conftest.er1
34029   ac_status=$?
34030   grep -v '^ *+' conftest.er1 >conftest.err
34031   rm -f conftest.er1
34032   cat conftest.err >&5
34033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034   (exit $ac_status); } && {
34035          test -z "$ac_c_werror_flag" ||
34036          test ! -s conftest.err
34037        } && test -s conftest.$ac_objext; then
34038   ac_hi=-1 ac_mid=-1
34039   while :; do
34040     cat >conftest.$ac_ext <<_ACEOF
34041 /* confdefs.h.  */
34042 _ACEOF
34043 cat confdefs.h >>conftest.$ac_ext
34044 cat >>conftest.$ac_ext <<_ACEOF
34045 /* end confdefs.h.  */
34046 $ac_includes_default
34047    typedef int ac__type_sizeof_;
34048 int
34049 main ()
34050 {
34051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34052 test_array [0] = 0
34053
34054   ;
34055   return 0;
34056 }
34057 _ACEOF
34058 rm -f conftest.$ac_objext
34059 if { (ac_try="$ac_compile"
34060 case "(($ac_try" in
34061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34062   *) ac_try_echo=$ac_try;;
34063 esac
34064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34065   (eval "$ac_compile") 2>conftest.er1
34066   ac_status=$?
34067   grep -v '^ *+' conftest.er1 >conftest.err
34068   rm -f conftest.er1
34069   cat conftest.err >&5
34070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071   (exit $ac_status); } && {
34072          test -z "$ac_c_werror_flag" ||
34073          test ! -s conftest.err
34074        } && test -s conftest.$ac_objext; then
34075   ac_lo=$ac_mid; break
34076 else
34077   echo "$as_me: failed program was:" >&5
34078 sed 's/^/| /' conftest.$ac_ext >&5
34079
34080         ac_hi=`expr '(' $ac_mid ')' - 1`
34081                         if test $ac_mid -le $ac_hi; then
34082                           ac_lo= ac_hi=
34083                           break
34084                         fi
34085                         ac_mid=`expr 2 '*' $ac_mid`
34086 fi
34087
34088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34089   done
34090 else
34091   echo "$as_me: failed program was:" >&5
34092 sed 's/^/| /' conftest.$ac_ext >&5
34093
34094         ac_lo= ac_hi=
34095 fi
34096
34097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34098 fi
34099
34100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34101 # Binary search between lo and hi bounds.
34102 while test "x$ac_lo" != "x$ac_hi"; do
34103   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34104   cat >conftest.$ac_ext <<_ACEOF
34105 /* confdefs.h.  */
34106 _ACEOF
34107 cat confdefs.h >>conftest.$ac_ext
34108 cat >>conftest.$ac_ext <<_ACEOF
34109 /* end confdefs.h.  */
34110 $ac_includes_default
34111    typedef int ac__type_sizeof_;
34112 int
34113 main ()
34114 {
34115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34116 test_array [0] = 0
34117
34118   ;
34119   return 0;
34120 }
34121 _ACEOF
34122 rm -f conftest.$ac_objext
34123 if { (ac_try="$ac_compile"
34124 case "(($ac_try" in
34125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34126   *) ac_try_echo=$ac_try;;
34127 esac
34128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34129   (eval "$ac_compile") 2>conftest.er1
34130   ac_status=$?
34131   grep -v '^ *+' conftest.er1 >conftest.err
34132   rm -f conftest.er1
34133   cat conftest.err >&5
34134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34135   (exit $ac_status); } && {
34136          test -z "$ac_c_werror_flag" ||
34137          test ! -s conftest.err
34138        } && test -s conftest.$ac_objext; then
34139   ac_hi=$ac_mid
34140 else
34141   echo "$as_me: failed program was:" >&5
34142 sed 's/^/| /' conftest.$ac_ext >&5
34143
34144         ac_lo=`expr '(' $ac_mid ')' + 1`
34145 fi
34146
34147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34148 done
34149 case $ac_lo in
34150 ?*) ac_cv_sizeof_int=$ac_lo;;
34151 '') if test "$ac_cv_type_int" = yes; then
34152      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34153 See \`config.log' for more details." >&5
34154 echo "$as_me: error: cannot compute sizeof (int)
34155 See \`config.log' for more details." >&2;}
34156    { (exit 77); exit 77; }; }
34157    else
34158      ac_cv_sizeof_int=0
34159    fi ;;
34160 esac
34161 else
34162   cat >conftest.$ac_ext <<_ACEOF
34163 /* confdefs.h.  */
34164 _ACEOF
34165 cat confdefs.h >>conftest.$ac_ext
34166 cat >>conftest.$ac_ext <<_ACEOF
34167 /* end confdefs.h.  */
34168 $ac_includes_default
34169    typedef int ac__type_sizeof_;
34170 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34171 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34172 #include <stdio.h>
34173 #include <stdlib.h>
34174 int
34175 main ()
34176 {
34177
34178   FILE *f = fopen ("conftest.val", "w");
34179   if (! f)
34180     return 1;
34181   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34182     {
34183       long int i = longval ();
34184       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34185         return 1;
34186       fprintf (f, "%ld\n", i);
34187     }
34188   else
34189     {
34190       unsigned long int i = ulongval ();
34191       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34192         return 1;
34193       fprintf (f, "%lu\n", i);
34194     }
34195   return ferror (f) || fclose (f) != 0;
34196
34197   ;
34198   return 0;
34199 }
34200 _ACEOF
34201 rm -f conftest$ac_exeext
34202 if { (ac_try="$ac_link"
34203 case "(($ac_try" in
34204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34205   *) ac_try_echo=$ac_try;;
34206 esac
34207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34208   (eval "$ac_link") 2>&5
34209   ac_status=$?
34210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34212   { (case "(($ac_try" in
34213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34214   *) ac_try_echo=$ac_try;;
34215 esac
34216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34217   (eval "$ac_try") 2>&5
34218   ac_status=$?
34219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220   (exit $ac_status); }; }; then
34221   ac_cv_sizeof_int=`cat conftest.val`
34222 else
34223   echo "$as_me: program exited with status $ac_status" >&5
34224 echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.$ac_ext >&5
34226
34227 ( exit $ac_status )
34228 if test "$ac_cv_type_int" = yes; then
34229      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34230 See \`config.log' for more details." >&5
34231 echo "$as_me: error: cannot compute sizeof (int)
34232 See \`config.log' for more details." >&2;}
34233    { (exit 77); exit 77; }; }
34234    else
34235      ac_cv_sizeof_int=0
34236    fi
34237 fi
34238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34239 fi
34240 rm -f conftest.val
34241 fi
34242 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34243 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34244
34245
34246
34247 cat >>confdefs.h <<_ACEOF
34248 #define SIZEOF_INT $ac_cv_sizeof_int
34249 _ACEOF
34250
34251
34252 { echo "$as_me:$LINENO: checking for long" >&5
34253 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34254 if test "${ac_cv_type_long+set}" = set; then
34255   echo $ECHO_N "(cached) $ECHO_C" >&6
34256 else
34257   cat >conftest.$ac_ext <<_ACEOF
34258 /* confdefs.h.  */
34259 _ACEOF
34260 cat confdefs.h >>conftest.$ac_ext
34261 cat >>conftest.$ac_ext <<_ACEOF
34262 /* end confdefs.h.  */
34263 $ac_includes_default
34264 typedef long ac__type_new_;
34265 int
34266 main ()
34267 {
34268 if ((ac__type_new_ *) 0)
34269   return 0;
34270 if (sizeof (ac__type_new_))
34271   return 0;
34272   ;
34273   return 0;
34274 }
34275 _ACEOF
34276 rm -f conftest.$ac_objext
34277 if { (ac_try="$ac_compile"
34278 case "(($ac_try" in
34279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34280   *) ac_try_echo=$ac_try;;
34281 esac
34282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34283   (eval "$ac_compile") 2>conftest.er1
34284   ac_status=$?
34285   grep -v '^ *+' conftest.er1 >conftest.err
34286   rm -f conftest.er1
34287   cat conftest.err >&5
34288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34289   (exit $ac_status); } && {
34290          test -z "$ac_c_werror_flag" ||
34291          test ! -s conftest.err
34292        } && test -s conftest.$ac_objext; then
34293   ac_cv_type_long=yes
34294 else
34295   echo "$as_me: failed program was:" >&5
34296 sed 's/^/| /' conftest.$ac_ext >&5
34297
34298         ac_cv_type_long=no
34299 fi
34300
34301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34302 fi
34303 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34304 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34305
34306 # The cast to long int works around a bug in the HP C Compiler
34307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34309 # This bug is HP SR number 8606223364.
34310 { echo "$as_me:$LINENO: checking size of long" >&5
34311 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34312 if test "${ac_cv_sizeof_long+set}" = set; then
34313   echo $ECHO_N "(cached) $ECHO_C" >&6
34314 else
34315   if test "$cross_compiling" = yes; then
34316   # Depending upon the size, compute the lo and hi bounds.
34317 cat >conftest.$ac_ext <<_ACEOF
34318 /* confdefs.h.  */
34319 _ACEOF
34320 cat confdefs.h >>conftest.$ac_ext
34321 cat >>conftest.$ac_ext <<_ACEOF
34322 /* end confdefs.h.  */
34323 $ac_includes_default
34324    typedef long ac__type_sizeof_;
34325 int
34326 main ()
34327 {
34328 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34329 test_array [0] = 0
34330
34331   ;
34332   return 0;
34333 }
34334 _ACEOF
34335 rm -f conftest.$ac_objext
34336 if { (ac_try="$ac_compile"
34337 case "(($ac_try" in
34338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34339   *) ac_try_echo=$ac_try;;
34340 esac
34341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34342   (eval "$ac_compile") 2>conftest.er1
34343   ac_status=$?
34344   grep -v '^ *+' conftest.er1 >conftest.err
34345   rm -f conftest.er1
34346   cat conftest.err >&5
34347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348   (exit $ac_status); } && {
34349          test -z "$ac_c_werror_flag" ||
34350          test ! -s conftest.err
34351        } && test -s conftest.$ac_objext; then
34352   ac_lo=0 ac_mid=0
34353   while :; do
34354     cat >conftest.$ac_ext <<_ACEOF
34355 /* confdefs.h.  */
34356 _ACEOF
34357 cat confdefs.h >>conftest.$ac_ext
34358 cat >>conftest.$ac_ext <<_ACEOF
34359 /* end confdefs.h.  */
34360 $ac_includes_default
34361    typedef long ac__type_sizeof_;
34362 int
34363 main ()
34364 {
34365 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34366 test_array [0] = 0
34367
34368   ;
34369   return 0;
34370 }
34371 _ACEOF
34372 rm -f conftest.$ac_objext
34373 if { (ac_try="$ac_compile"
34374 case "(($ac_try" in
34375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34376   *) ac_try_echo=$ac_try;;
34377 esac
34378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34379   (eval "$ac_compile") 2>conftest.er1
34380   ac_status=$?
34381   grep -v '^ *+' conftest.er1 >conftest.err
34382   rm -f conftest.er1
34383   cat conftest.err >&5
34384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34385   (exit $ac_status); } && {
34386          test -z "$ac_c_werror_flag" ||
34387          test ! -s conftest.err
34388        } && test -s conftest.$ac_objext; then
34389   ac_hi=$ac_mid; break
34390 else
34391   echo "$as_me: failed program was:" >&5
34392 sed 's/^/| /' conftest.$ac_ext >&5
34393
34394         ac_lo=`expr $ac_mid + 1`
34395                         if test $ac_lo -le $ac_mid; then
34396                           ac_lo= ac_hi=
34397                           break
34398                         fi
34399                         ac_mid=`expr 2 '*' $ac_mid + 1`
34400 fi
34401
34402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34403   done
34404 else
34405   echo "$as_me: failed program was:" >&5
34406 sed 's/^/| /' conftest.$ac_ext >&5
34407
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_sizeof_;
34416 int
34417 main ()
34418 {
34419 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34420 test_array [0] = 0
34421
34422   ;
34423   return 0;
34424 }
34425 _ACEOF
34426 rm -f conftest.$ac_objext
34427 if { (ac_try="$ac_compile"
34428 case "(($ac_try" in
34429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34430   *) ac_try_echo=$ac_try;;
34431 esac
34432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34433   (eval "$ac_compile") 2>conftest.er1
34434   ac_status=$?
34435   grep -v '^ *+' conftest.er1 >conftest.err
34436   rm -f conftest.er1
34437   cat conftest.err >&5
34438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439   (exit $ac_status); } && {
34440          test -z "$ac_c_werror_flag" ||
34441          test ! -s conftest.err
34442        } && test -s conftest.$ac_objext; then
34443   ac_hi=-1 ac_mid=-1
34444   while :; do
34445     cat >conftest.$ac_ext <<_ACEOF
34446 /* confdefs.h.  */
34447 _ACEOF
34448 cat confdefs.h >>conftest.$ac_ext
34449 cat >>conftest.$ac_ext <<_ACEOF
34450 /* end confdefs.h.  */
34451 $ac_includes_default
34452    typedef long ac__type_sizeof_;
34453 int
34454 main ()
34455 {
34456 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34457 test_array [0] = 0
34458
34459   ;
34460   return 0;
34461 }
34462 _ACEOF
34463 rm -f conftest.$ac_objext
34464 if { (ac_try="$ac_compile"
34465 case "(($ac_try" in
34466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34467   *) ac_try_echo=$ac_try;;
34468 esac
34469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34470   (eval "$ac_compile") 2>conftest.er1
34471   ac_status=$?
34472   grep -v '^ *+' conftest.er1 >conftest.err
34473   rm -f conftest.er1
34474   cat conftest.err >&5
34475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476   (exit $ac_status); } && {
34477          test -z "$ac_c_werror_flag" ||
34478          test ! -s conftest.err
34479        } && test -s conftest.$ac_objext; then
34480   ac_lo=$ac_mid; break
34481 else
34482   echo "$as_me: failed program was:" >&5
34483 sed 's/^/| /' conftest.$ac_ext >&5
34484
34485         ac_hi=`expr '(' $ac_mid ')' - 1`
34486                         if test $ac_mid -le $ac_hi; then
34487                           ac_lo= ac_hi=
34488                           break
34489                         fi
34490                         ac_mid=`expr 2 '*' $ac_mid`
34491 fi
34492
34493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34494   done
34495 else
34496   echo "$as_me: failed program was:" >&5
34497 sed 's/^/| /' conftest.$ac_ext >&5
34498
34499         ac_lo= ac_hi=
34500 fi
34501
34502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34503 fi
34504
34505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34506 # Binary search between lo and hi bounds.
34507 while test "x$ac_lo" != "x$ac_hi"; do
34508   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34509   cat >conftest.$ac_ext <<_ACEOF
34510 /* confdefs.h.  */
34511 _ACEOF
34512 cat confdefs.h >>conftest.$ac_ext
34513 cat >>conftest.$ac_ext <<_ACEOF
34514 /* end confdefs.h.  */
34515 $ac_includes_default
34516    typedef long ac__type_sizeof_;
34517 int
34518 main ()
34519 {
34520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34521 test_array [0] = 0
34522
34523   ;
34524   return 0;
34525 }
34526 _ACEOF
34527 rm -f conftest.$ac_objext
34528 if { (ac_try="$ac_compile"
34529 case "(($ac_try" in
34530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34531   *) ac_try_echo=$ac_try;;
34532 esac
34533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34534   (eval "$ac_compile") 2>conftest.er1
34535   ac_status=$?
34536   grep -v '^ *+' conftest.er1 >conftest.err
34537   rm -f conftest.er1
34538   cat conftest.err >&5
34539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34540   (exit $ac_status); } && {
34541          test -z "$ac_c_werror_flag" ||
34542          test ! -s conftest.err
34543        } && test -s conftest.$ac_objext; then
34544   ac_hi=$ac_mid
34545 else
34546   echo "$as_me: failed program was:" >&5
34547 sed 's/^/| /' conftest.$ac_ext >&5
34548
34549         ac_lo=`expr '(' $ac_mid ')' + 1`
34550 fi
34551
34552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34553 done
34554 case $ac_lo in
34555 ?*) ac_cv_sizeof_long=$ac_lo;;
34556 '') if test "$ac_cv_type_long" = yes; then
34557      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34558 See \`config.log' for more details." >&5
34559 echo "$as_me: error: cannot compute sizeof (long)
34560 See \`config.log' for more details." >&2;}
34561    { (exit 77); exit 77; }; }
34562    else
34563      ac_cv_sizeof_long=0
34564    fi ;;
34565 esac
34566 else
34567   cat >conftest.$ac_ext <<_ACEOF
34568 /* confdefs.h.  */
34569 _ACEOF
34570 cat confdefs.h >>conftest.$ac_ext
34571 cat >>conftest.$ac_ext <<_ACEOF
34572 /* end confdefs.h.  */
34573 $ac_includes_default
34574    typedef long ac__type_sizeof_;
34575 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34576 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34577 #include <stdio.h>
34578 #include <stdlib.h>
34579 int
34580 main ()
34581 {
34582
34583   FILE *f = fopen ("conftest.val", "w");
34584   if (! f)
34585     return 1;
34586   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34587     {
34588       long int i = longval ();
34589       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34590         return 1;
34591       fprintf (f, "%ld\n", i);
34592     }
34593   else
34594     {
34595       unsigned long int i = ulongval ();
34596       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34597         return 1;
34598       fprintf (f, "%lu\n", i);
34599     }
34600   return ferror (f) || fclose (f) != 0;
34601
34602   ;
34603   return 0;
34604 }
34605 _ACEOF
34606 rm -f conftest$ac_exeext
34607 if { (ac_try="$ac_link"
34608 case "(($ac_try" in
34609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34610   *) ac_try_echo=$ac_try;;
34611 esac
34612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34613   (eval "$ac_link") 2>&5
34614   ac_status=$?
34615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34617   { (case "(($ac_try" in
34618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34619   *) ac_try_echo=$ac_try;;
34620 esac
34621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34622   (eval "$ac_try") 2>&5
34623   ac_status=$?
34624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625   (exit $ac_status); }; }; then
34626   ac_cv_sizeof_long=`cat conftest.val`
34627 else
34628   echo "$as_me: program exited with status $ac_status" >&5
34629 echo "$as_me: failed program was:" >&5
34630 sed 's/^/| /' conftest.$ac_ext >&5
34631
34632 ( exit $ac_status )
34633 if test "$ac_cv_type_long" = yes; then
34634      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34635 See \`config.log' for more details." >&5
34636 echo "$as_me: error: cannot compute sizeof (long)
34637 See \`config.log' for more details." >&2;}
34638    { (exit 77); exit 77; }; }
34639    else
34640      ac_cv_sizeof_long=0
34641    fi
34642 fi
34643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34644 fi
34645 rm -f conftest.val
34646 fi
34647 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34648 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34649
34650
34651
34652 cat >>confdefs.h <<_ACEOF
34653 #define SIZEOF_LONG $ac_cv_sizeof_long
34654 _ACEOF
34655
34656
34657 { echo "$as_me:$LINENO: checking for long long" >&5
34658 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34659 if test "${ac_cv_type_long_long+set}" = set; then
34660   echo $ECHO_N "(cached) $ECHO_C" >&6
34661 else
34662   cat >conftest.$ac_ext <<_ACEOF
34663 /* confdefs.h.  */
34664 _ACEOF
34665 cat confdefs.h >>conftest.$ac_ext
34666 cat >>conftest.$ac_ext <<_ACEOF
34667 /* end confdefs.h.  */
34668 $ac_includes_default
34669 typedef long long ac__type_new_;
34670 int
34671 main ()
34672 {
34673 if ((ac__type_new_ *) 0)
34674   return 0;
34675 if (sizeof (ac__type_new_))
34676   return 0;
34677   ;
34678   return 0;
34679 }
34680 _ACEOF
34681 rm -f conftest.$ac_objext
34682 if { (ac_try="$ac_compile"
34683 case "(($ac_try" in
34684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34685   *) ac_try_echo=$ac_try;;
34686 esac
34687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34688   (eval "$ac_compile") 2>conftest.er1
34689   ac_status=$?
34690   grep -v '^ *+' conftest.er1 >conftest.err
34691   rm -f conftest.er1
34692   cat conftest.err >&5
34693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694   (exit $ac_status); } && {
34695          test -z "$ac_c_werror_flag" ||
34696          test ! -s conftest.err
34697        } && test -s conftest.$ac_objext; then
34698   ac_cv_type_long_long=yes
34699 else
34700   echo "$as_me: failed program was:" >&5
34701 sed 's/^/| /' conftest.$ac_ext >&5
34702
34703         ac_cv_type_long_long=no
34704 fi
34705
34706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34707 fi
34708 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34709 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34710
34711 # The cast to long int works around a bug in the HP C Compiler
34712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34714 # This bug is HP SR number 8606223364.
34715 { echo "$as_me:$LINENO: checking size of long long" >&5
34716 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34717 if test "${ac_cv_sizeof_long_long+set}" = set; then
34718   echo $ECHO_N "(cached) $ECHO_C" >&6
34719 else
34720   if test "$cross_compiling" = yes; then
34721   # Depending upon the size, compute the lo and hi bounds.
34722 cat >conftest.$ac_ext <<_ACEOF
34723 /* confdefs.h.  */
34724 _ACEOF
34725 cat confdefs.h >>conftest.$ac_ext
34726 cat >>conftest.$ac_ext <<_ACEOF
34727 /* end confdefs.h.  */
34728 $ac_includes_default
34729    typedef long long ac__type_sizeof_;
34730 int
34731 main ()
34732 {
34733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34734 test_array [0] = 0
34735
34736   ;
34737   return 0;
34738 }
34739 _ACEOF
34740 rm -f conftest.$ac_objext
34741 if { (ac_try="$ac_compile"
34742 case "(($ac_try" in
34743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34744   *) ac_try_echo=$ac_try;;
34745 esac
34746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34747   (eval "$ac_compile") 2>conftest.er1
34748   ac_status=$?
34749   grep -v '^ *+' conftest.er1 >conftest.err
34750   rm -f conftest.er1
34751   cat conftest.err >&5
34752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34753   (exit $ac_status); } && {
34754          test -z "$ac_c_werror_flag" ||
34755          test ! -s conftest.err
34756        } && test -s conftest.$ac_objext; then
34757   ac_lo=0 ac_mid=0
34758   while :; do
34759     cat >conftest.$ac_ext <<_ACEOF
34760 /* confdefs.h.  */
34761 _ACEOF
34762 cat confdefs.h >>conftest.$ac_ext
34763 cat >>conftest.$ac_ext <<_ACEOF
34764 /* end confdefs.h.  */
34765 $ac_includes_default
34766    typedef long long ac__type_sizeof_;
34767 int
34768 main ()
34769 {
34770 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34771 test_array [0] = 0
34772
34773   ;
34774   return 0;
34775 }
34776 _ACEOF
34777 rm -f conftest.$ac_objext
34778 if { (ac_try="$ac_compile"
34779 case "(($ac_try" in
34780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34781   *) ac_try_echo=$ac_try;;
34782 esac
34783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34784   (eval "$ac_compile") 2>conftest.er1
34785   ac_status=$?
34786   grep -v '^ *+' conftest.er1 >conftest.err
34787   rm -f conftest.er1
34788   cat conftest.err >&5
34789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790   (exit $ac_status); } && {
34791          test -z "$ac_c_werror_flag" ||
34792          test ! -s conftest.err
34793        } && test -s conftest.$ac_objext; then
34794   ac_hi=$ac_mid; break
34795 else
34796   echo "$as_me: failed program was:" >&5
34797 sed 's/^/| /' conftest.$ac_ext >&5
34798
34799         ac_lo=`expr $ac_mid + 1`
34800                         if test $ac_lo -le $ac_mid; then
34801                           ac_lo= ac_hi=
34802                           break
34803                         fi
34804                         ac_mid=`expr 2 '*' $ac_mid + 1`
34805 fi
34806
34807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34808   done
34809 else
34810   echo "$as_me: failed program was:" >&5
34811 sed 's/^/| /' conftest.$ac_ext >&5
34812
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_sizeof_;
34821 int
34822 main ()
34823 {
34824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34825 test_array [0] = 0
34826
34827   ;
34828   return 0;
34829 }
34830 _ACEOF
34831 rm -f conftest.$ac_objext
34832 if { (ac_try="$ac_compile"
34833 case "(($ac_try" in
34834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34835   *) ac_try_echo=$ac_try;;
34836 esac
34837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34838   (eval "$ac_compile") 2>conftest.er1
34839   ac_status=$?
34840   grep -v '^ *+' conftest.er1 >conftest.err
34841   rm -f conftest.er1
34842   cat conftest.err >&5
34843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844   (exit $ac_status); } && {
34845          test -z "$ac_c_werror_flag" ||
34846          test ! -s conftest.err
34847        } && test -s conftest.$ac_objext; then
34848   ac_hi=-1 ac_mid=-1
34849   while :; do
34850     cat >conftest.$ac_ext <<_ACEOF
34851 /* confdefs.h.  */
34852 _ACEOF
34853 cat confdefs.h >>conftest.$ac_ext
34854 cat >>conftest.$ac_ext <<_ACEOF
34855 /* end confdefs.h.  */
34856 $ac_includes_default
34857    typedef long long ac__type_sizeof_;
34858 int
34859 main ()
34860 {
34861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34862 test_array [0] = 0
34863
34864   ;
34865   return 0;
34866 }
34867 _ACEOF
34868 rm -f conftest.$ac_objext
34869 if { (ac_try="$ac_compile"
34870 case "(($ac_try" in
34871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34872   *) ac_try_echo=$ac_try;;
34873 esac
34874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34875   (eval "$ac_compile") 2>conftest.er1
34876   ac_status=$?
34877   grep -v '^ *+' conftest.er1 >conftest.err
34878   rm -f conftest.er1
34879   cat conftest.err >&5
34880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34881   (exit $ac_status); } && {
34882          test -z "$ac_c_werror_flag" ||
34883          test ! -s conftest.err
34884        } && test -s conftest.$ac_objext; then
34885   ac_lo=$ac_mid; break
34886 else
34887   echo "$as_me: failed program was:" >&5
34888 sed 's/^/| /' conftest.$ac_ext >&5
34889
34890         ac_hi=`expr '(' $ac_mid ')' - 1`
34891                         if test $ac_mid -le $ac_hi; then
34892                           ac_lo= ac_hi=
34893                           break
34894                         fi
34895                         ac_mid=`expr 2 '*' $ac_mid`
34896 fi
34897
34898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34899   done
34900 else
34901   echo "$as_me: failed program was:" >&5
34902 sed 's/^/| /' conftest.$ac_ext >&5
34903
34904         ac_lo= ac_hi=
34905 fi
34906
34907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34908 fi
34909
34910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34911 # Binary search between lo and hi bounds.
34912 while test "x$ac_lo" != "x$ac_hi"; do
34913   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34914   cat >conftest.$ac_ext <<_ACEOF
34915 /* confdefs.h.  */
34916 _ACEOF
34917 cat confdefs.h >>conftest.$ac_ext
34918 cat >>conftest.$ac_ext <<_ACEOF
34919 /* end confdefs.h.  */
34920 $ac_includes_default
34921    typedef long long ac__type_sizeof_;
34922 int
34923 main ()
34924 {
34925 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34926 test_array [0] = 0
34927
34928   ;
34929   return 0;
34930 }
34931 _ACEOF
34932 rm -f conftest.$ac_objext
34933 if { (ac_try="$ac_compile"
34934 case "(($ac_try" in
34935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34936   *) ac_try_echo=$ac_try;;
34937 esac
34938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34939   (eval "$ac_compile") 2>conftest.er1
34940   ac_status=$?
34941   grep -v '^ *+' conftest.er1 >conftest.err
34942   rm -f conftest.er1
34943   cat conftest.err >&5
34944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945   (exit $ac_status); } && {
34946          test -z "$ac_c_werror_flag" ||
34947          test ! -s conftest.err
34948        } && test -s conftest.$ac_objext; then
34949   ac_hi=$ac_mid
34950 else
34951   echo "$as_me: failed program was:" >&5
34952 sed 's/^/| /' conftest.$ac_ext >&5
34953
34954         ac_lo=`expr '(' $ac_mid ')' + 1`
34955 fi
34956
34957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34958 done
34959 case $ac_lo in
34960 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34961 '') if test "$ac_cv_type_long_long" = yes; then
34962      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34963 See \`config.log' for more details." >&5
34964 echo "$as_me: error: cannot compute sizeof (long long)
34965 See \`config.log' for more details." >&2;}
34966    { (exit 77); exit 77; }; }
34967    else
34968      ac_cv_sizeof_long_long=0
34969    fi ;;
34970 esac
34971 else
34972   cat >conftest.$ac_ext <<_ACEOF
34973 /* confdefs.h.  */
34974 _ACEOF
34975 cat confdefs.h >>conftest.$ac_ext
34976 cat >>conftest.$ac_ext <<_ACEOF
34977 /* end confdefs.h.  */
34978 $ac_includes_default
34979    typedef long long ac__type_sizeof_;
34980 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34981 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34982 #include <stdio.h>
34983 #include <stdlib.h>
34984 int
34985 main ()
34986 {
34987
34988   FILE *f = fopen ("conftest.val", "w");
34989   if (! f)
34990     return 1;
34991   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34992     {
34993       long int i = longval ();
34994       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34995         return 1;
34996       fprintf (f, "%ld\n", i);
34997     }
34998   else
34999     {
35000       unsigned long int i = ulongval ();
35001       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35002         return 1;
35003       fprintf (f, "%lu\n", i);
35004     }
35005   return ferror (f) || fclose (f) != 0;
35006
35007   ;
35008   return 0;
35009 }
35010 _ACEOF
35011 rm -f conftest$ac_exeext
35012 if { (ac_try="$ac_link"
35013 case "(($ac_try" in
35014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35015   *) ac_try_echo=$ac_try;;
35016 esac
35017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35018   (eval "$ac_link") 2>&5
35019   ac_status=$?
35020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35022   { (case "(($ac_try" in
35023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35024   *) ac_try_echo=$ac_try;;
35025 esac
35026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35027   (eval "$ac_try") 2>&5
35028   ac_status=$?
35029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030   (exit $ac_status); }; }; then
35031   ac_cv_sizeof_long_long=`cat conftest.val`
35032 else
35033   echo "$as_me: program exited with status $ac_status" >&5
35034 echo "$as_me: failed program was:" >&5
35035 sed 's/^/| /' conftest.$ac_ext >&5
35036
35037 ( exit $ac_status )
35038 if test "$ac_cv_type_long_long" = yes; then
35039      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35040 See \`config.log' for more details." >&5
35041 echo "$as_me: error: cannot compute sizeof (long long)
35042 See \`config.log' for more details." >&2;}
35043    { (exit 77); exit 77; }; }
35044    else
35045      ac_cv_sizeof_long_long=0
35046    fi
35047 fi
35048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35049 fi
35050 rm -f conftest.val
35051 fi
35052 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35053 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35054
35055
35056
35057 cat >>confdefs.h <<_ACEOF
35058 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35059 _ACEOF
35060
35061
35062 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35063 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35064 if test "${ac_cv_type_wchar_t+set}" = set; then
35065   echo $ECHO_N "(cached) $ECHO_C" >&6
35066 else
35067   cat >conftest.$ac_ext <<_ACEOF
35068 /* confdefs.h.  */
35069 _ACEOF
35070 cat confdefs.h >>conftest.$ac_ext
35071 cat >>conftest.$ac_ext <<_ACEOF
35072 /* end confdefs.h.  */
35073 $ac_includes_default
35074 typedef wchar_t ac__type_new_;
35075 int
35076 main ()
35077 {
35078 if ((ac__type_new_ *) 0)
35079   return 0;
35080 if (sizeof (ac__type_new_))
35081   return 0;
35082   ;
35083   return 0;
35084 }
35085 _ACEOF
35086 rm -f conftest.$ac_objext
35087 if { (ac_try="$ac_compile"
35088 case "(($ac_try" in
35089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35090   *) ac_try_echo=$ac_try;;
35091 esac
35092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35093   (eval "$ac_compile") 2>conftest.er1
35094   ac_status=$?
35095   grep -v '^ *+' conftest.er1 >conftest.err
35096   rm -f conftest.er1
35097   cat conftest.err >&5
35098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099   (exit $ac_status); } && {
35100          test -z "$ac_c_werror_flag" ||
35101          test ! -s conftest.err
35102        } && test -s conftest.$ac_objext; then
35103   ac_cv_type_wchar_t=yes
35104 else
35105   echo "$as_me: failed program was:" >&5
35106 sed 's/^/| /' conftest.$ac_ext >&5
35107
35108         ac_cv_type_wchar_t=no
35109 fi
35110
35111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35112 fi
35113 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35114 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35115
35116 # The cast to long int works around a bug in the HP C Compiler
35117 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35118 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35119 # This bug is HP SR number 8606223364.
35120 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35121 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35122 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35123   echo $ECHO_N "(cached) $ECHO_C" >&6
35124 else
35125   if test "$cross_compiling" = yes; then
35126   # Depending upon the size, compute the lo and hi bounds.
35127 cat >conftest.$ac_ext <<_ACEOF
35128 /* confdefs.h.  */
35129 _ACEOF
35130 cat confdefs.h >>conftest.$ac_ext
35131 cat >>conftest.$ac_ext <<_ACEOF
35132 /* end confdefs.h.  */
35133 $ac_includes_default
35134    typedef wchar_t ac__type_sizeof_;
35135 int
35136 main ()
35137 {
35138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35139 test_array [0] = 0
35140
35141   ;
35142   return 0;
35143 }
35144 _ACEOF
35145 rm -f conftest.$ac_objext
35146 if { (ac_try="$ac_compile"
35147 case "(($ac_try" in
35148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35149   *) ac_try_echo=$ac_try;;
35150 esac
35151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35152   (eval "$ac_compile") 2>conftest.er1
35153   ac_status=$?
35154   grep -v '^ *+' conftest.er1 >conftest.err
35155   rm -f conftest.er1
35156   cat conftest.err >&5
35157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158   (exit $ac_status); } && {
35159          test -z "$ac_c_werror_flag" ||
35160          test ! -s conftest.err
35161        } && test -s conftest.$ac_objext; then
35162   ac_lo=0 ac_mid=0
35163   while :; do
35164     cat >conftest.$ac_ext <<_ACEOF
35165 /* confdefs.h.  */
35166 _ACEOF
35167 cat confdefs.h >>conftest.$ac_ext
35168 cat >>conftest.$ac_ext <<_ACEOF
35169 /* end confdefs.h.  */
35170 $ac_includes_default
35171    typedef wchar_t ac__type_sizeof_;
35172 int
35173 main ()
35174 {
35175 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35176 test_array [0] = 0
35177
35178   ;
35179   return 0;
35180 }
35181 _ACEOF
35182 rm -f conftest.$ac_objext
35183 if { (ac_try="$ac_compile"
35184 case "(($ac_try" in
35185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35186   *) ac_try_echo=$ac_try;;
35187 esac
35188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35189   (eval "$ac_compile") 2>conftest.er1
35190   ac_status=$?
35191   grep -v '^ *+' conftest.er1 >conftest.err
35192   rm -f conftest.er1
35193   cat conftest.err >&5
35194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195   (exit $ac_status); } && {
35196          test -z "$ac_c_werror_flag" ||
35197          test ! -s conftest.err
35198        } && test -s conftest.$ac_objext; then
35199   ac_hi=$ac_mid; break
35200 else
35201   echo "$as_me: failed program was:" >&5
35202 sed 's/^/| /' conftest.$ac_ext >&5
35203
35204         ac_lo=`expr $ac_mid + 1`
35205                         if test $ac_lo -le $ac_mid; then
35206                           ac_lo= ac_hi=
35207                           break
35208                         fi
35209                         ac_mid=`expr 2 '*' $ac_mid + 1`
35210 fi
35211
35212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35213   done
35214 else
35215   echo "$as_me: failed program was:" >&5
35216 sed 's/^/| /' conftest.$ac_ext >&5
35217
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_sizeof_;
35226 int
35227 main ()
35228 {
35229 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35230 test_array [0] = 0
35231
35232   ;
35233   return 0;
35234 }
35235 _ACEOF
35236 rm -f conftest.$ac_objext
35237 if { (ac_try="$ac_compile"
35238 case "(($ac_try" in
35239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35240   *) ac_try_echo=$ac_try;;
35241 esac
35242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35243   (eval "$ac_compile") 2>conftest.er1
35244   ac_status=$?
35245   grep -v '^ *+' conftest.er1 >conftest.err
35246   rm -f conftest.er1
35247   cat conftest.err >&5
35248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249   (exit $ac_status); } && {
35250          test -z "$ac_c_werror_flag" ||
35251          test ! -s conftest.err
35252        } && test -s conftest.$ac_objext; then
35253   ac_hi=-1 ac_mid=-1
35254   while :; do
35255     cat >conftest.$ac_ext <<_ACEOF
35256 /* confdefs.h.  */
35257 _ACEOF
35258 cat confdefs.h >>conftest.$ac_ext
35259 cat >>conftest.$ac_ext <<_ACEOF
35260 /* end confdefs.h.  */
35261 $ac_includes_default
35262    typedef wchar_t ac__type_sizeof_;
35263 int
35264 main ()
35265 {
35266 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35267 test_array [0] = 0
35268
35269   ;
35270   return 0;
35271 }
35272 _ACEOF
35273 rm -f conftest.$ac_objext
35274 if { (ac_try="$ac_compile"
35275 case "(($ac_try" in
35276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35277   *) ac_try_echo=$ac_try;;
35278 esac
35279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35280   (eval "$ac_compile") 2>conftest.er1
35281   ac_status=$?
35282   grep -v '^ *+' conftest.er1 >conftest.err
35283   rm -f conftest.er1
35284   cat conftest.err >&5
35285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286   (exit $ac_status); } && {
35287          test -z "$ac_c_werror_flag" ||
35288          test ! -s conftest.err
35289        } && test -s conftest.$ac_objext; then
35290   ac_lo=$ac_mid; break
35291 else
35292   echo "$as_me: failed program was:" >&5
35293 sed 's/^/| /' conftest.$ac_ext >&5
35294
35295         ac_hi=`expr '(' $ac_mid ')' - 1`
35296                         if test $ac_mid -le $ac_hi; then
35297                           ac_lo= ac_hi=
35298                           break
35299                         fi
35300                         ac_mid=`expr 2 '*' $ac_mid`
35301 fi
35302
35303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35304   done
35305 else
35306   echo "$as_me: failed program was:" >&5
35307 sed 's/^/| /' conftest.$ac_ext >&5
35308
35309         ac_lo= ac_hi=
35310 fi
35311
35312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35313 fi
35314
35315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35316 # Binary search between lo and hi bounds.
35317 while test "x$ac_lo" != "x$ac_hi"; do
35318   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35319   cat >conftest.$ac_ext <<_ACEOF
35320 /* confdefs.h.  */
35321 _ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h.  */
35325 $ac_includes_default
35326    typedef wchar_t ac__type_sizeof_;
35327 int
35328 main ()
35329 {
35330 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35331 test_array [0] = 0
35332
35333   ;
35334   return 0;
35335 }
35336 _ACEOF
35337 rm -f conftest.$ac_objext
35338 if { (ac_try="$ac_compile"
35339 case "(($ac_try" in
35340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35341   *) ac_try_echo=$ac_try;;
35342 esac
35343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35344   (eval "$ac_compile") 2>conftest.er1
35345   ac_status=$?
35346   grep -v '^ *+' conftest.er1 >conftest.err
35347   rm -f conftest.er1
35348   cat conftest.err >&5
35349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350   (exit $ac_status); } && {
35351          test -z "$ac_c_werror_flag" ||
35352          test ! -s conftest.err
35353        } && test -s conftest.$ac_objext; then
35354   ac_hi=$ac_mid
35355 else
35356   echo "$as_me: failed program was:" >&5
35357 sed 's/^/| /' conftest.$ac_ext >&5
35358
35359         ac_lo=`expr '(' $ac_mid ')' + 1`
35360 fi
35361
35362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35363 done
35364 case $ac_lo in
35365 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35366 '') if test "$ac_cv_type_wchar_t" = yes; then
35367      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35368 See \`config.log' for more details." >&5
35369 echo "$as_me: error: cannot compute sizeof (wchar_t)
35370 See \`config.log' for more details." >&2;}
35371    { (exit 77); exit 77; }; }
35372    else
35373      ac_cv_sizeof_wchar_t=0
35374    fi ;;
35375 esac
35376 else
35377   cat >conftest.$ac_ext <<_ACEOF
35378 /* confdefs.h.  */
35379 _ACEOF
35380 cat confdefs.h >>conftest.$ac_ext
35381 cat >>conftest.$ac_ext <<_ACEOF
35382 /* end confdefs.h.  */
35383 $ac_includes_default
35384    typedef wchar_t ac__type_sizeof_;
35385 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35386 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35387 #include <stdio.h>
35388 #include <stdlib.h>
35389 int
35390 main ()
35391 {
35392
35393   FILE *f = fopen ("conftest.val", "w");
35394   if (! f)
35395     return 1;
35396   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35397     {
35398       long int i = longval ();
35399       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35400         return 1;
35401       fprintf (f, "%ld\n", i);
35402     }
35403   else
35404     {
35405       unsigned long int i = ulongval ();
35406       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35407         return 1;
35408       fprintf (f, "%lu\n", i);
35409     }
35410   return ferror (f) || fclose (f) != 0;
35411
35412   ;
35413   return 0;
35414 }
35415 _ACEOF
35416 rm -f conftest$ac_exeext
35417 if { (ac_try="$ac_link"
35418 case "(($ac_try" in
35419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35420   *) ac_try_echo=$ac_try;;
35421 esac
35422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35423   (eval "$ac_link") 2>&5
35424   ac_status=$?
35425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35427   { (case "(($ac_try" in
35428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35429   *) ac_try_echo=$ac_try;;
35430 esac
35431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35432   (eval "$ac_try") 2>&5
35433   ac_status=$?
35434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435   (exit $ac_status); }; }; then
35436   ac_cv_sizeof_wchar_t=`cat conftest.val`
35437 else
35438   echo "$as_me: program exited with status $ac_status" >&5
35439 echo "$as_me: failed program was:" >&5
35440 sed 's/^/| /' conftest.$ac_ext >&5
35441
35442 ( exit $ac_status )
35443 if test "$ac_cv_type_wchar_t" = yes; then
35444      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35445 See \`config.log' for more details." >&5
35446 echo "$as_me: error: cannot compute sizeof (wchar_t)
35447 See \`config.log' for more details." >&2;}
35448    { (exit 77); exit 77; }; }
35449    else
35450      ac_cv_sizeof_wchar_t=0
35451    fi
35452 fi
35453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35454 fi
35455 rm -f conftest.val
35456 fi
35457 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35458 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35459
35460
35461
35462 cat >>confdefs.h <<_ACEOF
35463 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35464 _ACEOF
35465
35466
35467
35468 if test "$ac_cv_sizeof_int" -lt 4 ; then
35469         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35470 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35471
35472
35473 cat >>confdefs.h <<\_ACEOF
35474 #define LBER_INT_T long
35475 _ACEOF
35476
35477 else
35478
35479 cat >>confdefs.h <<\_ACEOF
35480 #define LBER_INT_T int
35481 _ACEOF
35482
35483 fi
35484
35485
35486 cat >>confdefs.h <<\_ACEOF
35487 #define LBER_LEN_T long
35488 _ACEOF
35489
35490
35491 cat >>confdefs.h <<\_ACEOF
35492 #define LBER_SOCKET_T int
35493 _ACEOF
35494
35495
35496 cat >>confdefs.h <<\_ACEOF
35497 #define LBER_TAG_T long
35498 _ACEOF
35499
35500
35501 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35502         if test $ac_cv_sizeof_long_long -gt 4 ; then
35503                 ol_with_mp=longlong
35504
35505 cat >>confdefs.h <<\_ACEOF
35506 #define USE_MP_LONG_LONG 1
35507 _ACEOF
35508
35509         elif test $ol_with_mp = longlong ; then
35510                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35511 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35512    { (exit 1); exit 1; }; }
35513         fi
35514 fi
35515 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35516         if test $ac_cv_sizeof_long -gt 4 ; then
35517                 ol_with_mp=long
35518
35519 cat >>confdefs.h <<\_ACEOF
35520 #define USE_MP_LONG 1
35521 _ACEOF
35522
35523         elif test $ol_with_mp = long ; then
35524                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35525 echo "$as_me: error: long unusable for multiple precision" >&2;}
35526    { (exit 1); exit 1; }; }
35527         fi
35528 fi
35529 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35530
35531 for ac_header in openssl/bn.h
35532 do
35533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35535   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35538   echo $ECHO_N "(cached) $ECHO_C" >&6
35539 fi
35540 ac_res=`eval echo '${'$as_ac_Header'}'`
35541                { echo "$as_me:$LINENO: result: $ac_res" >&5
35542 echo "${ECHO_T}$ac_res" >&6; }
35543 else
35544   # Is the header compilable?
35545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35547 cat >conftest.$ac_ext <<_ACEOF
35548 /* confdefs.h.  */
35549 _ACEOF
35550 cat confdefs.h >>conftest.$ac_ext
35551 cat >>conftest.$ac_ext <<_ACEOF
35552 /* end confdefs.h.  */
35553 $ac_includes_default
35554 #include <$ac_header>
35555 _ACEOF
35556 rm -f conftest.$ac_objext
35557 if { (ac_try="$ac_compile"
35558 case "(($ac_try" in
35559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35560   *) ac_try_echo=$ac_try;;
35561 esac
35562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35563   (eval "$ac_compile") 2>conftest.er1
35564   ac_status=$?
35565   grep -v '^ *+' conftest.er1 >conftest.err
35566   rm -f conftest.er1
35567   cat conftest.err >&5
35568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35569   (exit $ac_status); } && {
35570          test -z "$ac_c_werror_flag" ||
35571          test ! -s conftest.err
35572        } && test -s conftest.$ac_objext; then
35573   ac_header_compiler=yes
35574 else
35575   echo "$as_me: failed program was:" >&5
35576 sed 's/^/| /' conftest.$ac_ext >&5
35577
35578         ac_header_compiler=no
35579 fi
35580
35581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35583 echo "${ECHO_T}$ac_header_compiler" >&6; }
35584
35585 # Is the header present?
35586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35588 cat >conftest.$ac_ext <<_ACEOF
35589 /* confdefs.h.  */
35590 _ACEOF
35591 cat confdefs.h >>conftest.$ac_ext
35592 cat >>conftest.$ac_ext <<_ACEOF
35593 /* end confdefs.h.  */
35594 #include <$ac_header>
35595 _ACEOF
35596 if { (ac_try="$ac_cpp conftest.$ac_ext"
35597 case "(($ac_try" in
35598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35599   *) ac_try_echo=$ac_try;;
35600 esac
35601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35603   ac_status=$?
35604   grep -v '^ *+' conftest.er1 >conftest.err
35605   rm -f conftest.er1
35606   cat conftest.err >&5
35607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608   (exit $ac_status); } >/dev/null && {
35609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35610          test ! -s conftest.err
35611        }; then
35612   ac_header_preproc=yes
35613 else
35614   echo "$as_me: failed program was:" >&5
35615 sed 's/^/| /' conftest.$ac_ext >&5
35616
35617   ac_header_preproc=no
35618 fi
35619
35620 rm -f conftest.err conftest.$ac_ext
35621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35622 echo "${ECHO_T}$ac_header_preproc" >&6; }
35623
35624 # So?  What about this header?
35625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35626   yes:no: )
35627     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35631     ac_header_preproc=yes
35632     ;;
35633   no:yes:* )
35634     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35636     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35637 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35638     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35640     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35641 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35644     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35646     ( cat <<\_ASBOX
35647 ## --------------------------------------------- ##
35648 ## Report this to <http://www.openldap.org/its/> ##
35649 ## --------------------------------------------- ##
35650 _ASBOX
35651      ) | sed "s/^/$as_me: WARNING:     /" >&2
35652     ;;
35653 esac
35654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35657   echo $ECHO_N "(cached) $ECHO_C" >&6
35658 else
35659   eval "$as_ac_Header=\$ac_header_preproc"
35660 fi
35661 ac_res=`eval echo '${'$as_ac_Header'}'`
35662                { echo "$as_me:$LINENO: result: $ac_res" >&5
35663 echo "${ECHO_T}$ac_res" >&6; }
35664
35665 fi
35666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35667   cat >>confdefs.h <<_ACEOF
35668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35669 _ACEOF
35670
35671 fi
35672
35673 done
35674
35675
35676 for ac_header in openssl/crypto.h
35677 do
35678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35680   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35683   echo $ECHO_N "(cached) $ECHO_C" >&6
35684 fi
35685 ac_res=`eval echo '${'$as_ac_Header'}'`
35686                { echo "$as_me:$LINENO: result: $ac_res" >&5
35687 echo "${ECHO_T}$ac_res" >&6; }
35688 else
35689   # Is the header compilable?
35690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35692 cat >conftest.$ac_ext <<_ACEOF
35693 /* confdefs.h.  */
35694 _ACEOF
35695 cat confdefs.h >>conftest.$ac_ext
35696 cat >>conftest.$ac_ext <<_ACEOF
35697 /* end confdefs.h.  */
35698 $ac_includes_default
35699 #include <$ac_header>
35700 _ACEOF
35701 rm -f conftest.$ac_objext
35702 if { (ac_try="$ac_compile"
35703 case "(($ac_try" in
35704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35705   *) ac_try_echo=$ac_try;;
35706 esac
35707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35708   (eval "$ac_compile") 2>conftest.er1
35709   ac_status=$?
35710   grep -v '^ *+' conftest.er1 >conftest.err
35711   rm -f conftest.er1
35712   cat conftest.err >&5
35713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35714   (exit $ac_status); } && {
35715          test -z "$ac_c_werror_flag" ||
35716          test ! -s conftest.err
35717        } && test -s conftest.$ac_objext; then
35718   ac_header_compiler=yes
35719 else
35720   echo "$as_me: failed program was:" >&5
35721 sed 's/^/| /' conftest.$ac_ext >&5
35722
35723         ac_header_compiler=no
35724 fi
35725
35726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35728 echo "${ECHO_T}$ac_header_compiler" >&6; }
35729
35730 # Is the header present?
35731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35733 cat >conftest.$ac_ext <<_ACEOF
35734 /* confdefs.h.  */
35735 _ACEOF
35736 cat confdefs.h >>conftest.$ac_ext
35737 cat >>conftest.$ac_ext <<_ACEOF
35738 /* end confdefs.h.  */
35739 #include <$ac_header>
35740 _ACEOF
35741 if { (ac_try="$ac_cpp conftest.$ac_ext"
35742 case "(($ac_try" in
35743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35744   *) ac_try_echo=$ac_try;;
35745 esac
35746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35748   ac_status=$?
35749   grep -v '^ *+' conftest.er1 >conftest.err
35750   rm -f conftest.er1
35751   cat conftest.err >&5
35752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753   (exit $ac_status); } >/dev/null && {
35754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35755          test ! -s conftest.err
35756        }; then
35757   ac_header_preproc=yes
35758 else
35759   echo "$as_me: failed program was:" >&5
35760 sed 's/^/| /' conftest.$ac_ext >&5
35761
35762   ac_header_preproc=no
35763 fi
35764
35765 rm -f conftest.err conftest.$ac_ext
35766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35767 echo "${ECHO_T}$ac_header_preproc" >&6; }
35768
35769 # So?  What about this header?
35770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35771   yes:no: )
35772     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35776     ac_header_preproc=yes
35777     ;;
35778   no:yes:* )
35779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35781     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35782 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35783     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35785     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35786 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35789     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35791     ( cat <<\_ASBOX
35792 ## --------------------------------------------- ##
35793 ## Report this to <http://www.openldap.org/its/> ##
35794 ## --------------------------------------------- ##
35795 _ASBOX
35796      ) | sed "s/^/$as_me: WARNING:     /" >&2
35797     ;;
35798 esac
35799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35802   echo $ECHO_N "(cached) $ECHO_C" >&6
35803 else
35804   eval "$as_ac_Header=\$ac_header_preproc"
35805 fi
35806 ac_res=`eval echo '${'$as_ac_Header'}'`
35807                { echo "$as_me:$LINENO: result: $ac_res" >&5
35808 echo "${ECHO_T}$ac_res" >&6; }
35809
35810 fi
35811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35812   cat >>confdefs.h <<_ACEOF
35813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35814 _ACEOF
35815
35816 fi
35817
35818 done
35819
35820         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35821                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35822                 test "$ol_with_tls" = "found" ; then
35823                 ol_with_mp=bignum
35824
35825 cat >>confdefs.h <<\_ACEOF
35826 #define USE_MP_BIGNUM 1
35827 _ACEOF
35828
35829         elif test $ol_with_mp = bignum ; then
35830                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35831 echo "$as_me: error: bignum not available" >&2;}
35832    { (exit 1); exit 1; }; }
35833         fi
35834 fi
35835 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35836
35837 for ac_header in gmp.h
35838 do
35839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35841   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35844   echo $ECHO_N "(cached) $ECHO_C" >&6
35845 fi
35846 ac_res=`eval echo '${'$as_ac_Header'}'`
35847                { echo "$as_me:$LINENO: result: $ac_res" >&5
35848 echo "${ECHO_T}$ac_res" >&6; }
35849 else
35850   # Is the header compilable?
35851 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35853 cat >conftest.$ac_ext <<_ACEOF
35854 /* confdefs.h.  */
35855 _ACEOF
35856 cat confdefs.h >>conftest.$ac_ext
35857 cat >>conftest.$ac_ext <<_ACEOF
35858 /* end confdefs.h.  */
35859 $ac_includes_default
35860 #include <$ac_header>
35861 _ACEOF
35862 rm -f conftest.$ac_objext
35863 if { (ac_try="$ac_compile"
35864 case "(($ac_try" in
35865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35866   *) ac_try_echo=$ac_try;;
35867 esac
35868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35869   (eval "$ac_compile") 2>conftest.er1
35870   ac_status=$?
35871   grep -v '^ *+' conftest.er1 >conftest.err
35872   rm -f conftest.er1
35873   cat conftest.err >&5
35874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35875   (exit $ac_status); } && {
35876          test -z "$ac_c_werror_flag" ||
35877          test ! -s conftest.err
35878        } && test -s conftest.$ac_objext; then
35879   ac_header_compiler=yes
35880 else
35881   echo "$as_me: failed program was:" >&5
35882 sed 's/^/| /' conftest.$ac_ext >&5
35883
35884         ac_header_compiler=no
35885 fi
35886
35887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35889 echo "${ECHO_T}$ac_header_compiler" >&6; }
35890
35891 # Is the header present?
35892 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35894 cat >conftest.$ac_ext <<_ACEOF
35895 /* confdefs.h.  */
35896 _ACEOF
35897 cat confdefs.h >>conftest.$ac_ext
35898 cat >>conftest.$ac_ext <<_ACEOF
35899 /* end confdefs.h.  */
35900 #include <$ac_header>
35901 _ACEOF
35902 if { (ac_try="$ac_cpp conftest.$ac_ext"
35903 case "(($ac_try" in
35904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35905   *) ac_try_echo=$ac_try;;
35906 esac
35907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35908   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35909   ac_status=$?
35910   grep -v '^ *+' conftest.er1 >conftest.err
35911   rm -f conftest.er1
35912   cat conftest.err >&5
35913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914   (exit $ac_status); } >/dev/null && {
35915          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35916          test ! -s conftest.err
35917        }; then
35918   ac_header_preproc=yes
35919 else
35920   echo "$as_me: failed program was:" >&5
35921 sed 's/^/| /' conftest.$ac_ext >&5
35922
35923   ac_header_preproc=no
35924 fi
35925
35926 rm -f conftest.err conftest.$ac_ext
35927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35928 echo "${ECHO_T}$ac_header_preproc" >&6; }
35929
35930 # So?  What about this header?
35931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35932   yes:no: )
35933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35937     ac_header_preproc=yes
35938     ;;
35939   no:yes:* )
35940     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35942     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35943 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35944     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35946     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35947 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35950     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35952     ( cat <<\_ASBOX
35953 ## --------------------------------------------- ##
35954 ## Report this to <http://www.openldap.org/its/> ##
35955 ## --------------------------------------------- ##
35956 _ASBOX
35957      ) | sed "s/^/$as_me: WARNING:     /" >&2
35958     ;;
35959 esac
35960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35963   echo $ECHO_N "(cached) $ECHO_C" >&6
35964 else
35965   eval "$as_ac_Header=\$ac_header_preproc"
35966 fi
35967 ac_res=`eval echo '${'$as_ac_Header'}'`
35968                { echo "$as_me:$LINENO: result: $ac_res" >&5
35969 echo "${ECHO_T}$ac_res" >&6; }
35970
35971 fi
35972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35973   cat >>confdefs.h <<_ACEOF
35974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35975 _ACEOF
35976
35977 fi
35978
35979 done
35980
35981
35982 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35983 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35984 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35985   echo $ECHO_N "(cached) $ECHO_C" >&6
35986 else
35987   ac_check_lib_save_LIBS=$LIBS
35988 LIBS="-lgmp  $LIBS"
35989 cat >conftest.$ac_ext <<_ACEOF
35990 /* confdefs.h.  */
35991 _ACEOF
35992 cat confdefs.h >>conftest.$ac_ext
35993 cat >>conftest.$ac_ext <<_ACEOF
35994 /* end confdefs.h.  */
35995
35996 /* Override any GCC internal prototype to avoid an error.
35997    Use char because int might match the return type of a GCC
35998    builtin and then its argument prototype would still apply.  */
35999 #ifdef __cplusplus
36000 extern "C"
36001 #endif
36002 char __gmpz_add_ui ();
36003 int
36004 main ()
36005 {
36006 return __gmpz_add_ui ();
36007   ;
36008   return 0;
36009 }
36010 _ACEOF
36011 rm -f conftest.$ac_objext conftest$ac_exeext
36012 if { (ac_try="$ac_link"
36013 case "(($ac_try" in
36014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36015   *) ac_try_echo=$ac_try;;
36016 esac
36017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36018   (eval "$ac_link") 2>conftest.er1
36019   ac_status=$?
36020   grep -v '^ *+' conftest.er1 >conftest.err
36021   rm -f conftest.er1
36022   cat conftest.err >&5
36023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024   (exit $ac_status); } && {
36025          test -z "$ac_c_werror_flag" ||
36026          test ! -s conftest.err
36027        } && test -s conftest$ac_exeext &&
36028        $as_test_x conftest$ac_exeext; then
36029   ac_cv_lib_gmp___gmpz_add_ui=yes
36030 else
36031   echo "$as_me: failed program was:" >&5
36032 sed 's/^/| /' conftest.$ac_ext >&5
36033
36034         ac_cv_lib_gmp___gmpz_add_ui=no
36035 fi
36036
36037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36038       conftest$ac_exeext conftest.$ac_ext
36039 LIBS=$ac_check_lib_save_LIBS
36040 fi
36041 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36042 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36043 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36044   cat >>confdefs.h <<_ACEOF
36045 #define HAVE_LIBGMP 1
36046 _ACEOF
36047
36048   LIBS="-lgmp $LIBS"
36049
36050 fi
36051
36052         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36053
36054 cat >>confdefs.h <<\_ACEOF
36055 #define USE_MP_GMP 1
36056 _ACEOF
36057
36058                 ol_with_mp=gmp
36059         elif test $ol_with_mp = gmp ; then
36060                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36061 echo "$as_me: error: gmp not available" >&2;}
36062    { (exit 1); exit 1; }; }
36063         fi
36064 fi
36065 if test $ol_with_mp = auto ; then
36066         ol_with_mp=no
36067 fi
36068
36069 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36070 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36071 if test "${ac_cv_func_memcmp_working+set}" = set; then
36072   echo $ECHO_N "(cached) $ECHO_C" >&6
36073 else
36074   if test "$cross_compiling" = yes; then
36075   ac_cv_func_memcmp_working=no
36076 else
36077   cat >conftest.$ac_ext <<_ACEOF
36078 /* confdefs.h.  */
36079 _ACEOF
36080 cat confdefs.h >>conftest.$ac_ext
36081 cat >>conftest.$ac_ext <<_ACEOF
36082 /* end confdefs.h.  */
36083 $ac_includes_default
36084 int
36085 main ()
36086 {
36087
36088   /* Some versions of memcmp are not 8-bit clean.  */
36089   char c0 = '\100', c1 = '\200', c2 = '\201';
36090   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36091     return 1;
36092
36093   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36094      or more and with at least one buffer not starting on a 4-byte boundary.
36095      William Lewis provided this test program.   */
36096   {
36097     char foo[21];
36098     char bar[21];
36099     int i;
36100     for (i = 0; i < 4; i++)
36101       {
36102         char *a = foo + i;
36103         char *b = bar + i;
36104         strcpy (a, "--------01111111");
36105         strcpy (b, "--------10000000");
36106         if (memcmp (a, b, 16) >= 0)
36107           return 1;
36108       }
36109     return 0;
36110   }
36111
36112   ;
36113   return 0;
36114 }
36115 _ACEOF
36116 rm -f conftest$ac_exeext
36117 if { (ac_try="$ac_link"
36118 case "(($ac_try" in
36119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36120   *) ac_try_echo=$ac_try;;
36121 esac
36122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36123   (eval "$ac_link") 2>&5
36124   ac_status=$?
36125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36127   { (case "(($ac_try" in
36128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36129   *) ac_try_echo=$ac_try;;
36130 esac
36131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36132   (eval "$ac_try") 2>&5
36133   ac_status=$?
36134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36135   (exit $ac_status); }; }; then
36136   ac_cv_func_memcmp_working=yes
36137 else
36138   echo "$as_me: program exited with status $ac_status" >&5
36139 echo "$as_me: failed program was:" >&5
36140 sed 's/^/| /' conftest.$ac_ext >&5
36141
36142 ( exit $ac_status )
36143 ac_cv_func_memcmp_working=no
36144 fi
36145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36146 fi
36147
36148
36149 fi
36150 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36151 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36152 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36153   *" memcmp.$ac_objext "* ) ;;
36154   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36155  ;;
36156 esac
36157
36158
36159
36160 if test $ac_cv_func_memcmp_working = no ; then
36161
36162 cat >>confdefs.h <<\_ACEOF
36163 #define NEED_MEMCMP_REPLACEMENT 1
36164 _ACEOF
36165
36166 fi
36167
36168
36169 for ac_func in strftime
36170 do
36171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36175   echo $ECHO_N "(cached) $ECHO_C" >&6
36176 else
36177   cat >conftest.$ac_ext <<_ACEOF
36178 /* confdefs.h.  */
36179 _ACEOF
36180 cat confdefs.h >>conftest.$ac_ext
36181 cat >>conftest.$ac_ext <<_ACEOF
36182 /* end confdefs.h.  */
36183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36185 #define $ac_func innocuous_$ac_func
36186
36187 /* System header to define __stub macros and hopefully few prototypes,
36188     which can conflict with char $ac_func (); below.
36189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36190     <limits.h> exists even on freestanding compilers.  */
36191
36192 #ifdef __STDC__
36193 # include <limits.h>
36194 #else
36195 # include <assert.h>
36196 #endif
36197
36198 #undef $ac_func
36199
36200 /* Override any GCC internal prototype to avoid an error.
36201    Use char because int might match the return type of a GCC
36202    builtin and then its argument prototype would still apply.  */
36203 #ifdef __cplusplus
36204 extern "C"
36205 #endif
36206 char $ac_func ();
36207 /* The GNU C library defines this for functions which it implements
36208     to always fail with ENOSYS.  Some functions are actually named
36209     something starting with __ and the normal name is an alias.  */
36210 #if defined __stub_$ac_func || defined __stub___$ac_func
36211 choke me
36212 #endif
36213
36214 int
36215 main ()
36216 {
36217 return $ac_func ();
36218   ;
36219   return 0;
36220 }
36221 _ACEOF
36222 rm -f conftest.$ac_objext conftest$ac_exeext
36223 if { (ac_try="$ac_link"
36224 case "(($ac_try" in
36225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36226   *) ac_try_echo=$ac_try;;
36227 esac
36228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36229   (eval "$ac_link") 2>conftest.er1
36230   ac_status=$?
36231   grep -v '^ *+' conftest.er1 >conftest.err
36232   rm -f conftest.er1
36233   cat conftest.err >&5
36234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235   (exit $ac_status); } && {
36236          test -z "$ac_c_werror_flag" ||
36237          test ! -s conftest.err
36238        } && test -s conftest$ac_exeext &&
36239        $as_test_x conftest$ac_exeext; then
36240   eval "$as_ac_var=yes"
36241 else
36242   echo "$as_me: failed program was:" >&5
36243 sed 's/^/| /' conftest.$ac_ext >&5
36244
36245         eval "$as_ac_var=no"
36246 fi
36247
36248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36249       conftest$ac_exeext conftest.$ac_ext
36250 fi
36251 ac_res=`eval echo '${'$as_ac_var'}'`
36252                { echo "$as_me:$LINENO: result: $ac_res" >&5
36253 echo "${ECHO_T}$ac_res" >&6; }
36254 if test `eval echo '${'$as_ac_var'}'` = yes; then
36255   cat >>confdefs.h <<_ACEOF
36256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36257 _ACEOF
36258
36259 else
36260   # strftime is in -lintl on SCO UNIX.
36261 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36262 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36263 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36264   echo $ECHO_N "(cached) $ECHO_C" >&6
36265 else
36266   ac_check_lib_save_LIBS=$LIBS
36267 LIBS="-lintl  $LIBS"
36268 cat >conftest.$ac_ext <<_ACEOF
36269 /* confdefs.h.  */
36270 _ACEOF
36271 cat confdefs.h >>conftest.$ac_ext
36272 cat >>conftest.$ac_ext <<_ACEOF
36273 /* end confdefs.h.  */
36274
36275 /* Override any GCC internal prototype to avoid an error.
36276    Use char because int might match the return type of a GCC
36277    builtin and then its argument prototype would still apply.  */
36278 #ifdef __cplusplus
36279 extern "C"
36280 #endif
36281 char strftime ();
36282 int
36283 main ()
36284 {
36285 return strftime ();
36286   ;
36287   return 0;
36288 }
36289 _ACEOF
36290 rm -f conftest.$ac_objext conftest$ac_exeext
36291 if { (ac_try="$ac_link"
36292 case "(($ac_try" in
36293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36294   *) ac_try_echo=$ac_try;;
36295 esac
36296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36297   (eval "$ac_link") 2>conftest.er1
36298   ac_status=$?
36299   grep -v '^ *+' conftest.er1 >conftest.err
36300   rm -f conftest.er1
36301   cat conftest.err >&5
36302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36303   (exit $ac_status); } && {
36304          test -z "$ac_c_werror_flag" ||
36305          test ! -s conftest.err
36306        } && test -s conftest$ac_exeext &&
36307        $as_test_x conftest$ac_exeext; then
36308   ac_cv_lib_intl_strftime=yes
36309 else
36310   echo "$as_me: failed program was:" >&5
36311 sed 's/^/| /' conftest.$ac_ext >&5
36312
36313         ac_cv_lib_intl_strftime=no
36314 fi
36315
36316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36317       conftest$ac_exeext conftest.$ac_ext
36318 LIBS=$ac_check_lib_save_LIBS
36319 fi
36320 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36321 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36322 if test $ac_cv_lib_intl_strftime = yes; then
36323   cat >>confdefs.h <<\_ACEOF
36324 #define HAVE_STRFTIME 1
36325 _ACEOF
36326
36327 LIBS="-lintl $LIBS"
36328 fi
36329
36330 fi
36331 done
36332
36333
36334 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36335 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36336 if test "${ol_cv_func_inet_aton+set}" = set; then
36337   echo $ECHO_N "(cached) $ECHO_C" >&6
36338 else
36339   cat >conftest.$ac_ext <<_ACEOF
36340 /* confdefs.h.  */
36341 _ACEOF
36342 cat confdefs.h >>conftest.$ac_ext
36343 cat >>conftest.$ac_ext <<_ACEOF
36344 /* end confdefs.h.  */
36345
36346 #ifdef HAVE_SYS_TYPES_H
36347 #       include <sys/types.h>
36348 #endif
36349 #ifdef HAVE_SYS_SOCKET_H
36350 #       include <sys/socket.h>
36351 #       ifdef HAVE_SYS_SELECT_H
36352 #               include <sys/select.h>
36353 #       endif
36354 #       include <netinet/in.h>
36355 #       ifdef HAVE_ARPA_INET_H
36356 #               include <arpa/inet.h>
36357 #       endif
36358 #endif
36359
36360 int
36361 main ()
36362 {
36363 struct in_addr in;
36364 int rc = inet_aton( "255.255.255.255", &in );
36365   ;
36366   return 0;
36367 }
36368 _ACEOF
36369 rm -f conftest.$ac_objext conftest$ac_exeext
36370 if { (ac_try="$ac_link"
36371 case "(($ac_try" in
36372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36373   *) ac_try_echo=$ac_try;;
36374 esac
36375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36376   (eval "$ac_link") 2>conftest.er1
36377   ac_status=$?
36378   grep -v '^ *+' conftest.er1 >conftest.err
36379   rm -f conftest.er1
36380   cat conftest.err >&5
36381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36382   (exit $ac_status); } && {
36383          test -z "$ac_c_werror_flag" ||
36384          test ! -s conftest.err
36385        } && test -s conftest$ac_exeext &&
36386        $as_test_x conftest$ac_exeext; then
36387   ol_cv_func_inet_aton=yes
36388 else
36389   echo "$as_me: failed program was:" >&5
36390 sed 's/^/| /' conftest.$ac_ext >&5
36391
36392         ol_cv_func_inet_aton=no
36393 fi
36394
36395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36396       conftest$ac_exeext conftest.$ac_ext
36397 fi
36398 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36399 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36400   if test $ol_cv_func_inet_aton != no; then
36401
36402 cat >>confdefs.h <<\_ACEOF
36403 #define HAVE_INET_ATON 1
36404 _ACEOF
36405
36406   fi
36407
36408
36409 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36410 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36411 if test "${ac_cv_func__spawnlp+set}" = set; then
36412   echo $ECHO_N "(cached) $ECHO_C" >&6
36413 else
36414   cat >conftest.$ac_ext <<_ACEOF
36415 /* confdefs.h.  */
36416 _ACEOF
36417 cat confdefs.h >>conftest.$ac_ext
36418 cat >>conftest.$ac_ext <<_ACEOF
36419 /* end confdefs.h.  */
36420 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36422 #define _spawnlp innocuous__spawnlp
36423
36424 /* System header to define __stub macros and hopefully few prototypes,
36425     which can conflict with char _spawnlp (); below.
36426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36427     <limits.h> exists even on freestanding compilers.  */
36428
36429 #ifdef __STDC__
36430 # include <limits.h>
36431 #else
36432 # include <assert.h>
36433 #endif
36434
36435 #undef _spawnlp
36436
36437 /* Override any GCC internal prototype to avoid an error.
36438    Use char because int might match the return type of a GCC
36439    builtin and then its argument prototype would still apply.  */
36440 #ifdef __cplusplus
36441 extern "C"
36442 #endif
36443 char _spawnlp ();
36444 /* The GNU C library defines this for functions which it implements
36445     to always fail with ENOSYS.  Some functions are actually named
36446     something starting with __ and the normal name is an alias.  */
36447 #if defined __stub__spawnlp || defined __stub____spawnlp
36448 choke me
36449 #endif
36450
36451 int
36452 main ()
36453 {
36454 return _spawnlp ();
36455   ;
36456   return 0;
36457 }
36458 _ACEOF
36459 rm -f conftest.$ac_objext conftest$ac_exeext
36460 if { (ac_try="$ac_link"
36461 case "(($ac_try" in
36462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36463   *) ac_try_echo=$ac_try;;
36464 esac
36465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36466   (eval "$ac_link") 2>conftest.er1
36467   ac_status=$?
36468   grep -v '^ *+' conftest.er1 >conftest.err
36469   rm -f conftest.er1
36470   cat conftest.err >&5
36471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36472   (exit $ac_status); } && {
36473          test -z "$ac_c_werror_flag" ||
36474          test ! -s conftest.err
36475        } && test -s conftest$ac_exeext &&
36476        $as_test_x conftest$ac_exeext; then
36477   ac_cv_func__spawnlp=yes
36478 else
36479   echo "$as_me: failed program was:" >&5
36480 sed 's/^/| /' conftest.$ac_ext >&5
36481
36482         ac_cv_func__spawnlp=no
36483 fi
36484
36485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36486       conftest$ac_exeext conftest.$ac_ext
36487 fi
36488 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36489 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36490 if test $ac_cv_func__spawnlp = yes; then
36491
36492 cat >>confdefs.h <<\_ACEOF
36493 #define HAVE_SPAWNLP 1
36494 _ACEOF
36495
36496 fi
36497
36498
36499 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36500 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36501 if test "${ac_cv_func__snprintf+set}" = set; then
36502   echo $ECHO_N "(cached) $ECHO_C" >&6
36503 else
36504   cat >conftest.$ac_ext <<_ACEOF
36505 /* confdefs.h.  */
36506 _ACEOF
36507 cat confdefs.h >>conftest.$ac_ext
36508 cat >>conftest.$ac_ext <<_ACEOF
36509 /* end confdefs.h.  */
36510 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36512 #define _snprintf innocuous__snprintf
36513
36514 /* System header to define __stub macros and hopefully few prototypes,
36515     which can conflict with char _snprintf (); below.
36516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36517     <limits.h> exists even on freestanding compilers.  */
36518
36519 #ifdef __STDC__
36520 # include <limits.h>
36521 #else
36522 # include <assert.h>
36523 #endif
36524
36525 #undef _snprintf
36526
36527 /* Override any GCC internal prototype to avoid an error.
36528    Use char because int might match the return type of a GCC
36529    builtin and then its argument prototype would still apply.  */
36530 #ifdef __cplusplus
36531 extern "C"
36532 #endif
36533 char _snprintf ();
36534 /* The GNU C library defines this for functions which it implements
36535     to always fail with ENOSYS.  Some functions are actually named
36536     something starting with __ and the normal name is an alias.  */
36537 #if defined __stub__snprintf || defined __stub____snprintf
36538 choke me
36539 #endif
36540
36541 int
36542 main ()
36543 {
36544 return _snprintf ();
36545   ;
36546   return 0;
36547 }
36548 _ACEOF
36549 rm -f conftest.$ac_objext conftest$ac_exeext
36550 if { (ac_try="$ac_link"
36551 case "(($ac_try" in
36552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36553   *) ac_try_echo=$ac_try;;
36554 esac
36555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36556   (eval "$ac_link") 2>conftest.er1
36557   ac_status=$?
36558   grep -v '^ *+' conftest.er1 >conftest.err
36559   rm -f conftest.er1
36560   cat conftest.err >&5
36561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562   (exit $ac_status); } && {
36563          test -z "$ac_c_werror_flag" ||
36564          test ! -s conftest.err
36565        } && test -s conftest$ac_exeext &&
36566        $as_test_x conftest$ac_exeext; then
36567   ac_cv_func__snprintf=yes
36568 else
36569   echo "$as_me: failed program was:" >&5
36570 sed 's/^/| /' conftest.$ac_ext >&5
36571
36572         ac_cv_func__snprintf=no
36573 fi
36574
36575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36576       conftest$ac_exeext conftest.$ac_ext
36577 fi
36578 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36579 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36580 if test $ac_cv_func__snprintf = yes; then
36581   ac_cv_func_snprintf=yes
36582
36583 cat >>confdefs.h <<\_ACEOF
36584 #define snprintf _snprintf
36585 _ACEOF
36586
36587
36588 fi
36589
36590
36591
36592
36593 for ac_func in vsnprintf _vsnprintf
36594 do
36595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36599   echo $ECHO_N "(cached) $ECHO_C" >&6
36600 else
36601   cat >conftest.$ac_ext <<_ACEOF
36602 /* confdefs.h.  */
36603 _ACEOF
36604 cat confdefs.h >>conftest.$ac_ext
36605 cat >>conftest.$ac_ext <<_ACEOF
36606 /* end confdefs.h.  */
36607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36609 #define $ac_func innocuous_$ac_func
36610
36611 /* System header to define __stub macros and hopefully few prototypes,
36612     which can conflict with char $ac_func (); below.
36613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36614     <limits.h> exists even on freestanding compilers.  */
36615
36616 #ifdef __STDC__
36617 # include <limits.h>
36618 #else
36619 # include <assert.h>
36620 #endif
36621
36622 #undef $ac_func
36623
36624 /* Override any GCC internal prototype to avoid an error.
36625    Use char because int might match the return type of a GCC
36626    builtin and then its argument prototype would still apply.  */
36627 #ifdef __cplusplus
36628 extern "C"
36629 #endif
36630 char $ac_func ();
36631 /* The GNU C library defines this for functions which it implements
36632     to always fail with ENOSYS.  Some functions are actually named
36633     something starting with __ and the normal name is an alias.  */
36634 #if defined __stub_$ac_func || defined __stub___$ac_func
36635 choke me
36636 #endif
36637
36638 int
36639 main ()
36640 {
36641 return $ac_func ();
36642   ;
36643   return 0;
36644 }
36645 _ACEOF
36646 rm -f conftest.$ac_objext conftest$ac_exeext
36647 if { (ac_try="$ac_link"
36648 case "(($ac_try" in
36649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36650   *) ac_try_echo=$ac_try;;
36651 esac
36652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36653   (eval "$ac_link") 2>conftest.er1
36654   ac_status=$?
36655   grep -v '^ *+' conftest.er1 >conftest.err
36656   rm -f conftest.er1
36657   cat conftest.err >&5
36658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36659   (exit $ac_status); } && {
36660          test -z "$ac_c_werror_flag" ||
36661          test ! -s conftest.err
36662        } && test -s conftest$ac_exeext &&
36663        $as_test_x conftest$ac_exeext; then
36664   eval "$as_ac_var=yes"
36665 else
36666   echo "$as_me: failed program was:" >&5
36667 sed 's/^/| /' conftest.$ac_ext >&5
36668
36669         eval "$as_ac_var=no"
36670 fi
36671
36672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36673       conftest$ac_exeext conftest.$ac_ext
36674 fi
36675 ac_res=`eval echo '${'$as_ac_var'}'`
36676                { echo "$as_me:$LINENO: result: $ac_res" >&5
36677 echo "${ECHO_T}$ac_res" >&6; }
36678 if test `eval echo '${'$as_ac_var'}'` = yes; then
36679   cat >>confdefs.h <<_ACEOF
36680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36681 _ACEOF
36682
36683 fi
36684 done
36685
36686
36687 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36688         ac_cv_func_vsnprintf=yes
36689
36690 cat >>confdefs.h <<\_ACEOF
36691 #define vsnprintf _vsnprintf
36692 _ACEOF
36693
36694 fi
36695
36696
36697 for ac_func in vprintf
36698 do
36699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36703   echo $ECHO_N "(cached) $ECHO_C" >&6
36704 else
36705   cat >conftest.$ac_ext <<_ACEOF
36706 /* confdefs.h.  */
36707 _ACEOF
36708 cat confdefs.h >>conftest.$ac_ext
36709 cat >>conftest.$ac_ext <<_ACEOF
36710 /* end confdefs.h.  */
36711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36713 #define $ac_func innocuous_$ac_func
36714
36715 /* System header to define __stub macros and hopefully few prototypes,
36716     which can conflict with char $ac_func (); below.
36717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36718     <limits.h> exists even on freestanding compilers.  */
36719
36720 #ifdef __STDC__
36721 # include <limits.h>
36722 #else
36723 # include <assert.h>
36724 #endif
36725
36726 #undef $ac_func
36727
36728 /* Override any GCC internal prototype to avoid an error.
36729    Use char because int might match the return type of a GCC
36730    builtin and then its argument prototype would still apply.  */
36731 #ifdef __cplusplus
36732 extern "C"
36733 #endif
36734 char $ac_func ();
36735 /* The GNU C library defines this for functions which it implements
36736     to always fail with ENOSYS.  Some functions are actually named
36737     something starting with __ and the normal name is an alias.  */
36738 #if defined __stub_$ac_func || defined __stub___$ac_func
36739 choke me
36740 #endif
36741
36742 int
36743 main ()
36744 {
36745 return $ac_func ();
36746   ;
36747   return 0;
36748 }
36749 _ACEOF
36750 rm -f conftest.$ac_objext conftest$ac_exeext
36751 if { (ac_try="$ac_link"
36752 case "(($ac_try" in
36753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36754   *) ac_try_echo=$ac_try;;
36755 esac
36756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36757   (eval "$ac_link") 2>conftest.er1
36758   ac_status=$?
36759   grep -v '^ *+' conftest.er1 >conftest.err
36760   rm -f conftest.er1
36761   cat conftest.err >&5
36762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36763   (exit $ac_status); } && {
36764          test -z "$ac_c_werror_flag" ||
36765          test ! -s conftest.err
36766        } && test -s conftest$ac_exeext &&
36767        $as_test_x conftest$ac_exeext; then
36768   eval "$as_ac_var=yes"
36769 else
36770   echo "$as_me: failed program was:" >&5
36771 sed 's/^/| /' conftest.$ac_ext >&5
36772
36773         eval "$as_ac_var=no"
36774 fi
36775
36776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36777       conftest$ac_exeext conftest.$ac_ext
36778 fi
36779 ac_res=`eval echo '${'$as_ac_var'}'`
36780                { echo "$as_me:$LINENO: result: $ac_res" >&5
36781 echo "${ECHO_T}$ac_res" >&6; }
36782 if test `eval echo '${'$as_ac_var'}'` = yes; then
36783   cat >>confdefs.h <<_ACEOF
36784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36785 _ACEOF
36786
36787 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36788 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36789 if test "${ac_cv_func__doprnt+set}" = set; then
36790   echo $ECHO_N "(cached) $ECHO_C" >&6
36791 else
36792   cat >conftest.$ac_ext <<_ACEOF
36793 /* confdefs.h.  */
36794 _ACEOF
36795 cat confdefs.h >>conftest.$ac_ext
36796 cat >>conftest.$ac_ext <<_ACEOF
36797 /* end confdefs.h.  */
36798 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36800 #define _doprnt innocuous__doprnt
36801
36802 /* System header to define __stub macros and hopefully few prototypes,
36803     which can conflict with char _doprnt (); below.
36804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36805     <limits.h> exists even on freestanding compilers.  */
36806
36807 #ifdef __STDC__
36808 # include <limits.h>
36809 #else
36810 # include <assert.h>
36811 #endif
36812
36813 #undef _doprnt
36814
36815 /* Override any GCC internal prototype to avoid an error.
36816    Use char because int might match the return type of a GCC
36817    builtin and then its argument prototype would still apply.  */
36818 #ifdef __cplusplus
36819 extern "C"
36820 #endif
36821 char _doprnt ();
36822 /* The GNU C library defines this for functions which it implements
36823     to always fail with ENOSYS.  Some functions are actually named
36824     something starting with __ and the normal name is an alias.  */
36825 #if defined __stub__doprnt || defined __stub____doprnt
36826 choke me
36827 #endif
36828
36829 int
36830 main ()
36831 {
36832 return _doprnt ();
36833   ;
36834   return 0;
36835 }
36836 _ACEOF
36837 rm -f conftest.$ac_objext conftest$ac_exeext
36838 if { (ac_try="$ac_link"
36839 case "(($ac_try" in
36840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36841   *) ac_try_echo=$ac_try;;
36842 esac
36843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36844   (eval "$ac_link") 2>conftest.er1
36845   ac_status=$?
36846   grep -v '^ *+' conftest.er1 >conftest.err
36847   rm -f conftest.er1
36848   cat conftest.err >&5
36849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850   (exit $ac_status); } && {
36851          test -z "$ac_c_werror_flag" ||
36852          test ! -s conftest.err
36853        } && test -s conftest$ac_exeext &&
36854        $as_test_x conftest$ac_exeext; then
36855   ac_cv_func__doprnt=yes
36856 else
36857   echo "$as_me: failed program was:" >&5
36858 sed 's/^/| /' conftest.$ac_ext >&5
36859
36860         ac_cv_func__doprnt=no
36861 fi
36862
36863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36864       conftest$ac_exeext conftest.$ac_ext
36865 fi
36866 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36867 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36868 if test $ac_cv_func__doprnt = yes; then
36869
36870 cat >>confdefs.h <<\_ACEOF
36871 #define HAVE_DOPRNT 1
36872 _ACEOF
36873
36874 fi
36875
36876 fi
36877 done
36878
36879
36880
36881 if test $ac_cv_func_vprintf = yes ; then
36882
36883
36884 for ac_func in snprintf vsnprintf
36885 do
36886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36890   echo $ECHO_N "(cached) $ECHO_C" >&6
36891 else
36892   cat >conftest.$ac_ext <<_ACEOF
36893 /* confdefs.h.  */
36894 _ACEOF
36895 cat confdefs.h >>conftest.$ac_ext
36896 cat >>conftest.$ac_ext <<_ACEOF
36897 /* end confdefs.h.  */
36898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36900 #define $ac_func innocuous_$ac_func
36901
36902 /* System header to define __stub macros and hopefully few prototypes,
36903     which can conflict with char $ac_func (); below.
36904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36905     <limits.h> exists even on freestanding compilers.  */
36906
36907 #ifdef __STDC__
36908 # include <limits.h>
36909 #else
36910 # include <assert.h>
36911 #endif
36912
36913 #undef $ac_func
36914
36915 /* Override any GCC internal prototype to avoid an error.
36916    Use char because int might match the return type of a GCC
36917    builtin and then its argument prototype would still apply.  */
36918 #ifdef __cplusplus
36919 extern "C"
36920 #endif
36921 char $ac_func ();
36922 /* The GNU C library defines this for functions which it implements
36923     to always fail with ENOSYS.  Some functions are actually named
36924     something starting with __ and the normal name is an alias.  */
36925 #if defined __stub_$ac_func || defined __stub___$ac_func
36926 choke me
36927 #endif
36928
36929 int
36930 main ()
36931 {
36932 return $ac_func ();
36933   ;
36934   return 0;
36935 }
36936 _ACEOF
36937 rm -f conftest.$ac_objext conftest$ac_exeext
36938 if { (ac_try="$ac_link"
36939 case "(($ac_try" in
36940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36941   *) ac_try_echo=$ac_try;;
36942 esac
36943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36944   (eval "$ac_link") 2>conftest.er1
36945   ac_status=$?
36946   grep -v '^ *+' conftest.er1 >conftest.err
36947   rm -f conftest.er1
36948   cat conftest.err >&5
36949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36950   (exit $ac_status); } && {
36951          test -z "$ac_c_werror_flag" ||
36952          test ! -s conftest.err
36953        } && test -s conftest$ac_exeext &&
36954        $as_test_x conftest$ac_exeext; then
36955   eval "$as_ac_var=yes"
36956 else
36957   echo "$as_me: failed program was:" >&5
36958 sed 's/^/| /' conftest.$ac_ext >&5
36959
36960         eval "$as_ac_var=no"
36961 fi
36962
36963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36964       conftest$ac_exeext conftest.$ac_ext
36965 fi
36966 ac_res=`eval echo '${'$as_ac_var'}'`
36967                { echo "$as_me:$LINENO: result: $ac_res" >&5
36968 echo "${ECHO_T}$ac_res" >&6; }
36969 if test `eval echo '${'$as_ac_var'}'` = yes; then
36970   cat >>confdefs.h <<_ACEOF
36971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36972 _ACEOF
36973
36974 fi
36975 done
36976
36977 fi
36978
36979
36980
36981
36982
36983
36984
36985
36986
36987
36988
36989
36990
36991
36992
36993
36994
36995
36996
36997
36998
36999
37000
37001
37002
37003
37004
37005
37006
37007
37008
37009
37010
37011
37012
37013
37014
37015
37016
37017
37018
37019
37020
37021
37022
37023
37024
37025
37026
37027
37028
37029
37030
37031
37032
37033
37034
37035 for ac_func in \
37036         bcopy                   \
37037         closesocket             \
37038         chroot                  \
37039         endgrent                \
37040         endpwent                \
37041         fcntl                   \
37042         flock                   \
37043         fstat                   \
37044         getdtablesize           \
37045         geteuid                 \
37046         getgrgid                \
37047         gethostname             \
37048         getpass                 \
37049         getpassphrase           \
37050         getpwuid                \
37051         getpwnam                \
37052         getspnam                \
37053         gettimeofday            \
37054         initgroups              \
37055         inet_ntoa_b             \
37056         ioctl                   \
37057         lockf                   \
37058         memcpy                  \
37059         memmove                 \
37060         memrchr                 \
37061         mkstemp                 \
37062         mktemp                  \
37063         pipe                    \
37064         read                    \
37065         recv                    \
37066         recvfrom                \
37067         setpwfile               \
37068         setgid                  \
37069         setegid                 \
37070         setsid                  \
37071         setuid                  \
37072         seteuid                 \
37073         signal                  \
37074         strdup                  \
37075         strpbrk                 \
37076         strrchr                 \
37077         strsep                  \
37078         strstr                  \
37079         strtol                  \
37080         strtoul                 \
37081         strtoq                  \
37082         strtouq                 \
37083         strtoll                 \
37084         strspn                  \
37085         sysconf                 \
37086         waitpid                 \
37087         wait4                   \
37088         write                   \
37089         send                    \
37090         sendmsg                 \
37091         sendto                  \
37092
37093 do
37094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37098   echo $ECHO_N "(cached) $ECHO_C" >&6
37099 else
37100   cat >conftest.$ac_ext <<_ACEOF
37101 /* confdefs.h.  */
37102 _ACEOF
37103 cat confdefs.h >>conftest.$ac_ext
37104 cat >>conftest.$ac_ext <<_ACEOF
37105 /* end confdefs.h.  */
37106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37108 #define $ac_func innocuous_$ac_func
37109
37110 /* System header to define __stub macros and hopefully few prototypes,
37111     which can conflict with char $ac_func (); below.
37112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37113     <limits.h> exists even on freestanding compilers.  */
37114
37115 #ifdef __STDC__
37116 # include <limits.h>
37117 #else
37118 # include <assert.h>
37119 #endif
37120
37121 #undef $ac_func
37122
37123 /* Override any GCC internal prototype to avoid an error.
37124    Use char because int might match the return type of a GCC
37125    builtin and then its argument prototype would still apply.  */
37126 #ifdef __cplusplus
37127 extern "C"
37128 #endif
37129 char $ac_func ();
37130 /* The GNU C library defines this for functions which it implements
37131     to always fail with ENOSYS.  Some functions are actually named
37132     something starting with __ and the normal name is an alias.  */
37133 #if defined __stub_$ac_func || defined __stub___$ac_func
37134 choke me
37135 #endif
37136
37137 int
37138 main ()
37139 {
37140 return $ac_func ();
37141   ;
37142   return 0;
37143 }
37144 _ACEOF
37145 rm -f conftest.$ac_objext conftest$ac_exeext
37146 if { (ac_try="$ac_link"
37147 case "(($ac_try" in
37148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37149   *) ac_try_echo=$ac_try;;
37150 esac
37151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37152   (eval "$ac_link") 2>conftest.er1
37153   ac_status=$?
37154   grep -v '^ *+' conftest.er1 >conftest.err
37155   rm -f conftest.er1
37156   cat conftest.err >&5
37157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37158   (exit $ac_status); } && {
37159          test -z "$ac_c_werror_flag" ||
37160          test ! -s conftest.err
37161        } && test -s conftest$ac_exeext &&
37162        $as_test_x conftest$ac_exeext; then
37163   eval "$as_ac_var=yes"
37164 else
37165   echo "$as_me: failed program was:" >&5
37166 sed 's/^/| /' conftest.$ac_ext >&5
37167
37168         eval "$as_ac_var=no"
37169 fi
37170
37171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37172       conftest$ac_exeext conftest.$ac_ext
37173 fi
37174 ac_res=`eval echo '${'$as_ac_var'}'`
37175                { echo "$as_me:$LINENO: result: $ac_res" >&5
37176 echo "${ECHO_T}$ac_res" >&6; }
37177 if test `eval echo '${'$as_ac_var'}'` = yes; then
37178   cat >>confdefs.h <<_ACEOF
37179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37180 _ACEOF
37181
37182 fi
37183 done
37184
37185
37186
37187
37188 for ac_func in getopt getpeereid
37189 do
37190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37194   echo $ECHO_N "(cached) $ECHO_C" >&6
37195 else
37196   cat >conftest.$ac_ext <<_ACEOF
37197 /* confdefs.h.  */
37198 _ACEOF
37199 cat confdefs.h >>conftest.$ac_ext
37200 cat >>conftest.$ac_ext <<_ACEOF
37201 /* end confdefs.h.  */
37202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37204 #define $ac_func innocuous_$ac_func
37205
37206 /* System header to define __stub macros and hopefully few prototypes,
37207     which can conflict with char $ac_func (); below.
37208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37209     <limits.h> exists even on freestanding compilers.  */
37210
37211 #ifdef __STDC__
37212 # include <limits.h>
37213 #else
37214 # include <assert.h>
37215 #endif
37216
37217 #undef $ac_func
37218
37219 /* Override any GCC internal prototype to avoid an error.
37220    Use char because int might match the return type of a GCC
37221    builtin and then its argument prototype would still apply.  */
37222 #ifdef __cplusplus
37223 extern "C"
37224 #endif
37225 char $ac_func ();
37226 /* The GNU C library defines this for functions which it implements
37227     to always fail with ENOSYS.  Some functions are actually named
37228     something starting with __ and the normal name is an alias.  */
37229 #if defined __stub_$ac_func || defined __stub___$ac_func
37230 choke me
37231 #endif
37232
37233 int
37234 main ()
37235 {
37236 return $ac_func ();
37237   ;
37238   return 0;
37239 }
37240 _ACEOF
37241 rm -f conftest.$ac_objext conftest$ac_exeext
37242 if { (ac_try="$ac_link"
37243 case "(($ac_try" in
37244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37245   *) ac_try_echo=$ac_try;;
37246 esac
37247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37248   (eval "$ac_link") 2>conftest.er1
37249   ac_status=$?
37250   grep -v '^ *+' conftest.er1 >conftest.err
37251   rm -f conftest.er1
37252   cat conftest.err >&5
37253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37254   (exit $ac_status); } && {
37255          test -z "$ac_c_werror_flag" ||
37256          test ! -s conftest.err
37257        } && test -s conftest$ac_exeext &&
37258        $as_test_x conftest$ac_exeext; then
37259   eval "$as_ac_var=yes"
37260 else
37261   echo "$as_me: failed program was:" >&5
37262 sed 's/^/| /' conftest.$ac_ext >&5
37263
37264         eval "$as_ac_var=no"
37265 fi
37266
37267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37268       conftest$ac_exeext conftest.$ac_ext
37269 fi
37270 ac_res=`eval echo '${'$as_ac_var'}'`
37271                { echo "$as_me:$LINENO: result: $ac_res" >&5
37272 echo "${ECHO_T}$ac_res" >&6; }
37273 if test `eval echo '${'$as_ac_var'}'` = yes; then
37274   cat >>confdefs.h <<_ACEOF
37275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37276 _ACEOF
37277
37278 else
37279   case " $LIBOBJS " in
37280   *" $ac_func.$ac_objext "* ) ;;
37281   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37282  ;;
37283 esac
37284
37285 fi
37286 done
37287
37288
37289
37290 if test "$ac_cv_func_getopt" != yes; then
37291         LIBSRCS="$LIBSRCS getopt.c"
37292 fi
37293
37294 if test "$ac_cv_func_getpeereid" != yes; then
37295
37296 for ac_func in getpeerucred
37297 do
37298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37302   echo $ECHO_N "(cached) $ECHO_C" >&6
37303 else
37304   cat >conftest.$ac_ext <<_ACEOF
37305 /* confdefs.h.  */
37306 _ACEOF
37307 cat confdefs.h >>conftest.$ac_ext
37308 cat >>conftest.$ac_ext <<_ACEOF
37309 /* end confdefs.h.  */
37310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37312 #define $ac_func innocuous_$ac_func
37313
37314 /* System header to define __stub macros and hopefully few prototypes,
37315     which can conflict with char $ac_func (); below.
37316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37317     <limits.h> exists even on freestanding compilers.  */
37318
37319 #ifdef __STDC__
37320 # include <limits.h>
37321 #else
37322 # include <assert.h>
37323 #endif
37324
37325 #undef $ac_func
37326
37327 /* Override any GCC internal prototype to avoid an error.
37328    Use char because int might match the return type of a GCC
37329    builtin and then its argument prototype would still apply.  */
37330 #ifdef __cplusplus
37331 extern "C"
37332 #endif
37333 char $ac_func ();
37334 /* The GNU C library defines this for functions which it implements
37335     to always fail with ENOSYS.  Some functions are actually named
37336     something starting with __ and the normal name is an alias.  */
37337 #if defined __stub_$ac_func || defined __stub___$ac_func
37338 choke me
37339 #endif
37340
37341 int
37342 main ()
37343 {
37344 return $ac_func ();
37345   ;
37346   return 0;
37347 }
37348 _ACEOF
37349 rm -f conftest.$ac_objext conftest$ac_exeext
37350 if { (ac_try="$ac_link"
37351 case "(($ac_try" in
37352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37353   *) ac_try_echo=$ac_try;;
37354 esac
37355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37356   (eval "$ac_link") 2>conftest.er1
37357   ac_status=$?
37358   grep -v '^ *+' conftest.er1 >conftest.err
37359   rm -f conftest.er1
37360   cat conftest.err >&5
37361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362   (exit $ac_status); } && {
37363          test -z "$ac_c_werror_flag" ||
37364          test ! -s conftest.err
37365        } && test -s conftest$ac_exeext &&
37366        $as_test_x conftest$ac_exeext; then
37367   eval "$as_ac_var=yes"
37368 else
37369   echo "$as_me: failed program was:" >&5
37370 sed 's/^/| /' conftest.$ac_ext >&5
37371
37372         eval "$as_ac_var=no"
37373 fi
37374
37375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37376       conftest$ac_exeext conftest.$ac_ext
37377 fi
37378 ac_res=`eval echo '${'$as_ac_var'}'`
37379                { echo "$as_me:$LINENO: result: $ac_res" >&5
37380 echo "${ECHO_T}$ac_res" >&6; }
37381 if test `eval echo '${'$as_ac_var'}'` = yes; then
37382   cat >>confdefs.h <<_ACEOF
37383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37384 _ACEOF
37385
37386 fi
37387 done
37388
37389         if test "$ac_cv_func_getpeerucred" != yes ; then
37390                 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37391 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37392 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37393   echo $ECHO_N "(cached) $ECHO_C" >&6
37394 else
37395   cat >conftest.$ac_ext <<_ACEOF
37396 /* confdefs.h.  */
37397 _ACEOF
37398 cat confdefs.h >>conftest.$ac_ext
37399 cat >>conftest.$ac_ext <<_ACEOF
37400 /* end confdefs.h.  */
37401 $ac_includes_default
37402 #ifdef HAVE_SYS_SOCKET_H
37403 #include <sys/socket.h>
37404 #endif
37405
37406 int
37407 main ()
37408 {
37409 static struct msghdr ac_aggr;
37410 if (ac_aggr.msg_accrightslen)
37411 return 0;
37412   ;
37413   return 0;
37414 }
37415 _ACEOF
37416 rm -f conftest.$ac_objext
37417 if { (ac_try="$ac_compile"
37418 case "(($ac_try" in
37419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37420   *) ac_try_echo=$ac_try;;
37421 esac
37422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37423   (eval "$ac_compile") 2>conftest.er1
37424   ac_status=$?
37425   grep -v '^ *+' conftest.er1 >conftest.err
37426   rm -f conftest.er1
37427   cat conftest.err >&5
37428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429   (exit $ac_status); } && {
37430          test -z "$ac_c_werror_flag" ||
37431          test ! -s conftest.err
37432        } && test -s conftest.$ac_objext; then
37433   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37434 else
37435   echo "$as_me: failed program was:" >&5
37436 sed 's/^/| /' conftest.$ac_ext >&5
37437
37438         cat >conftest.$ac_ext <<_ACEOF
37439 /* confdefs.h.  */
37440 _ACEOF
37441 cat confdefs.h >>conftest.$ac_ext
37442 cat >>conftest.$ac_ext <<_ACEOF
37443 /* end confdefs.h.  */
37444 $ac_includes_default
37445 #ifdef HAVE_SYS_SOCKET_H
37446 #include <sys/socket.h>
37447 #endif
37448
37449 int
37450 main ()
37451 {
37452 static struct msghdr ac_aggr;
37453 if (sizeof ac_aggr.msg_accrightslen)
37454 return 0;
37455   ;
37456   return 0;
37457 }
37458 _ACEOF
37459 rm -f conftest.$ac_objext
37460 if { (ac_try="$ac_compile"
37461 case "(($ac_try" in
37462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37463   *) ac_try_echo=$ac_try;;
37464 esac
37465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37466   (eval "$ac_compile") 2>conftest.er1
37467   ac_status=$?
37468   grep -v '^ *+' conftest.er1 >conftest.err
37469   rm -f conftest.er1
37470   cat conftest.err >&5
37471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472   (exit $ac_status); } && {
37473          test -z "$ac_c_werror_flag" ||
37474          test ! -s conftest.err
37475        } && test -s conftest.$ac_objext; then
37476   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37477 else
37478   echo "$as_me: failed program was:" >&5
37479 sed 's/^/| /' conftest.$ac_ext >&5
37480
37481         ac_cv_member_struct_msghdr_msg_accrightslen=no
37482 fi
37483
37484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37485 fi
37486
37487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37488 fi
37489 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37490 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37491 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37492
37493 cat >>confdefs.h <<_ACEOF
37494 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37495 _ACEOF
37496
37497
37498 fi
37499
37500                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37501                         { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37502 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37503 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37504   echo $ECHO_N "(cached) $ECHO_C" >&6
37505 else
37506   cat >conftest.$ac_ext <<_ACEOF
37507 /* confdefs.h.  */
37508 _ACEOF
37509 cat confdefs.h >>conftest.$ac_ext
37510 cat >>conftest.$ac_ext <<_ACEOF
37511 /* end confdefs.h.  */
37512 $ac_includes_default
37513 #ifdef HAVE_SYS_SOCKET_H
37514 #include <sys/socket.h>
37515 #endif
37516
37517 int
37518 main ()
37519 {
37520 static struct msghdr ac_aggr;
37521 if (ac_aggr.msg_control)
37522 return 0;
37523   ;
37524   return 0;
37525 }
37526 _ACEOF
37527 rm -f conftest.$ac_objext
37528 if { (ac_try="$ac_compile"
37529 case "(($ac_try" in
37530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37531   *) ac_try_echo=$ac_try;;
37532 esac
37533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37534   (eval "$ac_compile") 2>conftest.er1
37535   ac_status=$?
37536   grep -v '^ *+' conftest.er1 >conftest.err
37537   rm -f conftest.er1
37538   cat conftest.err >&5
37539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37540   (exit $ac_status); } && {
37541          test -z "$ac_c_werror_flag" ||
37542          test ! -s conftest.err
37543        } && test -s conftest.$ac_objext; then
37544   ac_cv_member_struct_msghdr_msg_control=yes
37545 else
37546   echo "$as_me: failed program was:" >&5
37547 sed 's/^/| /' conftest.$ac_ext >&5
37548
37549         cat >conftest.$ac_ext <<_ACEOF
37550 /* confdefs.h.  */
37551 _ACEOF
37552 cat confdefs.h >>conftest.$ac_ext
37553 cat >>conftest.$ac_ext <<_ACEOF
37554 /* end confdefs.h.  */
37555 $ac_includes_default
37556 #ifdef HAVE_SYS_SOCKET_H
37557 #include <sys/socket.h>
37558 #endif
37559
37560 int
37561 main ()
37562 {
37563 static struct msghdr ac_aggr;
37564 if (sizeof ac_aggr.msg_control)
37565 return 0;
37566   ;
37567   return 0;
37568 }
37569 _ACEOF
37570 rm -f conftest.$ac_objext
37571 if { (ac_try="$ac_compile"
37572 case "(($ac_try" in
37573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37574   *) ac_try_echo=$ac_try;;
37575 esac
37576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37577   (eval "$ac_compile") 2>conftest.er1
37578   ac_status=$?
37579   grep -v '^ *+' conftest.er1 >conftest.err
37580   rm -f conftest.er1
37581   cat conftest.err >&5
37582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37583   (exit $ac_status); } && {
37584          test -z "$ac_c_werror_flag" ||
37585          test ! -s conftest.err
37586        } && test -s conftest.$ac_objext; then
37587   ac_cv_member_struct_msghdr_msg_control=yes
37588 else
37589   echo "$as_me: failed program was:" >&5
37590 sed 's/^/| /' conftest.$ac_ext >&5
37591
37592         ac_cv_member_struct_msghdr_msg_control=no
37593 fi
37594
37595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37596 fi
37597
37598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37599 fi
37600 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37601 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37602 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37603
37604 cat >>confdefs.h <<_ACEOF
37605 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37606 _ACEOF
37607
37608
37609 fi
37610
37611                 fi
37612                 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37613 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37614 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37615   echo $ECHO_N "(cached) $ECHO_C" >&6
37616 else
37617   cat >conftest.$ac_ext <<_ACEOF
37618 /* confdefs.h.  */
37619 _ACEOF
37620 cat confdefs.h >>conftest.$ac_ext
37621 cat >>conftest.$ac_ext <<_ACEOF
37622 /* end confdefs.h.  */
37623 $ac_includes_default
37624 int
37625 main ()
37626 {
37627 static struct stat ac_aggr;
37628 if (ac_aggr.st_fstype)
37629 return 0;
37630   ;
37631   return 0;
37632 }
37633 _ACEOF
37634 rm -f conftest.$ac_objext
37635 if { (ac_try="$ac_compile"
37636 case "(($ac_try" in
37637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37638   *) ac_try_echo=$ac_try;;
37639 esac
37640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37641   (eval "$ac_compile") 2>conftest.er1
37642   ac_status=$?
37643   grep -v '^ *+' conftest.er1 >conftest.err
37644   rm -f conftest.er1
37645   cat conftest.err >&5
37646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647   (exit $ac_status); } && {
37648          test -z "$ac_c_werror_flag" ||
37649          test ! -s conftest.err
37650        } && test -s conftest.$ac_objext; then
37651   ac_cv_member_struct_stat_st_fstype=yes
37652 else
37653   echo "$as_me: failed program was:" >&5
37654 sed 's/^/| /' conftest.$ac_ext >&5
37655
37656         cat >conftest.$ac_ext <<_ACEOF
37657 /* confdefs.h.  */
37658 _ACEOF
37659 cat confdefs.h >>conftest.$ac_ext
37660 cat >>conftest.$ac_ext <<_ACEOF
37661 /* end confdefs.h.  */
37662 $ac_includes_default
37663 int
37664 main ()
37665 {
37666 static struct stat ac_aggr;
37667 if (sizeof ac_aggr.st_fstype)
37668 return 0;
37669   ;
37670   return 0;
37671 }
37672 _ACEOF
37673 rm -f conftest.$ac_objext
37674 if { (ac_try="$ac_compile"
37675 case "(($ac_try" in
37676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37677   *) ac_try_echo=$ac_try;;
37678 esac
37679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37680   (eval "$ac_compile") 2>conftest.er1
37681   ac_status=$?
37682   grep -v '^ *+' conftest.er1 >conftest.err
37683   rm -f conftest.er1
37684   cat conftest.err >&5
37685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686   (exit $ac_status); } && {
37687          test -z "$ac_c_werror_flag" ||
37688          test ! -s conftest.err
37689        } && test -s conftest.$ac_objext; then
37690   ac_cv_member_struct_stat_st_fstype=yes
37691 else
37692   echo "$as_me: failed program was:" >&5
37693 sed 's/^/| /' conftest.$ac_ext >&5
37694
37695         ac_cv_member_struct_stat_st_fstype=no
37696 fi
37697
37698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37699 fi
37700
37701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37702 fi
37703 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37704 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37705 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37706
37707 cat >>confdefs.h <<_ACEOF
37708 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37709 _ACEOF
37710
37711
37712 fi
37713 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37714 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37715 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37716   echo $ECHO_N "(cached) $ECHO_C" >&6
37717 else
37718   cat >conftest.$ac_ext <<_ACEOF
37719 /* confdefs.h.  */
37720 _ACEOF
37721 cat confdefs.h >>conftest.$ac_ext
37722 cat >>conftest.$ac_ext <<_ACEOF
37723 /* end confdefs.h.  */
37724 $ac_includes_default
37725 int
37726 main ()
37727 {
37728 static struct stat ac_aggr;
37729 if (ac_aggr.st_vfstype)
37730 return 0;
37731   ;
37732   return 0;
37733 }
37734 _ACEOF
37735 rm -f conftest.$ac_objext
37736 if { (ac_try="$ac_compile"
37737 case "(($ac_try" in
37738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37739   *) ac_try_echo=$ac_try;;
37740 esac
37741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37742   (eval "$ac_compile") 2>conftest.er1
37743   ac_status=$?
37744   grep -v '^ *+' conftest.er1 >conftest.err
37745   rm -f conftest.er1
37746   cat conftest.err >&5
37747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37748   (exit $ac_status); } && {
37749          test -z "$ac_c_werror_flag" ||
37750          test ! -s conftest.err
37751        } && test -s conftest.$ac_objext; then
37752   ac_cv_member_struct_stat_st_vfstype=yes
37753 else
37754   echo "$as_me: failed program was:" >&5
37755 sed 's/^/| /' conftest.$ac_ext >&5
37756
37757         cat >conftest.$ac_ext <<_ACEOF
37758 /* confdefs.h.  */
37759 _ACEOF
37760 cat confdefs.h >>conftest.$ac_ext
37761 cat >>conftest.$ac_ext <<_ACEOF
37762 /* end confdefs.h.  */
37763 $ac_includes_default
37764 int
37765 main ()
37766 {
37767 static struct stat ac_aggr;
37768 if (sizeof ac_aggr.st_vfstype)
37769 return 0;
37770   ;
37771   return 0;
37772 }
37773 _ACEOF
37774 rm -f conftest.$ac_objext
37775 if { (ac_try="$ac_compile"
37776 case "(($ac_try" in
37777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37778   *) ac_try_echo=$ac_try;;
37779 esac
37780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37781   (eval "$ac_compile") 2>conftest.er1
37782   ac_status=$?
37783   grep -v '^ *+' conftest.er1 >conftest.err
37784   rm -f conftest.er1
37785   cat conftest.err >&5
37786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787   (exit $ac_status); } && {
37788          test -z "$ac_c_werror_flag" ||
37789          test ! -s conftest.err
37790        } && test -s conftest.$ac_objext; then
37791   ac_cv_member_struct_stat_st_vfstype=yes
37792 else
37793   echo "$as_me: failed program was:" >&5
37794 sed 's/^/| /' conftest.$ac_ext >&5
37795
37796         ac_cv_member_struct_stat_st_vfstype=no
37797 fi
37798
37799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37800 fi
37801
37802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37803 fi
37804 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37805 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37806 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37807
37808 cat >>confdefs.h <<_ACEOF
37809 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37810 _ACEOF
37811
37812
37813 fi
37814
37815                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37816                         cat >conftest.$ac_ext <<_ACEOF
37817 struct stat st; char *ptr=st.st_fstype;
37818 _ACEOF
37819 rm -f conftest.$ac_objext
37820 if { (ac_try="$ac_compile"
37821 case "(($ac_try" in
37822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37823   *) ac_try_echo=$ac_try;;
37824 esac
37825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37826   (eval "$ac_compile") 2>conftest.er1
37827   ac_status=$?
37828   grep -v '^ *+' conftest.er1 >conftest.err
37829   rm -f conftest.er1
37830   cat conftest.err >&5
37831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37832   (exit $ac_status); } && {
37833          test -z "$ac_c_werror_flag" ||
37834          test ! -s conftest.err
37835        } && test -s conftest.$ac_objext; then
37836
37837 cat >>confdefs.h <<\_ACEOF
37838 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37839 _ACEOF
37840
37841 else
37842   echo "$as_me: failed program was:" >&5
37843 sed 's/^/| /' conftest.$ac_ext >&5
37844
37845
37846 cat >>confdefs.h <<\_ACEOF
37847 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37848 _ACEOF
37849
37850 fi
37851
37852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37853                 fi
37854         fi
37855         LIBSRCS="$LIBSRCS getpeereid.c"
37856 fi
37857
37858 if test "$ac_cv_func_snprintf" != yes ||
37859    test "$ac_cv_func_vsnprintf" != yes; then
37860         if test "$ac_cv_func_snprintf" != yes; then
37861
37862 cat >>confdefs.h <<\_ACEOF
37863 #define snprintf ber_pvt_snprintf
37864 _ACEOF
37865
37866         fi
37867         if test "$ac_cv_func_vsnprintf" != yes; then
37868
37869 cat >>confdefs.h <<\_ACEOF
37870 #define vsnprintf ber_pvt_vsnprintf
37871 _ACEOF
37872
37873         fi
37874 fi
37875
37876
37877 if test "$ol_enable_slapi" != no ; then
37878
37879 for ac_header in ltdl.h
37880 do
37881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37883   { echo "$as_me:$LINENO: checking for $ac_header" >&5
37884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37886   echo $ECHO_N "(cached) $ECHO_C" >&6
37887 fi
37888 ac_res=`eval echo '${'$as_ac_Header'}'`
37889                { echo "$as_me:$LINENO: result: $ac_res" >&5
37890 echo "${ECHO_T}$ac_res" >&6; }
37891 else
37892   # Is the header compilable?
37893 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37895 cat >conftest.$ac_ext <<_ACEOF
37896 /* confdefs.h.  */
37897 _ACEOF
37898 cat confdefs.h >>conftest.$ac_ext
37899 cat >>conftest.$ac_ext <<_ACEOF
37900 /* end confdefs.h.  */
37901 $ac_includes_default
37902 #include <$ac_header>
37903 _ACEOF
37904 rm -f conftest.$ac_objext
37905 if { (ac_try="$ac_compile"
37906 case "(($ac_try" in
37907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37908   *) ac_try_echo=$ac_try;;
37909 esac
37910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37911   (eval "$ac_compile") 2>conftest.er1
37912   ac_status=$?
37913   grep -v '^ *+' conftest.er1 >conftest.err
37914   rm -f conftest.er1
37915   cat conftest.err >&5
37916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917   (exit $ac_status); } && {
37918          test -z "$ac_c_werror_flag" ||
37919          test ! -s conftest.err
37920        } && test -s conftest.$ac_objext; then
37921   ac_header_compiler=yes
37922 else
37923   echo "$as_me: failed program was:" >&5
37924 sed 's/^/| /' conftest.$ac_ext >&5
37925
37926         ac_header_compiler=no
37927 fi
37928
37929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37931 echo "${ECHO_T}$ac_header_compiler" >&6; }
37932
37933 # Is the header present?
37934 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37936 cat >conftest.$ac_ext <<_ACEOF
37937 /* confdefs.h.  */
37938 _ACEOF
37939 cat confdefs.h >>conftest.$ac_ext
37940 cat >>conftest.$ac_ext <<_ACEOF
37941 /* end confdefs.h.  */
37942 #include <$ac_header>
37943 _ACEOF
37944 if { (ac_try="$ac_cpp conftest.$ac_ext"
37945 case "(($ac_try" in
37946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37947   *) ac_try_echo=$ac_try;;
37948 esac
37949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37950   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37951   ac_status=$?
37952   grep -v '^ *+' conftest.er1 >conftest.err
37953   rm -f conftest.er1
37954   cat conftest.err >&5
37955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956   (exit $ac_status); } >/dev/null && {
37957          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37958          test ! -s conftest.err
37959        }; then
37960   ac_header_preproc=yes
37961 else
37962   echo "$as_me: failed program was:" >&5
37963 sed 's/^/| /' conftest.$ac_ext >&5
37964
37965   ac_header_preproc=no
37966 fi
37967
37968 rm -f conftest.err conftest.$ac_ext
37969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37970 echo "${ECHO_T}$ac_header_preproc" >&6; }
37971
37972 # So?  What about this header?
37973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37974   yes:no: )
37975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37979     ac_header_preproc=yes
37980     ;;
37981   no:yes:* )
37982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37994     ( cat <<\_ASBOX
37995 ## --------------------------------------------- ##
37996 ## Report this to <http://www.openldap.org/its/> ##
37997 ## --------------------------------------------- ##
37998 _ASBOX
37999      ) | sed "s/^/$as_me: WARNING:     /" >&2
38000     ;;
38001 esac
38002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38005   echo $ECHO_N "(cached) $ECHO_C" >&6
38006 else
38007   eval "$as_ac_Header=\$ac_header_preproc"
38008 fi
38009 ac_res=`eval echo '${'$as_ac_Header'}'`
38010                { echo "$as_me:$LINENO: result: $ac_res" >&5
38011 echo "${ECHO_T}$ac_res" >&6; }
38012
38013 fi
38014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38015   cat >>confdefs.h <<_ACEOF
38016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38017 _ACEOF
38018
38019 fi
38020
38021 done
38022
38023
38024         if test $ac_cv_header_ltdl_h != yes ; then
38025                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38026 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38027    { (exit 1); exit 1; }; }
38028         fi
38029         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38030 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38031 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38032   echo $ECHO_N "(cached) $ECHO_C" >&6
38033 else
38034   ac_check_lib_save_LIBS=$LIBS
38035 LIBS="-lltdl  $LIBS"
38036 cat >conftest.$ac_ext <<_ACEOF
38037 /* confdefs.h.  */
38038 _ACEOF
38039 cat confdefs.h >>conftest.$ac_ext
38040 cat >>conftest.$ac_ext <<_ACEOF
38041 /* end confdefs.h.  */
38042
38043 /* Override any GCC internal prototype to avoid an error.
38044    Use char because int might match the return type of a GCC
38045    builtin and then its argument prototype would still apply.  */
38046 #ifdef __cplusplus
38047 extern "C"
38048 #endif
38049 char lt_dlinit ();
38050 int
38051 main ()
38052 {
38053 return lt_dlinit ();
38054   ;
38055   return 0;
38056 }
38057 _ACEOF
38058 rm -f conftest.$ac_objext conftest$ac_exeext
38059 if { (ac_try="$ac_link"
38060 case "(($ac_try" in
38061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38062   *) ac_try_echo=$ac_try;;
38063 esac
38064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38065   (eval "$ac_link") 2>conftest.er1
38066   ac_status=$?
38067   grep -v '^ *+' conftest.er1 >conftest.err
38068   rm -f conftest.er1
38069   cat conftest.err >&5
38070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38071   (exit $ac_status); } && {
38072          test -z "$ac_c_werror_flag" ||
38073          test ! -s conftest.err
38074        } && test -s conftest$ac_exeext &&
38075        $as_test_x conftest$ac_exeext; then
38076   ac_cv_lib_ltdl_lt_dlinit=yes
38077 else
38078   echo "$as_me: failed program was:" >&5
38079 sed 's/^/| /' conftest.$ac_ext >&5
38080
38081         ac_cv_lib_ltdl_lt_dlinit=no
38082 fi
38083
38084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38085       conftest$ac_exeext conftest.$ac_ext
38086 LIBS=$ac_check_lib_save_LIBS
38087 fi
38088 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38089 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38090 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38091
38092                 SLAPI_LIBS=-lltdl
38093                 LIBSLAPI=libslapi.a
38094                 LIBSLAPITOOLS=../libslapi.a
38095
38096 cat >>confdefs.h <<\_ACEOF
38097 #define HAVE_LIBLTDL 1
38098 _ACEOF
38099
38100
38101 else
38102   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38103 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38104    { (exit 1); exit 1; }; }
38105 fi
38106
38107
38108
38109 cat >>confdefs.h <<\_ACEOF
38110 #define LDAP_SLAPI 1
38111 _ACEOF
38112
38113 fi
38114
38115 if test "$ol_enable_debug" != no ; then
38116         if test "$ol_enable_debug" = traditional; then
38117
38118 cat >>confdefs.h <<\_ACEOF
38119 #define OLD_DEBUG 1
38120 _ACEOF
38121
38122         fi
38123
38124 cat >>confdefs.h <<\_ACEOF
38125 #define LDAP_DEBUG 1
38126 _ACEOF
38127
38128 fi
38129 if test "$ol_enable_syslog" = yes ; then
38130
38131 cat >>confdefs.h <<\_ACEOF
38132 #define LDAP_SYSLOG 1
38133 _ACEOF
38134
38135 fi
38136 if test "$ol_enable_proctitle" != no ; then
38137
38138 cat >>confdefs.h <<\_ACEOF
38139 #define LDAP_PROCTITLE 1
38140 _ACEOF
38141
38142 fi
38143 if test "$ol_enable_referrals" != no ; then
38144
38145 cat >>confdefs.h <<\_ACEOF
38146 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38147 _ACEOF
38148
38149 fi
38150 if test "$ol_enable_local" != no; then
38151
38152 cat >>confdefs.h <<\_ACEOF
38153 #define LDAP_PF_LOCAL 1
38154 _ACEOF
38155
38156 fi
38157 if test "$ol_link_ipv6" != no; then
38158
38159 cat >>confdefs.h <<\_ACEOF
38160 #define LDAP_PF_INET6 1
38161 _ACEOF
38162
38163 fi
38164 if test "$ol_enable_cleartext" != no ; then
38165
38166 cat >>confdefs.h <<\_ACEOF
38167 #define SLAPD_CLEARTEXT 1
38168 _ACEOF
38169
38170 fi
38171 if test "$ol_enable_crypt" != no ; then
38172
38173 cat >>confdefs.h <<\_ACEOF
38174 #define SLAPD_CRYPT 1
38175 _ACEOF
38176
38177 fi
38178 if test "$ol_link_spasswd" != no ; then
38179
38180 cat >>confdefs.h <<\_ACEOF
38181 #define SLAPD_SPASSWD 1
38182 _ACEOF
38183
38184 fi
38185 if test "$ol_enable_rlookups" != no ; then
38186
38187 cat >>confdefs.h <<\_ACEOF
38188 #define SLAPD_RLOOKUPS 1
38189 _ACEOF
38190
38191 fi
38192 if test "$ol_enable_aci" != no ; then
38193         if test $ol_enable_dynacl = no ; then
38194                 ol_enable_dynacl=yes
38195                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38196 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38197         fi
38198         if test "$ol_enable_aci" = mod ; then
38199                 MFLAG=SLAPD_MOD_DYNAMIC
38200                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38201 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38202    { (exit 1); exit 1; }; }
38203         else
38204                 MFLAG=SLAPD_MOD_STATIC
38205         fi
38206         WITH_ACI_ENABLED=$ol_enable_aci
38207
38208 cat >>confdefs.h <<_ACEOF
38209 #define SLAPD_ACI_ENABLED $MFLAG
38210 _ACEOF
38211
38212 else
38213         WITH_ACI_ENABLED=no
38214 fi
38215 if test "$ol_enable_dynacl" != no ; then
38216
38217 cat >>confdefs.h <<\_ACEOF
38218 #define SLAP_DYNACL 1
38219 _ACEOF
38220
38221 fi
38222
38223 if test "$ol_link_modules" != no ; then
38224
38225 cat >>confdefs.h <<\_ACEOF
38226 #define SLAPD_MODULES 1
38227 _ACEOF
38228
38229         BUILD_SLAPD=yes
38230         SLAPD_MODULES_LDFLAGS="-dlopen self"
38231 fi
38232
38233
38234 cat >>confdefs.h <<\_ACEOF
38235 #define SLAPD_MOD_STATIC 1
38236 _ACEOF
38237
38238
38239 cat >>confdefs.h <<\_ACEOF
38240 #define SLAPD_MOD_DYNAMIC 2
38241 _ACEOF
38242
38243
38244 if test "$ol_enable_monitor" != no ; then
38245         BUILD_SLAPD=yes
38246         BUILD_MONITOR=$ol_enable_monitor
38247         if test "$ol_enable_monitor" = mod ; then
38248                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38249                 MFLAG=SLAPD_MOD_DYNAMIC
38250         else
38251                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38252                 MFLAG=SLAPD_MOD_STATIC
38253         fi
38254
38255 cat >>confdefs.h <<_ACEOF
38256 #define SLAPD_MONITOR $MFLAG
38257 _ACEOF
38258
38259 fi
38260
38261 if test "$ol_enable_bdb" != no ; then
38262         BUILD_SLAPD=yes
38263         BUILD_BDB=$ol_enable_bdb
38264         if test "$ol_enable_bdb" = mod ; then
38265                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38266                 MFLAG=SLAPD_MOD_DYNAMIC
38267         else
38268                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38269                 MFLAG=SLAPD_MOD_STATIC
38270         fi
38271
38272 cat >>confdefs.h <<_ACEOF
38273 #define SLAPD_BDB $MFLAG
38274 _ACEOF
38275
38276 fi
38277
38278 if test "$ol_enable_dnssrv" != no ; then
38279         BUILD_SLAPD=yes
38280         BUILD_DNSSRV=$ol_enable_dnssrv
38281         if test "$ol_enable_dnssrv" = mod ; then
38282                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38283                 MFLAG=SLAPD_MOD_DYNAMIC
38284         else
38285                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38286                 MFLAG=SLAPD_MOD_STATIC
38287         fi
38288
38289 cat >>confdefs.h <<_ACEOF
38290 #define SLAPD_DNSSRV $MFLAG
38291 _ACEOF
38292
38293 fi
38294
38295 if test "$ol_enable_hdb" != no ; then
38296         BUILD_SLAPD=yes
38297         BUILD_HDB=$ol_enable_hdb
38298         if test "$ol_enable_hdb" = mod ; then
38299                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38300                 MFLAG=SLAPD_MOD_DYNAMIC
38301         else
38302                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38303                 MFLAG=SLAPD_MOD_STATIC
38304         fi
38305
38306 cat >>confdefs.h <<_ACEOF
38307 #define SLAPD_HDB $MFLAG
38308 _ACEOF
38309
38310 fi
38311
38312 if test "$ol_enable_ldap" != no ; then
38313         BUILD_SLAPD=yes
38314         BUILD_LDAP=$ol_enable_ldap
38315         if test "$ol_enable_ldap" = mod ; then
38316                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38317                 MFLAG=SLAPD_MOD_DYNAMIC
38318         else
38319                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38320                 MFLAG=SLAPD_MOD_STATIC
38321         fi
38322
38323 cat >>confdefs.h <<_ACEOF
38324 #define SLAPD_LDAP $MFLAG
38325 _ACEOF
38326
38327 fi
38328
38329 if test "$ol_enable_meta" != no ; then
38330         BUILD_SLAPD=yes
38331         BUILD_META=$ol_enable_meta
38332         BUILD_REWRITE=yes
38333         if test "$ol_enable_meta" = mod ; then
38334                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38335                 MFLAG=SLAPD_MOD_DYNAMIC
38336         else
38337                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38338                 MFLAG=SLAPD_MOD_STATIC
38339         fi
38340
38341 cat >>confdefs.h <<_ACEOF
38342 #define SLAPD_META $MFLAG
38343 _ACEOF
38344
38345 fi
38346
38347 if test "$ol_enable_ndb" != no ; then
38348         BUILD_SLAPD=yes
38349         BUILD_NDB=$ol_enable_ndb
38350         if test "$ol_enable_ndb" = mod ; then
38351                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38352                 MFLAG=SLAPD_MOD_DYNAMIC
38353         else
38354                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38355                 MFLAG=SLAPD_MOD_STATIC
38356         fi
38357
38358 cat >>confdefs.h <<_ACEOF
38359 #define SLAPD_NDB $MFLAG
38360 _ACEOF
38361
38362 fi
38363
38364 if test "$ol_enable_null" != no ; then
38365         BUILD_SLAPD=yes
38366         BUILD_NULL=$ol_enable_null
38367         if test "$ol_enable_null" = mod ; then
38368                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38369                 MFLAG=SLAPD_MOD_DYNAMIC
38370         else
38371                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38372                 MFLAG=SLAPD_MOD_STATIC
38373         fi
38374
38375 cat >>confdefs.h <<_ACEOF
38376 #define SLAPD_NULL $MFLAG
38377 _ACEOF
38378
38379 fi
38380
38381 if test "$ol_enable_passwd" != no ; then
38382         BUILD_SLAPD=yes
38383         BUILD_PASSWD=$ol_enable_passwd
38384         if test "$ol_enable_passwd" = mod ; then
38385                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38386                 MFLAG=SLAPD_MOD_DYNAMIC
38387         else
38388                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38389                 MFLAG=SLAPD_MOD_STATIC
38390         fi
38391
38392 cat >>confdefs.h <<_ACEOF
38393 #define SLAPD_PASSWD $MFLAG
38394 _ACEOF
38395
38396 fi
38397
38398 if test "$ol_link_perl" != no ; then
38399         BUILD_SLAPD=yes
38400         BUILD_PERL=$ol_enable_perl
38401         if test "$ol_enable_perl" = mod ; then
38402                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38403                 MFLAG=SLAPD_MOD_DYNAMIC
38404         else
38405                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38406                 MFLAG=SLAPD_MOD_STATIC
38407         fi
38408
38409 cat >>confdefs.h <<_ACEOF
38410 #define SLAPD_PERL $MFLAG
38411 _ACEOF
38412
38413 fi
38414
38415 if test "$ol_enable_relay" != no ; then
38416         BUILD_SLAPD=yes
38417         BUILD_RELAY=$ol_enable_relay
38418         if test "$ol_enable_relay" = mod ; then
38419                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38420                 MFLAG=SLAPD_MOD_DYNAMIC
38421         else
38422                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38423                 MFLAG=SLAPD_MOD_STATIC
38424         fi
38425
38426 cat >>confdefs.h <<_ACEOF
38427 #define SLAPD_RELAY $MFLAG
38428 _ACEOF
38429
38430 fi
38431
38432 if test "$ol_enable_shell" != no ; then
38433         if test "$ol_link_threads" != no ; then
38434                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38435 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38436         fi
38437         BUILD_SLAPD=yes
38438         BUILD_SHELL=$ol_enable_shell
38439         if test "$ol_enable_shell" = mod ; then
38440                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38441                 MFLAG=SLAPD_MOD_DYNAMIC
38442         else
38443                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38444                 MFLAG=SLAPD_MOD_STATIC
38445         fi
38446
38447 cat >>confdefs.h <<_ACEOF
38448 #define SLAPD_SHELL $MFLAG
38449 _ACEOF
38450
38451 fi
38452
38453 if test "$ol_enable_sock" != no ; then
38454         BUILD_SLAPD=yes
38455         BUILD_SOCK=$ol_enable_sock
38456         if test "$ol_enable_sock" = mod ; then
38457                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38458                 MFLAG=SLAPD_MOD_DYNAMIC
38459         else
38460                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38461                 MFLAG=SLAPD_MOD_STATIC
38462         fi
38463
38464 cat >>confdefs.h <<_ACEOF
38465 #define SLAPD_SOCK $MFLAG
38466 _ACEOF
38467
38468 fi
38469
38470 if test "$ol_link_sql" != no ; then
38471         BUILD_SLAPD=yes
38472         BUILD_SQL=$ol_enable_sql
38473         if test "$ol_enable_sql" = mod; then
38474                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38475                 MFLAG=SLAPD_MOD_DYNAMIC
38476         else
38477                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38478                 MFLAG=SLAPD_MOD_STATIC
38479         fi
38480
38481 cat >>confdefs.h <<_ACEOF
38482 #define SLAPD_SQL $MFLAG
38483 _ACEOF
38484
38485 fi
38486
38487 if test "$ol_enable_accesslog" != no ; then
38488         BUILD_ACCESSLOG=$ol_enable_accesslog
38489         if test "$ol_enable_accesslog" = mod ; then
38490                 MFLAG=SLAPD_MOD_DYNAMIC
38491                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38492         else
38493                 MFLAG=SLAPD_MOD_STATIC
38494                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38495         fi
38496
38497 cat >>confdefs.h <<_ACEOF
38498 #define SLAPD_OVER_ACCESSLOG $MFLAG
38499 _ACEOF
38500
38501 fi
38502
38503 if test "$ol_enable_auditlog" != no ; then
38504         BUILD_AUDITLOG=$ol_enable_auditlog
38505         if test "$ol_enable_auditlog" = mod ; then
38506                 MFLAG=SLAPD_MOD_DYNAMIC
38507                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38508         else
38509                 MFLAG=SLAPD_MOD_STATIC
38510                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38511         fi
38512
38513 cat >>confdefs.h <<_ACEOF
38514 #define SLAPD_OVER_AUDITLOG $MFLAG
38515 _ACEOF
38516
38517 fi
38518
38519 if test "$ol_enable_collect" != no ; then
38520         BUILD_COLLECT=$ol_enable_collect
38521         if test "$ol_enable_collect" = mod ; then
38522                 MFLAG=SLAPD_MOD_DYNAMIC
38523                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38524         else
38525                 MFLAG=SLAPD_MOD_STATIC
38526                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38527         fi
38528
38529 cat >>confdefs.h <<_ACEOF
38530 #define SLAPD_OVER_COLLECT $MFLAG
38531 _ACEOF
38532
38533 fi
38534
38535 if test "$ol_enable_constraint" != no ; then
38536         BUILD_CONSTRAINT=$ol_enable_constraint
38537         if test "$ol_enable_constraint" = mod ; then
38538                 MFLAG=SLAPD_MOD_DYNAMIC
38539                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38540         else
38541                 MFLAG=SLAPD_MOD_STATIC
38542                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38543         fi
38544
38545 cat >>confdefs.h <<_ACEOF
38546 #define SLAPD_OVER_CONSTRAINT $MFLAG
38547 _ACEOF
38548
38549 fi
38550
38551 if test "$ol_enable_dds" != no ; then
38552         BUILD_DDS=$ol_enable_dds
38553         if test "$ol_enable_dds" = mod ; then
38554                 MFLAG=SLAPD_MOD_DYNAMIC
38555                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38556         else
38557                 MFLAG=SLAPD_MOD_STATIC
38558                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38559         fi
38560
38561 cat >>confdefs.h <<_ACEOF
38562 #define SLAPD_OVER_DDS $MFLAG
38563 _ACEOF
38564
38565 fi
38566
38567 if test "$ol_enable_deref" != no ; then
38568         BUILD_DDS=$ol_enable_deref
38569         if test "$ol_enable_deref" = mod ; then
38570                 MFLAG=SLAPD_MOD_DYNAMIC
38571                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38572         else
38573                 MFLAG=SLAPD_MOD_STATIC
38574                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38575         fi
38576
38577 cat >>confdefs.h <<_ACEOF
38578 #define SLAPD_OVER_DEREF $MFLAG
38579 _ACEOF
38580
38581 fi
38582
38583 if test "$ol_enable_dyngroup" != no ; then
38584         BUILD_DYNGROUP=$ol_enable_dyngroup
38585         if test "$ol_enable_dyngroup" = mod ; then
38586                 MFLAG=SLAPD_MOD_DYNAMIC
38587                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38588         else
38589                 MFLAG=SLAPD_MOD_STATIC
38590                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38591         fi
38592
38593 cat >>confdefs.h <<_ACEOF
38594 #define SLAPD_OVER_DYNGROUP $MFLAG
38595 _ACEOF
38596
38597 fi
38598
38599 if test "$ol_enable_dynlist" != no ; then
38600         BUILD_DYNLIST=$ol_enable_dynlist
38601         if test "$ol_enable_dynlist" = mod ; then
38602                 MFLAG=SLAPD_MOD_DYNAMIC
38603                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38604         else
38605                 MFLAG=SLAPD_MOD_STATIC
38606                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38607         fi
38608
38609 cat >>confdefs.h <<_ACEOF
38610 #define SLAPD_OVER_DYNLIST $MFLAG
38611 _ACEOF
38612
38613 fi
38614
38615 if test "$ol_enable_memberof" != no ; then
38616         BUILD_MEMBEROF=$ol_enable_memberof
38617         if test "$ol_enable_memberof" = mod ; then
38618                 MFLAG=SLAPD_MOD_DYNAMIC
38619                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38620         else
38621                 MFLAG=SLAPD_MOD_STATIC
38622                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38623         fi
38624
38625 cat >>confdefs.h <<_ACEOF
38626 #define SLAPD_OVER_MEMBEROF $MFLAG
38627 _ACEOF
38628
38629 fi
38630
38631 if test "$ol_enable_ppolicy" != no ; then
38632         BUILD_PPOLICY=$ol_enable_ppolicy
38633         if test "$ol_enable_ppolicy" = mod ; then
38634                 MFLAG=SLAPD_MOD_DYNAMIC
38635                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38636         else
38637                 MFLAG=SLAPD_MOD_STATIC
38638                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38639         fi
38640
38641 cat >>confdefs.h <<_ACEOF
38642 #define SLAPD_OVER_PPOLICY $MFLAG
38643 _ACEOF
38644
38645 fi
38646
38647 if test "$ol_enable_proxycache" != no ; then
38648         BUILD_PROXYCACHE=$ol_enable_proxycache
38649         if test "$ol_enable_proxycache" = mod ; then
38650                 MFLAG=SLAPD_MOD_DYNAMIC
38651                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38652         else
38653                 MFLAG=SLAPD_MOD_STATIC
38654                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38655         fi
38656
38657 cat >>confdefs.h <<_ACEOF
38658 #define SLAPD_OVER_PROXYCACHE $MFLAG
38659 _ACEOF
38660
38661 fi
38662
38663 if test "$ol_enable_refint" != no ; then
38664         BUILD_REFINT=$ol_enable_refint
38665         if test "$ol_enable_refint" = mod ; then
38666                 MFLAG=SLAPD_MOD_DYNAMIC
38667                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38668         else
38669                 MFLAG=SLAPD_MOD_STATIC
38670                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38671         fi
38672
38673 cat >>confdefs.h <<_ACEOF
38674 #define SLAPD_OVER_REFINT $MFLAG
38675 _ACEOF
38676
38677 fi
38678
38679 if test "$ol_enable_retcode" != no ; then
38680         BUILD_RETCODE=$ol_enable_retcode
38681         if test "$ol_enable_retcode" = mod ; then
38682                 MFLAG=SLAPD_MOD_DYNAMIC
38683                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38684         else
38685                 MFLAG=SLAPD_MOD_STATIC
38686                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38687         fi
38688
38689 cat >>confdefs.h <<_ACEOF
38690 #define SLAPD_OVER_RETCODE $MFLAG
38691 _ACEOF
38692
38693 fi
38694
38695 if test "$ol_enable_rwm" != no ; then
38696         BUILD_REWRITE=yes
38697         BUILD_RWM=$ol_enable_rwm
38698         if test "$ol_enable_rwm" = mod ; then
38699                 MFLAG=SLAPD_MOD_DYNAMIC
38700                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38701         else
38702                 MFLAG=SLAPD_MOD_STATIC
38703                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38704         fi
38705
38706 cat >>confdefs.h <<_ACEOF
38707 #define SLAPD_OVER_RWM $MFLAG
38708 _ACEOF
38709
38710 fi
38711
38712 if test "$ol_enable_seqmod" != no ; then
38713         BUILD_SEQMOD=$ol_enable_seqmod
38714         if test "$ol_enable_seqmod" = mod ; then
38715                 MFLAG=SLAPD_MOD_DYNAMIC
38716                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38717         else
38718                 MFLAG=SLAPD_MOD_STATIC
38719                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38720         fi
38721
38722 cat >>confdefs.h <<_ACEOF
38723 #define SLAPD_OVER_SEQMOD $MFLAG
38724 _ACEOF
38725
38726 fi
38727
38728 if test "$ol_enable_sssvlv" != no ; then
38729         BUILD_SSSVLV=$ol_enable_sssvlv
38730         if test "$ol_enable_sssvlv" = mod ; then
38731                 MFLAG=SLAPD_MOD_DYNAMIC
38732                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
38733         else
38734                 MFLAG=SLAPD_MOD_STATIC
38735                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
38736         fi
38737
38738 cat >>confdefs.h <<_ACEOF
38739 #define SLAPD_OVER_SSSVLV $MFLAG
38740 _ACEOF
38741
38742 fi
38743
38744 if test "$ol_enable_syncprov" != no ; then
38745         BUILD_SYNCPROV=$ol_enable_syncprov
38746         if test "$ol_enable_syncprov" = mod ; then
38747                 MFLAG=SLAPD_MOD_DYNAMIC
38748                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38749         else
38750                 MFLAG=SLAPD_MOD_STATIC
38751                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38752         fi
38753
38754 cat >>confdefs.h <<_ACEOF
38755 #define SLAPD_OVER_SYNCPROV $MFLAG
38756 _ACEOF
38757
38758 fi
38759
38760 if test "$ol_enable_translucent" != no ; then
38761         BUILD_TRANSLUCENT=$ol_enable_translucent
38762         if test "$ol_enable_translucent" = mod ; then
38763                 MFLAG=SLAPD_MOD_DYNAMIC
38764                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38765         else
38766                 MFLAG=SLAPD_MOD_STATIC
38767                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38768         fi
38769
38770 cat >>confdefs.h <<_ACEOF
38771 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38772 _ACEOF
38773
38774 fi
38775
38776 if test "$ol_enable_unique" != no ; then
38777         BUILD_UNIQUE=$ol_enable_unique
38778         if test "$ol_enable_unique" = mod ; then
38779                 MFLAG=SLAPD_MOD_DYNAMIC
38780                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38781         else
38782                 MFLAG=SLAPD_MOD_STATIC
38783                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38784         fi
38785
38786 cat >>confdefs.h <<_ACEOF
38787 #define SLAPD_OVER_UNIQUE $MFLAG
38788 _ACEOF
38789
38790 fi
38791
38792 if test "$ol_enable_valsort" != no ; then
38793         BUILD_VALSORT=$ol_enable_valsort
38794         if test "$ol_enable_valsort" = mod ; then
38795                 MFLAG=SLAPD_MOD_DYNAMIC
38796                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38797         else
38798                 MFLAG=SLAPD_MOD_STATIC
38799                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38800         fi
38801
38802 cat >>confdefs.h <<_ACEOF
38803 #define SLAPD_OVER_VALSORT $MFLAG
38804 _ACEOF
38805
38806 fi
38807
38808 if test "$ol_enable_rewrite" != no ; then
38809
38810 cat >>confdefs.h <<\_ACEOF
38811 #define ENABLE_REWRITE 1
38812 _ACEOF
38813
38814         BUILD_REWRITE=yes
38815 fi
38816
38817 if test "$ol_enable_slapi" != no ; then
38818
38819 cat >>confdefs.h <<\_ACEOF
38820 #define ENABLE_SLAPI 1
38821 _ACEOF
38822
38823         BUILD_SLAPI=yes
38824         SLAPD_SLAPI_DEPEND=libslapi.a
38825 fi
38826
38827
38828
38829 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38830         PLAT=NT
38831         SLAPD_MODULES_LDFLAGS=
38832 else
38833         PLAT=UNIX
38834 fi
38835
38836
38837
38838
38839
38840
38841
38842
38843
38844
38845
38846
38847
38848
38849
38850
38851
38852
38853
38854
38855
38856
38857
38858
38859
38860
38861
38862
38863
38864
38865
38866
38867
38868
38869
38870
38871
38872
38873
38874
38875
38876
38877
38878
38879
38880
38881
38882
38883
38884
38885
38886
38887
38888
38889
38890
38891
38892
38893
38894
38895
38896
38897
38898
38899
38900
38901
38902
38903
38904
38905
38906
38907
38908
38909
38910
38911
38912
38913
38914
38915
38916
38917
38918
38919
38920
38921
38922
38923
38924
38925 # Check whether --with-xxinstall was given.
38926 if test "${with_xxinstall+set}" = set; then
38927   withval=$with_xxinstall;
38928 fi
38929
38930
38931
38932 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"
38933
38934
38935 ac_config_commands="$ac_config_commands default"
38936
38937
38938
38939 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38940 # Let make expand exec_prefix.
38941 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38942
38943 DEFS=-DHAVE_CONFIG_H
38944
38945 ac_libobjs=
38946 ac_ltlibobjs=
38947 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38948   # 1. Remove the extension, and $U if already installed.
38949   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38950   ac_i=`echo "$ac_i" | sed "$ac_script"`
38951   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38952   #    will be set to the directory where LIBOBJS objects are built.
38953   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38954   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38955 done
38956 LIBOBJS=$ac_libobjs
38957
38958 LTLIBOBJS=$ac_ltlibobjs
38959
38960
38961 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38962   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38963 Usually this means the macro was only invoked conditionally." >&5
38964 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38965 Usually this means the macro was only invoked conditionally." >&2;}
38966    { (exit 1); exit 1; }; }
38967 fi
38968 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38969   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38970 Usually this means the macro was only invoked conditionally." >&5
38971 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38972 Usually this means the macro was only invoked conditionally." >&2;}
38973    { (exit 1); exit 1; }; }
38974 fi
38975 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38976   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38977 Usually this means the macro was only invoked conditionally." >&5
38978 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38979 Usually this means the macro was only invoked conditionally." >&2;}
38980    { (exit 1); exit 1; }; }
38981 fi
38982
38983 : ${CONFIG_STATUS=./config.status}
38984 ac_clean_files_save=$ac_clean_files
38985 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38986 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38987 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38988 cat >$CONFIG_STATUS <<_ACEOF
38989 #! $SHELL
38990 # Generated by $as_me.
38991 # Run this file to recreate the current configuration.
38992 # Compiler output produced by configure, useful for debugging
38993 # configure, is in config.log if it exists.
38994
38995 debug=false
38996 ac_cs_recheck=false
38997 ac_cs_silent=false
38998 SHELL=\${CONFIG_SHELL-$SHELL}
38999 _ACEOF
39000
39001 cat >>$CONFIG_STATUS <<\_ACEOF
39002 ## --------------------- ##
39003 ## M4sh Initialization.  ##
39004 ## --------------------- ##
39005
39006 # Be more Bourne compatible
39007 DUALCASE=1; export DUALCASE # for MKS sh
39008 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39009   emulate sh
39010   NULLCMD=:
39011   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39012   # is contrary to our usage.  Disable this feature.
39013   alias -g '${1+"$@"}'='"$@"'
39014   setopt NO_GLOB_SUBST
39015 else
39016   case `(set -o) 2>/dev/null` in
39017   *posix*) set -o posix ;;
39018 esac
39019
39020 fi
39021
39022
39023
39024
39025 # PATH needs CR
39026 # Avoid depending upon Character Ranges.
39027 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39028 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39029 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39030 as_cr_digits='0123456789'
39031 as_cr_alnum=$as_cr_Letters$as_cr_digits
39032
39033 # The user is always right.
39034 if test "${PATH_SEPARATOR+set}" != set; then
39035   echo "#! /bin/sh" >conf$$.sh
39036   echo  "exit 0"   >>conf$$.sh
39037   chmod +x conf$$.sh
39038   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39039     PATH_SEPARATOR=';'
39040   else
39041     PATH_SEPARATOR=:
39042   fi
39043   rm -f conf$$.sh
39044 fi
39045
39046 # Support unset when possible.
39047 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39048   as_unset=unset
39049 else
39050   as_unset=false
39051 fi
39052
39053
39054 # IFS
39055 # We need space, tab and new line, in precisely that order.  Quoting is
39056 # there to prevent editors from complaining about space-tab.
39057 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39058 # splitting by setting IFS to empty value.)
39059 as_nl='
39060 '
39061 IFS=" ""        $as_nl"
39062
39063 # Find who we are.  Look in the path if we contain no directory separator.
39064 case $0 in
39065   *[\\/]* ) as_myself=$0 ;;
39066   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39067 for as_dir in $PATH
39068 do
39069   IFS=$as_save_IFS
39070   test -z "$as_dir" && as_dir=.
39071   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39072 done
39073 IFS=$as_save_IFS
39074
39075      ;;
39076 esac
39077 # We did not find ourselves, most probably we were run as `sh COMMAND'
39078 # in which case we are not to be found in the path.
39079 if test "x$as_myself" = x; then
39080   as_myself=$0
39081 fi
39082 if test ! -f "$as_myself"; then
39083   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39084   { (exit 1); exit 1; }
39085 fi
39086
39087 # Work around bugs in pre-3.0 UWIN ksh.
39088 for as_var in ENV MAIL MAILPATH
39089 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39090 done
39091 PS1='$ '
39092 PS2='> '
39093 PS4='+ '
39094
39095 # NLS nuisances.
39096 for as_var in \
39097   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39098   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39099   LC_TELEPHONE LC_TIME
39100 do
39101   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39102     eval $as_var=C; export $as_var
39103   else
39104     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39105   fi
39106 done
39107
39108 # Required to use basename.
39109 if expr a : '\(a\)' >/dev/null 2>&1 &&
39110    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39111   as_expr=expr
39112 else
39113   as_expr=false
39114 fi
39115
39116 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39117   as_basename=basename
39118 else
39119   as_basename=false
39120 fi
39121
39122
39123 # Name of the executable.
39124 as_me=`$as_basename -- "$0" ||
39125 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39126          X"$0" : 'X\(//\)$' \| \
39127          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39128 echo X/"$0" |
39129     sed '/^.*\/\([^/][^/]*\)\/*$/{
39130             s//\1/
39131             q
39132           }
39133           /^X\/\(\/\/\)$/{
39134             s//\1/
39135             q
39136           }
39137           /^X\/\(\/\).*/{
39138             s//\1/
39139             q
39140           }
39141           s/.*/./; q'`
39142
39143 # CDPATH.
39144 $as_unset CDPATH
39145
39146
39147
39148   as_lineno_1=$LINENO
39149   as_lineno_2=$LINENO
39150   test "x$as_lineno_1" != "x$as_lineno_2" &&
39151   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39152
39153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39154   # uniformly replaced by the line number.  The first 'sed' inserts a
39155   # line-number line after each line using $LINENO; the second 'sed'
39156   # does the real work.  The second script uses 'N' to pair each
39157   # line-number line with the line containing $LINENO, and appends
39158   # trailing '-' during substitution so that $LINENO is not a special
39159   # case at line end.
39160   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39161   # scripts with optimization help from Paolo Bonzini.  Blame Lee
39162   # E. McMahon (1931-1989) for sed's syntax.  :-)
39163   sed -n '
39164     p
39165     /[$]LINENO/=
39166   ' <$as_myself |
39167     sed '
39168       s/[$]LINENO.*/&-/
39169       t lineno
39170       b
39171       :lineno
39172       N
39173       :loop
39174       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39175       t loop
39176       s/-\n.*//
39177     ' >$as_me.lineno &&
39178   chmod +x "$as_me.lineno" ||
39179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39180    { (exit 1); exit 1; }; }
39181
39182   # Don't try to exec as it changes $[0], causing all sort of problems
39183   # (the dirname of $[0] is not the place where we might find the
39184   # original and so on.  Autoconf is especially sensitive to this).
39185   . "./$as_me.lineno"
39186   # Exit status is that of the last command.
39187   exit
39188 }
39189
39190
39191 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39192   as_dirname=dirname
39193 else
39194   as_dirname=false
39195 fi
39196
39197 ECHO_C= ECHO_N= ECHO_T=
39198 case `echo -n x` in
39199 -n*)
39200   case `echo 'x\c'` in
39201   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
39202   *)   ECHO_C='\c';;
39203   esac;;
39204 *)
39205   ECHO_N='-n';;
39206 esac
39207
39208 if expr a : '\(a\)' >/dev/null 2>&1 &&
39209    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39210   as_expr=expr
39211 else
39212   as_expr=false
39213 fi
39214
39215 rm -f conf$$ conf$$.exe conf$$.file
39216 if test -d conf$$.dir; then
39217   rm -f conf$$.dir/conf$$.file
39218 else
39219   rm -f conf$$.dir
39220   mkdir conf$$.dir
39221 fi
39222 echo >conf$$.file
39223 if ln -s conf$$.file conf$$ 2>/dev/null; then
39224   as_ln_s='ln -s'
39225   # ... but there are two gotchas:
39226   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39227   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39228   # In both cases, we have to default to `cp -p'.
39229   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39230     as_ln_s='cp -p'
39231 elif ln conf$$.file conf$$ 2>/dev/null; then
39232   as_ln_s=ln
39233 else
39234   as_ln_s='cp -p'
39235 fi
39236 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39237 rmdir conf$$.dir 2>/dev/null
39238
39239 if mkdir -p . 2>/dev/null; then
39240   as_mkdir_p=:
39241 else
39242   test -d ./-p && rmdir ./-p
39243   as_mkdir_p=false
39244 fi
39245
39246 if test -x / >/dev/null 2>&1; then
39247   as_test_x='test -x'
39248 else
39249   if ls -dL / >/dev/null 2>&1; then
39250     as_ls_L_option=L
39251   else
39252     as_ls_L_option=
39253   fi
39254   as_test_x='
39255     eval sh -c '\''
39256       if test -d "$1"; then
39257         test -d "$1/.";
39258       else
39259         case $1 in
39260         -*)set "./$1";;
39261         esac;
39262         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39263         ???[sx]*):;;*)false;;esac;fi
39264     '\'' sh
39265   '
39266 fi
39267 as_executable_p=$as_test_x
39268
39269 # Sed expression to map a string onto a valid CPP name.
39270 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39271
39272 # Sed expression to map a string onto a valid variable name.
39273 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39274
39275
39276 exec 6>&1
39277
39278 # Save the log message, to keep $[0] and so on meaningful, and to
39279 # report actual input values of CONFIG_FILES etc. instead of their
39280 # values after options handling.
39281 ac_log="
39282 This file was extended by $as_me, which was
39283 generated by GNU Autoconf 2.61.  Invocation command line was
39284
39285   CONFIG_FILES    = $CONFIG_FILES
39286   CONFIG_HEADERS  = $CONFIG_HEADERS
39287   CONFIG_LINKS    = $CONFIG_LINKS
39288   CONFIG_COMMANDS = $CONFIG_COMMANDS
39289   $ $0 $@
39290
39291 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39292 "
39293
39294 _ACEOF
39295
39296 cat >>$CONFIG_STATUS <<_ACEOF
39297 # Files that config.status was made for.
39298 config_files="$ac_config_files"
39299 config_headers="$ac_config_headers"
39300 config_commands="$ac_config_commands"
39301
39302 _ACEOF
39303
39304 cat >>$CONFIG_STATUS <<\_ACEOF
39305 ac_cs_usage="\
39306 \`$as_me' instantiates files from templates according to the
39307 current configuration.
39308
39309 Usage: $0 [OPTIONS] [FILE]...
39310
39311   -h, --help       print this help, then exit
39312   -V, --version    print version number and configuration settings, then exit
39313   -q, --quiet      do not print progress messages
39314   -d, --debug      don't remove temporary files
39315       --recheck    update $as_me by reconfiguring in the same conditions
39316   --file=FILE[:TEMPLATE]
39317                    instantiate the configuration file FILE
39318   --header=FILE[:TEMPLATE]
39319                    instantiate the configuration header FILE
39320
39321 Configuration files:
39322 $config_files
39323
39324 Configuration headers:
39325 $config_headers
39326
39327 Configuration commands:
39328 $config_commands
39329
39330 Report bugs to <bug-autoconf@gnu.org>."
39331
39332 _ACEOF
39333 cat >>$CONFIG_STATUS <<_ACEOF
39334 ac_cs_version="\\
39335 config.status
39336 configured by $0, generated by GNU Autoconf 2.61,
39337   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39338
39339 Copyright (C) 2006 Free Software Foundation, Inc.
39340 This config.status script is free software; the Free Software Foundation
39341 gives unlimited permission to copy, distribute and modify it."
39342
39343 ac_pwd='$ac_pwd'
39344 srcdir='$srcdir'
39345 INSTALL='$INSTALL'
39346 _ACEOF
39347
39348 cat >>$CONFIG_STATUS <<\_ACEOF
39349 # If no file are specified by the user, then we need to provide default
39350 # value.  By we need to know if files were specified by the user.
39351 ac_need_defaults=:
39352 while test $# != 0
39353 do
39354   case $1 in
39355   --*=*)
39356     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39357     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39358     ac_shift=:
39359     ;;
39360   *)
39361     ac_option=$1
39362     ac_optarg=$2
39363     ac_shift=shift
39364     ;;
39365   esac
39366
39367   case $ac_option in
39368   # Handling of the options.
39369   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39370     ac_cs_recheck=: ;;
39371   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39372     echo "$ac_cs_version"; exit ;;
39373   --debug | --debu | --deb | --de | --d | -d )
39374     debug=: ;;
39375   --file | --fil | --fi | --f )
39376     $ac_shift
39377     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39378     ac_need_defaults=false;;
39379   --header | --heade | --head | --hea )
39380     $ac_shift
39381     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39382     ac_need_defaults=false;;
39383   --he | --h)
39384     # Conflict between --help and --header
39385     { echo "$as_me: error: ambiguous option: $1
39386 Try \`$0 --help' for more information." >&2
39387    { (exit 1); exit 1; }; };;
39388   --help | --hel | -h )
39389     echo "$ac_cs_usage"; exit ;;
39390   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39391   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39392     ac_cs_silent=: ;;
39393
39394   # This is an error.
39395   -*) { echo "$as_me: error: unrecognized option: $1
39396 Try \`$0 --help' for more information." >&2
39397    { (exit 1); exit 1; }; } ;;
39398
39399   *) ac_config_targets="$ac_config_targets $1"
39400      ac_need_defaults=false ;;
39401
39402   esac
39403   shift
39404 done
39405
39406 ac_configure_extra_args=
39407
39408 if $ac_cs_silent; then
39409   exec 6>/dev/null
39410   ac_configure_extra_args="$ac_configure_extra_args --silent"
39411 fi
39412
39413 _ACEOF
39414 cat >>$CONFIG_STATUS <<_ACEOF
39415 if \$ac_cs_recheck; then
39416   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39417   CONFIG_SHELL=$SHELL
39418   export CONFIG_SHELL
39419   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39420 fi
39421
39422 _ACEOF
39423 cat >>$CONFIG_STATUS <<\_ACEOF
39424 exec 5>>config.log
39425 {
39426   echo
39427   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39428 ## Running $as_me. ##
39429 _ASBOX
39430   echo "$ac_log"
39431 } >&5
39432
39433 _ACEOF
39434 cat >>$CONFIG_STATUS <<_ACEOF
39435 #
39436 # INIT-COMMANDS
39437 #
39438 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39439
39440 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39441 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39442
39443
39444 _ACEOF
39445
39446 cat >>$CONFIG_STATUS <<\_ACEOF
39447
39448 # Handling of arguments.
39449 for ac_config_target in $ac_config_targets
39450 do
39451   case $ac_config_target in
39452     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39453     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39454     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39455     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39456     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39457     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39458     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39459     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39460     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39461     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39462     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39463     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39464     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39465     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39466     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39467     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39468     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39469     "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" ;;
39470     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39471     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39472     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39473     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39474     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39475     "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" ;;
39476     "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" ;;
39477     "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" ;;
39478     "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" ;;
39479     "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" ;;
39480     "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" ;;
39481     "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" ;;
39482     "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" ;;
39483     "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" ;;
39484     "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" ;;
39485     "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" ;;
39486     "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" ;;
39487     "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" ;;
39488     "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" ;;
39489     "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" ;;
39490     "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" ;;
39491     "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" ;;
39492     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39493     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39494     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39495     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39496     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39497
39498   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39499 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39500    { (exit 1); exit 1; }; };;
39501   esac
39502 done
39503
39504
39505 # If the user did not use the arguments to specify the items to instantiate,
39506 # then the envvar interface is used.  Set only those that are not.
39507 # We use the long form for the default assignment because of an extremely
39508 # bizarre bug on SunOS 4.1.3.
39509 if $ac_need_defaults; then
39510   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39511   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39512   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39513 fi
39514
39515 # Have a temporary directory for convenience.  Make it in the build tree
39516 # simply because there is no reason against having it here, and in addition,
39517 # creating and moving files from /tmp can sometimes cause problems.
39518 # Hook for its removal unless debugging.
39519 # Note that there is a small window in which the directory will not be cleaned:
39520 # after its creation but before its name has been assigned to `$tmp'.
39521 $debug ||
39522 {
39523   tmp=
39524   trap 'exit_status=$?
39525   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39526 ' 0
39527   trap '{ (exit 1); exit 1; }' 1 2 13 15
39528 }
39529 # Create a (secure) tmp directory for tmp files.
39530
39531 {
39532   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39533   test -n "$tmp" && test -d "$tmp"
39534 }  ||
39535 {
39536   tmp=./conf$$-$RANDOM
39537   (umask 077 && mkdir "$tmp")
39538 } ||
39539 {
39540    echo "$me: cannot create a temporary directory in ." >&2
39541    { (exit 1); exit 1; }
39542 }
39543
39544 #
39545 # Set up the sed scripts for CONFIG_FILES section.
39546 #
39547
39548 # No need to generate the scripts if there are no CONFIG_FILES.
39549 # This happens for instance when ./config.status config.h
39550 if test -n "$CONFIG_FILES"; then
39551
39552 _ACEOF
39553
39554
39555
39556 ac_delim='%!_!# '
39557 for ac_last_try in false false false false false :; do
39558   cat >conf$$subs.sed <<_ACEOF
39559 SHELL!$SHELL$ac_delim
39560 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39561 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39562 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39563 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39564 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39565 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39566 exec_prefix!$exec_prefix$ac_delim
39567 prefix!$prefix$ac_delim
39568 program_transform_name!$program_transform_name$ac_delim
39569 bindir!$bindir$ac_delim
39570 sbindir!$sbindir$ac_delim
39571 libexecdir!$libexecdir$ac_delim
39572 datarootdir!$datarootdir$ac_delim
39573 datadir!$datadir$ac_delim
39574 sysconfdir!$sysconfdir$ac_delim
39575 sharedstatedir!$sharedstatedir$ac_delim
39576 localstatedir!$localstatedir$ac_delim
39577 includedir!$includedir$ac_delim
39578 oldincludedir!$oldincludedir$ac_delim
39579 docdir!$docdir$ac_delim
39580 infodir!$infodir$ac_delim
39581 htmldir!$htmldir$ac_delim
39582 dvidir!$dvidir$ac_delim
39583 pdfdir!$pdfdir$ac_delim
39584 psdir!$psdir$ac_delim
39585 libdir!$libdir$ac_delim
39586 localedir!$localedir$ac_delim
39587 mandir!$mandir$ac_delim
39588 DEFS!$DEFS$ac_delim
39589 ECHO_C!$ECHO_C$ac_delim
39590 ECHO_N!$ECHO_N$ac_delim
39591 ECHO_T!$ECHO_T$ac_delim
39592 LIBS!$LIBS$ac_delim
39593 build_alias!$build_alias$ac_delim
39594 host_alias!$host_alias$ac_delim
39595 target_alias!$target_alias$ac_delim
39596 build!$build$ac_delim
39597 build_cpu!$build_cpu$ac_delim
39598 build_vendor!$build_vendor$ac_delim
39599 build_os!$build_os$ac_delim
39600 host!$host$ac_delim
39601 host_cpu!$host_cpu$ac_delim
39602 host_vendor!$host_vendor$ac_delim
39603 host_os!$host_os$ac_delim
39604 target!$target$ac_delim
39605 target_cpu!$target_cpu$ac_delim
39606 target_vendor!$target_vendor$ac_delim
39607 target_os!$target_os$ac_delim
39608 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39609 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39610 INSTALL_DATA!$INSTALL_DATA$ac_delim
39611 CYGPATH_W!$CYGPATH_W$ac_delim
39612 PACKAGE!$PACKAGE$ac_delim
39613 VERSION!$VERSION$ac_delim
39614 ACLOCAL!$ACLOCAL$ac_delim
39615 AUTOCONF!$AUTOCONF$ac_delim
39616 AUTOMAKE!$AUTOMAKE$ac_delim
39617 AUTOHEADER!$AUTOHEADER$ac_delim
39618 MAKEINFO!$MAKEINFO$ac_delim
39619 install_sh!$install_sh$ac_delim
39620 STRIP!$STRIP$ac_delim
39621 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39622 mkdir_p!$mkdir_p$ac_delim
39623 AWK!$AWK$ac_delim
39624 SET_MAKE!$SET_MAKE$ac_delim
39625 am__leading_dot!$am__leading_dot$ac_delim
39626 AMTAR!$AMTAR$ac_delim
39627 am__tar!$am__tar$ac_delim
39628 am__untar!$am__untar$ac_delim
39629 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39630 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39631 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39632 top_builddir!$top_builddir$ac_delim
39633 ldap_subdir!$ldap_subdir$ac_delim
39634 CC!$CC$ac_delim
39635 AR!$AR$ac_delim
39636 CFLAGS!$CFLAGS$ac_delim
39637 LDFLAGS!$LDFLAGS$ac_delim
39638 CPPFLAGS!$CPPFLAGS$ac_delim
39639 ac_ct_CC!$ac_ct_CC$ac_delim
39640 EXEEXT!$EXEEXT$ac_delim
39641 OBJEXT!$OBJEXT$ac_delim
39642 DEPDIR!$DEPDIR$ac_delim
39643 am__include!$am__include$ac_delim
39644 am__quote!$am__quote$ac_delim
39645 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39646 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39647 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39648 CCDEPMODE!$CCDEPMODE$ac_delim
39649 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39650 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39651 GREP!$GREP$ac_delim
39652 EGREP!$EGREP$ac_delim
39653 LN_S!$LN_S$ac_delim
39654 ECHO!$ECHO$ac_delim
39655 RANLIB!$RANLIB$ac_delim
39656 _ACEOF
39657
39658   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39659     break
39660   elif $ac_last_try; then
39661     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39662 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39663    { (exit 1); exit 1; }; }
39664   else
39665     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39666   fi
39667 done
39668
39669 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39670 if test -n "$ac_eof"; then
39671   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39672   ac_eof=`expr $ac_eof + 1`
39673 fi
39674
39675 cat >>$CONFIG_STATUS <<_ACEOF
39676 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39678 _ACEOF
39679 sed '
39680 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39681 s/^/s,@/; s/!/@,|#_!!_#|/
39682 :n
39683 t n
39684 s/'"$ac_delim"'$/,g/; t
39685 s/$/\\/; p
39686 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39687 ' >>$CONFIG_STATUS <conf$$subs.sed
39688 rm -f conf$$subs.sed
39689 cat >>$CONFIG_STATUS <<_ACEOF
39690 CEOF$ac_eof
39691 _ACEOF
39692
39693
39694 ac_delim='%!_!# '
39695 for ac_last_try in false false false false false :; do
39696   cat >conf$$subs.sed <<_ACEOF
39697 DLLTOOL!$DLLTOOL$ac_delim
39698 AS!$AS$ac_delim
39699 OBJDUMP!$OBJDUMP$ac_delim
39700 CPP!$CPP$ac_delim
39701 LIBTOOL!$LIBTOOL$ac_delim
39702 PERLBIN!$PERLBIN$ac_delim
39703 OL_MKDEP!$OL_MKDEP$ac_delim
39704 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39705 LTSTATIC!$LTSTATIC$ac_delim
39706 MYSQL!$MYSQL$ac_delim
39707 LIBOBJS!$LIBOBJS$ac_delim
39708 LIBSRCS!$LIBSRCS$ac_delim
39709 PLAT!$PLAT$ac_delim
39710 WITH_SASL!$WITH_SASL$ac_delim
39711 WITH_TLS!$WITH_TLS$ac_delim
39712 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39713 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39714 BUILD_THREAD!$BUILD_THREAD$ac_delim
39715 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39716 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39717 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39718 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39719 BUILD_BDB!$BUILD_BDB$ac_delim
39720 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39721 BUILD_HDB!$BUILD_HDB$ac_delim
39722 BUILD_LDAP!$BUILD_LDAP$ac_delim
39723 BUILD_META!$BUILD_META$ac_delim
39724 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39725 BUILD_NDB!$BUILD_NDB$ac_delim
39726 BUILD_NULL!$BUILD_NULL$ac_delim
39727 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39728 BUILD_RELAY!$BUILD_RELAY$ac_delim
39729 BUILD_PERL!$BUILD_PERL$ac_delim
39730 BUILD_SHELL!$BUILD_SHELL$ac_delim
39731 BUILD_SOCK!$BUILD_SOCK$ac_delim
39732 BUILD_SQL!$BUILD_SQL$ac_delim
39733 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39734 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39735 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39736 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39737 BUILD_DDS!$BUILD_DDS$ac_delim
39738 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39739 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39740 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39741 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39742 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39743 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39744 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39745 BUILD_REFINT!$BUILD_REFINT$ac_delim
39746 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39747 BUILD_RWM!$BUILD_RWM$ac_delim
39748 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39749 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
39750 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39751 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39752 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39753 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39754 LDAP_LIBS!$LDAP_LIBS$ac_delim
39755 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39756 BDB_LIBS!$BDB_LIBS$ac_delim
39757 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39758 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39759 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39760 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39761 WRAP_LIBS!$WRAP_LIBS$ac_delim
39762 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39763 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39764 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39765 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39766 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39767 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39768 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39769 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39770 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39771 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39772 KRB4_LIBS!$KRB4_LIBS$ac_delim
39773 KRB5_LIBS!$KRB5_LIBS$ac_delim
39774 SASL_LIBS!$SASL_LIBS$ac_delim
39775 TLS_LIBS!$TLS_LIBS$ac_delim
39776 MODULES_LIBS!$MODULES_LIBS$ac_delim
39777 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39778 LIBSLAPI!$LIBSLAPI$ac_delim
39779 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39780 AUTH_LIBS!$AUTH_LIBS$ac_delim
39781 ICU_LIBS!$ICU_LIBS$ac_delim
39782 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39783 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39784 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39785 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39786 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39787 LTLIBOBJS!$LTLIBOBJS$ac_delim
39788 _ACEOF
39789
39790   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
39791     break
39792   elif $ac_last_try; then
39793     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39794 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39795    { (exit 1); exit 1; }; }
39796   else
39797     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39798   fi
39799 done
39800
39801 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39802 if test -n "$ac_eof"; then
39803   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39804   ac_eof=`expr $ac_eof + 1`
39805 fi
39806
39807 cat >>$CONFIG_STATUS <<_ACEOF
39808 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39810 _ACEOF
39811 sed '
39812 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39813 s/^/s,@/; s/!/@,|#_!!_#|/
39814 :n
39815 t n
39816 s/'"$ac_delim"'$/,g/; t
39817 s/$/\\/; p
39818 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39819 ' >>$CONFIG_STATUS <conf$$subs.sed
39820 rm -f conf$$subs.sed
39821 cat >>$CONFIG_STATUS <<_ACEOF
39822 :end
39823 s/|#_!!_#|//g
39824 CEOF$ac_eof
39825 _ACEOF
39826
39827
39828 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39829 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39830 # trailing colons and then remove the whole line if VPATH becomes empty
39831 # (actually we leave an empty line to preserve line numbers).
39832 if test "x$srcdir" = x.; then
39833   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39834 s/:*\$(srcdir):*/:/
39835 s/:*\${srcdir}:*/:/
39836 s/:*@srcdir@:*/:/
39837 s/^\([^=]*=[     ]*\):*/\1/
39838 s/:*$//
39839 s/^[^=]*=[       ]*$//
39840 }'
39841 fi
39842
39843 cat >>$CONFIG_STATUS <<\_ACEOF
39844 fi # test -n "$CONFIG_FILES"
39845
39846
39847 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39848 do
39849   case $ac_tag in
39850   :[FHLC]) ac_mode=$ac_tag; continue;;
39851   esac
39852   case $ac_mode$ac_tag in
39853   :[FHL]*:*);;
39854   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39855 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39856    { (exit 1); exit 1; }; };;
39857   :[FH]-) ac_tag=-:-;;
39858   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39859   esac
39860   ac_save_IFS=$IFS
39861   IFS=:
39862   set x $ac_tag
39863   IFS=$ac_save_IFS
39864   shift
39865   ac_file=$1
39866   shift
39867
39868   case $ac_mode in
39869   :L) ac_source=$1;;
39870   :[FH])
39871     ac_file_inputs=
39872     for ac_f
39873     do
39874       case $ac_f in
39875       -) ac_f="$tmp/stdin";;
39876       *) # Look for the file first in the build tree, then in the source tree
39877          # (if the path is not absolute).  The absolute path cannot be DOS-style,
39878          # because $ac_f cannot contain `:'.
39879          test -f "$ac_f" ||
39880            case $ac_f in
39881            [\\/$]*) false;;
39882            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39883            esac ||
39884            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39885 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39886    { (exit 1); exit 1; }; };;
39887       esac
39888       ac_file_inputs="$ac_file_inputs $ac_f"
39889     done
39890
39891     # Let's still pretend it is `configure' which instantiates (i.e., don't
39892     # use $as_me), people would be surprised to read:
39893     #    /* config.h.  Generated by config.status.  */
39894     configure_input="Generated from "`IFS=:
39895           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39896     if test x"$ac_file" != x-; then
39897       configure_input="$ac_file.  $configure_input"
39898       { echo "$as_me:$LINENO: creating $ac_file" >&5
39899 echo "$as_me: creating $ac_file" >&6;}
39900     fi
39901
39902     case $ac_tag in
39903     *:-:* | *:-) cat >"$tmp/stdin";;
39904     esac
39905     ;;
39906   esac
39907
39908   ac_dir=`$as_dirname -- "$ac_file" ||
39909 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39910          X"$ac_file" : 'X\(//\)[^/]' \| \
39911          X"$ac_file" : 'X\(//\)$' \| \
39912          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39913 echo X"$ac_file" |
39914     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39915             s//\1/
39916             q
39917           }
39918           /^X\(\/\/\)[^/].*/{
39919             s//\1/
39920             q
39921           }
39922           /^X\(\/\/\)$/{
39923             s//\1/
39924             q
39925           }
39926           /^X\(\/\).*/{
39927             s//\1/
39928             q
39929           }
39930           s/.*/./; q'`
39931   { as_dir="$ac_dir"
39932   case $as_dir in #(
39933   -*) as_dir=./$as_dir;;
39934   esac
39935   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39936     as_dirs=
39937     while :; do
39938       case $as_dir in #(
39939       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39940       *) as_qdir=$as_dir;;
39941       esac
39942       as_dirs="'$as_qdir' $as_dirs"
39943       as_dir=`$as_dirname -- "$as_dir" ||
39944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39945          X"$as_dir" : 'X\(//\)[^/]' \| \
39946          X"$as_dir" : 'X\(//\)$' \| \
39947          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39948 echo X"$as_dir" |
39949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39950             s//\1/
39951             q
39952           }
39953           /^X\(\/\/\)[^/].*/{
39954             s//\1/
39955             q
39956           }
39957           /^X\(\/\/\)$/{
39958             s//\1/
39959             q
39960           }
39961           /^X\(\/\).*/{
39962             s//\1/
39963             q
39964           }
39965           s/.*/./; q'`
39966       test -d "$as_dir" && break
39967     done
39968     test -z "$as_dirs" || eval "mkdir $as_dirs"
39969   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39970 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39971    { (exit 1); exit 1; }; }; }
39972   ac_builddir=.
39973
39974 case "$ac_dir" in
39975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39976 *)
39977   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39978   # A ".." for each directory in $ac_dir_suffix.
39979   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39980   case $ac_top_builddir_sub in
39981   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39982   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39983   esac ;;
39984 esac
39985 ac_abs_top_builddir=$ac_pwd
39986 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39987 # for backward compatibility:
39988 ac_top_builddir=$ac_top_build_prefix
39989
39990 case $srcdir in
39991   .)  # We are building in place.
39992     ac_srcdir=.
39993     ac_top_srcdir=$ac_top_builddir_sub
39994     ac_abs_top_srcdir=$ac_pwd ;;
39995   [\\/]* | ?:[\\/]* )  # Absolute name.
39996     ac_srcdir=$srcdir$ac_dir_suffix;
39997     ac_top_srcdir=$srcdir
39998     ac_abs_top_srcdir=$srcdir ;;
39999   *) # Relative name.
40000     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40001     ac_top_srcdir=$ac_top_build_prefix$srcdir
40002     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40003 esac
40004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40005
40006
40007   case $ac_mode in
40008   :F)
40009   #
40010   # CONFIG_FILE
40011   #
40012
40013   case $INSTALL in
40014   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40015   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40016   esac
40017 _ACEOF
40018
40019 cat >>$CONFIG_STATUS <<\_ACEOF
40020 # If the template does not know about datarootdir, expand it.
40021 # FIXME: This hack should be removed a few years after 2.60.
40022 ac_datarootdir_hack=; ac_datarootdir_seen=
40023
40024 case `sed -n '/datarootdir/ {
40025   p
40026   q
40027 }
40028 /@datadir@/p
40029 /@docdir@/p
40030 /@infodir@/p
40031 /@localedir@/p
40032 /@mandir@/p
40033 ' $ac_file_inputs` in
40034 *datarootdir*) ac_datarootdir_seen=yes;;
40035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40036   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40037 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40038 _ACEOF
40039 cat >>$CONFIG_STATUS <<_ACEOF
40040   ac_datarootdir_hack='
40041   s&@datadir@&$datadir&g
40042   s&@docdir@&$docdir&g
40043   s&@infodir@&$infodir&g
40044   s&@localedir@&$localedir&g
40045   s&@mandir@&$mandir&g
40046     s&\\\${datarootdir}&$datarootdir&g' ;;
40047 esac
40048 _ACEOF
40049
40050 # Neutralize VPATH when `$srcdir' = `.'.
40051 # Shell code in configure.ac might set extrasub.
40052 # FIXME: do we really want to maintain this feature?
40053 cat >>$CONFIG_STATUS <<_ACEOF
40054   sed "$ac_vpsub
40055 $extrasub
40056 _ACEOF
40057 cat >>$CONFIG_STATUS <<\_ACEOF
40058 :t
40059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40060 s&@configure_input@&$configure_input&;t t
40061 s&@top_builddir@&$ac_top_builddir_sub&;t t
40062 s&@srcdir@&$ac_srcdir&;t t
40063 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40064 s&@top_srcdir@&$ac_top_srcdir&;t t
40065 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40066 s&@builddir@&$ac_builddir&;t t
40067 s&@abs_builddir@&$ac_abs_builddir&;t t
40068 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40069 s&@INSTALL@&$ac_INSTALL&;t t
40070 $ac_datarootdir_hack
40071 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40072
40073 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40074   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40075   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40076   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40077 which seems to be undefined.  Please make sure it is defined." >&5
40078 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40079 which seems to be undefined.  Please make sure it is defined." >&2;}
40080
40081   rm -f "$tmp/stdin"
40082   case $ac_file in
40083   -) cat "$tmp/out"; rm -f "$tmp/out";;
40084   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40085   esac
40086  ;;
40087   :H)
40088   #
40089   # CONFIG_HEADER
40090   #
40091 _ACEOF
40092
40093 # Transform confdefs.h into a sed script `conftest.defines', that
40094 # substitutes the proper values into config.h.in to produce config.h.
40095 rm -f conftest.defines conftest.tail
40096 # First, append a space to every undef/define line, to ease matching.
40097 echo 's/$/ /' >conftest.defines
40098 # Then, protect against being on the right side of a sed subst, or in
40099 # an unquoted here document, in config.status.  If some macros were
40100 # called several times there might be several #defines for the same
40101 # symbol, which is useless.  But do not sort them, since the last
40102 # AC_DEFINE must be honored.
40103 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40104 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40105 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40106 # PARAMS is the parameter list in the macro definition--in most cases, it's
40107 # just an empty string.
40108 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
40109 ac_dB='\\)[      (].*,\\1define\\2'
40110 ac_dC=' '
40111 ac_dD=' ,'
40112
40113 uniq confdefs.h |
40114   sed -n '
40115         t rset
40116         :rset
40117         s/^[     ]*#[    ]*define[       ][      ]*//
40118         t ok
40119         d
40120         :ok
40121         s/[\\&,]/\\&/g
40122         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40123         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40124   ' >>conftest.defines
40125
40126 # Remove the space that was appended to ease matching.
40127 # Then replace #undef with comments.  This is necessary, for
40128 # example, in the case of _POSIX_SOURCE, which is predefined and required
40129 # on some systems where configure will not decide to define it.
40130 # (The regexp can be short, since the line contains either #define or #undef.)
40131 echo 's/ $//
40132 s,^[     #]*u.*,/* & */,' >>conftest.defines
40133
40134 # Break up conftest.defines:
40135 ac_max_sed_lines=50
40136
40137 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40138 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40139 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40140 # et cetera.
40141 ac_in='$ac_file_inputs'
40142 ac_out='"$tmp/out1"'
40143 ac_nxt='"$tmp/out2"'
40144
40145 while :
40146 do
40147   # Write a here document:
40148     cat >>$CONFIG_STATUS <<_ACEOF
40149     # First, check the format of the line:
40150     cat >"\$tmp/defines.sed" <<\\CEOF
40151 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
40152 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
40153 b
40154 :def
40155 _ACEOF
40156   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40157   echo 'CEOF
40158     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40159   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40160   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40161   grep . conftest.tail >/dev/null || break
40162   rm -f conftest.defines
40163   mv conftest.tail conftest.defines
40164 done
40165 rm -f conftest.defines conftest.tail
40166
40167 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40168 cat >>$CONFIG_STATUS <<\_ACEOF
40169   if test x"$ac_file" != x-; then
40170     echo "/* $configure_input  */" >"$tmp/config.h"
40171     cat "$ac_result" >>"$tmp/config.h"
40172     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40173       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40174 echo "$as_me: $ac_file is unchanged" >&6;}
40175     else
40176       rm -f $ac_file
40177       mv "$tmp/config.h" $ac_file
40178     fi
40179   else
40180     echo "/* $configure_input  */"
40181     cat "$ac_result"
40182   fi
40183   rm -f "$tmp/out12"
40184 # Compute $ac_file's index in $config_headers.
40185 _am_stamp_count=1
40186 for _am_header in $config_headers :; do
40187   case $_am_header in
40188     $ac_file | $ac_file:* )
40189       break ;;
40190     * )
40191       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40192   esac
40193 done
40194 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40195 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40196          X$ac_file : 'X\(//\)[^/]' \| \
40197          X$ac_file : 'X\(//\)$' \| \
40198          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40199 echo X$ac_file |
40200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40201             s//\1/
40202             q
40203           }
40204           /^X\(\/\/\)[^/].*/{
40205             s//\1/
40206             q
40207           }
40208           /^X\(\/\/\)$/{
40209             s//\1/
40210             q
40211           }
40212           /^X\(\/\).*/{
40213             s//\1/
40214             q
40215           }
40216           s/.*/./; q'`/stamp-h$_am_stamp_count
40217  ;;
40218
40219   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40220 echo "$as_me: executing $ac_file commands" >&6;}
40221  ;;
40222   esac
40223
40224
40225   case $ac_file$ac_mode in
40226     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40227   # Strip MF so we end up with the name of the file.
40228   mf=`echo "$mf" | sed -e 's/:.*$//'`
40229   # Check whether this is an Automake generated Makefile or not.
40230   # We used to match only the files named `Makefile.in', but
40231   # some people rename them; so instead we look at the file content.
40232   # Grep'ing the first line is not enough: some people post-process
40233   # each Makefile.in and add a new line on top of each file to say so.
40234   # So let's grep whole file.
40235   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40236     dirpart=`$as_dirname -- "$mf" ||
40237 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40238          X"$mf" : 'X\(//\)[^/]' \| \
40239          X"$mf" : 'X\(//\)$' \| \
40240          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40241 echo X"$mf" |
40242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40243             s//\1/
40244             q
40245           }
40246           /^X\(\/\/\)[^/].*/{
40247             s//\1/
40248             q
40249           }
40250           /^X\(\/\/\)$/{
40251             s//\1/
40252             q
40253           }
40254           /^X\(\/\).*/{
40255             s//\1/
40256             q
40257           }
40258           s/.*/./; q'`
40259   else
40260     continue
40261   fi
40262   # Extract the definition of DEPDIR, am__include, and am__quote
40263   # from the Makefile without running `make'.
40264   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40265   test -z "$DEPDIR" && continue
40266   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40267   test -z "am__include" && continue
40268   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40269   # When using ansi2knr, U may be empty or an underscore; expand it
40270   U=`sed -n 's/^U = //p' < "$mf"`
40271   # Find all dependency output files, they are included files with
40272   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40273   # simplest approach to changing $(DEPDIR) to its actual value in the
40274   # expansion.
40275   for file in `sed -n "
40276     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40277        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40278     # Make sure the directory exists.
40279     test -f "$dirpart/$file" && continue
40280     fdir=`$as_dirname -- "$file" ||
40281 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40282          X"$file" : 'X\(//\)[^/]' \| \
40283          X"$file" : 'X\(//\)$' \| \
40284          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40285 echo X"$file" |
40286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40287             s//\1/
40288             q
40289           }
40290           /^X\(\/\/\)[^/].*/{
40291             s//\1/
40292             q
40293           }
40294           /^X\(\/\/\)$/{
40295             s//\1/
40296             q
40297           }
40298           /^X\(\/\).*/{
40299             s//\1/
40300             q
40301           }
40302           s/.*/./; q'`
40303     { as_dir=$dirpart/$fdir
40304   case $as_dir in #(
40305   -*) as_dir=./$as_dir;;
40306   esac
40307   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40308     as_dirs=
40309     while :; do
40310       case $as_dir in #(
40311       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40312       *) as_qdir=$as_dir;;
40313       esac
40314       as_dirs="'$as_qdir' $as_dirs"
40315       as_dir=`$as_dirname -- "$as_dir" ||
40316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40317          X"$as_dir" : 'X\(//\)[^/]' \| \
40318          X"$as_dir" : 'X\(//\)$' \| \
40319          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40320 echo X"$as_dir" |
40321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40322             s//\1/
40323             q
40324           }
40325           /^X\(\/\/\)[^/].*/{
40326             s//\1/
40327             q
40328           }
40329           /^X\(\/\/\)$/{
40330             s//\1/
40331             q
40332           }
40333           /^X\(\/\).*/{
40334             s//\1/
40335             q
40336           }
40337           s/.*/./; q'`
40338       test -d "$as_dir" && break
40339     done
40340     test -z "$as_dirs" || eval "mkdir $as_dirs"
40341   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40342 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40343    { (exit 1); exit 1; }; }; }
40344     # echo "creating $dirpart/$file"
40345     echo '# dummy' > "$dirpart/$file"
40346   done
40347 done
40348  ;;
40349     "default":C)
40350 chmod +x tests/run
40351 date > stamp-h
40352 BACKENDSC="servers/slapd/backends.c"
40353 echo "Making $BACKENDSC"
40354 rm -f $BACKENDSC
40355 cat > $BACKENDSC << ENDX
40356 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40357  *
40358  * Copyright 1998-2009 The OpenLDAP Foundation.
40359  * All rights reserved.
40360  *
40361  * Redistribution and use in source and binary forms, with or without
40362  * modification, are permitted only as authorized by the OpenLDAP
40363  * Public License.
40364  *
40365  * A copy of this license is available in the file LICENSE in the
40366  * top-level directory of the distribution or, alternatively, at
40367  * <http://www.OpenLDAP.org/license.html>.
40368  */
40369 /* This file is automatically generated by configure; please do not edit. */
40370
40371 #include "portable.h"
40372 #include "slap.h"
40373
40374 ENDX
40375 if test "${STATIC_BACKENDS}"; then
40376         for b in config ${STATIC_BACKENDS}; do
40377                 bb=`echo "${b}" | sed -e 's/back-//'`
40378                 cat >> $BACKENDSC << ENDX
40379 extern BI_init ${bb}_back_initialize;
40380 ENDX
40381         done
40382
40383         cat >> $BACKENDSC << ENDX
40384
40385 BackendInfo slap_binfo[] = {
40386 ENDX
40387
40388         for b in config ${STATIC_BACKENDS}; do
40389                 bb=`echo "${b}" | sed -e 's/back-//'`
40390                 echo "    Add ${bb} ..."
40391                 cat >> $BACKENDSC << ENDX
40392         { "${bb}", ${bb}_back_initialize },
40393 ENDX
40394         done
40395
40396         cat >> $BACKENDSC << ENDX
40397         { NULL, NULL },
40398 };
40399
40400 /* end of generated file */
40401 ENDX
40402 fi
40403 OVERLAYSC="servers/slapd/overlays/statover.c"
40404 echo "Making $OVERLAYSC"
40405 rm -f $OVERLAYSC
40406 cat > $OVERLAYSC << ENDX
40407 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40408  *
40409  * Copyright 1998-2009 The OpenLDAP Foundation.
40410  * All rights reserved.
40411  *
40412  * Redistribution and use in source and binary forms, with or without
40413  * modification, are permitted only as authorized by the OpenLDAP
40414  * Public License.
40415  *
40416  * A copy of this license is available in the file LICENSE in the
40417  * top-level directory of the distribution or, alternatively, at
40418  * <http://www.OpenLDAP.org/license.html>.
40419  */
40420 /* This file is automatically generated by configure; please do not edit. */
40421
40422 #include "portable.h"
40423 #include "slap.h"
40424
40425 ENDX
40426 if test "${STATIC_OVERLAYS}"; then
40427         for o in ${STATIC_OVERLAYS}; do
40428                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40429                 cat >> $OVERLAYSC << ENDX
40430 extern OV_init ${oo}_initialize;
40431 ENDX
40432         done
40433 fi
40434
40435 cat >> $OVERLAYSC << ENDX
40436
40437 OverlayInit slap_oinfo[] = {
40438 ENDX
40439
40440 if test "${STATIC_OVERLAYS}"; then
40441         for o in ${STATIC_OVERLAYS}; do
40442                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40443                 echo "    Add ${oo} ..."
40444                 cat >> $OVERLAYSC << ENDX
40445         { "${oo}", ${oo}_initialize },
40446 ENDX
40447         done
40448 fi
40449
40450         cat >> $OVERLAYSC << ENDX
40451         { NULL, NULL },
40452 };
40453
40454 /* end of generated file */
40455 ENDX
40456
40457 if test "${ol_cv_mkdep}" = no; then
40458         echo '(Do not "make depend"; we do not know how to build dependencies)'
40459 else
40460         echo 'Please run "make depend" to build dependencies'
40461 fi
40462  ;;
40463
40464   esac
40465 done # for ac_tag
40466
40467
40468 { (exit 0); exit 0; }
40469 _ACEOF
40470 chmod +x $CONFIG_STATUS
40471 ac_clean_files=$ac_clean_files_save
40472
40473
40474 # configure is writing to config.log, and then calls config.status.
40475 # config.status does its own redirection, appending to config.log.
40476 # Unfortunately, on DOS this fails, as config.log is still kept open
40477 # by configure, so config.status won't be able to write to it; its
40478 # output is simply discarded.  So we exec the FD to /dev/null,
40479 # effectively closing config.log, so it can be properly (re)opened and
40480 # appended to by config.status.  When coming back to configure, we
40481 # need to make the FD available again.
40482 if test "$no_create" != yes; then
40483   ac_cs_success=:
40484   ac_config_status_args=
40485   test "$silent" = yes &&
40486     ac_config_status_args="$ac_config_status_args --quiet"
40487   exec 5>/dev/null
40488   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40489   exec 5>>config.log
40490   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40491   # would make configure fail if this is the last instruction.
40492   $ac_cs_success || { (exit 1); exit 1; }
40493 fi
40494