]> git.sur5r.net Git - openldap/blob - configure
ITS#6877 add LIBTOOL definition
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.710 2011/02/17 01:56:06 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright 1998-2011 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 am__isrc
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 OPENLDAP_LIBRELEASE
844 OPENLDAP_LIBVERSION
845 OPENLDAP_RELEASE_DATE
846 top_builddir
847 ldap_subdir
848 CC
849 AR
850 CFLAGS
851 LDFLAGS
852 CPPFLAGS
853 ac_ct_CC
854 EXEEXT
855 OBJEXT
856 DEPDIR
857 am__include
858 am__quote
859 AMDEP_TRUE
860 AMDEP_FALSE
861 AMDEPBACKSLASH
862 CCDEPMODE
863 am__fastdepCC_TRUE
864 am__fastdepCC_FALSE
865 GREP
866 EGREP
867 LN_S
868 ECHO
869 RANLIB
870 DLLTOOL
871 AS
872 OBJDUMP
873 CPP
874 LIBTOOL
875 PERLBIN
876 OL_MKDEP
877 OL_MKDEP_FLAGS
878 LTSTATIC
879 MYSQL
880 LIBOBJS
881 LIBSRCS
882 PLAT
883 WITH_SASL
884 WITH_TLS
885 WITH_MODULES_ENABLED
886 WITH_ACI_ENABLED
887 BUILD_THREAD
888 BUILD_LIBS_DYNAMIC
889 BUILD_SLAPD
890 BUILD_SLAPI
891 SLAPD_SLAPI_DEPEND
892 BUILD_BDB
893 BUILD_DNSSRV
894 BUILD_HDB
895 BUILD_LDAP
896 BUILD_META
897 BUILD_MONITOR
898 BUILD_NDB
899 BUILD_NULL
900 BUILD_PASSWD
901 BUILD_RELAY
902 BUILD_PERL
903 BUILD_SHELL
904 BUILD_SOCK
905 BUILD_SQL
906 BUILD_ACCESSLOG
907 BUILD_AUDITLOG
908 BUILD_COLLECT
909 BUILD_CONSTRAINT
910 BUILD_DDS
911 BUILD_DENYOP
912 BUILD_DEREF
913 BUILD_DYNGROUP
914 BUILD_DYNLIST
915 BUILD_LASTMOD
916 BUILD_MEMBEROF
917 BUILD_PPOLICY
918 BUILD_PROXYCACHE
919 BUILD_REFINT
920 BUILD_RETCODE
921 BUILD_RWM
922 BUILD_SEQMOD
923 BUILD_SSSVLV
924 BUILD_SYNCPROV
925 BUILD_TRANSLUCENT
926 BUILD_UNIQUE
927 BUILD_VALSORT
928 LDAP_LIBS
929 SLAPD_LIBS
930 BDB_LIBS
931 SLAPD_NDB_LIBS
932 SLAPD_NDB_INCS
933 LTHREAD_LIBS
934 LUTIL_LIBS
935 WRAP_LIBS
936 SLAPD_MODULES_CPPFLAGS
937 SLAPD_MODULES_LDFLAGS
938 SLAPD_NO_STATIC
939 SLAPD_STATIC_BACKENDS
940 SLAPD_DYNAMIC_BACKENDS
941 SLAPD_STATIC_OVERLAYS
942 SLAPD_DYNAMIC_OVERLAYS
943 PERL_CPPFLAGS
944 SLAPD_PERL_LDFLAGS
945 MOD_PERL_LDFLAGS
946 KRB4_LIBS
947 KRB5_LIBS
948 SASL_LIBS
949 TLS_LIBS
950 MODULES_LIBS
951 SLAPI_LIBS
952 LIBSLAPI
953 AUTH_LIBS
954 ICU_LIBS
955 SLAPD_SLP_LIBS
956 SLAPD_GMP_LIBS
957 SLAPD_SQL_LDFLAGS
958 SLAPD_SQL_LIBS
959 SLAPD_SQL_INCLUDES
960 LTLIBOBJS'
961 ac_subst_files=''
962       ac_precious_vars='build_alias
963 host_alias
964 target_alias
965 CC
966 CFLAGS
967 LDFLAGS
968 LIBS
969 CPPFLAGS
970 CPP'
971
972
973 # Initialize some variables set by options.
974 ac_init_help=
975 ac_init_version=false
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
992
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1018
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1022 do
1023   # If the previous option needs an argument, assign it.
1024   if test -n "$ac_prev"; then
1025     eval $ac_prev=\$ac_option
1026     ac_prev=
1027     continue
1028   fi
1029
1030   case $ac_option in
1031   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032   *)    ac_optarg=yes ;;
1033   esac
1034
1035   # Accept the important Cygnus configure options, so we can diagnose typos.
1036
1037   case $ac_dashdash$ac_option in
1038   --)
1039     ac_dashdash=yes ;;
1040
1041   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042     ac_prev=bindir ;;
1043   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044     bindir=$ac_optarg ;;
1045
1046   -build | --build | --buil | --bui | --bu)
1047     ac_prev=build_alias ;;
1048   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049     build_alias=$ac_optarg ;;
1050
1051   -cache-file | --cache-file | --cache-fil | --cache-fi \
1052   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053     ac_prev=cache_file ;;
1054   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056     cache_file=$ac_optarg ;;
1057
1058   --config-cache | -C)
1059     cache_file=config.cache ;;
1060
1061   -datadir | --datadir | --datadi | --datad)
1062     ac_prev=datadir ;;
1063   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064     datadir=$ac_optarg ;;
1065
1066   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067   | --dataroo | --dataro | --datar)
1068     ac_prev=datarootdir ;;
1069   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071     datarootdir=$ac_optarg ;;
1072
1073   -disable-* | --disable-*)
1074     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078    { (exit 1); exit 1; }; }
1079     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1080     eval enable_$ac_feature=no ;;
1081
1082   -docdir | --docdir | --docdi | --doc | --do)
1083     ac_prev=docdir ;;
1084   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085     docdir=$ac_optarg ;;
1086
1087   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088     ac_prev=dvidir ;;
1089   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090     dvidir=$ac_optarg ;;
1091
1092   -enable-* | --enable-*)
1093     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094     # Reject names that are not valid shell variable names.
1095     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097    { (exit 1); exit 1; }; }
1098     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1099     eval enable_$ac_feature=\$ac_optarg ;;
1100
1101   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103   | --exec | --exe | --ex)
1104     ac_prev=exec_prefix ;;
1105   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107   | --exec=* | --exe=* | --ex=*)
1108     exec_prefix=$ac_optarg ;;
1109
1110   -gas | --gas | --ga | --g)
1111     # Obsolete; use --with-gas.
1112     with_gas=yes ;;
1113
1114   -help | --help | --hel | --he | -h)
1115     ac_init_help=long ;;
1116   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117     ac_init_help=recursive ;;
1118   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119     ac_init_help=short ;;
1120
1121   -host | --host | --hos | --ho)
1122     ac_prev=host_alias ;;
1123   -host=* | --host=* | --hos=* | --ho=*)
1124     host_alias=$ac_optarg ;;
1125
1126   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127     ac_prev=htmldir ;;
1128   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129   | --ht=*)
1130     htmldir=$ac_optarg ;;
1131
1132   -includedir | --includedir | --includedi | --included | --include \
1133   | --includ | --inclu | --incl | --inc)
1134     ac_prev=includedir ;;
1135   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136   | --includ=* | --inclu=* | --incl=* | --inc=*)
1137     includedir=$ac_optarg ;;
1138
1139   -infodir | --infodir | --infodi | --infod | --info | --inf)
1140     ac_prev=infodir ;;
1141   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142     infodir=$ac_optarg ;;
1143
1144   -libdir | --libdir | --libdi | --libd)
1145     ac_prev=libdir ;;
1146   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147     libdir=$ac_optarg ;;
1148
1149   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150   | --libexe | --libex | --libe)
1151     ac_prev=libexecdir ;;
1152   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153   | --libexe=* | --libex=* | --libe=*)
1154     libexecdir=$ac_optarg ;;
1155
1156   -localedir | --localedir | --localedi | --localed | --locale)
1157     ac_prev=localedir ;;
1158   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159     localedir=$ac_optarg ;;
1160
1161   -localstatedir | --localstatedir | --localstatedi | --localstated \
1162   | --localstate | --localstat | --localsta | --localst | --locals)
1163     ac_prev=localstatedir ;;
1164   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166     localstatedir=$ac_optarg ;;
1167
1168   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169     ac_prev=mandir ;;
1170   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171     mandir=$ac_optarg ;;
1172
1173   -nfp | --nfp | --nf)
1174     # Obsolete; use --without-fp.
1175     with_fp=no ;;
1176
1177   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178   | --no-cr | --no-c | -n)
1179     no_create=yes ;;
1180
1181   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183     no_recursion=yes ;;
1184
1185   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187   | --oldin | --oldi | --old | --ol | --o)
1188     ac_prev=oldincludedir ;;
1189   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192     oldincludedir=$ac_optarg ;;
1193
1194   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195     ac_prev=prefix ;;
1196   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197     prefix=$ac_optarg ;;
1198
1199   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200   | --program-pre | --program-pr | --program-p)
1201     ac_prev=program_prefix ;;
1202   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204     program_prefix=$ac_optarg ;;
1205
1206   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207   | --program-suf | --program-su | --program-s)
1208     ac_prev=program_suffix ;;
1209   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211     program_suffix=$ac_optarg ;;
1212
1213   -program-transform-name | --program-transform-name \
1214   | --program-transform-nam | --program-transform-na \
1215   | --program-transform-n | --program-transform- \
1216   | --program-transform | --program-transfor \
1217   | --program-transfo | --program-transf \
1218   | --program-trans | --program-tran \
1219   | --progr-tra | --program-tr | --program-t)
1220     ac_prev=program_transform_name ;;
1221   -program-transform-name=* | --program-transform-name=* \
1222   | --program-transform-nam=* | --program-transform-na=* \
1223   | --program-transform-n=* | --program-transform-=* \
1224   | --program-transform=* | --program-transfor=* \
1225   | --program-transfo=* | --program-transf=* \
1226   | --program-trans=* | --program-tran=* \
1227   | --progr-tra=* | --program-tr=* | --program-t=*)
1228     program_transform_name=$ac_optarg ;;
1229
1230   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231     ac_prev=pdfdir ;;
1232   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233     pdfdir=$ac_optarg ;;
1234
1235   -psdir | --psdir | --psdi | --psd | --ps)
1236     ac_prev=psdir ;;
1237   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238     psdir=$ac_optarg ;;
1239
1240   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241   | -silent | --silent | --silen | --sile | --sil)
1242     silent=yes ;;
1243
1244   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245     ac_prev=sbindir ;;
1246   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247   | --sbi=* | --sb=*)
1248     sbindir=$ac_optarg ;;
1249
1250   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252   | --sharedst | --shareds | --shared | --share | --shar \
1253   | --sha | --sh)
1254     ac_prev=sharedstatedir ;;
1255   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258   | --sha=* | --sh=*)
1259     sharedstatedir=$ac_optarg ;;
1260
1261   -site | --site | --sit)
1262     ac_prev=site ;;
1263   -site=* | --site=* | --sit=*)
1264     site=$ac_optarg ;;
1265
1266   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267     ac_prev=srcdir ;;
1268   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269     srcdir=$ac_optarg ;;
1270
1271   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272   | --syscon | --sysco | --sysc | --sys | --sy)
1273     ac_prev=sysconfdir ;;
1274   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276     sysconfdir=$ac_optarg ;;
1277
1278   -target | --target | --targe | --targ | --tar | --ta | --t)
1279     ac_prev=target_alias ;;
1280   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281     target_alias=$ac_optarg ;;
1282
1283   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284     verbose=yes ;;
1285
1286   -version | --version | --versio | --versi | --vers | -V)
1287     ac_init_version=: ;;
1288
1289   -with-* | --with-*)
1290     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293       { echo "$as_me: error: invalid package name: $ac_package" >&2
1294    { (exit 1); exit 1; }; }
1295     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1296     eval with_$ac_package=\$ac_optarg ;;
1297
1298   -without-* | --without-*)
1299     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300     # Reject names that are not valid shell variable names.
1301     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302       { echo "$as_me: error: invalid package name: $ac_package" >&2
1303    { (exit 1); exit 1; }; }
1304     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1305     eval with_$ac_package=no ;;
1306
1307   --x)
1308     # Obsolete; use --with-x.
1309     with_x=yes ;;
1310
1311   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312   | --x-incl | --x-inc | --x-in | --x-i)
1313     ac_prev=x_includes ;;
1314   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316     x_includes=$ac_optarg ;;
1317
1318   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320     ac_prev=x_libraries ;;
1321   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323     x_libraries=$ac_optarg ;;
1324
1325   -*) { echo "$as_me: error: unrecognized option: $ac_option
1326 Try \`$0 --help' for more information." >&2
1327    { (exit 1); exit 1; }; }
1328     ;;
1329
1330   *=*)
1331     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332     # Reject names that are not valid shell variable names.
1333     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335    { (exit 1); exit 1; }; }
1336     eval $ac_envvar=\$ac_optarg
1337     export $ac_envvar ;;
1338
1339   *)
1340     # FIXME: should be removed in autoconf 3.0.
1341     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345     ;;
1346
1347   esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352   { echo "$as_me: error: missing argument to $ac_option" >&2
1353    { (exit 1); exit 1; }; }
1354 fi
1355
1356 # Be sure to have absolute directory names.
1357 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358                 datadir sysconfdir sharedstatedir localstatedir includedir \
1359                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360                 libdir localedir mandir
1361 do
1362   eval ac_val=\$$ac_var
1363   case $ac_val in
1364     [\\/$]* | ?:[\\/]* )  continue;;
1365     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366   esac
1367   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368    { (exit 1); exit 1; }; }
1369 done
1370
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1377
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380   if test "x$build_alias" = x; then
1381     cross_compiling=maybe
1382     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383     If a cross compiler is detected then cross compile mode will be used." >&2
1384   elif test "x$build_alias" != "x$host_alias"; then
1385     cross_compiling=yes
1386   fi
1387 fi
1388
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392 test "$silent" = yes && exec 6>/dev/null
1393
1394
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398   { echo "$as_me: error: Working directory cannot be determined" >&2
1399    { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401   { echo "$as_me: error: pwd does not report name of working directory" >&2
1402    { (exit 1); exit 1; }; }
1403
1404
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407   ac_srcdir_defaulted=yes
1408   # Try the directory containing this script, then the parent directory.
1409   ac_confdir=`$as_dirname -- "$0" ||
1410 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411          X"$0" : 'X\(//\)[^/]' \| \
1412          X"$0" : 'X\(//\)$' \| \
1413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1414 echo X"$0" |
1415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\/\)[^/].*/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\/\)$/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\).*/{
1428             s//\1/
1429             q
1430           }
1431           s/.*/./; q'`
1432   srcdir=$ac_confdir
1433   if test ! -r "$srcdir/$ac_unique_file"; then
1434     srcdir=..
1435   fi
1436 else
1437   ac_srcdir_defaulted=no
1438 fi
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442    { (exit 1); exit 1; }; }
1443 fi
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 ac_abs_confdir=`(
1446         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1447    { (exit 1); exit 1; }; }
1448         pwd)`
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451   srcdir=.
1452 fi
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1456 case $srcdir in
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 esac
1459 for ac_var in $ac_precious_vars; do
1460   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461   eval ac_env_${ac_var}_value=\$${ac_var}
1462   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464 done
1465
1466 #
1467 # Report the --help message.
1468 #
1469 if test "$ac_init_help" = "long"; then
1470   # Omit some internal or obsolete options to make the list less imposing.
1471   # This message is too long to be a string in the A/UX 3.1 sh.
1472   cat <<_ACEOF
1473 \`configure' configures this package to adapt to many kinds of systems.
1474
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE.  See below for descriptions of some of the useful variables.
1479
1480 Defaults for the options are specified in brackets.
1481
1482 Configuration:
1483   -h, --help              display this help and exit
1484       --help=short        display options specific to this package
1485       --help=recursive    display the short help of all the included packages
1486   -V, --version           display version information and exit
1487   -q, --quiet, --silent   do not print \`checking...' messages
1488       --cache-file=FILE   cache test results in FILE [disabled]
1489   -C, --config-cache      alias for \`--cache-file=config.cache'
1490   -n, --no-create         do not create output files
1491       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1492
1493 Installation directories:
1494   --prefix=PREFIX         install architecture-independent files in PREFIX
1495                           [$ac_default_prefix]
1496   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1497                           [PREFIX]
1498
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1503
1504 For better control, use the options below.
1505
1506 Fine tuning of the installation directories:
1507   --bindir=DIR           user executables [EPREFIX/bin]
1508   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1509   --libexecdir=DIR       program executables [EPREFIX/libexec]
1510   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1511   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1512   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1513   --libdir=DIR           object code libraries [EPREFIX/lib]
1514   --includedir=DIR       C header files [PREFIX/include]
1515   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1516   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1517   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1518   --infodir=DIR          info documentation [DATAROOTDIR/info]
1519   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1520   --mandir=DIR           man documentation [DATAROOTDIR/man]
1521   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1522   --htmldir=DIR          html documentation [DOCDIR]
1523   --dvidir=DIR           dvi documentation [DOCDIR]
1524   --pdfdir=DIR           pdf documentation [DOCDIR]
1525   --psdir=DIR            ps documentation [DOCDIR]
1526 _ACEOF
1527
1528   cat <<\_ACEOF
1529
1530 Program names:
1531   --program-prefix=PREFIX            prepend PREFIX to installed program names
1532   --program-suffix=SUFFIX            append SUFFIX to installed program names
1533   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1534
1535 System types:
1536   --build=BUILD     configure for building on BUILD [guessed]
1537   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1538   --target=TARGET   configure for building compilers for TARGET [HOST]
1539 _ACEOF
1540 fi
1541
1542 if test -n "$ac_init_help"; then
1543
1544   cat <<\_ACEOF
1545
1546 Optional Features:
1547   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1548   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1549   --enable-debug          enable debugging no|yes|traditional [yes]
1550   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1551   --enable-syslog         enable syslog support [auto]
1552   --enable-proctitle      enable proctitle support [yes]
1553   --enable-ipv6           enable IPv6 support [auto]
1554   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1555
1556 SLAPD (Standalone LDAP Daemon) Options:
1557   --enable-slapd          enable building slapd [yes]
1558     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1559     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1560     --enable-cleartext    enable cleartext passwords [yes]
1561     --enable-crypt        enable crypt(3) passwords [no]
1562     --enable-lmpasswd     enable LAN Manager passwords [no]
1563     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1564     --enable-modules      enable dynamic module support [no]
1565     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1566     --enable-rlookups     enable reverse lookups of client hostnames [no]
1567     --enable-slapi        enable SLAPI support (experimental) [no]
1568     --enable-slp          enable SLPv2 support [no]
1569     --enable-wrappers     enable tcp wrapper support [no]
1570
1571 SLAPD Backend Options:
1572     --enable-backends     enable all available backends no|yes|mod
1573     --enable-bdb          enable Berkeley DB backend no|yes|mod [no]
1574     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1575     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1576     --enable-ldap         enable ldap backend no|yes|mod [no]
1577     --enable-meta         enable metadirectory backend no|yes|mod [no]
1578     --enable-monitor      enable monitor backend no|yes|mod [yes]
1579     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1580     --enable-null         enable null backend no|yes|mod [no]
1581     --enable-passwd       enable passwd backend no|yes|mod [no]
1582     --enable-perl         enable perl backend no|yes|mod [no]
1583     --enable-relay        enable relay backend no|yes|mod [yes]
1584     --enable-shell        enable shell backend no|yes|mod [no]
1585     --enable-sock         enable sock backend no|yes|mod [no]
1586     --enable-sql          enable sql backend no|yes|mod [no]
1587
1588 SLAPD Overlay Options:
1589     --enable-overlays     enable all available overlays no|yes|mod
1590     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1591     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1592     --enable-collect      Collect overlay no|yes|mod [no]
1593     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1594     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1595     --enable-deref        Dereference overlay no|yes|mod [no]
1596     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1597     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1598     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1599     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1600     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1601     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1602     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1603     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1604     --enable-seqmod       Sequential Modify overlay no|yes|mod [no]
1605     --enable-sssvlv       ServerSideSort/VLV overlay no|yes|mod [no]
1606     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1607     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1608     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1609     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1610
1611 Library Generation & Linking Options
1612   --enable-static[=PKGS]  build static libraries [default=yes]
1613   --enable-shared[=PKGS]  build shared libraries [default=yes]
1614   --enable-fast-install[=PKGS]
1615                           optimize for fast installation [default=yes]
1616   --disable-dependency-tracking  speeds up one-time build
1617   --enable-dependency-tracking   do not reject slow dependency extractors
1618   --disable-libtool-lock  avoid locking (might break parallel builds)
1619
1620 Optional Packages:
1621   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1622   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1623   --with-subdir=DIR       change default subdirectory used for installs
1624   --with-cyrus-sasl       with Cyrus SASL support [auto]
1625   --with-fetch            with fetch(3) URL support [auto]
1626   --with-threads          with threads [auto]
1627   --with-tls              with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1628   --with-yielding-select  with implicitly yielding select [auto]
1629   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1630   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1631   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1632   --with-pic              try to use only PIC/non-PIC objects [default=use
1633                           both]
1634   --with-tags[=TAGS]      include additional configurations [automatic]
1635
1636 See INSTALL file for further details.
1637
1638 Some influential environment variables:
1639   CC          C compiler command
1640   CFLAGS      C compiler flags
1641   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1642               nonstandard directory <lib dir>
1643   LIBS        libraries to pass to the linker, e.g. -l<library>
1644   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1645               you have headers in a nonstandard directory <include dir>
1646   CPP         C preprocessor
1647
1648 Use these variables to override the choices made by `configure' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1650
1651 _ACEOF
1652 ac_status=$?
1653 fi
1654
1655 if test "$ac_init_help" = "recursive"; then
1656   # If there are subdirs, report their specific --help.
1657   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1658     test -d "$ac_dir" || continue
1659     ac_builddir=.
1660
1661 case "$ac_dir" in
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *)
1664   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1665   # A ".." for each directory in $ac_dir_suffix.
1666   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1667   case $ac_top_builddir_sub in
1668   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670   esac ;;
1671 esac
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1676
1677 case $srcdir in
1678   .)  # We are building in place.
1679     ac_srcdir=.
1680     ac_top_srcdir=$ac_top_builddir_sub
1681     ac_abs_top_srcdir=$ac_pwd ;;
1682   [\\/]* | ?:[\\/]* )  # Absolute name.
1683     ac_srcdir=$srcdir$ac_dir_suffix;
1684     ac_top_srcdir=$srcdir
1685     ac_abs_top_srcdir=$srcdir ;;
1686   *) # Relative name.
1687     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688     ac_top_srcdir=$ac_top_build_prefix$srcdir
1689     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 esac
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693     cd "$ac_dir" || { ac_status=$?; continue; }
1694     # Check for guested configure.
1695     if test -f "$ac_srcdir/configure.gnu"; then
1696       echo &&
1697       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698     elif test -f "$ac_srcdir/configure"; then
1699       echo &&
1700       $SHELL "$ac_srcdir/configure" --help=recursive
1701     else
1702       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703     fi || ac_status=$?
1704     cd "$ac_pwd" || { ac_status=$?; break; }
1705   done
1706 fi
1707
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1710   cat <<\_ACEOF
1711 configure
1712 generated by GNU Autoconf 2.61
1713
1714 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1718
1719 Copyright 1998-2011 The OpenLDAP Foundation. All rights reserved.
1720 Restrictions apply, see COPYRIGHT and LICENSE files.
1721 _ACEOF
1722   exit
1723 fi
1724 cat >config.log <<_ACEOF
1725 This file contains any messages produced by compilers while
1726 running configure, to aid debugging if configure makes a mistake.
1727
1728 It was created by $as_me, which was
1729 generated by GNU Autoconf 2.61.  Invocation command line was
1730
1731   $ $0 $@
1732
1733 _ACEOF
1734 exec 5>>config.log
1735 {
1736 cat <<_ASUNAME
1737 ## --------- ##
1738 ## Platform. ##
1739 ## --------- ##
1740
1741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1746
1747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1749
1750 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1751 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1754 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1755 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1756 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1757
1758 _ASUNAME
1759
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763   IFS=$as_save_IFS
1764   test -z "$as_dir" && as_dir=.
1765   echo "PATH: $as_dir"
1766 done
1767 IFS=$as_save_IFS
1768
1769 } >&5
1770
1771 cat >&5 <<_ACEOF
1772
1773
1774 ## ----------- ##
1775 ## Core tests. ##
1776 ## ----------- ##
1777
1778 _ACEOF
1779
1780
1781 # Keep a trace of the command line.
1782 # Strip out --no-create and --no-recursion so they do not pile up.
1783 # Strip out --silent because we don't want to record it for future runs.
1784 # Also quote any args containing shell meta-characters.
1785 # Make two passes to allow for proper duplicate-argument suppression.
1786 ac_configure_args=
1787 ac_configure_args0=
1788 ac_configure_args1=
1789 ac_must_keep_next=false
1790 for ac_pass in 1 2
1791 do
1792   for ac_arg
1793   do
1794     case $ac_arg in
1795     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1796     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1797     | -silent | --silent | --silen | --sile | --sil)
1798       continue ;;
1799     *\'*)
1800       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1801     esac
1802     case $ac_pass in
1803     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1804     2)
1805       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1806       if test $ac_must_keep_next = true; then
1807         ac_must_keep_next=false # Got value, back to normal.
1808       else
1809         case $ac_arg in
1810           *=* | --config-cache | -C | -disable-* | --disable-* \
1811           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1812           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1813           | -with-* | --with-* | -without-* | --without-* | --x)
1814             case "$ac_configure_args0 " in
1815               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1816             esac
1817             ;;
1818           -* ) ac_must_keep_next=true ;;
1819         esac
1820       fi
1821       ac_configure_args="$ac_configure_args '$ac_arg'"
1822       ;;
1823     esac
1824   done
1825 done
1826 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1827 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1828
1829 # When interrupted or exit'd, cleanup temporary files, and complete
1830 # config.log.  We remove comments because anyway the quotes in there
1831 # would cause problems or look ugly.
1832 # WARNING: Use '\'' to represent an apostrophe within the trap.
1833 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1834 trap 'exit_status=$?
1835   # Save into config.log some information that might help in debugging.
1836   {
1837     echo
1838
1839     cat <<\_ASBOX
1840 ## ---------------- ##
1841 ## Cache variables. ##
1842 ## ---------------- ##
1843 _ASBOX
1844     echo
1845     # The following way of writing the cache mishandles newlines in values,
1846 (
1847   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1848     eval ac_val=\$$ac_var
1849     case $ac_val in #(
1850     *${as_nl}*)
1851       case $ac_var in #(
1852       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1854       esac
1855       case $ac_var in #(
1856       _ | IFS | as_nl) ;; #(
1857       *) $as_unset $ac_var ;;
1858       esac ;;
1859     esac
1860   done
1861   (set) 2>&1 |
1862     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1863     *${as_nl}ac_space=\ *)
1864       sed -n \
1865         "s/'\''/'\''\\\\'\'''\''/g;
1866           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1867       ;; #(
1868     *)
1869       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1870       ;;
1871     esac |
1872     sort
1873 )
1874     echo
1875
1876     cat <<\_ASBOX
1877 ## ----------------- ##
1878 ## Output variables. ##
1879 ## ----------------- ##
1880 _ASBOX
1881     echo
1882     for ac_var in $ac_subst_vars
1883     do
1884       eval ac_val=\$$ac_var
1885       case $ac_val in
1886       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1887       esac
1888       echo "$ac_var='\''$ac_val'\''"
1889     done | sort
1890     echo
1891
1892     if test -n "$ac_subst_files"; then
1893       cat <<\_ASBOX
1894 ## ------------------- ##
1895 ## File substitutions. ##
1896 ## ------------------- ##
1897 _ASBOX
1898       echo
1899       for ac_var in $ac_subst_files
1900       do
1901         eval ac_val=\$$ac_var
1902         case $ac_val in
1903         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904         esac
1905         echo "$ac_var='\''$ac_val'\''"
1906       done | sort
1907       echo
1908     fi
1909
1910     if test -s confdefs.h; then
1911       cat <<\_ASBOX
1912 ## ----------- ##
1913 ## confdefs.h. ##
1914 ## ----------- ##
1915 _ASBOX
1916       echo
1917       cat confdefs.h
1918       echo
1919     fi
1920     test "$ac_signal" != 0 &&
1921       echo "$as_me: caught signal $ac_signal"
1922     echo "$as_me: exit $exit_status"
1923   } >&5
1924   rm -f core *.core core.conftest.* &&
1925     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926     exit $exit_status
1927 ' 0
1928 for ac_signal in 1 2 13 15; do
1929   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1930 done
1931 ac_signal=0
1932
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1935
1936 # Predefined preprocessor variables.
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_NAME "$PACKAGE_NAME"
1940 _ACEOF
1941
1942
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1945 _ACEOF
1946
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1950 _ACEOF
1951
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_STRING "$PACKAGE_STRING"
1955 _ACEOF
1956
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1960 _ACEOF
1961
1962
1963 # Let the site file select an alternate cache file if it wants to.
1964 # Prefer explicitly selected file to automatically selected ones.
1965 if test -n "$CONFIG_SITE"; then
1966   set x "$CONFIG_SITE"
1967 elif test "x$prefix" != xNONE; then
1968   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1969 else
1970   set x "$ac_default_prefix/share/config.site" \
1971         "$ac_default_prefix/etc/config.site"
1972 fi
1973 shift
1974 for ac_site_file
1975 do
1976   if test -r "$ac_site_file"; then
1977     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1978 echo "$as_me: loading site script $ac_site_file" >&6;}
1979     sed 's/^/| /' "$ac_site_file" >&5
1980     . "$ac_site_file"
1981   fi
1982 done
1983
1984
1985 # Check that the precious variables saved in the cache have kept the same
1986 # value.
1987 ac_cache_corrupted=false
1988 for ac_var in $ac_precious_vars; do
1989   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1990   eval ac_new_set=\$ac_env_${ac_var}_set
1991   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1992   eval ac_new_val=\$ac_env_${ac_var}_value
1993   case $ac_old_set,$ac_new_set in
1994     set,)
1995       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1996 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1997       ac_cache_corrupted=: ;;
1998     ,set)
1999       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2000 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2001       ac_cache_corrupted=: ;;
2002     ,);;
2003     *)
2004       if test "x$ac_old_val" != "x$ac_new_val"; then
2005         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2006 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2007         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2008 echo "$as_me:   former value:  $ac_old_val" >&2;}
2009         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2010 echo "$as_me:   current value: $ac_new_val" >&2;}
2011         ac_cache_corrupted=:
2012       fi;;
2013   esac
2014   # Pass precious variables to config.status.
2015   if test "$ac_new_set" = set; then
2016     case $ac_new_val in
2017     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2018     *) ac_arg=$ac_var=$ac_new_val ;;
2019     esac
2020     case " $ac_configure_args " in
2021       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2022       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2023     esac
2024   fi
2025 done
2026 if $ac_cache_corrupted; then
2027   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2028 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2029   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2030 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2031    { (exit 1); exit 1; }; }
2032 fi
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050 ac_ext=c
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083 ac_aux_dir=
2084 for ac_dir in build "$srcdir"/build; do
2085   if test -f "$ac_dir/install-sh"; then
2086     ac_aux_dir=$ac_dir
2087     ac_install_sh="$ac_aux_dir/install-sh -c"
2088     break
2089   elif test -f "$ac_dir/install.sh"; then
2090     ac_aux_dir=$ac_dir
2091     ac_install_sh="$ac_aux_dir/install.sh -c"
2092     break
2093   elif test -f "$ac_dir/shtool"; then
2094     ac_aux_dir=$ac_dir
2095     ac_install_sh="$ac_aux_dir/shtool install -c"
2096     break
2097   fi
2098 done
2099 if test -z "$ac_aux_dir"; then
2100   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2101 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2102    { (exit 1); exit 1; }; }
2103 fi
2104
2105 # These three variables are undocumented and unsupported,
2106 # and are intended to be withdrawn in a future Autoconf release.
2107 # They can cause serious problems if a builder's source tree is in a directory
2108 # whose full name contains unusual characters.
2109 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2110 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2111 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2112
2113
2114 eval `$ac_aux_dir/version.sh`
2115 if test -z "$OL_STRING"; then
2116         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2117 echo "$as_me: error: could not determine version" >&2;}
2118    { (exit 1); exit 1; }; }
2119 fi
2120
2121 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2122         ac_cv_shtool="$ac_aux_dir/shtool"
2123 else
2124         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2125 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2126    { (exit 1); exit 1; }; }
2127 fi
2128
2129 SHTOOL="$ac_cv_shtool"
2130
2131 TB="" TN=""
2132 if test -t 1; then
2133         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2134         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2135 fi
2136
2137 OPENLDAP_CVS=""
2138 if test -d $ac_aux_dir/CVS; then
2139         OPENLDAP_CVS="(from CVS sources) "
2140 fi
2141
2142 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2143
2144 # Make sure we can run config.sub.
2145 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2146   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2147 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2148    { (exit 1); exit 1; }; }
2149
2150 { echo "$as_me:$LINENO: checking build system type" >&5
2151 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2152 if test "${ac_cv_build+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   ac_build_alias=$build_alias
2156 test "x$ac_build_alias" = x &&
2157   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2158 test "x$ac_build_alias" = x &&
2159   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2160 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2161    { (exit 1); exit 1; }; }
2162 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2163   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2164 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2165    { (exit 1); exit 1; }; }
2166
2167 fi
2168 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2169 echo "${ECHO_T}$ac_cv_build" >&6; }
2170 case $ac_cv_build in
2171 *-*-*) ;;
2172 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2173 echo "$as_me: error: invalid value of canonical build" >&2;}
2174    { (exit 1); exit 1; }; };;
2175 esac
2176 build=$ac_cv_build
2177 ac_save_IFS=$IFS; IFS='-'
2178 set x $ac_cv_build
2179 shift
2180 build_cpu=$1
2181 build_vendor=$2
2182 shift; shift
2183 # Remember, the first character of IFS is used to create $*,
2184 # except with old shells:
2185 build_os=$*
2186 IFS=$ac_save_IFS
2187 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2188
2189
2190 { echo "$as_me:$LINENO: checking host system type" >&5
2191 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2192 if test "${ac_cv_host+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195   if test "x$host_alias" = x; then
2196   ac_cv_host=$ac_cv_build
2197 else
2198   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2199     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2200 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2201    { (exit 1); exit 1; }; }
2202 fi
2203
2204 fi
2205 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2206 echo "${ECHO_T}$ac_cv_host" >&6; }
2207 case $ac_cv_host in
2208 *-*-*) ;;
2209 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2210 echo "$as_me: error: invalid value of canonical host" >&2;}
2211    { (exit 1); exit 1; }; };;
2212 esac
2213 host=$ac_cv_host
2214 ac_save_IFS=$IFS; IFS='-'
2215 set x $ac_cv_host
2216 shift
2217 host_cpu=$1
2218 host_vendor=$2
2219 shift; shift
2220 # Remember, the first character of IFS is used to create $*,
2221 # except with old shells:
2222 host_os=$*
2223 IFS=$ac_save_IFS
2224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2225
2226
2227 { echo "$as_me:$LINENO: checking target system type" >&5
2228 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2229 if test "${ac_cv_target+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   if test "x$target_alias" = x; then
2233   ac_cv_target=$ac_cv_host
2234 else
2235   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2236     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2237 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2238    { (exit 1); exit 1; }; }
2239 fi
2240
2241 fi
2242 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2243 echo "${ECHO_T}$ac_cv_target" >&6; }
2244 case $ac_cv_target in
2245 *-*-*) ;;
2246 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2247 echo "$as_me: error: invalid value of canonical target" >&2;}
2248    { (exit 1); exit 1; }; };;
2249 esac
2250 target=$ac_cv_target
2251 ac_save_IFS=$IFS; IFS='-'
2252 set x $ac_cv_target
2253 shift
2254 target_cpu=$1
2255 target_vendor=$2
2256 shift; shift
2257 # Remember, the first character of IFS is used to create $*,
2258 # except with old shells:
2259 target_os=$*
2260 IFS=$ac_save_IFS
2261 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2262
2263
2264 # The aliases save the names the user supplied, while $host etc.
2265 # will get canonicalized.
2266 test -n "$target_alias" &&
2267   test "$program_prefix$program_suffix$program_transform_name" = \
2268     NONENONEs,x,x, &&
2269   program_prefix=${target_alias}-
2270
2271 am__api_version='1.10'
2272
2273 # Find a good install program.  We prefer a C program (faster),
2274 # so one script is as good as another.  But avoid the broken or
2275 # incompatible versions:
2276 # SysV /etc/install, /usr/sbin/install
2277 # SunOS /usr/etc/install
2278 # IRIX /sbin/install
2279 # AIX /bin/install
2280 # AmigaOS /C/install, which installs bootblocks on floppy discs
2281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2284 # OS/2's system install, which has a completely different semantic
2285 # ./install, which can be erroneously created by make from ./install.sh.
2286 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2287 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2288 if test -z "$INSTALL"; then
2289 if test "${ac_cv_path_install+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2294 do
2295   IFS=$as_save_IFS
2296   test -z "$as_dir" && as_dir=.
2297   # Account for people who put trailing slashes in PATH elements.
2298 case $as_dir/ in
2299   ./ | .// | /cC/* | \
2300   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2301   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2302   /usr/ucb/* ) ;;
2303   *)
2304     # OSF1 and SCO ODT 3.0 have their own names for install.
2305     # Don't use installbsd from OSF since it installs stuff as root
2306     # by default.
2307     for ac_prog in ginstall scoinst install; do
2308       for ac_exec_ext in '' $ac_executable_extensions; do
2309         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2310           if test $ac_prog = install &&
2311             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312             # AIX install.  It has an incompatible calling convention.
2313             :
2314           elif test $ac_prog = install &&
2315             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2316             # program-specific install script used by HP pwplus--don't use.
2317             :
2318           else
2319             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2320             break 3
2321           fi
2322         fi
2323       done
2324     done
2325     ;;
2326 esac
2327 done
2328 IFS=$as_save_IFS
2329
2330
2331 fi
2332   if test "${ac_cv_path_install+set}" = set; then
2333     INSTALL=$ac_cv_path_install
2334   else
2335     # As a last resort, use the slow shell script.  Don't cache a
2336     # value for INSTALL within a source directory, because that will
2337     # break other packages using the cache if that directory is
2338     # removed, or if the value is a relative name.
2339     INSTALL=$ac_install_sh
2340   fi
2341 fi
2342 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2343 echo "${ECHO_T}$INSTALL" >&6; }
2344
2345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2346 # It thinks the first close brace ends the variable substitution.
2347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2348
2349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2350
2351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2352
2353 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2354 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2355 # Just in case
2356 sleep 1
2357 echo timestamp > conftest.file
2358 # Do `set' in a subshell so we don't clobber the current shell's
2359 # arguments.  Must try -L first in case configure is actually a
2360 # symlink; some systems play weird games with the mod time of symlinks
2361 # (eg FreeBSD returns the mod time of the symlink's containing
2362 # directory).
2363 if (
2364    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2365    if test "$*" = "X"; then
2366       # -L didn't work.
2367       set X `ls -t $srcdir/configure conftest.file`
2368    fi
2369    rm -f conftest.file
2370    if test "$*" != "X $srcdir/configure conftest.file" \
2371       && test "$*" != "X conftest.file $srcdir/configure"; then
2372
2373       # If neither matched, then we have a broken ls.  This can happen
2374       # if, for instance, CONFIG_SHELL is bash and it inherits a
2375       # broken ls alias from the environment.  This has actually
2376       # happened.  Such a system could not be considered "sane".
2377       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2378 alias in your environment" >&5
2379 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2380 alias in your environment" >&2;}
2381    { (exit 1); exit 1; }; }
2382    fi
2383
2384    test "$2" = conftest.file
2385    )
2386 then
2387    # Ok.
2388    :
2389 else
2390    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2391 Check your system clock" >&5
2392 echo "$as_me: error: newly created file is older than distributed files!
2393 Check your system clock" >&2;}
2394    { (exit 1); exit 1; }; }
2395 fi
2396 { echo "$as_me:$LINENO: result: yes" >&5
2397 echo "${ECHO_T}yes" >&6; }
2398 test "$program_prefix" != NONE &&
2399   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2400 # Use a double $ so make ignores it.
2401 test "$program_suffix" != NONE &&
2402   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2403 # Double any \ or $.  echo might interpret backslashes.
2404 # By default was `s,x,x', remove it if useless.
2405 cat <<\_ACEOF >conftest.sed
2406 s/[\\$]/&&/g;s/;s,x,x,$//
2407 _ACEOF
2408 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2409 rm -f conftest.sed
2410
2411 # expand $ac_aux_dir to an absolute path
2412 am_aux_dir=`cd $ac_aux_dir && pwd`
2413
2414 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2415 # Use eval to expand $SHELL
2416 if eval "$MISSING --run true"; then
2417   am_missing_run="$MISSING --run "
2418 else
2419   am_missing_run=
2420   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2421 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2422 fi
2423
2424 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2425 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2426 if test -z "$MKDIR_P"; then
2427   if test "${ac_cv_path_mkdir+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2432 do
2433   IFS=$as_save_IFS
2434   test -z "$as_dir" && as_dir=.
2435   for ac_prog in mkdir gmkdir; do
2436          for ac_exec_ext in '' $ac_executable_extensions; do
2437            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2438            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2439              'mkdir (GNU coreutils) '* | \
2440              'mkdir (coreutils) '* | \
2441              'mkdir (fileutils) '4.1*)
2442                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2443                break 3;;
2444            esac
2445          done
2446        done
2447 done
2448 IFS=$as_save_IFS
2449
2450 fi
2451
2452   if test "${ac_cv_path_mkdir+set}" = set; then
2453     MKDIR_P="$ac_cv_path_mkdir -p"
2454   else
2455     # As a last resort, use the slow shell script.  Don't cache a
2456     # value for MKDIR_P within a source directory, because that will
2457     # break other packages using the cache if that directory is
2458     # removed, or if the value is a relative name.
2459     test -d ./--version && rmdir ./--version
2460     MKDIR_P="$ac_install_sh -d"
2461   fi
2462 fi
2463 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2464 echo "${ECHO_T}$MKDIR_P" >&6; }
2465
2466 mkdir_p="$MKDIR_P"
2467 case $mkdir_p in
2468   [\\/$]* | ?:[\\/]*) ;;
2469   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2470 esac
2471
2472 for ac_prog in gawk mawk nawk awk
2473 do
2474   # Extract the first word of "$ac_prog", so it can be a program name with args.
2475 set dummy $ac_prog; ac_word=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_AWK+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   if test -n "$AWK"; then
2482   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487   IFS=$as_save_IFS
2488   test -z "$as_dir" && as_dir=.
2489   for ac_exec_ext in '' $ac_executable_extensions; do
2490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491     ac_cv_prog_AWK="$ac_prog"
2492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493     break 2
2494   fi
2495 done
2496 done
2497 IFS=$as_save_IFS
2498
2499 fi
2500 fi
2501 AWK=$ac_cv_prog_AWK
2502 if test -n "$AWK"; then
2503   { echo "$as_me:$LINENO: result: $AWK" >&5
2504 echo "${ECHO_T}$AWK" >&6; }
2505 else
2506   { echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6; }
2508 fi
2509
2510
2511   test -n "$AWK" && break
2512 done
2513
2514 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2515 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2516 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2517 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2518   echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520   cat >conftest.make <<\_ACEOF
2521 SHELL = /bin/sh
2522 all:
2523         @echo '@@@%%%=$(MAKE)=@@@%%%'
2524 _ACEOF
2525 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2526 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2527   *@@@%%%=?*=@@@%%%*)
2528     eval ac_cv_prog_make_${ac_make}_set=yes;;
2529   *)
2530     eval ac_cv_prog_make_${ac_make}_set=no;;
2531 esac
2532 rm -f conftest.make
2533 fi
2534 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2535   { echo "$as_me:$LINENO: result: yes" >&5
2536 echo "${ECHO_T}yes" >&6; }
2537   SET_MAKE=
2538 else
2539   { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2541   SET_MAKE="MAKE=${MAKE-make}"
2542 fi
2543
2544 rm -rf .tst 2>/dev/null
2545 mkdir .tst 2>/dev/null
2546 if test -d .tst; then
2547   am__leading_dot=.
2548 else
2549   am__leading_dot=_
2550 fi
2551 rmdir .tst 2>/dev/null
2552
2553 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2554   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2555   # is not polluted with repeated "-I."
2556   am__isrc=' -I$(srcdir)'
2557   # test to see if srcdir already configured
2558   if test -f $srcdir/config.status; then
2559     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2560 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2561    { (exit 1); exit 1; }; }
2562   fi
2563 fi
2564
2565 # test whether we have cygpath
2566 if test -z "$CYGPATH_W"; then
2567   if (cygpath --version) >/dev/null 2>/dev/null; then
2568     CYGPATH_W='cygpath -w'
2569   else
2570     CYGPATH_W=echo
2571   fi
2572 fi
2573
2574
2575 # Define the identity of the package.
2576  PACKAGE=$OL_PACKAGE
2577  VERSION=$OL_VERSION
2578
2579
2580 # Some tools Automake needs.
2581
2582 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2583
2584
2585 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2586
2587
2588 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2589
2590
2591 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2592
2593
2594 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2595
2596 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2597
2598 # Installed binaries are usually stripped using `strip' when the user
2599 # run `make install-strip'.  However `strip' might not be the right
2600 # tool to use in cross-compilation environments, therefore Automake
2601 # will honor the `STRIP' environment variable to overrule this program.
2602 if test "$cross_compiling" != no; then
2603   if test -n "$ac_tool_prefix"; then
2604   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2605 set dummy ${ac_tool_prefix}strip; ac_word=$2
2606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2608 if test "${ac_cv_prog_STRIP+set}" = set; then
2609   echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611   if test -n "$STRIP"; then
2612   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617   IFS=$as_save_IFS
2618   test -z "$as_dir" && as_dir=.
2619   for ac_exec_ext in '' $ac_executable_extensions; do
2620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623     break 2
2624   fi
2625 done
2626 done
2627 IFS=$as_save_IFS
2628
2629 fi
2630 fi
2631 STRIP=$ac_cv_prog_STRIP
2632 if test -n "$STRIP"; then
2633   { echo "$as_me:$LINENO: result: $STRIP" >&5
2634 echo "${ECHO_T}$STRIP" >&6; }
2635 else
2636   { echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6; }
2638 fi
2639
2640
2641 fi
2642 if test -z "$ac_cv_prog_STRIP"; then
2643   ac_ct_STRIP=$STRIP
2644   # Extract the first word of "strip", so it can be a program name with args.
2645 set dummy strip; ac_word=$2
2646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2648 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   if test -n "$ac_ct_STRIP"; then
2652   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659   for ac_exec_ext in '' $ac_executable_extensions; do
2660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661     ac_cv_prog_ac_ct_STRIP="strip"
2662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666 done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2672 if test -n "$ac_ct_STRIP"; then
2673   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2674 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2675 else
2676   { echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6; }
2678 fi
2679
2680   if test "x$ac_ct_STRIP" = x; then
2681     STRIP=":"
2682   else
2683     case $cross_compiling:$ac_tool_warned in
2684 yes:)
2685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet.  If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&5
2688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2689 whose name does not start with the host triplet.  If you think this
2690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2691 ac_tool_warned=yes ;;
2692 esac
2693     STRIP=$ac_ct_STRIP
2694   fi
2695 else
2696   STRIP="$ac_cv_prog_STRIP"
2697 fi
2698
2699 fi
2700 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2701
2702 # We need awk for the "check" target.  The system "awk" is bad on
2703 # some platforms.
2704 # Always define AMTAR for backward compatibility.
2705
2706 AMTAR=${AMTAR-"${am_missing_run}tar"}
2707
2708 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2709
2710
2711
2712
2713
2714 cat >>confdefs.h <<_ACEOF
2715 #define OPENLDAP_PACKAGE "$PACKAGE"
2716 _ACEOF
2717
2718
2719 cat >>confdefs.h <<_ACEOF
2720 #define OPENLDAP_VERSION "$VERSION"
2721 _ACEOF
2722
2723
2724
2725 cat >>confdefs.h <<_ACEOF
2726 #define LDAP_VENDOR_VERSION $OL_API_INC
2727 _ACEOF
2728
2729
2730 cat >>confdefs.h <<_ACEOF
2731 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2732 _ACEOF
2733
2734
2735 cat >>confdefs.h <<_ACEOF
2736 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2737 _ACEOF
2738
2739
2740 cat >>confdefs.h <<_ACEOF
2741 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2742 _ACEOF
2743
2744
2745 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2746
2747 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2748
2749 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2750
2751
2752
2753
2754
2755
2756
2757 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2758
2759 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2760
2761 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2762
2763
2764 { echo "$as_me:$LINENO: checking configure arguments" >&5
2765 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2766
2767
2768 top_builddir=`pwd`
2769
2770 ldap_subdir="/openldap"
2771
2772
2773 # Check whether --with-subdir was given.
2774 if test "${with_subdir+set}" = set; then
2775   withval=$with_subdir; case "$withval" in
2776         no) ldap_subdir=""
2777                 ;;
2778         yes)
2779                 ;;
2780         /*|\\*)
2781                 ldap_subdir="$withval"
2782                 ;;
2783         *)
2784                 ldap_subdir="/$withval"
2785                 ;;
2786 esac
2787
2788 fi
2789
2790
2791 # OpenLDAP --enable-debug
2792
2793         # Check whether --enable-debug was given.
2794 if test "${enable_debug+set}" = set; then
2795   enableval=$enable_debug;
2796         ol_arg=invalid
2797         for ol_val in no yes traditional ; do
2798                 if test "$enableval" = "$ol_val" ; then
2799                         ol_arg="$ol_val"
2800                 fi
2801         done
2802         if test "$ol_arg" = "invalid" ; then
2803                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2804 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2805    { (exit 1); exit 1; }; }
2806         fi
2807         ol_enable_debug="$ol_arg"
2808
2809 else
2810         ol_enable_debug=yes
2811 fi
2812
2813 # end --enable-debug
2814 # OpenLDAP --enable-dynamic
2815
2816         # Check whether --enable-dynamic was given.
2817 if test "${enable_dynamic+set}" = set; then
2818   enableval=$enable_dynamic;
2819         ol_arg=invalid
2820         for ol_val in auto yes no ; do
2821                 if test "$enableval" = "$ol_val" ; then
2822                         ol_arg="$ol_val"
2823                 fi
2824         done
2825         if test "$ol_arg" = "invalid" ; then
2826                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2827 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2828    { (exit 1); exit 1; }; }
2829         fi
2830         ol_enable_dynamic="$ol_arg"
2831
2832 else
2833         ol_enable_dynamic=no
2834 fi
2835
2836 # end --enable-dynamic
2837 # OpenLDAP --enable-syslog
2838
2839         # Check whether --enable-syslog was given.
2840 if test "${enable_syslog+set}" = set; then
2841   enableval=$enable_syslog;
2842         ol_arg=invalid
2843         for ol_val in auto yes no ; do
2844                 if test "$enableval" = "$ol_val" ; then
2845                         ol_arg="$ol_val"
2846                 fi
2847         done
2848         if test "$ol_arg" = "invalid" ; then
2849                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2850 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2851    { (exit 1); exit 1; }; }
2852         fi
2853         ol_enable_syslog="$ol_arg"
2854
2855 else
2856         ol_enable_syslog=auto
2857 fi
2858
2859 # end --enable-syslog
2860 # OpenLDAP --enable-proctitle
2861
2862         # Check whether --enable-proctitle was given.
2863 if test "${enable_proctitle+set}" = set; then
2864   enableval=$enable_proctitle;
2865         ol_arg=invalid
2866         for ol_val in auto yes no ; do
2867                 if test "$enableval" = "$ol_val" ; then
2868                         ol_arg="$ol_val"
2869                 fi
2870         done
2871         if test "$ol_arg" = "invalid" ; then
2872                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2873 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2874    { (exit 1); exit 1; }; }
2875         fi
2876         ol_enable_proctitle="$ol_arg"
2877
2878 else
2879         ol_enable_proctitle=yes
2880 fi
2881
2882 # end --enable-proctitle
2883 ol_enable_referrals=${ol_enable_referrals-no}
2884 # OpenLDAP --enable-ipv6
2885
2886         # Check whether --enable-ipv6 was given.
2887 if test "${enable_ipv6+set}" = set; then
2888   enableval=$enable_ipv6;
2889         ol_arg=invalid
2890         for ol_val in auto yes no ; do
2891                 if test "$enableval" = "$ol_val" ; then
2892                         ol_arg="$ol_val"
2893                 fi
2894         done
2895         if test "$ol_arg" = "invalid" ; then
2896                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2897 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2898    { (exit 1); exit 1; }; }
2899         fi
2900         ol_enable_ipv6="$ol_arg"
2901
2902 else
2903         ol_enable_ipv6=auto
2904 fi
2905
2906 # end --enable-ipv6
2907 # OpenLDAP --enable-local
2908
2909         # Check whether --enable-local was given.
2910 if test "${enable_local+set}" = set; then
2911   enableval=$enable_local;
2912         ol_arg=invalid
2913         for ol_val in auto yes no ; do
2914                 if test "$enableval" = "$ol_val" ; then
2915                         ol_arg="$ol_val"
2916                 fi
2917         done
2918         if test "$ol_arg" = "invalid" ; then
2919                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2920 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2921    { (exit 1); exit 1; }; }
2922         fi
2923         ol_enable_local="$ol_arg"
2924
2925 else
2926         ol_enable_local=auto
2927 fi
2928
2929 # end --enable-local
2930
2931 # OpenLDAP --with-cyrus_sasl
2932
2933 # Check whether --with-cyrus_sasl was given.
2934 if test "${with_cyrus_sasl+set}" = set; then
2935   withval=$with_cyrus_sasl;
2936         ol_arg=invalid
2937         for ol_val in auto yes no  ; do
2938                 if test "$withval" = "$ol_val" ; then
2939                         ol_arg="$ol_val"
2940                 fi
2941         done
2942         if test "$ol_arg" = "invalid" ; then
2943                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2944 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2945    { (exit 1); exit 1; }; }
2946         fi
2947         ol_with_cyrus_sasl="$ol_arg"
2948
2949 else
2950         ol_with_cyrus_sasl="auto"
2951 fi
2952 # end --with-cyrus_sasl
2953
2954 # OpenLDAP --with-fetch
2955
2956 # Check whether --with-fetch was given.
2957 if test "${with_fetch+set}" = set; then
2958   withval=$with_fetch;
2959         ol_arg=invalid
2960         for ol_val in auto yes no  ; do
2961                 if test "$withval" = "$ol_val" ; then
2962                         ol_arg="$ol_val"
2963                 fi
2964         done
2965         if test "$ol_arg" = "invalid" ; then
2966                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2967 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2968    { (exit 1); exit 1; }; }
2969         fi
2970         ol_with_fetch="$ol_arg"
2971
2972 else
2973         ol_with_fetch="auto"
2974 fi
2975 # end --with-fetch
2976
2977 # OpenLDAP --with-threads
2978
2979 # Check whether --with-threads was given.
2980 if test "${with_threads+set}" = set; then
2981   withval=$with_threads;
2982         ol_arg=invalid
2983         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2984                 if test "$withval" = "$ol_val" ; then
2985                         ol_arg="$ol_val"
2986                 fi
2987         done
2988         if test "$ol_arg" = "invalid" ; then
2989                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2990 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2991    { (exit 1); exit 1; }; }
2992         fi
2993         ol_with_threads="$ol_arg"
2994
2995 else
2996         ol_with_threads="auto"
2997 fi
2998 # end --with-threads
2999
3000 # OpenLDAP --with-tls
3001
3002 # Check whether --with-tls was given.
3003 if test "${with_tls+set}" = set; then
3004   withval=$with_tls;
3005         ol_arg=invalid
3006         for ol_val in auto openssl gnutls moznss yes no  ; do
3007                 if test "$withval" = "$ol_val" ; then
3008                         ol_arg="$ol_val"
3009                 fi
3010         done
3011         if test "$ol_arg" = "invalid" ; then
3012                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
3013 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
3014    { (exit 1); exit 1; }; }
3015         fi
3016         ol_with_tls="$ol_arg"
3017
3018 else
3019         ol_with_tls="auto"
3020 fi
3021 # end --with-tls
3022
3023 # OpenLDAP --with-yielding_select
3024
3025 # Check whether --with-yielding_select was given.
3026 if test "${with_yielding_select+set}" = set; then
3027   withval=$with_yielding_select;
3028         ol_arg=invalid
3029         for ol_val in auto yes no manual  ; do
3030                 if test "$withval" = "$ol_val" ; then
3031                         ol_arg="$ol_val"
3032                 fi
3033         done
3034         if test "$ol_arg" = "invalid" ; then
3035                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3036 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3037    { (exit 1); exit 1; }; }
3038         fi
3039         ol_with_yielding_select="$ol_arg"
3040
3041 else
3042         ol_with_yielding_select="auto"
3043 fi
3044 # end --with-yielding_select
3045
3046 # OpenLDAP --with-mp
3047
3048 # Check whether --with-mp was given.
3049 if test "${with_mp+set}" = set; then
3050   withval=$with_mp;
3051         ol_arg=invalid
3052         for ol_val in auto longlong long bignum gmp yes no ; do
3053                 if test "$withval" = "$ol_val" ; then
3054                         ol_arg="$ol_val"
3055                 fi
3056         done
3057         if test "$ol_arg" = "invalid" ; then
3058                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3059 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3060    { (exit 1); exit 1; }; }
3061         fi
3062         ol_with_mp="$ol_arg"
3063
3064 else
3065         ol_with_mp="auto"
3066 fi
3067 # end --with-mp
3068
3069 # OpenLDAP --with-odbc
3070
3071 # Check whether --with-odbc was given.
3072 if test "${with_odbc+set}" = set; then
3073   withval=$with_odbc;
3074         ol_arg=invalid
3075         for ol_val in auto iodbc unixodbc odbc32  ; do
3076                 if test "$withval" = "$ol_val" ; then
3077                         ol_arg="$ol_val"
3078                 fi
3079         done
3080         if test "$ol_arg" = "invalid" ; then
3081                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3082 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3083    { (exit 1); exit 1; }; }
3084         fi
3085         ol_with_odbc="$ol_arg"
3086
3087 else
3088         ol_with_odbc="auto"
3089 fi
3090 # end --with-odbc
3091
3092
3093
3094 # Check whether --enable-xxslapdoptions was given.
3095 if test "${enable_xxslapdoptions+set}" = set; then
3096   enableval=$enable_xxslapdoptions;
3097 fi
3098
3099 # OpenLDAP --enable-slapd
3100
3101         # Check whether --enable-slapd was given.
3102 if test "${enable_slapd+set}" = set; then
3103   enableval=$enable_slapd;
3104         ol_arg=invalid
3105         for ol_val in auto yes no ; do
3106                 if test "$enableval" = "$ol_val" ; then
3107                         ol_arg="$ol_val"
3108                 fi
3109         done
3110         if test "$ol_arg" = "invalid" ; then
3111                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3112 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3113    { (exit 1); exit 1; }; }
3114         fi
3115         ol_enable_slapd="$ol_arg"
3116
3117 else
3118         ol_enable_slapd=yes
3119 fi
3120
3121 # end --enable-slapd
3122 # OpenLDAP --enable-dynacl
3123
3124         # Check whether --enable-dynacl was given.
3125 if test "${enable_dynacl+set}" = set; then
3126   enableval=$enable_dynacl;
3127         ol_arg=invalid
3128         for ol_val in auto yes no ; do
3129                 if test "$enableval" = "$ol_val" ; then
3130                         ol_arg="$ol_val"
3131                 fi
3132         done
3133         if test "$ol_arg" = "invalid" ; then
3134                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3136    { (exit 1); exit 1; }; }
3137         fi
3138         ol_enable_dynacl="$ol_arg"
3139
3140 else
3141         ol_enable_dynacl=no
3142 fi
3143
3144 # end --enable-dynacl
3145 # OpenLDAP --enable-aci
3146
3147         # Check whether --enable-aci was given.
3148 if test "${enable_aci+set}" = set; then
3149   enableval=$enable_aci;
3150         ol_arg=invalid
3151         for ol_val in no yes mod ; do
3152                 if test "$enableval" = "$ol_val" ; then
3153                         ol_arg="$ol_val"
3154                 fi
3155         done
3156         if test "$ol_arg" = "invalid" ; then
3157                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3159    { (exit 1); exit 1; }; }
3160         fi
3161         ol_enable_aci="$ol_arg"
3162
3163 else
3164         ol_enable_aci=no
3165 fi
3166
3167 # end --enable-aci
3168 # OpenLDAP --enable-cleartext
3169
3170         # Check whether --enable-cleartext was given.
3171 if test "${enable_cleartext+set}" = set; then
3172   enableval=$enable_cleartext;
3173         ol_arg=invalid
3174         for ol_val in auto yes no ; do
3175                 if test "$enableval" = "$ol_val" ; then
3176                         ol_arg="$ol_val"
3177                 fi
3178         done
3179         if test "$ol_arg" = "invalid" ; then
3180                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3181 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3182    { (exit 1); exit 1; }; }
3183         fi
3184         ol_enable_cleartext="$ol_arg"
3185
3186 else
3187         ol_enable_cleartext=yes
3188 fi
3189
3190 # end --enable-cleartext
3191 # OpenLDAP --enable-crypt
3192
3193         # Check whether --enable-crypt was given.
3194 if test "${enable_crypt+set}" = set; then
3195   enableval=$enable_crypt;
3196         ol_arg=invalid
3197         for ol_val in auto yes no ; do
3198                 if test "$enableval" = "$ol_val" ; then
3199                         ol_arg="$ol_val"
3200                 fi
3201         done
3202         if test "$ol_arg" = "invalid" ; then
3203                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3204 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3205    { (exit 1); exit 1; }; }
3206         fi
3207         ol_enable_crypt="$ol_arg"
3208
3209 else
3210         ol_enable_crypt=no
3211 fi
3212
3213 # end --enable-crypt
3214 # OpenLDAP --enable-lmpasswd
3215
3216         # Check whether --enable-lmpasswd was given.
3217 if test "${enable_lmpasswd+set}" = set; then
3218   enableval=$enable_lmpasswd;
3219         ol_arg=invalid
3220         for ol_val in auto yes no ; do
3221                 if test "$enableval" = "$ol_val" ; then
3222                         ol_arg="$ol_val"
3223                 fi
3224         done
3225         if test "$ol_arg" = "invalid" ; then
3226                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3227 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3228    { (exit 1); exit 1; }; }
3229         fi
3230         ol_enable_lmpasswd="$ol_arg"
3231
3232 else
3233         ol_enable_lmpasswd=no
3234 fi
3235
3236 # end --enable-lmpasswd
3237 # OpenLDAP --enable-spasswd
3238
3239         # Check whether --enable-spasswd was given.
3240 if test "${enable_spasswd+set}" = set; then
3241   enableval=$enable_spasswd;
3242         ol_arg=invalid
3243         for ol_val in auto yes no ; do
3244                 if test "$enableval" = "$ol_val" ; then
3245                         ol_arg="$ol_val"
3246                 fi
3247         done
3248         if test "$ol_arg" = "invalid" ; then
3249                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3251    { (exit 1); exit 1; }; }
3252         fi
3253         ol_enable_spasswd="$ol_arg"
3254
3255 else
3256         ol_enable_spasswd=no
3257 fi
3258
3259 # end --enable-spasswd
3260 # OpenLDAP --enable-modules
3261
3262         # Check whether --enable-modules was given.
3263 if test "${enable_modules+set}" = set; then
3264   enableval=$enable_modules;
3265         ol_arg=invalid
3266         for ol_val in auto yes no ; do
3267                 if test "$enableval" = "$ol_val" ; then
3268                         ol_arg="$ol_val"
3269                 fi
3270         done
3271         if test "$ol_arg" = "invalid" ; then
3272                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3273 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3274    { (exit 1); exit 1; }; }
3275         fi
3276         ol_enable_modules="$ol_arg"
3277
3278 else
3279         ol_enable_modules=no
3280 fi
3281
3282 # end --enable-modules
3283 # OpenLDAP --enable-rewrite
3284
3285         # Check whether --enable-rewrite was given.
3286 if test "${enable_rewrite+set}" = set; then
3287   enableval=$enable_rewrite;
3288         ol_arg=invalid
3289         for ol_val in auto yes no ; do
3290                 if test "$enableval" = "$ol_val" ; then
3291                         ol_arg="$ol_val"
3292                 fi
3293         done
3294         if test "$ol_arg" = "invalid" ; then
3295                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3297    { (exit 1); exit 1; }; }
3298         fi
3299         ol_enable_rewrite="$ol_arg"
3300
3301 else
3302         ol_enable_rewrite=auto
3303 fi
3304
3305 # end --enable-rewrite
3306 # OpenLDAP --enable-rlookups
3307
3308         # Check whether --enable-rlookups was given.
3309 if test "${enable_rlookups+set}" = set; then
3310   enableval=$enable_rlookups;
3311         ol_arg=invalid
3312         for ol_val in auto yes no ; do
3313                 if test "$enableval" = "$ol_val" ; then
3314                         ol_arg="$ol_val"
3315                 fi
3316         done
3317         if test "$ol_arg" = "invalid" ; then
3318                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3320    { (exit 1); exit 1; }; }
3321         fi
3322         ol_enable_rlookups="$ol_arg"
3323
3324 else
3325         ol_enable_rlookups=no
3326 fi
3327
3328 # end --enable-rlookups
3329 # OpenLDAP --enable-slapi
3330
3331         # Check whether --enable-slapi was given.
3332 if test "${enable_slapi+set}" = set; then
3333   enableval=$enable_slapi;
3334         ol_arg=invalid
3335         for ol_val in auto yes no ; do
3336                 if test "$enableval" = "$ol_val" ; then
3337                         ol_arg="$ol_val"
3338                 fi
3339         done
3340         if test "$ol_arg" = "invalid" ; then
3341                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3342 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3343    { (exit 1); exit 1; }; }
3344         fi
3345         ol_enable_slapi="$ol_arg"
3346
3347 else
3348         ol_enable_slapi=no
3349 fi
3350
3351 # end --enable-slapi
3352 # OpenLDAP --enable-slp
3353
3354         # Check whether --enable-slp was given.
3355 if test "${enable_slp+set}" = set; then
3356   enableval=$enable_slp;
3357         ol_arg=invalid
3358         for ol_val in auto yes no ; do
3359                 if test "$enableval" = "$ol_val" ; then
3360                         ol_arg="$ol_val"
3361                 fi
3362         done
3363         if test "$ol_arg" = "invalid" ; then
3364                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3365 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3366    { (exit 1); exit 1; }; }
3367         fi
3368         ol_enable_slp="$ol_arg"
3369
3370 else
3371         ol_enable_slp=no
3372 fi
3373
3374 # end --enable-slp
3375 # OpenLDAP --enable-wrappers
3376
3377         # Check whether --enable-wrappers was given.
3378 if test "${enable_wrappers+set}" = set; then
3379   enableval=$enable_wrappers;
3380         ol_arg=invalid
3381         for ol_val in auto yes no ; do
3382                 if test "$enableval" = "$ol_val" ; then
3383                         ol_arg="$ol_val"
3384                 fi
3385         done
3386         if test "$ol_arg" = "invalid" ; then
3387                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3388 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3389    { (exit 1); exit 1; }; }
3390         fi
3391         ol_enable_wrappers="$ol_arg"
3392
3393 else
3394         ol_enable_wrappers=no
3395 fi
3396
3397 # end --enable-wrappers
3398
3399 Backends="bdb \
3400         dnssrv \
3401         hdb \
3402         ldap \
3403         meta \
3404         monitor \
3405         ndb \
3406         null \
3407         passwd \
3408         perl \
3409         relay \
3410         shell \
3411         sock \
3412         sql"
3413
3414 # Check whether --enable-xxslapbackends was given.
3415 if test "${enable_xxslapbackends+set}" = set; then
3416   enableval=$enable_xxslapbackends;
3417 fi
3418
3419
3420 # OpenLDAP --enable-backends
3421
3422         # Check whether --enable-backends was given.
3423 if test "${enable_backends+set}" = set; then
3424   enableval=$enable_backends;
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-backends" >&5
3433 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3434    { (exit 1); exit 1; }; }
3435         fi
3436         ol_enable_backends="$ol_arg"
3437
3438 fi
3439
3440 # end --enable-backends
3441 # OpenLDAP --enable-bdb
3442
3443         # Check whether --enable-bdb was given.
3444 if test "${enable_bdb+set}" = set; then
3445   enableval=$enable_bdb;
3446         ol_arg=invalid
3447         for ol_val in no yes mod ; do
3448                 if test "$enableval" = "$ol_val" ; then
3449                         ol_arg="$ol_val"
3450                 fi
3451         done
3452         if test "$ol_arg" = "invalid" ; then
3453                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3454 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3455    { (exit 1); exit 1; }; }
3456         fi
3457         ol_enable_bdb="$ol_arg"
3458
3459 else
3460         ol_enable_bdb=${ol_enable_backends:-no}
3461 fi
3462
3463 # end --enable-bdb
3464 # OpenLDAP --enable-dnssrv
3465
3466         # Check whether --enable-dnssrv was given.
3467 if test "${enable_dnssrv+set}" = set; then
3468   enableval=$enable_dnssrv;
3469         ol_arg=invalid
3470         for ol_val in no yes mod ; do
3471                 if test "$enableval" = "$ol_val" ; then
3472                         ol_arg="$ol_val"
3473                 fi
3474         done
3475         if test "$ol_arg" = "invalid" ; then
3476                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3477 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3478    { (exit 1); exit 1; }; }
3479         fi
3480         ol_enable_dnssrv="$ol_arg"
3481
3482 else
3483         ol_enable_dnssrv=${ol_enable_backends:-no}
3484 fi
3485
3486 # end --enable-dnssrv
3487 # OpenLDAP --enable-hdb
3488
3489         # Check whether --enable-hdb was given.
3490 if test "${enable_hdb+set}" = set; then
3491   enableval=$enable_hdb;
3492         ol_arg=invalid
3493         for ol_val in no yes mod ; do
3494                 if test "$enableval" = "$ol_val" ; then
3495                         ol_arg="$ol_val"
3496                 fi
3497         done
3498         if test "$ol_arg" = "invalid" ; then
3499                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3500 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3501    { (exit 1); exit 1; }; }
3502         fi
3503         ol_enable_hdb="$ol_arg"
3504
3505 else
3506         ol_enable_hdb=${ol_enable_backends:-yes}
3507 fi
3508
3509 # end --enable-hdb
3510 # OpenLDAP --enable-ldap
3511
3512         # Check whether --enable-ldap was given.
3513 if test "${enable_ldap+set}" = set; then
3514   enableval=$enable_ldap;
3515         ol_arg=invalid
3516         for ol_val in no yes mod ; do
3517                 if test "$enableval" = "$ol_val" ; then
3518                         ol_arg="$ol_val"
3519                 fi
3520         done
3521         if test "$ol_arg" = "invalid" ; then
3522                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3523 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3524    { (exit 1); exit 1; }; }
3525         fi
3526         ol_enable_ldap="$ol_arg"
3527
3528 else
3529         ol_enable_ldap=${ol_enable_backends:-no}
3530 fi
3531
3532 # end --enable-ldap
3533 # OpenLDAP --enable-meta
3534
3535         # Check whether --enable-meta was given.
3536 if test "${enable_meta+set}" = set; then
3537   enableval=$enable_meta;
3538         ol_arg=invalid
3539         for ol_val in no yes mod ; do
3540                 if test "$enableval" = "$ol_val" ; then
3541                         ol_arg="$ol_val"
3542                 fi
3543         done
3544         if test "$ol_arg" = "invalid" ; then
3545                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3546 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3547    { (exit 1); exit 1; }; }
3548         fi
3549         ol_enable_meta="$ol_arg"
3550
3551 else
3552         ol_enable_meta=${ol_enable_backends:-no}
3553 fi
3554
3555 # end --enable-meta
3556 # OpenLDAP --enable-monitor
3557
3558         # Check whether --enable-monitor was given.
3559 if test "${enable_monitor+set}" = set; then
3560   enableval=$enable_monitor;
3561         ol_arg=invalid
3562         for ol_val in no yes mod ; do
3563                 if test "$enableval" = "$ol_val" ; then
3564                         ol_arg="$ol_val"
3565                 fi
3566         done
3567         if test "$ol_arg" = "invalid" ; then
3568                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3569 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3570    { (exit 1); exit 1; }; }
3571         fi
3572         ol_enable_monitor="$ol_arg"
3573
3574 else
3575         ol_enable_monitor=${ol_enable_backends:-yes}
3576 fi
3577
3578 # end --enable-monitor
3579 # OpenLDAP --enable-ndb
3580
3581         # Check whether --enable-ndb was given.
3582 if test "${enable_ndb+set}" = set; then
3583   enableval=$enable_ndb;
3584         ol_arg=invalid
3585         for ol_val in no yes mod ; do
3586                 if test "$enableval" = "$ol_val" ; then
3587                         ol_arg="$ol_val"
3588                 fi
3589         done
3590         if test "$ol_arg" = "invalid" ; then
3591                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3593    { (exit 1); exit 1; }; }
3594         fi
3595         ol_enable_ndb="$ol_arg"
3596
3597 else
3598         ol_enable_ndb=${ol_enable_backends:-no}
3599 fi
3600
3601 # end --enable-ndb
3602 # OpenLDAP --enable-null
3603
3604         # Check whether --enable-null was given.
3605 if test "${enable_null+set}" = set; then
3606   enableval=$enable_null;
3607         ol_arg=invalid
3608         for ol_val in no yes mod ; do
3609                 if test "$enableval" = "$ol_val" ; then
3610                         ol_arg="$ol_val"
3611                 fi
3612         done
3613         if test "$ol_arg" = "invalid" ; then
3614                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3615 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3616    { (exit 1); exit 1; }; }
3617         fi
3618         ol_enable_null="$ol_arg"
3619
3620 else
3621         ol_enable_null=${ol_enable_backends:-no}
3622 fi
3623
3624 # end --enable-null
3625 # OpenLDAP --enable-passwd
3626
3627         # Check whether --enable-passwd was given.
3628 if test "${enable_passwd+set}" = set; then
3629   enableval=$enable_passwd;
3630         ol_arg=invalid
3631         for ol_val in no yes mod ; do
3632                 if test "$enableval" = "$ol_val" ; then
3633                         ol_arg="$ol_val"
3634                 fi
3635         done
3636         if test "$ol_arg" = "invalid" ; then
3637                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3638 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3639    { (exit 1); exit 1; }; }
3640         fi
3641         ol_enable_passwd="$ol_arg"
3642
3643 else
3644         ol_enable_passwd=${ol_enable_backends:-no}
3645 fi
3646
3647 # end --enable-passwd
3648 # OpenLDAP --enable-perl
3649
3650         # Check whether --enable-perl was given.
3651 if test "${enable_perl+set}" = set; then
3652   enableval=$enable_perl;
3653         ol_arg=invalid
3654         for ol_val in no yes mod ; do
3655                 if test "$enableval" = "$ol_val" ; then
3656                         ol_arg="$ol_val"
3657                 fi
3658         done
3659         if test "$ol_arg" = "invalid" ; then
3660                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3661 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3662    { (exit 1); exit 1; }; }
3663         fi
3664         ol_enable_perl="$ol_arg"
3665
3666 else
3667         ol_enable_perl=${ol_enable_backends:-no}
3668 fi
3669
3670 # end --enable-perl
3671 # OpenLDAP --enable-relay
3672
3673         # Check whether --enable-relay was given.
3674 if test "${enable_relay+set}" = set; then
3675   enableval=$enable_relay;
3676         ol_arg=invalid
3677         for ol_val in no yes mod ; do
3678                 if test "$enableval" = "$ol_val" ; then
3679                         ol_arg="$ol_val"
3680                 fi
3681         done
3682         if test "$ol_arg" = "invalid" ; then
3683                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3684 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3685    { (exit 1); exit 1; }; }
3686         fi
3687         ol_enable_relay="$ol_arg"
3688
3689 else
3690         ol_enable_relay=${ol_enable_backends:-yes}
3691 fi
3692
3693 # end --enable-relay
3694 # OpenLDAP --enable-shell
3695
3696         # Check whether --enable-shell was given.
3697 if test "${enable_shell+set}" = set; then
3698   enableval=$enable_shell;
3699         ol_arg=invalid
3700         for ol_val in no yes mod ; do
3701                 if test "$enableval" = "$ol_val" ; then
3702                         ol_arg="$ol_val"
3703                 fi
3704         done
3705         if test "$ol_arg" = "invalid" ; then
3706                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3707 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3708    { (exit 1); exit 1; }; }
3709         fi
3710         ol_enable_shell="$ol_arg"
3711
3712 else
3713         ol_enable_shell=${ol_enable_backends:-no}
3714 fi
3715
3716 # end --enable-shell
3717 # OpenLDAP --enable-sock
3718
3719         # Check whether --enable-sock was given.
3720 if test "${enable_sock+set}" = set; then
3721   enableval=$enable_sock;
3722         ol_arg=invalid
3723         for ol_val in no yes mod ; do
3724                 if test "$enableval" = "$ol_val" ; then
3725                         ol_arg="$ol_val"
3726                 fi
3727         done
3728         if test "$ol_arg" = "invalid" ; then
3729                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3730 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3731    { (exit 1); exit 1; }; }
3732         fi
3733         ol_enable_sock="$ol_arg"
3734
3735 else
3736         ol_enable_sock=${ol_enable_backends:-no}
3737 fi
3738
3739 # end --enable-sock
3740 # OpenLDAP --enable-sql
3741
3742         # Check whether --enable-sql was given.
3743 if test "${enable_sql+set}" = set; then
3744   enableval=$enable_sql;
3745         ol_arg=invalid
3746         for ol_val in no yes mod ; do
3747                 if test "$enableval" = "$ol_val" ; then
3748                         ol_arg="$ol_val"
3749                 fi
3750         done
3751         if test "$ol_arg" = "invalid" ; then
3752                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3753 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3754    { (exit 1); exit 1; }; }
3755         fi
3756         ol_enable_sql="$ol_arg"
3757
3758 else
3759         ol_enable_sql=${ol_enable_backends:-no}
3760 fi
3761
3762 # end --enable-sql
3763
3764 Overlays="accesslog \
3765         auditlog \
3766         collect \
3767         constraint \
3768         dds \
3769         deref \
3770         dyngroup \
3771         dynlist \
3772         memberof \
3773         ppolicy \
3774         proxycache \
3775         refint \
3776         retcode \
3777         rwm \
3778         seqmod \
3779         sssvlv \
3780         syncprov \
3781         translucent \
3782         unique \
3783         valsort"
3784
3785 # Check whether --enable-xxslapoverlays was given.
3786 if test "${enable_xxslapoverlays+set}" = set; then
3787   enableval=$enable_xxslapoverlays;
3788 fi
3789
3790
3791 # OpenLDAP --enable-overlays
3792
3793         # Check whether --enable-overlays was given.
3794 if test "${enable_overlays+set}" = set; then
3795   enableval=$enable_overlays;
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-overlays" >&5
3804 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3805    { (exit 1); exit 1; }; }
3806         fi
3807         ol_enable_overlays="$ol_arg"
3808
3809 fi
3810
3811 # end --enable-overlays
3812 # OpenLDAP --enable-accesslog
3813
3814         # Check whether --enable-accesslog was given.
3815 if test "${enable_accesslog+set}" = set; then
3816   enableval=$enable_accesslog;
3817         ol_arg=invalid
3818         for ol_val in no yes mod ; do
3819                 if test "$enableval" = "$ol_val" ; then
3820                         ol_arg="$ol_val"
3821                 fi
3822         done
3823         if test "$ol_arg" = "invalid" ; then
3824                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3825 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3826    { (exit 1); exit 1; }; }
3827         fi
3828         ol_enable_accesslog="$ol_arg"
3829
3830 else
3831         ol_enable_accesslog=${ol_enable_overlays:-no}
3832 fi
3833
3834 # end --enable-accesslog
3835
3836 # OpenLDAP --enable-auditlog
3837
3838         # Check whether --enable-auditlog was given.
3839 if test "${enable_auditlog+set}" = set; then
3840   enableval=$enable_auditlog;
3841         ol_arg=invalid
3842         for ol_val in no yes mod ; do
3843                 if test "$enableval" = "$ol_val" ; then
3844                         ol_arg="$ol_val"
3845                 fi
3846         done
3847         if test "$ol_arg" = "invalid" ; then
3848                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3849 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3850    { (exit 1); exit 1; }; }
3851         fi
3852         ol_enable_auditlog="$ol_arg"
3853
3854 else
3855         ol_enable_auditlog=${ol_enable_overlays:-no}
3856 fi
3857
3858 # end --enable-auditlog
3859
3860 # OpenLDAP --enable-collect
3861
3862         # Check whether --enable-collect was given.
3863 if test "${enable_collect+set}" = set; then
3864   enableval=$enable_collect;
3865         ol_arg=invalid
3866         for ol_val in no yes mod ; do
3867                 if test "$enableval" = "$ol_val" ; then
3868                         ol_arg="$ol_val"
3869                 fi
3870         done
3871         if test "$ol_arg" = "invalid" ; then
3872                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3873 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3874    { (exit 1); exit 1; }; }
3875         fi
3876         ol_enable_collect="$ol_arg"
3877
3878 else
3879         ol_enable_collect=${ol_enable_overlays:-no}
3880 fi
3881
3882 # end --enable-collect
3883
3884 # OpenLDAP --enable-constraint
3885
3886         # Check whether --enable-constraint was given.
3887 if test "${enable_constraint+set}" = set; then
3888   enableval=$enable_constraint;
3889         ol_arg=invalid
3890         for ol_val in no yes mod ; do
3891                 if test "$enableval" = "$ol_val" ; then
3892                         ol_arg="$ol_val"
3893                 fi
3894         done
3895         if test "$ol_arg" = "invalid" ; then
3896                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3897 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3898    { (exit 1); exit 1; }; }
3899         fi
3900         ol_enable_constraint="$ol_arg"
3901
3902 else
3903         ol_enable_constraint=${ol_enable_overlays:-no}
3904 fi
3905
3906 # end --enable-constraint
3907
3908 # OpenLDAP --enable-dds
3909
3910         # Check whether --enable-dds was given.
3911 if test "${enable_dds+set}" = set; then
3912   enableval=$enable_dds;
3913         ol_arg=invalid
3914         for ol_val in no yes mod ; do
3915                 if test "$enableval" = "$ol_val" ; then
3916                         ol_arg="$ol_val"
3917                 fi
3918         done
3919         if test "$ol_arg" = "invalid" ; then
3920                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3921 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3922    { (exit 1); exit 1; }; }
3923         fi
3924         ol_enable_dds="$ol_arg"
3925
3926 else
3927         ol_enable_dds=${ol_enable_overlays:-no}
3928 fi
3929
3930 # end --enable-dds
3931
3932 # OpenLDAP --enable-deref
3933
3934         # Check whether --enable-deref was given.
3935 if test "${enable_deref+set}" = set; then
3936   enableval=$enable_deref;
3937         ol_arg=invalid
3938         for ol_val in no yes mod ; do
3939                 if test "$enableval" = "$ol_val" ; then
3940                         ol_arg="$ol_val"
3941                 fi
3942         done
3943         if test "$ol_arg" = "invalid" ; then
3944                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3945 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3946    { (exit 1); exit 1; }; }
3947         fi
3948         ol_enable_deref="$ol_arg"
3949
3950 else
3951         ol_enable_deref=${ol_enable_overlays:-no}
3952 fi
3953
3954 # end --enable-deref
3955
3956 # OpenLDAP --enable-dyngroup
3957
3958         # Check whether --enable-dyngroup was given.
3959 if test "${enable_dyngroup+set}" = set; then
3960   enableval=$enable_dyngroup;
3961         ol_arg=invalid
3962         for ol_val in no yes mod ; do
3963                 if test "$enableval" = "$ol_val" ; then
3964                         ol_arg="$ol_val"
3965                 fi
3966         done
3967         if test "$ol_arg" = "invalid" ; then
3968                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3969 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3970    { (exit 1); exit 1; }; }
3971         fi
3972         ol_enable_dyngroup="$ol_arg"
3973
3974 else
3975         ol_enable_dyngroup=${ol_enable_overlays:-no}
3976 fi
3977
3978 # end --enable-dyngroup
3979
3980 # OpenLDAP --enable-dynlist
3981
3982         # Check whether --enable-dynlist was given.
3983 if test "${enable_dynlist+set}" = set; then
3984   enableval=$enable_dynlist;
3985         ol_arg=invalid
3986         for ol_val in no yes mod ; do
3987                 if test "$enableval" = "$ol_val" ; then
3988                         ol_arg="$ol_val"
3989                 fi
3990         done
3991         if test "$ol_arg" = "invalid" ; then
3992                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3993 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3994    { (exit 1); exit 1; }; }
3995         fi
3996         ol_enable_dynlist="$ol_arg"
3997
3998 else
3999         ol_enable_dynlist=${ol_enable_overlays:-no}
4000 fi
4001
4002 # end --enable-dynlist
4003
4004 # OpenLDAP --enable-memberof
4005
4006         # Check whether --enable-memberof was given.
4007 if test "${enable_memberof+set}" = set; then
4008   enableval=$enable_memberof;
4009         ol_arg=invalid
4010         for ol_val in no yes mod ; do
4011                 if test "$enableval" = "$ol_val" ; then
4012                         ol_arg="$ol_val"
4013                 fi
4014         done
4015         if test "$ol_arg" = "invalid" ; then
4016                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
4017 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
4018    { (exit 1); exit 1; }; }
4019         fi
4020         ol_enable_memberof="$ol_arg"
4021
4022 else
4023         ol_enable_memberof=${ol_enable_overlays:-no}
4024 fi
4025
4026 # end --enable-memberof
4027
4028 # OpenLDAP --enable-ppolicy
4029
4030         # Check whether --enable-ppolicy was given.
4031 if test "${enable_ppolicy+set}" = set; then
4032   enableval=$enable_ppolicy;
4033         ol_arg=invalid
4034         for ol_val in no yes mod ; do
4035                 if test "$enableval" = "$ol_val" ; then
4036                         ol_arg="$ol_val"
4037                 fi
4038         done
4039         if test "$ol_arg" = "invalid" ; then
4040                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4041 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4042    { (exit 1); exit 1; }; }
4043         fi
4044         ol_enable_ppolicy="$ol_arg"
4045
4046 else
4047         ol_enable_ppolicy=${ol_enable_overlays:-no}
4048 fi
4049
4050 # end --enable-ppolicy
4051
4052 # OpenLDAP --enable-proxycache
4053
4054         # Check whether --enable-proxycache was given.
4055 if test "${enable_proxycache+set}" = set; then
4056   enableval=$enable_proxycache;
4057         ol_arg=invalid
4058         for ol_val in no yes mod ; do
4059                 if test "$enableval" = "$ol_val" ; then
4060                         ol_arg="$ol_val"
4061                 fi
4062         done
4063         if test "$ol_arg" = "invalid" ; then
4064                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4065 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4066    { (exit 1); exit 1; }; }
4067         fi
4068         ol_enable_proxycache="$ol_arg"
4069
4070 else
4071         ol_enable_proxycache=${ol_enable_overlays:-no}
4072 fi
4073
4074 # end --enable-proxycache
4075
4076 # OpenLDAP --enable-refint
4077
4078         # Check whether --enable-refint was given.
4079 if test "${enable_refint+set}" = set; then
4080   enableval=$enable_refint;
4081         ol_arg=invalid
4082         for ol_val in no yes mod ; do
4083                 if test "$enableval" = "$ol_val" ; then
4084                         ol_arg="$ol_val"
4085                 fi
4086         done
4087         if test "$ol_arg" = "invalid" ; then
4088                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4089 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4090    { (exit 1); exit 1; }; }
4091         fi
4092         ol_enable_refint="$ol_arg"
4093
4094 else
4095         ol_enable_refint=${ol_enable_overlays:-no}
4096 fi
4097
4098 # end --enable-refint
4099
4100 # OpenLDAP --enable-retcode
4101
4102         # Check whether --enable-retcode was given.
4103 if test "${enable_retcode+set}" = set; then
4104   enableval=$enable_retcode;
4105         ol_arg=invalid
4106         for ol_val in no yes mod ; do
4107                 if test "$enableval" = "$ol_val" ; then
4108                         ol_arg="$ol_val"
4109                 fi
4110         done
4111         if test "$ol_arg" = "invalid" ; then
4112                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4113 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4114    { (exit 1); exit 1; }; }
4115         fi
4116         ol_enable_retcode="$ol_arg"
4117
4118 else
4119         ol_enable_retcode=${ol_enable_overlays:-no}
4120 fi
4121
4122 # end --enable-retcode
4123
4124 # OpenLDAP --enable-rwm
4125
4126         # Check whether --enable-rwm was given.
4127 if test "${enable_rwm+set}" = set; then
4128   enableval=$enable_rwm;
4129         ol_arg=invalid
4130         for ol_val in no yes mod ; do
4131                 if test "$enableval" = "$ol_val" ; then
4132                         ol_arg="$ol_val"
4133                 fi
4134         done
4135         if test "$ol_arg" = "invalid" ; then
4136                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4137 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4138    { (exit 1); exit 1; }; }
4139         fi
4140         ol_enable_rwm="$ol_arg"
4141
4142 else
4143         ol_enable_rwm=${ol_enable_overlays:-no}
4144 fi
4145
4146 # end --enable-rwm
4147
4148 # OpenLDAP --enable-seqmod
4149
4150         # Check whether --enable-seqmod was given.
4151 if test "${enable_seqmod+set}" = set; then
4152   enableval=$enable_seqmod;
4153         ol_arg=invalid
4154         for ol_val in no yes mod ; do
4155                 if test "$enableval" = "$ol_val" ; then
4156                         ol_arg="$ol_val"
4157                 fi
4158         done
4159         if test "$ol_arg" = "invalid" ; then
4160                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4161 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4162    { (exit 1); exit 1; }; }
4163         fi
4164         ol_enable_seqmod="$ol_arg"
4165
4166 else
4167         ol_enable_seqmod=${ol_enable_overlays:-no}
4168 fi
4169
4170 # end --enable-seqmod
4171
4172 # OpenLDAP --enable-sssvlv
4173
4174         # Check whether --enable-sssvlv was given.
4175 if test "${enable_sssvlv+set}" = set; then
4176   enableval=$enable_sssvlv;
4177         ol_arg=invalid
4178         for ol_val in no yes mod ; do
4179                 if test "$enableval" = "$ol_val" ; then
4180                         ol_arg="$ol_val"
4181                 fi
4182         done
4183         if test "$ol_arg" = "invalid" ; then
4184                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4185 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4186    { (exit 1); exit 1; }; }
4187         fi
4188         ol_enable_sssvlv="$ol_arg"
4189
4190 else
4191         ol_enable_sssvlv=${ol_enable_overlays:-no}
4192 fi
4193
4194 # end --enable-sssvlv
4195
4196 # OpenLDAP --enable-syncprov
4197
4198         # Check whether --enable-syncprov was given.
4199 if test "${enable_syncprov+set}" = set; then
4200   enableval=$enable_syncprov;
4201         ol_arg=invalid
4202         for ol_val in no yes mod ; do
4203                 if test "$enableval" = "$ol_val" ; then
4204                         ol_arg="$ol_val"
4205                 fi
4206         done
4207         if test "$ol_arg" = "invalid" ; then
4208                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4209 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4210    { (exit 1); exit 1; }; }
4211         fi
4212         ol_enable_syncprov="$ol_arg"
4213
4214 else
4215         ol_enable_syncprov=${ol_enable_overlays:-yes}
4216 fi
4217
4218 # end --enable-syncprov
4219
4220 # OpenLDAP --enable-translucent
4221
4222         # Check whether --enable-translucent was given.
4223 if test "${enable_translucent+set}" = set; then
4224   enableval=$enable_translucent;
4225         ol_arg=invalid
4226         for ol_val in no yes mod ; do
4227                 if test "$enableval" = "$ol_val" ; then
4228                         ol_arg="$ol_val"
4229                 fi
4230         done
4231         if test "$ol_arg" = "invalid" ; then
4232                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4233 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4234    { (exit 1); exit 1; }; }
4235         fi
4236         ol_enable_translucent="$ol_arg"
4237
4238 else
4239         ol_enable_translucent=${ol_enable_overlays:-no}
4240 fi
4241
4242 # end --enable-translucent
4243
4244 # OpenLDAP --enable-unique
4245
4246         # Check whether --enable-unique was given.
4247 if test "${enable_unique+set}" = set; then
4248   enableval=$enable_unique;
4249         ol_arg=invalid
4250         for ol_val in no yes mod ; do
4251                 if test "$enableval" = "$ol_val" ; then
4252                         ol_arg="$ol_val"
4253                 fi
4254         done
4255         if test "$ol_arg" = "invalid" ; then
4256                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4257 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4258    { (exit 1); exit 1; }; }
4259         fi
4260         ol_enable_unique="$ol_arg"
4261
4262 else
4263         ol_enable_unique=${ol_enable_overlays:-no}
4264 fi
4265
4266 # end --enable-unique
4267
4268 # OpenLDAP --enable-valsort
4269
4270         # Check whether --enable-valsort was given.
4271 if test "${enable_valsort+set}" = set; then
4272   enableval=$enable_valsort;
4273         ol_arg=invalid
4274         for ol_val in no yes mod ; do
4275                 if test "$enableval" = "$ol_val" ; then
4276                         ol_arg="$ol_val"
4277                 fi
4278         done
4279         if test "$ol_arg" = "invalid" ; then
4280                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4281 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4282    { (exit 1); exit 1; }; }
4283         fi
4284         ol_enable_valsort="$ol_arg"
4285
4286 else
4287         ol_enable_valsort=${ol_enable_overlays:-no}
4288 fi
4289
4290 # end --enable-valsort
4291
4292
4293 # Check whether --enable-xxliboptions was given.
4294 if test "${enable_xxliboptions+set}" = set; then
4295   enableval=$enable_xxliboptions;
4296 fi
4297
4298 # Check whether --enable-static was given.
4299 if test "${enable_static+set}" = set; then
4300   enableval=$enable_static; p=${PACKAGE-default}
4301     case $enableval in
4302     yes) enable_static=yes ;;
4303     no) enable_static=no ;;
4304     *)
4305      enable_static=no
4306       # Look at the argument we got.  We use all the common list separators.
4307       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4308       for pkg in $enableval; do
4309         IFS="$lt_save_ifs"
4310         if test "X$pkg" = "X$p"; then
4311           enable_static=yes
4312         fi
4313       done
4314       IFS="$lt_save_ifs"
4315       ;;
4316     esac
4317 else
4318   enable_static=yes
4319 fi
4320
4321
4322 # Check whether --enable-shared was given.
4323 if test "${enable_shared+set}" = set; then
4324   enableval=$enable_shared; p=${PACKAGE-default}
4325     case $enableval in
4326     yes) enable_shared=yes ;;
4327     no) enable_shared=no ;;
4328     *)
4329       enable_shared=no
4330       # Look at the argument we got.  We use all the common list separators.
4331       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4332       for pkg in $enableval; do
4333         IFS="$lt_save_ifs"
4334         if test "X$pkg" = "X$p"; then
4335           enable_shared=yes
4336         fi
4337       done
4338       IFS="$lt_save_ifs"
4339       ;;
4340     esac
4341 else
4342   enable_shared=yes
4343 fi
4344
4345
4346
4347
4348 # validate options
4349 if test $ol_enable_slapd = no ; then
4350                 if test $ol_enable_slapi = yes ; then
4351                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4352 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4353         fi
4354         case "$ol_enable_backends" in yes | mod)
4355                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4356 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4357         esac
4358         for i in $Backends; do
4359                 eval "ol_tmp=\$ol_enable_$i"
4360                 if test $ol_tmp != no ; then
4361                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4362 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4363                         eval "ol_enable_$i=no"
4364                 fi
4365         done
4366         if test $ol_enable_modules = yes ; then
4367                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4368 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4369         fi
4370         if test $ol_enable_wrappers = yes ; then
4371                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4372 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4373         fi
4374         if test $ol_enable_rlookups = yes ; then
4375                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4376 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4377         fi
4378         if test $ol_enable_dynacl = yes ; then
4379                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4380 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4381         fi
4382         if test $ol_enable_aci != no ; then
4383                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4384 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4385         fi
4386         if test $ol_enable_rewrite = yes ; then
4387                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4388 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4389         fi
4390                 case "$ol_enable_overlays" in yes | mod)
4391                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4392 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4393         esac
4394         for i in $Overlays; do
4395                 eval "ol_tmp=\$ol_enable_$i"
4396                 if test $ol_tmp != no ; then
4397                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4398 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4399                         eval "ol_enable_$i=no"
4400                 fi
4401         done
4402
4403         # force settings to no
4404         ol_enable_slapi=no
4405
4406         ol_enable_backends=
4407         ol_enable_overlays=
4408         ol_enable_modules=no
4409         ol_enable_rlookups=no
4410         ol_enable_dynacl=no
4411         ol_enable_aci=no
4412         ol_enable_wrappers=no
4413
4414         ol_enable_rewrite=no
4415
4416 elif test $ol_enable_modules != yes &&
4417         test $ol_enable_bdb = no &&
4418         test $ol_enable_dnssrv = no &&
4419         test $ol_enable_hdb = no &&
4420         test $ol_enable_ldap = no &&
4421         test $ol_enable_meta = no &&
4422         test $ol_enable_monitor = no &&
4423         test $ol_enable_ndb = no &&
4424         test $ol_enable_null = no &&
4425         test $ol_enable_passwd = no &&
4426         test $ol_enable_perl = no &&
4427         test $ol_enable_relay = no &&
4428         test $ol_enable_shell = no &&
4429         test $ol_enable_sock = no &&
4430         test $ol_enable_sql = no ; then
4431
4432         if test $ol_enable_slapd = yes ; then
4433                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4434 echo "$as_me: error: slapd requires a backend" >&2;}
4435    { (exit 1); exit 1; }; }
4436         else
4437                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4438 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4439                 ol_enable_slapd=no
4440         fi
4441 fi
4442
4443 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4444         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4445 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4446    { (exit 1); exit 1; }; }
4447 fi
4448
4449 if test $ol_enable_lmpasswd = yes ; then
4450         if test $ol_with_tls = no ; then
4451                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4452 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4453    { (exit 1); exit 1; }; }
4454         fi
4455 fi
4456
4457 if test $ol_enable_spasswd = yes ; then
4458         if test $ol_with_cyrus_sasl = no ; then
4459                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4460 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4461    { (exit 1); exit 1; }; }
4462         fi
4463         ol_with_cyrus_sasl=yes
4464 fi
4465
4466 { echo "$as_me:$LINENO: result: done" >&5
4467 echo "${ECHO_T}done" >&6; }
4468
4469 LDAP_LIBS=
4470 BDB_LIBS=
4471 SLAPD_NDB_LIBS=
4472 SLAPD_NDB_INCS=
4473 LTHREAD_LIBS=
4474 LUTIL_LIBS=
4475
4476 SLAPD_LIBS=
4477
4478 BUILD_SLAPD=no
4479
4480 BUILD_THREAD=no
4481
4482 BUILD_SLAPI=no
4483 SLAPD_SLAPI_DEPEND=
4484
4485 BUILD_BDB=no
4486 BUILD_DNSSRV=no
4487 BUILD_HDB=no
4488 BUILD_LDAP=no
4489 BUILD_META=no
4490 BUILD_MONITOR=no
4491 BUILD_NDB=no
4492 BUILD_NULL=no
4493 BUILD_PASSWD=no
4494 BUILD_PERL=no
4495 BUILD_RELAY=no
4496 BUILD_SHELL=no
4497 BUILD_SOCK=no
4498 BUILD_SQL=no
4499
4500 BUILD_ACCESSLOG=no
4501 BUILD_AUDITLOG=no
4502 BUILD_CONSTRAINT=no
4503 BUILD_DDS=no
4504 BUILD_DENYOP=no
4505 BUILD_DEREF=no
4506 BUILD_DYNGROUP=no
4507 BUILD_DYNLIST=no
4508 BUILD_LASTMOD=no
4509 BUILD_MEMBEROF=no
4510 BUILD_PPOLICY=no
4511 BUILD_PROXYCACHE=no
4512 BUILD_REFINT=no
4513 BUILD_RETCODE=no
4514 BUILD_RWM=no
4515 BUILD_SEQMOD=no
4516 BUILD_SSSVLV=no
4517 BUILD_SYNCPROV=no
4518 BUILD_TRANSLUCENT=no
4519 BUILD_UNIQUE=no
4520 BUILD_VALSORT=no
4521
4522 SLAPD_STATIC_OVERLAYS=
4523 SLAPD_DYNAMIC_OVERLAYS=
4524
4525 SLAPD_MODULES_LDFLAGS=
4526 SLAPD_MODULES_CPPFLAGS=
4527
4528 SLAPD_STATIC_BACKENDS=back-ldif
4529 SLAPD_DYNAMIC_BACKENDS=
4530
4531 SLAPD_PERL_LDFLAGS=
4532 MOD_PERL_LDFLAGS=
4533 PERL_CPPFLAGS=
4534
4535 SLAPD_SQL_LDFLAGS=
4536 SLAPD_SQL_LIBS=
4537 SLAPD_SQL_INCLUDES=
4538
4539 KRB4_LIBS=
4540 KRB5_LIBS=
4541 SASL_LIBS=
4542 TLS_LIBS=
4543 MODULES_LIBS=
4544 SLAPI_LIBS=
4545 LIBSLAPI=
4546 AUTH_LIBS=
4547 ICU_LIBS=
4548
4549 SLAPD_SLP_LIBS=
4550 SLAPD_GMP_LIBS=
4551
4552
4553
4554 cat >>confdefs.h <<\_ACEOF
4555 #define HAVE_MKVERSION 1
4556 _ACEOF
4557
4558
4559
4560
4561 ol_aix_threads=no
4562 case "$target" in
4563 *-*-aix*)       if test -z "$CC" ; then
4564                 case "$ol_with_threads" in
4565                 auto | yes |  posix) ol_aix_threads=yes ;;
4566                 esac
4567         fi
4568 ;;
4569 esac
4570
4571 if test $ol_aix_threads = yes ; then
4572         if test -z "${CC}" ; then
4573                 for ac_prog in cc_r xlc_r cc
4574 do
4575   # Extract the first word of "$ac_prog", so it can be a program name with args.
4576 set dummy $ac_prog; ac_word=$2
4577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4579 if test "${ac_cv_prog_CC+set}" = set; then
4580   echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582   if test -n "$CC"; then
4583   ac_cv_prog_CC="$CC" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588   IFS=$as_save_IFS
4589   test -z "$as_dir" && as_dir=.
4590   for ac_exec_ext in '' $ac_executable_extensions; do
4591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592     ac_cv_prog_CC="$ac_prog"
4593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594     break 2
4595   fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600 fi
4601 fi
4602 CC=$ac_cv_prog_CC
4603 if test -n "$CC"; then
4604   { echo "$as_me:$LINENO: result: $CC" >&5
4605 echo "${ECHO_T}$CC" >&6; }
4606 else
4607   { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4609 fi
4610
4611
4612   test -n "$CC" && break
4613 done
4614
4615
4616                 if test "$CC" = cc ; then
4617                                                 if test $ol_with_threads != auto ; then
4618                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4619 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4620    { (exit 1); exit 1; }; }
4621                         else
4622                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4623 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4624                         fi
4625                         ol_with_threads=no
4626                 fi
4627         fi
4628
4629         case ${CC} in cc_r | xlc_r)
4630                 ol_with_threads=posix
4631                 ol_cv_pthread_create=yes
4632                 ;;
4633         esac
4634 fi
4635
4636 if test -z "${CC}"; then
4637         for ac_prog in cc gcc
4638 do
4639   # Extract the first word of "$ac_prog", so it can be a program name with args.
4640 set dummy $ac_prog; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_CC+set}" = set; then
4644   echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646   if test -n "$CC"; then
4647   ac_cv_prog_CC="$CC" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654   for ac_exec_ext in '' $ac_executable_extensions; do
4655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656     ac_cv_prog_CC="$ac_prog"
4657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658     break 2
4659   fi
4660 done
4661 done
4662 IFS=$as_save_IFS
4663
4664 fi
4665 fi
4666 CC=$ac_cv_prog_CC
4667 if test -n "$CC"; then
4668   { echo "$as_me:$LINENO: result: $CC" >&5
4669 echo "${ECHO_T}$CC" >&6; }
4670 else
4671   { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4673 fi
4674
4675
4676   test -n "$CC" && break
4677 done
4678 test -n "$CC" || CC="missing"
4679
4680
4681         if test "${CC}" = "missing" ; then
4682                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4683 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4684    { (exit 1); exit 1; }; }
4685         fi
4686 fi
4687
4688 if test -z "${AR}"; then
4689         for ac_prog in ar gar
4690 do
4691   # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy $ac_prog; ac_word=$2
4693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695 if test "${ac_cv_prog_AR+set}" = set; then
4696   echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698   if test -n "$AR"; then
4699   ac_cv_prog_AR="$AR" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706   for ac_exec_ext in '' $ac_executable_extensions; do
4707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708     ac_cv_prog_AR="$ac_prog"
4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713 done
4714 IFS=$as_save_IFS
4715
4716 fi
4717 fi
4718 AR=$ac_cv_prog_AR
4719 if test -n "$AR"; then
4720   { echo "$as_me:$LINENO: result: $AR" >&5
4721 echo "${ECHO_T}$AR" >&6; }
4722 else
4723   { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4725 fi
4726
4727
4728   test -n "$AR" && break
4729 done
4730 test -n "$AR" || AR="missing"
4731
4732
4733         if test "${AR}" = "missing" ; then
4734                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4735 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4736    { (exit 1); exit 1; }; }
4737         fi
4738 fi
4739
4740
4741
4742
4743
4744 # Check whether --enable-fast-install was given.
4745 if test "${enable_fast_install+set}" = set; then
4746   enableval=$enable_fast_install; p=${PACKAGE-default}
4747     case $enableval in
4748     yes) enable_fast_install=yes ;;
4749     no) enable_fast_install=no ;;
4750     *)
4751       enable_fast_install=no
4752       # Look at the argument we got.  We use all the common list separators.
4753       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4754       for pkg in $enableval; do
4755         IFS="$lt_save_ifs"
4756         if test "X$pkg" = "X$p"; then
4757           enable_fast_install=yes
4758         fi
4759       done
4760       IFS="$lt_save_ifs"
4761       ;;
4762     esac
4763 else
4764   enable_fast_install=yes
4765 fi
4766
4767
4768 DEPDIR="${am__leading_dot}deps"
4769
4770 ac_config_commands="$ac_config_commands depfiles"
4771
4772
4773 am_make=${MAKE-make}
4774 cat > confinc << 'END'
4775 am__doit:
4776         @echo done
4777 .PHONY: am__doit
4778 END
4779 # If we don't find an include directive, just comment out the code.
4780 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4781 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4782 am__include="#"
4783 am__quote=
4784 _am_result=none
4785 # First try GNU make style include.
4786 echo "include confinc" > confmf
4787 # We grep out `Entering directory' and `Leaving directory'
4788 # messages which can occur if `w' ends up in MAKEFLAGS.
4789 # In particular we don't look at `^make:' because GNU make might
4790 # be invoked under some other name (usually "gmake"), in which
4791 # case it prints its new name instead of `make'.
4792 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4793    am__include=include
4794    am__quote=
4795    _am_result=GNU
4796 fi
4797 # Now try BSD make style include.
4798 if test "$am__include" = "#"; then
4799    echo '.include "confinc"' > confmf
4800    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4801       am__include=.include
4802       am__quote="\""
4803       _am_result=BSD
4804    fi
4805 fi
4806
4807
4808 { echo "$as_me:$LINENO: result: $_am_result" >&5
4809 echo "${ECHO_T}$_am_result" >&6; }
4810 rm -f confinc confmf
4811
4812 # Check whether --enable-dependency-tracking was given.
4813 if test "${enable_dependency_tracking+set}" = set; then
4814   enableval=$enable_dependency_tracking;
4815 fi
4816
4817 if test "x$enable_dependency_tracking" != xno; then
4818   am_depcomp="$ac_aux_dir/depcomp"
4819   AMDEPBACKSLASH='\'
4820 fi
4821  if test "x$enable_dependency_tracking" != xno; then
4822   AMDEP_TRUE=
4823   AMDEP_FALSE='#'
4824 else
4825   AMDEP_TRUE='#'
4826   AMDEP_FALSE=
4827 fi
4828
4829
4830 ac_ext=c
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835 if test -n "$ac_tool_prefix"; then
4836   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4840 if test "${ac_cv_prog_CC+set}" = set; then
4841   echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843   if test -n "$CC"; then
4844   ac_cv_prog_CC="$CC" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4848 do
4849   IFS=$as_save_IFS
4850   test -z "$as_dir" && as_dir=.
4851   for ac_exec_ext in '' $ac_executable_extensions; do
4852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855     break 2
4856   fi
4857 done
4858 done
4859 IFS=$as_save_IFS
4860
4861 fi
4862 fi
4863 CC=$ac_cv_prog_CC
4864 if test -n "$CC"; then
4865   { echo "$as_me:$LINENO: result: $CC" >&5
4866 echo "${ECHO_T}$CC" >&6; }
4867 else
4868   { echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6; }
4870 fi
4871
4872
4873 fi
4874 if test -z "$ac_cv_prog_CC"; then
4875   ac_ct_CC=$CC
4876   # Extract the first word of "gcc", so it can be a program name with args.
4877 set dummy gcc; ac_word=$2
4878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4881   echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883   if test -n "$ac_ct_CC"; then
4884   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889   IFS=$as_save_IFS
4890   test -z "$as_dir" && as_dir=.
4891   for ac_exec_ext in '' $ac_executable_extensions; do
4892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893     ac_cv_prog_ac_ct_CC="gcc"
4894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895     break 2
4896   fi
4897 done
4898 done
4899 IFS=$as_save_IFS
4900
4901 fi
4902 fi
4903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4904 if test -n "$ac_ct_CC"; then
4905   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4906 echo "${ECHO_T}$ac_ct_CC" >&6; }
4907 else
4908   { echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6; }
4910 fi
4911
4912   if test "x$ac_ct_CC" = x; then
4913     CC=""
4914   else
4915     case $cross_compiling:$ac_tool_warned in
4916 yes:)
4917 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4918 whose name does not start with the host triplet.  If you think this
4919 configuration is useful to you, please write to autoconf@gnu.org." >&5
4920 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4921 whose name does not start with the host triplet.  If you think this
4922 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4923 ac_tool_warned=yes ;;
4924 esac
4925     CC=$ac_ct_CC
4926   fi
4927 else
4928   CC="$ac_cv_prog_CC"
4929 fi
4930
4931 if test -z "$CC"; then
4932           if test -n "$ac_tool_prefix"; then
4933     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4934 set dummy ${ac_tool_prefix}cc; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_CC+set}" = set; then
4938   echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940   if test -n "$CC"; then
4941   ac_cv_prog_CC="$CC" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948   for ac_exec_ext in '' $ac_executable_extensions; do
4949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950     ac_cv_prog_CC="${ac_tool_prefix}cc"
4951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958 fi
4959 fi
4960 CC=$ac_cv_prog_CC
4961 if test -n "$CC"; then
4962   { echo "$as_me:$LINENO: result: $CC" >&5
4963 echo "${ECHO_T}$CC" >&6; }
4964 else
4965   { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4967 fi
4968
4969
4970   fi
4971 fi
4972 if test -z "$CC"; then
4973   # Extract the first word of "cc", so it can be a program name with args.
4974 set dummy cc; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_CC+set}" = set; then
4978   echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980   if test -n "$CC"; then
4981   ac_cv_prog_CC="$CC" # Let the user override the test.
4982 else
4983   ac_prog_rejected=no
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989   for ac_exec_ext in '' $ac_executable_extensions; do
4990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4992        ac_prog_rejected=yes
4993        continue
4994      fi
4995     ac_cv_prog_CC="cc"
4996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997     break 2
4998   fi
4999 done
5000 done
5001 IFS=$as_save_IFS
5002
5003 if test $ac_prog_rejected = yes; then
5004   # We found a bogon in the path, so make sure we never use it.
5005   set dummy $ac_cv_prog_CC
5006   shift
5007   if test $# != 0; then
5008     # We chose a different compiler from the bogus one.
5009     # However, it has the same basename, so the bogon will be chosen
5010     # first if we set CC to just the basename; use the full file name.
5011     shift
5012     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5013   fi
5014 fi
5015 fi
5016 fi
5017 CC=$ac_cv_prog_CC
5018 if test -n "$CC"; then
5019   { echo "$as_me:$LINENO: result: $CC" >&5
5020 echo "${ECHO_T}$CC" >&6; }
5021 else
5022   { echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6; }
5024 fi
5025
5026
5027 fi
5028 if test -z "$CC"; then
5029   if test -n "$ac_tool_prefix"; then
5030   for ac_prog in cl.exe
5031   do
5032     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5036 if test "${ac_cv_prog_CC+set}" = set; then
5037   echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039   if test -n "$CC"; then
5040   ac_cv_prog_CC="$CC" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047   for ac_exec_ext in '' $ac_executable_extensions; do
5048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054 done
5055 IFS=$as_save_IFS
5056
5057 fi
5058 fi
5059 CC=$ac_cv_prog_CC
5060 if test -n "$CC"; then
5061   { echo "$as_me:$LINENO: result: $CC" >&5
5062 echo "${ECHO_T}$CC" >&6; }
5063 else
5064   { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5066 fi
5067
5068
5069     test -n "$CC" && break
5070   done
5071 fi
5072 if test -z "$CC"; then
5073   ac_ct_CC=$CC
5074   for ac_prog in cl.exe
5075 do
5076   # Extract the first word of "$ac_prog", so it can be a program name with args.
5077 set dummy $ac_prog; ac_word=$2
5078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   if test -n "$ac_ct_CC"; then
5084   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089   IFS=$as_save_IFS
5090   test -z "$as_dir" && as_dir=.
5091   for ac_exec_ext in '' $ac_executable_extensions; do
5092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093     ac_cv_prog_ac_ct_CC="$ac_prog"
5094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095     break 2
5096   fi
5097 done
5098 done
5099 IFS=$as_save_IFS
5100
5101 fi
5102 fi
5103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5104 if test -n "$ac_ct_CC"; then
5105   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5106 echo "${ECHO_T}$ac_ct_CC" >&6; }
5107 else
5108   { echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6; }
5110 fi
5111
5112
5113   test -n "$ac_ct_CC" && break
5114 done
5115
5116   if test "x$ac_ct_CC" = x; then
5117     CC=""
5118   else
5119     case $cross_compiling:$ac_tool_warned in
5120 yes:)
5121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5122 whose name does not start with the host triplet.  If you think this
5123 configuration is useful to you, please write to autoconf@gnu.org." >&5
5124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5125 whose name does not start with the host triplet.  If you think this
5126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5127 ac_tool_warned=yes ;;
5128 esac
5129     CC=$ac_ct_CC
5130   fi
5131 fi
5132
5133 fi
5134
5135
5136 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5137 See \`config.log' for more details." >&5
5138 echo "$as_me: error: no acceptable C compiler found in \$PATH
5139 See \`config.log' for more details." >&2;}
5140    { (exit 1); exit 1; }; }
5141
5142 # Provide some information about the compiler.
5143 echo "$as_me:$LINENO: checking for C compiler version" >&5
5144 ac_compiler=`set X $ac_compile; echo $2`
5145 { (ac_try="$ac_compiler --version >&5"
5146 case "(($ac_try" in
5147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148   *) ac_try_echo=$ac_try;;
5149 esac
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151   (eval "$ac_compiler --version >&5") 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }
5155 { (ac_try="$ac_compiler -v >&5"
5156 case "(($ac_try" in
5157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158   *) ac_try_echo=$ac_try;;
5159 esac
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161   (eval "$ac_compiler -v >&5") 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); }
5165 { (ac_try="$ac_compiler -V >&5"
5166 case "(($ac_try" in
5167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168   *) ac_try_echo=$ac_try;;
5169 esac
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171   (eval "$ac_compiler -V >&5") 2>&5
5172   ac_status=$?
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); }
5175
5176 cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h.  */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h.  */
5182
5183 int
5184 main ()
5185 {
5186
5187   ;
5188   return 0;
5189 }
5190 _ACEOF
5191 ac_clean_files_save=$ac_clean_files
5192 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5193 # Try to create an executable without -o first, disregard a.out.
5194 # It will help us diagnose broken compilers, and finding out an intuition
5195 # of exeext.
5196 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5197 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5198 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5199 #
5200 # List of possible output files, starting from the most likely.
5201 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5202 # only as a last resort.  b.out is created by i960 compilers.
5203 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5204 #
5205 # The IRIX 6 linker writes into existing files which may not be
5206 # executable, retaining their permissions.  Remove them first so a
5207 # subsequent execution test works.
5208 ac_rmfiles=
5209 for ac_file in $ac_files
5210 do
5211   case $ac_file in
5212     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5213     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5214   esac
5215 done
5216 rm -f $ac_rmfiles
5217
5218 if { (ac_try="$ac_link_default"
5219 case "(($ac_try" in
5220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221   *) ac_try_echo=$ac_try;;
5222 esac
5223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224   (eval "$ac_link_default") 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); }; then
5228   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5229 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5230 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5231 # so that the user can short-circuit this test for compilers unknown to
5232 # Autoconf.
5233 for ac_file in $ac_files ''
5234 do
5235   test -f "$ac_file" || continue
5236   case $ac_file in
5237     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5238         ;;
5239     [ab].out )
5240         # We found the default executable, but exeext='' is most
5241         # certainly right.
5242         break;;
5243     *.* )
5244         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5245         then :; else
5246            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5247         fi
5248         # We set ac_cv_exeext here because the later test for it is not
5249         # safe: cross compilers may not add the suffix if given an `-o'
5250         # argument, so we may need to know it at that point already.
5251         # Even if this section looks crufty: it has the advantage of
5252         # actually working.
5253         break;;
5254     * )
5255         break;;
5256   esac
5257 done
5258 test "$ac_cv_exeext" = no && ac_cv_exeext=
5259
5260 else
5261   ac_file=''
5262 fi
5263
5264 { echo "$as_me:$LINENO: result: $ac_file" >&5
5265 echo "${ECHO_T}$ac_file" >&6; }
5266 if test -z "$ac_file"; then
5267   echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5269
5270 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5271 See \`config.log' for more details." >&5
5272 echo "$as_me: error: C compiler cannot create executables
5273 See \`config.log' for more details." >&2;}
5274    { (exit 77); exit 77; }; }
5275 fi
5276
5277 ac_exeext=$ac_cv_exeext
5278
5279 # Check that the compiler produces executables we can run.  If not, either
5280 # the compiler is broken, or we cross compile.
5281 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5282 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5283 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5284 # If not cross compiling, check that we can run a simple program.
5285 if test "$cross_compiling" != yes; then
5286   if { ac_try='./$ac_file'
5287   { (case "(($ac_try" in
5288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289   *) ac_try_echo=$ac_try;;
5290 esac
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292   (eval "$ac_try") 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }; }; then
5296     cross_compiling=no
5297   else
5298     if test "$cross_compiling" = maybe; then
5299         cross_compiling=yes
5300     else
5301         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5302 If you meant to cross compile, use \`--host'.
5303 See \`config.log' for more details." >&5
5304 echo "$as_me: error: cannot run C compiled programs.
5305 If you meant to cross compile, use \`--host'.
5306 See \`config.log' for more details." >&2;}
5307    { (exit 1); exit 1; }; }
5308     fi
5309   fi
5310 fi
5311 { echo "$as_me:$LINENO: result: yes" >&5
5312 echo "${ECHO_T}yes" >&6; }
5313
5314 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5315 ac_clean_files=$ac_clean_files_save
5316 # Check that the compiler produces executables we can run.  If not, either
5317 # the compiler is broken, or we cross compile.
5318 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5319 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5320 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5321 echo "${ECHO_T}$cross_compiling" >&6; }
5322
5323 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5324 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5325 if { (ac_try="$ac_link"
5326 case "(($ac_try" in
5327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328   *) ac_try_echo=$ac_try;;
5329 esac
5330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331   (eval "$ac_link") 2>&5
5332   ac_status=$?
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); }; then
5335   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5336 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5337 # work properly (i.e., refer to `conftest.exe'), while it won't with
5338 # `rm'.
5339 for ac_file in conftest.exe conftest conftest.*; do
5340   test -f "$ac_file" || continue
5341   case $ac_file in
5342     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5343     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5344           break;;
5345     * ) break;;
5346   esac
5347 done
5348 else
5349   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5350 See \`config.log' for more details." >&5
5351 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5352 See \`config.log' for more details." >&2;}
5353    { (exit 1); exit 1; }; }
5354 fi
5355
5356 rm -f conftest$ac_cv_exeext
5357 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5358 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5359
5360 rm -f conftest.$ac_ext
5361 EXEEXT=$ac_cv_exeext
5362 ac_exeext=$EXEEXT
5363 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5364 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5365 if test "${ac_cv_objext+set}" = set; then
5366   echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368   cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h.  */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h.  */
5374
5375 int
5376 main ()
5377 {
5378
5379   ;
5380   return 0;
5381 }
5382 _ACEOF
5383 rm -f conftest.o conftest.obj
5384 if { (ac_try="$ac_compile"
5385 case "(($ac_try" in
5386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387   *) ac_try_echo=$ac_try;;
5388 esac
5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390   (eval "$ac_compile") 2>&5
5391   ac_status=$?
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); }; then
5394   for ac_file in conftest.o conftest.obj conftest.*; do
5395   test -f "$ac_file" || continue;
5396   case $ac_file in
5397     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5398     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5399        break;;
5400   esac
5401 done
5402 else
5403   echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5405
5406 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5407 See \`config.log' for more details." >&5
5408 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5409 See \`config.log' for more details." >&2;}
5410    { (exit 1); exit 1; }; }
5411 fi
5412
5413 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5414 fi
5415 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5416 echo "${ECHO_T}$ac_cv_objext" >&6; }
5417 OBJEXT=$ac_cv_objext
5418 ac_objext=$OBJEXT
5419 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5420 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5421 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5422   echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5424   cat >conftest.$ac_ext <<_ACEOF
5425 /* confdefs.h.  */
5426 _ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h.  */
5430
5431 int
5432 main ()
5433 {
5434 #ifndef __GNUC__
5435        choke me
5436 #endif
5437
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (ac_try="$ac_compile"
5444 case "(($ac_try" in
5445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446   *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449   (eval "$ac_compile") 2>conftest.er1
5450   ac_status=$?
5451   grep -v '^ *+' conftest.er1 >conftest.err
5452   rm -f conftest.er1
5453   cat conftest.err >&5
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); } && {
5456          test -z "$ac_c_werror_flag" ||
5457          test ! -s conftest.err
5458        } && test -s conftest.$ac_objext; then
5459   ac_compiler_gnu=yes
5460 else
5461   echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464         ac_compiler_gnu=no
5465 fi
5466
5467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5469
5470 fi
5471 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5472 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5473 GCC=`test $ac_compiler_gnu = yes && echo yes`
5474 ac_test_CFLAGS=${CFLAGS+set}
5475 ac_save_CFLAGS=$CFLAGS
5476 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5477 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5478 if test "${ac_cv_prog_cc_g+set}" = set; then
5479   echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481   ac_save_c_werror_flag=$ac_c_werror_flag
5482    ac_c_werror_flag=yes
5483    ac_cv_prog_cc_g=no
5484    CFLAGS="-g"
5485    cat >conftest.$ac_ext <<_ACEOF
5486 /* confdefs.h.  */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h.  */
5491
5492 int
5493 main ()
5494 {
5495
5496   ;
5497   return 0;
5498 }
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5502 case "(($ac_try" in
5503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504   *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507   (eval "$ac_compile") 2>conftest.er1
5508   ac_status=$?
5509   grep -v '^ *+' conftest.er1 >conftest.err
5510   rm -f conftest.er1
5511   cat conftest.err >&5
5512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513   (exit $ac_status); } && {
5514          test -z "$ac_c_werror_flag" ||
5515          test ! -s conftest.err
5516        } && test -s conftest.$ac_objext; then
5517   ac_cv_prog_cc_g=yes
5518 else
5519   echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5521
5522         CFLAGS=""
5523       cat >conftest.$ac_ext <<_ACEOF
5524 /* confdefs.h.  */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h.  */
5529
5530 int
5531 main ()
5532 {
5533
5534   ;
5535   return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (ac_try="$ac_compile"
5540 case "(($ac_try" in
5541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542   *) ac_try_echo=$ac_try;;
5543 esac
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545   (eval "$ac_compile") 2>conftest.er1
5546   ac_status=$?
5547   grep -v '^ *+' conftest.er1 >conftest.err
5548   rm -f conftest.er1
5549   cat conftest.err >&5
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); } && {
5552          test -z "$ac_c_werror_flag" ||
5553          test ! -s conftest.err
5554        } && test -s conftest.$ac_objext; then
5555   :
5556 else
5557   echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560         ac_c_werror_flag=$ac_save_c_werror_flag
5561          CFLAGS="-g"
5562          cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h.  */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h.  */
5568
5569 int
5570 main ()
5571 {
5572
5573   ;
5574   return 0;
5575 }
5576 _ACEOF
5577 rm -f conftest.$ac_objext
5578 if { (ac_try="$ac_compile"
5579 case "(($ac_try" in
5580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581   *) ac_try_echo=$ac_try;;
5582 esac
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584   (eval "$ac_compile") 2>conftest.er1
5585   ac_status=$?
5586   grep -v '^ *+' conftest.er1 >conftest.err
5587   rm -f conftest.er1
5588   cat conftest.err >&5
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); } && {
5591          test -z "$ac_c_werror_flag" ||
5592          test ! -s conftest.err
5593        } && test -s conftest.$ac_objext; then
5594   ac_cv_prog_cc_g=yes
5595 else
5596   echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5598
5599
5600 fi
5601
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603 fi
5604
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 fi
5607
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609    ac_c_werror_flag=$ac_save_c_werror_flag
5610 fi
5611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5612 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5613 if test "$ac_test_CFLAGS" = set; then
5614   CFLAGS=$ac_save_CFLAGS
5615 elif test $ac_cv_prog_cc_g = yes; then
5616   if test "$GCC" = yes; then
5617     CFLAGS="-g -O2"
5618   else
5619     CFLAGS="-g"
5620   fi
5621 else
5622   if test "$GCC" = yes; then
5623     CFLAGS="-O2"
5624   else
5625     CFLAGS=
5626   fi
5627 fi
5628 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5629 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5630 if test "${ac_cv_prog_cc_c89+set}" = set; then
5631   echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633   ac_cv_prog_cc_c89=no
5634 ac_save_CC=$CC
5635 cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h.  */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h.  */
5641 #include <stdarg.h>
5642 #include <stdio.h>
5643 #include <sys/types.h>
5644 #include <sys/stat.h>
5645 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5646 struct buf { int x; };
5647 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5648 static char *e (p, i)
5649      char **p;
5650      int i;
5651 {
5652   return p[i];
5653 }
5654 static char *f (char * (*g) (char **, int), char **p, ...)
5655 {
5656   char *s;
5657   va_list v;
5658   va_start (v,p);
5659   s = g (p, va_arg (v,int));
5660   va_end (v);
5661   return s;
5662 }
5663
5664 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5665    function prototypes and stuff, but not '\xHH' hex character constants.
5666    These don't provoke an error unfortunately, instead are silently treated
5667    as 'x'.  The following induces an error, until -std is added to get
5668    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5669    array size at least.  It's necessary to write '\x00'==0 to get something
5670    that's true only with -std.  */
5671 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5672
5673 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5674    inside strings and character constants.  */
5675 #define FOO(x) 'x'
5676 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5677
5678 int test (int i, double x);
5679 struct s1 {int (*f) (int a);};
5680 struct s2 {int (*f) (double a);};
5681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5682 int argc;
5683 char **argv;
5684 int
5685 main ()
5686 {
5687 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5688   ;
5689   return 0;
5690 }
5691 _ACEOF
5692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5693         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5694 do
5695   CC="$ac_save_CC $ac_arg"
5696   rm -f conftest.$ac_objext
5697 if { (ac_try="$ac_compile"
5698 case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_compile") 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } && {
5710          test -z "$ac_c_werror_flag" ||
5711          test ! -s conftest.err
5712        } && test -s conftest.$ac_objext; then
5713   ac_cv_prog_cc_c89=$ac_arg
5714 else
5715   echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718
5719 fi
5720
5721 rm -f core conftest.err conftest.$ac_objext
5722   test "x$ac_cv_prog_cc_c89" != "xno" && break
5723 done
5724 rm -f conftest.$ac_ext
5725 CC=$ac_save_CC
5726
5727 fi
5728 # AC_CACHE_VAL
5729 case "x$ac_cv_prog_cc_c89" in
5730   x)
5731     { echo "$as_me:$LINENO: result: none needed" >&5
5732 echo "${ECHO_T}none needed" >&6; } ;;
5733   xno)
5734     { echo "$as_me:$LINENO: result: unsupported" >&5
5735 echo "${ECHO_T}unsupported" >&6; } ;;
5736   *)
5737     CC="$CC $ac_cv_prog_cc_c89"
5738     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5739 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5740 esac
5741
5742
5743 ac_ext=c
5744 ac_cpp='$CPP $CPPFLAGS'
5745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5748
5749 depcc="$CC"   am_compiler_list=
5750
5751 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5752 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5753 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5757   # We make a subdir and do the tests there.  Otherwise we can end up
5758   # making bogus files that we don't know about and never remove.  For
5759   # instance it was reported that on HP-UX the gcc test will end up
5760   # making a dummy file named `D' -- because `-MD' means `put the output
5761   # in D'.
5762   mkdir conftest.dir
5763   # Copy depcomp to subdir because otherwise we won't find it if we're
5764   # using a relative directory.
5765   cp "$am_depcomp" conftest.dir
5766   cd conftest.dir
5767   # We will build objects and dependencies in a subdirectory because
5768   # it helps to detect inapplicable dependency modes.  For instance
5769   # both Tru64's cc and ICC support -MD to output dependencies as a
5770   # side effect of compilation, but ICC will put the dependencies in
5771   # the current directory while Tru64 will put them in the object
5772   # directory.
5773   mkdir sub
5774
5775   am_cv_CC_dependencies_compiler_type=none
5776   if test "$am_compiler_list" = ""; then
5777      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5778   fi
5779   for depmode in $am_compiler_list; do
5780     # Setup a source with many dependencies, because some compilers
5781     # like to wrap large dependency lists on column 80 (with \), and
5782     # we should not choose a depcomp mode which is confused by this.
5783     #
5784     # We need to recreate these files for each test, as the compiler may
5785     # overwrite some of them when testing with obscure command lines.
5786     # This happens at least with the AIX C compiler.
5787     : > sub/conftest.c
5788     for i in 1 2 3 4 5 6; do
5789       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5790       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5791       # Solaris 8's {/usr,}/bin/sh.
5792       touch sub/conftst$i.h
5793     done
5794     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5795
5796     case $depmode in
5797     nosideeffect)
5798       # after this tag, mechanisms are not by side-effect, so they'll
5799       # only be used when explicitly requested
5800       if test "x$enable_dependency_tracking" = xyes; then
5801         continue
5802       else
5803         break
5804       fi
5805       ;;
5806     none) break ;;
5807     esac
5808     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5809     # mode.  It turns out that the SunPro C++ compiler does not properly
5810     # handle `-M -o', and we need to detect this.
5811     if depmode=$depmode \
5812        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5813        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5814        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5815          >/dev/null 2>conftest.err &&
5816        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5817        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5818        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5819        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5820       # icc doesn't choke on unknown options, it will just issue warnings
5821       # or remarks (even with -Werror).  So we grep stderr for any message
5822       # that says an option was ignored or not supported.
5823       # When given -MP, icc 7.0 and 7.1 complain thusly:
5824       #   icc: Command line warning: ignoring option '-M'; no argument required
5825       # The diagnosis changed in icc 8.0:
5826       #   icc: Command line remark: option '-MP' not supported
5827       if (grep 'ignoring option' conftest.err ||
5828           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5829         am_cv_CC_dependencies_compiler_type=$depmode
5830         break
5831       fi
5832     fi
5833   done
5834
5835   cd ..
5836   rm -rf conftest.dir
5837 else
5838   am_cv_CC_dependencies_compiler_type=none
5839 fi
5840
5841 fi
5842 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5843 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5844 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5845
5846  if
5847   test "x$enable_dependency_tracking" != xno \
5848   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5849   am__fastdepCC_TRUE=
5850   am__fastdepCC_FALSE='#'
5851 else
5852   am__fastdepCC_TRUE='#'
5853   am__fastdepCC_FALSE=
5854 fi
5855
5856
5857 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5858 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5859 if test "${lt_cv_path_SED+set}" = set; then
5860   echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862   # Loop through the user's path and test for sed and gsed.
5863 # Then use that list of sed's as ones to test for truncation.
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867   IFS=$as_save_IFS
5868   test -z "$as_dir" && as_dir=.
5869   for lt_ac_prog in sed gsed; do
5870     for ac_exec_ext in '' $ac_executable_extensions; do
5871       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5872         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5873       fi
5874     done
5875   done
5876 done
5877 lt_ac_max=0
5878 lt_ac_count=0
5879 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5880 # along with /bin/sed that truncates output.
5881 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5882   test ! -f $lt_ac_sed && continue
5883   cat /dev/null > conftest.in
5884   lt_ac_count=0
5885   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5886   # Check for GNU sed and select it if it is found.
5887   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5888     lt_cv_path_SED=$lt_ac_sed
5889     break
5890   fi
5891   while true; do
5892     cat conftest.in conftest.in >conftest.tmp
5893     mv conftest.tmp conftest.in
5894     cp conftest.in conftest.nl
5895     echo >>conftest.nl
5896     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5897     cmp -s conftest.out conftest.nl || break
5898     # 10000 chars as input seems more than enough
5899     test $lt_ac_count -gt 10 && break
5900     lt_ac_count=`expr $lt_ac_count + 1`
5901     if test $lt_ac_count -gt $lt_ac_max; then
5902       lt_ac_max=$lt_ac_count
5903       lt_cv_path_SED=$lt_ac_sed
5904     fi
5905   done
5906 done
5907
5908 fi
5909
5910 SED=$lt_cv_path_SED
5911 { echo "$as_me:$LINENO: result: $SED" >&5
5912 echo "${ECHO_T}$SED" >&6; }
5913
5914 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5915 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5916 if test "${ac_cv_path_GREP+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   # Extract the first word of "grep ggrep" to use in msg output
5920 if test -z "$GREP"; then
5921 set dummy grep ggrep; ac_prog_name=$2
5922 if test "${ac_cv_path_GREP+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   ac_path_GREP_found=false
5926 # Loop through the user's path and test for each of PROGNAME-LIST
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932   for ac_prog in grep ggrep; do
5933   for ac_exec_ext in '' $ac_executable_extensions; do
5934     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5935     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5936     # Check for GNU ac_path_GREP and select it if it is found.
5937   # Check for GNU $ac_path_GREP
5938 case `"$ac_path_GREP" --version 2>&1` in
5939 *GNU*)
5940   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5941 *)
5942   ac_count=0
5943   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5944   while :
5945   do
5946     cat "conftest.in" "conftest.in" >"conftest.tmp"
5947     mv "conftest.tmp" "conftest.in"
5948     cp "conftest.in" "conftest.nl"
5949     echo 'GREP' >> "conftest.nl"
5950     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5951     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5952     ac_count=`expr $ac_count + 1`
5953     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5954       # Best one so far, save it but keep looking for a better one
5955       ac_cv_path_GREP="$ac_path_GREP"
5956       ac_path_GREP_max=$ac_count
5957     fi
5958     # 10*(2^10) chars as input seems more than enough
5959     test $ac_count -gt 10 && break
5960   done
5961   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5962 esac
5963
5964
5965     $ac_path_GREP_found && break 3
5966   done
5967 done
5968
5969 done
5970 IFS=$as_save_IFS
5971
5972
5973 fi
5974
5975 GREP="$ac_cv_path_GREP"
5976 if test -z "$GREP"; then
5977   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5978 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5979    { (exit 1); exit 1; }; }
5980 fi
5981
5982 else
5983   ac_cv_path_GREP=$GREP
5984 fi
5985
5986
5987 fi
5988 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5989 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5990  GREP="$ac_cv_path_GREP"
5991
5992
5993 { echo "$as_me:$LINENO: checking for egrep" >&5
5994 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5995 if test "${ac_cv_path_EGREP+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5999    then ac_cv_path_EGREP="$GREP -E"
6000    else
6001      # Extract the first word of "egrep" to use in msg output
6002 if test -z "$EGREP"; then
6003 set dummy egrep; ac_prog_name=$2
6004 if test "${ac_cv_path_EGREP+set}" = set; then
6005   echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007   ac_path_EGREP_found=false
6008 # Loop through the user's path and test for each of PROGNAME-LIST
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014   for ac_prog in egrep; do
6015   for ac_exec_ext in '' $ac_executable_extensions; do
6016     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6017     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6018     # Check for GNU ac_path_EGREP and select it if it is found.
6019   # Check for GNU $ac_path_EGREP
6020 case `"$ac_path_EGREP" --version 2>&1` in
6021 *GNU*)
6022   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6023 *)
6024   ac_count=0
6025   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6026   while :
6027   do
6028     cat "conftest.in" "conftest.in" >"conftest.tmp"
6029     mv "conftest.tmp" "conftest.in"
6030     cp "conftest.in" "conftest.nl"
6031     echo 'EGREP' >> "conftest.nl"
6032     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6033     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6034     ac_count=`expr $ac_count + 1`
6035     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6036       # Best one so far, save it but keep looking for a better one
6037       ac_cv_path_EGREP="$ac_path_EGREP"
6038       ac_path_EGREP_max=$ac_count
6039     fi
6040     # 10*(2^10) chars as input seems more than enough
6041     test $ac_count -gt 10 && break
6042   done
6043   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6044 esac
6045
6046
6047     $ac_path_EGREP_found && break 3
6048   done
6049 done
6050
6051 done
6052 IFS=$as_save_IFS
6053
6054
6055 fi
6056
6057 EGREP="$ac_cv_path_EGREP"
6058 if test -z "$EGREP"; then
6059   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6060 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6061    { (exit 1); exit 1; }; }
6062 fi
6063
6064 else
6065   ac_cv_path_EGREP=$EGREP
6066 fi
6067
6068
6069    fi
6070 fi
6071 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6072 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6073  EGREP="$ac_cv_path_EGREP"
6074
6075
6076
6077 # Check whether --with-gnu-ld was given.
6078 if test "${with_gnu_ld+set}" = set; then
6079   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6080 else
6081   with_gnu_ld=no
6082 fi
6083
6084 ac_prog=ld
6085 if test "$GCC" = yes; then
6086   # Check if gcc -print-prog-name=ld gives a path.
6087   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6088 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6089   case $host in
6090   *-*-mingw*)
6091     # gcc leaves a trailing carriage return which upsets mingw
6092     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6093   *)
6094     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6095   esac
6096   case $ac_prog in
6097     # Accept absolute paths.
6098     [\\/]* | ?:[\\/]*)
6099       re_direlt='/[^/][^/]*/\.\./'
6100       # Canonicalize the pathname of ld
6101       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6102       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6103         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6104       done
6105       test -z "$LD" && LD="$ac_prog"
6106       ;;
6107   "")
6108     # If it fails, then pretend we aren't using GCC.
6109     ac_prog=ld
6110     ;;
6111   *)
6112     # If it is relative, then search for the first ld in PATH.
6113     with_gnu_ld=unknown
6114     ;;
6115   esac
6116 elif test "$with_gnu_ld" = yes; then
6117   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6118 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6119 else
6120   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6121 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6122 fi
6123 if test "${lt_cv_path_LD+set}" = set; then
6124   echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126   if test -z "$LD"; then
6127   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6128   for ac_dir in $PATH; do
6129     IFS="$lt_save_ifs"
6130     test -z "$ac_dir" && ac_dir=.
6131     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6132       lt_cv_path_LD="$ac_dir/$ac_prog"
6133       # Check to see if the program is GNU ld.  I'd rather use --version,
6134       # but apparently some variants of GNU ld only accept -v.
6135       # Break only if it was the GNU/non-GNU ld that we prefer.
6136       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6137       *GNU* | *'with BFD'*)
6138         test "$with_gnu_ld" != no && break
6139         ;;
6140       *)
6141         test "$with_gnu_ld" != yes && break
6142         ;;
6143       esac
6144     fi
6145   done
6146   IFS="$lt_save_ifs"
6147 else
6148   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6149 fi
6150 fi
6151
6152 LD="$lt_cv_path_LD"
6153 if test -n "$LD"; then
6154   { echo "$as_me:$LINENO: result: $LD" >&5
6155 echo "${ECHO_T}$LD" >&6; }
6156 else
6157   { echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6; }
6159 fi
6160 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6161 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6162    { (exit 1); exit 1; }; }
6163 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6164 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6165 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6169 case `$LD -v 2>&1 </dev/null` in
6170 *GNU* | *'with BFD'*)
6171   lt_cv_prog_gnu_ld=yes
6172   ;;
6173 *)
6174   lt_cv_prog_gnu_ld=no
6175   ;;
6176 esac
6177 fi
6178 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6179 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6180 with_gnu_ld=$lt_cv_prog_gnu_ld
6181
6182
6183 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6184 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6185 if test "${lt_cv_ld_reload_flag+set}" = set; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   lt_cv_ld_reload_flag='-r'
6189 fi
6190 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6191 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6192 reload_flag=$lt_cv_ld_reload_flag
6193 case $reload_flag in
6194 "" | " "*) ;;
6195 *) reload_flag=" $reload_flag" ;;
6196 esac
6197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6198 case $host_os in
6199   darwin*)
6200     if test "$GCC" = yes; then
6201       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6202     else
6203       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6204     fi
6205     ;;
6206 esac
6207
6208 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6209 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6210 if test "${lt_cv_path_NM+set}" = set; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213   if test -n "$NM"; then
6214   # Let the user override the test.
6215   lt_cv_path_NM="$NM"
6216 else
6217   lt_nm_to_check="${ac_tool_prefix}nm"
6218   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6219     lt_nm_to_check="$lt_nm_to_check nm"
6220   fi
6221   for lt_tmp_nm in $lt_nm_to_check; do
6222     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6223     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6224       IFS="$lt_save_ifs"
6225       test -z "$ac_dir" && ac_dir=.
6226       tmp_nm="$ac_dir/$lt_tmp_nm"
6227       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6228         # Check to see if the nm accepts a BSD-compat flag.
6229         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6230         #   nm: unknown option "B" ignored
6231         # Tru64's nm complains that /dev/null is an invalid object file
6232         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6233         */dev/null* | *'Invalid file or object type'*)
6234           lt_cv_path_NM="$tmp_nm -B"
6235           break
6236           ;;
6237         *)
6238           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6239           */dev/null*)
6240             lt_cv_path_NM="$tmp_nm -p"
6241             break
6242             ;;
6243           *)
6244             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6245             continue # so that we can try to find one that supports BSD flags
6246             ;;
6247           esac
6248           ;;
6249         esac
6250       fi
6251     done
6252     IFS="$lt_save_ifs"
6253   done
6254   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6255 fi
6256 fi
6257 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6258 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6259 NM="$lt_cv_path_NM"
6260
6261 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6262 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6263 LN_S=$as_ln_s
6264 if test "$LN_S" = "ln -s"; then
6265   { echo "$as_me:$LINENO: result: yes" >&5
6266 echo "${ECHO_T}yes" >&6; }
6267 else
6268   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6269 echo "${ECHO_T}no, using $LN_S" >&6; }
6270 fi
6271
6272 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6273 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6274 if test "${lt_cv_deplibs_check_method+set}" = set; then
6275   echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277   lt_cv_file_magic_cmd='$MAGIC_CMD'
6278 lt_cv_file_magic_test_file=
6279 lt_cv_deplibs_check_method='unknown'
6280 # Need to set the preceding variable on all platforms that support
6281 # interlibrary dependencies.
6282 # 'none' -- dependencies not supported.
6283 # `unknown' -- same as none, but documents that we really don't know.
6284 # 'pass_all' -- all dependencies passed with no checks.
6285 # 'test_compile' -- check by making test program.
6286 # 'file_magic [[regex]]' -- check by looking for files in library path
6287 # which responds to the $file_magic_cmd with a given extended regex.
6288 # If you have `file' or equivalent on your system and you're not sure
6289 # whether `pass_all' will *always* work, you probably want this one.
6290
6291 case $host_os in
6292 aix4* | aix5*)
6293   lt_cv_deplibs_check_method=pass_all
6294   ;;
6295
6296 beos*)
6297   lt_cv_deplibs_check_method=pass_all
6298   ;;
6299
6300 bsdi[45]*)
6301   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6302   lt_cv_file_magic_cmd='/usr/bin/file -L'
6303   lt_cv_file_magic_test_file=/shlib/libc.so
6304   ;;
6305
6306 cygwin*)
6307   # func_win32_libid is a shell function defined in ltmain.sh
6308   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6309   lt_cv_file_magic_cmd='func_win32_libid'
6310   ;;
6311
6312 mingw* | pw32*)
6313   # Base MSYS/MinGW do not provide the 'file' command needed by
6314   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6315   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6316   lt_cv_file_magic_cmd='$OBJDUMP -f'
6317   ;;
6318
6319 darwin* | rhapsody*)
6320   lt_cv_deplibs_check_method=pass_all
6321   ;;
6322
6323 freebsd* | kfreebsd*-gnu | dragonfly*)
6324   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6325     case $host_cpu in
6326     i*86 )
6327       # Not sure whether the presence of OpenBSD here was a mistake.
6328       # Let's accept both of them until this is cleared up.
6329       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6330       lt_cv_file_magic_cmd=/usr/bin/file
6331       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6332       ;;
6333     esac
6334   else
6335     lt_cv_deplibs_check_method=pass_all
6336   fi
6337   ;;
6338
6339 gnu*)
6340   lt_cv_deplibs_check_method=pass_all
6341   ;;
6342
6343 hpux10.20* | hpux11*)
6344   lt_cv_file_magic_cmd=/usr/bin/file
6345   case $host_cpu in
6346   ia64*)
6347     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6348     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6349     ;;
6350   hppa*64*)
6351     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]'
6352     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6353     ;;
6354   *)
6355     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6356     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6357     ;;
6358   esac
6359   ;;
6360
6361 interix3*)
6362   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6363   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6364   ;;
6365
6366 irix5* | irix6* | nonstopux*)
6367   case $LD in
6368   *-32|*"-32 ") libmagic=32-bit;;
6369   *-n32|*"-n32 ") libmagic=N32;;
6370   *-64|*"-64 ") libmagic=64-bit;;
6371   *) libmagic=never-match;;
6372   esac
6373   lt_cv_deplibs_check_method=pass_all
6374   ;;
6375
6376 # This must be Linux ELF.
6377 linux*)
6378   lt_cv_deplibs_check_method=pass_all
6379   ;;
6380
6381 netbsd*)
6382   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6383     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6384   else
6385     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6386   fi
6387   ;;
6388
6389 newos6*)
6390   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6391   lt_cv_file_magic_cmd=/usr/bin/file
6392   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6393   ;;
6394
6395 nto-qnx*)
6396   lt_cv_deplibs_check_method=unknown
6397   ;;
6398
6399 openbsd*)
6400   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6401     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6402   else
6403     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6404   fi
6405   ;;
6406
6407 osf3* | osf4* | osf5*)
6408   lt_cv_deplibs_check_method=pass_all
6409   ;;
6410
6411 solaris*)
6412   lt_cv_deplibs_check_method=pass_all
6413   ;;
6414
6415 sysv4 | sysv4.3*)
6416   case $host_vendor in
6417   motorola)
6418     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]'
6419     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6420     ;;
6421   ncr)
6422     lt_cv_deplibs_check_method=pass_all
6423     ;;
6424   sequent)
6425     lt_cv_file_magic_cmd='/bin/file'
6426     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6427     ;;
6428   sni)
6429     lt_cv_file_magic_cmd='/bin/file'
6430     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6431     lt_cv_file_magic_test_file=/lib/libc.so
6432     ;;
6433   siemens)
6434     lt_cv_deplibs_check_method=pass_all
6435     ;;
6436   pc)
6437     lt_cv_deplibs_check_method=pass_all
6438     ;;
6439   esac
6440   ;;
6441
6442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6443   lt_cv_deplibs_check_method=pass_all
6444   ;;
6445 esac
6446
6447 fi
6448 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6449 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6450 file_magic_cmd=$lt_cv_file_magic_cmd
6451 deplibs_check_method=$lt_cv_deplibs_check_method
6452 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6453
6454
6455
6456
6457 # If no C compiler was specified, use CC.
6458 LTCC=${LTCC-"$CC"}
6459
6460 # If no C compiler flags were specified, use CFLAGS.
6461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6462
6463 # Allow CC to be a program name with arguments.
6464 compiler=$CC
6465
6466
6467 # Check whether --enable-libtool-lock was given.
6468 if test "${enable_libtool_lock+set}" = set; then
6469   enableval=$enable_libtool_lock;
6470 fi
6471
6472 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6473
6474 # Some flags need to be propagated to the compiler or linker for good
6475 # libtool support.
6476 case $host in
6477 ia64-*-hpux*)
6478   # Find out which ABI we are using.
6479   echo 'int i;' > conftest.$ac_ext
6480   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481   (eval $ac_compile) 2>&5
6482   ac_status=$?
6483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); }; then
6485     case `/usr/bin/file conftest.$ac_objext` in
6486     *ELF-32*)
6487       HPUX_IA64_MODE="32"
6488       ;;
6489     *ELF-64*)
6490       HPUX_IA64_MODE="64"
6491       ;;
6492     esac
6493   fi
6494   rm -rf conftest*
6495   ;;
6496 *-*-irix6*)
6497   # Find out which ABI we are using.
6498   echo '#line 6498 "configure"' > conftest.$ac_ext
6499   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500   (eval $ac_compile) 2>&5
6501   ac_status=$?
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); }; then
6504    if test "$lt_cv_prog_gnu_ld" = yes; then
6505     case `/usr/bin/file conftest.$ac_objext` in
6506     *32-bit*)
6507       LD="${LD-ld} -melf32bsmip"
6508       ;;
6509     *N32*)
6510       LD="${LD-ld} -melf32bmipn32"
6511       ;;
6512     *64-bit*)
6513       LD="${LD-ld} -melf64bmip"
6514       ;;
6515     esac
6516    else
6517     case `/usr/bin/file conftest.$ac_objext` in
6518     *32-bit*)
6519       LD="${LD-ld} -32"
6520       ;;
6521     *N32*)
6522       LD="${LD-ld} -n32"
6523       ;;
6524     *64-bit*)
6525       LD="${LD-ld} -64"
6526       ;;
6527     esac
6528    fi
6529   fi
6530   rm -rf conftest*
6531   ;;
6532
6533 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6534   # Find out which ABI we are using.
6535   echo 'int i;' > conftest.$ac_ext
6536   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537   (eval $ac_compile) 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); }; then
6541     case `/usr/bin/file conftest.o` in
6542     *32-bit*)
6543       case $host in
6544         x86_64-*linux*)
6545           LD="${LD-ld} -m elf_i386"
6546           ;;
6547         ppc64-*linux*|powerpc64-*linux*)
6548           LD="${LD-ld} -m elf32ppclinux"
6549           ;;
6550         s390x-*linux*)
6551           LD="${LD-ld} -m elf_s390"
6552           ;;
6553         sparc64-*linux*)
6554           LD="${LD-ld} -m elf32_sparc"
6555           ;;
6556       esac
6557       ;;
6558     *64-bit*)
6559       case $host in
6560         x86_64-*linux*)
6561           LD="${LD-ld} -m elf_x86_64"
6562           ;;
6563         ppc*-*linux*|powerpc*-*linux*)
6564           LD="${LD-ld} -m elf64ppc"
6565           ;;
6566         s390*-*linux*)
6567           LD="${LD-ld} -m elf64_s390"
6568           ;;
6569         sparc*-*linux*)
6570           LD="${LD-ld} -m elf64_sparc"
6571           ;;
6572       esac
6573       ;;
6574     esac
6575   fi
6576   rm -rf conftest*
6577   ;;
6578
6579 *-*-sco3.2v5*)
6580   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6581   SAVE_CFLAGS="$CFLAGS"
6582   CFLAGS="$CFLAGS -belf"
6583   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6584 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6585 if test "${lt_cv_cc_needs_belf+set}" = set; then
6586   echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588   ac_ext=c
6589 ac_cpp='$CPP $CPPFLAGS'
6590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6593
6594      cat >conftest.$ac_ext <<_ACEOF
6595 /* confdefs.h.  */
6596 _ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h.  */
6600
6601 int
6602 main ()
6603 {
6604
6605   ;
6606   return 0;
6607 }
6608 _ACEOF
6609 rm -f conftest.$ac_objext conftest$ac_exeext
6610 if { (ac_try="$ac_link"
6611 case "(($ac_try" in
6612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613   *) ac_try_echo=$ac_try;;
6614 esac
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616   (eval "$ac_link") 2>conftest.er1
6617   ac_status=$?
6618   grep -v '^ *+' conftest.er1 >conftest.err
6619   rm -f conftest.er1
6620   cat conftest.err >&5
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); } && {
6623          test -z "$ac_c_werror_flag" ||
6624          test ! -s conftest.err
6625        } && test -s conftest$ac_exeext &&
6626        $as_test_x conftest$ac_exeext; then
6627   lt_cv_cc_needs_belf=yes
6628 else
6629   echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6631
6632         lt_cv_cc_needs_belf=no
6633 fi
6634
6635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6636       conftest$ac_exeext conftest.$ac_ext
6637      ac_ext=c
6638 ac_cpp='$CPP $CPPFLAGS'
6639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6642
6643 fi
6644 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6645 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6646   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6647     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6648     CFLAGS="$SAVE_CFLAGS"
6649   fi
6650   ;;
6651 sparc*-*solaris*)
6652   # Find out which ABI we are using.
6653   echo 'int i;' > conftest.$ac_ext
6654   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655   (eval $ac_compile) 2>&5
6656   ac_status=$?
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); }; then
6659     case `/usr/bin/file conftest.o` in
6660     *64-bit*)
6661       case $lt_cv_prog_gnu_ld in
6662       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6663       *)    LD="${LD-ld} -64" ;;
6664       esac
6665       ;;
6666     esac
6667   fi
6668   rm -rf conftest*
6669   ;;
6670
6671 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6672   if test -n "$ac_tool_prefix"; then
6673   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   if test -n "$DLLTOOL"; then
6681   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688   for ac_exec_ext in '' $ac_executable_extensions; do
6689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 DLLTOOL=$ac_cv_prog_DLLTOOL
6701 if test -n "$DLLTOOL"; then
6702   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6703 echo "${ECHO_T}$DLLTOOL" >&6; }
6704 else
6705   { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6707 fi
6708
6709
6710 fi
6711 if test -z "$ac_cv_prog_DLLTOOL"; then
6712   ac_ct_DLLTOOL=$DLLTOOL
6713   # Extract the first word of "dlltool", so it can be a program name with args.
6714 set dummy dlltool; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6718   echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720   if test -n "$ac_ct_DLLTOOL"; then
6721   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728   for ac_exec_ext in '' $ac_executable_extensions; do
6729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6741 if test -n "$ac_ct_DLLTOOL"; then
6742   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6743 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6744 else
6745   { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6747 fi
6748
6749   if test "x$ac_ct_DLLTOOL" = x; then
6750     DLLTOOL="false"
6751   else
6752     case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6755 whose name does not start with the host triplet.  If you think this
6756 configuration is useful to you, please write to autoconf@gnu.org." >&5
6757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet.  If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762     DLLTOOL=$ac_ct_DLLTOOL
6763   fi
6764 else
6765   DLLTOOL="$ac_cv_prog_DLLTOOL"
6766 fi
6767
6768   if test -n "$ac_tool_prefix"; then
6769   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}as; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_AS+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   if test -n "$AS"; then
6777   ac_cv_prog_AS="$AS" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_prog_AS="${ac_tool_prefix}as"
6787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 AS=$ac_cv_prog_AS
6797 if test -n "$AS"; then
6798   { echo "$as_me:$LINENO: result: $AS" >&5
6799 echo "${ECHO_T}$AS" >&6; }
6800 else
6801   { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6803 fi
6804
6805
6806 fi
6807 if test -z "$ac_cv_prog_AS"; then
6808   ac_ct_AS=$AS
6809   # Extract the first word of "as", so it can be a program name with args.
6810 set dummy as; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   if test -n "$ac_ct_AS"; then
6817   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824   for ac_exec_ext in '' $ac_executable_extensions; do
6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826     ac_cv_prog_ac_ct_AS="as"
6827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6837 if test -n "$ac_ct_AS"; then
6838   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6839 echo "${ECHO_T}$ac_ct_AS" >&6; }
6840 else
6841   { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6843 fi
6844
6845   if test "x$ac_ct_AS" = x; then
6846     AS="false"
6847   else
6848     case $cross_compiling:$ac_tool_warned in
6849 yes:)
6850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6851 whose name does not start with the host triplet.  If you think this
6852 configuration is useful to you, please write to autoconf@gnu.org." >&5
6853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6854 whose name does not start with the host triplet.  If you think this
6855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6856 ac_tool_warned=yes ;;
6857 esac
6858     AS=$ac_ct_AS
6859   fi
6860 else
6861   AS="$ac_cv_prog_AS"
6862 fi
6863
6864   if test -n "$ac_tool_prefix"; then
6865   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   if test -n "$OBJDUMP"; then
6873   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880   for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 OBJDUMP=$ac_cv_prog_OBJDUMP
6893 if test -n "$OBJDUMP"; then
6894   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6895 echo "${ECHO_T}$OBJDUMP" >&6; }
6896 else
6897   { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6899 fi
6900
6901
6902 fi
6903 if test -z "$ac_cv_prog_OBJDUMP"; then
6904   ac_ct_OBJDUMP=$OBJDUMP
6905   # Extract the first word of "objdump", so it can be a program name with args.
6906 set dummy objdump; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   if test -n "$ac_ct_OBJDUMP"; then
6913   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918   IFS=$as_save_IFS
6919   test -z "$as_dir" && as_dir=.
6920   for ac_exec_ext in '' $ac_executable_extensions; do
6921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924     break 2
6925   fi
6926 done
6927 done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6933 if test -n "$ac_ct_OBJDUMP"; then
6934   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6935 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6936 else
6937   { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6939 fi
6940
6941   if test "x$ac_ct_OBJDUMP" = x; then
6942     OBJDUMP="false"
6943   else
6944     case $cross_compiling:$ac_tool_warned in
6945 yes:)
6946 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6947 whose name does not start with the host triplet.  If you think this
6948 configuration is useful to you, please write to autoconf@gnu.org." >&5
6949 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6950 whose name does not start with the host triplet.  If you think this
6951 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6952 ac_tool_warned=yes ;;
6953 esac
6954     OBJDUMP=$ac_ct_OBJDUMP
6955   fi
6956 else
6957   OBJDUMP="$ac_cv_prog_OBJDUMP"
6958 fi
6959
6960   ;;
6961
6962 esac
6963
6964 need_locks="$enable_libtool_lock"
6965
6966
6967 ac_ext=c
6968 ac_cpp='$CPP $CPPFLAGS'
6969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6973 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6974 # On Suns, sometimes $CPP names a directory.
6975 if test -n "$CPP" && test -d "$CPP"; then
6976   CPP=
6977 fi
6978 if test -z "$CPP"; then
6979   if test "${ac_cv_prog_CPP+set}" = set; then
6980   echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982       # Double quotes because CPP needs to be expanded
6983     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6984     do
6985       ac_preproc_ok=false
6986 for ac_c_preproc_warn_flag in '' yes
6987 do
6988   # Use a header file that comes with gcc, so configuring glibc
6989   # with a fresh cross-compiler works.
6990   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6991   # <limits.h> exists even on freestanding compilers.
6992   # On the NeXT, cc -E runs the code through the compiler's parser,
6993   # not just through cpp. "Syntax error" is here to catch this case.
6994   cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h.  */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h.  */
7000 #ifdef __STDC__
7001 # include <limits.h>
7002 #else
7003 # include <assert.h>
7004 #endif
7005                      Syntax error
7006 _ACEOF
7007 if { (ac_try="$ac_cpp conftest.$ac_ext"
7008 case "(($ac_try" in
7009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010   *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7014   ac_status=$?
7015   grep -v '^ *+' conftest.er1 >conftest.err
7016   rm -f conftest.er1
7017   cat conftest.err >&5
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); } >/dev/null && {
7020          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7021          test ! -s conftest.err
7022        }; then
7023   :
7024 else
7025   echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028   # Broken: fails on valid input.
7029 continue
7030 fi
7031
7032 rm -f conftest.err conftest.$ac_ext
7033
7034   # OK, works on sane cases.  Now check whether nonexistent headers
7035   # can be detected and how.
7036   cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 #include <ac_nonexistent.h>
7043 _ACEOF
7044 if { (ac_try="$ac_cpp conftest.$ac_ext"
7045 case "(($ac_try" in
7046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047   *) ac_try_echo=$ac_try;;
7048 esac
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7051   ac_status=$?
7052   grep -v '^ *+' conftest.er1 >conftest.err
7053   rm -f conftest.er1
7054   cat conftest.err >&5
7055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056   (exit $ac_status); } >/dev/null && {
7057          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7058          test ! -s conftest.err
7059        }; then
7060   # Broken: success on invalid input.
7061 continue
7062 else
7063   echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7065
7066   # Passes both tests.
7067 ac_preproc_ok=:
7068 break
7069 fi
7070
7071 rm -f conftest.err conftest.$ac_ext
7072
7073 done
7074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7075 rm -f conftest.err conftest.$ac_ext
7076 if $ac_preproc_ok; then
7077   break
7078 fi
7079
7080     done
7081     ac_cv_prog_CPP=$CPP
7082
7083 fi
7084   CPP=$ac_cv_prog_CPP
7085 else
7086   ac_cv_prog_CPP=$CPP
7087 fi
7088 { echo "$as_me:$LINENO: result: $CPP" >&5
7089 echo "${ECHO_T}$CPP" >&6; }
7090 ac_preproc_ok=false
7091 for ac_c_preproc_warn_flag in '' yes
7092 do
7093   # Use a header file that comes with gcc, so configuring glibc
7094   # with a fresh cross-compiler works.
7095   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7096   # <limits.h> exists even on freestanding compilers.
7097   # On the NeXT, cc -E runs the code through the compiler's parser,
7098   # not just through cpp. "Syntax error" is here to catch this case.
7099   cat >conftest.$ac_ext <<_ACEOF
7100 /* confdefs.h.  */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h.  */
7105 #ifdef __STDC__
7106 # include <limits.h>
7107 #else
7108 # include <assert.h>
7109 #endif
7110                      Syntax error
7111 _ACEOF
7112 if { (ac_try="$ac_cpp conftest.$ac_ext"
7113 case "(($ac_try" in
7114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115   *) ac_try_echo=$ac_try;;
7116 esac
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7119   ac_status=$?
7120   grep -v '^ *+' conftest.er1 >conftest.err
7121   rm -f conftest.er1
7122   cat conftest.err >&5
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } >/dev/null && {
7125          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7126          test ! -s conftest.err
7127        }; then
7128   :
7129 else
7130   echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133   # Broken: fails on valid input.
7134 continue
7135 fi
7136
7137 rm -f conftest.err conftest.$ac_ext
7138
7139   # OK, works on sane cases.  Now check whether nonexistent headers
7140   # can be detected and how.
7141   cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h.  */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h.  */
7147 #include <ac_nonexistent.h>
7148 _ACEOF
7149 if { (ac_try="$ac_cpp conftest.$ac_ext"
7150 case "(($ac_try" in
7151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152   *) ac_try_echo=$ac_try;;
7153 esac
7154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7156   ac_status=$?
7157   grep -v '^ *+' conftest.er1 >conftest.err
7158   rm -f conftest.er1
7159   cat conftest.err >&5
7160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161   (exit $ac_status); } >/dev/null && {
7162          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7163          test ! -s conftest.err
7164        }; then
7165   # Broken: success on invalid input.
7166 continue
7167 else
7168   echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7170
7171   # Passes both tests.
7172 ac_preproc_ok=:
7173 break
7174 fi
7175
7176 rm -f conftest.err conftest.$ac_ext
7177
7178 done
7179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7180 rm -f conftest.err conftest.$ac_ext
7181 if $ac_preproc_ok; then
7182   :
7183 else
7184   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7185 See \`config.log' for more details." >&5
7186 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7187 See \`config.log' for more details." >&2;}
7188    { (exit 1); exit 1; }; }
7189 fi
7190
7191 ac_ext=c
7192 ac_cpp='$CPP $CPPFLAGS'
7193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7196
7197
7198 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7200 if test "${ac_cv_header_stdc+set}" = set; then
7201   echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203   cat >conftest.$ac_ext <<_ACEOF
7204 /* confdefs.h.  */
7205 _ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h.  */
7209 #include <stdlib.h>
7210 #include <stdarg.h>
7211 #include <string.h>
7212 #include <float.h>
7213
7214 int
7215 main ()
7216 {
7217
7218   ;
7219   return 0;
7220 }
7221 _ACEOF
7222 rm -f conftest.$ac_objext
7223 if { (ac_try="$ac_compile"
7224 case "(($ac_try" in
7225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226   *) ac_try_echo=$ac_try;;
7227 esac
7228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7229   (eval "$ac_compile") 2>conftest.er1
7230   ac_status=$?
7231   grep -v '^ *+' conftest.er1 >conftest.err
7232   rm -f conftest.er1
7233   cat conftest.err >&5
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); } && {
7236          test -z "$ac_c_werror_flag" ||
7237          test ! -s conftest.err
7238        } && test -s conftest.$ac_objext; then
7239   ac_cv_header_stdc=yes
7240 else
7241   echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7243
7244         ac_cv_header_stdc=no
7245 fi
7246
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248
7249 if test $ac_cv_header_stdc = yes; then
7250   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7251   cat >conftest.$ac_ext <<_ACEOF
7252 /* confdefs.h.  */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h.  */
7257 #include <string.h>
7258
7259 _ACEOF
7260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7261   $EGREP "memchr" >/dev/null 2>&1; then
7262   :
7263 else
7264   ac_cv_header_stdc=no
7265 fi
7266 rm -f conftest*
7267
7268 fi
7269
7270 if test $ac_cv_header_stdc = yes; then
7271   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7272   cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h.  */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h.  */
7278 #include <stdlib.h>
7279
7280 _ACEOF
7281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7282   $EGREP "free" >/dev/null 2>&1; then
7283   :
7284 else
7285   ac_cv_header_stdc=no
7286 fi
7287 rm -f conftest*
7288
7289 fi
7290
7291 if test $ac_cv_header_stdc = yes; then
7292   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7293   if test "$cross_compiling" = yes; then
7294   :
7295 else
7296   cat >conftest.$ac_ext <<_ACEOF
7297 /* confdefs.h.  */
7298 _ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h.  */
7302 #include <ctype.h>
7303 #include <stdlib.h>
7304 #if ((' ' & 0x0FF) == 0x020)
7305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7307 #else
7308 # define ISLOWER(c) \
7309                    (('a' <= (c) && (c) <= 'i') \
7310                      || ('j' <= (c) && (c) <= 'r') \
7311                      || ('s' <= (c) && (c) <= 'z'))
7312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7313 #endif
7314
7315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7316 int
7317 main ()
7318 {
7319   int i;
7320   for (i = 0; i < 256; i++)
7321     if (XOR (islower (i), ISLOWER (i))
7322         || toupper (i) != TOUPPER (i))
7323       return 2;
7324   return 0;
7325 }
7326 _ACEOF
7327 rm -f conftest$ac_exeext
7328 if { (ac_try="$ac_link"
7329 case "(($ac_try" in
7330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331   *) ac_try_echo=$ac_try;;
7332 esac
7333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7334   (eval "$ac_link") 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7338   { (case "(($ac_try" in
7339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340   *) ac_try_echo=$ac_try;;
7341 esac
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343   (eval "$ac_try") 2>&5
7344   ac_status=$?
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); }; }; then
7347   :
7348 else
7349   echo "$as_me: program exited with status $ac_status" >&5
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7352
7353 ( exit $ac_status )
7354 ac_cv_header_stdc=no
7355 fi
7356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7357 fi
7358
7359
7360 fi
7361 fi
7362 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7363 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7364 if test $ac_cv_header_stdc = yes; then
7365
7366 cat >>confdefs.h <<\_ACEOF
7367 #define STDC_HEADERS 1
7368 _ACEOF
7369
7370 fi
7371
7372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7383                   inttypes.h stdint.h unistd.h
7384 do
7385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h.  */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h.  */
7397 $ac_includes_default
7398
7399 #include <$ac_header>
7400 _ACEOF
7401 rm -f conftest.$ac_objext
7402 if { (ac_try="$ac_compile"
7403 case "(($ac_try" in
7404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405   *) ac_try_echo=$ac_try;;
7406 esac
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408   (eval "$ac_compile") 2>conftest.er1
7409   ac_status=$?
7410   grep -v '^ *+' conftest.er1 >conftest.err
7411   rm -f conftest.er1
7412   cat conftest.err >&5
7413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414   (exit $ac_status); } && {
7415          test -z "$ac_c_werror_flag" ||
7416          test ! -s conftest.err
7417        } && test -s conftest.$ac_objext; then
7418   eval "$as_ac_Header=yes"
7419 else
7420   echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423         eval "$as_ac_Header=no"
7424 fi
7425
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427 fi
7428 ac_res=`eval echo '${'$as_ac_Header'}'`
7429                { echo "$as_me:$LINENO: result: $ac_res" >&5
7430 echo "${ECHO_T}$ac_res" >&6; }
7431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7432   cat >>confdefs.h <<_ACEOF
7433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7434 _ACEOF
7435
7436 fi
7437
7438 done
7439
7440
7441
7442 for ac_header in dlfcn.h
7443 do
7444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7446   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7449   echo $ECHO_N "(cached) $ECHO_C" >&6
7450 fi
7451 ac_res=`eval echo '${'$as_ac_Header'}'`
7452                { echo "$as_me:$LINENO: result: $ac_res" >&5
7453 echo "${ECHO_T}$ac_res" >&6; }
7454 else
7455   # Is the header compilable?
7456 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7458 cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h.  */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h.  */
7464 $ac_includes_default
7465 #include <$ac_header>
7466 _ACEOF
7467 rm -f conftest.$ac_objext
7468 if { (ac_try="$ac_compile"
7469 case "(($ac_try" in
7470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471   *) ac_try_echo=$ac_try;;
7472 esac
7473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7474   (eval "$ac_compile") 2>conftest.er1
7475   ac_status=$?
7476   grep -v '^ *+' conftest.er1 >conftest.err
7477   rm -f conftest.er1
7478   cat conftest.err >&5
7479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480   (exit $ac_status); } && {
7481          test -z "$ac_c_werror_flag" ||
7482          test ! -s conftest.err
7483        } && test -s conftest.$ac_objext; then
7484   ac_header_compiler=yes
7485 else
7486   echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7488
7489         ac_header_compiler=no
7490 fi
7491
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7494 echo "${ECHO_T}$ac_header_compiler" >&6; }
7495
7496 # Is the header present?
7497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7499 cat >conftest.$ac_ext <<_ACEOF
7500 /* confdefs.h.  */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h.  */
7505 #include <$ac_header>
7506 _ACEOF
7507 if { (ac_try="$ac_cpp conftest.$ac_ext"
7508 case "(($ac_try" in
7509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510   *) ac_try_echo=$ac_try;;
7511 esac
7512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7514   ac_status=$?
7515   grep -v '^ *+' conftest.er1 >conftest.err
7516   rm -f conftest.er1
7517   cat conftest.err >&5
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); } >/dev/null && {
7520          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7521          test ! -s conftest.err
7522        }; then
7523   ac_header_preproc=yes
7524 else
7525   echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528   ac_header_preproc=no
7529 fi
7530
7531 rm -f conftest.err conftest.$ac_ext
7532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7533 echo "${ECHO_T}$ac_header_preproc" >&6; }
7534
7535 # So?  What about this header?
7536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7537   yes:no: )
7538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7542     ac_header_preproc=yes
7543     ;;
7544   no:yes:* )
7545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7547     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7548 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7549     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7551     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7552 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7555     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7557     ( cat <<\_ASBOX
7558 ## --------------------------------------------- ##
7559 ## Report this to <http://www.openldap.org/its/> ##
7560 ## --------------------------------------------- ##
7561 _ASBOX
7562      ) | sed "s/^/$as_me: WARNING:     /" >&2
7563     ;;
7564 esac
7565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7568   echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570   eval "$as_ac_Header=\$ac_header_preproc"
7571 fi
7572 ac_res=`eval echo '${'$as_ac_Header'}'`
7573                { echo "$as_me:$LINENO: result: $ac_res" >&5
7574 echo "${ECHO_T}$ac_res" >&6; }
7575
7576 fi
7577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7578   cat >>confdefs.h <<_ACEOF
7579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7580 _ACEOF
7581
7582 fi
7583
7584 done
7585
7586
7587 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7588
7589 # find the maximum length of command line arguments
7590 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7591 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7592 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595     i=0
7596   teststring="ABCD"
7597
7598   case $build_os in
7599   msdosdjgpp*)
7600     # On DJGPP, this test can blow up pretty badly due to problems in libc
7601     # (any single argument exceeding 2000 bytes causes a buffer overrun
7602     # during glob expansion).  Even if it were fixed, the result of this
7603     # check would be larger than it should be.
7604     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7605     ;;
7606
7607   gnu*)
7608     # Under GNU Hurd, this test is not required because there is
7609     # no limit to the length of command line arguments.
7610     # Libtool will interpret -1 as no limit whatsoever
7611     lt_cv_sys_max_cmd_len=-1;
7612     ;;
7613
7614   cygwin* | mingw*)
7615     # On Win9x/ME, this test blows up -- it succeeds, but takes
7616     # about 5 minutes as the teststring grows exponentially.
7617     # Worse, since 9x/ME are not pre-emptively multitasking,
7618     # you end up with a "frozen" computer, even though with patience
7619     # the test eventually succeeds (with a max line length of 256k).
7620     # Instead, let's just punt: use the minimum linelength reported by
7621     # all of the supported platforms: 8192 (on NT/2K/XP).
7622     lt_cv_sys_max_cmd_len=8192;
7623     ;;
7624
7625   amigaos*)
7626     # On AmigaOS with pdksh, this test takes hours, literally.
7627     # So we just punt and use a minimum line length of 8192.
7628     lt_cv_sys_max_cmd_len=8192;
7629     ;;
7630
7631   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7632     # This has been around since 386BSD, at least.  Likely further.
7633     if test -x /sbin/sysctl; then
7634       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7635     elif test -x /usr/sbin/sysctl; then
7636       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7637     else
7638       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7639     fi
7640     # And add a safety zone
7641     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7642     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7643     ;;
7644
7645   interix*)
7646     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7647     lt_cv_sys_max_cmd_len=196608
7648     ;;
7649
7650   osf*)
7651     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7652     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7653     # nice to cause kernel panics so lets avoid the loop below.
7654     # First set a reasonable default.
7655     lt_cv_sys_max_cmd_len=16384
7656     #
7657     if test -x /sbin/sysconfig; then
7658       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7659         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7660       esac
7661     fi
7662     ;;
7663   sco3.2v5*)
7664     lt_cv_sys_max_cmd_len=102400
7665     ;;
7666   sysv5* | sco5v6* | sysv4.2uw2*)
7667     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7668     if test -n "$kargmax"; then
7669       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7670     else
7671       lt_cv_sys_max_cmd_len=32768
7672     fi
7673     ;;
7674   *)
7675     # If test is not a shell built-in, we'll probably end up computing a
7676     # maximum length that is only half of the actual maximum length, but
7677     # we can't tell.
7678     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7679     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7680                = "XX$teststring") >/dev/null 2>&1 &&
7681             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7682             lt_cv_sys_max_cmd_len=$new_result &&
7683             test $i != 17 # 1/2 MB should be enough
7684     do
7685       i=`expr $i + 1`
7686       teststring=$teststring$teststring
7687     done
7688     teststring=
7689     # Add a significant safety factor because C++ compilers can tack on massive
7690     # amounts of additional arguments before passing them to the linker.
7691     # It appears as though 1/2 is a usable value.
7692     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7693     ;;
7694   esac
7695
7696 fi
7697
7698 if test -n $lt_cv_sys_max_cmd_len ; then
7699   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7700 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7701 else
7702   { echo "$as_me:$LINENO: result: none" >&5
7703 echo "${ECHO_T}none" >&6; }
7704 fi
7705
7706
7707
7708
7709 # Check for command to grab the raw symbol name followed by C symbol from nm.
7710 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7711 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7712 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715
7716 # These are sane defaults that work on at least a few old systems.
7717 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7718
7719 # Character class describing NM global symbol codes.
7720 symcode='[BCDEGRST]'
7721
7722 # Regexp to match symbols that can be accessed directly from C.
7723 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7724
7725 # Transform an extracted symbol line into a proper C declaration
7726 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7727
7728 # Transform an extracted symbol line into symbol name and symbol address
7729 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'"
7730
7731 # Define system-specific variables.
7732 case $host_os in
7733 aix*)
7734   symcode='[BCDT]'
7735   ;;
7736 cygwin* | mingw* | pw32*)
7737   symcode='[ABCDGISTW]'
7738   ;;
7739 hpux*) # Its linker distinguishes data from code symbols
7740   if test "$host_cpu" = ia64; then
7741     symcode='[ABCDEGRST]'
7742   fi
7743   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7744   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'"
7745   ;;
7746 linux*)
7747   if test "$host_cpu" = ia64; then
7748     symcode='[ABCDGIRSTW]'
7749     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7750     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'"
7751   fi
7752   ;;
7753 irix* | nonstopux*)
7754   symcode='[BCDEGRST]'
7755   ;;
7756 osf*)
7757   symcode='[BCDEGQRST]'
7758   ;;
7759 solaris*)
7760   symcode='[BDRT]'
7761   ;;
7762 sco3.2v5*)
7763   symcode='[DT]'
7764   ;;
7765 sysv4.2uw2*)
7766   symcode='[DT]'
7767   ;;
7768 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7769   symcode='[ABDT]'
7770   ;;
7771 sysv4)
7772   symcode='[DFNSTU]'
7773   ;;
7774 esac
7775
7776 # Handle CRLF in mingw tool chain
7777 opt_cr=
7778 case $build_os in
7779 mingw*)
7780   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7781   ;;
7782 esac
7783
7784 # If we're using GNU nm, then use its standard symbol codes.
7785 case `$NM -V 2>&1` in
7786 *GNU* | *'with BFD'*)
7787   symcode='[ABCDGIRSTW]' ;;
7788 esac
7789
7790 # Try without a prefix undercore, then with it.
7791 for ac_symprfx in "" "_"; do
7792
7793   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7794   symxfrm="\\1 $ac_symprfx\\2 \\2"
7795
7796   # Write the raw and C identifiers.
7797   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7798
7799   # Check to see that the pipe works correctly.
7800   pipe_works=no
7801
7802   rm -f conftest*
7803   cat > conftest.$ac_ext <<EOF
7804 #ifdef __cplusplus
7805 extern "C" {
7806 #endif
7807 char nm_test_var;
7808 void nm_test_func(){}
7809 #ifdef __cplusplus
7810 }
7811 #endif
7812 int main(){nm_test_var='a';nm_test_func();return(0);}
7813 EOF
7814
7815   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7816   (eval $ac_compile) 2>&5
7817   ac_status=$?
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); }; then
7820     # Now try to grab the symbols.
7821     nlist=conftest.nm
7822     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7823   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); } && test -s "$nlist"; then
7827       # Try sorting and uniquifying the output.
7828       if sort "$nlist" | uniq > "$nlist"T; then
7829         mv -f "$nlist"T "$nlist"
7830       else
7831         rm -f "$nlist"T
7832       fi
7833
7834       # Make sure that we snagged all the symbols we need.
7835       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7836         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7837           cat <<EOF > conftest.$ac_ext
7838 #ifdef __cplusplus
7839 extern "C" {
7840 #endif
7841
7842 EOF
7843           # Now generate the symbol file.
7844           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7845
7846           cat <<EOF >> conftest.$ac_ext
7847 #if defined (__STDC__) && __STDC__
7848 # define lt_ptr_t void *
7849 #else
7850 # define lt_ptr_t char *
7851 # define const
7852 #endif
7853
7854 /* The mapping between symbol names and symbols. */
7855 const struct {
7856   const char *name;
7857   lt_ptr_t address;
7858 }
7859 lt_preloaded_symbols[] =
7860 {
7861 EOF
7862           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7863           cat <<\EOF >> conftest.$ac_ext
7864   {0, (lt_ptr_t) 0}
7865 };
7866
7867 #ifdef __cplusplus
7868 }
7869 #endif
7870 EOF
7871           # Now try linking the two files.
7872           mv conftest.$ac_objext conftstm.$ac_objext
7873           lt_save_LIBS="$LIBS"
7874           lt_save_CFLAGS="$CFLAGS"
7875           LIBS="conftstm.$ac_objext"
7876           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7877           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7878   (eval $ac_link) 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7882             pipe_works=yes
7883           fi
7884           LIBS="$lt_save_LIBS"
7885           CFLAGS="$lt_save_CFLAGS"
7886         else
7887           echo "cannot find nm_test_func in $nlist" >&5
7888         fi
7889       else
7890         echo "cannot find nm_test_var in $nlist" >&5
7891       fi
7892     else
7893       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7894     fi
7895   else
7896     echo "$progname: failed program was:" >&5
7897     cat conftest.$ac_ext >&5
7898   fi
7899   rm -f conftest* conftst*
7900
7901   # Do not use the global_symbol_pipe unless it works.
7902   if test "$pipe_works" = yes; then
7903     break
7904   else
7905     lt_cv_sys_global_symbol_pipe=
7906   fi
7907 done
7908
7909 fi
7910
7911 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7912   lt_cv_sys_global_symbol_to_cdecl=
7913 fi
7914 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7915   { echo "$as_me:$LINENO: result: failed" >&5
7916 echo "${ECHO_T}failed" >&6; }
7917 else
7918   { echo "$as_me:$LINENO: result: ok" >&5
7919 echo "${ECHO_T}ok" >&6; }
7920 fi
7921
7922 { echo "$as_me:$LINENO: checking for objdir" >&5
7923 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7924 if test "${lt_cv_objdir+set}" = set; then
7925   echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927   rm -f .libs 2>/dev/null
7928 mkdir .libs 2>/dev/null
7929 if test -d .libs; then
7930   lt_cv_objdir=.libs
7931 else
7932   # MS-DOS does not allow filenames that begin with a dot.
7933   lt_cv_objdir=_libs
7934 fi
7935 rmdir .libs 2>/dev/null
7936 fi
7937 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7938 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7939 objdir=$lt_cv_objdir
7940
7941
7942
7943
7944
7945 case $host_os in
7946 aix3*)
7947   # AIX sometimes has problems with the GCC collect2 program.  For some
7948   # reason, if we set the COLLECT_NAMES environment variable, the problems
7949   # vanish in a puff of smoke.
7950   if test "X${COLLECT_NAMES+set}" != Xset; then
7951     COLLECT_NAMES=
7952     export COLLECT_NAMES
7953   fi
7954   ;;
7955 esac
7956
7957 # Sed substitution that helps us do robust quoting.  It backslashifies
7958 # metacharacters that are still active within double-quoted strings.
7959 Xsed='sed -e 1s/^X//'
7960 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7961
7962 # Same as above, but do not quote variable references.
7963 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7964
7965 # Sed substitution to delay expansion of an escaped shell variable in a
7966 # double_quote_subst'ed string.
7967 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7968
7969 # Sed substitution to avoid accidental globbing in evaled expressions
7970 no_glob_subst='s/\*/\\\*/g'
7971
7972 # Constants:
7973 rm="rm -f"
7974
7975 # Global variables:
7976 default_ofile=libtool
7977 can_build_shared=yes
7978
7979 # All known linkers require a `.a' archive for static linking (except MSVC,
7980 # which needs '.lib').
7981 libext=a
7982 ltmain="$ac_aux_dir/ltmain.sh"
7983 ofile="$default_ofile"
7984 with_gnu_ld="$lt_cv_prog_gnu_ld"
7985
7986 if test -n "$ac_tool_prefix"; then
7987   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7988 set dummy ${ac_tool_prefix}ar; ac_word=$2
7989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7991 if test "${ac_cv_prog_AR+set}" = set; then
7992   echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994   if test -n "$AR"; then
7995   ac_cv_prog_AR="$AR" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000   IFS=$as_save_IFS
8001   test -z "$as_dir" && as_dir=.
8002   for ac_exec_ext in '' $ac_executable_extensions; do
8003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004     ac_cv_prog_AR="${ac_tool_prefix}ar"
8005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006     break 2
8007   fi
8008 done
8009 done
8010 IFS=$as_save_IFS
8011
8012 fi
8013 fi
8014 AR=$ac_cv_prog_AR
8015 if test -n "$AR"; then
8016   { echo "$as_me:$LINENO: result: $AR" >&5
8017 echo "${ECHO_T}$AR" >&6; }
8018 else
8019   { echo "$as_me:$LINENO: result: no" >&5
8020 echo "${ECHO_T}no" >&6; }
8021 fi
8022
8023
8024 fi
8025 if test -z "$ac_cv_prog_AR"; then
8026   ac_ct_AR=$AR
8027   # Extract the first word of "ar", so it can be a program name with args.
8028 set dummy ar; ac_word=$2
8029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8031 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8032   echo $ECHO_N "(cached) $ECHO_C" >&6
8033 else
8034   if test -n "$ac_ct_AR"; then
8035   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8036 else
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8039 do
8040   IFS=$as_save_IFS
8041   test -z "$as_dir" && as_dir=.
8042   for ac_exec_ext in '' $ac_executable_extensions; do
8043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044     ac_cv_prog_ac_ct_AR="ar"
8045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8046     break 2
8047   fi
8048 done
8049 done
8050 IFS=$as_save_IFS
8051
8052 fi
8053 fi
8054 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8055 if test -n "$ac_ct_AR"; then
8056   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8057 echo "${ECHO_T}$ac_ct_AR" >&6; }
8058 else
8059   { echo "$as_me:$LINENO: result: no" >&5
8060 echo "${ECHO_T}no" >&6; }
8061 fi
8062
8063   if test "x$ac_ct_AR" = x; then
8064     AR="false"
8065   else
8066     case $cross_compiling:$ac_tool_warned in
8067 yes:)
8068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8069 whose name does not start with the host triplet.  If you think this
8070 configuration is useful to you, please write to autoconf@gnu.org." >&5
8071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8072 whose name does not start with the host triplet.  If you think this
8073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8074 ac_tool_warned=yes ;;
8075 esac
8076     AR=$ac_ct_AR
8077   fi
8078 else
8079   AR="$ac_cv_prog_AR"
8080 fi
8081
8082 if test -n "$ac_tool_prefix"; then
8083   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8084 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8087 if test "${ac_cv_prog_RANLIB+set}" = set; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090   if test -n "$RANLIB"; then
8091   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8092 else
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 for as_dir in $PATH
8095 do
8096   IFS=$as_save_IFS
8097   test -z "$as_dir" && as_dir=.
8098   for ac_exec_ext in '' $ac_executable_extensions; do
8099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8100     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8102     break 2
8103   fi
8104 done
8105 done
8106 IFS=$as_save_IFS
8107
8108 fi
8109 fi
8110 RANLIB=$ac_cv_prog_RANLIB
8111 if test -n "$RANLIB"; then
8112   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8113 echo "${ECHO_T}$RANLIB" >&6; }
8114 else
8115   { echo "$as_me:$LINENO: result: no" >&5
8116 echo "${ECHO_T}no" >&6; }
8117 fi
8118
8119
8120 fi
8121 if test -z "$ac_cv_prog_RANLIB"; then
8122   ac_ct_RANLIB=$RANLIB
8123   # Extract the first word of "ranlib", so it can be a program name with args.
8124 set dummy ranlib; ac_word=$2
8125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8127 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130   if test -n "$ac_ct_RANLIB"; then
8131   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136   IFS=$as_save_IFS
8137   test -z "$as_dir" && as_dir=.
8138   for ac_exec_ext in '' $ac_executable_extensions; do
8139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8140     ac_cv_prog_ac_ct_RANLIB="ranlib"
8141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8142     break 2
8143   fi
8144 done
8145 done
8146 IFS=$as_save_IFS
8147
8148 fi
8149 fi
8150 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8151 if test -n "$ac_ct_RANLIB"; then
8152   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8153 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8154 else
8155   { echo "$as_me:$LINENO: result: no" >&5
8156 echo "${ECHO_T}no" >&6; }
8157 fi
8158
8159   if test "x$ac_ct_RANLIB" = x; then
8160     RANLIB=":"
8161   else
8162     case $cross_compiling:$ac_tool_warned in
8163 yes:)
8164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8165 whose name does not start with the host triplet.  If you think this
8166 configuration is useful to you, please write to autoconf@gnu.org." >&5
8167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8168 whose name does not start with the host triplet.  If you think this
8169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8170 ac_tool_warned=yes ;;
8171 esac
8172     RANLIB=$ac_ct_RANLIB
8173   fi
8174 else
8175   RANLIB="$ac_cv_prog_RANLIB"
8176 fi
8177
8178 if test -n "$ac_tool_prefix"; then
8179   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8180 set dummy ${ac_tool_prefix}strip; ac_word=$2
8181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8183 if test "${ac_cv_prog_STRIP+set}" = set; then
8184   echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186   if test -n "$STRIP"; then
8187   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8188 else
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8191 do
8192   IFS=$as_save_IFS
8193   test -z "$as_dir" && as_dir=.
8194   for ac_exec_ext in '' $ac_executable_extensions; do
8195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8196     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198     break 2
8199   fi
8200 done
8201 done
8202 IFS=$as_save_IFS
8203
8204 fi
8205 fi
8206 STRIP=$ac_cv_prog_STRIP
8207 if test -n "$STRIP"; then
8208   { echo "$as_me:$LINENO: result: $STRIP" >&5
8209 echo "${ECHO_T}$STRIP" >&6; }
8210 else
8211   { echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6; }
8213 fi
8214
8215
8216 fi
8217 if test -z "$ac_cv_prog_STRIP"; then
8218   ac_ct_STRIP=$STRIP
8219   # Extract the first word of "strip", so it can be a program name with args.
8220 set dummy strip; ac_word=$2
8221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8223 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8224   echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226   if test -n "$ac_ct_STRIP"; then
8227   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8228 else
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 for as_dir in $PATH
8231 do
8232   IFS=$as_save_IFS
8233   test -z "$as_dir" && as_dir=.
8234   for ac_exec_ext in '' $ac_executable_extensions; do
8235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8236     ac_cv_prog_ac_ct_STRIP="strip"
8237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8238     break 2
8239   fi
8240 done
8241 done
8242 IFS=$as_save_IFS
8243
8244 fi
8245 fi
8246 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8247 if test -n "$ac_ct_STRIP"; then
8248   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8249 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8250 else
8251   { echo "$as_me:$LINENO: result: no" >&5
8252 echo "${ECHO_T}no" >&6; }
8253 fi
8254
8255   if test "x$ac_ct_STRIP" = x; then
8256     STRIP=":"
8257   else
8258     case $cross_compiling:$ac_tool_warned in
8259 yes:)
8260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8261 whose name does not start with the host triplet.  If you think this
8262 configuration is useful to you, please write to autoconf@gnu.org." >&5
8263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8264 whose name does not start with the host triplet.  If you think this
8265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8266 ac_tool_warned=yes ;;
8267 esac
8268     STRIP=$ac_ct_STRIP
8269   fi
8270 else
8271   STRIP="$ac_cv_prog_STRIP"
8272 fi
8273
8274
8275 old_CC="$CC"
8276 old_CFLAGS="$CFLAGS"
8277
8278 # Set sane defaults for various variables
8279 test -z "$AR" && AR=ar
8280 test -z "$AR_FLAGS" && AR_FLAGS=cru
8281 test -z "$AS" && AS=as
8282 test -z "$CC" && CC=cc
8283 test -z "$LTCC" && LTCC=$CC
8284 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8285 test -z "$DLLTOOL" && DLLTOOL=dlltool
8286 test -z "$LD" && LD=ld
8287 test -z "$LN_S" && LN_S="ln -s"
8288 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8289 test -z "$NM" && NM=nm
8290 test -z "$SED" && SED=sed
8291 test -z "$OBJDUMP" && OBJDUMP=objdump
8292 test -z "$RANLIB" && RANLIB=:
8293 test -z "$STRIP" && STRIP=:
8294 test -z "$ac_objext" && ac_objext=o
8295
8296 # Determine commands to create old-style static archives.
8297 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8298 old_postinstall_cmds='chmod 644 $oldlib'
8299 old_postuninstall_cmds=
8300
8301 if test -n "$RANLIB"; then
8302   case $host_os in
8303   openbsd*)
8304     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8305     ;;
8306   *)
8307     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8308     ;;
8309   esac
8310   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8311 fi
8312
8313 for cc_temp in $compiler""; do
8314   case $cc_temp in
8315     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8316     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8317     \-*) ;;
8318     *) break;;
8319   esac
8320 done
8321 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8322
8323
8324 # Only perform the check for file, if the check method requires it
8325 case $deplibs_check_method in
8326 file_magic*)
8327   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8328     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8329 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8330 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8331   echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333   case $MAGIC_CMD in
8334 [\\/*] |  ?:[\\/]*)
8335   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8336   ;;
8337 *)
8338   lt_save_MAGIC_CMD="$MAGIC_CMD"
8339   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8340   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8341   for ac_dir in $ac_dummy; do
8342     IFS="$lt_save_ifs"
8343     test -z "$ac_dir" && ac_dir=.
8344     if test -f $ac_dir/${ac_tool_prefix}file; then
8345       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8346       if test -n "$file_magic_test_file"; then
8347         case $deplibs_check_method in
8348         "file_magic "*)
8349           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8350           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8351           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8352             $EGREP "$file_magic_regex" > /dev/null; then
8353             :
8354           else
8355             cat <<EOF 1>&2
8356
8357 *** Warning: the command libtool uses to detect shared libraries,
8358 *** $file_magic_cmd, produces output that libtool cannot recognize.
8359 *** The result is that libtool may fail to recognize shared libraries
8360 *** as such.  This will affect the creation of libtool libraries that
8361 *** depend on shared libraries, but programs linked with such libtool
8362 *** libraries will work regardless of this problem.  Nevertheless, you
8363 *** may want to report the problem to your system manager and/or to
8364 *** bug-libtool@gnu.org
8365
8366 EOF
8367           fi ;;
8368         esac
8369       fi
8370       break
8371     fi
8372   done
8373   IFS="$lt_save_ifs"
8374   MAGIC_CMD="$lt_save_MAGIC_CMD"
8375   ;;
8376 esac
8377 fi
8378
8379 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8380 if test -n "$MAGIC_CMD"; then
8381   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8382 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8383 else
8384   { echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6; }
8386 fi
8387
8388 if test -z "$lt_cv_path_MAGIC_CMD"; then
8389   if test -n "$ac_tool_prefix"; then
8390     { echo "$as_me:$LINENO: checking for file" >&5
8391 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8392 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8393   echo $ECHO_N "(cached) $ECHO_C" >&6
8394 else
8395   case $MAGIC_CMD in
8396 [\\/*] |  ?:[\\/]*)
8397   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8398   ;;
8399 *)
8400   lt_save_MAGIC_CMD="$MAGIC_CMD"
8401   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8402   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8403   for ac_dir in $ac_dummy; do
8404     IFS="$lt_save_ifs"
8405     test -z "$ac_dir" && ac_dir=.
8406     if test -f $ac_dir/file; then
8407       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8408       if test -n "$file_magic_test_file"; then
8409         case $deplibs_check_method in
8410         "file_magic "*)
8411           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8412           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8413           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8414             $EGREP "$file_magic_regex" > /dev/null; then
8415             :
8416           else
8417             cat <<EOF 1>&2
8418
8419 *** Warning: the command libtool uses to detect shared libraries,
8420 *** $file_magic_cmd, produces output that libtool cannot recognize.
8421 *** The result is that libtool may fail to recognize shared libraries
8422 *** as such.  This will affect the creation of libtool libraries that
8423 *** depend on shared libraries, but programs linked with such libtool
8424 *** libraries will work regardless of this problem.  Nevertheless, you
8425 *** may want to report the problem to your system manager and/or to
8426 *** bug-libtool@gnu.org
8427
8428 EOF
8429           fi ;;
8430         esac
8431       fi
8432       break
8433     fi
8434   done
8435   IFS="$lt_save_ifs"
8436   MAGIC_CMD="$lt_save_MAGIC_CMD"
8437   ;;
8438 esac
8439 fi
8440
8441 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8442 if test -n "$MAGIC_CMD"; then
8443   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8444 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8445 else
8446   { echo "$as_me:$LINENO: result: no" >&5
8447 echo "${ECHO_T}no" >&6; }
8448 fi
8449
8450   else
8451     MAGIC_CMD=:
8452   fi
8453 fi
8454
8455   fi
8456   ;;
8457 esac
8458
8459 enable_dlopen=yes
8460 enable_win32_dll=yes
8461
8462 # Check whether --enable-libtool-lock was given.
8463 if test "${enable_libtool_lock+set}" = set; then
8464   enableval=$enable_libtool_lock;
8465 fi
8466
8467 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8468
8469
8470 # Check whether --with-pic was given.
8471 if test "${with_pic+set}" = set; then
8472   withval=$with_pic; pic_mode="$withval"
8473 else
8474   pic_mode=default
8475 fi
8476
8477 test -z "$pic_mode" && pic_mode=default
8478
8479 # Use C for the default configuration in the libtool script
8480 tagname=
8481 lt_save_CC="$CC"
8482 ac_ext=c
8483 ac_cpp='$CPP $CPPFLAGS'
8484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8487
8488
8489 # Source file extension for C test sources.
8490 ac_ext=c
8491
8492 # Object file extension for compiled C test sources.
8493 objext=o
8494 objext=$objext
8495
8496 # Code to be used in simple compile tests
8497 lt_simple_compile_test_code="int some_variable = 0;\n"
8498
8499 # Code to be used in simple link tests
8500 lt_simple_link_test_code='int main(){return(0);}\n'
8501
8502
8503 # If no C compiler was specified, use CC.
8504 LTCC=${LTCC-"$CC"}
8505
8506 # If no C compiler flags were specified, use CFLAGS.
8507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8508
8509 # Allow CC to be a program name with arguments.
8510 compiler=$CC
8511
8512
8513 # save warnings/boilerplate of simple test code
8514 ac_outfile=conftest.$ac_objext
8515 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8517 _lt_compiler_boilerplate=`cat conftest.err`
8518 $rm conftest*
8519
8520 ac_outfile=conftest.$ac_objext
8521 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8523 _lt_linker_boilerplate=`cat conftest.err`
8524 $rm conftest*
8525
8526
8527
8528 lt_prog_compiler_no_builtin_flag=
8529
8530 if test "$GCC" = yes; then
8531   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8532
8533
8534 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8535 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8536 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8537   echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539   lt_cv_prog_compiler_rtti_exceptions=no
8540   ac_outfile=conftest.$ac_objext
8541    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8542    lt_compiler_flag="-fno-rtti -fno-exceptions"
8543    # Insert the option either (1) after the last *FLAGS variable, or
8544    # (2) before a word containing "conftest.", or (3) at the end.
8545    # Note that $ac_compile itself does not contain backslashes and begins
8546    # with a dollar sign (not a hyphen), so the echo should work correctly.
8547    # The option is referenced via a variable to avoid confusing sed.
8548    lt_compile=`echo "$ac_compile" | $SED \
8549    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8550    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8551    -e 's:$: $lt_compiler_flag:'`
8552    (eval echo "\"\$as_me:8552: $lt_compile\"" >&5)
8553    (eval "$lt_compile" 2>conftest.err)
8554    ac_status=$?
8555    cat conftest.err >&5
8556    echo "$as_me:8556: \$? = $ac_status" >&5
8557    if (exit $ac_status) && test -s "$ac_outfile"; then
8558      # The compiler can only warn and ignore the option if not recognized
8559      # So say no if there are warnings other than the usual output.
8560      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8561      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8562      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8563        lt_cv_prog_compiler_rtti_exceptions=yes
8564      fi
8565    fi
8566    $rm conftest*
8567
8568 fi
8569 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8570 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8571
8572 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8573     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8574 else
8575     :
8576 fi
8577
8578 fi
8579
8580 lt_prog_compiler_wl=
8581 lt_prog_compiler_pic=
8582 lt_prog_compiler_static=
8583
8584 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8585 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8586
8587   if test "$GCC" = yes; then
8588     lt_prog_compiler_wl='-Wl,'
8589     lt_prog_compiler_static='-static'
8590
8591     case $host_os in
8592       aix*)
8593       # All AIX code is PIC.
8594       if test "$host_cpu" = ia64; then
8595         # AIX 5 now supports IA64 processor
8596         lt_prog_compiler_static='-Bstatic'
8597       fi
8598       ;;
8599
8600     amigaos*)
8601       # FIXME: we need at least 68020 code to build shared libraries, but
8602       # adding the `-m68020' flag to GCC prevents building anything better,
8603       # like `-m68040'.
8604       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8605       ;;
8606
8607     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8608       # PIC is the default for these OSes.
8609       ;;
8610
8611     mingw* | pw32* | os2*)
8612       # This hack is so that the source file can tell whether it is being
8613       # built for inclusion in a dll (and should export symbols for example).
8614       lt_prog_compiler_pic='-DDLL_EXPORT'
8615       ;;
8616
8617     darwin* | rhapsody*)
8618       # PIC is the default on this platform
8619       # Common symbols not allowed in MH_DYLIB files
8620       lt_prog_compiler_pic='-fno-common'
8621       ;;
8622
8623     interix3*)
8624       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8625       # Instead, we relocate shared libraries at runtime.
8626       ;;
8627
8628     msdosdjgpp*)
8629       # Just because we use GCC doesn't mean we suddenly get shared libraries
8630       # on systems that don't support them.
8631       lt_prog_compiler_can_build_shared=no
8632       enable_shared=no
8633       ;;
8634
8635     sysv4*MP*)
8636       if test -d /usr/nec; then
8637         lt_prog_compiler_pic=-Kconform_pic
8638       fi
8639       ;;
8640
8641     hpux*)
8642       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8643       # not for PA HP-UX.
8644       case $host_cpu in
8645       hppa*64*|ia64*)
8646         # +Z the default
8647         ;;
8648       *)
8649         lt_prog_compiler_pic='-fPIC'
8650         ;;
8651       esac
8652       ;;
8653
8654     *)
8655       lt_prog_compiler_pic='-fPIC'
8656       ;;
8657     esac
8658   else
8659     # PORTME Check for flag to pass linker flags through the system compiler.
8660     case $host_os in
8661     aix*)
8662       lt_prog_compiler_wl='-Wl,'
8663       if test "$host_cpu" = ia64; then
8664         # AIX 5 now supports IA64 processor
8665         lt_prog_compiler_static='-Bstatic'
8666       else
8667         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8668       fi
8669       ;;
8670       darwin*)
8671         # PIC is the default on this platform
8672         # Common symbols not allowed in MH_DYLIB files
8673        case $cc_basename in
8674          xlc*)
8675          lt_prog_compiler_pic='-qnocommon'
8676          lt_prog_compiler_wl='-Wl,'
8677          ;;
8678        esac
8679        ;;
8680
8681     mingw* | pw32* | os2*)
8682       # This hack is so that the source file can tell whether it is being
8683       # built for inclusion in a dll (and should export symbols for example).
8684       lt_prog_compiler_pic='-DDLL_EXPORT'
8685       ;;
8686
8687     hpux9* | hpux10* | hpux11*)
8688       lt_prog_compiler_wl='-Wl,'
8689       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8690       # not for PA HP-UX.
8691       case $host_cpu in
8692       hppa*64*|ia64*)
8693         # +Z the default
8694         ;;
8695       *)
8696         lt_prog_compiler_pic='+Z'
8697         ;;
8698       esac
8699       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8700       lt_prog_compiler_static='${wl}-a ${wl}archive'
8701       ;;
8702
8703     irix5* | irix6* | nonstopux*)
8704       lt_prog_compiler_wl='-Wl,'
8705       # PIC (with -KPIC) is the default.
8706       lt_prog_compiler_static='-non_shared'
8707       ;;
8708
8709     newsos6)
8710       lt_prog_compiler_pic='-KPIC'
8711       lt_prog_compiler_static='-Bstatic'
8712       ;;
8713
8714     linux*)
8715       case $cc_basename in
8716       icc* | ecc*)
8717         lt_prog_compiler_wl='-Wl,'
8718         lt_prog_compiler_pic='-KPIC'
8719         lt_prog_compiler_static='-static'
8720         ;;
8721       pgcc* | pgf77* | pgf90* | pgf95*)
8722         # Portland Group compilers (*not* the Pentium gcc compiler,
8723         # which looks to be a dead project)
8724         lt_prog_compiler_wl='-Wl,'
8725         lt_prog_compiler_pic='-fpic'
8726         lt_prog_compiler_static='-Bstatic'
8727         ;;
8728       ccc*)
8729         lt_prog_compiler_wl='-Wl,'
8730         # All Alpha code is PIC.
8731         lt_prog_compiler_static='-non_shared'
8732         ;;
8733       esac
8734       ;;
8735
8736     osf3* | osf4* | osf5*)
8737       lt_prog_compiler_wl='-Wl,'
8738       # All OSF/1 code is PIC.
8739       lt_prog_compiler_static='-non_shared'
8740       ;;
8741
8742     solaris*)
8743       lt_prog_compiler_pic='-KPIC'
8744       lt_prog_compiler_static='-Bstatic'
8745       case $cc_basename in
8746       f77* | f90* | f95*)
8747         lt_prog_compiler_wl='-Qoption ld ';;
8748       *)
8749         lt_prog_compiler_wl='-Wl,';;
8750       esac
8751       ;;
8752
8753     sunos4*)
8754       lt_prog_compiler_wl='-Qoption ld '
8755       lt_prog_compiler_pic='-PIC'
8756       lt_prog_compiler_static='-Bstatic'
8757       ;;
8758
8759     sysv4 | sysv4.2uw2* | sysv4.3*)
8760       lt_prog_compiler_wl='-Wl,'
8761       lt_prog_compiler_pic='-KPIC'
8762       lt_prog_compiler_static='-Bstatic'
8763       ;;
8764
8765     sysv4*MP*)
8766       if test -d /usr/nec ;then
8767         lt_prog_compiler_pic='-Kconform_pic'
8768         lt_prog_compiler_static='-Bstatic'
8769       fi
8770       ;;
8771
8772     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8773       lt_prog_compiler_wl='-Wl,'
8774       lt_prog_compiler_pic='-KPIC'
8775       lt_prog_compiler_static='-Bstatic'
8776       ;;
8777
8778     unicos*)
8779       lt_prog_compiler_wl='-Wl,'
8780       lt_prog_compiler_can_build_shared=no
8781       ;;
8782
8783     uts4*)
8784       lt_prog_compiler_pic='-pic'
8785       lt_prog_compiler_static='-Bstatic'
8786       ;;
8787
8788     *)
8789       lt_prog_compiler_can_build_shared=no
8790       ;;
8791     esac
8792   fi
8793
8794 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8795 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8796
8797 #
8798 # Check to make sure the PIC flag actually works.
8799 #
8800 if test -n "$lt_prog_compiler_pic"; then
8801
8802 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8803 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8804 if test "${lt_prog_compiler_pic_works+set}" = set; then
8805   echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807   lt_prog_compiler_pic_works=no
8808   ac_outfile=conftest.$ac_objext
8809    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8810    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8811    # Insert the option either (1) after the last *FLAGS variable, or
8812    # (2) before a word containing "conftest.", or (3) at the end.
8813    # Note that $ac_compile itself does not contain backslashes and begins
8814    # with a dollar sign (not a hyphen), so the echo should work correctly.
8815    # The option is referenced via a variable to avoid confusing sed.
8816    lt_compile=`echo "$ac_compile" | $SED \
8817    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8818    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8819    -e 's:$: $lt_compiler_flag:'`
8820    (eval echo "\"\$as_me:8820: $lt_compile\"" >&5)
8821    (eval "$lt_compile" 2>conftest.err)
8822    ac_status=$?
8823    cat conftest.err >&5
8824    echo "$as_me:8824: \$? = $ac_status" >&5
8825    if (exit $ac_status) && test -s "$ac_outfile"; then
8826      # The compiler can only warn and ignore the option if not recognized
8827      # So say no if there are warnings other than the usual output.
8828      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8829      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8830      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8831        lt_prog_compiler_pic_works=yes
8832      fi
8833    fi
8834    $rm conftest*
8835
8836 fi
8837 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8838 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8839
8840 if test x"$lt_prog_compiler_pic_works" = xyes; then
8841     case $lt_prog_compiler_pic in
8842      "" | " "*) ;;
8843      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8844      esac
8845 else
8846     lt_prog_compiler_pic=
8847      lt_prog_compiler_can_build_shared=no
8848 fi
8849
8850 fi
8851 case $host_os in
8852   # For platforms which do not support PIC, -DPIC is meaningless:
8853   *djgpp*)
8854     lt_prog_compiler_pic=
8855     ;;
8856   *)
8857     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8858     ;;
8859 esac
8860
8861 #
8862 # Check to make sure the static flag actually works.
8863 #
8864 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8865 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8866 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8867 if test "${lt_prog_compiler_static_works+set}" = set; then
8868   echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870   lt_prog_compiler_static_works=no
8871    save_LDFLAGS="$LDFLAGS"
8872    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8873    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8874    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8875      # The linker can only warn and ignore the option if not recognized
8876      # So say no if there are warnings
8877      if test -s conftest.err; then
8878        # Append any errors to the config.log.
8879        cat conftest.err 1>&5
8880        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8881        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8882        if diff conftest.exp conftest.er2 >/dev/null; then
8883          lt_prog_compiler_static_works=yes
8884        fi
8885      else
8886        lt_prog_compiler_static_works=yes
8887      fi
8888    fi
8889    $rm conftest*
8890    LDFLAGS="$save_LDFLAGS"
8891
8892 fi
8893 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8894 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8895
8896 if test x"$lt_prog_compiler_static_works" = xyes; then
8897     :
8898 else
8899     lt_prog_compiler_static=
8900 fi
8901
8902
8903 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8904 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8905 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8906   echo $ECHO_N "(cached) $ECHO_C" >&6
8907 else
8908   lt_cv_prog_compiler_c_o=no
8909    $rm -r conftest 2>/dev/null
8910    mkdir conftest
8911    cd conftest
8912    mkdir out
8913    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8914
8915    lt_compiler_flag="-o out/conftest2.$ac_objext"
8916    # Insert the option either (1) after the last *FLAGS variable, or
8917    # (2) before a word containing "conftest.", or (3) at the end.
8918    # Note that $ac_compile itself does not contain backslashes and begins
8919    # with a dollar sign (not a hyphen), so the echo should work correctly.
8920    lt_compile=`echo "$ac_compile" | $SED \
8921    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8922    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8923    -e 's:$: $lt_compiler_flag:'`
8924    (eval echo "\"\$as_me:8924: $lt_compile\"" >&5)
8925    (eval "$lt_compile" 2>out/conftest.err)
8926    ac_status=$?
8927    cat out/conftest.err >&5
8928    echo "$as_me:8928: \$? = $ac_status" >&5
8929    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8930    then
8931      # The compiler can only warn and ignore the option if not recognized
8932      # So say no if there are warnings
8933      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8934      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8935      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8936        lt_cv_prog_compiler_c_o=yes
8937      fi
8938    fi
8939    chmod u+w . 2>&5
8940    $rm conftest*
8941    # SGI C++ compiler will create directory out/ii_files/ for
8942    # template instantiation
8943    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8944    $rm out/* && rmdir out
8945    cd ..
8946    rmdir conftest
8947    $rm conftest*
8948
8949 fi
8950 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8951 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8952
8953
8954 hard_links="nottested"
8955 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8956   # do not overwrite the value of need_locks provided by the user
8957   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8958 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8959   hard_links=yes
8960   $rm conftest*
8961   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8962   touch conftest.a
8963   ln conftest.a conftest.b 2>&5 || hard_links=no
8964   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8965   { echo "$as_me:$LINENO: result: $hard_links" >&5
8966 echo "${ECHO_T}$hard_links" >&6; }
8967   if test "$hard_links" = no; then
8968     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8969 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8970     need_locks=warn
8971   fi
8972 else
8973   need_locks=no
8974 fi
8975
8976 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8977 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8978
8979   runpath_var=
8980   allow_undefined_flag=
8981   enable_shared_with_static_runtimes=no
8982   archive_cmds=
8983   archive_expsym_cmds=
8984   old_archive_From_new_cmds=
8985   old_archive_from_expsyms_cmds=
8986   export_dynamic_flag_spec=
8987   whole_archive_flag_spec=
8988   thread_safe_flag_spec=
8989   hardcode_libdir_flag_spec=
8990   hardcode_libdir_flag_spec_ld=
8991   hardcode_libdir_separator=
8992   hardcode_direct=no
8993   hardcode_minus_L=no
8994   hardcode_shlibpath_var=unsupported
8995   link_all_deplibs=unknown
8996   hardcode_automatic=no
8997   module_cmds=
8998   module_expsym_cmds=
8999   always_export_symbols=no
9000   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9001   # include_expsyms should be a list of space-separated symbols to be *always*
9002   # included in the symbol list
9003   include_expsyms=
9004   # exclude_expsyms can be an extended regexp of symbols to exclude
9005   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9006   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9007   # as well as any symbol that contains `d'.
9008   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9009   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9010   # platforms (ab)use it in PIC code, but their linkers get confused if
9011   # the symbol is explicitly referenced.  Since portable code cannot
9012   # rely on this symbol name, it's probably fine to never include it in
9013   # preloaded symbol tables.
9014   extract_expsyms_cmds=
9015   # Just being paranoid about ensuring that cc_basename is set.
9016   for cc_temp in $compiler""; do
9017   case $cc_temp in
9018     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9019     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9020     \-*) ;;
9021     *) break;;
9022   esac
9023 done
9024 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9025
9026   case $host_os in
9027   cygwin* | mingw* | pw32*)
9028     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9029     # When not using gcc, we currently assume that we are using
9030     # Microsoft Visual C++.
9031     if test "$GCC" != yes; then
9032       with_gnu_ld=no
9033     fi
9034     ;;
9035   interix*)
9036     # we just hope/assume this is gcc and not c89 (= MSVC++)
9037     with_gnu_ld=yes
9038     ;;
9039   openbsd*)
9040     with_gnu_ld=no
9041     ;;
9042   esac
9043
9044   ld_shlibs=yes
9045   if test "$with_gnu_ld" = yes; then
9046     # If archive_cmds runs LD, not CC, wlarc should be empty
9047     wlarc='${wl}'
9048
9049     # Set some defaults for GNU ld with shared library support. These
9050     # are reset later if shared libraries are not supported. Putting them
9051     # here allows them to be overridden if necessary.
9052     runpath_var=LD_RUN_PATH
9053     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9054     export_dynamic_flag_spec='${wl}--export-dynamic'
9055     # ancient GNU ld didn't support --whole-archive et. al.
9056     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9057         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9058       else
9059         whole_archive_flag_spec=
9060     fi
9061     supports_anon_versioning=no
9062     case `$LD -v 2>/dev/null` in
9063       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9064       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9065       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9066       *\ 2.11.*) ;; # other 2.11 versions
9067       *) supports_anon_versioning=yes ;;
9068     esac
9069
9070     # See if GNU ld supports shared libraries.
9071     case $host_os in
9072     aix3* | aix4* | aix5*)
9073       # On AIX/PPC, the GNU linker is very broken
9074       if test "$host_cpu" != ia64; then
9075         ld_shlibs=no
9076         cat <<EOF 1>&2
9077
9078 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9079 *** to be unable to reliably create shared libraries on AIX.
9080 *** Therefore, libtool is disabling shared libraries support.  If you
9081 *** really care for shared libraries, you may want to modify your PATH
9082 *** so that a non-GNU linker is found, and then restart.
9083
9084 EOF
9085       fi
9086       ;;
9087
9088     amigaos*)
9089       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)'
9090       hardcode_libdir_flag_spec='-L$libdir'
9091       hardcode_minus_L=yes
9092
9093       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9094       # that the semantics of dynamic libraries on AmigaOS, at least up
9095       # to version 4, is to share data among multiple programs linked
9096       # with the same dynamic library.  Since this doesn't match the
9097       # behavior of shared libraries on other platforms, we can't use
9098       # them.
9099       ld_shlibs=no
9100       ;;
9101
9102     beos*)
9103       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9104         allow_undefined_flag=unsupported
9105         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9106         # support --undefined.  This deserves some investigation.  FIXME
9107         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108       else
9109         ld_shlibs=no
9110       fi
9111       ;;
9112
9113     cygwin* | mingw* | pw32*)
9114       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9115       # as there is no search path for DLLs.
9116       hardcode_libdir_flag_spec='-L$libdir'
9117       allow_undefined_flag=unsupported
9118       always_export_symbols=no
9119       enable_shared_with_static_runtimes=yes
9120       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9121
9122       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9123         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9124         # If the export-symbols file already is a .def file (1st line
9125         # is EXPORTS), use it as is; otherwise, prepend...
9126         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9127           cp $export_symbols $output_objdir/$soname.def;
9128         else
9129           echo EXPORTS > $output_objdir/$soname.def;
9130           cat $export_symbols >> $output_objdir/$soname.def;
9131         fi~
9132         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9133       else
9134         ld_shlibs=no
9135       fi
9136       ;;
9137
9138     interix3*)
9139       hardcode_direct=no
9140       hardcode_shlibpath_var=no
9141       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9142       export_dynamic_flag_spec='${wl}-E'
9143       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9144       # Instead, shared libraries are loaded at an image base (0x10000000 by
9145       # default) and relocated if they conflict, which is a slow very memory
9146       # consuming and fragmenting process.  To avoid this, we pick a random,
9147       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9148       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9149       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9150       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9151       ;;
9152
9153     linux*)
9154       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9155         tmp_addflag=
9156         case $cc_basename,$host_cpu in
9157         pgcc*)                          # Portland Group C compiler
9158           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'
9159           tmp_addflag=' $pic_flag'
9160           ;;
9161         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9162           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'
9163           tmp_addflag=' $pic_flag -Mnomain' ;;
9164         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9165           tmp_addflag=' -i_dynamic' ;;
9166         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9167           tmp_addflag=' -i_dynamic -nofor_main' ;;
9168         ifc* | ifort*)                  # Intel Fortran compiler
9169           tmp_addflag=' -nofor_main' ;;
9170         esac
9171         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9172
9173         if test $supports_anon_versioning = yes; then
9174           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9175   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9176   $echo "local: *; };" >> $output_objdir/$libname.ver~
9177           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9178         fi
9179       else
9180         ld_shlibs=no
9181       fi
9182       ;;
9183
9184     netbsd*)
9185       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9186         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9187         wlarc=
9188       else
9189         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9190         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9191       fi
9192       ;;
9193
9194     solaris*)
9195       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9196         ld_shlibs=no
9197         cat <<EOF 1>&2
9198
9199 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9200 *** create shared libraries on Solaris systems.  Therefore, libtool
9201 *** is disabling shared libraries support.  We urge you to upgrade GNU
9202 *** binutils to release 2.9.1 or newer.  Another option is to modify
9203 *** your PATH or compiler configuration so that the native linker is
9204 *** used, and then restart.
9205
9206 EOF
9207       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9208         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9210       else
9211         ld_shlibs=no
9212       fi
9213       ;;
9214
9215     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9216       case `$LD -v 2>&1` in
9217         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9218         ld_shlibs=no
9219         cat <<_LT_EOF 1>&2
9220
9221 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9222 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9223 *** is disabling shared libraries support.  We urge you to upgrade GNU
9224 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9225 *** your PATH or compiler configuration so that the native linker is
9226 *** used, and then restart.
9227
9228 _LT_EOF
9229         ;;
9230         *)
9231           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9232             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9233             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9234             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9235           else
9236             ld_shlibs=no
9237           fi
9238         ;;
9239       esac
9240       ;;
9241
9242     sunos4*)
9243       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9244       wlarc=
9245       hardcode_direct=yes
9246       hardcode_shlibpath_var=no
9247       ;;
9248
9249     *)
9250       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9251         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9253       else
9254         ld_shlibs=no
9255       fi
9256       ;;
9257     esac
9258
9259     if test "$ld_shlibs" = no; then
9260       runpath_var=
9261       hardcode_libdir_flag_spec=
9262       export_dynamic_flag_spec=
9263       whole_archive_flag_spec=
9264     fi
9265   else
9266     # PORTME fill in a description of your system's linker (not GNU ld)
9267     case $host_os in
9268     aix3*)
9269       allow_undefined_flag=unsupported
9270       always_export_symbols=yes
9271       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'
9272       # Note: this linker hardcodes the directories in LIBPATH if there
9273       # are no directories specified by -L.
9274       hardcode_minus_L=yes
9275       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9276         # Neither direct hardcoding nor static linking is supported with a
9277         # broken collect2.
9278         hardcode_direct=unsupported
9279       fi
9280       ;;
9281
9282     aix4* | aix5*)
9283       if test "$host_cpu" = ia64; then
9284         # On IA64, the linker does run time linking by default, so we don't
9285         # have to do anything special.
9286         aix_use_runtimelinking=no
9287         exp_sym_flag='-Bexport'
9288         no_entry_flag=""
9289       else
9290         # If we're using GNU nm, then we don't want the "-C" option.
9291         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9292         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9293           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'
9294         else
9295           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'
9296         fi
9297         aix_use_runtimelinking=no
9298
9299         # Test if we are trying to use run time linking or normal
9300         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9301         # need to do runtime linking.
9302         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9303           for ld_flag in $LDFLAGS; do
9304           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9305             aix_use_runtimelinking=yes
9306             break
9307           fi
9308           done
9309           ;;
9310         esac
9311
9312         exp_sym_flag='-bexport'
9313         no_entry_flag='-bnoentry'
9314       fi
9315
9316       # When large executables or shared objects are built, AIX ld can
9317       # have problems creating the table of contents.  If linking a library
9318       # or program results in "error TOC overflow" add -mminimal-toc to
9319       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9320       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9321
9322       archive_cmds=''
9323       hardcode_direct=yes
9324       hardcode_libdir_separator=':'
9325       link_all_deplibs=yes
9326
9327       if test "$GCC" = yes; then
9328         case $host_os in aix4.[012]|aix4.[012].*)
9329         # We only want to do this on AIX 4.2 and lower, the check
9330         # below for broken collect2 doesn't work under 4.3+
9331           collect2name=`${CC} -print-prog-name=collect2`
9332           if test -f "$collect2name" && \
9333            strings "$collect2name" | grep resolve_lib_name >/dev/null
9334           then
9335           # We have reworked collect2
9336           hardcode_direct=yes
9337           else
9338           # We have old collect2
9339           hardcode_direct=unsupported
9340           # It fails to find uninstalled libraries when the uninstalled
9341           # path is not listed in the libpath.  Setting hardcode_minus_L
9342           # to unsupported forces relinking
9343           hardcode_minus_L=yes
9344           hardcode_libdir_flag_spec='-L$libdir'
9345           hardcode_libdir_separator=
9346           fi
9347           ;;
9348         esac
9349         shared_flag='-shared'
9350         if test "$aix_use_runtimelinking" = yes; then
9351           shared_flag="$shared_flag "'${wl}-G'
9352         fi
9353       else
9354         # not using gcc
9355         if test "$host_cpu" = ia64; then
9356         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9357         # chokes on -Wl,-G. The following line is correct:
9358           shared_flag='-G'
9359         else
9360           if test "$aix_use_runtimelinking" = yes; then
9361             shared_flag='${wl}-G'
9362           else
9363             shared_flag='${wl}-bM:SRE'
9364           fi
9365         fi
9366       fi
9367
9368       # It seems that -bexpall does not export symbols beginning with
9369       # underscore (_), so it is better to generate a list of symbols to export.
9370       always_export_symbols=yes
9371       if test "$aix_use_runtimelinking" = yes; then
9372         # Warning - without using the other runtime loading flags (-brtl),
9373         # -berok will link without error, but may produce a broken library.
9374         allow_undefined_flag='-berok'
9375        # Determine the default libpath from the value encoded in an empty executable.
9376        cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h.  */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h.  */
9382
9383 int
9384 main ()
9385 {
9386
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (ac_try="$ac_link"
9393 case "(($ac_try" in
9394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395   *) ac_try_echo=$ac_try;;
9396 esac
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398   (eval "$ac_link") 2>conftest.er1
9399   ac_status=$?
9400   grep -v '^ *+' conftest.er1 >conftest.err
9401   rm -f conftest.er1
9402   cat conftest.err >&5
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); } && {
9405          test -z "$ac_c_werror_flag" ||
9406          test ! -s conftest.err
9407        } && test -s conftest$ac_exeext &&
9408        $as_test_x conftest$ac_exeext; then
9409
9410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9411 }'`
9412 # Check for a 64-bit object if we didn't find anything.
9413 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; }
9414 }'`; fi
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419
9420 fi
9421
9422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9423       conftest$ac_exeext conftest.$ac_ext
9424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9425
9426        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9427         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9428        else
9429         if test "$host_cpu" = ia64; then
9430           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9431           allow_undefined_flag="-z nodefs"
9432           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9433         else
9434          # Determine the default libpath from the value encoded in an empty executable.
9435          cat >conftest.$ac_ext <<_ACEOF
9436 /* confdefs.h.  */
9437 _ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h.  */
9441
9442 int
9443 main ()
9444 {
9445
9446   ;
9447   return 0;
9448 }
9449 _ACEOF
9450 rm -f conftest.$ac_objext conftest$ac_exeext
9451 if { (ac_try="$ac_link"
9452 case "(($ac_try" in
9453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454   *) ac_try_echo=$ac_try;;
9455 esac
9456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457   (eval "$ac_link") 2>conftest.er1
9458   ac_status=$?
9459   grep -v '^ *+' conftest.er1 >conftest.err
9460   rm -f conftest.er1
9461   cat conftest.err >&5
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); } && {
9464          test -z "$ac_c_werror_flag" ||
9465          test ! -s conftest.err
9466        } && test -s conftest$ac_exeext &&
9467        $as_test_x conftest$ac_exeext; then
9468
9469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9470 }'`
9471 # Check for a 64-bit object if we didn't find anything.
9472 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; }
9473 }'`; fi
9474 else
9475   echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9477
9478
9479 fi
9480
9481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9482       conftest$ac_exeext conftest.$ac_ext
9483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9484
9485          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9486           # Warning - without using the other run time loading flags,
9487           # -berok will link without error, but may produce a broken library.
9488           no_undefined_flag=' ${wl}-bernotok'
9489           allow_undefined_flag=' ${wl}-berok'
9490           # Exported symbols can be pulled into shared objects from archives
9491           whole_archive_flag_spec='$convenience'
9492           archive_cmds_need_lc=yes
9493           # This is similar to how AIX traditionally builds its shared libraries.
9494           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9495         fi
9496       fi
9497       ;;
9498
9499     amigaos*)
9500       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)'
9501       hardcode_libdir_flag_spec='-L$libdir'
9502       hardcode_minus_L=yes
9503       # see comment about different semantics on the GNU ld section
9504       ld_shlibs=no
9505       ;;
9506
9507     bsdi[45]*)
9508       export_dynamic_flag_spec=-rdynamic
9509       ;;
9510
9511     cygwin* | mingw* | pw32*)
9512       # When not using gcc, we currently assume that we are using
9513       # Microsoft Visual C++.
9514       # hardcode_libdir_flag_spec is actually meaningless, as there is
9515       # no search path for DLLs.
9516       hardcode_libdir_flag_spec=' '
9517       allow_undefined_flag=unsupported
9518       # Tell ltmain to make .lib files, not .a files.
9519       libext=lib
9520       # Tell ltmain to make .dll files, not .so files.
9521       shrext_cmds=".dll"
9522       # FIXME: Setting linknames here is a bad hack.
9523       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9524       # The linker will automatically build a .lib file if we build a DLL.
9525       old_archive_From_new_cmds='true'
9526       # FIXME: Should let the user specify the lib program.
9527       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9528       fix_srcfile_path='`cygpath -w "$srcfile"`'
9529       enable_shared_with_static_runtimes=yes
9530       ;;
9531
9532     darwin* | rhapsody*)
9533       case $host_os in
9534         rhapsody* | darwin1.[012])
9535          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9536          ;;
9537        *) # Darwin 1.3 on
9538          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9539            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9540          else
9541            case ${MACOSX_DEPLOYMENT_TARGET} in
9542              10.[012])
9543                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9544                ;;
9545              10.*)
9546                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9547                ;;
9548            esac
9549          fi
9550          ;;
9551       esac
9552       archive_cmds_need_lc=no
9553       hardcode_direct=no
9554       hardcode_automatic=yes
9555       hardcode_shlibpath_var=unsupported
9556       whole_archive_flag_spec=''
9557       link_all_deplibs=yes
9558     if test "$GCC" = yes ; then
9559         output_verbose_link_cmd='echo'
9560         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9561       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9562       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9563       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}'
9564       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}'
9565     else
9566       case $cc_basename in
9567         xlc*)
9568          output_verbose_link_cmd='echo'
9569          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9570          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9571           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9572          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}'
9573           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}'
9574           ;;
9575        *)
9576          ld_shlibs=no
9577           ;;
9578       esac
9579     fi
9580       ;;
9581
9582     dgux*)
9583       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9584       hardcode_libdir_flag_spec='-L$libdir'
9585       hardcode_shlibpath_var=no
9586       ;;
9587
9588     freebsd1*)
9589       ld_shlibs=no
9590       ;;
9591
9592     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9593     # support.  Future versions do this automatically, but an explicit c++rt0.o
9594     # does not break anything, and helps significantly (at the cost of a little
9595     # extra space).
9596     freebsd2.2*)
9597       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9598       hardcode_libdir_flag_spec='-R$libdir'
9599       hardcode_direct=yes
9600       hardcode_shlibpath_var=no
9601       ;;
9602
9603     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9604     freebsd2*)
9605       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9606       hardcode_direct=yes
9607       hardcode_minus_L=yes
9608       hardcode_shlibpath_var=no
9609       ;;
9610
9611     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9612     freebsd* | kfreebsd*-gnu | dragonfly*)
9613       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9614       hardcode_libdir_flag_spec='-R$libdir'
9615       hardcode_direct=yes
9616       hardcode_shlibpath_var=no
9617       ;;
9618
9619     hpux9*)
9620       if test "$GCC" = yes; then
9621         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'
9622       else
9623         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'
9624       fi
9625       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9626       hardcode_libdir_separator=:
9627       hardcode_direct=yes
9628
9629       # hardcode_minus_L: Not really in the search PATH,
9630       # but as the default location of the library.
9631       hardcode_minus_L=yes
9632       export_dynamic_flag_spec='${wl}-E'
9633       ;;
9634
9635     hpux10*)
9636       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9637         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9638       else
9639         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9640       fi
9641       if test "$with_gnu_ld" = no; then
9642         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9643         hardcode_libdir_separator=:
9644
9645         hardcode_direct=yes
9646         export_dynamic_flag_spec='${wl}-E'
9647
9648         # hardcode_minus_L: Not really in the search PATH,
9649         # but as the default location of the library.
9650         hardcode_minus_L=yes
9651       fi
9652       ;;
9653
9654     hpux11*)
9655       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9656         case $host_cpu in
9657         hppa*64*)
9658           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9659           ;;
9660         ia64*)
9661           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9662           ;;
9663         *)
9664           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9665           ;;
9666         esac
9667       else
9668         case $host_cpu in
9669         hppa*64*)
9670           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9671           ;;
9672         ia64*)
9673           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9674           ;;
9675         *)
9676           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9677           ;;
9678         esac
9679       fi
9680       if test "$with_gnu_ld" = no; then
9681         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9682         hardcode_libdir_separator=:
9683
9684         case $host_cpu in
9685         hppa*64*|ia64*)
9686           hardcode_libdir_flag_spec_ld='+b $libdir'
9687           hardcode_direct=no
9688           hardcode_shlibpath_var=no
9689           ;;
9690         *)
9691           hardcode_direct=yes
9692           export_dynamic_flag_spec='${wl}-E'
9693
9694           # hardcode_minus_L: Not really in the search PATH,
9695           # but as the default location of the library.
9696           hardcode_minus_L=yes
9697           ;;
9698         esac
9699       fi
9700       ;;
9701
9702     irix5* | irix6* | nonstopux*)
9703       if test "$GCC" = yes; then
9704         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'
9705       else
9706         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'
9707         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9708       fi
9709       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9710       hardcode_libdir_separator=:
9711       link_all_deplibs=yes
9712       ;;
9713
9714     netbsd*)
9715       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9716         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9717       else
9718         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9719       fi
9720       hardcode_libdir_flag_spec='-R$libdir'
9721       hardcode_direct=yes
9722       hardcode_shlibpath_var=no
9723       ;;
9724
9725     newsos6)
9726       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727       hardcode_direct=yes
9728       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9729       hardcode_libdir_separator=:
9730       hardcode_shlibpath_var=no
9731       ;;
9732
9733     openbsd*)
9734       hardcode_direct=yes
9735       hardcode_shlibpath_var=no
9736       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9737         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9738         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9739         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9740         export_dynamic_flag_spec='${wl}-E'
9741       else
9742        case $host_os in
9743          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9744            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9745            hardcode_libdir_flag_spec='-R$libdir'
9746            ;;
9747          *)
9748            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9749            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9750            ;;
9751        esac
9752       fi
9753       ;;
9754
9755     os2*)
9756       hardcode_libdir_flag_spec='-L$libdir'
9757       hardcode_minus_L=yes
9758       allow_undefined_flag=unsupported
9759       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'
9760       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9761       ;;
9762
9763     osf3*)
9764       if test "$GCC" = yes; then
9765         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9766         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'
9767       else
9768         allow_undefined_flag=' -expect_unresolved \*'
9769         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'
9770       fi
9771       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9772       hardcode_libdir_separator=:
9773       ;;
9774
9775     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9776       if test "$GCC" = yes; then
9777         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9778         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'
9779         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9780       else
9781         allow_undefined_flag=' -expect_unresolved \*'
9782         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'
9783         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9784         $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'
9785
9786         # Both c and cxx compiler support -rpath directly
9787         hardcode_libdir_flag_spec='-rpath $libdir'
9788       fi
9789       hardcode_libdir_separator=:
9790       ;;
9791
9792     solaris*)
9793       no_undefined_flag=' -z text'
9794       if test "$GCC" = yes; then
9795         wlarc='${wl}'
9796         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9797         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9798           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9799       else
9800         wlarc=''
9801         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9803         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9804       fi
9805       hardcode_libdir_flag_spec='-R$libdir'
9806       hardcode_shlibpath_var=no
9807       case $host_os in
9808       solaris2.[0-5] | solaris2.[0-5].*) ;;
9809       *)
9810         # The compiler driver will combine linker options so we
9811         # cannot just pass the convience library names through
9812         # without $wl, iff we do not link with $LD.
9813         # Luckily, gcc supports the same syntax we need for Sun Studio.
9814         # Supported since Solaris 2.6 (maybe 2.5.1?)
9815         case $wlarc in
9816         '')
9817           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9818         *)
9819           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' ;;
9820         esac ;;
9821       esac
9822       link_all_deplibs=yes
9823       ;;
9824
9825     sunos4*)
9826       if test "x$host_vendor" = xsequent; then
9827         # Use $CC to link under sequent, because it throws in some extra .o
9828         # files that make .init and .fini sections work.
9829         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9830       else
9831         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9832       fi
9833       hardcode_libdir_flag_spec='-L$libdir'
9834       hardcode_direct=yes
9835       hardcode_minus_L=yes
9836       hardcode_shlibpath_var=no
9837       ;;
9838
9839     sysv4)
9840       case $host_vendor in
9841         sni)
9842           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843           hardcode_direct=yes # is this really true???
9844         ;;
9845         siemens)
9846           ## LD is ld it makes a PLAMLIB
9847           ## CC just makes a GrossModule.
9848           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9849           reload_cmds='$CC -r -o $output$reload_objs'
9850           hardcode_direct=no
9851         ;;
9852         motorola)
9853           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9854           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9855         ;;
9856       esac
9857       runpath_var='LD_RUN_PATH'
9858       hardcode_shlibpath_var=no
9859       ;;
9860
9861     sysv4.3*)
9862       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9863       hardcode_shlibpath_var=no
9864       export_dynamic_flag_spec='-Bexport'
9865       ;;
9866
9867     sysv4*MP*)
9868       if test -d /usr/nec; then
9869         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9870         hardcode_shlibpath_var=no
9871         runpath_var=LD_RUN_PATH
9872         hardcode_runpath_var=yes
9873         ld_shlibs=yes
9874       fi
9875       ;;
9876
9877     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9878       no_undefined_flag='${wl}-z,text'
9879       archive_cmds_need_lc=no
9880       hardcode_shlibpath_var=no
9881       runpath_var='LD_RUN_PATH'
9882
9883       if test "$GCC" = yes; then
9884         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9885         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9886       else
9887         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9888         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9889       fi
9890       ;;
9891
9892     sysv5* | sco3.2v5* | sco5v6*)
9893       # Note: We can NOT use -z defs as we might desire, because we do not
9894       # link with -lc, and that would cause any symbols used from libc to
9895       # always be unresolved, which means just about no library would
9896       # ever link correctly.  If we're not using GNU ld we use -z text
9897       # though, which does catch some bad symbols but isn't as heavy-handed
9898       # as -z defs.
9899       no_undefined_flag='${wl}-z,text'
9900       allow_undefined_flag='${wl}-z,nodefs'
9901       archive_cmds_need_lc=no
9902       hardcode_shlibpath_var=no
9903       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9904       hardcode_libdir_separator=':'
9905       link_all_deplibs=yes
9906       export_dynamic_flag_spec='${wl}-Bexport'
9907       runpath_var='LD_RUN_PATH'
9908
9909       if test "$GCC" = yes; then
9910         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9911         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9912       else
9913         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9914         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9915       fi
9916       ;;
9917
9918     uts4*)
9919       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9920       hardcode_libdir_flag_spec='-L$libdir'
9921       hardcode_shlibpath_var=no
9922       ;;
9923
9924     *)
9925       ld_shlibs=no
9926       ;;
9927     esac
9928   fi
9929
9930 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9931 echo "${ECHO_T}$ld_shlibs" >&6; }
9932 test "$ld_shlibs" = no && can_build_shared=no
9933
9934 #
9935 # Do we need to explicitly link libc?
9936 #
9937 case "x$archive_cmds_need_lc" in
9938 x|xyes)
9939   # Assume -lc should be added
9940   archive_cmds_need_lc=yes
9941
9942   if test "$enable_shared" = yes && test "$GCC" = yes; then
9943     case $archive_cmds in
9944     *'~'*)
9945       # FIXME: we may have to deal with multi-command sequences.
9946       ;;
9947     '$CC '*)
9948       # Test whether the compiler implicitly links with -lc since on some
9949       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9950       # to ld, don't add -lc before -lgcc.
9951       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9952 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9953       $rm conftest*
9954       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9955
9956       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9957   (eval $ac_compile) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } 2>conftest.err; then
9961         soname=conftest
9962         lib=conftest
9963         libobjs=conftest.$ac_objext
9964         deplibs=
9965         wl=$lt_prog_compiler_wl
9966         pic_flag=$lt_prog_compiler_pic
9967         compiler_flags=-v
9968         linker_flags=-v
9969         verstring=
9970         output_objdir=.
9971         libname=conftest
9972         lt_save_allow_undefined_flag=$allow_undefined_flag
9973         allow_undefined_flag=
9974         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9975   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9976   ac_status=$?
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); }
9979         then
9980           archive_cmds_need_lc=no
9981         else
9982           archive_cmds_need_lc=yes
9983         fi
9984         allow_undefined_flag=$lt_save_allow_undefined_flag
9985       else
9986         cat conftest.err 1>&5
9987       fi
9988       $rm conftest*
9989       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9990 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9991       ;;
9992     esac
9993   fi
9994   ;;
9995 esac
9996
9997 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9998 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9999 library_names_spec=
10000 libname_spec='lib$name'
10001 soname_spec=
10002 shrext_cmds=".so"
10003 postinstall_cmds=
10004 postuninstall_cmds=
10005 finish_cmds=
10006 finish_eval=
10007 shlibpath_var=
10008 shlibpath_overrides_runpath=unknown
10009 version_type=none
10010 dynamic_linker="$host_os ld.so"
10011 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10012 if test "$GCC" = yes; then
10013   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10014   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10015     # if the path contains ";" then we assume it to be the separator
10016     # otherwise default to the standard path separator (i.e. ":") - it is
10017     # assumed that no part of a normal pathname contains ";" but that should
10018     # okay in the real world where ";" in dirpaths is itself problematic.
10019     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10020   else
10021     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10022   fi
10023 else
10024   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10025 fi
10026 need_lib_prefix=unknown
10027 hardcode_into_libs=no
10028
10029 # when you set need_version to no, make sure it does not cause -set_version
10030 # flags to be left without arguments
10031 need_version=unknown
10032
10033 case $host_os in
10034 aix3*)
10035   version_type=linux
10036   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10037   shlibpath_var=LIBPATH
10038
10039   # AIX 3 has no versioning support, so we append a major version to the name.
10040   soname_spec='${libname}${release}${shared_ext}$major'
10041   ;;
10042
10043 aix4* | aix5*)
10044   version_type=linux
10045   need_lib_prefix=no
10046   need_version=no
10047   hardcode_into_libs=yes
10048   if test "$host_cpu" = ia64; then
10049     # AIX 5 supports IA64
10050     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10051     shlibpath_var=LD_LIBRARY_PATH
10052   else
10053     # With GCC up to 2.95.x, collect2 would create an import file
10054     # for dependence libraries.  The import file would start with
10055     # the line `#! .'.  This would cause the generated library to
10056     # depend on `.', always an invalid library.  This was fixed in
10057     # development snapshots of GCC prior to 3.0.
10058     case $host_os in
10059       aix4 | aix4.[01] | aix4.[01].*)
10060       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10061            echo ' yes '
10062            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10063         :
10064       else
10065         can_build_shared=no
10066       fi
10067       ;;
10068     esac
10069     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10070     # soname into executable. Probably we can add versioning support to
10071     # collect2, so additional links can be useful in future.
10072     if test "$aix_use_runtimelinking" = yes; then
10073       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10074       # instead of lib<name>.a to let people know that these are not
10075       # typical AIX shared libraries.
10076       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10077     else
10078       # We preserve .a as extension for shared libraries through AIX4.2
10079       # and later when we are not doing run time linking.
10080       library_names_spec='${libname}${release}.a $libname.a'
10081       soname_spec='${libname}${release}${shared_ext}$major'
10082     fi
10083     shlibpath_var=LIBPATH
10084   fi
10085   ;;
10086
10087 amigaos*)
10088   library_names_spec='$libname.ixlibrary $libname.a'
10089   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10090   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'
10091   ;;
10092
10093 beos*)
10094   library_names_spec='${libname}${shared_ext}'
10095   dynamic_linker="$host_os ld.so"
10096   shlibpath_var=LIBRARY_PATH
10097   ;;
10098
10099 bsdi[45]*)
10100   version_type=linux
10101   need_version=no
10102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103   soname_spec='${libname}${release}${shared_ext}$major'
10104   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10105   shlibpath_var=LD_LIBRARY_PATH
10106   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10107   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10108   # the default ld.so.conf also contains /usr/contrib/lib and
10109   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10110   # libtool to hard-code these into programs
10111   ;;
10112
10113 cygwin* | mingw* | pw32*)
10114   version_type=windows
10115   shrext_cmds=".dll"
10116   need_version=no
10117   need_lib_prefix=no
10118
10119   case $GCC,$host_os in
10120   yes,cygwin* | yes,mingw* | yes,pw32*)
10121     library_names_spec='$libname.dll.a'
10122     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10123     postinstall_cmds='base_file=`basename \${file}`~
10124       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10125       dldir=$destdir/`dirname \$dlpath`~
10126       test -d \$dldir || mkdir -p \$dldir~
10127       $install_prog $dir/$dlname \$dldir/$dlname~
10128       chmod a+x \$dldir/$dlname'
10129     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10130       dlpath=$dir/\$dldll~
10131        $rm \$dlpath'
10132     shlibpath_overrides_runpath=yes
10133
10134     case $host_os in
10135     cygwin*)
10136       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10137       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10138       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10139       ;;
10140     mingw*)
10141       # MinGW DLLs use traditional 'lib' prefix
10142       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10143       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10144       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10145         # It is most probably a Windows format PATH printed by
10146         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10147         # path with ; separators, and with drive letters. We can handle the
10148         # drive letters (cygwin fileutils understands them), so leave them,
10149         # especially as we might pass files found there to a mingw objdump,
10150         # which wouldn't understand a cygwinified path. Ahh.
10151         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10152       else
10153         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10154       fi
10155       ;;
10156     pw32*)
10157       # pw32 DLLs use 'pw' prefix rather than 'lib'
10158       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10159       ;;
10160     esac
10161     ;;
10162
10163   *)
10164     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10165     ;;
10166   esac
10167   dynamic_linker='Win32 ld.exe'
10168   # FIXME: first we should search . and the directory the executable is in
10169   shlibpath_var=PATH
10170   ;;
10171
10172 darwin* | rhapsody*)
10173   dynamic_linker="$host_os dyld"
10174   version_type=darwin
10175   need_lib_prefix=no
10176   need_version=no
10177   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10178   soname_spec='${libname}${release}${major}$shared_ext'
10179   shlibpath_overrides_runpath=yes
10180   shlibpath_var=DYLD_LIBRARY_PATH
10181   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10182   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10183   if test "$GCC" = yes; then
10184     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"`
10185   else
10186     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10187   fi
10188   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10189   ;;
10190
10191 dgux*)
10192   version_type=linux
10193   need_lib_prefix=no
10194   need_version=no
10195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10196   soname_spec='${libname}${release}${shared_ext}$major'
10197   shlibpath_var=LD_LIBRARY_PATH
10198   ;;
10199
10200 freebsd1*)
10201   dynamic_linker=no
10202   ;;
10203
10204 kfreebsd*-gnu)
10205   version_type=linux
10206   need_lib_prefix=no
10207   need_version=no
10208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10209   soname_spec='${libname}${release}${shared_ext}$major'
10210   shlibpath_var=LD_LIBRARY_PATH
10211   shlibpath_overrides_runpath=no
10212   hardcode_into_libs=yes
10213   dynamic_linker='GNU ld.so'
10214   ;;
10215
10216 freebsd* | dragonfly*)
10217   # DragonFly does not have aout.  When/if they implement a new
10218   # versioning mechanism, adjust this.
10219   if test -x /usr/bin/objformat; then
10220     objformat=`/usr/bin/objformat`
10221   else
10222     case $host_os in
10223     freebsd[123]*) objformat=aout ;;
10224     *) objformat=elf ;;
10225     esac
10226   fi
10227   version_type=freebsd-$objformat
10228   case $version_type in
10229     freebsd-elf*)
10230       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10231       need_version=no
10232       need_lib_prefix=no
10233       ;;
10234     freebsd-*)
10235       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10236       need_version=yes
10237       ;;
10238   esac
10239   shlibpath_var=LD_LIBRARY_PATH
10240   case $host_os in
10241   freebsd2*)
10242     shlibpath_overrides_runpath=yes
10243     ;;
10244   freebsd3.[01]* | freebsdelf3.[01]*)
10245     shlibpath_overrides_runpath=yes
10246     hardcode_into_libs=yes
10247     ;;
10248   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10249   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10250     shlibpath_overrides_runpath=no
10251     hardcode_into_libs=yes
10252     ;;
10253   freebsd*) # from 4.6 on
10254     shlibpath_overrides_runpath=yes
10255     hardcode_into_libs=yes
10256     ;;
10257   esac
10258   ;;
10259
10260 gnu*)
10261   version_type=linux
10262   need_lib_prefix=no
10263   need_version=no
10264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10265   soname_spec='${libname}${release}${shared_ext}$major'
10266   shlibpath_var=LD_LIBRARY_PATH
10267   hardcode_into_libs=yes
10268   ;;
10269
10270 hpux9* | hpux10* | hpux11*)
10271   # Give a soname corresponding to the major version so that dld.sl refuses to
10272   # link against other versions.
10273   version_type=sunos
10274   need_lib_prefix=no
10275   need_version=no
10276   case $host_cpu in
10277   ia64*)
10278     shrext_cmds='.so'
10279     hardcode_into_libs=yes
10280     dynamic_linker="$host_os dld.so"
10281     shlibpath_var=LD_LIBRARY_PATH
10282     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284     soname_spec='${libname}${release}${shared_ext}$major'
10285     if test "X$HPUX_IA64_MODE" = X32; then
10286       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10287     else
10288       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10289     fi
10290     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10291     ;;
10292    hppa*64*)
10293      shrext_cmds='.sl'
10294      hardcode_into_libs=yes
10295      dynamic_linker="$host_os dld.sl"
10296      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10297      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10298      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299      soname_spec='${libname}${release}${shared_ext}$major'
10300      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10301      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10302      ;;
10303    *)
10304     shrext_cmds='.sl'
10305     dynamic_linker="$host_os dld.sl"
10306     shlibpath_var=SHLIB_PATH
10307     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309     soname_spec='${libname}${release}${shared_ext}$major'
10310     ;;
10311   esac
10312   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10313   postinstall_cmds='chmod 555 $lib'
10314   ;;
10315
10316 interix3*)
10317   version_type=linux
10318   need_lib_prefix=no
10319   need_version=no
10320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10321   soname_spec='${libname}${release}${shared_ext}$major'
10322   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10323   shlibpath_var=LD_LIBRARY_PATH
10324   shlibpath_overrides_runpath=no
10325   hardcode_into_libs=yes
10326   ;;
10327
10328 irix5* | irix6* | nonstopux*)
10329   case $host_os in
10330     nonstopux*) version_type=nonstopux ;;
10331     *)
10332         if test "$lt_cv_prog_gnu_ld" = yes; then
10333                 version_type=linux
10334         else
10335                 version_type=irix
10336         fi ;;
10337   esac
10338   need_lib_prefix=no
10339   need_version=no
10340   soname_spec='${libname}${release}${shared_ext}$major'
10341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10342   case $host_os in
10343   irix5* | nonstopux*)
10344     libsuff= shlibsuff=
10345     ;;
10346   *)
10347     case $LD in # libtool.m4 will add one of these switches to LD
10348     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10349       libsuff= shlibsuff= libmagic=32-bit;;
10350     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10351       libsuff=32 shlibsuff=N32 libmagic=N32;;
10352     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10353       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10354     *) libsuff= shlibsuff= libmagic=never-match;;
10355     esac
10356     ;;
10357   esac
10358   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10359   shlibpath_overrides_runpath=no
10360   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10361   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10362   hardcode_into_libs=yes
10363   ;;
10364
10365 # No shared lib support for Linux oldld, aout, or coff.
10366 linux*oldld* | linux*aout* | linux*coff*)
10367   dynamic_linker=no
10368   ;;
10369
10370 # This must be Linux ELF.
10371 linux*)
10372   version_type=linux
10373   need_lib_prefix=no
10374   need_version=no
10375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376   soname_spec='${libname}${release}${shared_ext}$major'
10377   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10378   shlibpath_var=LD_LIBRARY_PATH
10379   shlibpath_overrides_runpath=no
10380   # This implies no fast_install, which is unacceptable.
10381   # Some rework will be needed to allow for fast_install
10382   # before this can be enabled.
10383   hardcode_into_libs=yes
10384
10385   # Append ld.so.conf contents to the search path
10386   if test -f /etc/ld.so.conf; then
10387     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' ' '`
10388     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10389   fi
10390
10391   # We used to test for /lib/ld.so.1 and disable shared libraries on
10392   # powerpc, because MkLinux only supported shared libraries with the
10393   # GNU dynamic linker.  Since this was broken with cross compilers,
10394   # most powerpc-linux boxes support dynamic linking these days and
10395   # people can always --disable-shared, the test was removed, and we
10396   # assume the GNU/Linux dynamic linker is in use.
10397   dynamic_linker='GNU/Linux ld.so'
10398   ;;
10399
10400 knetbsd*-gnu)
10401   version_type=linux
10402   need_lib_prefix=no
10403   need_version=no
10404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10405   soname_spec='${libname}${release}${shared_ext}$major'
10406   shlibpath_var=LD_LIBRARY_PATH
10407   shlibpath_overrides_runpath=no
10408   hardcode_into_libs=yes
10409   dynamic_linker='GNU ld.so'
10410   ;;
10411
10412 netbsd*)
10413   version_type=sunos
10414   need_lib_prefix=no
10415   need_version=no
10416   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10418     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10419     dynamic_linker='NetBSD (a.out) ld.so'
10420   else
10421     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10422     soname_spec='${libname}${release}${shared_ext}$major'
10423     dynamic_linker='NetBSD ld.elf_so'
10424   fi
10425   shlibpath_var=LD_LIBRARY_PATH
10426   shlibpath_overrides_runpath=yes
10427   hardcode_into_libs=yes
10428   ;;
10429
10430 newsos6)
10431   version_type=linux
10432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433   shlibpath_var=LD_LIBRARY_PATH
10434   shlibpath_overrides_runpath=yes
10435   ;;
10436
10437 nto-qnx*)
10438   version_type=linux
10439   need_lib_prefix=no
10440   need_version=no
10441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442   soname_spec='${libname}${release}${shared_ext}$major'
10443   shlibpath_var=LD_LIBRARY_PATH
10444   shlibpath_overrides_runpath=yes
10445   ;;
10446
10447 openbsd*)
10448   version_type=sunos
10449   sys_lib_dlsearch_path_spec="/usr/lib"
10450   need_lib_prefix=no
10451   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10452   case $host_os in
10453     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10454     *)                         need_version=no  ;;
10455   esac
10456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10457   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10458   shlibpath_var=LD_LIBRARY_PATH
10459   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10460     case $host_os in
10461       openbsd2.[89] | openbsd2.[89].*)
10462         shlibpath_overrides_runpath=no
10463         ;;
10464       *)
10465         shlibpath_overrides_runpath=yes
10466         ;;
10467       esac
10468   else
10469     shlibpath_overrides_runpath=yes
10470   fi
10471   ;;
10472
10473 os2*)
10474   libname_spec='$name'
10475   shrext_cmds=".dll"
10476   need_lib_prefix=no
10477   library_names_spec='$libname${shared_ext} $libname.a'
10478   dynamic_linker='OS/2 ld.exe'
10479   shlibpath_var=LIBPATH
10480   ;;
10481
10482 osf3* | osf4* | osf5*)
10483   version_type=osf
10484   need_lib_prefix=no
10485   need_version=no
10486   soname_spec='${libname}${release}${shared_ext}$major'
10487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488   shlibpath_var=LD_LIBRARY_PATH
10489   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10490   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10491   ;;
10492
10493 solaris*)
10494   version_type=linux
10495   need_lib_prefix=no
10496   need_version=no
10497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498   soname_spec='${libname}${release}${shared_ext}$major'
10499   shlibpath_var=LD_LIBRARY_PATH
10500   shlibpath_overrides_runpath=yes
10501   hardcode_into_libs=yes
10502   # ldd complains unless libraries are executable
10503   postinstall_cmds='chmod +x $lib'
10504   ;;
10505
10506 sunos4*)
10507   version_type=sunos
10508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10509   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10510   shlibpath_var=LD_LIBRARY_PATH
10511   shlibpath_overrides_runpath=yes
10512   if test "$with_gnu_ld" = yes; then
10513     need_lib_prefix=no
10514   fi
10515   need_version=yes
10516   ;;
10517
10518 sysv4 | sysv4.3*)
10519   version_type=linux
10520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521   soname_spec='${libname}${release}${shared_ext}$major'
10522   shlibpath_var=LD_LIBRARY_PATH
10523   case $host_vendor in
10524     sni)
10525       shlibpath_overrides_runpath=no
10526       need_lib_prefix=no
10527       export_dynamic_flag_spec='${wl}-Blargedynsym'
10528       runpath_var=LD_RUN_PATH
10529       ;;
10530     siemens)
10531       need_lib_prefix=no
10532       ;;
10533     motorola)
10534       need_lib_prefix=no
10535       need_version=no
10536       shlibpath_overrides_runpath=no
10537       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10538       ;;
10539   esac
10540   ;;
10541
10542 sysv4*MP*)
10543   if test -d /usr/nec ;then
10544     version_type=linux
10545     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10546     soname_spec='$libname${shared_ext}.$major'
10547     shlibpath_var=LD_LIBRARY_PATH
10548   fi
10549   ;;
10550
10551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10552   version_type=freebsd-elf
10553   need_lib_prefix=no
10554   need_version=no
10555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10556   soname_spec='${libname}${release}${shared_ext}$major'
10557   shlibpath_var=LD_LIBRARY_PATH
10558   hardcode_into_libs=yes
10559   if test "$with_gnu_ld" = yes; then
10560     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10561     shlibpath_overrides_runpath=no
10562   else
10563     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10564     shlibpath_overrides_runpath=yes
10565     case $host_os in
10566       sco3.2v5*)
10567         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10568         ;;
10569     esac
10570   fi
10571   sys_lib_dlsearch_path_spec='/usr/lib'
10572   ;;
10573
10574 uts4*)
10575   version_type=linux
10576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577   soname_spec='${libname}${release}${shared_ext}$major'
10578   shlibpath_var=LD_LIBRARY_PATH
10579   ;;
10580
10581 *)
10582   dynamic_linker=no
10583   ;;
10584 esac
10585 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10586 echo "${ECHO_T}$dynamic_linker" >&6; }
10587 test "$dynamic_linker" = no && can_build_shared=no
10588
10589 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10590 if test "$GCC" = yes; then
10591   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10592 fi
10593
10594 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10595 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10596 hardcode_action=
10597 if test -n "$hardcode_libdir_flag_spec" || \
10598    test -n "$runpath_var" || \
10599    test "X$hardcode_automatic" = "Xyes" ; then
10600
10601   # We can hardcode non-existant directories.
10602   if test "$hardcode_direct" != no &&
10603      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10604      # have to relink, otherwise we might link with an installed library
10605      # when we should be linking with a yet-to-be-installed one
10606      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10607      test "$hardcode_minus_L" != no; then
10608     # Linking always hardcodes the temporary library directory.
10609     hardcode_action=relink
10610   else
10611     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10612     hardcode_action=immediate
10613   fi
10614 else
10615   # We cannot hardcode anything, or else we can only hardcode existing
10616   # directories.
10617   hardcode_action=unsupported
10618 fi
10619 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10620 echo "${ECHO_T}$hardcode_action" >&6; }
10621
10622 if test "$hardcode_action" = relink; then
10623   # Fast installation is not supported
10624   enable_fast_install=no
10625 elif test "$shlibpath_overrides_runpath" = yes ||
10626      test "$enable_shared" = no; then
10627   # Fast installation is not necessary
10628   enable_fast_install=needless
10629 fi
10630
10631 striplib=
10632 old_striplib=
10633 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10634 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10635 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10636   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10637   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10638   { echo "$as_me:$LINENO: result: yes" >&5
10639 echo "${ECHO_T}yes" >&6; }
10640 else
10641 # FIXME - insert some real tests, host_os isn't really good enough
10642   case $host_os in
10643    darwin*)
10644        if test -n "$STRIP" ; then
10645          striplib="$STRIP -x"
10646          { echo "$as_me:$LINENO: result: yes" >&5
10647 echo "${ECHO_T}yes" >&6; }
10648        else
10649   { echo "$as_me:$LINENO: result: no" >&5
10650 echo "${ECHO_T}no" >&6; }
10651 fi
10652        ;;
10653    *)
10654   { echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6; }
10656     ;;
10657   esac
10658 fi
10659
10660 if test "x$enable_dlopen" != xyes; then
10661   enable_dlopen=unknown
10662   enable_dlopen_self=unknown
10663   enable_dlopen_self_static=unknown
10664 else
10665   lt_cv_dlopen=no
10666   lt_cv_dlopen_libs=
10667
10668   case $host_os in
10669   beos*)
10670     lt_cv_dlopen="load_add_on"
10671     lt_cv_dlopen_libs=
10672     lt_cv_dlopen_self=yes
10673     ;;
10674
10675   mingw* | pw32*)
10676     lt_cv_dlopen="LoadLibrary"
10677     lt_cv_dlopen_libs=
10678    ;;
10679
10680   cygwin*)
10681     lt_cv_dlopen="dlopen"
10682     lt_cv_dlopen_libs=
10683    ;;
10684
10685   darwin*)
10686   # if libdl is installed we need to link against it
10687     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10688 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10689 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10690   echo $ECHO_N "(cached) $ECHO_C" >&6
10691 else
10692   ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-ldl  $LIBS"
10694 cat >conftest.$ac_ext <<_ACEOF
10695 /* confdefs.h.  */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h.  */
10700
10701 /* Override any GCC internal prototype to avoid an error.
10702    Use char because int might match the return type of a GCC
10703    builtin and then its argument prototype would still apply.  */
10704 #ifdef __cplusplus
10705 extern "C"
10706 #endif
10707 char dlopen ();
10708 int
10709 main ()
10710 {
10711 return dlopen ();
10712   ;
10713   return 0;
10714 }
10715 _ACEOF
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (ac_try="$ac_link"
10718 case "(($ac_try" in
10719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720   *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723   (eval "$ac_link") 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } && {
10730          test -z "$ac_c_werror_flag" ||
10731          test ! -s conftest.err
10732        } && test -s conftest$ac_exeext &&
10733        $as_test_x conftest$ac_exeext; then
10734   ac_cv_lib_dl_dlopen=yes
10735 else
10736   echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10738
10739         ac_cv_lib_dl_dlopen=no
10740 fi
10741
10742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10743       conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10745 fi
10746 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10747 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10748 if test $ac_cv_lib_dl_dlopen = yes; then
10749   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10750 else
10751
10752     lt_cv_dlopen="dyld"
10753     lt_cv_dlopen_libs=
10754     lt_cv_dlopen_self=yes
10755
10756 fi
10757
10758    ;;
10759
10760   *)
10761     { echo "$as_me:$LINENO: checking for shl_load" >&5
10762 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10763 if test "${ac_cv_func_shl_load+set}" = set; then
10764   echo $ECHO_N "(cached) $ECHO_C" >&6
10765 else
10766   cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h.  */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h.  */
10772 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10774 #define shl_load innocuous_shl_load
10775
10776 /* System header to define __stub macros and hopefully few prototypes,
10777     which can conflict with char shl_load (); below.
10778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10779     <limits.h> exists even on freestanding compilers.  */
10780
10781 #ifdef __STDC__
10782 # include <limits.h>
10783 #else
10784 # include <assert.h>
10785 #endif
10786
10787 #undef shl_load
10788
10789 /* Override any GCC internal prototype to avoid an error.
10790    Use char because int might match the return type of a GCC
10791    builtin and then its argument prototype would still apply.  */
10792 #ifdef __cplusplus
10793 extern "C"
10794 #endif
10795 char shl_load ();
10796 /* The GNU C library defines this for functions which it implements
10797     to always fail with ENOSYS.  Some functions are actually named
10798     something starting with __ and the normal name is an alias.  */
10799 #if defined __stub_shl_load || defined __stub___shl_load
10800 choke me
10801 #endif
10802
10803 int
10804 main ()
10805 {
10806 return shl_load ();
10807   ;
10808   return 0;
10809 }
10810 _ACEOF
10811 rm -f conftest.$ac_objext conftest$ac_exeext
10812 if { (ac_try="$ac_link"
10813 case "(($ac_try" in
10814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815   *) ac_try_echo=$ac_try;;
10816 esac
10817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818   (eval "$ac_link") 2>conftest.er1
10819   ac_status=$?
10820   grep -v '^ *+' conftest.er1 >conftest.err
10821   rm -f conftest.er1
10822   cat conftest.err >&5
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); } && {
10825          test -z "$ac_c_werror_flag" ||
10826          test ! -s conftest.err
10827        } && test -s conftest$ac_exeext &&
10828        $as_test_x conftest$ac_exeext; then
10829   ac_cv_func_shl_load=yes
10830 else
10831   echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10833
10834         ac_cv_func_shl_load=no
10835 fi
10836
10837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10838       conftest$ac_exeext conftest.$ac_ext
10839 fi
10840 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10841 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10842 if test $ac_cv_func_shl_load = yes; then
10843   lt_cv_dlopen="shl_load"
10844 else
10845   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10846 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10847 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10848   echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850   ac_check_lib_save_LIBS=$LIBS
10851 LIBS="-ldld  $LIBS"
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h.  */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h.  */
10858
10859 /* Override any GCC internal prototype to avoid an error.
10860    Use char because int might match the return type of a GCC
10861    builtin and then its argument prototype would still apply.  */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char shl_load ();
10866 int
10867 main ()
10868 {
10869 return shl_load ();
10870   ;
10871   return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (ac_try="$ac_link"
10876 case "(($ac_try" in
10877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878   *) ac_try_echo=$ac_try;;
10879 esac
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881   (eval "$ac_link") 2>conftest.er1
10882   ac_status=$?
10883   grep -v '^ *+' conftest.er1 >conftest.err
10884   rm -f conftest.er1
10885   cat conftest.err >&5
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); } && {
10888          test -z "$ac_c_werror_flag" ||
10889          test ! -s conftest.err
10890        } && test -s conftest$ac_exeext &&
10891        $as_test_x conftest$ac_exeext; then
10892   ac_cv_lib_dld_shl_load=yes
10893 else
10894   echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897         ac_cv_lib_dld_shl_load=no
10898 fi
10899
10900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10901       conftest$ac_exeext conftest.$ac_ext
10902 LIBS=$ac_check_lib_save_LIBS
10903 fi
10904 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10905 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10906 if test $ac_cv_lib_dld_shl_load = yes; then
10907   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10908 else
10909   { echo "$as_me:$LINENO: checking for dlopen" >&5
10910 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10911 if test "${ac_cv_func_dlopen+set}" = set; then
10912   echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914   cat >conftest.$ac_ext <<_ACEOF
10915 /* confdefs.h.  */
10916 _ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h.  */
10920 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10922 #define dlopen innocuous_dlopen
10923
10924 /* System header to define __stub macros and hopefully few prototypes,
10925     which can conflict with char dlopen (); below.
10926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10927     <limits.h> exists even on freestanding compilers.  */
10928
10929 #ifdef __STDC__
10930 # include <limits.h>
10931 #else
10932 # include <assert.h>
10933 #endif
10934
10935 #undef dlopen
10936
10937 /* Override any GCC internal prototype to avoid an error.
10938    Use char because int might match the return type of a GCC
10939    builtin and then its argument prototype would still apply.  */
10940 #ifdef __cplusplus
10941 extern "C"
10942 #endif
10943 char dlopen ();
10944 /* The GNU C library defines this for functions which it implements
10945     to always fail with ENOSYS.  Some functions are actually named
10946     something starting with __ and the normal name is an alias.  */
10947 #if defined __stub_dlopen || defined __stub___dlopen
10948 choke me
10949 #endif
10950
10951 int
10952 main ()
10953 {
10954 return dlopen ();
10955   ;
10956   return 0;
10957 }
10958 _ACEOF
10959 rm -f conftest.$ac_objext conftest$ac_exeext
10960 if { (ac_try="$ac_link"
10961 case "(($ac_try" in
10962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963   *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966   (eval "$ac_link") 2>conftest.er1
10967   ac_status=$?
10968   grep -v '^ *+' conftest.er1 >conftest.err
10969   rm -f conftest.er1
10970   cat conftest.err >&5
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); } && {
10973          test -z "$ac_c_werror_flag" ||
10974          test ! -s conftest.err
10975        } && test -s conftest$ac_exeext &&
10976        $as_test_x conftest$ac_exeext; then
10977   ac_cv_func_dlopen=yes
10978 else
10979   echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10981
10982         ac_cv_func_dlopen=no
10983 fi
10984
10985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10986       conftest$ac_exeext conftest.$ac_ext
10987 fi
10988 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10989 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10990 if test $ac_cv_func_dlopen = yes; then
10991   lt_cv_dlopen="dlopen"
10992 else
10993   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10996   echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998   ac_check_lib_save_LIBS=$LIBS
10999 LIBS="-ldl  $LIBS"
11000 cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h.  */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h.  */
11006
11007 /* Override any GCC internal prototype to avoid an error.
11008    Use char because int might match the return type of a GCC
11009    builtin and then its argument prototype would still apply.  */
11010 #ifdef __cplusplus
11011 extern "C"
11012 #endif
11013 char dlopen ();
11014 int
11015 main ()
11016 {
11017 return dlopen ();
11018   ;
11019   return 0;
11020 }
11021 _ACEOF
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (ac_try="$ac_link"
11024 case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029   (eval "$ac_link") 2>conftest.er1
11030   ac_status=$?
11031   grep -v '^ *+' conftest.er1 >conftest.err
11032   rm -f conftest.er1
11033   cat conftest.err >&5
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); } && {
11036          test -z "$ac_c_werror_flag" ||
11037          test ! -s conftest.err
11038        } && test -s conftest$ac_exeext &&
11039        $as_test_x conftest$ac_exeext; then
11040   ac_cv_lib_dl_dlopen=yes
11041 else
11042   echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11044
11045         ac_cv_lib_dl_dlopen=no
11046 fi
11047
11048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11049       conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11051 fi
11052 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11053 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11054 if test $ac_cv_lib_dl_dlopen = yes; then
11055   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11056 else
11057   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11058 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11059 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062   ac_check_lib_save_LIBS=$LIBS
11063 LIBS="-lsvld  $LIBS"
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h.  */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h.  */
11070
11071 /* Override any GCC internal prototype to avoid an error.
11072    Use char because int might match the return type of a GCC
11073    builtin and then its argument prototype would still apply.  */
11074 #ifdef __cplusplus
11075 extern "C"
11076 #endif
11077 char dlopen ();
11078 int
11079 main ()
11080 {
11081 return dlopen ();
11082   ;
11083   return 0;
11084 }
11085 _ACEOF
11086 rm -f conftest.$ac_objext conftest$ac_exeext
11087 if { (ac_try="$ac_link"
11088 case "(($ac_try" in
11089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090   *) ac_try_echo=$ac_try;;
11091 esac
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093   (eval "$ac_link") 2>conftest.er1
11094   ac_status=$?
11095   grep -v '^ *+' conftest.er1 >conftest.err
11096   rm -f conftest.er1
11097   cat conftest.err >&5
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); } && {
11100          test -z "$ac_c_werror_flag" ||
11101          test ! -s conftest.err
11102        } && test -s conftest$ac_exeext &&
11103        $as_test_x conftest$ac_exeext; then
11104   ac_cv_lib_svld_dlopen=yes
11105 else
11106   echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11108
11109         ac_cv_lib_svld_dlopen=no
11110 fi
11111
11112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11113       conftest$ac_exeext conftest.$ac_ext
11114 LIBS=$ac_check_lib_save_LIBS
11115 fi
11116 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11117 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11118 if test $ac_cv_lib_svld_dlopen = yes; then
11119   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11120 else
11121   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11122 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11123 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   ac_check_lib_save_LIBS=$LIBS
11127 LIBS="-ldld  $LIBS"
11128 cat >conftest.$ac_ext <<_ACEOF
11129 /* confdefs.h.  */
11130 _ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h.  */
11134
11135 /* Override any GCC internal prototype to avoid an error.
11136    Use char because int might match the return type of a GCC
11137    builtin and then its argument prototype would still apply.  */
11138 #ifdef __cplusplus
11139 extern "C"
11140 #endif
11141 char dld_link ();
11142 int
11143 main ()
11144 {
11145 return dld_link ();
11146   ;
11147   return 0;
11148 }
11149 _ACEOF
11150 rm -f conftest.$ac_objext conftest$ac_exeext
11151 if { (ac_try="$ac_link"
11152 case "(($ac_try" in
11153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154   *) ac_try_echo=$ac_try;;
11155 esac
11156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157   (eval "$ac_link") 2>conftest.er1
11158   ac_status=$?
11159   grep -v '^ *+' conftest.er1 >conftest.err
11160   rm -f conftest.er1
11161   cat conftest.err >&5
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); } && {
11164          test -z "$ac_c_werror_flag" ||
11165          test ! -s conftest.err
11166        } && test -s conftest$ac_exeext &&
11167        $as_test_x conftest$ac_exeext; then
11168   ac_cv_lib_dld_dld_link=yes
11169 else
11170   echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11172
11173         ac_cv_lib_dld_dld_link=no
11174 fi
11175
11176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11177       conftest$ac_exeext conftest.$ac_ext
11178 LIBS=$ac_check_lib_save_LIBS
11179 fi
11180 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11181 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11182 if test $ac_cv_lib_dld_dld_link = yes; then
11183   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11184 fi
11185
11186
11187 fi
11188
11189
11190 fi
11191
11192
11193 fi
11194
11195
11196 fi
11197
11198
11199 fi
11200
11201     ;;
11202   esac
11203
11204   if test "x$lt_cv_dlopen" != xno; then
11205     enable_dlopen=yes
11206   else
11207     enable_dlopen=no
11208   fi
11209
11210   case $lt_cv_dlopen in
11211   dlopen)
11212     save_CPPFLAGS="$CPPFLAGS"
11213     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11214
11215     save_LDFLAGS="$LDFLAGS"
11216     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11217
11218     save_LIBS="$LIBS"
11219     LIBS="$lt_cv_dlopen_libs $LIBS"
11220
11221     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11222 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11223 if test "${lt_cv_dlopen_self+set}" = set; then
11224   echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226           if test "$cross_compiling" = yes; then :
11227   lt_cv_dlopen_self=cross
11228 else
11229   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11230   lt_status=$lt_dlunknown
11231   cat > conftest.$ac_ext <<EOF
11232 #line 11232 "configure"
11233 #include "confdefs.h"
11234
11235 #if HAVE_DLFCN_H
11236 #include <dlfcn.h>
11237 #endif
11238
11239 #include <stdio.h>
11240
11241 #ifdef RTLD_GLOBAL
11242 #  define LT_DLGLOBAL           RTLD_GLOBAL
11243 #else
11244 #  ifdef DL_GLOBAL
11245 #    define LT_DLGLOBAL         DL_GLOBAL
11246 #  else
11247 #    define LT_DLGLOBAL         0
11248 #  endif
11249 #endif
11250
11251 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11252    find out it does not work in some platform. */
11253 #ifndef LT_DLLAZY_OR_NOW
11254 #  ifdef RTLD_LAZY
11255 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11256 #  else
11257 #    ifdef DL_LAZY
11258 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11259 #    else
11260 #      ifdef RTLD_NOW
11261 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11262 #      else
11263 #        ifdef DL_NOW
11264 #          define LT_DLLAZY_OR_NOW      DL_NOW
11265 #        else
11266 #          define LT_DLLAZY_OR_NOW      0
11267 #        endif
11268 #      endif
11269 #    endif
11270 #  endif
11271 #endif
11272
11273 #ifdef __cplusplus
11274 extern "C" void exit (int);
11275 #endif
11276
11277 void fnord() { int i=42;}
11278 int main ()
11279 {
11280   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11281   int status = $lt_dlunknown;
11282
11283   if (self)
11284     {
11285       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11286       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11287       /* dlclose (self); */
11288     }
11289   else
11290     puts (dlerror ());
11291
11292     exit (status);
11293 }
11294 EOF
11295   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11296   (eval $ac_link) 2>&5
11297   ac_status=$?
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11300     (./conftest; exit; ) >&5 2>/dev/null
11301     lt_status=$?
11302     case x$lt_status in
11303       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11304       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11305       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11306     esac
11307   else :
11308     # compilation failed
11309     lt_cv_dlopen_self=no
11310   fi
11311 fi
11312 rm -fr conftest*
11313
11314
11315 fi
11316 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11317 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11318
11319     if test "x$lt_cv_dlopen_self" = xyes; then
11320       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11321       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11322 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11323 if test "${lt_cv_dlopen_self_static+set}" = set; then
11324   echo $ECHO_N "(cached) $ECHO_C" >&6
11325 else
11326           if test "$cross_compiling" = yes; then :
11327   lt_cv_dlopen_self_static=cross
11328 else
11329   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11330   lt_status=$lt_dlunknown
11331   cat > conftest.$ac_ext <<EOF
11332 #line 11332 "configure"
11333 #include "confdefs.h"
11334
11335 #if HAVE_DLFCN_H
11336 #include <dlfcn.h>
11337 #endif
11338
11339 #include <stdio.h>
11340
11341 #ifdef RTLD_GLOBAL
11342 #  define LT_DLGLOBAL           RTLD_GLOBAL
11343 #else
11344 #  ifdef DL_GLOBAL
11345 #    define LT_DLGLOBAL         DL_GLOBAL
11346 #  else
11347 #    define LT_DLGLOBAL         0
11348 #  endif
11349 #endif
11350
11351 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11352    find out it does not work in some platform. */
11353 #ifndef LT_DLLAZY_OR_NOW
11354 #  ifdef RTLD_LAZY
11355 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11356 #  else
11357 #    ifdef DL_LAZY
11358 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11359 #    else
11360 #      ifdef RTLD_NOW
11361 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11362 #      else
11363 #        ifdef DL_NOW
11364 #          define LT_DLLAZY_OR_NOW      DL_NOW
11365 #        else
11366 #          define LT_DLLAZY_OR_NOW      0
11367 #        endif
11368 #      endif
11369 #    endif
11370 #  endif
11371 #endif
11372
11373 #ifdef __cplusplus
11374 extern "C" void exit (int);
11375 #endif
11376
11377 void fnord() { int i=42;}
11378 int main ()
11379 {
11380   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11381   int status = $lt_dlunknown;
11382
11383   if (self)
11384     {
11385       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11386       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11387       /* dlclose (self); */
11388     }
11389   else
11390     puts (dlerror ());
11391
11392     exit (status);
11393 }
11394 EOF
11395   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11396   (eval $ac_link) 2>&5
11397   ac_status=$?
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11400     (./conftest; exit; ) >&5 2>/dev/null
11401     lt_status=$?
11402     case x$lt_status in
11403       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11404       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11405       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11406     esac
11407   else :
11408     # compilation failed
11409     lt_cv_dlopen_self_static=no
11410   fi
11411 fi
11412 rm -fr conftest*
11413
11414
11415 fi
11416 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11417 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11418     fi
11419
11420     CPPFLAGS="$save_CPPFLAGS"
11421     LDFLAGS="$save_LDFLAGS"
11422     LIBS="$save_LIBS"
11423     ;;
11424   esac
11425
11426   case $lt_cv_dlopen_self in
11427   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11428   *) enable_dlopen_self=unknown ;;
11429   esac
11430
11431   case $lt_cv_dlopen_self_static in
11432   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11433   *) enable_dlopen_self_static=unknown ;;
11434   esac
11435 fi
11436
11437
11438 # Report which library types will actually be built
11439 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11440 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11441 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11442 echo "${ECHO_T}$can_build_shared" >&6; }
11443
11444 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11445 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11446 test "$can_build_shared" = "no" && enable_shared=no
11447
11448 # On AIX, shared libraries and static libraries use the same namespace, and
11449 # are all built from PIC.
11450 case $host_os in
11451 aix3*)
11452   test "$enable_shared" = yes && enable_static=no
11453   if test -n "$RANLIB"; then
11454     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11455     postinstall_cmds='$RANLIB $lib'
11456   fi
11457   ;;
11458
11459 aix4* | aix5*)
11460   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11461     test "$enable_shared" = yes && enable_static=no
11462   fi
11463     ;;
11464 esac
11465 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11466 echo "${ECHO_T}$enable_shared" >&6; }
11467
11468 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11469 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11470 # Make sure either enable_shared or enable_static is yes.
11471 test "$enable_shared" = yes || enable_static=yes
11472 { echo "$as_me:$LINENO: result: $enable_static" >&5
11473 echo "${ECHO_T}$enable_static" >&6; }
11474
11475 # The else clause should only fire when bootstrapping the
11476 # libtool distribution, otherwise you forgot to ship ltmain.sh
11477 # with your package, and you will get complaints that there are
11478 # no rules to generate ltmain.sh.
11479 if test -f "$ltmain"; then
11480   # See if we are running on zsh, and set the options which allow our commands through
11481   # without removal of \ escapes.
11482   if test -n "${ZSH_VERSION+set}" ; then
11483     setopt NO_GLOB_SUBST
11484   fi
11485   # Now quote all the things that may contain metacharacters while being
11486   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11487   # variables and quote the copies for generation of the libtool script.
11488   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11489     SED SHELL STRIP \
11490     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11491     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11492     deplibs_check_method reload_flag reload_cmds need_locks \
11493     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11494     lt_cv_sys_global_symbol_to_c_name_address \
11495     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11496     old_postinstall_cmds old_postuninstall_cmds \
11497     compiler \
11498     CC \
11499     LD \
11500     lt_prog_compiler_wl \
11501     lt_prog_compiler_pic \
11502     lt_prog_compiler_static \
11503     lt_prog_compiler_no_builtin_flag \
11504     export_dynamic_flag_spec \
11505     thread_safe_flag_spec \
11506     whole_archive_flag_spec \
11507     enable_shared_with_static_runtimes \
11508     old_archive_cmds \
11509     old_archive_from_new_cmds \
11510     predep_objects \
11511     postdep_objects \
11512     predeps \
11513     postdeps \
11514     compiler_lib_search_path \
11515     archive_cmds \
11516     archive_expsym_cmds \
11517     postinstall_cmds \
11518     postuninstall_cmds \
11519     old_archive_from_expsyms_cmds \
11520     allow_undefined_flag \
11521     no_undefined_flag \
11522     export_symbols_cmds \
11523     hardcode_libdir_flag_spec \
11524     hardcode_libdir_flag_spec_ld \
11525     hardcode_libdir_separator \
11526     hardcode_automatic \
11527     module_cmds \
11528     module_expsym_cmds \
11529     lt_cv_prog_compiler_c_o \
11530     exclude_expsyms \
11531     include_expsyms; do
11532
11533     case $var in
11534     old_archive_cmds | \
11535     old_archive_from_new_cmds | \
11536     archive_cmds | \
11537     archive_expsym_cmds | \
11538     module_cmds | \
11539     module_expsym_cmds | \
11540     old_archive_from_expsyms_cmds | \
11541     export_symbols_cmds | \
11542     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11543     postinstall_cmds | postuninstall_cmds | \
11544     old_postinstall_cmds | old_postuninstall_cmds | \
11545     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11546       # Double-quote double-evaled strings.
11547       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11548       ;;
11549     *)
11550       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11551       ;;
11552     esac
11553   done
11554
11555   case $lt_echo in
11556   *'\$0 --fallback-echo"')
11557     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11558     ;;
11559   esac
11560
11561 cfgfile="${ofile}T"
11562   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11563   $rm -f "$cfgfile"
11564   { echo "$as_me:$LINENO: creating $ofile" >&5
11565 echo "$as_me: creating $ofile" >&6;}
11566
11567   cat <<__EOF__ >> "$cfgfile"
11568 #! $SHELL
11569
11570 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11571 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11572 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11573 #
11574 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11575 # Free Software Foundation, Inc.
11576 #
11577 # This file is part of GNU Libtool:
11578 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11579 #
11580 # This program is free software; you can redistribute it and/or modify
11581 # it under the terms of the GNU General Public License as published by
11582 # the Free Software Foundation; either version 2 of the License, or
11583 # (at your option) any later version.
11584 #
11585 # This program is distributed in the hope that it will be useful, but
11586 # WITHOUT ANY WARRANTY; without even the implied warranty of
11587 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11588 # General Public License for more details.
11589 #
11590 # You should have received a copy of the GNU General Public License
11591 # along with this program; if not, write to the Free Software
11592 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11593 #
11594 # As a special exception to the GNU General Public License, if you
11595 # distribute this file as part of a program that contains a
11596 # configuration script generated by Autoconf, you may include it under
11597 # the same distribution terms that you use for the rest of that program.
11598
11599 # A sed program that does not truncate output.
11600 SED=$lt_SED
11601
11602 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11603 Xsed="$SED -e 1s/^X//"
11604
11605 # The HP-UX ksh and POSIX shell print the target directory to stdout
11606 # if CDPATH is set.
11607 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11608
11609 # The names of the tagged configurations supported by this script.
11610 available_tags=
11611
11612 # ### BEGIN LIBTOOL CONFIG
11613
11614 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11615
11616 # Shell to use when invoking shell scripts.
11617 SHELL=$lt_SHELL
11618
11619 # Whether or not to build shared libraries.
11620 build_libtool_libs=$enable_shared
11621
11622 # Whether or not to build static libraries.
11623 build_old_libs=$enable_static
11624
11625 # Whether or not to add -lc for building shared libraries.
11626 build_libtool_need_lc=$archive_cmds_need_lc
11627
11628 # Whether or not to disallow shared libs when runtime libs are static
11629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11630
11631 # Whether or not to optimize for fast installation.
11632 fast_install=$enable_fast_install
11633
11634 # The host system.
11635 host_alias=$host_alias
11636 host=$host
11637 host_os=$host_os
11638
11639 # The build system.
11640 build_alias=$build_alias
11641 build=$build
11642 build_os=$build_os
11643
11644 # An echo program that does not interpret backslashes.
11645 echo=$lt_echo
11646
11647 # The archiver.
11648 AR=$lt_AR
11649 AR_FLAGS=$lt_AR_FLAGS
11650
11651 # A C compiler.
11652 LTCC=$lt_LTCC
11653
11654 # LTCC compiler flags.
11655 LTCFLAGS=$lt_LTCFLAGS
11656
11657 # A language-specific compiler.
11658 CC=$lt_compiler
11659
11660 # Is the compiler the GNU C compiler?
11661 with_gcc=$GCC
11662
11663 # An ERE matcher.
11664 EGREP=$lt_EGREP
11665
11666 # The linker used to build libraries.
11667 LD=$lt_LD
11668
11669 # Whether we need hard or soft links.
11670 LN_S=$lt_LN_S
11671
11672 # A BSD-compatible nm program.
11673 NM=$lt_NM
11674
11675 # A symbol stripping program
11676 STRIP=$lt_STRIP
11677
11678 # Used to examine libraries when file_magic_cmd begins "file"
11679 MAGIC_CMD=$MAGIC_CMD
11680
11681 # Used on cygwin: DLL creation program.
11682 DLLTOOL="$DLLTOOL"
11683
11684 # Used on cygwin: object dumper.
11685 OBJDUMP="$OBJDUMP"
11686
11687 # Used on cygwin: assembler.
11688 AS="$AS"
11689
11690 # The name of the directory that contains temporary libtool files.
11691 objdir=$objdir
11692
11693 # How to create reloadable object files.
11694 reload_flag=$lt_reload_flag
11695 reload_cmds=$lt_reload_cmds
11696
11697 # How to pass a linker flag through the compiler.
11698 wl=$lt_lt_prog_compiler_wl
11699
11700 # Object file suffix (normally "o").
11701 objext="$ac_objext"
11702
11703 # Old archive suffix (normally "a").
11704 libext="$libext"
11705
11706 # Shared library suffix (normally ".so").
11707 shrext_cmds='$shrext_cmds'
11708
11709 # Executable file suffix (normally "").
11710 exeext="$exeext"
11711
11712 # Additional compiler flags for building library objects.
11713 pic_flag=$lt_lt_prog_compiler_pic
11714 pic_mode=$pic_mode
11715
11716 # What is the maximum length of a command?
11717 max_cmd_len=$lt_cv_sys_max_cmd_len
11718
11719 # Does compiler simultaneously support -c and -o options?
11720 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11721
11722 # Must we lock files when doing compilation?
11723 need_locks=$lt_need_locks
11724
11725 # Do we need the lib prefix for modules?
11726 need_lib_prefix=$need_lib_prefix
11727
11728 # Do we need a version for libraries?
11729 need_version=$need_version
11730
11731 # Whether dlopen is supported.
11732 dlopen_support=$enable_dlopen
11733
11734 # Whether dlopen of programs is supported.
11735 dlopen_self=$enable_dlopen_self
11736
11737 # Whether dlopen of statically linked programs is supported.
11738 dlopen_self_static=$enable_dlopen_self_static
11739
11740 # Compiler flag to prevent dynamic linking.
11741 link_static_flag=$lt_lt_prog_compiler_static
11742
11743 # Compiler flag to turn off builtin functions.
11744 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11745
11746 # Compiler flag to allow reflexive dlopens.
11747 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11748
11749 # Compiler flag to generate shared objects directly from archives.
11750 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11751
11752 # Compiler flag to generate thread-safe objects.
11753 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11754
11755 # Library versioning type.
11756 version_type=$version_type
11757
11758 # Format of library name prefix.
11759 libname_spec=$lt_libname_spec
11760
11761 # List of archive names.  First name is the real one, the rest are links.
11762 # The last name is the one that the linker finds with -lNAME.
11763 library_names_spec=$lt_library_names_spec
11764
11765 # The coded name of the library, if different from the real name.
11766 soname_spec=$lt_soname_spec
11767
11768 # Commands used to build and install an old-style archive.
11769 RANLIB=$lt_RANLIB
11770 old_archive_cmds=$lt_old_archive_cmds
11771 old_postinstall_cmds=$lt_old_postinstall_cmds
11772 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11773
11774 # Create an old-style archive from a shared archive.
11775 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11776
11777 # Create a temporary old-style archive to link instead of a shared archive.
11778 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11779
11780 # Commands used to build and install a shared archive.
11781 archive_cmds=$lt_archive_cmds
11782 archive_expsym_cmds=$lt_archive_expsym_cmds
11783 postinstall_cmds=$lt_postinstall_cmds
11784 postuninstall_cmds=$lt_postuninstall_cmds
11785
11786 # Commands used to build a loadable module (assumed same as above if empty)
11787 module_cmds=$lt_module_cmds
11788 module_expsym_cmds=$lt_module_expsym_cmds
11789
11790 # Commands to strip libraries.
11791 old_striplib=$lt_old_striplib
11792 striplib=$lt_striplib
11793
11794 # Dependencies to place before the objects being linked to create a
11795 # shared library.
11796 predep_objects=$lt_predep_objects
11797
11798 # Dependencies to place after the objects being linked to create a
11799 # shared library.
11800 postdep_objects=$lt_postdep_objects
11801
11802 # Dependencies to place before the objects being linked to create a
11803 # shared library.
11804 predeps=$lt_predeps
11805
11806 # Dependencies to place after the objects being linked to create a
11807 # shared library.
11808 postdeps=$lt_postdeps
11809
11810 # The library search path used internally by the compiler when linking
11811 # a shared library.
11812 compiler_lib_search_path=$lt_compiler_lib_search_path
11813
11814 # Method to check whether dependent libraries are shared objects.
11815 deplibs_check_method=$lt_deplibs_check_method
11816
11817 # Command to use when deplibs_check_method == file_magic.
11818 file_magic_cmd=$lt_file_magic_cmd
11819
11820 # Flag that allows shared libraries with undefined symbols to be built.
11821 allow_undefined_flag=$lt_allow_undefined_flag
11822
11823 # Flag that forces no undefined symbols.
11824 no_undefined_flag=$lt_no_undefined_flag
11825
11826 # Commands used to finish a libtool library installation in a directory.
11827 finish_cmds=$lt_finish_cmds
11828
11829 # Same as above, but a single script fragment to be evaled but not shown.
11830 finish_eval=$lt_finish_eval
11831
11832 # Take the output of nm and produce a listing of raw symbols and C names.
11833 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11834
11835 # Transform the output of nm in a proper C declaration
11836 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11837
11838 # Transform the output of nm in a C name address pair
11839 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11840
11841 # This is the shared library runtime path variable.
11842 runpath_var=$runpath_var
11843
11844 # This is the shared library path variable.
11845 shlibpath_var=$shlibpath_var
11846
11847 # Is shlibpath searched before the hard-coded library search path?
11848 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11849
11850 # How to hardcode a shared library path into an executable.
11851 hardcode_action=$hardcode_action
11852
11853 # Whether we should hardcode library paths into libraries.
11854 hardcode_into_libs=$hardcode_into_libs
11855
11856 # Flag to hardcode \$libdir into a binary during linking.
11857 # This must work even if \$libdir does not exist.
11858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11859
11860 # If ld is used when linking, flag to hardcode \$libdir into
11861 # a binary during linking. This must work even if \$libdir does
11862 # not exist.
11863 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11864
11865 # Whether we need a single -rpath flag with a separated argument.
11866 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11867
11868 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11869 # resulting binary.
11870 hardcode_direct=$hardcode_direct
11871
11872 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11873 # resulting binary.
11874 hardcode_minus_L=$hardcode_minus_L
11875
11876 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11877 # the resulting binary.
11878 hardcode_shlibpath_var=$hardcode_shlibpath_var
11879
11880 # Set to yes if building a shared library automatically hardcodes DIR into the library
11881 # and all subsequent libraries and executables linked against it.
11882 hardcode_automatic=$hardcode_automatic
11883
11884 # Variables whose values should be saved in libtool wrapper scripts and
11885 # restored at relink time.
11886 variables_saved_for_relink="$variables_saved_for_relink"
11887
11888 # Whether libtool must link a program against all its dependency libraries.
11889 link_all_deplibs=$link_all_deplibs
11890
11891 # Compile-time system search path for libraries
11892 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11893
11894 # Run-time system search path for libraries
11895 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11896
11897 # Fix the shell variable \$srcfile for the compiler.
11898 fix_srcfile_path="$fix_srcfile_path"
11899
11900 # Set to yes if exported symbols are required.
11901 always_export_symbols=$always_export_symbols
11902
11903 # The commands to list exported symbols.
11904 export_symbols_cmds=$lt_export_symbols_cmds
11905
11906 # The commands to extract the exported symbol list from a shared archive.
11907 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11908
11909 # Symbols that should not be listed in the preloaded symbols.
11910 exclude_expsyms=$lt_exclude_expsyms
11911
11912 # Symbols that must always be exported.
11913 include_expsyms=$lt_include_expsyms
11914
11915 # ### END LIBTOOL CONFIG
11916
11917 __EOF__
11918
11919
11920   case $host_os in
11921   aix3*)
11922     cat <<\EOF >> "$cfgfile"
11923
11924 # AIX sometimes has problems with the GCC collect2 program.  For some
11925 # reason, if we set the COLLECT_NAMES environment variable, the problems
11926 # vanish in a puff of smoke.
11927 if test "X${COLLECT_NAMES+set}" != Xset; then
11928   COLLECT_NAMES=
11929   export COLLECT_NAMES
11930 fi
11931 EOF
11932     ;;
11933   esac
11934
11935   # We use sed instead of cat because bash on DJGPP gets confused if
11936   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11937   # text mode, it properly converts lines to CR/LF.  This bash problem
11938   # is reportedly fixed, but why not run on old versions too?
11939   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11940
11941   mv -f "$cfgfile" "$ofile" || \
11942     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11943   chmod +x "$ofile"
11944
11945 else
11946   # If there is no Makefile yet, we rely on a make rule to execute
11947   # `config.status --recheck' to rerun these tests and create the
11948   # libtool script then.
11949   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11950   if test -f "$ltmain_in"; then
11951     test -f Makefile && make "$ltmain"
11952   fi
11953 fi
11954
11955
11956 ac_ext=c
11957 ac_cpp='$CPP $CPPFLAGS'
11958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11961
11962 CC="$lt_save_CC"
11963
11964
11965 # Check whether --with-tags was given.
11966 if test "${with_tags+set}" = set; then
11967   withval=$with_tags; tagnames="$withval"
11968 fi
11969
11970
11971 if test -f "$ltmain" && test -n "$tagnames"; then
11972   if test ! -f "${ofile}"; then
11973     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11974 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11975   fi
11976
11977   if test -z "$LTCC"; then
11978     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11979     if test -z "$LTCC"; then
11980       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11981 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11982     else
11983       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11984 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11985     fi
11986   fi
11987   if test -z "$LTCFLAGS"; then
11988     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11989   fi
11990
11991   # Extract list of available tagged configurations in $ofile.
11992   # Note that this assumes the entire list is on one line.
11993   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11994
11995   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11996   for tagname in $tagnames; do
11997     IFS="$lt_save_ifs"
11998     # Check whether tagname contains only valid characters
11999     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12000     "") ;;
12001     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12002 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12003    { (exit 1); exit 1; }; }
12004         ;;
12005     esac
12006
12007     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12008     then
12009       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12010 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12011    { (exit 1); exit 1; }; }
12012     fi
12013
12014     # Update the list of available tags.
12015     if test -n "$tagname"; then
12016       echo appending configuration tag \"$tagname\" to $ofile
12017
12018       case $tagname in
12019       CXX)
12020         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12021             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12022             (test "X$CXX" != "Xg++"))) ; then
12023           :
12024         else
12025           tagname=""
12026         fi
12027         ;;
12028
12029       F77)
12030         if test -n "$F77" && test "X$F77" != "Xno"; then
12031           :
12032         else
12033           tagname=""
12034         fi
12035         ;;
12036
12037       GCJ)
12038         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12039           :
12040         else
12041           tagname=""
12042         fi
12043         ;;
12044
12045       RC)
12046
12047
12048 # Source file extension for RC test sources.
12049 ac_ext=rc
12050
12051 # Object file extension for compiled RC test sources.
12052 objext=o
12053 objext_RC=$objext
12054
12055 # Code to be used in simple compile tests
12056 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
12057
12058 # Code to be used in simple link tests
12059 lt_simple_link_test_code="$lt_simple_compile_test_code"
12060
12061 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12062
12063 # If no C compiler was specified, use CC.
12064 LTCC=${LTCC-"$CC"}
12065
12066 # If no C compiler flags were specified, use CFLAGS.
12067 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12068
12069 # Allow CC to be a program name with arguments.
12070 compiler=$CC
12071
12072
12073 # save warnings/boilerplate of simple test code
12074 ac_outfile=conftest.$ac_objext
12075 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12076 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12077 _lt_compiler_boilerplate=`cat conftest.err`
12078 $rm conftest*
12079
12080 ac_outfile=conftest.$ac_objext
12081 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12082 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12083 _lt_linker_boilerplate=`cat conftest.err`
12084 $rm conftest*
12085
12086
12087 # Allow CC to be a program name with arguments.
12088 lt_save_CC="$CC"
12089 CC=${RC-"windres"}
12090 compiler=$CC
12091 compiler_RC=$CC
12092 for cc_temp in $compiler""; do
12093   case $cc_temp in
12094     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12095     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12096     \-*) ;;
12097     *) break;;
12098   esac
12099 done
12100 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12101
12102 lt_cv_prog_compiler_c_o_RC=yes
12103
12104 # The else clause should only fire when bootstrapping the
12105 # libtool distribution, otherwise you forgot to ship ltmain.sh
12106 # with your package, and you will get complaints that there are
12107 # no rules to generate ltmain.sh.
12108 if test -f "$ltmain"; then
12109   # See if we are running on zsh, and set the options which allow our commands through
12110   # without removal of \ escapes.
12111   if test -n "${ZSH_VERSION+set}" ; then
12112     setopt NO_GLOB_SUBST
12113   fi
12114   # Now quote all the things that may contain metacharacters while being
12115   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12116   # variables and quote the copies for generation of the libtool script.
12117   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12118     SED SHELL STRIP \
12119     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12120     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12121     deplibs_check_method reload_flag reload_cmds need_locks \
12122     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12123     lt_cv_sys_global_symbol_to_c_name_address \
12124     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12125     old_postinstall_cmds old_postuninstall_cmds \
12126     compiler_RC \
12127     CC_RC \
12128     LD_RC \
12129     lt_prog_compiler_wl_RC \
12130     lt_prog_compiler_pic_RC \
12131     lt_prog_compiler_static_RC \
12132     lt_prog_compiler_no_builtin_flag_RC \
12133     export_dynamic_flag_spec_RC \
12134     thread_safe_flag_spec_RC \
12135     whole_archive_flag_spec_RC \
12136     enable_shared_with_static_runtimes_RC \
12137     old_archive_cmds_RC \
12138     old_archive_from_new_cmds_RC \
12139     predep_objects_RC \
12140     postdep_objects_RC \
12141     predeps_RC \
12142     postdeps_RC \
12143     compiler_lib_search_path_RC \
12144     archive_cmds_RC \
12145     archive_expsym_cmds_RC \
12146     postinstall_cmds_RC \
12147     postuninstall_cmds_RC \
12148     old_archive_from_expsyms_cmds_RC \
12149     allow_undefined_flag_RC \
12150     no_undefined_flag_RC \
12151     export_symbols_cmds_RC \
12152     hardcode_libdir_flag_spec_RC \
12153     hardcode_libdir_flag_spec_ld_RC \
12154     hardcode_libdir_separator_RC \
12155     hardcode_automatic_RC \
12156     module_cmds_RC \
12157     module_expsym_cmds_RC \
12158     lt_cv_prog_compiler_c_o_RC \
12159     exclude_expsyms_RC \
12160     include_expsyms_RC; do
12161
12162     case $var in
12163     old_archive_cmds_RC | \
12164     old_archive_from_new_cmds_RC | \
12165     archive_cmds_RC | \
12166     archive_expsym_cmds_RC | \
12167     module_cmds_RC | \
12168     module_expsym_cmds_RC | \
12169     old_archive_from_expsyms_cmds_RC | \
12170     export_symbols_cmds_RC | \
12171     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12172     postinstall_cmds | postuninstall_cmds | \
12173     old_postinstall_cmds | old_postuninstall_cmds | \
12174     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12175       # Double-quote double-evaled strings.
12176       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12177       ;;
12178     *)
12179       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12180       ;;
12181     esac
12182   done
12183
12184   case $lt_echo in
12185   *'\$0 --fallback-echo"')
12186     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12187     ;;
12188   esac
12189
12190 cfgfile="$ofile"
12191
12192   cat <<__EOF__ >> "$cfgfile"
12193 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12194
12195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12196
12197 # Shell to use when invoking shell scripts.
12198 SHELL=$lt_SHELL
12199
12200 # Whether or not to build shared libraries.
12201 build_libtool_libs=$enable_shared
12202
12203 # Whether or not to build static libraries.
12204 build_old_libs=$enable_static
12205
12206 # Whether or not to add -lc for building shared libraries.
12207 build_libtool_need_lc=$archive_cmds_need_lc_RC
12208
12209 # Whether or not to disallow shared libs when runtime libs are static
12210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12211
12212 # Whether or not to optimize for fast installation.
12213 fast_install=$enable_fast_install
12214
12215 # The host system.
12216 host_alias=$host_alias
12217 host=$host
12218 host_os=$host_os
12219
12220 # The build system.
12221 build_alias=$build_alias
12222 build=$build
12223 build_os=$build_os
12224
12225 # An echo program that does not interpret backslashes.
12226 echo=$lt_echo
12227
12228 # The archiver.
12229 AR=$lt_AR
12230 AR_FLAGS=$lt_AR_FLAGS
12231
12232 # A C compiler.
12233 LTCC=$lt_LTCC
12234
12235 # LTCC compiler flags.
12236 LTCFLAGS=$lt_LTCFLAGS
12237
12238 # A language-specific compiler.
12239 CC=$lt_compiler_RC
12240
12241 # Is the compiler the GNU C compiler?
12242 with_gcc=$GCC_RC
12243
12244 # An ERE matcher.
12245 EGREP=$lt_EGREP
12246
12247 # The linker used to build libraries.
12248 LD=$lt_LD_RC
12249
12250 # Whether we need hard or soft links.
12251 LN_S=$lt_LN_S
12252
12253 # A BSD-compatible nm program.
12254 NM=$lt_NM
12255
12256 # A symbol stripping program
12257 STRIP=$lt_STRIP
12258
12259 # Used to examine libraries when file_magic_cmd begins "file"
12260 MAGIC_CMD=$MAGIC_CMD
12261
12262 # Used on cygwin: DLL creation program.
12263 DLLTOOL="$DLLTOOL"
12264
12265 # Used on cygwin: object dumper.
12266 OBJDUMP="$OBJDUMP"
12267
12268 # Used on cygwin: assembler.
12269 AS="$AS"
12270
12271 # The name of the directory that contains temporary libtool files.
12272 objdir=$objdir
12273
12274 # How to create reloadable object files.
12275 reload_flag=$lt_reload_flag
12276 reload_cmds=$lt_reload_cmds
12277
12278 # How to pass a linker flag through the compiler.
12279 wl=$lt_lt_prog_compiler_wl_RC
12280
12281 # Object file suffix (normally "o").
12282 objext="$ac_objext"
12283
12284 # Old archive suffix (normally "a").
12285 libext="$libext"
12286
12287 # Shared library suffix (normally ".so").
12288 shrext_cmds='$shrext_cmds'
12289
12290 # Executable file suffix (normally "").
12291 exeext="$exeext"
12292
12293 # Additional compiler flags for building library objects.
12294 pic_flag=$lt_lt_prog_compiler_pic_RC
12295 pic_mode=$pic_mode
12296
12297 # What is the maximum length of a command?
12298 max_cmd_len=$lt_cv_sys_max_cmd_len
12299
12300 # Does compiler simultaneously support -c and -o options?
12301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12302
12303 # Must we lock files when doing compilation?
12304 need_locks=$lt_need_locks
12305
12306 # Do we need the lib prefix for modules?
12307 need_lib_prefix=$need_lib_prefix
12308
12309 # Do we need a version for libraries?
12310 need_version=$need_version
12311
12312 # Whether dlopen is supported.
12313 dlopen_support=$enable_dlopen
12314
12315 # Whether dlopen of programs is supported.
12316 dlopen_self=$enable_dlopen_self
12317
12318 # Whether dlopen of statically linked programs is supported.
12319 dlopen_self_static=$enable_dlopen_self_static
12320
12321 # Compiler flag to prevent dynamic linking.
12322 link_static_flag=$lt_lt_prog_compiler_static_RC
12323
12324 # Compiler flag to turn off builtin functions.
12325 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12326
12327 # Compiler flag to allow reflexive dlopens.
12328 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12329
12330 # Compiler flag to generate shared objects directly from archives.
12331 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12332
12333 # Compiler flag to generate thread-safe objects.
12334 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12335
12336 # Library versioning type.
12337 version_type=$version_type
12338
12339 # Format of library name prefix.
12340 libname_spec=$lt_libname_spec
12341
12342 # List of archive names.  First name is the real one, the rest are links.
12343 # The last name is the one that the linker finds with -lNAME.
12344 library_names_spec=$lt_library_names_spec
12345
12346 # The coded name of the library, if different from the real name.
12347 soname_spec=$lt_soname_spec
12348
12349 # Commands used to build and install an old-style archive.
12350 RANLIB=$lt_RANLIB
12351 old_archive_cmds=$lt_old_archive_cmds_RC
12352 old_postinstall_cmds=$lt_old_postinstall_cmds
12353 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12354
12355 # Create an old-style archive from a shared archive.
12356 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12357
12358 # Create a temporary old-style archive to link instead of a shared archive.
12359 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12360
12361 # Commands used to build and install a shared archive.
12362 archive_cmds=$lt_archive_cmds_RC
12363 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12364 postinstall_cmds=$lt_postinstall_cmds
12365 postuninstall_cmds=$lt_postuninstall_cmds
12366
12367 # Commands used to build a loadable module (assumed same as above if empty)
12368 module_cmds=$lt_module_cmds_RC
12369 module_expsym_cmds=$lt_module_expsym_cmds_RC
12370
12371 # Commands to strip libraries.
12372 old_striplib=$lt_old_striplib
12373 striplib=$lt_striplib
12374
12375 # Dependencies to place before the objects being linked to create a
12376 # shared library.
12377 predep_objects=$lt_predep_objects_RC
12378
12379 # Dependencies to place after the objects being linked to create a
12380 # shared library.
12381 postdep_objects=$lt_postdep_objects_RC
12382
12383 # Dependencies to place before the objects being linked to create a
12384 # shared library.
12385 predeps=$lt_predeps_RC
12386
12387 # Dependencies to place after the objects being linked to create a
12388 # shared library.
12389 postdeps=$lt_postdeps_RC
12390
12391 # The library search path used internally by the compiler when linking
12392 # a shared library.
12393 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12394
12395 # Method to check whether dependent libraries are shared objects.
12396 deplibs_check_method=$lt_deplibs_check_method
12397
12398 # Command to use when deplibs_check_method == file_magic.
12399 file_magic_cmd=$lt_file_magic_cmd
12400
12401 # Flag that allows shared libraries with undefined symbols to be built.
12402 allow_undefined_flag=$lt_allow_undefined_flag_RC
12403
12404 # Flag that forces no undefined symbols.
12405 no_undefined_flag=$lt_no_undefined_flag_RC
12406
12407 # Commands used to finish a libtool library installation in a directory.
12408 finish_cmds=$lt_finish_cmds
12409
12410 # Same as above, but a single script fragment to be evaled but not shown.
12411 finish_eval=$lt_finish_eval
12412
12413 # Take the output of nm and produce a listing of raw symbols and C names.
12414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12415
12416 # Transform the output of nm in a proper C declaration
12417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12418
12419 # Transform the output of nm in a C name address pair
12420 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12421
12422 # This is the shared library runtime path variable.
12423 runpath_var=$runpath_var
12424
12425 # This is the shared library path variable.
12426 shlibpath_var=$shlibpath_var
12427
12428 # Is shlibpath searched before the hard-coded library search path?
12429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12430
12431 # How to hardcode a shared library path into an executable.
12432 hardcode_action=$hardcode_action_RC
12433
12434 # Whether we should hardcode library paths into libraries.
12435 hardcode_into_libs=$hardcode_into_libs
12436
12437 # Flag to hardcode \$libdir into a binary during linking.
12438 # This must work even if \$libdir does not exist.
12439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12440
12441 # If ld is used when linking, flag to hardcode \$libdir into
12442 # a binary during linking. This must work even if \$libdir does
12443 # not exist.
12444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12445
12446 # Whether we need a single -rpath flag with a separated argument.
12447 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12448
12449 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12450 # resulting binary.
12451 hardcode_direct=$hardcode_direct_RC
12452
12453 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12454 # resulting binary.
12455 hardcode_minus_L=$hardcode_minus_L_RC
12456
12457 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12458 # the resulting binary.
12459 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12460
12461 # Set to yes if building a shared library automatically hardcodes DIR into the library
12462 # and all subsequent libraries and executables linked against it.
12463 hardcode_automatic=$hardcode_automatic_RC
12464
12465 # Variables whose values should be saved in libtool wrapper scripts and
12466 # restored at relink time.
12467 variables_saved_for_relink="$variables_saved_for_relink"
12468
12469 # Whether libtool must link a program against all its dependency libraries.
12470 link_all_deplibs=$link_all_deplibs_RC
12471
12472 # Compile-time system search path for libraries
12473 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12474
12475 # Run-time system search path for libraries
12476 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12477
12478 # Fix the shell variable \$srcfile for the compiler.
12479 fix_srcfile_path="$fix_srcfile_path_RC"
12480
12481 # Set to yes if exported symbols are required.
12482 always_export_symbols=$always_export_symbols_RC
12483
12484 # The commands to list exported symbols.
12485 export_symbols_cmds=$lt_export_symbols_cmds_RC
12486
12487 # The commands to extract the exported symbol list from a shared archive.
12488 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12489
12490 # Symbols that should not be listed in the preloaded symbols.
12491 exclude_expsyms=$lt_exclude_expsyms_RC
12492
12493 # Symbols that must always be exported.
12494 include_expsyms=$lt_include_expsyms_RC
12495
12496 # ### END LIBTOOL TAG CONFIG: $tagname
12497
12498 __EOF__
12499
12500
12501 else
12502   # If there is no Makefile yet, we rely on a make rule to execute
12503   # `config.status --recheck' to rerun these tests and create the
12504   # libtool script then.
12505   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12506   if test -f "$ltmain_in"; then
12507     test -f Makefile && make "$ltmain"
12508   fi
12509 fi
12510
12511
12512 ac_ext=c
12513 ac_cpp='$CPP $CPPFLAGS'
12514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12517
12518 CC="$lt_save_CC"
12519
12520         ;;
12521
12522       *)
12523         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12524 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12525    { (exit 1); exit 1; }; }
12526         ;;
12527       esac
12528
12529       # Append the new tag name to the list of available tags.
12530       if test -n "$tagname" ; then
12531       available_tags="$available_tags $tagname"
12532     fi
12533     fi
12534   done
12535   IFS="$lt_save_ifs"
12536
12537   # Now substitute the updated list of available tags.
12538   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12539     mv "${ofile}T" "$ofile"
12540     chmod +x "$ofile"
12541   else
12542     rm -f "${ofile}T"
12543     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12544 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12545    { (exit 1); exit 1; }; }
12546   fi
12547 fi
12548
12549
12550
12551 # This can be used to rebuild libtool when needed
12552 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12553
12554 # Always use our own libtool.
12555 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12556
12557 # Prevent multiple expansion
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568 ol_link_perl=no
12569 if test $ol_enable_perl != no ; then
12570         # Extract the first word of "perl", so it can be a program name with args.
12571 set dummy perl; ac_word=$2
12572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12574 if test "${ac_cv_path_PERLBIN+set}" = set; then
12575   echo $ECHO_N "(cached) $ECHO_C" >&6
12576 else
12577   case $PERLBIN in
12578   [\\/]* | ?:[\\/]*)
12579   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12580   ;;
12581   *)
12582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12584 do
12585   IFS=$as_save_IFS
12586   test -z "$as_dir" && as_dir=.
12587   for ac_exec_ext in '' $ac_executable_extensions; do
12588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12589     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12591     break 2
12592   fi
12593 done
12594 done
12595 IFS=$as_save_IFS
12596
12597   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12598   ;;
12599 esac
12600 fi
12601 PERLBIN=$ac_cv_path_PERLBIN
12602 if test -n "$PERLBIN"; then
12603   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12604 echo "${ECHO_T}$PERLBIN" >&6; }
12605 else
12606   { echo "$as_me:$LINENO: result: no" >&5
12607 echo "${ECHO_T}no" >&6; }
12608 fi
12609
12610
12611
12612         if test "no$PERLBIN" = "no" ; then
12613                 if test $ol_enable_perl = yes ; then
12614                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12615 echo "$as_me: error: could not locate perl" >&2;}
12616    { (exit 1); exit 1; }; }
12617                 fi
12618
12619         else
12620                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12621                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12622
12623                 if test x"$ol_enable_perl" = "xyes" ; then
12624                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12625                 else
12626                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12627                 fi
12628                                 ol_link_perl=yes
12629         fi
12630 fi
12631
12632 ac_ext=c
12633 ac_cpp='$CPP $CPPFLAGS'
12634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12637 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12638 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12639 # On Suns, sometimes $CPP names a directory.
12640 if test -n "$CPP" && test -d "$CPP"; then
12641   CPP=
12642 fi
12643 if test -z "$CPP"; then
12644   if test "${ac_cv_prog_CPP+set}" = set; then
12645   echo $ECHO_N "(cached) $ECHO_C" >&6
12646 else
12647       # Double quotes because CPP needs to be expanded
12648     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12649     do
12650       ac_preproc_ok=false
12651 for ac_c_preproc_warn_flag in '' yes
12652 do
12653   # Use a header file that comes with gcc, so configuring glibc
12654   # with a fresh cross-compiler works.
12655   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12656   # <limits.h> exists even on freestanding compilers.
12657   # On the NeXT, cc -E runs the code through the compiler's parser,
12658   # not just through cpp. "Syntax error" is here to catch this case.
12659   cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h.  */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h.  */
12665 #ifdef __STDC__
12666 # include <limits.h>
12667 #else
12668 # include <assert.h>
12669 #endif
12670                      Syntax error
12671 _ACEOF
12672 if { (ac_try="$ac_cpp conftest.$ac_ext"
12673 case "(($ac_try" in
12674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675   *) ac_try_echo=$ac_try;;
12676 esac
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12679   ac_status=$?
12680   grep -v '^ *+' conftest.er1 >conftest.err
12681   rm -f conftest.er1
12682   cat conftest.err >&5
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); } >/dev/null && {
12685          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12686          test ! -s conftest.err
12687        }; then
12688   :
12689 else
12690   echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693   # Broken: fails on valid input.
12694 continue
12695 fi
12696
12697 rm -f conftest.err conftest.$ac_ext
12698
12699   # OK, works on sane cases.  Now check whether nonexistent headers
12700   # can be detected and how.
12701   cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h.  */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h.  */
12707 #include <ac_nonexistent.h>
12708 _ACEOF
12709 if { (ac_try="$ac_cpp conftest.$ac_ext"
12710 case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12716   ac_status=$?
12717   grep -v '^ *+' conftest.er1 >conftest.err
12718   rm -f conftest.er1
12719   cat conftest.err >&5
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); } >/dev/null && {
12722          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12723          test ! -s conftest.err
12724        }; then
12725   # Broken: success on invalid input.
12726 continue
12727 else
12728   echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12730
12731   # Passes both tests.
12732 ac_preproc_ok=:
12733 break
12734 fi
12735
12736 rm -f conftest.err conftest.$ac_ext
12737
12738 done
12739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12740 rm -f conftest.err conftest.$ac_ext
12741 if $ac_preproc_ok; then
12742   break
12743 fi
12744
12745     done
12746     ac_cv_prog_CPP=$CPP
12747
12748 fi
12749   CPP=$ac_cv_prog_CPP
12750 else
12751   ac_cv_prog_CPP=$CPP
12752 fi
12753 { echo "$as_me:$LINENO: result: $CPP" >&5
12754 echo "${ECHO_T}$CPP" >&6; }
12755 ac_preproc_ok=false
12756 for ac_c_preproc_warn_flag in '' yes
12757 do
12758   # Use a header file that comes with gcc, so configuring glibc
12759   # with a fresh cross-compiler works.
12760   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12761   # <limits.h> exists even on freestanding compilers.
12762   # On the NeXT, cc -E runs the code through the compiler's parser,
12763   # not just through cpp. "Syntax error" is here to catch this case.
12764   cat >conftest.$ac_ext <<_ACEOF
12765 /* confdefs.h.  */
12766 _ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h.  */
12770 #ifdef __STDC__
12771 # include <limits.h>
12772 #else
12773 # include <assert.h>
12774 #endif
12775                      Syntax error
12776 _ACEOF
12777 if { (ac_try="$ac_cpp conftest.$ac_ext"
12778 case "(($ac_try" in
12779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780   *) ac_try_echo=$ac_try;;
12781 esac
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12784   ac_status=$?
12785   grep -v '^ *+' conftest.er1 >conftest.err
12786   rm -f conftest.er1
12787   cat conftest.err >&5
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); } >/dev/null && {
12790          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12791          test ! -s conftest.err
12792        }; then
12793   :
12794 else
12795   echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12797
12798   # Broken: fails on valid input.
12799 continue
12800 fi
12801
12802 rm -f conftest.err conftest.$ac_ext
12803
12804   # OK, works on sane cases.  Now check whether nonexistent headers
12805   # can be detected and how.
12806   cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h.  */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h.  */
12812 #include <ac_nonexistent.h>
12813 _ACEOF
12814 if { (ac_try="$ac_cpp conftest.$ac_ext"
12815 case "(($ac_try" in
12816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817   *) ac_try_echo=$ac_try;;
12818 esac
12819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12821   ac_status=$?
12822   grep -v '^ *+' conftest.er1 >conftest.err
12823   rm -f conftest.er1
12824   cat conftest.err >&5
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); } >/dev/null && {
12827          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12828          test ! -s conftest.err
12829        }; then
12830   # Broken: success on invalid input.
12831 continue
12832 else
12833   echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12835
12836   # Passes both tests.
12837 ac_preproc_ok=:
12838 break
12839 fi
12840
12841 rm -f conftest.err conftest.$ac_ext
12842
12843 done
12844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12845 rm -f conftest.err conftest.$ac_ext
12846 if $ac_preproc_ok; then
12847   :
12848 else
12849   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12850 See \`config.log' for more details." >&5
12851 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12852 See \`config.log' for more details." >&2;}
12853    { (exit 1); exit 1; }; }
12854 fi
12855
12856 ac_ext=c
12857 ac_cpp='$CPP $CPPFLAGS'
12858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12861
12862 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12863 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12864 if test "${ol_cv_msvc+set}" = set; then
12865   echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12867   cat >conftest.$ac_ext <<_ACEOF
12868 /* confdefs.h.  */
12869 _ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h.  */
12873
12874 #ifndef _MSC_VER
12875 #include <__FOO__/generate_error.h>
12876 #endif
12877
12878 _ACEOF
12879 if { (ac_try="$ac_cpp conftest.$ac_ext"
12880 case "(($ac_try" in
12881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882   *) ac_try_echo=$ac_try;;
12883 esac
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12886   ac_status=$?
12887   grep -v '^ *+' conftest.er1 >conftest.err
12888   rm -f conftest.er1
12889   cat conftest.err >&5
12890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891   (exit $ac_status); } >/dev/null && {
12892          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12893          test ! -s conftest.err
12894        }; then
12895   ol_cv_msvc=yes
12896 else
12897   echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12899
12900   ol_cv_msvc=no
12901 fi
12902
12903 rm -f conftest.err conftest.$ac_ext
12904 fi
12905 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12906 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12907
12908 case $host_os in
12909   *mingw32* ) ac_cv_mingw32=yes ;;
12910   *cygwin* ) ac_cv_cygwin=yes ;;
12911   *interix* ) ac_cv_interix=yes ;;
12912 esac
12913
12914
12915
12916
12917 cat >>confdefs.h <<_ACEOF
12918 #define EXEEXT "${EXEEXT}"
12919 _ACEOF
12920
12921
12922 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12923 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12924 if test "${ac_cv_lib_be_be_app+set}" = set; then
12925   echo $ECHO_N "(cached) $ECHO_C" >&6
12926 else
12927   ac_check_lib_save_LIBS=$LIBS
12928 LIBS="-lbe -lroot -lnet $LIBS"
12929 cat >conftest.$ac_ext <<_ACEOF
12930 /* confdefs.h.  */
12931 _ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h.  */
12935
12936 /* Override any GCC internal prototype to avoid an error.
12937    Use char because int might match the return type of a GCC
12938    builtin and then its argument prototype would still apply.  */
12939 #ifdef __cplusplus
12940 extern "C"
12941 #endif
12942 char be_app ();
12943 int
12944 main ()
12945 {
12946 return be_app ();
12947   ;
12948   return 0;
12949 }
12950 _ACEOF
12951 rm -f conftest.$ac_objext conftest$ac_exeext
12952 if { (ac_try="$ac_link"
12953 case "(($ac_try" in
12954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955   *) ac_try_echo=$ac_try;;
12956 esac
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958   (eval "$ac_link") 2>conftest.er1
12959   ac_status=$?
12960   grep -v '^ *+' conftest.er1 >conftest.err
12961   rm -f conftest.er1
12962   cat conftest.err >&5
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); } && {
12965          test -z "$ac_c_werror_flag" ||
12966          test ! -s conftest.err
12967        } && test -s conftest$ac_exeext &&
12968        $as_test_x conftest$ac_exeext; then
12969   ac_cv_lib_be_be_app=yes
12970 else
12971   echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12973
12974         ac_cv_lib_be_be_app=no
12975 fi
12976
12977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12978       conftest$ac_exeext conftest.$ac_ext
12979 LIBS=$ac_check_lib_save_LIBS
12980 fi
12981 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12982 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12983 if test $ac_cv_lib_be_be_app = yes; then
12984   LIBS="$LIBS -lbe -lroot -lnet"
12985 else
12986   :
12987 fi
12988
12989
12990 ac_ext=c
12991 ac_cpp='$CPP $CPPFLAGS'
12992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12995 if test -n "$ac_tool_prefix"; then
12996   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13000 if test "${ac_cv_prog_CC+set}" = set; then
13001   echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003   if test -n "$CC"; then
13004   ac_cv_prog_CC="$CC" # Let the user override the test.
13005 else
13006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007 for as_dir in $PATH
13008 do
13009   IFS=$as_save_IFS
13010   test -z "$as_dir" && as_dir=.
13011   for ac_exec_ext in '' $ac_executable_extensions; do
13012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13013     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13015     break 2
13016   fi
13017 done
13018 done
13019 IFS=$as_save_IFS
13020
13021 fi
13022 fi
13023 CC=$ac_cv_prog_CC
13024 if test -n "$CC"; then
13025   { echo "$as_me:$LINENO: result: $CC" >&5
13026 echo "${ECHO_T}$CC" >&6; }
13027 else
13028   { echo "$as_me:$LINENO: result: no" >&5
13029 echo "${ECHO_T}no" >&6; }
13030 fi
13031
13032
13033 fi
13034 if test -z "$ac_cv_prog_CC"; then
13035   ac_ct_CC=$CC
13036   # Extract the first word of "gcc", so it can be a program name with args.
13037 set dummy gcc; ac_word=$2
13038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13041   echo $ECHO_N "(cached) $ECHO_C" >&6
13042 else
13043   if test -n "$ac_ct_CC"; then
13044   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13045 else
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047 for as_dir in $PATH
13048 do
13049   IFS=$as_save_IFS
13050   test -z "$as_dir" && as_dir=.
13051   for ac_exec_ext in '' $ac_executable_extensions; do
13052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13053     ac_cv_prog_ac_ct_CC="gcc"
13054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13055     break 2
13056   fi
13057 done
13058 done
13059 IFS=$as_save_IFS
13060
13061 fi
13062 fi
13063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13064 if test -n "$ac_ct_CC"; then
13065   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13066 echo "${ECHO_T}$ac_ct_CC" >&6; }
13067 else
13068   { echo "$as_me:$LINENO: result: no" >&5
13069 echo "${ECHO_T}no" >&6; }
13070 fi
13071
13072   if test "x$ac_ct_CC" = x; then
13073     CC=""
13074   else
13075     case $cross_compiling:$ac_tool_warned in
13076 yes:)
13077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13078 whose name does not start with the host triplet.  If you think this
13079 configuration is useful to you, please write to autoconf@gnu.org." >&5
13080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13081 whose name does not start with the host triplet.  If you think this
13082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13083 ac_tool_warned=yes ;;
13084 esac
13085     CC=$ac_ct_CC
13086   fi
13087 else
13088   CC="$ac_cv_prog_CC"
13089 fi
13090
13091 if test -z "$CC"; then
13092           if test -n "$ac_tool_prefix"; then
13093     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13094 set dummy ${ac_tool_prefix}cc; ac_word=$2
13095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13097 if test "${ac_cv_prog_CC+set}" = set; then
13098   echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100   if test -n "$CC"; then
13101   ac_cv_prog_CC="$CC" # Let the user override the test.
13102 else
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 for as_dir in $PATH
13105 do
13106   IFS=$as_save_IFS
13107   test -z "$as_dir" && as_dir=.
13108   for ac_exec_ext in '' $ac_executable_extensions; do
13109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13110     ac_cv_prog_CC="${ac_tool_prefix}cc"
13111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13112     break 2
13113   fi
13114 done
13115 done
13116 IFS=$as_save_IFS
13117
13118 fi
13119 fi
13120 CC=$ac_cv_prog_CC
13121 if test -n "$CC"; then
13122   { echo "$as_me:$LINENO: result: $CC" >&5
13123 echo "${ECHO_T}$CC" >&6; }
13124 else
13125   { echo "$as_me:$LINENO: result: no" >&5
13126 echo "${ECHO_T}no" >&6; }
13127 fi
13128
13129
13130   fi
13131 fi
13132 if test -z "$CC"; then
13133   # Extract the first word of "cc", so it can be a program name with args.
13134 set dummy cc; ac_word=$2
13135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13137 if test "${ac_cv_prog_CC+set}" = set; then
13138   echo $ECHO_N "(cached) $ECHO_C" >&6
13139 else
13140   if test -n "$CC"; then
13141   ac_cv_prog_CC="$CC" # Let the user override the test.
13142 else
13143   ac_prog_rejected=no
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13146 do
13147   IFS=$as_save_IFS
13148   test -z "$as_dir" && as_dir=.
13149   for ac_exec_ext in '' $ac_executable_extensions; do
13150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13152        ac_prog_rejected=yes
13153        continue
13154      fi
13155     ac_cv_prog_CC="cc"
13156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13157     break 2
13158   fi
13159 done
13160 done
13161 IFS=$as_save_IFS
13162
13163 if test $ac_prog_rejected = yes; then
13164   # We found a bogon in the path, so make sure we never use it.
13165   set dummy $ac_cv_prog_CC
13166   shift
13167   if test $# != 0; then
13168     # We chose a different compiler from the bogus one.
13169     # However, it has the same basename, so the bogon will be chosen
13170     # first if we set CC to just the basename; use the full file name.
13171     shift
13172     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13173   fi
13174 fi
13175 fi
13176 fi
13177 CC=$ac_cv_prog_CC
13178 if test -n "$CC"; then
13179   { echo "$as_me:$LINENO: result: $CC" >&5
13180 echo "${ECHO_T}$CC" >&6; }
13181 else
13182   { echo "$as_me:$LINENO: result: no" >&5
13183 echo "${ECHO_T}no" >&6; }
13184 fi
13185
13186
13187 fi
13188 if test -z "$CC"; then
13189   if test -n "$ac_tool_prefix"; then
13190   for ac_prog in cl.exe
13191   do
13192     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13196 if test "${ac_cv_prog_CC+set}" = set; then
13197   echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199   if test -n "$CC"; then
13200   ac_cv_prog_CC="$CC" # Let the user override the test.
13201 else
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13204 do
13205   IFS=$as_save_IFS
13206   test -z "$as_dir" && as_dir=.
13207   for ac_exec_ext in '' $ac_executable_extensions; do
13208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13209     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13211     break 2
13212   fi
13213 done
13214 done
13215 IFS=$as_save_IFS
13216
13217 fi
13218 fi
13219 CC=$ac_cv_prog_CC
13220 if test -n "$CC"; then
13221   { echo "$as_me:$LINENO: result: $CC" >&5
13222 echo "${ECHO_T}$CC" >&6; }
13223 else
13224   { echo "$as_me:$LINENO: result: no" >&5
13225 echo "${ECHO_T}no" >&6; }
13226 fi
13227
13228
13229     test -n "$CC" && break
13230   done
13231 fi
13232 if test -z "$CC"; then
13233   ac_ct_CC=$CC
13234   for ac_prog in cl.exe
13235 do
13236   # Extract the first word of "$ac_prog", so it can be a program name with args.
13237 set dummy $ac_prog; ac_word=$2
13238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13241   echo $ECHO_N "(cached) $ECHO_C" >&6
13242 else
13243   if test -n "$ac_ct_CC"; then
13244   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13245 else
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13248 do
13249   IFS=$as_save_IFS
13250   test -z "$as_dir" && as_dir=.
13251   for ac_exec_ext in '' $ac_executable_extensions; do
13252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13253     ac_cv_prog_ac_ct_CC="$ac_prog"
13254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13255     break 2
13256   fi
13257 done
13258 done
13259 IFS=$as_save_IFS
13260
13261 fi
13262 fi
13263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13264 if test -n "$ac_ct_CC"; then
13265   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13266 echo "${ECHO_T}$ac_ct_CC" >&6; }
13267 else
13268   { echo "$as_me:$LINENO: result: no" >&5
13269 echo "${ECHO_T}no" >&6; }
13270 fi
13271
13272
13273   test -n "$ac_ct_CC" && break
13274 done
13275
13276   if test "x$ac_ct_CC" = x; then
13277     CC=""
13278   else
13279     case $cross_compiling:$ac_tool_warned in
13280 yes:)
13281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13282 whose name does not start with the host triplet.  If you think this
13283 configuration is useful to you, please write to autoconf@gnu.org." >&5
13284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13285 whose name does not start with the host triplet.  If you think this
13286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13287 ac_tool_warned=yes ;;
13288 esac
13289     CC=$ac_ct_CC
13290   fi
13291 fi
13292
13293 fi
13294
13295
13296 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13297 See \`config.log' for more details." >&5
13298 echo "$as_me: error: no acceptable C compiler found in \$PATH
13299 See \`config.log' for more details." >&2;}
13300    { (exit 1); exit 1; }; }
13301
13302 # Provide some information about the compiler.
13303 echo "$as_me:$LINENO: checking for C compiler version" >&5
13304 ac_compiler=`set X $ac_compile; echo $2`
13305 { (ac_try="$ac_compiler --version >&5"
13306 case "(($ac_try" in
13307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308   *) ac_try_echo=$ac_try;;
13309 esac
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311   (eval "$ac_compiler --version >&5") 2>&5
13312   ac_status=$?
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); }
13315 { (ac_try="$ac_compiler -v >&5"
13316 case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321   (eval "$ac_compiler -v >&5") 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }
13325 { (ac_try="$ac_compiler -V >&5"
13326 case "(($ac_try" in
13327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328   *) ac_try_echo=$ac_try;;
13329 esac
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331   (eval "$ac_compiler -V >&5") 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); }
13335
13336 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13337 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13338 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13339   echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341   cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347
13348 int
13349 main ()
13350 {
13351 #ifndef __GNUC__
13352        choke me
13353 #endif
13354
13355   ;
13356   return 0;
13357 }
13358 _ACEOF
13359 rm -f conftest.$ac_objext
13360 if { (ac_try="$ac_compile"
13361 case "(($ac_try" in
13362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363   *) ac_try_echo=$ac_try;;
13364 esac
13365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366   (eval "$ac_compile") 2>conftest.er1
13367   ac_status=$?
13368   grep -v '^ *+' conftest.er1 >conftest.err
13369   rm -f conftest.er1
13370   cat conftest.err >&5
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); } && {
13373          test -z "$ac_c_werror_flag" ||
13374          test ! -s conftest.err
13375        } && test -s conftest.$ac_objext; then
13376   ac_compiler_gnu=yes
13377 else
13378   echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13380
13381         ac_compiler_gnu=no
13382 fi
13383
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13386
13387 fi
13388 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13389 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13390 GCC=`test $ac_compiler_gnu = yes && echo yes`
13391 ac_test_CFLAGS=${CFLAGS+set}
13392 ac_save_CFLAGS=$CFLAGS
13393 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13394 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13395 if test "${ac_cv_prog_cc_g+set}" = set; then
13396   echo $ECHO_N "(cached) $ECHO_C" >&6
13397 else
13398   ac_save_c_werror_flag=$ac_c_werror_flag
13399    ac_c_werror_flag=yes
13400    ac_cv_prog_cc_g=no
13401    CFLAGS="-g"
13402    cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h.  */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h.  */
13408
13409 int
13410 main ()
13411 {
13412
13413   ;
13414   return 0;
13415 }
13416 _ACEOF
13417 rm -f conftest.$ac_objext
13418 if { (ac_try="$ac_compile"
13419 case "(($ac_try" in
13420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421   *) ac_try_echo=$ac_try;;
13422 esac
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424   (eval "$ac_compile") 2>conftest.er1
13425   ac_status=$?
13426   grep -v '^ *+' conftest.er1 >conftest.err
13427   rm -f conftest.er1
13428   cat conftest.err >&5
13429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430   (exit $ac_status); } && {
13431          test -z "$ac_c_werror_flag" ||
13432          test ! -s conftest.err
13433        } && test -s conftest.$ac_objext; then
13434   ac_cv_prog_cc_g=yes
13435 else
13436   echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13438
13439         CFLAGS=""
13440       cat >conftest.$ac_ext <<_ACEOF
13441 /* confdefs.h.  */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h.  */
13446
13447 int
13448 main ()
13449 {
13450
13451   ;
13452   return 0;
13453 }
13454 _ACEOF
13455 rm -f conftest.$ac_objext
13456 if { (ac_try="$ac_compile"
13457 case "(($ac_try" in
13458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459   *) ac_try_echo=$ac_try;;
13460 esac
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462   (eval "$ac_compile") 2>conftest.er1
13463   ac_status=$?
13464   grep -v '^ *+' conftest.er1 >conftest.err
13465   rm -f conftest.er1
13466   cat conftest.err >&5
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); } && {
13469          test -z "$ac_c_werror_flag" ||
13470          test ! -s conftest.err
13471        } && test -s conftest.$ac_objext; then
13472   :
13473 else
13474   echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13476
13477         ac_c_werror_flag=$ac_save_c_werror_flag
13478          CFLAGS="-g"
13479          cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h.  */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h.  */
13485
13486 int
13487 main ()
13488 {
13489
13490   ;
13491   return 0;
13492 }
13493 _ACEOF
13494 rm -f conftest.$ac_objext
13495 if { (ac_try="$ac_compile"
13496 case "(($ac_try" in
13497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498   *) ac_try_echo=$ac_try;;
13499 esac
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501   (eval "$ac_compile") 2>conftest.er1
13502   ac_status=$?
13503   grep -v '^ *+' conftest.er1 >conftest.err
13504   rm -f conftest.er1
13505   cat conftest.err >&5
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); } && {
13508          test -z "$ac_c_werror_flag" ||
13509          test ! -s conftest.err
13510        } && test -s conftest.$ac_objext; then
13511   ac_cv_prog_cc_g=yes
13512 else
13513   echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13515
13516
13517 fi
13518
13519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 fi
13521
13522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523 fi
13524
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526    ac_c_werror_flag=$ac_save_c_werror_flag
13527 fi
13528 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13529 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13530 if test "$ac_test_CFLAGS" = set; then
13531   CFLAGS=$ac_save_CFLAGS
13532 elif test $ac_cv_prog_cc_g = yes; then
13533   if test "$GCC" = yes; then
13534     CFLAGS="-g -O2"
13535   else
13536     CFLAGS="-g"
13537   fi
13538 else
13539   if test "$GCC" = yes; then
13540     CFLAGS="-O2"
13541   else
13542     CFLAGS=
13543   fi
13544 fi
13545 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13546 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13547 if test "${ac_cv_prog_cc_c89+set}" = set; then
13548   echo $ECHO_N "(cached) $ECHO_C" >&6
13549 else
13550   ac_cv_prog_cc_c89=no
13551 ac_save_CC=$CC
13552 cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h.  */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h.  */
13558 #include <stdarg.h>
13559 #include <stdio.h>
13560 #include <sys/types.h>
13561 #include <sys/stat.h>
13562 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13563 struct buf { int x; };
13564 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13565 static char *e (p, i)
13566      char **p;
13567      int i;
13568 {
13569   return p[i];
13570 }
13571 static char *f (char * (*g) (char **, int), char **p, ...)
13572 {
13573   char *s;
13574   va_list v;
13575   va_start (v,p);
13576   s = g (p, va_arg (v,int));
13577   va_end (v);
13578   return s;
13579 }
13580
13581 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13582    function prototypes and stuff, but not '\xHH' hex character constants.
13583    These don't provoke an error unfortunately, instead are silently treated
13584    as 'x'.  The following induces an error, until -std is added to get
13585    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13586    array size at least.  It's necessary to write '\x00'==0 to get something
13587    that's true only with -std.  */
13588 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13589
13590 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13591    inside strings and character constants.  */
13592 #define FOO(x) 'x'
13593 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13594
13595 int test (int i, double x);
13596 struct s1 {int (*f) (int a);};
13597 struct s2 {int (*f) (double a);};
13598 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13599 int argc;
13600 char **argv;
13601 int
13602 main ()
13603 {
13604 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13605   ;
13606   return 0;
13607 }
13608 _ACEOF
13609 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13610         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13611 do
13612   CC="$ac_save_CC $ac_arg"
13613   rm -f conftest.$ac_objext
13614 if { (ac_try="$ac_compile"
13615 case "(($ac_try" in
13616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617   *) ac_try_echo=$ac_try;;
13618 esac
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620   (eval "$ac_compile") 2>conftest.er1
13621   ac_status=$?
13622   grep -v '^ *+' conftest.er1 >conftest.err
13623   rm -f conftest.er1
13624   cat conftest.err >&5
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); } && {
13627          test -z "$ac_c_werror_flag" ||
13628          test ! -s conftest.err
13629        } && test -s conftest.$ac_objext; then
13630   ac_cv_prog_cc_c89=$ac_arg
13631 else
13632   echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13634
13635
13636 fi
13637
13638 rm -f core conftest.err conftest.$ac_objext
13639   test "x$ac_cv_prog_cc_c89" != "xno" && break
13640 done
13641 rm -f conftest.$ac_ext
13642 CC=$ac_save_CC
13643
13644 fi
13645 # AC_CACHE_VAL
13646 case "x$ac_cv_prog_cc_c89" in
13647   x)
13648     { echo "$as_me:$LINENO: result: none needed" >&5
13649 echo "${ECHO_T}none needed" >&6; } ;;
13650   xno)
13651     { echo "$as_me:$LINENO: result: unsupported" >&5
13652 echo "${ECHO_T}unsupported" >&6; } ;;
13653   *)
13654     CC="$CC $ac_cv_prog_cc_c89"
13655     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13656 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13657 esac
13658
13659
13660 ac_ext=c
13661 ac_cpp='$CPP $CPPFLAGS'
13662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13665
13666 depcc="$CC"   am_compiler_list=
13667
13668 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13669 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13670 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13671   echo $ECHO_N "(cached) $ECHO_C" >&6
13672 else
13673   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13674   # We make a subdir and do the tests there.  Otherwise we can end up
13675   # making bogus files that we don't know about and never remove.  For
13676   # instance it was reported that on HP-UX the gcc test will end up
13677   # making a dummy file named `D' -- because `-MD' means `put the output
13678   # in D'.
13679   mkdir conftest.dir
13680   # Copy depcomp to subdir because otherwise we won't find it if we're
13681   # using a relative directory.
13682   cp "$am_depcomp" conftest.dir
13683   cd conftest.dir
13684   # We will build objects and dependencies in a subdirectory because
13685   # it helps to detect inapplicable dependency modes.  For instance
13686   # both Tru64's cc and ICC support -MD to output dependencies as a
13687   # side effect of compilation, but ICC will put the dependencies in
13688   # the current directory while Tru64 will put them in the object
13689   # directory.
13690   mkdir sub
13691
13692   am_cv_CC_dependencies_compiler_type=none
13693   if test "$am_compiler_list" = ""; then
13694      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13695   fi
13696   for depmode in $am_compiler_list; do
13697     # Setup a source with many dependencies, because some compilers
13698     # like to wrap large dependency lists on column 80 (with \), and
13699     # we should not choose a depcomp mode which is confused by this.
13700     #
13701     # We need to recreate these files for each test, as the compiler may
13702     # overwrite some of them when testing with obscure command lines.
13703     # This happens at least with the AIX C compiler.
13704     : > sub/conftest.c
13705     for i in 1 2 3 4 5 6; do
13706       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13707       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13708       # Solaris 8's {/usr,}/bin/sh.
13709       touch sub/conftst$i.h
13710     done
13711     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13712
13713     case $depmode in
13714     nosideeffect)
13715       # after this tag, mechanisms are not by side-effect, so they'll
13716       # only be used when explicitly requested
13717       if test "x$enable_dependency_tracking" = xyes; then
13718         continue
13719       else
13720         break
13721       fi
13722       ;;
13723     none) break ;;
13724     esac
13725     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13726     # mode.  It turns out that the SunPro C++ compiler does not properly
13727     # handle `-M -o', and we need to detect this.
13728     if depmode=$depmode \
13729        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13730        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13731        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13732          >/dev/null 2>conftest.err &&
13733        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13734        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13735        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13736        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13737       # icc doesn't choke on unknown options, it will just issue warnings
13738       # or remarks (even with -Werror).  So we grep stderr for any message
13739       # that says an option was ignored or not supported.
13740       # When given -MP, icc 7.0 and 7.1 complain thusly:
13741       #   icc: Command line warning: ignoring option '-M'; no argument required
13742       # The diagnosis changed in icc 8.0:
13743       #   icc: Command line remark: option '-MP' not supported
13744       if (grep 'ignoring option' conftest.err ||
13745           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13746         am_cv_CC_dependencies_compiler_type=$depmode
13747         break
13748       fi
13749     fi
13750   done
13751
13752   cd ..
13753   rm -rf conftest.dir
13754 else
13755   am_cv_CC_dependencies_compiler_type=none
13756 fi
13757
13758 fi
13759 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13760 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13761 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13762
13763  if
13764   test "x$enable_dependency_tracking" != xno \
13765   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13766   am__fastdepCC_TRUE=
13767   am__fastdepCC_FALSE='#'
13768 else
13769   am__fastdepCC_TRUE='#'
13770   am__fastdepCC_FALSE=
13771 fi
13772
13773
13774 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13775         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13776 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13777    { (exit 1); exit 1; }; }
13778 fi
13779
13780 # test for make depend flag
13781 OL_MKDEP=
13782 OL_MKDEP_FLAGS=
13783 if test -z "${MKDEP}"; then
13784         OL_MKDEP="${CC-cc}"
13785         if test -z "${MKDEP_FLAGS}"; then
13786                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13787 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13788 if test "${ol_cv_mkdep+set}" = set; then
13789   echo $ECHO_N "(cached) $ECHO_C" >&6
13790 else
13791
13792                         ol_cv_mkdep=no
13793                         for flag in "-M" "-xM"; do
13794                                 cat > conftest.c <<EOF
13795  noCode;
13796 EOF
13797                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799   (eval $ac_try) 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); }; } \
13803                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13804                                 then
13805                                         if test ! -f conftest."${ac_object}" ; then
13806                                                 ol_cv_mkdep=$flag
13807                                                 OL_MKDEP_FLAGS="$flag"
13808                                                 break
13809                                         fi
13810                                 fi
13811                         done
13812                         rm -f conftest*
13813
13814 fi
13815 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13816 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13817                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13818         else
13819                 cc_cv_mkdep=yes
13820                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13821         fi
13822 else
13823         cc_cv_mkdep=yes
13824         OL_MKDEP="${MKDEP}"
13825         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13826 fi
13827
13828
13829
13830 if test "${ol_cv_mkdep}" = no ; then
13831         # this will soon become an error
13832         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13833 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13834 fi
13835
13836 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13837 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13838 if test "${ac_cv_lib_s_afopen+set}" = set; then
13839   echo $ECHO_N "(cached) $ECHO_C" >&6
13840 else
13841   ac_check_lib_save_LIBS=$LIBS
13842 LIBS="-ls  $LIBS"
13843 cat >conftest.$ac_ext <<_ACEOF
13844 /* confdefs.h.  */
13845 _ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h.  */
13849
13850 /* Override any GCC internal prototype to avoid an error.
13851    Use char because int might match the return type of a GCC
13852    builtin and then its argument prototype would still apply.  */
13853 #ifdef __cplusplus
13854 extern "C"
13855 #endif
13856 char afopen ();
13857 int
13858 main ()
13859 {
13860 return afopen ();
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865 rm -f conftest.$ac_objext conftest$ac_exeext
13866 if { (ac_try="$ac_link"
13867 case "(($ac_try" in
13868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869   *) ac_try_echo=$ac_try;;
13870 esac
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872   (eval "$ac_link") 2>conftest.er1
13873   ac_status=$?
13874   grep -v '^ *+' conftest.er1 >conftest.err
13875   rm -f conftest.er1
13876   cat conftest.err >&5
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); } && {
13879          test -z "$ac_c_werror_flag" ||
13880          test ! -s conftest.err
13881        } && test -s conftest$ac_exeext &&
13882        $as_test_x conftest$ac_exeext; then
13883   ac_cv_lib_s_afopen=yes
13884 else
13885   echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13887
13888         ac_cv_lib_s_afopen=no
13889 fi
13890
13891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13892       conftest$ac_exeext conftest.$ac_ext
13893 LIBS=$ac_check_lib_save_LIBS
13894 fi
13895 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13896 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13897 if test $ac_cv_lib_s_afopen = yes; then
13898
13899         AUTH_LIBS=-ls
13900
13901 cat >>confdefs.h <<\_ACEOF
13902 #define HAVE_AIX_SECURITY 1
13903 _ACEOF
13904
13905
13906 fi
13907
13908
13909 case "$target" in
13910 *-ibm-openedition)
13911         ac_cv_func_getopt=no
13912
13913 cat >>confdefs.h <<\_ACEOF
13914 #define BOTH_STRINGS_H 1
13915 _ACEOF
13916
13917         ;;
13918 esac
13919
13920 ol_link_modules=no
13921 WITH_MODULES_ENABLED=no
13922 if test $ol_enable_modules != no ; then
13923
13924 for ac_header in ltdl.h
13925 do
13926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13928   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13931   echo $ECHO_N "(cached) $ECHO_C" >&6
13932 fi
13933 ac_res=`eval echo '${'$as_ac_Header'}'`
13934                { echo "$as_me:$LINENO: result: $ac_res" >&5
13935 echo "${ECHO_T}$ac_res" >&6; }
13936 else
13937   # Is the header compilable?
13938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13940 cat >conftest.$ac_ext <<_ACEOF
13941 /* confdefs.h.  */
13942 _ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h.  */
13946 $ac_includes_default
13947 #include <$ac_header>
13948 _ACEOF
13949 rm -f conftest.$ac_objext
13950 if { (ac_try="$ac_compile"
13951 case "(($ac_try" in
13952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953   *) ac_try_echo=$ac_try;;
13954 esac
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956   (eval "$ac_compile") 2>conftest.er1
13957   ac_status=$?
13958   grep -v '^ *+' conftest.er1 >conftest.err
13959   rm -f conftest.er1
13960   cat conftest.err >&5
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); } && {
13963          test -z "$ac_c_werror_flag" ||
13964          test ! -s conftest.err
13965        } && test -s conftest.$ac_objext; then
13966   ac_header_compiler=yes
13967 else
13968   echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13970
13971         ac_header_compiler=no
13972 fi
13973
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13976 echo "${ECHO_T}$ac_header_compiler" >&6; }
13977
13978 # Is the header present?
13979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13981 cat >conftest.$ac_ext <<_ACEOF
13982 /* confdefs.h.  */
13983 _ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h.  */
13987 #include <$ac_header>
13988 _ACEOF
13989 if { (ac_try="$ac_cpp conftest.$ac_ext"
13990 case "(($ac_try" in
13991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992   *) ac_try_echo=$ac_try;;
13993 esac
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13996   ac_status=$?
13997   grep -v '^ *+' conftest.er1 >conftest.err
13998   rm -f conftest.er1
13999   cat conftest.err >&5
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); } >/dev/null && {
14002          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14003          test ! -s conftest.err
14004        }; then
14005   ac_header_preproc=yes
14006 else
14007   echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14009
14010   ac_header_preproc=no
14011 fi
14012
14013 rm -f conftest.err conftest.$ac_ext
14014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14015 echo "${ECHO_T}$ac_header_preproc" >&6; }
14016
14017 # So?  What about this header?
14018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14019   yes:no: )
14020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14024     ac_header_preproc=yes
14025     ;;
14026   no:yes:* )
14027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14029     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14030 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14031     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14033     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14034 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14037     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14039     ( cat <<\_ASBOX
14040 ## --------------------------------------------- ##
14041 ## Report this to <http://www.openldap.org/its/> ##
14042 ## --------------------------------------------- ##
14043 _ASBOX
14044      ) | sed "s/^/$as_me: WARNING:     /" >&2
14045     ;;
14046 esac
14047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14050   echo $ECHO_N "(cached) $ECHO_C" >&6
14051 else
14052   eval "$as_ac_Header=\$ac_header_preproc"
14053 fi
14054 ac_res=`eval echo '${'$as_ac_Header'}'`
14055                { echo "$as_me:$LINENO: result: $ac_res" >&5
14056 echo "${ECHO_T}$ac_res" >&6; }
14057
14058 fi
14059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14060   cat >>confdefs.h <<_ACEOF
14061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14062 _ACEOF
14063
14064 fi
14065
14066 done
14067
14068
14069         if test $ac_cv_header_ltdl_h = no ; then
14070                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
14071 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
14072    { (exit 1); exit 1; }; }
14073         fi
14074
14075         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
14076 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
14077 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
14078   echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14080   ac_check_lib_save_LIBS=$LIBS
14081 LIBS="-lltdl  $LIBS"
14082 cat >conftest.$ac_ext <<_ACEOF
14083 /* confdefs.h.  */
14084 _ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h.  */
14088
14089 /* Override any GCC internal prototype to avoid an error.
14090    Use char because int might match the return type of a GCC
14091    builtin and then its argument prototype would still apply.  */
14092 #ifdef __cplusplus
14093 extern "C"
14094 #endif
14095 char lt_dlinit ();
14096 int
14097 main ()
14098 {
14099 return lt_dlinit ();
14100   ;
14101   return 0;
14102 }
14103 _ACEOF
14104 rm -f conftest.$ac_objext conftest$ac_exeext
14105 if { (ac_try="$ac_link"
14106 case "(($ac_try" in
14107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108   *) ac_try_echo=$ac_try;;
14109 esac
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111   (eval "$ac_link") 2>conftest.er1
14112   ac_status=$?
14113   grep -v '^ *+' conftest.er1 >conftest.err
14114   rm -f conftest.er1
14115   cat conftest.err >&5
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); } && {
14118          test -z "$ac_c_werror_flag" ||
14119          test ! -s conftest.err
14120        } && test -s conftest$ac_exeext &&
14121        $as_test_x conftest$ac_exeext; then
14122   ac_cv_lib_ltdl_lt_dlinit=yes
14123 else
14124   echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14126
14127         ac_cv_lib_ltdl_lt_dlinit=no
14128 fi
14129
14130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14131       conftest$ac_exeext conftest.$ac_ext
14132 LIBS=$ac_check_lib_save_LIBS
14133 fi
14134 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
14135 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
14136 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
14137
14138                 MODULES_LIBS=-lltdl
14139
14140 cat >>confdefs.h <<\_ACEOF
14141 #define HAVE_LIBLTDL 1
14142 _ACEOF
14143
14144
14145 fi
14146
14147
14148         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
14149                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
14150 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
14151    { (exit 1); exit 1; }; }
14152         fi
14153         ol_link_modules=yes
14154         WITH_MODULES_ENABLED=yes
14155
14156 else
14157         for i in $Backends; do
14158                 eval "ol_tmp=\$ol_enable_$i"
14159                 if test $ol_tmp = mod ; then
14160                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
14161 echo "$as_me: WARNING: building static $i backend" >&2;}
14162                         eval "ol_enable_$i=yes"
14163                 fi
14164         done
14165         for i in $Overlays; do
14166                 eval "ol_tmp=\$ol_enable_$i"
14167                 if test $ol_tmp = mod ; then
14168                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
14169 echo "$as_me: WARNING: building static $i overlay" >&2;}
14170                         eval "ol_enable_$i=yes"
14171                 fi
14172         done
14173 fi
14174
14175 # test for EBCDIC
14176 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14177 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14178 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14179   echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181
14182         cat >conftest.$ac_ext <<_ACEOF
14183 /* confdefs.h.  */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h.  */
14188
14189 #if !('M' == 0xd4)
14190 #include <__ASCII__/generate_error.h>
14191 #endif
14192
14193 _ACEOF
14194 if { (ac_try="$ac_cpp conftest.$ac_ext"
14195 case "(($ac_try" in
14196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197   *) ac_try_echo=$ac_try;;
14198 esac
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14201   ac_status=$?
14202   grep -v '^ *+' conftest.er1 >conftest.err
14203   rm -f conftest.er1
14204   cat conftest.err >&5
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); } >/dev/null && {
14207          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14208          test ! -s conftest.err
14209        }; then
14210   ol_cv_cpp_ebcdic=yes
14211 else
14212   echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14214
14215   ol_cv_cpp_ebcdic=no
14216 fi
14217
14218 rm -f conftest.err conftest.$ac_ext
14219 fi
14220 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14221 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14222 if test $ol_cv_cpp_ebcdic = yes ; then
14223
14224 cat >>confdefs.h <<\_ACEOF
14225 #define HAVE_EBCDIC 1
14226 _ACEOF
14227
14228 fi
14229
14230 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14232 if test "${ol_cv_header_stdc+set}" = set; then
14233   echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235   cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h.  */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h.  */
14241 #include <stdlib.h>
14242 #include <stdarg.h>
14243 #include <string.h>
14244 #include <float.h>
14245 _ACEOF
14246 if { (ac_try="$ac_cpp conftest.$ac_ext"
14247 case "(($ac_try" in
14248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249   *) ac_try_echo=$ac_try;;
14250 esac
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14253   ac_status=$?
14254   grep -v '^ *+' conftest.er1 >conftest.err
14255   rm -f conftest.er1
14256   cat conftest.err >&5
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); } >/dev/null && {
14259          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14260          test ! -s conftest.err
14261        }; then
14262   ol_cv_header_stdc=yes
14263 else
14264   echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14266
14267   ol_cv_header_stdc=no
14268 fi
14269
14270 rm -f conftest.err conftest.$ac_ext
14271
14272 if test $ol_cv_header_stdc = yes; then
14273   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14274 cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h.  */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h.  */
14280 #include <string.h>
14281
14282 _ACEOF
14283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14284   $EGREP "memchr" >/dev/null 2>&1; then
14285   :
14286 else
14287   ol_cv_header_stdc=no
14288 fi
14289 rm -f conftest*
14290
14291 fi
14292
14293 if test $ol_cv_header_stdc = yes; then
14294   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14295 cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h.  */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h.  */
14301 #include <stdlib.h>
14302
14303 _ACEOF
14304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14305   $EGREP "free" >/dev/null 2>&1; then
14306   :
14307 else
14308   ol_cv_header_stdc=no
14309 fi
14310 rm -f conftest*
14311
14312 fi
14313
14314 if test $ol_cv_header_stdc = yes; then
14315   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14316 if test "$cross_compiling" = yes; then
14317   :
14318 else
14319   cat >conftest.$ac_ext <<_ACEOF
14320 /* confdefs.h.  */
14321 _ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h.  */
14325 #include <ctype.h>
14326 #ifndef HAVE_EBCDIC
14327 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14328 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14329 #else
14330 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14331                 || ('j' <= (c) && (c) <= 'r') \
14332                 || ('s' <= (c) && (c) <= 'z'))
14333 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14334 #endif
14335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14336 int main () { int i; for (i = 0; i < 256; i++)
14337 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14338 exit (0); }
14339
14340 _ACEOF
14341 rm -f conftest$ac_exeext
14342 if { (ac_try="$ac_link"
14343 case "(($ac_try" in
14344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345   *) ac_try_echo=$ac_try;;
14346 esac
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348   (eval "$ac_link") 2>&5
14349   ac_status=$?
14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14352   { (case "(($ac_try" in
14353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354   *) ac_try_echo=$ac_try;;
14355 esac
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357   (eval "$ac_try") 2>&5
14358   ac_status=$?
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); }; }; then
14361   :
14362 else
14363   echo "$as_me: program exited with status $ac_status" >&5
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367 ( exit $ac_status )
14368 ol_cv_header_stdc=no
14369 fi
14370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14371 fi
14372
14373
14374 fi
14375 fi
14376 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14377 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14378 if test $ol_cv_header_stdc = yes; then
14379   cat >>confdefs.h <<\_ACEOF
14380 #define STDC_HEADERS 1
14381 _ACEOF
14382
14383 fi
14384 ac_cv_header_stdc=disable
14385
14386
14387 if test $ol_cv_header_stdc != yes; then
14388         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14389 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14390 fi
14391
14392
14393
14394
14395
14396
14397 ac_header_dirent=no
14398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14399   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14400 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14401 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14403   echo $ECHO_N "(cached) $ECHO_C" >&6
14404 else
14405   cat >conftest.$ac_ext <<_ACEOF
14406 /* confdefs.h.  */
14407 _ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h.  */
14411 #include <sys/types.h>
14412 #include <$ac_hdr>
14413
14414 int
14415 main ()
14416 {
14417 if ((DIR *) 0)
14418 return 0;
14419   ;
14420   return 0;
14421 }
14422 _ACEOF
14423 rm -f conftest.$ac_objext
14424 if { (ac_try="$ac_compile"
14425 case "(($ac_try" in
14426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427   *) ac_try_echo=$ac_try;;
14428 esac
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430   (eval "$ac_compile") 2>conftest.er1
14431   ac_status=$?
14432   grep -v '^ *+' conftest.er1 >conftest.err
14433   rm -f conftest.er1
14434   cat conftest.err >&5
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); } && {
14437          test -z "$ac_c_werror_flag" ||
14438          test ! -s conftest.err
14439        } && test -s conftest.$ac_objext; then
14440   eval "$as_ac_Header=yes"
14441 else
14442   echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14444
14445         eval "$as_ac_Header=no"
14446 fi
14447
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 fi
14450 ac_res=`eval echo '${'$as_ac_Header'}'`
14451                { echo "$as_me:$LINENO: result: $ac_res" >&5
14452 echo "${ECHO_T}$ac_res" >&6; }
14453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14454   cat >>confdefs.h <<_ACEOF
14455 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14456 _ACEOF
14457
14458 ac_header_dirent=$ac_hdr; break
14459 fi
14460
14461 done
14462 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14463 if test $ac_header_dirent = dirent.h; then
14464   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14465 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14466 if test "${ac_cv_search_opendir+set}" = set; then
14467   echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469   ac_func_search_save_LIBS=$LIBS
14470 cat >conftest.$ac_ext <<_ACEOF
14471 /* confdefs.h.  */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h.  */
14476
14477 /* Override any GCC internal prototype to avoid an error.
14478    Use char because int might match the return type of a GCC
14479    builtin and then its argument prototype would still apply.  */
14480 #ifdef __cplusplus
14481 extern "C"
14482 #endif
14483 char opendir ();
14484 int
14485 main ()
14486 {
14487 return opendir ();
14488   ;
14489   return 0;
14490 }
14491 _ACEOF
14492 for ac_lib in '' dir; do
14493   if test -z "$ac_lib"; then
14494     ac_res="none required"
14495   else
14496     ac_res=-l$ac_lib
14497     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14498   fi
14499   rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (ac_try="$ac_link"
14501 case "(($ac_try" in
14502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503   *) ac_try_echo=$ac_try;;
14504 esac
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506   (eval "$ac_link") 2>conftest.er1
14507   ac_status=$?
14508   grep -v '^ *+' conftest.er1 >conftest.err
14509   rm -f conftest.er1
14510   cat conftest.err >&5
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); } && {
14513          test -z "$ac_c_werror_flag" ||
14514          test ! -s conftest.err
14515        } && test -s conftest$ac_exeext &&
14516        $as_test_x conftest$ac_exeext; then
14517   ac_cv_search_opendir=$ac_res
14518 else
14519   echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.$ac_ext >&5
14521
14522
14523 fi
14524
14525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14526       conftest$ac_exeext
14527   if test "${ac_cv_search_opendir+set}" = set; then
14528   break
14529 fi
14530 done
14531 if test "${ac_cv_search_opendir+set}" = set; then
14532   :
14533 else
14534   ac_cv_search_opendir=no
14535 fi
14536 rm conftest.$ac_ext
14537 LIBS=$ac_func_search_save_LIBS
14538 fi
14539 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14540 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14541 ac_res=$ac_cv_search_opendir
14542 if test "$ac_res" != no; then
14543   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14544
14545 fi
14546
14547 else
14548   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14549 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14550 if test "${ac_cv_search_opendir+set}" = set; then
14551   echo $ECHO_N "(cached) $ECHO_C" >&6
14552 else
14553   ac_func_search_save_LIBS=$LIBS
14554 cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h.  */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h.  */
14560
14561 /* Override any GCC internal prototype to avoid an error.
14562    Use char because int might match the return type of a GCC
14563    builtin and then its argument prototype would still apply.  */
14564 #ifdef __cplusplus
14565 extern "C"
14566 #endif
14567 char opendir ();
14568 int
14569 main ()
14570 {
14571 return opendir ();
14572   ;
14573   return 0;
14574 }
14575 _ACEOF
14576 for ac_lib in '' x; do
14577   if test -z "$ac_lib"; then
14578     ac_res="none required"
14579   else
14580     ac_res=-l$ac_lib
14581     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14582   fi
14583   rm -f conftest.$ac_objext conftest$ac_exeext
14584 if { (ac_try="$ac_link"
14585 case "(($ac_try" in
14586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587   *) ac_try_echo=$ac_try;;
14588 esac
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590   (eval "$ac_link") 2>conftest.er1
14591   ac_status=$?
14592   grep -v '^ *+' conftest.er1 >conftest.err
14593   rm -f conftest.er1
14594   cat conftest.err >&5
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); } && {
14597          test -z "$ac_c_werror_flag" ||
14598          test ! -s conftest.err
14599        } && test -s conftest$ac_exeext &&
14600        $as_test_x conftest$ac_exeext; then
14601   ac_cv_search_opendir=$ac_res
14602 else
14603   echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.$ac_ext >&5
14605
14606
14607 fi
14608
14609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14610       conftest$ac_exeext
14611   if test "${ac_cv_search_opendir+set}" = set; then
14612   break
14613 fi
14614 done
14615 if test "${ac_cv_search_opendir+set}" = set; then
14616   :
14617 else
14618   ac_cv_search_opendir=no
14619 fi
14620 rm conftest.$ac_ext
14621 LIBS=$ac_func_search_save_LIBS
14622 fi
14623 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14624 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14625 ac_res=$ac_cv_search_opendir
14626 if test "$ac_res" != no; then
14627   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14628
14629 fi
14630
14631 fi
14632
14633 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14634 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14635 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14636   echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638   cat >conftest.$ac_ext <<_ACEOF
14639 /* confdefs.h.  */
14640 _ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h.  */
14644 #include <sys/types.h>
14645 #include <sys/wait.h>
14646 #ifndef WEXITSTATUS
14647 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14648 #endif
14649 #ifndef WIFEXITED
14650 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14651 #endif
14652
14653 int
14654 main ()
14655 {
14656   int s;
14657   wait (&s);
14658   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14659   ;
14660   return 0;
14661 }
14662 _ACEOF
14663 rm -f conftest.$ac_objext
14664 if { (ac_try="$ac_compile"
14665 case "(($ac_try" in
14666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667   *) ac_try_echo=$ac_try;;
14668 esac
14669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14670   (eval "$ac_compile") 2>conftest.er1
14671   ac_status=$?
14672   grep -v '^ *+' conftest.er1 >conftest.err
14673   rm -f conftest.er1
14674   cat conftest.err >&5
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); } && {
14677          test -z "$ac_c_werror_flag" ||
14678          test ! -s conftest.err
14679        } && test -s conftest.$ac_objext; then
14680   ac_cv_header_sys_wait_h=yes
14681 else
14682   echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14684
14685         ac_cv_header_sys_wait_h=no
14686 fi
14687
14688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14689 fi
14690 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14691 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14692 if test $ac_cv_header_sys_wait_h = yes; then
14693
14694 cat >>confdefs.h <<\_ACEOF
14695 #define HAVE_SYS_WAIT_H 1
14696 _ACEOF
14697
14698 fi
14699
14700 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14701 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14702 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14703   echo $ECHO_N "(cached) $ECHO_C" >&6
14704 else
14705   cat >conftest.$ac_ext <<_ACEOF
14706 /* confdefs.h.  */
14707 _ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h.  */
14711 #include <sys/types.h>
14712 #include <termios.h>
14713 #ifdef TIOCGWINSZ
14714   yes
14715 #endif
14716
14717 _ACEOF
14718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14719   $EGREP "yes" >/dev/null 2>&1; then
14720   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14721 else
14722   ac_cv_sys_tiocgwinsz_in_termios_h=no
14723 fi
14724 rm -f conftest*
14725
14726 fi
14727 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14728 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14729
14730 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14731   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14732 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14733 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14734   echo $ECHO_N "(cached) $ECHO_C" >&6
14735 else
14736   cat >conftest.$ac_ext <<_ACEOF
14737 /* confdefs.h.  */
14738 _ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h.  */
14742 #include <sys/types.h>
14743 #include <sys/ioctl.h>
14744 #ifdef TIOCGWINSZ
14745   yes
14746 #endif
14747
14748 _ACEOF
14749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14750   $EGREP "yes" >/dev/null 2>&1; then
14751   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14752 else
14753   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14754 fi
14755 rm -f conftest*
14756
14757 fi
14758 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14759 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14760
14761   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14762
14763 cat >>confdefs.h <<\_ACEOF
14764 #define GWINSZ_IN_SYS_IOCTL 1
14765 _ACEOF
14766
14767   fi
14768 fi
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818 for ac_header in \
14819         arpa/inet.h             \
14820         arpa/nameser.h  \
14821         assert.h                \
14822         bits/types.h    \
14823         conio.h                 \
14824         crypt.h                 \
14825         direct.h                \
14826         errno.h                 \
14827         fcntl.h                 \
14828         filio.h                 \
14829         getopt.h                \
14830         grp.h                   \
14831         io.h                    \
14832         libutil.h               \
14833         limits.h                \
14834         locale.h                \
14835         malloc.h                \
14836         memory.h                \
14837         psap.h                  \
14838         pwd.h                   \
14839         process.h               \
14840         sgtty.h                 \
14841         shadow.h                \
14842         stddef.h                \
14843         string.h                \
14844         strings.h               \
14845         sysexits.h              \
14846         sys/file.h              \
14847         sys/filio.h             \
14848         sys/fstyp.h             \
14849         sys/errno.h             \
14850         sys/ioctl.h             \
14851         sys/param.h             \
14852         sys/privgrp.h   \
14853         sys/resource.h  \
14854         sys/select.h    \
14855         sys/socket.h    \
14856         sys/stat.h              \
14857         sys/syslog.h    \
14858         sys/time.h              \
14859         sys/types.h             \
14860         sys/uio.h               \
14861         sys/vmount.h    \
14862         syslog.h                \
14863         termios.h               \
14864         unistd.h                \
14865         utime.h                 \
14866
14867 do
14868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14870   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14873   echo $ECHO_N "(cached) $ECHO_C" >&6
14874 fi
14875 ac_res=`eval echo '${'$as_ac_Header'}'`
14876                { echo "$as_me:$LINENO: result: $ac_res" >&5
14877 echo "${ECHO_T}$ac_res" >&6; }
14878 else
14879   # Is the header compilable?
14880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14882 cat >conftest.$ac_ext <<_ACEOF
14883 /* confdefs.h.  */
14884 _ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h.  */
14888 $ac_includes_default
14889 #include <$ac_header>
14890 _ACEOF
14891 rm -f conftest.$ac_objext
14892 if { (ac_try="$ac_compile"
14893 case "(($ac_try" in
14894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895   *) ac_try_echo=$ac_try;;
14896 esac
14897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14898   (eval "$ac_compile") 2>conftest.er1
14899   ac_status=$?
14900   grep -v '^ *+' conftest.er1 >conftest.err
14901   rm -f conftest.er1
14902   cat conftest.err >&5
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); } && {
14905          test -z "$ac_c_werror_flag" ||
14906          test ! -s conftest.err
14907        } && test -s conftest.$ac_objext; then
14908   ac_header_compiler=yes
14909 else
14910   echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14912
14913         ac_header_compiler=no
14914 fi
14915
14916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14918 echo "${ECHO_T}$ac_header_compiler" >&6; }
14919
14920 # Is the header present?
14921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14923 cat >conftest.$ac_ext <<_ACEOF
14924 /* confdefs.h.  */
14925 _ACEOF
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h.  */
14929 #include <$ac_header>
14930 _ACEOF
14931 if { (ac_try="$ac_cpp conftest.$ac_ext"
14932 case "(($ac_try" in
14933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934   *) ac_try_echo=$ac_try;;
14935 esac
14936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14938   ac_status=$?
14939   grep -v '^ *+' conftest.er1 >conftest.err
14940   rm -f conftest.er1
14941   cat conftest.err >&5
14942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943   (exit $ac_status); } >/dev/null && {
14944          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14945          test ! -s conftest.err
14946        }; then
14947   ac_header_preproc=yes
14948 else
14949   echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.$ac_ext >&5
14951
14952   ac_header_preproc=no
14953 fi
14954
14955 rm -f conftest.err conftest.$ac_ext
14956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14957 echo "${ECHO_T}$ac_header_preproc" >&6; }
14958
14959 # So?  What about this header?
14960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14961   yes:no: )
14962     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14966     ac_header_preproc=yes
14967     ;;
14968   no:yes:* )
14969     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14971     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14972 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14973     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14975     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14976 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14979     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14981     ( cat <<\_ASBOX
14982 ## --------------------------------------------- ##
14983 ## Report this to <http://www.openldap.org/its/> ##
14984 ## --------------------------------------------- ##
14985 _ASBOX
14986      ) | sed "s/^/$as_me: WARNING:     /" >&2
14987     ;;
14988 esac
14989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14992   echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994   eval "$as_ac_Header=\$ac_header_preproc"
14995 fi
14996 ac_res=`eval echo '${'$as_ac_Header'}'`
14997                { echo "$as_me:$LINENO: result: $ac_res" >&5
14998 echo "${ECHO_T}$ac_res" >&6; }
14999
15000 fi
15001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15002   cat >>confdefs.h <<_ACEOF
15003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15004 _ACEOF
15005
15006 fi
15007
15008 done
15009
15010
15011 if test "$ac_cv_mingw32" = yes \
15012         -o "$ac_cv_interix" = yes \
15013         -o "$ol_cv_msvc" = yes
15014 then
15015
15016
15017 for ac_header in winsock.h winsock2.h
15018 do
15019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15024   echo $ECHO_N "(cached) $ECHO_C" >&6
15025 fi
15026 ac_res=`eval echo '${'$as_ac_Header'}'`
15027                { echo "$as_me:$LINENO: result: $ac_res" >&5
15028 echo "${ECHO_T}$ac_res" >&6; }
15029 else
15030   # Is the header compilable?
15031 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15033 cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h.  */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h.  */
15039 $ac_includes_default
15040 #include <$ac_header>
15041 _ACEOF
15042 rm -f conftest.$ac_objext
15043 if { (ac_try="$ac_compile"
15044 case "(($ac_try" in
15045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046   *) ac_try_echo=$ac_try;;
15047 esac
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049   (eval "$ac_compile") 2>conftest.er1
15050   ac_status=$?
15051   grep -v '^ *+' conftest.er1 >conftest.err
15052   rm -f conftest.er1
15053   cat conftest.err >&5
15054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055   (exit $ac_status); } && {
15056          test -z "$ac_c_werror_flag" ||
15057          test ! -s conftest.err
15058        } && test -s conftest.$ac_objext; then
15059   ac_header_compiler=yes
15060 else
15061   echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064         ac_header_compiler=no
15065 fi
15066
15067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15069 echo "${ECHO_T}$ac_header_compiler" >&6; }
15070
15071 # Is the header present?
15072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15074 cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h.  */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h.  */
15080 #include <$ac_header>
15081 _ACEOF
15082 if { (ac_try="$ac_cpp conftest.$ac_ext"
15083 case "(($ac_try" in
15084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085   *) ac_try_echo=$ac_try;;
15086 esac
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15089   ac_status=$?
15090   grep -v '^ *+' conftest.er1 >conftest.err
15091   rm -f conftest.er1
15092   cat conftest.err >&5
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); } >/dev/null && {
15095          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15096          test ! -s conftest.err
15097        }; then
15098   ac_header_preproc=yes
15099 else
15100   echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103   ac_header_preproc=no
15104 fi
15105
15106 rm -f conftest.err conftest.$ac_ext
15107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15108 echo "${ECHO_T}$ac_header_preproc" >&6; }
15109
15110 # So?  What about this header?
15111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15112   yes:no: )
15113     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15117     ac_header_preproc=yes
15118     ;;
15119   no:yes:* )
15120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15122     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15123 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15124     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15126     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15127 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15130     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15132     ( cat <<\_ASBOX
15133 ## --------------------------------------------- ##
15134 ## Report this to <http://www.openldap.org/its/> ##
15135 ## --------------------------------------------- ##
15136 _ASBOX
15137      ) | sed "s/^/$as_me: WARNING:     /" >&2
15138     ;;
15139 esac
15140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15143   echo $ECHO_N "(cached) $ECHO_C" >&6
15144 else
15145   eval "$as_ac_Header=\$ac_header_preproc"
15146 fi
15147 ac_res=`eval echo '${'$as_ac_Header'}'`
15148                { echo "$as_me:$LINENO: result: $ac_res" >&5
15149 echo "${ECHO_T}$ac_res" >&6; }
15150
15151 fi
15152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15153   cat >>confdefs.h <<_ACEOF
15154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15155 _ACEOF
15156
15157 fi
15158
15159 done
15160
15161 fi
15162
15163
15164 for ac_header in resolv.h
15165 do
15166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15170   echo $ECHO_N "(cached) $ECHO_C" >&6
15171 else
15172   cat >conftest.$ac_ext <<_ACEOF
15173 /* confdefs.h.  */
15174 _ACEOF
15175 cat confdefs.h >>conftest.$ac_ext
15176 cat >>conftest.$ac_ext <<_ACEOF
15177 /* end confdefs.h.  */
15178 $ac_includes_default
15179 #include <netinet/in.h>
15180
15181
15182 #include <$ac_header>
15183 _ACEOF
15184 rm -f conftest.$ac_objext
15185 if { (ac_try="$ac_compile"
15186 case "(($ac_try" in
15187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188   *) ac_try_echo=$ac_try;;
15189 esac
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191   (eval "$ac_compile") 2>conftest.er1
15192   ac_status=$?
15193   grep -v '^ *+' conftest.er1 >conftest.err
15194   rm -f conftest.er1
15195   cat conftest.err >&5
15196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197   (exit $ac_status); } && {
15198          test -z "$ac_c_werror_flag" ||
15199          test ! -s conftest.err
15200        } && test -s conftest.$ac_objext; then
15201   eval "$as_ac_Header=yes"
15202 else
15203   echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15205
15206         eval "$as_ac_Header=no"
15207 fi
15208
15209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15210 fi
15211 ac_res=`eval echo '${'$as_ac_Header'}'`
15212                { echo "$as_me:$LINENO: result: $ac_res" >&5
15213 echo "${ECHO_T}$ac_res" >&6; }
15214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15215   cat >>confdefs.h <<_ACEOF
15216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15217 _ACEOF
15218
15219 fi
15220
15221 done
15222
15223
15224
15225 for ac_header in netinet/tcp.h
15226 do
15227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15231   echo $ECHO_N "(cached) $ECHO_C" >&6
15232 else
15233   cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h.  */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h.  */
15239 $ac_includes_default
15240 #include <netinet/in.h>
15241
15242
15243 #include <$ac_header>
15244 _ACEOF
15245 rm -f conftest.$ac_objext
15246 if { (ac_try="$ac_compile"
15247 case "(($ac_try" in
15248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249   *) ac_try_echo=$ac_try;;
15250 esac
15251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252   (eval "$ac_compile") 2>conftest.er1
15253   ac_status=$?
15254   grep -v '^ *+' conftest.er1 >conftest.err
15255   rm -f conftest.er1
15256   cat conftest.err >&5
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); } && {
15259          test -z "$ac_c_werror_flag" ||
15260          test ! -s conftest.err
15261        } && test -s conftest.$ac_objext; then
15262   eval "$as_ac_Header=yes"
15263 else
15264   echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15266
15267         eval "$as_ac_Header=no"
15268 fi
15269
15270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271 fi
15272 ac_res=`eval echo '${'$as_ac_Header'}'`
15273                { echo "$as_me:$LINENO: result: $ac_res" >&5
15274 echo "${ECHO_T}$ac_res" >&6; }
15275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15276   cat >>confdefs.h <<_ACEOF
15277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15278 _ACEOF
15279
15280 fi
15281
15282 done
15283
15284
15285
15286 for ac_header in sys/ucred.h
15287 do
15288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15292   echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294   cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h.  */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h.  */
15300 $ac_includes_default
15301 #ifdef HAVE_SYS_PARAM_H
15302 #include <sys/param.h>
15303 #endif
15304
15305
15306 #include <$ac_header>
15307 _ACEOF
15308 rm -f conftest.$ac_objext
15309 if { (ac_try="$ac_compile"
15310 case "(($ac_try" in
15311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312   *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315   (eval "$ac_compile") 2>conftest.er1
15316   ac_status=$?
15317   grep -v '^ *+' conftest.er1 >conftest.err
15318   rm -f conftest.er1
15319   cat conftest.err >&5
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); } && {
15322          test -z "$ac_c_werror_flag" ||
15323          test ! -s conftest.err
15324        } && test -s conftest.$ac_objext; then
15325   eval "$as_ac_Header=yes"
15326 else
15327   echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330         eval "$as_ac_Header=no"
15331 fi
15332
15333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15334 fi
15335 ac_res=`eval echo '${'$as_ac_Header'}'`
15336                { echo "$as_me:$LINENO: result: $ac_res" >&5
15337 echo "${ECHO_T}$ac_res" >&6; }
15338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15339   cat >>confdefs.h <<_ACEOF
15340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15341 _ACEOF
15342
15343 fi
15344
15345 done
15346
15347
15348
15349
15350
15351 for ac_func in sigaction sigset
15352 do
15353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15357   echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15367 #define $ac_func innocuous_$ac_func
15368
15369 /* System header to define __stub macros and hopefully few prototypes,
15370     which can conflict with char $ac_func (); below.
15371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15372     <limits.h> exists even on freestanding compilers.  */
15373
15374 #ifdef __STDC__
15375 # include <limits.h>
15376 #else
15377 # include <assert.h>
15378 #endif
15379
15380 #undef $ac_func
15381
15382 /* Override any GCC internal prototype to avoid an error.
15383    Use char because int might match the return type of a GCC
15384    builtin and then its argument prototype would still apply.  */
15385 #ifdef __cplusplus
15386 extern "C"
15387 #endif
15388 char $ac_func ();
15389 /* The GNU C library defines this for functions which it implements
15390     to always fail with ENOSYS.  Some functions are actually named
15391     something starting with __ and the normal name is an alias.  */
15392 #if defined __stub_$ac_func || defined __stub___$ac_func
15393 choke me
15394 #endif
15395
15396 int
15397 main ()
15398 {
15399 return $ac_func ();
15400   ;
15401   return 0;
15402 }
15403 _ACEOF
15404 rm -f conftest.$ac_objext conftest$ac_exeext
15405 if { (ac_try="$ac_link"
15406 case "(($ac_try" in
15407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408   *) ac_try_echo=$ac_try;;
15409 esac
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411   (eval "$ac_link") 2>conftest.er1
15412   ac_status=$?
15413   grep -v '^ *+' conftest.er1 >conftest.err
15414   rm -f conftest.er1
15415   cat conftest.err >&5
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); } && {
15418          test -z "$ac_c_werror_flag" ||
15419          test ! -s conftest.err
15420        } && test -s conftest$ac_exeext &&
15421        $as_test_x conftest$ac_exeext; then
15422   eval "$as_ac_var=yes"
15423 else
15424   echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15426
15427         eval "$as_ac_var=no"
15428 fi
15429
15430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15431       conftest$ac_exeext conftest.$ac_ext
15432 fi
15433 ac_res=`eval echo '${'$as_ac_var'}'`
15434                { echo "$as_me:$LINENO: result: $ac_res" >&5
15435 echo "${ECHO_T}$ac_res" >&6; }
15436 if test `eval echo '${'$as_ac_var'}'` = yes; then
15437   cat >>confdefs.h <<_ACEOF
15438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15439 _ACEOF
15440
15441 fi
15442 done
15443
15444
15445 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15446
15447 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15448 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15449 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15450   echo $ECHO_N "(cached) $ECHO_C" >&6
15451 else
15452   ac_check_lib_save_LIBS=$LIBS
15453 LIBS="-lV3  $LIBS"
15454 cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h.  */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h.  */
15460
15461 /* Override any GCC internal prototype to avoid an error.
15462    Use char because int might match the return type of a GCC
15463    builtin and then its argument prototype would still apply.  */
15464 #ifdef __cplusplus
15465 extern "C"
15466 #endif
15467 char sigset ();
15468 int
15469 main ()
15470 {
15471 return sigset ();
15472   ;
15473   return 0;
15474 }
15475 _ACEOF
15476 rm -f conftest.$ac_objext conftest$ac_exeext
15477 if { (ac_try="$ac_link"
15478 case "(($ac_try" in
15479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480   *) ac_try_echo=$ac_try;;
15481 esac
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483   (eval "$ac_link") 2>conftest.er1
15484   ac_status=$?
15485   grep -v '^ *+' conftest.er1 >conftest.err
15486   rm -f conftest.er1
15487   cat conftest.err >&5
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); } && {
15490          test -z "$ac_c_werror_flag" ||
15491          test ! -s conftest.err
15492        } && test -s conftest$ac_exeext &&
15493        $as_test_x conftest$ac_exeext; then
15494   ac_cv_lib_V3_sigset=yes
15495 else
15496   echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15498
15499         ac_cv_lib_V3_sigset=no
15500 fi
15501
15502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15503       conftest$ac_exeext conftest.$ac_ext
15504 LIBS=$ac_check_lib_save_LIBS
15505 fi
15506 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15507 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15508 if test $ac_cv_lib_V3_sigset = yes; then
15509   cat >>confdefs.h <<_ACEOF
15510 #define HAVE_LIBV3 1
15511 _ACEOF
15512
15513   LIBS="-lV3 $LIBS"
15514
15515 fi
15516
15517 fi
15518
15519 if test $ol_cv_msvc = yes ; then
15520    ol_cv_winsock=yes
15521 fi
15522
15523 if test "$ac_cv_header_winsock_h" = yes; then
15524         { echo "$as_me:$LINENO: checking for winsock" >&5
15525 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15526 if test "${ol_cv_winsock+set}" = set; then
15527   echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529
15530         save_LIBS="$LIBS"
15531         for curlib in none ws2_32 wsock32; do
15532                 if test $curlib != none ; then
15533                 LIBS="$save_LIBS -l$curlib"
15534                 fi
15535                 cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h.  */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h.  */
15541 #include <winsock.h>
15542
15543 int
15544 main ()
15545 {
15546
15547                         socket(0,0,0);
15548                         select(0,NULL,NULL,NULL,NULL);
15549                         closesocket(0);
15550                         gethostname(NULL,0);
15551
15552   ;
15553   return 0;
15554 }
15555 _ACEOF
15556 rm -f conftest.$ac_objext conftest$ac_exeext
15557 if { (ac_try="$ac_link"
15558 case "(($ac_try" in
15559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560   *) ac_try_echo=$ac_try;;
15561 esac
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563   (eval "$ac_link") 2>conftest.er1
15564   ac_status=$?
15565   grep -v '^ *+' conftest.er1 >conftest.err
15566   rm -f conftest.er1
15567   cat conftest.err >&5
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); } && {
15570          test -z "$ac_c_werror_flag" ||
15571          test ! -s conftest.err
15572        } && test -s conftest$ac_exeext &&
15573        $as_test_x conftest$ac_exeext; then
15574   ol_cv_winsock=$curlib
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15578
15579         ol_cv_winsock=no
15580 fi
15581
15582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15583       conftest$ac_exeext conftest.$ac_ext
15584
15585                 test "$ol_cv_winsock" != no && break
15586         done
15587         LIBS="$save_LIBS"
15588
15589 fi
15590 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15591 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15592
15593         if test $ol_cv_winsock != no ; then
15594
15595 cat >>confdefs.h <<\_ACEOF
15596 #define HAVE_WINSOCK 1
15597 _ACEOF
15598
15599         ac_cv_func_socket=yes
15600         ac_cv_func_select=yes
15601         ac_cv_func_closesocket=yes
15602         ac_cv_func_gethostname=yes
15603
15604                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15605                 LIBS="$LIBS -l$ol_cv_winsock"
15606                 fi
15607
15608         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15609
15610 cat >>confdefs.h <<\_ACEOF
15611 #define HAVE_WINSOCK2 1
15612 _ACEOF
15613
15614         fi
15615         fi
15616 fi
15617
15618
15619 { echo "$as_me:$LINENO: checking for socket" >&5
15620 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15621 if test "${ac_cv_func_socket+set}" = set; then
15622   echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624   cat >conftest.$ac_ext <<_ACEOF
15625 /* confdefs.h.  */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h.  */
15630 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15632 #define socket innocuous_socket
15633
15634 /* System header to define __stub macros and hopefully few prototypes,
15635     which can conflict with char socket (); below.
15636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15637     <limits.h> exists even on freestanding compilers.  */
15638
15639 #ifdef __STDC__
15640 # include <limits.h>
15641 #else
15642 # include <assert.h>
15643 #endif
15644
15645 #undef socket
15646
15647 /* Override any GCC internal prototype to avoid an error.
15648    Use char because int might match the return type of a GCC
15649    builtin and then its argument prototype would still apply.  */
15650 #ifdef __cplusplus
15651 extern "C"
15652 #endif
15653 char socket ();
15654 /* The GNU C library defines this for functions which it implements
15655     to always fail with ENOSYS.  Some functions are actually named
15656     something starting with __ and the normal name is an alias.  */
15657 #if defined __stub_socket || defined __stub___socket
15658 choke me
15659 #endif
15660
15661 int
15662 main ()
15663 {
15664 return socket ();
15665   ;
15666   return 0;
15667 }
15668 _ACEOF
15669 rm -f conftest.$ac_objext conftest$ac_exeext
15670 if { (ac_try="$ac_link"
15671 case "(($ac_try" in
15672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673   *) ac_try_echo=$ac_try;;
15674 esac
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676   (eval "$ac_link") 2>conftest.er1
15677   ac_status=$?
15678   grep -v '^ *+' conftest.er1 >conftest.err
15679   rm -f conftest.er1
15680   cat conftest.err >&5
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); } && {
15683          test -z "$ac_c_werror_flag" ||
15684          test ! -s conftest.err
15685        } && test -s conftest$ac_exeext &&
15686        $as_test_x conftest$ac_exeext; then
15687   ac_cv_func_socket=yes
15688 else
15689   echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15691
15692         ac_cv_func_socket=no
15693 fi
15694
15695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15696       conftest$ac_exeext conftest.$ac_ext
15697 fi
15698 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15699 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15700 if test $ac_cv_func_socket = yes; then
15701   :
15702 else
15703
15704
15705 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15706 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15707 if test "${ac_cv_lib_socket_main+set}" = set; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   ac_check_lib_save_LIBS=$LIBS
15711 LIBS="-lsocket  $LIBS"
15712 cat >conftest.$ac_ext <<_ACEOF
15713 /* confdefs.h.  */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h.  */
15718
15719
15720 int
15721 main ()
15722 {
15723 return main ();
15724   ;
15725   return 0;
15726 }
15727 _ACEOF
15728 rm -f conftest.$ac_objext conftest$ac_exeext
15729 if { (ac_try="$ac_link"
15730 case "(($ac_try" in
15731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732   *) ac_try_echo=$ac_try;;
15733 esac
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735   (eval "$ac_link") 2>conftest.er1
15736   ac_status=$?
15737   grep -v '^ *+' conftest.er1 >conftest.err
15738   rm -f conftest.er1
15739   cat conftest.err >&5
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); } && {
15742          test -z "$ac_c_werror_flag" ||
15743          test ! -s conftest.err
15744        } && test -s conftest$ac_exeext &&
15745        $as_test_x conftest$ac_exeext; then
15746   ac_cv_lib_socket_main=yes
15747 else
15748   echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15750
15751         ac_cv_lib_socket_main=no
15752 fi
15753
15754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15755       conftest$ac_exeext conftest.$ac_ext
15756 LIBS=$ac_check_lib_save_LIBS
15757 fi
15758 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15759 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15760 if test $ac_cv_lib_socket_main = yes; then
15761   cat >>confdefs.h <<_ACEOF
15762 #define HAVE_LIBSOCKET 1
15763 _ACEOF
15764
15765   LIBS="-lsocket $LIBS"
15766
15767 fi
15768
15769
15770 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15771 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15772 if test "${ac_cv_lib_net_main+set}" = set; then
15773   echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775   ac_check_lib_save_LIBS=$LIBS
15776 LIBS="-lnet  $LIBS"
15777 cat >conftest.$ac_ext <<_ACEOF
15778 /* confdefs.h.  */
15779 _ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h.  */
15783
15784
15785 int
15786 main ()
15787 {
15788 return main ();
15789   ;
15790   return 0;
15791 }
15792 _ACEOF
15793 rm -f conftest.$ac_objext conftest$ac_exeext
15794 if { (ac_try="$ac_link"
15795 case "(($ac_try" in
15796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797   *) ac_try_echo=$ac_try;;
15798 esac
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800   (eval "$ac_link") 2>conftest.er1
15801   ac_status=$?
15802   grep -v '^ *+' conftest.er1 >conftest.err
15803   rm -f conftest.er1
15804   cat conftest.err >&5
15805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806   (exit $ac_status); } && {
15807          test -z "$ac_c_werror_flag" ||
15808          test ! -s conftest.err
15809        } && test -s conftest$ac_exeext &&
15810        $as_test_x conftest$ac_exeext; then
15811   ac_cv_lib_net_main=yes
15812 else
15813   echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15815
15816         ac_cv_lib_net_main=no
15817 fi
15818
15819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15820       conftest$ac_exeext conftest.$ac_ext
15821 LIBS=$ac_check_lib_save_LIBS
15822 fi
15823 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15824 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15825 if test $ac_cv_lib_net_main = yes; then
15826   cat >>confdefs.h <<_ACEOF
15827 #define HAVE_LIBNET 1
15828 _ACEOF
15829
15830   LIBS="-lnet $LIBS"
15831
15832 fi
15833
15834
15835 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15836 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15837 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15838   echo $ECHO_N "(cached) $ECHO_C" >&6
15839 else
15840   ac_check_lib_save_LIBS=$LIBS
15841 LIBS="-lnsl_s  $LIBS"
15842 cat >conftest.$ac_ext <<_ACEOF
15843 /* confdefs.h.  */
15844 _ACEOF
15845 cat confdefs.h >>conftest.$ac_ext
15846 cat >>conftest.$ac_ext <<_ACEOF
15847 /* end confdefs.h.  */
15848
15849
15850 int
15851 main ()
15852 {
15853 return main ();
15854   ;
15855   return 0;
15856 }
15857 _ACEOF
15858 rm -f conftest.$ac_objext conftest$ac_exeext
15859 if { (ac_try="$ac_link"
15860 case "(($ac_try" in
15861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862   *) ac_try_echo=$ac_try;;
15863 esac
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865   (eval "$ac_link") 2>conftest.er1
15866   ac_status=$?
15867   grep -v '^ *+' conftest.er1 >conftest.err
15868   rm -f conftest.er1
15869   cat conftest.err >&5
15870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871   (exit $ac_status); } && {
15872          test -z "$ac_c_werror_flag" ||
15873          test ! -s conftest.err
15874        } && test -s conftest$ac_exeext &&
15875        $as_test_x conftest$ac_exeext; then
15876   ac_cv_lib_nsl_s_main=yes
15877 else
15878   echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15880
15881         ac_cv_lib_nsl_s_main=no
15882 fi
15883
15884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15885       conftest$ac_exeext conftest.$ac_ext
15886 LIBS=$ac_check_lib_save_LIBS
15887 fi
15888 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15889 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15890 if test $ac_cv_lib_nsl_s_main = yes; then
15891   cat >>confdefs.h <<_ACEOF
15892 #define HAVE_LIBNSL_S 1
15893 _ACEOF
15894
15895   LIBS="-lnsl_s $LIBS"
15896
15897 fi
15898
15899
15900 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15901 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15902 if test "${ac_cv_lib_nsl_main+set}" = set; then
15903   echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905   ac_check_lib_save_LIBS=$LIBS
15906 LIBS="-lnsl  $LIBS"
15907 cat >conftest.$ac_ext <<_ACEOF
15908 /* confdefs.h.  */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h.  */
15913
15914
15915 int
15916 main ()
15917 {
15918 return main ();
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 rm -f conftest.$ac_objext conftest$ac_exeext
15924 if { (ac_try="$ac_link"
15925 case "(($ac_try" in
15926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927   *) ac_try_echo=$ac_try;;
15928 esac
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930   (eval "$ac_link") 2>conftest.er1
15931   ac_status=$?
15932   grep -v '^ *+' conftest.er1 >conftest.err
15933   rm -f conftest.er1
15934   cat conftest.err >&5
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); } && {
15937          test -z "$ac_c_werror_flag" ||
15938          test ! -s conftest.err
15939        } && test -s conftest$ac_exeext &&
15940        $as_test_x conftest$ac_exeext; then
15941   ac_cv_lib_nsl_main=yes
15942 else
15943   echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15945
15946         ac_cv_lib_nsl_main=no
15947 fi
15948
15949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15950       conftest$ac_exeext conftest.$ac_ext
15951 LIBS=$ac_check_lib_save_LIBS
15952 fi
15953 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15954 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15955 if test $ac_cv_lib_nsl_main = yes; then
15956   cat >>confdefs.h <<_ACEOF
15957 #define HAVE_LIBNSL 1
15958 _ACEOF
15959
15960   LIBS="-lnsl $LIBS"
15961
15962 fi
15963
15964
15965 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15966 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15967 if test "${ac_cv_lib_inet_socket+set}" = set; then
15968   echo $ECHO_N "(cached) $ECHO_C" >&6
15969 else
15970   ac_check_lib_save_LIBS=$LIBS
15971 LIBS="-linet  $LIBS"
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978
15979 /* Override any GCC internal prototype to avoid an error.
15980    Use char because int might match the return type of a GCC
15981    builtin and then its argument prototype would still apply.  */
15982 #ifdef __cplusplus
15983 extern "C"
15984 #endif
15985 char socket ();
15986 int
15987 main ()
15988 {
15989 return socket ();
15990   ;
15991   return 0;
15992 }
15993 _ACEOF
15994 rm -f conftest.$ac_objext conftest$ac_exeext
15995 if { (ac_try="$ac_link"
15996 case "(($ac_try" in
15997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998   *) ac_try_echo=$ac_try;;
15999 esac
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001   (eval "$ac_link") 2>conftest.er1
16002   ac_status=$?
16003   grep -v '^ *+' conftest.er1 >conftest.err
16004   rm -f conftest.er1
16005   cat conftest.err >&5
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); } && {
16008          test -z "$ac_c_werror_flag" ||
16009          test ! -s conftest.err
16010        } && test -s conftest$ac_exeext &&
16011        $as_test_x conftest$ac_exeext; then
16012   ac_cv_lib_inet_socket=yes
16013 else
16014   echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16016
16017         ac_cv_lib_inet_socket=no
16018 fi
16019
16020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16021       conftest$ac_exeext conftest.$ac_ext
16022 LIBS=$ac_check_lib_save_LIBS
16023 fi
16024 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16025 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16026 if test $ac_cv_lib_inet_socket = yes; then
16027   cat >>confdefs.h <<_ACEOF
16028 #define HAVE_LIBINET 1
16029 _ACEOF
16030
16031   LIBS="-linet $LIBS"
16032
16033 fi
16034
16035
16036 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
16037 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
16038 if test "${ac_cv_lib_gen_main+set}" = set; then
16039   echo $ECHO_N "(cached) $ECHO_C" >&6
16040 else
16041   ac_check_lib_save_LIBS=$LIBS
16042 LIBS="-lgen  $LIBS"
16043 cat >conftest.$ac_ext <<_ACEOF
16044 /* confdefs.h.  */
16045 _ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h.  */
16049
16050
16051 int
16052 main ()
16053 {
16054 return main ();
16055   ;
16056   return 0;
16057 }
16058 _ACEOF
16059 rm -f conftest.$ac_objext conftest$ac_exeext
16060 if { (ac_try="$ac_link"
16061 case "(($ac_try" in
16062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063   *) ac_try_echo=$ac_try;;
16064 esac
16065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066   (eval "$ac_link") 2>conftest.er1
16067   ac_status=$?
16068   grep -v '^ *+' conftest.er1 >conftest.err
16069   rm -f conftest.er1
16070   cat conftest.err >&5
16071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072   (exit $ac_status); } && {
16073          test -z "$ac_c_werror_flag" ||
16074          test ! -s conftest.err
16075        } && test -s conftest$ac_exeext &&
16076        $as_test_x conftest$ac_exeext; then
16077   ac_cv_lib_gen_main=yes
16078 else
16079   echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.$ac_ext >&5
16081
16082         ac_cv_lib_gen_main=no
16083 fi
16084
16085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16086       conftest$ac_exeext conftest.$ac_ext
16087 LIBS=$ac_check_lib_save_LIBS
16088 fi
16089 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
16090 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
16091 if test $ac_cv_lib_gen_main = yes; then
16092   cat >>confdefs.h <<_ACEOF
16093 #define HAVE_LIBGEN 1
16094 _ACEOF
16095
16096   LIBS="-lgen $LIBS"
16097
16098 fi
16099
16100
16101 fi
16102
16103
16104 { echo "$as_me:$LINENO: checking for select" >&5
16105 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
16106 if test "${ac_cv_func_select+set}" = set; then
16107   echo $ECHO_N "(cached) $ECHO_C" >&6
16108 else
16109   cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h.  */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h.  */
16115 /* Define select to an innocuous variant, in case <limits.h> declares select.
16116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16117 #define select innocuous_select
16118
16119 /* System header to define __stub macros and hopefully few prototypes,
16120     which can conflict with char select (); below.
16121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16122     <limits.h> exists even on freestanding compilers.  */
16123
16124 #ifdef __STDC__
16125 # include <limits.h>
16126 #else
16127 # include <assert.h>
16128 #endif
16129
16130 #undef select
16131
16132 /* Override any GCC internal prototype to avoid an error.
16133    Use char because int might match the return type of a GCC
16134    builtin and then its argument prototype would still apply.  */
16135 #ifdef __cplusplus
16136 extern "C"
16137 #endif
16138 char select ();
16139 /* The GNU C library defines this for functions which it implements
16140     to always fail with ENOSYS.  Some functions are actually named
16141     something starting with __ and the normal name is an alias.  */
16142 #if defined __stub_select || defined __stub___select
16143 choke me
16144 #endif
16145
16146 int
16147 main ()
16148 {
16149 return select ();
16150   ;
16151   return 0;
16152 }
16153 _ACEOF
16154 rm -f conftest.$ac_objext conftest$ac_exeext
16155 if { (ac_try="$ac_link"
16156 case "(($ac_try" in
16157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158   *) ac_try_echo=$ac_try;;
16159 esac
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161   (eval "$ac_link") 2>conftest.er1
16162   ac_status=$?
16163   grep -v '^ *+' conftest.er1 >conftest.err
16164   rm -f conftest.er1
16165   cat conftest.err >&5
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); } && {
16168          test -z "$ac_c_werror_flag" ||
16169          test ! -s conftest.err
16170        } && test -s conftest$ac_exeext &&
16171        $as_test_x conftest$ac_exeext; then
16172   ac_cv_func_select=yes
16173 else
16174   echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16176
16177         ac_cv_func_select=no
16178 fi
16179
16180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16181       conftest$ac_exeext conftest.$ac_ext
16182 fi
16183 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16184 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16185 if test $ac_cv_func_select = yes; then
16186   :
16187 else
16188   { { echo "$as_me:$LINENO: error: select() required." >&5
16189 echo "$as_me: error: select() required." >&2;}
16190    { (exit 1); exit 1; }; }
16191 fi
16192
16193
16194 if test "${ac_cv_header_winsock_h}" != yes; then
16195
16196
16197 for ac_header in sys/select.h sys/socket.h
16198 do
16199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16201   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16204   echo $ECHO_N "(cached) $ECHO_C" >&6
16205 fi
16206 ac_res=`eval echo '${'$as_ac_Header'}'`
16207                { echo "$as_me:$LINENO: result: $ac_res" >&5
16208 echo "${ECHO_T}$ac_res" >&6; }
16209 else
16210   # Is the header compilable?
16211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16213 cat >conftest.$ac_ext <<_ACEOF
16214 /* confdefs.h.  */
16215 _ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h.  */
16219 $ac_includes_default
16220 #include <$ac_header>
16221 _ACEOF
16222 rm -f conftest.$ac_objext
16223 if { (ac_try="$ac_compile"
16224 case "(($ac_try" in
16225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226   *) ac_try_echo=$ac_try;;
16227 esac
16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229   (eval "$ac_compile") 2>conftest.er1
16230   ac_status=$?
16231   grep -v '^ *+' conftest.er1 >conftest.err
16232   rm -f conftest.er1
16233   cat conftest.err >&5
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); } && {
16236          test -z "$ac_c_werror_flag" ||
16237          test ! -s conftest.err
16238        } && test -s conftest.$ac_objext; then
16239   ac_header_compiler=yes
16240 else
16241   echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.$ac_ext >&5
16243
16244         ac_header_compiler=no
16245 fi
16246
16247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16249 echo "${ECHO_T}$ac_header_compiler" >&6; }
16250
16251 # Is the header present?
16252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16254 cat >conftest.$ac_ext <<_ACEOF
16255 /* confdefs.h.  */
16256 _ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h.  */
16260 #include <$ac_header>
16261 _ACEOF
16262 if { (ac_try="$ac_cpp conftest.$ac_ext"
16263 case "(($ac_try" in
16264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16265   *) ac_try_echo=$ac_try;;
16266 esac
16267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16269   ac_status=$?
16270   grep -v '^ *+' conftest.er1 >conftest.err
16271   rm -f conftest.er1
16272   cat conftest.err >&5
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); } >/dev/null && {
16275          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16276          test ! -s conftest.err
16277        }; then
16278   ac_header_preproc=yes
16279 else
16280   echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16282
16283   ac_header_preproc=no
16284 fi
16285
16286 rm -f conftest.err conftest.$ac_ext
16287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16288 echo "${ECHO_T}$ac_header_preproc" >&6; }
16289
16290 # So?  What about this header?
16291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16292   yes:no: )
16293     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16297     ac_header_preproc=yes
16298     ;;
16299   no:yes:* )
16300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16302     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16303 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16304     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16306     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16307 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16310     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16312     ( cat <<\_ASBOX
16313 ## --------------------------------------------- ##
16314 ## Report this to <http://www.openldap.org/its/> ##
16315 ## --------------------------------------------- ##
16316 _ASBOX
16317      ) | sed "s/^/$as_me: WARNING:     /" >&2
16318     ;;
16319 esac
16320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16323   echo $ECHO_N "(cached) $ECHO_C" >&6
16324 else
16325   eval "$as_ac_Header=\$ac_header_preproc"
16326 fi
16327 ac_res=`eval echo '${'$as_ac_Header'}'`
16328                { echo "$as_me:$LINENO: result: $ac_res" >&5
16329 echo "${ECHO_T}$ac_res" >&6; }
16330
16331 fi
16332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16333   cat >>confdefs.h <<_ACEOF
16334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16335 _ACEOF
16336
16337 fi
16338
16339 done
16340
16341 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16342 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16343 if test "${ac_cv_func_select_args+set}" = set; then
16344   echo $ECHO_N "(cached) $ECHO_C" >&6
16345 else
16346   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16347  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16348   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16349    cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h.  */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h.  */
16355 $ac_includes_default
16356 #ifdef HAVE_SYS_SELECT_H
16357 # include <sys/select.h>
16358 #endif
16359 #ifdef HAVE_SYS_SOCKET_H
16360 # include <sys/socket.h>
16361 #endif
16362
16363 int
16364 main ()
16365 {
16366 extern int select ($ac_arg1,
16367                                             $ac_arg234, $ac_arg234, $ac_arg234,
16368                                             $ac_arg5);
16369   ;
16370   return 0;
16371 }
16372 _ACEOF
16373 rm -f conftest.$ac_objext
16374 if { (ac_try="$ac_compile"
16375 case "(($ac_try" in
16376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377   *) ac_try_echo=$ac_try;;
16378 esac
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380   (eval "$ac_compile") 2>conftest.er1
16381   ac_status=$?
16382   grep -v '^ *+' conftest.er1 >conftest.err
16383   rm -f conftest.er1
16384   cat conftest.err >&5
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); } && {
16387          test -z "$ac_c_werror_flag" ||
16388          test ! -s conftest.err
16389        } && test -s conftest.$ac_objext; then
16390   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16391 else
16392   echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16394
16395
16396 fi
16397
16398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399   done
16400  done
16401 done
16402 # Provide a safe default value.
16403 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16404
16405 fi
16406 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16407 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16408 ac_save_IFS=$IFS; IFS=','
16409 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16410 IFS=$ac_save_IFS
16411 shift
16412
16413 cat >>confdefs.h <<_ACEOF
16414 #define SELECT_TYPE_ARG1 $1
16415 _ACEOF
16416
16417
16418 cat >>confdefs.h <<_ACEOF
16419 #define SELECT_TYPE_ARG234 ($2)
16420 _ACEOF
16421
16422
16423 cat >>confdefs.h <<_ACEOF
16424 #define SELECT_TYPE_ARG5 ($3)
16425 _ACEOF
16426
16427 rm -f conftest*
16428
16429 fi
16430
16431
16432
16433 for ac_func in poll
16434 do
16435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16439   echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441   cat >conftest.$ac_ext <<_ACEOF
16442 /* confdefs.h.  */
16443 _ACEOF
16444 cat confdefs.h >>conftest.$ac_ext
16445 cat >>conftest.$ac_ext <<_ACEOF
16446 /* end confdefs.h.  */
16447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16449 #define $ac_func innocuous_$ac_func
16450
16451 /* System header to define __stub macros and hopefully few prototypes,
16452     which can conflict with char $ac_func (); below.
16453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16454     <limits.h> exists even on freestanding compilers.  */
16455
16456 #ifdef __STDC__
16457 # include <limits.h>
16458 #else
16459 # include <assert.h>
16460 #endif
16461
16462 #undef $ac_func
16463
16464 /* Override any GCC internal prototype to avoid an error.
16465    Use char because int might match the return type of a GCC
16466    builtin and then its argument prototype would still apply.  */
16467 #ifdef __cplusplus
16468 extern "C"
16469 #endif
16470 char $ac_func ();
16471 /* The GNU C library defines this for functions which it implements
16472     to always fail with ENOSYS.  Some functions are actually named
16473     something starting with __ and the normal name is an alias.  */
16474 #if defined __stub_$ac_func || defined __stub___$ac_func
16475 choke me
16476 #endif
16477
16478 int
16479 main ()
16480 {
16481 return $ac_func ();
16482   ;
16483   return 0;
16484 }
16485 _ACEOF
16486 rm -f conftest.$ac_objext conftest$ac_exeext
16487 if { (ac_try="$ac_link"
16488 case "(($ac_try" in
16489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490   *) ac_try_echo=$ac_try;;
16491 esac
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493   (eval "$ac_link") 2>conftest.er1
16494   ac_status=$?
16495   grep -v '^ *+' conftest.er1 >conftest.err
16496   rm -f conftest.er1
16497   cat conftest.err >&5
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); } && {
16500          test -z "$ac_c_werror_flag" ||
16501          test ! -s conftest.err
16502        } && test -s conftest$ac_exeext &&
16503        $as_test_x conftest$ac_exeext; then
16504   eval "$as_ac_var=yes"
16505 else
16506   echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16508
16509         eval "$as_ac_var=no"
16510 fi
16511
16512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16513       conftest$ac_exeext conftest.$ac_ext
16514 fi
16515 ac_res=`eval echo '${'$as_ac_var'}'`
16516                { echo "$as_me:$LINENO: result: $ac_res" >&5
16517 echo "${ECHO_T}$ac_res" >&6; }
16518 if test `eval echo '${'$as_ac_var'}'` = yes; then
16519   cat >>confdefs.h <<_ACEOF
16520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16521 _ACEOF
16522
16523 fi
16524 done
16525
16526 if test $ac_cv_func_poll = yes; then
16527
16528
16529 for ac_header in poll.h sys/poll.h
16530 do
16531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16533   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16536   echo $ECHO_N "(cached) $ECHO_C" >&6
16537 fi
16538 ac_res=`eval echo '${'$as_ac_Header'}'`
16539                { echo "$as_me:$LINENO: result: $ac_res" >&5
16540 echo "${ECHO_T}$ac_res" >&6; }
16541 else
16542   # Is the header compilable?
16543 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16545 cat >conftest.$ac_ext <<_ACEOF
16546 /* confdefs.h.  */
16547 _ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h.  */
16551 $ac_includes_default
16552 #include <$ac_header>
16553 _ACEOF
16554 rm -f conftest.$ac_objext
16555 if { (ac_try="$ac_compile"
16556 case "(($ac_try" in
16557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558   *) ac_try_echo=$ac_try;;
16559 esac
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561   (eval "$ac_compile") 2>conftest.er1
16562   ac_status=$?
16563   grep -v '^ *+' conftest.er1 >conftest.err
16564   rm -f conftest.er1
16565   cat conftest.err >&5
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); } && {
16568          test -z "$ac_c_werror_flag" ||
16569          test ! -s conftest.err
16570        } && test -s conftest.$ac_objext; then
16571   ac_header_compiler=yes
16572 else
16573   echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576         ac_header_compiler=no
16577 fi
16578
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16581 echo "${ECHO_T}$ac_header_compiler" >&6; }
16582
16583 # Is the header present?
16584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16586 cat >conftest.$ac_ext <<_ACEOF
16587 /* confdefs.h.  */
16588 _ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h.  */
16592 #include <$ac_header>
16593 _ACEOF
16594 if { (ac_try="$ac_cpp conftest.$ac_ext"
16595 case "(($ac_try" in
16596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597   *) ac_try_echo=$ac_try;;
16598 esac
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16601   ac_status=$?
16602   grep -v '^ *+' conftest.er1 >conftest.err
16603   rm -f conftest.er1
16604   cat conftest.err >&5
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); } >/dev/null && {
16607          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16608          test ! -s conftest.err
16609        }; then
16610   ac_header_preproc=yes
16611 else
16612   echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615   ac_header_preproc=no
16616 fi
16617
16618 rm -f conftest.err conftest.$ac_ext
16619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16620 echo "${ECHO_T}$ac_header_preproc" >&6; }
16621
16622 # So?  What about this header?
16623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16624   yes:no: )
16625     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16629     ac_header_preproc=yes
16630     ;;
16631   no:yes:* )
16632     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16634     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16635 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16636     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16638     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16639 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16642     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16644     ( cat <<\_ASBOX
16645 ## --------------------------------------------- ##
16646 ## Report this to <http://www.openldap.org/its/> ##
16647 ## --------------------------------------------- ##
16648 _ASBOX
16649      ) | sed "s/^/$as_me: WARNING:     /" >&2
16650     ;;
16651 esac
16652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16655   echo $ECHO_N "(cached) $ECHO_C" >&6
16656 else
16657   eval "$as_ac_Header=\$ac_header_preproc"
16658 fi
16659 ac_res=`eval echo '${'$as_ac_Header'}'`
16660                { echo "$as_me:$LINENO: result: $ac_res" >&5
16661 echo "${ECHO_T}$ac_res" >&6; }
16662
16663 fi
16664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16665   cat >>confdefs.h <<_ACEOF
16666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16667 _ACEOF
16668
16669 fi
16670
16671 done
16672
16673 fi
16674
16675
16676 for ac_header in sys/epoll.h
16677 do
16678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16680   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 fi
16685 ac_res=`eval echo '${'$as_ac_Header'}'`
16686                { echo "$as_me:$LINENO: result: $ac_res" >&5
16687 echo "${ECHO_T}$ac_res" >&6; }
16688 else
16689   # Is the header compilable?
16690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16692 cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h.  */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h.  */
16698 $ac_includes_default
16699 #include <$ac_header>
16700 _ACEOF
16701 rm -f conftest.$ac_objext
16702 if { (ac_try="$ac_compile"
16703 case "(($ac_try" in
16704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705   *) ac_try_echo=$ac_try;;
16706 esac
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708   (eval "$ac_compile") 2>conftest.er1
16709   ac_status=$?
16710   grep -v '^ *+' conftest.er1 >conftest.err
16711   rm -f conftest.er1
16712   cat conftest.err >&5
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); } && {
16715          test -z "$ac_c_werror_flag" ||
16716          test ! -s conftest.err
16717        } && test -s conftest.$ac_objext; then
16718   ac_header_compiler=yes
16719 else
16720   echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16722
16723         ac_header_compiler=no
16724 fi
16725
16726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16728 echo "${ECHO_T}$ac_header_compiler" >&6; }
16729
16730 # Is the header present?
16731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16733 cat >conftest.$ac_ext <<_ACEOF
16734 /* confdefs.h.  */
16735 _ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h.  */
16739 #include <$ac_header>
16740 _ACEOF
16741 if { (ac_try="$ac_cpp conftest.$ac_ext"
16742 case "(($ac_try" in
16743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744   *) ac_try_echo=$ac_try;;
16745 esac
16746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16748   ac_status=$?
16749   grep -v '^ *+' conftest.er1 >conftest.err
16750   rm -f conftest.er1
16751   cat conftest.err >&5
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); } >/dev/null && {
16754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16755          test ! -s conftest.err
16756        }; then
16757   ac_header_preproc=yes
16758 else
16759   echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16761
16762   ac_header_preproc=no
16763 fi
16764
16765 rm -f conftest.err conftest.$ac_ext
16766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16767 echo "${ECHO_T}$ac_header_preproc" >&6; }
16768
16769 # So?  What about this header?
16770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16771   yes:no: )
16772     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16776     ac_header_preproc=yes
16777     ;;
16778   no:yes:* )
16779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16781     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16782 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16783     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16785     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16786 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16789     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16791     ( cat <<\_ASBOX
16792 ## --------------------------------------------- ##
16793 ## Report this to <http://www.openldap.org/its/> ##
16794 ## --------------------------------------------- ##
16795 _ASBOX
16796      ) | sed "s/^/$as_me: WARNING:     /" >&2
16797     ;;
16798 esac
16799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16802   echo $ECHO_N "(cached) $ECHO_C" >&6
16803 else
16804   eval "$as_ac_Header=\$ac_header_preproc"
16805 fi
16806 ac_res=`eval echo '${'$as_ac_Header'}'`
16807                { echo "$as_me:$LINENO: result: $ac_res" >&5
16808 echo "${ECHO_T}$ac_res" >&6; }
16809
16810 fi
16811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16812   cat >>confdefs.h <<_ACEOF
16813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16814 _ACEOF
16815
16816 fi
16817
16818 done
16819
16820 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16821         { echo "$as_me:$LINENO: checking for epoll system call" >&5
16822 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16823         if test "$cross_compiling" = yes; then
16824   { echo "$as_me:$LINENO: result: no" >&5
16825 echo "${ECHO_T}no" >&6; }
16826 else
16827   cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833 int main(int argc, char **argv)
16834 {
16835         int epfd = epoll_create(256);
16836         exit (epfd == -1 ? 1 : 0);
16837 }
16838 _ACEOF
16839 rm -f conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843   *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846   (eval "$ac_link") 2>&5
16847   ac_status=$?
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16850   { (case "(($ac_try" in
16851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852   *) ac_try_echo=$ac_try;;
16853 esac
16854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855   (eval "$ac_try") 2>&5
16856   ac_status=$?
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); }; }; then
16859   { echo "$as_me:$LINENO: result: yes" >&5
16860 echo "${ECHO_T}yes" >&6; }
16861
16862 cat >>confdefs.h <<\_ACEOF
16863 #define HAVE_EPOLL 1
16864 _ACEOF
16865
16866 else
16867   echo "$as_me: program exited with status $ac_status" >&5
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16870
16871 ( exit $ac_status )
16872 { echo "$as_me:$LINENO: result: no" >&5
16873 echo "${ECHO_T}no" >&6; }
16874 fi
16875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16876 fi
16877
16878
16879 fi
16880
16881
16882 for ac_header in sys/devpoll.h
16883 do
16884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16886   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 fi
16891 ac_res=`eval echo '${'$as_ac_Header'}'`
16892                { echo "$as_me:$LINENO: result: $ac_res" >&5
16893 echo "${ECHO_T}$ac_res" >&6; }
16894 else
16895   # Is the header compilable?
16896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h.  */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h.  */
16904 $ac_includes_default
16905 #include <$ac_header>
16906 _ACEOF
16907 rm -f conftest.$ac_objext
16908 if { (ac_try="$ac_compile"
16909 case "(($ac_try" in
16910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911   *) ac_try_echo=$ac_try;;
16912 esac
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914   (eval "$ac_compile") 2>conftest.er1
16915   ac_status=$?
16916   grep -v '^ *+' conftest.er1 >conftest.err
16917   rm -f conftest.er1
16918   cat conftest.err >&5
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); } && {
16921          test -z "$ac_c_werror_flag" ||
16922          test ! -s conftest.err
16923        } && test -s conftest.$ac_objext; then
16924   ac_header_compiler=yes
16925 else
16926   echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16928
16929         ac_header_compiler=no
16930 fi
16931
16932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16934 echo "${ECHO_T}$ac_header_compiler" >&6; }
16935
16936 # Is the header present?
16937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16939 cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h.  */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h.  */
16945 #include <$ac_header>
16946 _ACEOF
16947 if { (ac_try="$ac_cpp conftest.$ac_ext"
16948 case "(($ac_try" in
16949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950   *) ac_try_echo=$ac_try;;
16951 esac
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16954   ac_status=$?
16955   grep -v '^ *+' conftest.er1 >conftest.err
16956   rm -f conftest.er1
16957   cat conftest.err >&5
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); } >/dev/null && {
16960          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16961          test ! -s conftest.err
16962        }; then
16963   ac_header_preproc=yes
16964 else
16965   echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16967
16968   ac_header_preproc=no
16969 fi
16970
16971 rm -f conftest.err conftest.$ac_ext
16972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16973 echo "${ECHO_T}$ac_header_preproc" >&6; }
16974
16975 # So?  What about this header?
16976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16977   yes:no: )
16978     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16982     ac_header_preproc=yes
16983     ;;
16984   no:yes:* )
16985     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16987     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16988 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16989     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16991     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16992 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16995     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16997     ( cat <<\_ASBOX
16998 ## --------------------------------------------- ##
16999 ## Report this to <http://www.openldap.org/its/> ##
17000 ## --------------------------------------------- ##
17001 _ASBOX
17002      ) | sed "s/^/$as_me: WARNING:     /" >&2
17003     ;;
17004 esac
17005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17008   echo $ECHO_N "(cached) $ECHO_C" >&6
17009 else
17010   eval "$as_ac_Header=\$ac_header_preproc"
17011 fi
17012 ac_res=`eval echo '${'$as_ac_Header'}'`
17013                { echo "$as_me:$LINENO: result: $ac_res" >&5
17014 echo "${ECHO_T}$ac_res" >&6; }
17015
17016 fi
17017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17018   cat >>confdefs.h <<_ACEOF
17019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17020 _ACEOF
17021
17022 fi
17023
17024 done
17025
17026 if test "${ac_cv_header_sys_devpoll_h}" = yes \
17027                 -a "${ac_cv_header_poll_h}" = yes ; \
17028 then
17029         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
17030 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
17031         if test "$cross_compiling" = yes; then
17032   { echo "$as_me:$LINENO: result: no" >&5
17033 echo "${ECHO_T}no" >&6; }
17034 else
17035   cat >conftest.$ac_ext <<_ACEOF
17036 /* confdefs.h.  */
17037 _ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h.  */
17041 int main(int argc, char **argv)
17042 {
17043         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
17044         exit (devpollfd == -1 ? 1 : 0);
17045 }
17046 _ACEOF
17047 rm -f conftest$ac_exeext
17048 if { (ac_try="$ac_link"
17049 case "(($ac_try" in
17050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051   *) ac_try_echo=$ac_try;;
17052 esac
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054   (eval "$ac_link") 2>&5
17055   ac_status=$?
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17058   { (case "(($ac_try" in
17059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060   *) ac_try_echo=$ac_try;;
17061 esac
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063   (eval "$ac_try") 2>&5
17064   ac_status=$?
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); }; }; then
17067   { echo "$as_me:$LINENO: result: yes" >&5
17068 echo "${ECHO_T}yes" >&6; }
17069
17070 cat >>confdefs.h <<\_ACEOF
17071 #define HAVE_DEVPOLL 1
17072 _ACEOF
17073
17074 else
17075   echo "$as_me: program exited with status $ac_status" >&5
17076 echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17078
17079 ( exit $ac_status )
17080 { echo "$as_me:$LINENO: result: no" >&5
17081 echo "${ECHO_T}no" >&6; }
17082 fi
17083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17084 fi
17085
17086
17087 fi
17088
17089 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17090 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17091 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17092   echo $ECHO_N "(cached) $ECHO_C" >&6
17093 else
17094
17095         cat >conftest.$ac_ext <<_ACEOF
17096 /* confdefs.h.  */
17097 _ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h.  */
17101
17102 #include <stdio.h>
17103 #include <sys/types.h>
17104 #include <errno.h>
17105 #ifdef _WIN32
17106 #include <stdlib.h>
17107 #endif
17108 int
17109 main ()
17110 {
17111 char *c = (char *) *sys_errlist
17112   ;
17113   return 0;
17114 }
17115 _ACEOF
17116 rm -f conftest.$ac_objext
17117 if { (ac_try="$ac_compile"
17118 case "(($ac_try" in
17119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120   *) ac_try_echo=$ac_try;;
17121 esac
17122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17123   (eval "$ac_compile") 2>conftest.er1
17124   ac_status=$?
17125   grep -v '^ *+' conftest.er1 >conftest.err
17126   rm -f conftest.er1
17127   cat conftest.err >&5
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); } && {
17130          test -z "$ac_c_werror_flag" ||
17131          test ! -s conftest.err
17132        } && test -s conftest.$ac_objext; then
17133   ol_cv_dcl_sys_errlist=yes
17134         ol_cv_have_sys_errlist=yes
17135 else
17136   echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17138
17139         ol_cv_dcl_sys_errlist=no
17140 fi
17141
17142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17143 fi
17144 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17145 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17146 #
17147 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17148 if test $ol_cv_dcl_sys_errlist = no ; then
17149
17150 cat >>confdefs.h <<\_ACEOF
17151 #define DECL_SYS_ERRLIST 1
17152 _ACEOF
17153
17154
17155         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17156 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17157 if test "${ol_cv_have_sys_errlist+set}" = set; then
17158   echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160
17161                 cat >conftest.$ac_ext <<_ACEOF
17162 /* confdefs.h.  */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h.  */
17167 #include <errno.h>
17168 int
17169 main ()
17170 {
17171 char *c = (char *) *sys_errlist
17172   ;
17173   return 0;
17174 }
17175 _ACEOF
17176 rm -f conftest.$ac_objext conftest$ac_exeext
17177 if { (ac_try="$ac_link"
17178 case "(($ac_try" in
17179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180   *) ac_try_echo=$ac_try;;
17181 esac
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183   (eval "$ac_link") 2>conftest.er1
17184   ac_status=$?
17185   grep -v '^ *+' conftest.er1 >conftest.err
17186   rm -f conftest.er1
17187   cat conftest.err >&5
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); } && {
17190          test -z "$ac_c_werror_flag" ||
17191          test ! -s conftest.err
17192        } && test -s conftest$ac_exeext &&
17193        $as_test_x conftest$ac_exeext; then
17194   ol_cv_have_sys_errlist=yes
17195 else
17196   echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17198
17199         ol_cv_have_sys_errlist=no
17200 fi
17201
17202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17203       conftest$ac_exeext conftest.$ac_ext
17204 fi
17205 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17206 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17207 fi
17208 if test $ol_cv_have_sys_errlist = yes ; then
17209
17210 cat >>confdefs.h <<\_ACEOF
17211 #define HAVE_SYS_ERRLIST 1
17212 _ACEOF
17213
17214 fi
17215
17216
17217 for ac_func in strerror strerror_r
17218 do
17219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17223   echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225   cat >conftest.$ac_ext <<_ACEOF
17226 /* confdefs.h.  */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h.  */
17231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17233 #define $ac_func innocuous_$ac_func
17234
17235 /* System header to define __stub macros and hopefully few prototypes,
17236     which can conflict with char $ac_func (); below.
17237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17238     <limits.h> exists even on freestanding compilers.  */
17239
17240 #ifdef __STDC__
17241 # include <limits.h>
17242 #else
17243 # include <assert.h>
17244 #endif
17245
17246 #undef $ac_func
17247
17248 /* Override any GCC internal prototype to avoid an error.
17249    Use char because int might match the return type of a GCC
17250    builtin and then its argument prototype would still apply.  */
17251 #ifdef __cplusplus
17252 extern "C"
17253 #endif
17254 char $ac_func ();
17255 /* The GNU C library defines this for functions which it implements
17256     to always fail with ENOSYS.  Some functions are actually named
17257     something starting with __ and the normal name is an alias.  */
17258 #if defined __stub_$ac_func || defined __stub___$ac_func
17259 choke me
17260 #endif
17261
17262 int
17263 main ()
17264 {
17265 return $ac_func ();
17266   ;
17267   return 0;
17268 }
17269 _ACEOF
17270 rm -f conftest.$ac_objext conftest$ac_exeext
17271 if { (ac_try="$ac_link"
17272 case "(($ac_try" in
17273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274   *) ac_try_echo=$ac_try;;
17275 esac
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277   (eval "$ac_link") 2>conftest.er1
17278   ac_status=$?
17279   grep -v '^ *+' conftest.er1 >conftest.err
17280   rm -f conftest.er1
17281   cat conftest.err >&5
17282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); } && {
17284          test -z "$ac_c_werror_flag" ||
17285          test ! -s conftest.err
17286        } && test -s conftest$ac_exeext &&
17287        $as_test_x conftest$ac_exeext; then
17288   eval "$as_ac_var=yes"
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293         eval "$as_ac_var=no"
17294 fi
17295
17296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17297       conftest$ac_exeext conftest.$ac_ext
17298 fi
17299 ac_res=`eval echo '${'$as_ac_var'}'`
17300                { echo "$as_me:$LINENO: result: $ac_res" >&5
17301 echo "${ECHO_T}$ac_res" >&6; }
17302 if test `eval echo '${'$as_ac_var'}'` = yes; then
17303   cat >>confdefs.h <<_ACEOF
17304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17305 _ACEOF
17306
17307 fi
17308 done
17309
17310 ol_cv_func_strerror_r=no
17311 if test "${ac_cv_func_strerror_r}" = yes ; then
17312         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17313 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17314 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17315   echo $ECHO_N "(cached) $ECHO_C" >&6
17316 else
17317
17318         cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h.  */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h.  */
17324 #include <string.h>
17325 _ACEOF
17326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17327   $EGREP "strerror_r" >/dev/null 2>&1; then
17328   ol_decl_strerror_r=yes
17329 else
17330   ol_decl_strerror_r=no
17331 fi
17332 rm -f conftest*
17333
17334         if test $ol_decl_strerror_r = yes ; then
17335                 cat >conftest.$ac_ext <<_ACEOF
17336 /* confdefs.h.  */
17337 _ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h.  */
17341 #include <string.h>
17342 int
17343 main ()
17344 {
17345    /* from autoconf 2.59 */
17346                                 char buf[100];
17347                                 char x = *strerror_r (0, buf, sizeof buf);
17348                                 char *p = strerror_r (0, buf, sizeof buf);
17349
17350   ;
17351   return 0;
17352 }
17353 _ACEOF
17354 rm -f conftest.$ac_objext
17355 if { (ac_try="$ac_compile"
17356 case "(($ac_try" in
17357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358   *) ac_try_echo=$ac_try;;
17359 esac
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361   (eval "$ac_compile") 2>conftest.er1
17362   ac_status=$?
17363   grep -v '^ *+' conftest.er1 >conftest.err
17364   rm -f conftest.er1
17365   cat conftest.err >&5
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); } && {
17368          test -z "$ac_c_werror_flag" ||
17369          test ! -s conftest.err
17370        } && test -s conftest.$ac_objext; then
17371   ol_cv_nonposix_strerror_r=yes
17372 else
17373   echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17375
17376         ol_cv_nonposix_strerror_r=no
17377 fi
17378
17379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17380         else
17381                 if test "$cross_compiling" = yes; then
17382   ol_cv_nonposix_strerror=no
17383 else
17384   cat >conftest.$ac_ext <<_ACEOF
17385 /* confdefs.h.  */
17386 _ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h.  */
17390
17391                         main() {
17392                                 char buf[100];
17393                                 buf[0] = 0;
17394                                 strerror_r( 1, buf, sizeof buf );
17395                                 exit( buf[0] == 0 );
17396                         }
17397
17398 _ACEOF
17399 rm -f conftest$ac_exeext
17400 if { (ac_try="$ac_link"
17401 case "(($ac_try" in
17402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403   *) ac_try_echo=$ac_try;;
17404 esac
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406   (eval "$ac_link") 2>&5
17407   ac_status=$?
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17410   { (case "(($ac_try" in
17411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412   *) ac_try_echo=$ac_try;;
17413 esac
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415   (eval "$ac_try") 2>&5
17416   ac_status=$?
17417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418   (exit $ac_status); }; }; then
17419   ol_cv_nonposix_strerror_r=yes
17420 else
17421   echo "$as_me: program exited with status $ac_status" >&5
17422 echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17424
17425 ( exit $ac_status )
17426 ol_cv_nonposix_strerror=no
17427 fi
17428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17429 fi
17430
17431
17432         fi
17433
17434 fi
17435 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17436 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17437 if test $ol_cv_nonposix_strerror_r = yes ; then
17438
17439 cat >>confdefs.h <<\_ACEOF
17440 #define HAVE_NONPOSIX_STRERROR_R 1
17441 _ACEOF
17442
17443 fi
17444
17445 elif test "${ac_cv_func_strerror}" = no ; then
17446         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17447 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17448 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17449   echo $ECHO_N "(cached) $ECHO_C" >&6
17450 else
17451
17452         cat >conftest.$ac_ext <<_ACEOF
17453 /* confdefs.h.  */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h.  */
17458
17459 #include <stdio.h>
17460 #include <sys/types.h>
17461 #include <errno.h>
17462 #ifdef _WIN32
17463 #include <stdlib.h>
17464 #endif
17465 int
17466 main ()
17467 {
17468 char *c = (char *) *sys_errlist
17469   ;
17470   return 0;
17471 }
17472 _ACEOF
17473 rm -f conftest.$ac_objext
17474 if { (ac_try="$ac_compile"
17475 case "(($ac_try" in
17476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477   *) ac_try_echo=$ac_try;;
17478 esac
17479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480   (eval "$ac_compile") 2>conftest.er1
17481   ac_status=$?
17482   grep -v '^ *+' conftest.er1 >conftest.err
17483   rm -f conftest.er1
17484   cat conftest.err >&5
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); } && {
17487          test -z "$ac_c_werror_flag" ||
17488          test ! -s conftest.err
17489        } && test -s conftest.$ac_objext; then
17490   ol_cv_dcl_sys_errlist=yes
17491         ol_cv_have_sys_errlist=yes
17492 else
17493   echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17495
17496         ol_cv_dcl_sys_errlist=no
17497 fi
17498
17499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17500 fi
17501 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17502 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17503 #
17504 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17505 if test $ol_cv_dcl_sys_errlist = no ; then
17506
17507 cat >>confdefs.h <<\_ACEOF
17508 #define DECL_SYS_ERRLIST 1
17509 _ACEOF
17510
17511
17512         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17513 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17514 if test "${ol_cv_have_sys_errlist+set}" = set; then
17515   echo $ECHO_N "(cached) $ECHO_C" >&6
17516 else
17517
17518                 cat >conftest.$ac_ext <<_ACEOF
17519 /* confdefs.h.  */
17520 _ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h.  */
17524 #include <errno.h>
17525 int
17526 main ()
17527 {
17528 char *c = (char *) *sys_errlist
17529   ;
17530   return 0;
17531 }
17532 _ACEOF
17533 rm -f conftest.$ac_objext conftest$ac_exeext
17534 if { (ac_try="$ac_link"
17535 case "(($ac_try" in
17536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537   *) ac_try_echo=$ac_try;;
17538 esac
17539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540   (eval "$ac_link") 2>conftest.er1
17541   ac_status=$?
17542   grep -v '^ *+' conftest.er1 >conftest.err
17543   rm -f conftest.er1
17544   cat conftest.err >&5
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); } && {
17547          test -z "$ac_c_werror_flag" ||
17548          test ! -s conftest.err
17549        } && test -s conftest$ac_exeext &&
17550        $as_test_x conftest$ac_exeext; then
17551   ol_cv_have_sys_errlist=yes
17552 else
17553   echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17555
17556         ol_cv_have_sys_errlist=no
17557 fi
17558
17559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17560       conftest$ac_exeext conftest.$ac_ext
17561 fi
17562 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17563 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17564 fi
17565 if test $ol_cv_have_sys_errlist = yes ; then
17566
17567 cat >>confdefs.h <<\_ACEOF
17568 #define HAVE_SYS_ERRLIST 1
17569 _ACEOF
17570
17571 fi
17572
17573 fi
17574
17575
17576
17577 for ac_header in regex.h
17578 do
17579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17583   echo $ECHO_N "(cached) $ECHO_C" >&6
17584 else
17585   cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h.  */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h.  */
17591 $ac_includes_default
17592 #ifdef HAVE_SYS_TYPES_H
17593 #include <sys/types.h>
17594 #endif
17595
17596
17597 #include <$ac_header>
17598 _ACEOF
17599 rm -f conftest.$ac_objext
17600 if { (ac_try="$ac_compile"
17601 case "(($ac_try" in
17602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603   *) ac_try_echo=$ac_try;;
17604 esac
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606   (eval "$ac_compile") 2>conftest.er1
17607   ac_status=$?
17608   grep -v '^ *+' conftest.er1 >conftest.err
17609   rm -f conftest.er1
17610   cat conftest.err >&5
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); } && {
17613          test -z "$ac_c_werror_flag" ||
17614          test ! -s conftest.err
17615        } && test -s conftest.$ac_objext; then
17616   eval "$as_ac_Header=yes"
17617 else
17618   echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621         eval "$as_ac_Header=no"
17622 fi
17623
17624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17625 fi
17626 ac_res=`eval echo '${'$as_ac_Header'}'`
17627                { echo "$as_me:$LINENO: result: $ac_res" >&5
17628 echo "${ECHO_T}$ac_res" >&6; }
17629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17630   cat >>confdefs.h <<_ACEOF
17631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17632 _ACEOF
17633
17634 fi
17635
17636 done
17637
17638
17639 if test "$ac_cv_header_regex_h" != yes ; then
17640         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17641 echo "$as_me: error: POSIX regex.h required." >&2;}
17642    { (exit 1); exit 1; }; }
17643 fi
17644 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17645 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17646 if test "${ac_cv_search_regfree+set}" = set; then
17647   echo $ECHO_N "(cached) $ECHO_C" >&6
17648 else
17649   ac_func_search_save_LIBS=$LIBS
17650 cat >conftest.$ac_ext <<_ACEOF
17651 /* confdefs.h.  */
17652 _ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h.  */
17656
17657 /* Override any GCC internal prototype to avoid an error.
17658    Use char because int might match the return type of a GCC
17659    builtin and then its argument prototype would still apply.  */
17660 #ifdef __cplusplus
17661 extern "C"
17662 #endif
17663 char regfree ();
17664 int
17665 main ()
17666 {
17667 return regfree ();
17668   ;
17669   return 0;
17670 }
17671 _ACEOF
17672 for ac_lib in '' regex gnuregex; do
17673   if test -z "$ac_lib"; then
17674     ac_res="none required"
17675   else
17676     ac_res=-l$ac_lib
17677     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17678   fi
17679   rm -f conftest.$ac_objext conftest$ac_exeext
17680 if { (ac_try="$ac_link"
17681 case "(($ac_try" in
17682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683   *) ac_try_echo=$ac_try;;
17684 esac
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686   (eval "$ac_link") 2>conftest.er1
17687   ac_status=$?
17688   grep -v '^ *+' conftest.er1 >conftest.err
17689   rm -f conftest.er1
17690   cat conftest.err >&5
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); } && {
17693          test -z "$ac_c_werror_flag" ||
17694          test ! -s conftest.err
17695        } && test -s conftest$ac_exeext &&
17696        $as_test_x conftest$ac_exeext; then
17697   ac_cv_search_regfree=$ac_res
17698 else
17699   echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17701
17702
17703 fi
17704
17705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17706       conftest$ac_exeext
17707   if test "${ac_cv_search_regfree+set}" = set; then
17708   break
17709 fi
17710 done
17711 if test "${ac_cv_search_regfree+set}" = set; then
17712   :
17713 else
17714   ac_cv_search_regfree=no
17715 fi
17716 rm conftest.$ac_ext
17717 LIBS=$ac_func_search_save_LIBS
17718 fi
17719 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17720 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17721 ac_res=$ac_cv_search_regfree
17722 if test "$ac_res" != no; then
17723   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17724   :
17725 else
17726   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17727 echo "$as_me: error: POSIX regex required." >&2;}
17728    { (exit 1); exit 1; }; }
17729 fi
17730
17731
17732
17733 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17734 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17735 if test "${ol_cv_c_posix_regex+set}" = set; then
17736   echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738
17739         if test "$cross_compiling" = yes; then
17740   ol_cv_c_posix_regex=cross
17741 else
17742   cat >conftest.$ac_ext <<_ACEOF
17743 /* confdefs.h.  */
17744 _ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h.  */
17748
17749 #include <sys/types.h>
17750 #include <regex.h>
17751 static char *pattern, *string;
17752 main()
17753 {
17754         int rc;
17755         regex_t re;
17756
17757         pattern = "^A";
17758
17759         if(regcomp(&re, pattern, 0)) {
17760                 return -1;
17761         }
17762
17763         string = "ALL MATCH";
17764
17765         rc = regexec(&re, string, 0, (void*)0, 0);
17766
17767         regfree(&re);
17768
17769         return rc;
17770 }
17771 _ACEOF
17772 rm -f conftest$ac_exeext
17773 if { (ac_try="$ac_link"
17774 case "(($ac_try" in
17775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776   *) ac_try_echo=$ac_try;;
17777 esac
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779   (eval "$ac_link") 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17783   { (case "(($ac_try" in
17784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785   *) ac_try_echo=$ac_try;;
17786 esac
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788   (eval "$ac_try") 2>&5
17789   ac_status=$?
17790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791   (exit $ac_status); }; }; then
17792   ol_cv_c_posix_regex=yes
17793 else
17794   echo "$as_me: program exited with status $ac_status" >&5
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17797
17798 ( exit $ac_status )
17799 ol_cv_c_posix_regex=no
17800 fi
17801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17802 fi
17803
17804
17805 fi
17806 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17807 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17808
17809 if test "$ol_cv_c_posix_regex" = no ; then
17810         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17811 echo "$as_me: error: broken POSIX regex!" >&2;}
17812    { (exit 1); exit 1; }; }
17813 fi
17814
17815
17816 have_uuid=no
17817
17818 for ac_header in sys/uuid.h
17819 do
17820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17822   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17825   echo $ECHO_N "(cached) $ECHO_C" >&6
17826 fi
17827 ac_res=`eval echo '${'$as_ac_Header'}'`
17828                { echo "$as_me:$LINENO: result: $ac_res" >&5
17829 echo "${ECHO_T}$ac_res" >&6; }
17830 else
17831   # Is the header compilable?
17832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17834 cat >conftest.$ac_ext <<_ACEOF
17835 /* confdefs.h.  */
17836 _ACEOF
17837 cat confdefs.h >>conftest.$ac_ext
17838 cat >>conftest.$ac_ext <<_ACEOF
17839 /* end confdefs.h.  */
17840 $ac_includes_default
17841 #include <$ac_header>
17842 _ACEOF
17843 rm -f conftest.$ac_objext
17844 if { (ac_try="$ac_compile"
17845 case "(($ac_try" in
17846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847   *) ac_try_echo=$ac_try;;
17848 esac
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850   (eval "$ac_compile") 2>conftest.er1
17851   ac_status=$?
17852   grep -v '^ *+' conftest.er1 >conftest.err
17853   rm -f conftest.er1
17854   cat conftest.err >&5
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); } && {
17857          test -z "$ac_c_werror_flag" ||
17858          test ! -s conftest.err
17859        } && test -s conftest.$ac_objext; then
17860   ac_header_compiler=yes
17861 else
17862   echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17864
17865         ac_header_compiler=no
17866 fi
17867
17868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17870 echo "${ECHO_T}$ac_header_compiler" >&6; }
17871
17872 # Is the header present?
17873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17875 cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h.  */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h.  */
17881 #include <$ac_header>
17882 _ACEOF
17883 if { (ac_try="$ac_cpp conftest.$ac_ext"
17884 case "(($ac_try" in
17885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886   *) ac_try_echo=$ac_try;;
17887 esac
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17890   ac_status=$?
17891   grep -v '^ *+' conftest.er1 >conftest.err
17892   rm -f conftest.er1
17893   cat conftest.err >&5
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); } >/dev/null && {
17896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17897          test ! -s conftest.err
17898        }; then
17899   ac_header_preproc=yes
17900 else
17901   echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17903
17904   ac_header_preproc=no
17905 fi
17906
17907 rm -f conftest.err conftest.$ac_ext
17908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17909 echo "${ECHO_T}$ac_header_preproc" >&6; }
17910
17911 # So?  What about this header?
17912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17913   yes:no: )
17914     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17918     ac_header_preproc=yes
17919     ;;
17920   no:yes:* )
17921     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17923     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17924 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17925     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17927     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17928 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17931     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17933     ( cat <<\_ASBOX
17934 ## --------------------------------------------- ##
17935 ## Report this to <http://www.openldap.org/its/> ##
17936 ## --------------------------------------------- ##
17937 _ASBOX
17938      ) | sed "s/^/$as_me: WARNING:     /" >&2
17939     ;;
17940 esac
17941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17944   echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946   eval "$as_ac_Header=\$ac_header_preproc"
17947 fi
17948 ac_res=`eval echo '${'$as_ac_Header'}'`
17949                { echo "$as_me:$LINENO: result: $ac_res" >&5
17950 echo "${ECHO_T}$ac_res" >&6; }
17951
17952 fi
17953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17954   cat >>confdefs.h <<_ACEOF
17955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17956 _ACEOF
17957
17958 fi
17959
17960 done
17961
17962 if test $ac_cv_header_sys_uuid_h = yes ; then
17963         save_LIBS="$LIBS"
17964         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17965 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17966 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17967   echo $ECHO_N "(cached) $ECHO_C" >&6
17968 else
17969   ac_func_search_save_LIBS=$LIBS
17970 cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h.  */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h.  */
17976
17977 /* Override any GCC internal prototype to avoid an error.
17978    Use char because int might match the return type of a GCC
17979    builtin and then its argument prototype would still apply.  */
17980 #ifdef __cplusplus
17981 extern "C"
17982 #endif
17983 char uuid_to_str ();
17984 int
17985 main ()
17986 {
17987 return uuid_to_str ();
17988   ;
17989   return 0;
17990 }
17991 _ACEOF
17992 for ac_lib in '' uuid; do
17993   if test -z "$ac_lib"; then
17994     ac_res="none required"
17995   else
17996     ac_res=-l$ac_lib
17997     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17998   fi
17999   rm -f conftest.$ac_objext conftest$ac_exeext
18000 if { (ac_try="$ac_link"
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_link") 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_exeext &&
18016        $as_test_x conftest$ac_exeext; then
18017   ac_cv_search_uuid_to_str=$ac_res
18018 else
18019   echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022
18023 fi
18024
18025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18026       conftest$ac_exeext
18027   if test "${ac_cv_search_uuid_to_str+set}" = set; then
18028   break
18029 fi
18030 done
18031 if test "${ac_cv_search_uuid_to_str+set}" = set; then
18032   :
18033 else
18034   ac_cv_search_uuid_to_str=no
18035 fi
18036 rm conftest.$ac_ext
18037 LIBS=$ac_func_search_save_LIBS
18038 fi
18039 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
18040 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
18041 ac_res=$ac_cv_search_uuid_to_str
18042 if test "$ac_res" != no; then
18043   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18044   have_uuid=yes
18045 else
18046   :
18047 fi
18048
18049         { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
18050 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
18051 if test "${ac_cv_search_uuid_create+set}" = set; then
18052   echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054   ac_func_search_save_LIBS=$LIBS
18055 cat >conftest.$ac_ext <<_ACEOF
18056 /* confdefs.h.  */
18057 _ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h.  */
18061
18062 /* Override any GCC internal prototype to avoid an error.
18063    Use char because int might match the return type of a GCC
18064    builtin and then its argument prototype would still apply.  */
18065 #ifdef __cplusplus
18066 extern "C"
18067 #endif
18068 char uuid_create ();
18069 int
18070 main ()
18071 {
18072 return uuid_create ();
18073   ;
18074   return 0;
18075 }
18076 _ACEOF
18077 for ac_lib in '' uuid; do
18078   if test -z "$ac_lib"; then
18079     ac_res="none required"
18080   else
18081     ac_res=-l$ac_lib
18082     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18083   fi
18084   rm -f conftest.$ac_objext conftest$ac_exeext
18085 if { (ac_try="$ac_link"
18086 case "(($ac_try" in
18087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088   *) ac_try_echo=$ac_try;;
18089 esac
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091   (eval "$ac_link") 2>conftest.er1
18092   ac_status=$?
18093   grep -v '^ *+' conftest.er1 >conftest.err
18094   rm -f conftest.er1
18095   cat conftest.err >&5
18096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097   (exit $ac_status); } && {
18098          test -z "$ac_c_werror_flag" ||
18099          test ! -s conftest.err
18100        } && test -s conftest$ac_exeext &&
18101        $as_test_x conftest$ac_exeext; then
18102   ac_cv_search_uuid_create=$ac_res
18103 else
18104   echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18106
18107
18108 fi
18109
18110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18111       conftest$ac_exeext
18112   if test "${ac_cv_search_uuid_create+set}" = set; then
18113   break
18114 fi
18115 done
18116 if test "${ac_cv_search_uuid_create+set}" = set; then
18117   :
18118 else
18119   ac_cv_search_uuid_create=no
18120 fi
18121 rm conftest.$ac_ext
18122 LIBS=$ac_func_search_save_LIBS
18123 fi
18124 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
18125 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
18126 ac_res=$ac_cv_search_uuid_create
18127 if test "$ac_res" != no; then
18128   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18129   :
18130 else
18131   have_uuid=no
18132 fi
18133
18134         LIBS="$save_LIBS"
18135
18136         if test $have_uuid = yes ; then
18137
18138 cat >>confdefs.h <<\_ACEOF
18139 #define HAVE_UUID_TO_STR 1
18140 _ACEOF
18141
18142
18143                 test "$ac_cv_search_uuid_to_str" = "none required" || \
18144                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
18145         fi
18146 fi
18147
18148 if test $have_uuid = no ; then
18149
18150 for ac_header in uuid/uuid.h
18151 do
18152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18154   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18157   echo $ECHO_N "(cached) $ECHO_C" >&6
18158 fi
18159 ac_res=`eval echo '${'$as_ac_Header'}'`
18160                { echo "$as_me:$LINENO: result: $ac_res" >&5
18161 echo "${ECHO_T}$ac_res" >&6; }
18162 else
18163   # Is the header compilable?
18164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18166 cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h.  */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h.  */
18172 $ac_includes_default
18173 #include <$ac_header>
18174 _ACEOF
18175 rm -f conftest.$ac_objext
18176 if { (ac_try="$ac_compile"
18177 case "(($ac_try" in
18178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179   *) ac_try_echo=$ac_try;;
18180 esac
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182   (eval "$ac_compile") 2>conftest.er1
18183   ac_status=$?
18184   grep -v '^ *+' conftest.er1 >conftest.err
18185   rm -f conftest.er1
18186   cat conftest.err >&5
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); } && {
18189          test -z "$ac_c_werror_flag" ||
18190          test ! -s conftest.err
18191        } && test -s conftest.$ac_objext; then
18192   ac_header_compiler=yes
18193 else
18194   echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18196
18197         ac_header_compiler=no
18198 fi
18199
18200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18202 echo "${ECHO_T}$ac_header_compiler" >&6; }
18203
18204 # Is the header present?
18205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18207 cat >conftest.$ac_ext <<_ACEOF
18208 /* confdefs.h.  */
18209 _ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h.  */
18213 #include <$ac_header>
18214 _ACEOF
18215 if { (ac_try="$ac_cpp conftest.$ac_ext"
18216 case "(($ac_try" in
18217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218   *) ac_try_echo=$ac_try;;
18219 esac
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18222   ac_status=$?
18223   grep -v '^ *+' conftest.er1 >conftest.err
18224   rm -f conftest.er1
18225   cat conftest.err >&5
18226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227   (exit $ac_status); } >/dev/null && {
18228          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18229          test ! -s conftest.err
18230        }; then
18231   ac_header_preproc=yes
18232 else
18233   echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18235
18236   ac_header_preproc=no
18237 fi
18238
18239 rm -f conftest.err conftest.$ac_ext
18240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18241 echo "${ECHO_T}$ac_header_preproc" >&6; }
18242
18243 # So?  What about this header?
18244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18245   yes:no: )
18246     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18250     ac_header_preproc=yes
18251     ;;
18252   no:yes:* )
18253     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18255     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18256 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18257     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18259     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18260 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18263     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18265     ( cat <<\_ASBOX
18266 ## --------------------------------------------- ##
18267 ## Report this to <http://www.openldap.org/its/> ##
18268 ## --------------------------------------------- ##
18269 _ASBOX
18270      ) | sed "s/^/$as_me: WARNING:     /" >&2
18271     ;;
18272 esac
18273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18276   echo $ECHO_N "(cached) $ECHO_C" >&6
18277 else
18278   eval "$as_ac_Header=\$ac_header_preproc"
18279 fi
18280 ac_res=`eval echo '${'$as_ac_Header'}'`
18281                { echo "$as_me:$LINENO: result: $ac_res" >&5
18282 echo "${ECHO_T}$ac_res" >&6; }
18283
18284 fi
18285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18286   cat >>confdefs.h <<_ACEOF
18287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18288 _ACEOF
18289
18290 fi
18291
18292 done
18293
18294         if test $ac_cv_header_uuid_uuid_h = yes ; then
18295                 save_LIBS="$LIBS"
18296                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18297 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18298 if test "${ac_cv_search_uuid_generate+set}" = set; then
18299   echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301   ac_func_search_save_LIBS=$LIBS
18302 cat >conftest.$ac_ext <<_ACEOF
18303 /* confdefs.h.  */
18304 _ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h.  */
18308
18309 /* Override any GCC internal prototype to avoid an error.
18310    Use char because int might match the return type of a GCC
18311    builtin and then its argument prototype would still apply.  */
18312 #ifdef __cplusplus
18313 extern "C"
18314 #endif
18315 char uuid_generate ();
18316 int
18317 main ()
18318 {
18319 return uuid_generate ();
18320   ;
18321   return 0;
18322 }
18323 _ACEOF
18324 for ac_lib in '' uuid; do
18325   if test -z "$ac_lib"; then
18326     ac_res="none required"
18327   else
18328     ac_res=-l$ac_lib
18329     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18330   fi
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   ac_cv_search_uuid_generate=$ac_res
18350 else
18351   echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18353
18354
18355 fi
18356
18357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18358       conftest$ac_exeext
18359   if test "${ac_cv_search_uuid_generate+set}" = set; then
18360   break
18361 fi
18362 done
18363 if test "${ac_cv_search_uuid_generate+set}" = set; then
18364   :
18365 else
18366   ac_cv_search_uuid_generate=no
18367 fi
18368 rm conftest.$ac_ext
18369 LIBS=$ac_func_search_save_LIBS
18370 fi
18371 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18372 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18373 ac_res=$ac_cv_search_uuid_generate
18374 if test "$ac_res" != no; then
18375   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18376   have_uuid=yes
18377 else
18378   :
18379 fi
18380
18381                 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18382 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18383 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18384   echo $ECHO_N "(cached) $ECHO_C" >&6
18385 else
18386   ac_func_search_save_LIBS=$LIBS
18387 cat >conftest.$ac_ext <<_ACEOF
18388 /* confdefs.h.  */
18389 _ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h.  */
18393
18394 /* Override any GCC internal prototype to avoid an error.
18395    Use char because int might match the return type of a GCC
18396    builtin and then its argument prototype would still apply.  */
18397 #ifdef __cplusplus
18398 extern "C"
18399 #endif
18400 char uuid_unparse_lower ();
18401 int
18402 main ()
18403 {
18404 return uuid_unparse_lower ();
18405   ;
18406   return 0;
18407 }
18408 _ACEOF
18409 for ac_lib in '' uuid; do
18410   if test -z "$ac_lib"; then
18411     ac_res="none required"
18412   else
18413     ac_res=-l$ac_lib
18414     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18415   fi
18416   rm -f conftest.$ac_objext conftest$ac_exeext
18417 if { (ac_try="$ac_link"
18418 case "(($ac_try" in
18419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420   *) ac_try_echo=$ac_try;;
18421 esac
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423   (eval "$ac_link") 2>conftest.er1
18424   ac_status=$?
18425   grep -v '^ *+' conftest.er1 >conftest.err
18426   rm -f conftest.er1
18427   cat conftest.err >&5
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); } && {
18430          test -z "$ac_c_werror_flag" ||
18431          test ! -s conftest.err
18432        } && test -s conftest$ac_exeext &&
18433        $as_test_x conftest$ac_exeext; then
18434   ac_cv_search_uuid_unparse_lower=$ac_res
18435 else
18436   echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18438
18439
18440 fi
18441
18442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18443       conftest$ac_exeext
18444   if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18445   break
18446 fi
18447 done
18448 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18449   :
18450 else
18451   ac_cv_search_uuid_unparse_lower=no
18452 fi
18453 rm conftest.$ac_ext
18454 LIBS=$ac_func_search_save_LIBS
18455 fi
18456 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18457 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18458 ac_res=$ac_cv_search_uuid_unparse_lower
18459 if test "$ac_res" != no; then
18460   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18461   :
18462 else
18463   have_uuid=no
18464 fi
18465
18466                 LIBS="$save_LIBS"
18467
18468                 if test $have_uuid = yes ; then
18469
18470 cat >>confdefs.h <<\_ACEOF
18471 #define HAVE_UUID_GENERATE 1
18472 _ACEOF
18473
18474
18475                         test "$ac_cv_search_uuid_generate" = "none required" || \
18476                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18477                 fi
18478         fi
18479 fi
18480
18481 if test $have_uuid = no ; then
18482         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18483 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18484         save_LIBS="$LIBS"
18485         LIBS="$LIBS -lrpcrt4"
18486         cat >conftest.$ac_ext <<_ACEOF
18487 /* confdefs.h.  */
18488 _ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h.  */
18492
18493                 int __stdcall UuidCreate(void *);
18494                 int __stdcall UuidToStringA(void *,void **);
18495
18496 int
18497 main ()
18498 {
18499
18500                 UuidCreate(0);
18501                 UuidToStringA(0,0);
18502
18503   ;
18504   return 0;
18505 }
18506 _ACEOF
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (ac_try="$ac_link"
18509 case "(($ac_try" in
18510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511   *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514   (eval "$ac_link") 2>conftest.er1
18515   ac_status=$?
18516   grep -v '^ *+' conftest.er1 >conftest.err
18517   rm -f conftest.er1
18518   cat conftest.err >&5
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); } && {
18521          test -z "$ac_c_werror_flag" ||
18522          test ! -s conftest.err
18523        } && test -s conftest$ac_exeext &&
18524        $as_test_x conftest$ac_exeext; then
18525   need_rpcrt=yes
18526 else
18527   echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18529
18530         need_rpcrt=no
18531 fi
18532
18533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18534       conftest$ac_exeext conftest.$ac_ext
18535         if test $need_rpcrt = yes; then
18536                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18537         fi
18538         LIBS="$save_LIBS"
18539         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18540 echo "${ECHO_T}$need_rpcrt" >&6; }
18541 fi
18542
18543 ol_cv_lib_resolver=no
18544 if test $ol_cv_lib_resolver = no ; then
18545         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18546 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18547 if test "${ol_cv_resolver_none+set}" = set; then
18548   echo $ECHO_N "(cached) $ECHO_C" >&6
18549 else
18550
18551         ol_RESOLVER_LIB=
18552         ol_LIBS=$LIBS
18553         LIBS="$ol_RESOLVER_LIB $LIBS"
18554
18555         cat >conftest.$ac_ext <<_ACEOF
18556 /* confdefs.h.  */
18557 _ACEOF
18558 cat confdefs.h >>conftest.$ac_ext
18559 cat >>conftest.$ac_ext <<_ACEOF
18560 /* end confdefs.h.  */
18561
18562 #ifdef HAVE_SYS_TYPES_H
18563 #       include <sys/types.h>
18564 #endif
18565 #include <netinet/in.h>
18566 #ifdef HAVE_ARPA_NAMESER_H
18567 #       include <arpa/nameser.h>
18568 #endif
18569 #ifdef HAVE_RESOLV_H
18570 #       include <resolv.h>
18571 #endif
18572
18573 int
18574 main ()
18575 {
18576 {
18577         int len, status;
18578         char *request = NULL;
18579         unsigned char reply[64*1024];
18580         unsigned char host[64*1024];
18581         unsigned char *p;
18582
18583 #ifdef NS_HFIXEDSZ
18584         /* Bind 8/9 interface */
18585         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18586 #else
18587         /* Bind 4 interface */
18588 # ifndef T_SRV
18589 #  define T_SRV 33
18590 # endif
18591         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18592 #endif
18593         p = reply;
18594 #ifdef NS_HFIXEDSZ
18595         /* Bind 8/9 interface */
18596         p += NS_HFIXEDSZ;
18597 #elif defined(HFIXEDSZ)
18598         /* Bind 4 interface w/ HFIXEDSZ */
18599         p += HFIXEDSZ;
18600 #else
18601         /* Bind 4 interface w/o HFIXEDSZ */
18602         p += sizeof(HEADER);
18603 #endif
18604         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18605 }
18606   ;
18607   return 0;
18608 }
18609 _ACEOF
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (ac_try="$ac_link"
18612 case "(($ac_try" in
18613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614   *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617   (eval "$ac_link") 2>conftest.er1
18618   ac_status=$?
18619   grep -v '^ *+' conftest.er1 >conftest.err
18620   rm -f conftest.er1
18621   cat conftest.err >&5
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); } && {
18624          test -z "$ac_c_werror_flag" ||
18625          test ! -s conftest.err
18626        } && test -s conftest$ac_exeext &&
18627        $as_test_x conftest$ac_exeext; then
18628   ol_cv_resolver_none=yes
18629 else
18630   echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18632
18633         ol_cv_resolver_none=no
18634 fi
18635
18636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18637       conftest$ac_exeext conftest.$ac_ext
18638
18639         LIBS="$ol_LIBS"
18640
18641 fi
18642 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18643 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18644
18645         if test $ol_cv_resolver_none = yes ; then
18646                 ol_cv_lib_resolver=yes
18647         fi
18648 fi
18649
18650 if test $ol_cv_lib_resolver = no ; then
18651         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18652 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18653 if test "${ol_cv_resolver_resolv+set}" = set; then
18654   echo $ECHO_N "(cached) $ECHO_C" >&6
18655 else
18656
18657         ol_RESOLVER_LIB=-lresolv
18658         ol_LIBS=$LIBS
18659         LIBS="$ol_RESOLVER_LIB $LIBS"
18660
18661         cat >conftest.$ac_ext <<_ACEOF
18662 /* confdefs.h.  */
18663 _ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h.  */
18667
18668 #ifdef HAVE_SYS_TYPES_H
18669 #       include <sys/types.h>
18670 #endif
18671 #include <netinet/in.h>
18672 #ifdef HAVE_ARPA_NAMESER_H
18673 #       include <arpa/nameser.h>
18674 #endif
18675 #ifdef HAVE_RESOLV_H
18676 #       include <resolv.h>
18677 #endif
18678
18679 int
18680 main ()
18681 {
18682 {
18683         int len, status;
18684         char *request = NULL;
18685         unsigned char reply[64*1024];
18686         unsigned char host[64*1024];
18687         unsigned char *p;
18688
18689 #ifdef NS_HFIXEDSZ
18690         /* Bind 8/9 interface */
18691         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18692 #else
18693         /* Bind 4 interface */
18694 # ifndef T_SRV
18695 #  define T_SRV 33
18696 # endif
18697         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18698 #endif
18699         p = reply;
18700 #ifdef NS_HFIXEDSZ
18701         /* Bind 8/9 interface */
18702         p += NS_HFIXEDSZ;
18703 #elif defined(HFIXEDSZ)
18704         /* Bind 4 interface w/ HFIXEDSZ */
18705         p += HFIXEDSZ;
18706 #else
18707         /* Bind 4 interface w/o HFIXEDSZ */
18708         p += sizeof(HEADER);
18709 #endif
18710         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18711 }
18712   ;
18713   return 0;
18714 }
18715 _ACEOF
18716 rm -f conftest.$ac_objext conftest$ac_exeext
18717 if { (ac_try="$ac_link"
18718 case "(($ac_try" in
18719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720   *) ac_try_echo=$ac_try;;
18721 esac
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723   (eval "$ac_link") 2>conftest.er1
18724   ac_status=$?
18725   grep -v '^ *+' conftest.er1 >conftest.err
18726   rm -f conftest.er1
18727   cat conftest.err >&5
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); } && {
18730          test -z "$ac_c_werror_flag" ||
18731          test ! -s conftest.err
18732        } && test -s conftest$ac_exeext &&
18733        $as_test_x conftest$ac_exeext; then
18734   ol_cv_resolver_resolv=yes
18735 else
18736   echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18738
18739         ol_cv_resolver_resolv=no
18740 fi
18741
18742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18743       conftest$ac_exeext conftest.$ac_ext
18744
18745         LIBS="$ol_LIBS"
18746
18747 fi
18748 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18749 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18750
18751         if test $ol_cv_resolver_resolv = yes ; then
18752                 ol_cv_lib_resolver=-lresolv
18753         fi
18754 fi
18755
18756 if test $ol_cv_lib_resolver = no ; then
18757         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18758 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18759 if test "${ol_cv_resolver_bind+set}" = set; then
18760   echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762
18763         ol_RESOLVER_LIB=-lbind
18764         ol_LIBS=$LIBS
18765         LIBS="$ol_RESOLVER_LIB $LIBS"
18766
18767         cat >conftest.$ac_ext <<_ACEOF
18768 /* confdefs.h.  */
18769 _ACEOF
18770 cat confdefs.h >>conftest.$ac_ext
18771 cat >>conftest.$ac_ext <<_ACEOF
18772 /* end confdefs.h.  */
18773
18774 #ifdef HAVE_SYS_TYPES_H
18775 #       include <sys/types.h>
18776 #endif
18777 #include <netinet/in.h>
18778 #ifdef HAVE_ARPA_NAMESER_H
18779 #       include <arpa/nameser.h>
18780 #endif
18781 #ifdef HAVE_RESOLV_H
18782 #       include <resolv.h>
18783 #endif
18784
18785 int
18786 main ()
18787 {
18788 {
18789         int len, status;
18790         char *request = NULL;
18791         unsigned char reply[64*1024];
18792         unsigned char host[64*1024];
18793         unsigned char *p;
18794
18795 #ifdef NS_HFIXEDSZ
18796         /* Bind 8/9 interface */
18797         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18798 #else
18799         /* Bind 4 interface */
18800 # ifndef T_SRV
18801 #  define T_SRV 33
18802 # endif
18803         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18804 #endif
18805         p = reply;
18806 #ifdef NS_HFIXEDSZ
18807         /* Bind 8/9 interface */
18808         p += NS_HFIXEDSZ;
18809 #elif defined(HFIXEDSZ)
18810         /* Bind 4 interface w/ HFIXEDSZ */
18811         p += HFIXEDSZ;
18812 #else
18813         /* Bind 4 interface w/o HFIXEDSZ */
18814         p += sizeof(HEADER);
18815 #endif
18816         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18817 }
18818   ;
18819   return 0;
18820 }
18821 _ACEOF
18822 rm -f conftest.$ac_objext conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826   *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829   (eval "$ac_link") 2>conftest.er1
18830   ac_status=$?
18831   grep -v '^ *+' conftest.er1 >conftest.err
18832   rm -f conftest.er1
18833   cat conftest.err >&5
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); } && {
18836          test -z "$ac_c_werror_flag" ||
18837          test ! -s conftest.err
18838        } && test -s conftest$ac_exeext &&
18839        $as_test_x conftest$ac_exeext; then
18840   ol_cv_resolver_bind=yes
18841 else
18842   echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18844
18845         ol_cv_resolver_bind=no
18846 fi
18847
18848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18849       conftest$ac_exeext conftest.$ac_ext
18850
18851         LIBS="$ol_LIBS"
18852
18853 fi
18854 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18855 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18856
18857         if test $ol_cv_resolver_bind = yes ; then
18858                 ol_cv_lib_resolver=-lbind
18859         fi
18860 fi
18861
18862
18863
18864 ol_link_dnssrv=no
18865 if test "$ol_cv_lib_resolver" != no ; then
18866
18867 cat >>confdefs.h <<\_ACEOF
18868 #define HAVE_RES_QUERY 1
18869 _ACEOF
18870
18871
18872         if test "$ol_enable_dnssrv" != no ; then
18873                 ol_link_dnssrv=yes
18874         fi
18875
18876         if test "$ol_cv_lib_resolver" != yes ; then
18877                 LIBS="$ol_cv_lib_resolver $LIBS"
18878         fi
18879 fi
18880
18881 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18882         if test "$ol_link_dnssrv" = no ; then
18883                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18884 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18885    { (exit 1); exit 1; }; }
18886         fi
18887 else
18888         ol_enable_dnssrv=no
18889 fi
18890
18891
18892 for ac_func in hstrerror
18893 do
18894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18898   echo $ECHO_N "(cached) $ECHO_C" >&6
18899 else
18900   cat >conftest.$ac_ext <<_ACEOF
18901 /* confdefs.h.  */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h.  */
18906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18908 #define $ac_func innocuous_$ac_func
18909
18910 /* System header to define __stub macros and hopefully few prototypes,
18911     which can conflict with char $ac_func (); below.
18912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18913     <limits.h> exists even on freestanding compilers.  */
18914
18915 #ifdef __STDC__
18916 # include <limits.h>
18917 #else
18918 # include <assert.h>
18919 #endif
18920
18921 #undef $ac_func
18922
18923 /* Override any GCC internal prototype to avoid an error.
18924    Use char because int might match the return type of a GCC
18925    builtin and then its argument prototype would still apply.  */
18926 #ifdef __cplusplus
18927 extern "C"
18928 #endif
18929 char $ac_func ();
18930 /* The GNU C library defines this for functions which it implements
18931     to always fail with ENOSYS.  Some functions are actually named
18932     something starting with __ and the normal name is an alias.  */
18933 #if defined __stub_$ac_func || defined __stub___$ac_func
18934 choke me
18935 #endif
18936
18937 int
18938 main ()
18939 {
18940 return $ac_func ();
18941   ;
18942   return 0;
18943 }
18944 _ACEOF
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949   *) ac_try_echo=$ac_try;;
18950 esac
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952   (eval "$ac_link") 2>conftest.er1
18953   ac_status=$?
18954   grep -v '^ *+' conftest.er1 >conftest.err
18955   rm -f conftest.er1
18956   cat conftest.err >&5
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); } && {
18959          test -z "$ac_c_werror_flag" ||
18960          test ! -s conftest.err
18961        } && test -s conftest$ac_exeext &&
18962        $as_test_x conftest$ac_exeext; then
18963   eval "$as_ac_var=yes"
18964 else
18965   echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18967
18968         eval "$as_ac_var=no"
18969 fi
18970
18971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972       conftest$ac_exeext conftest.$ac_ext
18973 fi
18974 ac_res=`eval echo '${'$as_ac_var'}'`
18975                { echo "$as_me:$LINENO: result: $ac_res" >&5
18976 echo "${ECHO_T}$ac_res" >&6; }
18977 if test `eval echo '${'$as_ac_var'}'` = yes; then
18978   cat >>confdefs.h <<_ACEOF
18979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18980 _ACEOF
18981
18982 fi
18983 done
18984
18985
18986
18987
18988
18989
18990 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18991 do
18992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18996   echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998   cat >conftest.$ac_ext <<_ACEOF
18999 /* confdefs.h.  */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h.  */
19004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19006 #define $ac_func innocuous_$ac_func
19007
19008 /* System header to define __stub macros and hopefully few prototypes,
19009     which can conflict with char $ac_func (); below.
19010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19011     <limits.h> exists even on freestanding compilers.  */
19012
19013 #ifdef __STDC__
19014 # include <limits.h>
19015 #else
19016 # include <assert.h>
19017 #endif
19018
19019 #undef $ac_func
19020
19021 /* Override any GCC internal prototype to avoid an error.
19022    Use char because int might match the return type of a GCC
19023    builtin and then its argument prototype would still apply.  */
19024 #ifdef __cplusplus
19025 extern "C"
19026 #endif
19027 char $ac_func ();
19028 /* The GNU C library defines this for functions which it implements
19029     to always fail with ENOSYS.  Some functions are actually named
19030     something starting with __ and the normal name is an alias.  */
19031 #if defined __stub_$ac_func || defined __stub___$ac_func
19032 choke me
19033 #endif
19034
19035 int
19036 main ()
19037 {
19038 return $ac_func ();
19039   ;
19040   return 0;
19041 }
19042 _ACEOF
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (ac_try="$ac_link"
19045 case "(($ac_try" in
19046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047   *) ac_try_echo=$ac_try;;
19048 esac
19049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050   (eval "$ac_link") 2>conftest.er1
19051   ac_status=$?
19052   grep -v '^ *+' conftest.er1 >conftest.err
19053   rm -f conftest.er1
19054   cat conftest.err >&5
19055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056   (exit $ac_status); } && {
19057          test -z "$ac_c_werror_flag" ||
19058          test ! -s conftest.err
19059        } && test -s conftest$ac_exeext &&
19060        $as_test_x conftest$ac_exeext; then
19061   eval "$as_ac_var=yes"
19062 else
19063   echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19065
19066         eval "$as_ac_var=no"
19067 fi
19068
19069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19070       conftest$ac_exeext conftest.$ac_ext
19071 fi
19072 ac_res=`eval echo '${'$as_ac_var'}'`
19073                { echo "$as_me:$LINENO: result: $ac_res" >&5
19074 echo "${ECHO_T}$ac_res" >&6; }
19075 if test `eval echo '${'$as_ac_var'}'` = yes; then
19076   cat >>confdefs.h <<_ACEOF
19077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19078 _ACEOF
19079
19080 fi
19081 done
19082
19083
19084 ol_link_ipv6=no
19085 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
19086         if test $ol_enable_ipv6 = yes ; then
19087                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
19088 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
19089    { (exit 1); exit 1; }; }
19090         fi
19091 elif test $ol_enable_ipv6 != no ; then
19092         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
19093 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
19094 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
19095   echo $ECHO_N "(cached) $ECHO_C" >&6
19096 else
19097
19098                 cat >conftest.$ac_ext <<_ACEOF
19099 /* confdefs.h.  */
19100 _ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h.  */
19104
19105 #                       include <netinet/in.h>
19106 #                       ifdef INET6_ADDRSTRLEN
19107                                 __has_inet6_addrstrlen__;
19108 #                       endif
19109
19110 _ACEOF
19111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19112   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
19113   ol_cv_inet6_addrstrlen=yes
19114 else
19115   ol_cv_inet6_addrstrlen=no
19116 fi
19117 rm -f conftest*
19118
19119 fi
19120 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
19121 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
19122
19123
19124         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
19125 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
19126 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
19127   echo $ECHO_N "(cached) $ECHO_C" >&6
19128 else
19129
19130                 cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h.  */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h.  */
19136
19137 #include <sys/types.h>
19138 #include <sys/socket.h>
19139
19140 int
19141 main ()
19142 {
19143
19144                         struct sockaddr_storage ss;
19145
19146   ;
19147   return 0;
19148 }
19149 _ACEOF
19150 rm -f conftest.$ac_objext
19151 if { (ac_try="$ac_compile"
19152 case "(($ac_try" in
19153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154   *) ac_try_echo=$ac_try;;
19155 esac
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157   (eval "$ac_compile") 2>conftest.er1
19158   ac_status=$?
19159   grep -v '^ *+' conftest.er1 >conftest.err
19160   rm -f conftest.er1
19161   cat conftest.err >&5
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); } && {
19164          test -z "$ac_c_werror_flag" ||
19165          test ! -s conftest.err
19166        } && test -s conftest.$ac_objext; then
19167   ol_cv_struct_sockaddr_storage=yes
19168 else
19169   echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19171
19172         ol_cv_struct_sockaddr_storage=no
19173 fi
19174
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19176 fi
19177 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19178 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19179
19180         if test $ol_cv_inet6_addrstrlen = yes &&
19181            test $ol_cv_struct_sockaddr_storage = yes ; then
19182                 ol_link_ipv6=yes
19183         elif test $ol_enable_ipv6 = yes &&
19184              test $ol_cv_inet6_addrstrlen = no ; then
19185                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19186 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19187    { (exit 1); exit 1; }; }
19188         elif test $ol_enable_ipv6 = yes &&
19189              test $ol_cv_struct_sockaddr_storage = no ; then
19190                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19191 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19192    { (exit 1); exit 1; }; }
19193         fi
19194 fi
19195
19196 if test $ol_enable_local != no ; then
19197
19198 for ac_header in sys/un.h
19199 do
19200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19202   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19205   echo $ECHO_N "(cached) $ECHO_C" >&6
19206 fi
19207 ac_res=`eval echo '${'$as_ac_Header'}'`
19208                { echo "$as_me:$LINENO: result: $ac_res" >&5
19209 echo "${ECHO_T}$ac_res" >&6; }
19210 else
19211   # Is the header compilable?
19212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19214 cat >conftest.$ac_ext <<_ACEOF
19215 /* confdefs.h.  */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h.  */
19220 $ac_includes_default
19221 #include <$ac_header>
19222 _ACEOF
19223 rm -f conftest.$ac_objext
19224 if { (ac_try="$ac_compile"
19225 case "(($ac_try" in
19226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227   *) ac_try_echo=$ac_try;;
19228 esac
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230   (eval "$ac_compile") 2>conftest.er1
19231   ac_status=$?
19232   grep -v '^ *+' conftest.er1 >conftest.err
19233   rm -f conftest.er1
19234   cat conftest.err >&5
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); } && {
19237          test -z "$ac_c_werror_flag" ||
19238          test ! -s conftest.err
19239        } && test -s conftest.$ac_objext; then
19240   ac_header_compiler=yes
19241 else
19242   echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19244
19245         ac_header_compiler=no
19246 fi
19247
19248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19250 echo "${ECHO_T}$ac_header_compiler" >&6; }
19251
19252 # Is the header present?
19253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19255 cat >conftest.$ac_ext <<_ACEOF
19256 /* confdefs.h.  */
19257 _ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h.  */
19261 #include <$ac_header>
19262 _ACEOF
19263 if { (ac_try="$ac_cpp conftest.$ac_ext"
19264 case "(($ac_try" in
19265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266   *) ac_try_echo=$ac_try;;
19267 esac
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19270   ac_status=$?
19271   grep -v '^ *+' conftest.er1 >conftest.err
19272   rm -f conftest.er1
19273   cat conftest.err >&5
19274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275   (exit $ac_status); } >/dev/null && {
19276          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19277          test ! -s conftest.err
19278        }; then
19279   ac_header_preproc=yes
19280 else
19281   echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19283
19284   ac_header_preproc=no
19285 fi
19286
19287 rm -f conftest.err conftest.$ac_ext
19288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19289 echo "${ECHO_T}$ac_header_preproc" >&6; }
19290
19291 # So?  What about this header?
19292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19293   yes:no: )
19294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19298     ac_header_preproc=yes
19299     ;;
19300   no:yes:* )
19301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19303     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19304 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19305     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19307     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19308 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19311     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19313     ( cat <<\_ASBOX
19314 ## --------------------------------------------- ##
19315 ## Report this to <http://www.openldap.org/its/> ##
19316 ## --------------------------------------------- ##
19317 _ASBOX
19318      ) | sed "s/^/$as_me: WARNING:     /" >&2
19319     ;;
19320 esac
19321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19324   echo $ECHO_N "(cached) $ECHO_C" >&6
19325 else
19326   eval "$as_ac_Header=\$ac_header_preproc"
19327 fi
19328 ac_res=`eval echo '${'$as_ac_Header'}'`
19329                { echo "$as_me:$LINENO: result: $ac_res" >&5
19330 echo "${ECHO_T}$ac_res" >&6; }
19331
19332 fi
19333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19334   cat >>confdefs.h <<_ACEOF
19335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19336 _ACEOF
19337
19338 fi
19339
19340 done
19341
19342
19343         if test $ol_enable_local = auto ; then
19344                 ol_enable_local=$ac_cv_header_sys_un_h
19345         elif test $ac_cv_header_sys_un_h = no ; then
19346                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19347 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19348    { (exit 1); exit 1; }; }
19349         fi
19350 fi
19351
19352
19353 if test $ol_with_tls = yes ; then
19354         ol_with_tls=auto
19355 fi
19356
19357 ol_link_tls=no
19358 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19359
19360 for ac_header in openssl/ssl.h
19361 do
19362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19364   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19367   echo $ECHO_N "(cached) $ECHO_C" >&6
19368 fi
19369 ac_res=`eval echo '${'$as_ac_Header'}'`
19370                { echo "$as_me:$LINENO: result: $ac_res" >&5
19371 echo "${ECHO_T}$ac_res" >&6; }
19372 else
19373   # Is the header compilable?
19374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h.  */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h.  */
19382 $ac_includes_default
19383 #include <$ac_header>
19384 _ACEOF
19385 rm -f conftest.$ac_objext
19386 if { (ac_try="$ac_compile"
19387 case "(($ac_try" in
19388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389   *) ac_try_echo=$ac_try;;
19390 esac
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392   (eval "$ac_compile") 2>conftest.er1
19393   ac_status=$?
19394   grep -v '^ *+' conftest.er1 >conftest.err
19395   rm -f conftest.er1
19396   cat conftest.err >&5
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); } && {
19399          test -z "$ac_c_werror_flag" ||
19400          test ! -s conftest.err
19401        } && test -s conftest.$ac_objext; then
19402   ac_header_compiler=yes
19403 else
19404   echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19406
19407         ac_header_compiler=no
19408 fi
19409
19410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19412 echo "${ECHO_T}$ac_header_compiler" >&6; }
19413
19414 # Is the header present?
19415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19417 cat >conftest.$ac_ext <<_ACEOF
19418 /* confdefs.h.  */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h.  */
19423 #include <$ac_header>
19424 _ACEOF
19425 if { (ac_try="$ac_cpp conftest.$ac_ext"
19426 case "(($ac_try" in
19427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428   *) ac_try_echo=$ac_try;;
19429 esac
19430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19432   ac_status=$?
19433   grep -v '^ *+' conftest.er1 >conftest.err
19434   rm -f conftest.er1
19435   cat conftest.err >&5
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); } >/dev/null && {
19438          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19439          test ! -s conftest.err
19440        }; then
19441   ac_header_preproc=yes
19442 else
19443   echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19445
19446   ac_header_preproc=no
19447 fi
19448
19449 rm -f conftest.err conftest.$ac_ext
19450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19451 echo "${ECHO_T}$ac_header_preproc" >&6; }
19452
19453 # So?  What about this header?
19454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19455   yes:no: )
19456     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19460     ac_header_preproc=yes
19461     ;;
19462   no:yes:* )
19463     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19465     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19466 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19467     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19469     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19470 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19473     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19475     ( cat <<\_ASBOX
19476 ## --------------------------------------------- ##
19477 ## Report this to <http://www.openldap.org/its/> ##
19478 ## --------------------------------------------- ##
19479 _ASBOX
19480      ) | sed "s/^/$as_me: WARNING:     /" >&2
19481     ;;
19482 esac
19483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19486   echo $ECHO_N "(cached) $ECHO_C" >&6
19487 else
19488   eval "$as_ac_Header=\$ac_header_preproc"
19489 fi
19490 ac_res=`eval echo '${'$as_ac_Header'}'`
19491                { echo "$as_me:$LINENO: result: $ac_res" >&5
19492 echo "${ECHO_T}$ac_res" >&6; }
19493
19494 fi
19495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19496   cat >>confdefs.h <<_ACEOF
19497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19498 _ACEOF
19499
19500 fi
19501
19502 done
19503
19504
19505         if test $ac_cv_header_openssl_ssl_h = yes ; then
19506                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19507 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19508 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19509   echo $ECHO_N "(cached) $ECHO_C" >&6
19510 else
19511   ac_check_lib_save_LIBS=$LIBS
19512 LIBS="-lssl -lcrypto $LIBS"
19513 cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519
19520 /* Override any GCC internal prototype to avoid an error.
19521    Use char because int might match the return type of a GCC
19522    builtin and then its argument prototype would still apply.  */
19523 #ifdef __cplusplus
19524 extern "C"
19525 #endif
19526 char SSL_library_init ();
19527 int
19528 main ()
19529 {
19530 return SSL_library_init ();
19531   ;
19532   return 0;
19533 }
19534 _ACEOF
19535 rm -f conftest.$ac_objext conftest$ac_exeext
19536 if { (ac_try="$ac_link"
19537 case "(($ac_try" in
19538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539   *) ac_try_echo=$ac_try;;
19540 esac
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542   (eval "$ac_link") 2>conftest.er1
19543   ac_status=$?
19544   grep -v '^ *+' conftest.er1 >conftest.err
19545   rm -f conftest.er1
19546   cat conftest.err >&5
19547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548   (exit $ac_status); } && {
19549          test -z "$ac_c_werror_flag" ||
19550          test ! -s conftest.err
19551        } && test -s conftest$ac_exeext &&
19552        $as_test_x conftest$ac_exeext; then
19553   ac_cv_lib_ssl_SSL_library_init=yes
19554 else
19555   echo "$as_me: failed program was:" >&5
19556 sed 's/^/| /' conftest.$ac_ext >&5
19557
19558         ac_cv_lib_ssl_SSL_library_init=no
19559 fi
19560
19561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19562       conftest$ac_exeext conftest.$ac_ext
19563 LIBS=$ac_check_lib_save_LIBS
19564 fi
19565 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19566 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19567 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19568   have_openssl=yes
19569                         need_rsaref=no
19570 else
19571   have_openssl=no
19572 fi
19573
19574
19575                 if test $have_openssl = no ; then
19576                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19577 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19578 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19579   echo $ECHO_N "(cached) $ECHO_C" >&6
19580 else
19581   ac_check_lib_save_LIBS=$LIBS
19582 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19583 cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h.  */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h.  */
19589
19590 /* Override any GCC internal prototype to avoid an error.
19591    Use char because int might match the return type of a GCC
19592    builtin and then its argument prototype would still apply.  */
19593 #ifdef __cplusplus
19594 extern "C"
19595 #endif
19596 char ssl3_accept ();
19597 int
19598 main ()
19599 {
19600 return ssl3_accept ();
19601   ;
19602   return 0;
19603 }
19604 _ACEOF
19605 rm -f conftest.$ac_objext conftest$ac_exeext
19606 if { (ac_try="$ac_link"
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_link") 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); } && {
19619          test -z "$ac_c_werror_flag" ||
19620          test ! -s conftest.err
19621        } && test -s conftest$ac_exeext &&
19622        $as_test_x conftest$ac_exeext; then
19623   ac_cv_lib_ssl_ssl3_accept=yes
19624 else
19625   echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19627
19628         ac_cv_lib_ssl_ssl3_accept=no
19629 fi
19630
19631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19632       conftest$ac_exeext conftest.$ac_ext
19633 LIBS=$ac_check_lib_save_LIBS
19634 fi
19635 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19636 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19637 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19638   have_openssl=yes
19639                                 need_rsaref=yes
19640 else
19641   have_openssl=no
19642 fi
19643
19644                 fi
19645
19646                 if test $have_openssl = yes ; then
19647                         ol_with_tls=openssl
19648                         ol_link_tls=yes
19649
19650
19651 cat >>confdefs.h <<\_ACEOF
19652 #define HAVE_OPENSSL 1
19653 _ACEOF
19654
19655
19656                         if test $need_rsaref = yes; then
19657
19658 cat >>confdefs.h <<\_ACEOF
19659 #define HAVE_RSAREF 1
19660 _ACEOF
19661
19662
19663                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19664                         else
19665                                 TLS_LIBS="-lssl -lcrypto"
19666                         fi
19667
19668                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19669 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19670 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19671   echo $ECHO_N "(cached) $ECHO_C" >&6
19672 else
19673
19674                 cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h.  */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h.  */
19680
19681 #ifdef HAVE_OPENSSL_SSL_H
19682 #include <openssl/ssl.h>
19683 #endif
19684
19685 /* Require 0.9.7d+ */
19686 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19687         char *__ssl_compat = "0.9.7d";
19688 #endif
19689
19690 _ACEOF
19691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19692   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19693   ol_cv_ssl_crl_compat=yes
19694 else
19695   ol_cv_ssl_crl_compat=no
19696 fi
19697 rm -f conftest*
19698
19699 fi
19700 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19701 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19702
19703                         if test $ol_cv_ssl_crl_compat = yes ; then
19704
19705 cat >>confdefs.h <<\_ACEOF
19706 #define HAVE_OPENSSL_CRL 1
19707 _ACEOF
19708
19709                         fi
19710                 fi
19711         fi
19712 fi
19713
19714 if test $ol_link_tls = no ; then
19715         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19716
19717 for ac_header in gnutls/gnutls.h
19718 do
19719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19721   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19724   echo $ECHO_N "(cached) $ECHO_C" >&6
19725 fi
19726 ac_res=`eval echo '${'$as_ac_Header'}'`
19727                { echo "$as_me:$LINENO: result: $ac_res" >&5
19728 echo "${ECHO_T}$ac_res" >&6; }
19729 else
19730   # Is the header compilable?
19731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19733 cat >conftest.$ac_ext <<_ACEOF
19734 /* confdefs.h.  */
19735 _ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h.  */
19739 $ac_includes_default
19740 #include <$ac_header>
19741 _ACEOF
19742 rm -f conftest.$ac_objext
19743 if { (ac_try="$ac_compile"
19744 case "(($ac_try" in
19745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746   *) ac_try_echo=$ac_try;;
19747 esac
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749   (eval "$ac_compile") 2>conftest.er1
19750   ac_status=$?
19751   grep -v '^ *+' conftest.er1 >conftest.err
19752   rm -f conftest.er1
19753   cat conftest.err >&5
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); } && {
19756          test -z "$ac_c_werror_flag" ||
19757          test ! -s conftest.err
19758        } && test -s conftest.$ac_objext; then
19759   ac_header_compiler=yes
19760 else
19761   echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19763
19764         ac_header_compiler=no
19765 fi
19766
19767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19769 echo "${ECHO_T}$ac_header_compiler" >&6; }
19770
19771 # Is the header present?
19772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19774 cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h.  */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h.  */
19780 #include <$ac_header>
19781 _ACEOF
19782 if { (ac_try="$ac_cpp conftest.$ac_ext"
19783 case "(($ac_try" in
19784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785   *) ac_try_echo=$ac_try;;
19786 esac
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19789   ac_status=$?
19790   grep -v '^ *+' conftest.er1 >conftest.err
19791   rm -f conftest.er1
19792   cat conftest.err >&5
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } >/dev/null && {
19795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19796          test ! -s conftest.err
19797        }; then
19798   ac_header_preproc=yes
19799 else
19800   echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19802
19803   ac_header_preproc=no
19804 fi
19805
19806 rm -f conftest.err conftest.$ac_ext
19807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19808 echo "${ECHO_T}$ac_header_preproc" >&6; }
19809
19810 # So?  What about this header?
19811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19812   yes:no: )
19813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19817     ac_header_preproc=yes
19818     ;;
19819   no:yes:* )
19820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19822     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19823 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19824     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19826     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19827 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19830     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19832     ( cat <<\_ASBOX
19833 ## --------------------------------------------- ##
19834 ## Report this to <http://www.openldap.org/its/> ##
19835 ## --------------------------------------------- ##
19836 _ASBOX
19837      ) | sed "s/^/$as_me: WARNING:     /" >&2
19838     ;;
19839 esac
19840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19843   echo $ECHO_N "(cached) $ECHO_C" >&6
19844 else
19845   eval "$as_ac_Header=\$ac_header_preproc"
19846 fi
19847 ac_res=`eval echo '${'$as_ac_Header'}'`
19848                { echo "$as_me:$LINENO: result: $ac_res" >&5
19849 echo "${ECHO_T}$ac_res" >&6; }
19850
19851 fi
19852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19853   cat >>confdefs.h <<_ACEOF
19854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19855 _ACEOF
19856
19857 fi
19858
19859 done
19860
19861
19862                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19863                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19864 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19865 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19866   echo $ECHO_N "(cached) $ECHO_C" >&6
19867 else
19868   ac_check_lib_save_LIBS=$LIBS
19869 LIBS="-lgnutls  $LIBS"
19870 cat >conftest.$ac_ext <<_ACEOF
19871 /* confdefs.h.  */
19872 _ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h.  */
19876
19877 /* Override any GCC internal prototype to avoid an error.
19878    Use char because int might match the return type of a GCC
19879    builtin and then its argument prototype would still apply.  */
19880 #ifdef __cplusplus
19881 extern "C"
19882 #endif
19883 char gnutls_init ();
19884 int
19885 main ()
19886 {
19887 return gnutls_init ();
19888   ;
19889   return 0;
19890 }
19891 _ACEOF
19892 rm -f conftest.$ac_objext conftest$ac_exeext
19893 if { (ac_try="$ac_link"
19894 case "(($ac_try" in
19895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896   *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899   (eval "$ac_link") 2>conftest.er1
19900   ac_status=$?
19901   grep -v '^ *+' conftest.er1 >conftest.err
19902   rm -f conftest.er1
19903   cat conftest.err >&5
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); } && {
19906          test -z "$ac_c_werror_flag" ||
19907          test ! -s conftest.err
19908        } && test -s conftest$ac_exeext &&
19909        $as_test_x conftest$ac_exeext; then
19910   ac_cv_lib_gnutls_gnutls_init=yes
19911 else
19912   echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19914
19915         ac_cv_lib_gnutls_gnutls_init=no
19916 fi
19917
19918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19919       conftest$ac_exeext conftest.$ac_ext
19920 LIBS=$ac_check_lib_save_LIBS
19921 fi
19922 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19923 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19924 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19925   have_gnutls=yes
19926 else
19927   have_gnutls=no
19928 fi
19929
19930
19931                         if test $have_gnutls = yes ; then
19932                                 ol_with_tls=gnutls
19933                                 ol_link_tls=yes
19934
19935                                 TLS_LIBS="-lgnutls"
19936
19937
19938 cat >>confdefs.h <<\_ACEOF
19939 #define HAVE_GNUTLS 1
19940 _ACEOF
19941
19942                         fi
19943                 fi
19944         fi
19945 fi
19946
19947 if test $ol_link_tls = no ; then
19948         if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
19949                 have_moznss=no
19950
19951 for ac_header in nssutil.h
19952 do
19953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19958   echo $ECHO_N "(cached) $ECHO_C" >&6
19959 fi
19960 ac_res=`eval echo '${'$as_ac_Header'}'`
19961                { echo "$as_me:$LINENO: result: $ac_res" >&5
19962 echo "${ECHO_T}$ac_res" >&6; }
19963 else
19964   # Is the header compilable?
19965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h.  */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h.  */
19973 $ac_includes_default
19974 #include <$ac_header>
19975 _ACEOF
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980   *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983   (eval "$ac_compile") 2>conftest.er1
19984   ac_status=$?
19985   grep -v '^ *+' conftest.er1 >conftest.err
19986   rm -f conftest.er1
19987   cat conftest.err >&5
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); } && {
19990          test -z "$ac_c_werror_flag" ||
19991          test ! -s conftest.err
19992        } && test -s conftest.$ac_objext; then
19993   ac_header_compiler=yes
19994 else
19995   echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997
19998         ac_header_compiler=no
19999 fi
20000
20001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20003 echo "${ECHO_T}$ac_header_compiler" >&6; }
20004
20005 # Is the header present?
20006 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20008 cat >conftest.$ac_ext <<_ACEOF
20009 /* confdefs.h.  */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h.  */
20014 #include <$ac_header>
20015 _ACEOF
20016 if { (ac_try="$ac_cpp conftest.$ac_ext"
20017 case "(($ac_try" in
20018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019   *) ac_try_echo=$ac_try;;
20020 esac
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20023   ac_status=$?
20024   grep -v '^ *+' conftest.er1 >conftest.err
20025   rm -f conftest.er1
20026   cat conftest.err >&5
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); } >/dev/null && {
20029          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20030          test ! -s conftest.err
20031        }; then
20032   ac_header_preproc=yes
20033 else
20034   echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20036
20037   ac_header_preproc=no
20038 fi
20039
20040 rm -f conftest.err conftest.$ac_ext
20041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20042 echo "${ECHO_T}$ac_header_preproc" >&6; }
20043
20044 # So?  What about this header?
20045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20046   yes:no: )
20047     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20051     ac_header_preproc=yes
20052     ;;
20053   no:yes:* )
20054     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20056     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20057 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20058     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20060     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20061 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20064     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20066     ( cat <<\_ASBOX
20067 ## --------------------------------------------- ##
20068 ## Report this to <http://www.openldap.org/its/> ##
20069 ## --------------------------------------------- ##
20070 _ASBOX
20071      ) | sed "s/^/$as_me: WARNING:     /" >&2
20072     ;;
20073 esac
20074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20077   echo $ECHO_N "(cached) $ECHO_C" >&6
20078 else
20079   eval "$as_ac_Header=\$ac_header_preproc"
20080 fi
20081 ac_res=`eval echo '${'$as_ac_Header'}'`
20082                { echo "$as_me:$LINENO: result: $ac_res" >&5
20083 echo "${ECHO_T}$ac_res" >&6; }
20084
20085 fi
20086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20087   cat >>confdefs.h <<_ACEOF
20088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20089 _ACEOF
20090
20091 fi
20092
20093 done
20094
20095                 if test "$ac_cv_header_nssutil_h" = yes ; then
20096                         { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
20097 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
20098 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
20099   echo $ECHO_N "(cached) $ECHO_C" >&6
20100 else
20101   ac_check_lib_save_LIBS=$LIBS
20102 LIBS="-lnss3  $LIBS"
20103 cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h.  */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h.  */
20109
20110 /* Override any GCC internal prototype to avoid an error.
20111    Use char because int might match the return type of a GCC
20112    builtin and then its argument prototype would still apply.  */
20113 #ifdef __cplusplus
20114 extern "C"
20115 #endif
20116 char NSS_Initialize ();
20117 int
20118 main ()
20119 {
20120 return NSS_Initialize ();
20121   ;
20122   return 0;
20123 }
20124 _ACEOF
20125 rm -f conftest.$ac_objext conftest$ac_exeext
20126 if { (ac_try="$ac_link"
20127 case "(($ac_try" in
20128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129   *) ac_try_echo=$ac_try;;
20130 esac
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132   (eval "$ac_link") 2>conftest.er1
20133   ac_status=$?
20134   grep -v '^ *+' conftest.er1 >conftest.err
20135   rm -f conftest.er1
20136   cat conftest.err >&5
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); } && {
20139          test -z "$ac_c_werror_flag" ||
20140          test ! -s conftest.err
20141        } && test -s conftest$ac_exeext &&
20142        $as_test_x conftest$ac_exeext; then
20143   ac_cv_lib_nss3_NSS_Initialize=yes
20144 else
20145   echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20147
20148         ac_cv_lib_nss3_NSS_Initialize=no
20149 fi
20150
20151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20152       conftest$ac_exeext conftest.$ac_ext
20153 LIBS=$ac_check_lib_save_LIBS
20154 fi
20155 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
20156 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
20157 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
20158    have_moznss=yes
20159 else
20160    have_moznss=no
20161 fi
20162
20163                 fi
20164
20165                 if test "$have_moznss" = yes ; then
20166                         ol_with_tls=moznss
20167                         ol_link_tls=yes
20168
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE_MOZNSS 1
20171 _ACEOF
20172
20173                         TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
20174                 else
20175                         { { 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
20176 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;}
20177    { (exit 1); exit 1; }; }
20178                 fi
20179         fi
20180 fi
20181
20182 WITH_TLS=no
20183 if test $ol_link_tls = yes ; then
20184
20185 cat >>confdefs.h <<\_ACEOF
20186 #define HAVE_TLS 1
20187 _ACEOF
20188
20189         WITH_TLS=yes
20190 elif test $ol_with_tls = auto ; then
20191         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20192 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20193         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20194 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20195 elif test $ol_with_tls != no ; then
20196         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20197 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20198    { (exit 1); exit 1; }; }
20199 else
20200         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20201 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20202 fi
20203
20204 if test $ol_enable_lmpasswd != no; then
20205         if test $ol_link_tls != yes ; then
20206                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20207 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20208    { (exit 1); exit 1; }; }
20209         fi
20210
20211
20212 cat >>confdefs.h <<\_ACEOF
20213 #define SLAPD_LMHASH 1
20214 _ACEOF
20215
20216 fi
20217
20218 ol_link_threads=no
20219
20220 case $ol_with_threads in auto | yes | nt)
20221
20222
20223         { echo "$as_me:$LINENO: checking for _beginthread" >&5
20224 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20225 if test "${ac_cv_func__beginthread+set}" = set; then
20226   echo $ECHO_N "(cached) $ECHO_C" >&6
20227 else
20228   cat >conftest.$ac_ext <<_ACEOF
20229 /* confdefs.h.  */
20230 _ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h.  */
20234 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20236 #define _beginthread innocuous__beginthread
20237
20238 /* System header to define __stub macros and hopefully few prototypes,
20239     which can conflict with char _beginthread (); below.
20240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20241     <limits.h> exists even on freestanding compilers.  */
20242
20243 #ifdef __STDC__
20244 # include <limits.h>
20245 #else
20246 # include <assert.h>
20247 #endif
20248
20249 #undef _beginthread
20250
20251 /* Override any GCC internal prototype to avoid an error.
20252    Use char because int might match the return type of a GCC
20253    builtin and then its argument prototype would still apply.  */
20254 #ifdef __cplusplus
20255 extern "C"
20256 #endif
20257 char _beginthread ();
20258 /* The GNU C library defines this for functions which it implements
20259     to always fail with ENOSYS.  Some functions are actually named
20260     something starting with __ and the normal name is an alias.  */
20261 #if defined __stub__beginthread || defined __stub____beginthread
20262 choke me
20263 #endif
20264
20265 int
20266 main ()
20267 {
20268 return _beginthread ();
20269   ;
20270   return 0;
20271 }
20272 _ACEOF
20273 rm -f conftest.$ac_objext conftest$ac_exeext
20274 if { (ac_try="$ac_link"
20275 case "(($ac_try" in
20276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277   *) ac_try_echo=$ac_try;;
20278 esac
20279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280   (eval "$ac_link") 2>conftest.er1
20281   ac_status=$?
20282   grep -v '^ *+' conftest.er1 >conftest.err
20283   rm -f conftest.er1
20284   cat conftest.err >&5
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); } && {
20287          test -z "$ac_c_werror_flag" ||
20288          test ! -s conftest.err
20289        } && test -s conftest$ac_exeext &&
20290        $as_test_x conftest$ac_exeext; then
20291   ac_cv_func__beginthread=yes
20292 else
20293   echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20295
20296         ac_cv_func__beginthread=no
20297 fi
20298
20299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20300       conftest$ac_exeext conftest.$ac_ext
20301 fi
20302 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20303 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20304
20305
20306         if test $ac_cv_func__beginthread = yes ; then
20307
20308 cat >>confdefs.h <<\_ACEOF
20309 #define HAVE_NT_THREADS 1
20310 _ACEOF
20311
20312                 ol_cv_nt_threads=yes
20313         fi
20314
20315
20316         if test "$ol_cv_nt_threads" = yes ; then
20317                 ol_link_threads=nt
20318                 ol_with_threads=found
20319                 ol_with_yielding_select=yes
20320
20321
20322 cat >>confdefs.h <<\_ACEOF
20323 #define HAVE_NT_SERVICE_MANAGER 1
20324 _ACEOF
20325
20326
20327 cat >>confdefs.h <<\_ACEOF
20328 #define HAVE_NT_EVENT_LOG 1
20329 _ACEOF
20330
20331         fi
20332
20333         if test $ol_with_threads = nt ; then
20334                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20335 echo "$as_me: error: could not locate NT Threads" >&2;}
20336    { (exit 1); exit 1; }; }
20337         fi
20338         ;;
20339 esac
20340
20341 case $ol_with_threads in auto | yes | posix)
20342
20343
20344 for ac_header in pthread.h
20345 do
20346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20348   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20351   echo $ECHO_N "(cached) $ECHO_C" >&6
20352 fi
20353 ac_res=`eval echo '${'$as_ac_Header'}'`
20354                { echo "$as_me:$LINENO: result: $ac_res" >&5
20355 echo "${ECHO_T}$ac_res" >&6; }
20356 else
20357   # Is the header compilable?
20358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20360 cat >conftest.$ac_ext <<_ACEOF
20361 /* confdefs.h.  */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h.  */
20366 $ac_includes_default
20367 #include <$ac_header>
20368 _ACEOF
20369 rm -f conftest.$ac_objext
20370 if { (ac_try="$ac_compile"
20371 case "(($ac_try" in
20372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373   *) ac_try_echo=$ac_try;;
20374 esac
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376   (eval "$ac_compile") 2>conftest.er1
20377   ac_status=$?
20378   grep -v '^ *+' conftest.er1 >conftest.err
20379   rm -f conftest.er1
20380   cat conftest.err >&5
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); } && {
20383          test -z "$ac_c_werror_flag" ||
20384          test ! -s conftest.err
20385        } && test -s conftest.$ac_objext; then
20386   ac_header_compiler=yes
20387 else
20388   echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20390
20391         ac_header_compiler=no
20392 fi
20393
20394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20396 echo "${ECHO_T}$ac_header_compiler" >&6; }
20397
20398 # Is the header present?
20399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20401 cat >conftest.$ac_ext <<_ACEOF
20402 /* confdefs.h.  */
20403 _ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h.  */
20407 #include <$ac_header>
20408 _ACEOF
20409 if { (ac_try="$ac_cpp conftest.$ac_ext"
20410 case "(($ac_try" in
20411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412   *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20416   ac_status=$?
20417   grep -v '^ *+' conftest.er1 >conftest.err
20418   rm -f conftest.er1
20419   cat conftest.err >&5
20420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421   (exit $ac_status); } >/dev/null && {
20422          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20423          test ! -s conftest.err
20424        }; then
20425   ac_header_preproc=yes
20426 else
20427   echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430   ac_header_preproc=no
20431 fi
20432
20433 rm -f conftest.err conftest.$ac_ext
20434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20435 echo "${ECHO_T}$ac_header_preproc" >&6; }
20436
20437 # So?  What about this header?
20438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20439   yes:no: )
20440     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20444     ac_header_preproc=yes
20445     ;;
20446   no:yes:* )
20447     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20449     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20450 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20451     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20453     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20454 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20457     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20459     ( cat <<\_ASBOX
20460 ## --------------------------------------------- ##
20461 ## Report this to <http://www.openldap.org/its/> ##
20462 ## --------------------------------------------- ##
20463 _ASBOX
20464      ) | sed "s/^/$as_me: WARNING:     /" >&2
20465     ;;
20466 esac
20467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20470   echo $ECHO_N "(cached) $ECHO_C" >&6
20471 else
20472   eval "$as_ac_Header=\$ac_header_preproc"
20473 fi
20474 ac_res=`eval echo '${'$as_ac_Header'}'`
20475                { echo "$as_me:$LINENO: result: $ac_res" >&5
20476 echo "${ECHO_T}$ac_res" >&6; }
20477
20478 fi
20479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20480   cat >>confdefs.h <<_ACEOF
20481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20482 _ACEOF
20483
20484 fi
20485
20486 done
20487
20488
20489         if test $ac_cv_header_pthread_h = yes ; then
20490                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20491 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20492 if test "${ol_cv_pthread_version+set}" = set; then
20493   echo $ECHO_N "(cached) $ECHO_C" >&6
20494 else
20495
20496         cat >conftest.$ac_ext <<_ACEOF
20497 /* confdefs.h.  */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h.  */
20502
20503 #               include <pthread.h>
20504
20505 int
20506 main ()
20507 {
20508
20509                 int i = PTHREAD_CREATE_JOINABLE;
20510
20511   ;
20512   return 0;
20513 }
20514 _ACEOF
20515 rm -f conftest.$ac_objext
20516 if { (ac_try="$ac_compile"
20517 case "(($ac_try" in
20518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519   *) ac_try_echo=$ac_try;;
20520 esac
20521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20522   (eval "$ac_compile") 2>conftest.er1
20523   ac_status=$?
20524   grep -v '^ *+' conftest.er1 >conftest.err
20525   rm -f conftest.er1
20526   cat conftest.err >&5
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); } && {
20529          test -z "$ac_c_werror_flag" ||
20530          test ! -s conftest.err
20531        } && test -s conftest.$ac_objext; then
20532
20533         cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h.  */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h.  */
20539 #include <pthread.h>
20540
20541 _ACEOF
20542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20543   $EGREP "pthread_detach" >/dev/null 2>&1; then
20544   ol_cv_pthread_version=10
20545 else
20546   ol_cv_pthread_version=8
20547 fi
20548 rm -f conftest*
20549
20550 else
20551   echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20553
20554
20555         cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h.  */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h.  */
20561
20562 #               include <pthread.h>
20563 #               ifdef PTHREAD_CREATE_UNDETACHED
20564                 draft7
20565 #               endif
20566
20567 _ACEOF
20568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20569   $EGREP "draft7" >/dev/null 2>&1; then
20570   ol_cv_pthread_version=7
20571 else
20572
20573         cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h.  */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h.  */
20579 #include <pthread.h>
20580
20581 _ACEOF
20582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20583   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20584   ol_cv_pthread_version=6
20585 else
20586
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
20594 #               include <pthread.h>
20595 #ifdef          PTHREAD_MUTEX_INITIALIZER
20596                 draft5
20597 #endif
20598
20599 _ACEOF
20600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20601   $EGREP "draft5" >/dev/null 2>&1; then
20602   ol_cv_pthread_version=5
20603 else
20604   ol_cv_pthread_version=4
20605 fi
20606 rm -f conftest*
20607
20608 fi
20609 rm -f conftest*
20610
20611 fi
20612 rm -f conftest*
20613
20614 fi
20615
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617
20618 fi
20619 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20620 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20621
20622
20623                 if test $ol_cv_pthread_version != 0 ; then
20624
20625 cat >>confdefs.h <<_ACEOF
20626 #define HAVE_PTHREADS $ol_cv_pthread_version
20627 _ACEOF
20628
20629                 else
20630                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20631 echo "$as_me: error: unknown pthread version" >&2;}
20632    { (exit 1); exit 1; }; }
20633                 fi
20634
20635                 # consider threads found
20636                 ol_with_threads=found
20637
20638
20639         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20640 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20641 if test "${ol_cv_header_linux_threads+set}" = set; then
20642   echo $ECHO_N "(cached) $ECHO_C" >&6
20643 else
20644   cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650 #include <pthread.h>
20651 _ACEOF
20652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20653   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20654   ol_cv_header_linux_threads=yes
20655 else
20656   ol_cv_header_linux_threads=no
20657 fi
20658 rm -f conftest*
20659
20660
20661 fi
20662 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20663 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20664         if test $ol_cv_header_linux_threads = yes; then
20665
20666 cat >>confdefs.h <<\_ACEOF
20667 #define HAVE_LINUX_THREADS 1
20668 _ACEOF
20669
20670         fi
20671
20672
20673         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20674 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20675 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20676   echo $ECHO_N "(cached) $ECHO_C" >&6
20677 else
20678   cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h.  */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h.  */
20684 #include <pthread.h>
20685 #ifdef _POSIX_THREAD_IS_GNU_PTH
20686         __gnu_pth__;
20687 #endif
20688
20689 _ACEOF
20690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20691   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20692   ol_cv_header_gnu_pth_pthread_h=yes
20693 else
20694   ol_cv_header_gnu_pth_pthread_h=no
20695 fi
20696 rm -f conftest*
20697
20698
20699 fi
20700 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20701 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20702
20703
20704                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20705
20706 for ac_header in sched.h
20707 do
20708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20710   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20713   echo $ECHO_N "(cached) $ECHO_C" >&6
20714 fi
20715 ac_res=`eval echo '${'$as_ac_Header'}'`
20716                { echo "$as_me:$LINENO: result: $ac_res" >&5
20717 echo "${ECHO_T}$ac_res" >&6; }
20718 else
20719   # Is the header compilable?
20720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20722 cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h.  */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h.  */
20728 $ac_includes_default
20729 #include <$ac_header>
20730 _ACEOF
20731 rm -f conftest.$ac_objext
20732 if { (ac_try="$ac_compile"
20733 case "(($ac_try" in
20734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735   *) ac_try_echo=$ac_try;;
20736 esac
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738   (eval "$ac_compile") 2>conftest.er1
20739   ac_status=$?
20740   grep -v '^ *+' conftest.er1 >conftest.err
20741   rm -f conftest.er1
20742   cat conftest.err >&5
20743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744   (exit $ac_status); } && {
20745          test -z "$ac_c_werror_flag" ||
20746          test ! -s conftest.err
20747        } && test -s conftest.$ac_objext; then
20748   ac_header_compiler=yes
20749 else
20750   echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20752
20753         ac_header_compiler=no
20754 fi
20755
20756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20758 echo "${ECHO_T}$ac_header_compiler" >&6; }
20759
20760 # Is the header present?
20761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769 #include <$ac_header>
20770 _ACEOF
20771 if { (ac_try="$ac_cpp conftest.$ac_ext"
20772 case "(($ac_try" in
20773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774   *) ac_try_echo=$ac_try;;
20775 esac
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20778   ac_status=$?
20779   grep -v '^ *+' conftest.er1 >conftest.err
20780   rm -f conftest.er1
20781   cat conftest.err >&5
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); } >/dev/null && {
20784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20785          test ! -s conftest.err
20786        }; then
20787   ac_header_preproc=yes
20788 else
20789   echo "$as_me: failed program was:" >&5
20790 sed 's/^/| /' conftest.$ac_ext >&5
20791
20792   ac_header_preproc=no
20793 fi
20794
20795 rm -f conftest.err conftest.$ac_ext
20796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20797 echo "${ECHO_T}$ac_header_preproc" >&6; }
20798
20799 # So?  What about this header?
20800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20801   yes:no: )
20802     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20806     ac_header_preproc=yes
20807     ;;
20808   no:yes:* )
20809     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20811     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20812 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20813     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20815     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20816 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20819     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20821     ( cat <<\_ASBOX
20822 ## --------------------------------------------- ##
20823 ## Report this to <http://www.openldap.org/its/> ##
20824 ## --------------------------------------------- ##
20825 _ASBOX
20826      ) | sed "s/^/$as_me: WARNING:     /" >&2
20827     ;;
20828 esac
20829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20832   echo $ECHO_N "(cached) $ECHO_C" >&6
20833 else
20834   eval "$as_ac_Header=\$ac_header_preproc"
20835 fi
20836 ac_res=`eval echo '${'$as_ac_Header'}'`
20837                { echo "$as_me:$LINENO: result: $ac_res" >&5
20838 echo "${ECHO_T}$ac_res" >&6; }
20839
20840 fi
20841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20842   cat >>confdefs.h <<_ACEOF
20843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20844 _ACEOF
20845
20846 fi
20847
20848 done
20849
20850                 fi
20851
20852
20853                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20854 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20855 if test "${ol_cv_pthread_create+set}" = set; then
20856   echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858
20859                         if test "$cross_compiling" = yes; then
20860   cat >conftest.$ac_ext <<_ACEOF
20861 /* confdefs.h.  */
20862 _ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h.  */
20866
20867 /* pthread test headers */
20868 #include <pthread.h>
20869 #if HAVE_PTHREADS < 7
20870 #include <errno.h>
20871 #endif
20872 #ifndef NULL
20873 #define NULL (void*)0
20874 #endif
20875
20876 static void *task(p)
20877         void *p;
20878 {
20879         return (void *) (p == NULL);
20880 }
20881
20882 int
20883 main ()
20884 {
20885
20886         /* pthread test function */
20887 #ifndef PTHREAD_CREATE_DETACHED
20888 #define PTHREAD_CREATE_DETACHED 1
20889 #endif
20890         pthread_t t;
20891         int status;
20892         int detach = PTHREAD_CREATE_DETACHED;
20893
20894 #if HAVE_PTHREADS > 4
20895         /* Final pthreads */
20896         pthread_attr_t attr;
20897
20898         status = pthread_attr_init(&attr);
20899         if( status ) return status;
20900
20901 #if HAVE_PTHREADS < 7
20902         status = pthread_attr_setdetachstate(&attr, &detach);
20903         if( status < 0 ) status = errno;
20904 #else
20905         status = pthread_attr_setdetachstate(&attr, detach);
20906 #endif
20907         if( status ) return status;
20908         status = pthread_create( &t, &attr, task, NULL );
20909 #if HAVE_PTHREADS < 7
20910         if( status < 0 ) status = errno;
20911 #endif
20912         if( status ) return status;
20913 #else
20914         /* Draft 4 pthreads */
20915         status = pthread_create( &t, pthread_attr_default, task, NULL );
20916         if( status ) return errno;
20917
20918         /* give thread a chance to complete */
20919         /* it should remain joinable and hence detachable */
20920         sleep( 1 );
20921
20922         status = pthread_detach( &t );
20923         if( status ) return errno;
20924 #endif
20925
20926 #ifdef HAVE_LINUX_THREADS
20927         pthread_kill_other_threads_np();
20928 #endif
20929
20930         return 0;
20931
20932   ;
20933   return 0;
20934 }
20935 _ACEOF
20936 rm -f conftest.$ac_objext conftest$ac_exeext
20937 if { (ac_try="$ac_link"
20938 case "(($ac_try" in
20939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940   *) ac_try_echo=$ac_try;;
20941 esac
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943   (eval "$ac_link") 2>conftest.er1
20944   ac_status=$?
20945   grep -v '^ *+' conftest.er1 >conftest.err
20946   rm -f conftest.er1
20947   cat conftest.err >&5
20948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949   (exit $ac_status); } && {
20950          test -z "$ac_c_werror_flag" ||
20951          test ! -s conftest.err
20952        } && test -s conftest$ac_exeext &&
20953        $as_test_x conftest$ac_exeext; then
20954   ol_cv_pthread_create=yes
20955 else
20956   echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20958
20959         ol_cv_pthread_create=no
20960 fi
20961
20962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20963       conftest$ac_exeext conftest.$ac_ext
20964 else
20965   cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h.  */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h.  */
20971
20972 /* pthread test headers */
20973 #include <pthread.h>
20974 #if HAVE_PTHREADS < 7
20975 #include <errno.h>
20976 #endif
20977 #ifndef NULL
20978 #define NULL (void*)0
20979 #endif
20980
20981 static void *task(p)
20982         void *p;
20983 {
20984         return (void *) (p == NULL);
20985 }
20986
20987
20988 int main(argc, argv)
20989         int argc;
20990         char **argv;
20991 {
20992
20993         /* pthread test function */
20994 #ifndef PTHREAD_CREATE_DETACHED
20995 #define PTHREAD_CREATE_DETACHED 1
20996 #endif
20997         pthread_t t;
20998         int status;
20999         int detach = PTHREAD_CREATE_DETACHED;
21000
21001 #if HAVE_PTHREADS > 4
21002         /* Final pthreads */
21003         pthread_attr_t attr;
21004
21005         status = pthread_attr_init(&attr);
21006         if( status ) return status;
21007
21008 #if HAVE_PTHREADS < 7
21009         status = pthread_attr_setdetachstate(&attr, &detach);
21010         if( status < 0 ) status = errno;
21011 #else
21012         status = pthread_attr_setdetachstate(&attr, detach);
21013 #endif
21014         if( status ) return status;
21015         status = pthread_create( &t, &attr, task, NULL );
21016 #if HAVE_PTHREADS < 7
21017         if( status < 0 ) status = errno;
21018 #endif
21019         if( status ) return status;
21020 #else
21021         /* Draft 4 pthreads */
21022         status = pthread_create( &t, pthread_attr_default, task, NULL );
21023         if( status ) return errno;
21024
21025         /* give thread a chance to complete */
21026         /* it should remain joinable and hence detachable */
21027         sleep( 1 );
21028
21029         status = pthread_detach( &t );
21030         if( status ) return errno;
21031 #endif
21032
21033 #ifdef HAVE_LINUX_THREADS
21034         pthread_kill_other_threads_np();
21035 #endif
21036
21037         return 0;
21038
21039 }
21040
21041 _ACEOF
21042 rm -f conftest$ac_exeext
21043 if { (ac_try="$ac_link"
21044 case "(($ac_try" in
21045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046   *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049   (eval "$ac_link") 2>&5
21050   ac_status=$?
21051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21053   { (case "(($ac_try" in
21054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055   *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058   (eval "$ac_try") 2>&5
21059   ac_status=$?
21060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061   (exit $ac_status); }; }; then
21062   ol_cv_pthread_create=yes
21063 else
21064   echo "$as_me: program exited with status $ac_status" >&5
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21067
21068 ( exit $ac_status )
21069 ol_cv_pthread_create=no
21070 fi
21071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21072 fi
21073
21074
21075 fi
21076 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
21077 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
21078
21079                 if test $ol_cv_pthread_create != no ; then
21080                         ol_link_threads=posix
21081                         ol_link_pthreads=""
21082                 fi
21083
21084                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
21085 if test "$ol_link_threads" = no ; then
21086         # try -kthread
21087         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21088 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
21089 if test "${ol_cv_pthread_kthread+set}" = set; then
21090   echo $ECHO_N "(cached) $ECHO_C" >&6
21091 else
21092
21093                 # save the flags
21094                 ol_LIBS="$LIBS"
21095                 LIBS="-kthread $LIBS"
21096
21097                 if test "$cross_compiling" = yes; then
21098   cat >conftest.$ac_ext <<_ACEOF
21099 /* confdefs.h.  */
21100 _ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h.  */
21104
21105 /* pthread test headers */
21106 #include <pthread.h>
21107 #if HAVE_PTHREADS < 7
21108 #include <errno.h>
21109 #endif
21110 #ifndef NULL
21111 #define NULL (void*)0
21112 #endif
21113
21114 static void *task(p)
21115         void *p;
21116 {
21117         return (void *) (p == NULL);
21118 }
21119
21120 int
21121 main ()
21122 {
21123
21124         /* pthread test function */
21125 #ifndef PTHREAD_CREATE_DETACHED
21126 #define PTHREAD_CREATE_DETACHED 1
21127 #endif
21128         pthread_t t;
21129         int status;
21130         int detach = PTHREAD_CREATE_DETACHED;
21131
21132 #if HAVE_PTHREADS > 4
21133         /* Final pthreads */
21134         pthread_attr_t attr;
21135
21136         status = pthread_attr_init(&attr);
21137         if( status ) return status;
21138
21139 #if HAVE_PTHREADS < 7
21140         status = pthread_attr_setdetachstate(&attr, &detach);
21141         if( status < 0 ) status = errno;
21142 #else
21143         status = pthread_attr_setdetachstate(&attr, detach);
21144 #endif
21145         if( status ) return status;
21146         status = pthread_create( &t, &attr, task, NULL );
21147 #if HAVE_PTHREADS < 7
21148         if( status < 0 ) status = errno;
21149 #endif
21150         if( status ) return status;
21151 #else
21152         /* Draft 4 pthreads */
21153         status = pthread_create( &t, pthread_attr_default, task, NULL );
21154         if( status ) return errno;
21155
21156         /* give thread a chance to complete */
21157         /* it should remain joinable and hence detachable */
21158         sleep( 1 );
21159
21160         status = pthread_detach( &t );
21161         if( status ) return errno;
21162 #endif
21163
21164 #ifdef HAVE_LINUX_THREADS
21165         pthread_kill_other_threads_np();
21166 #endif
21167
21168         return 0;
21169
21170   ;
21171   return 0;
21172 }
21173 _ACEOF
21174 rm -f conftest.$ac_objext conftest$ac_exeext
21175 if { (ac_try="$ac_link"
21176 case "(($ac_try" in
21177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178   *) ac_try_echo=$ac_try;;
21179 esac
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181   (eval "$ac_link") 2>conftest.er1
21182   ac_status=$?
21183   grep -v '^ *+' conftest.er1 >conftest.err
21184   rm -f conftest.er1
21185   cat conftest.err >&5
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); } && {
21188          test -z "$ac_c_werror_flag" ||
21189          test ! -s conftest.err
21190        } && test -s conftest$ac_exeext &&
21191        $as_test_x conftest$ac_exeext; then
21192   ol_cv_pthread_kthread=yes
21193 else
21194   echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21196
21197         ol_cv_pthread_kthread=no
21198 fi
21199
21200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21201       conftest$ac_exeext conftest.$ac_ext
21202 else
21203   cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h.  */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h.  */
21209
21210 /* pthread test headers */
21211 #include <pthread.h>
21212 #if HAVE_PTHREADS < 7
21213 #include <errno.h>
21214 #endif
21215 #ifndef NULL
21216 #define NULL (void*)0
21217 #endif
21218
21219 static void *task(p)
21220         void *p;
21221 {
21222         return (void *) (p == NULL);
21223 }
21224
21225
21226 int main(argc, argv)
21227         int argc;
21228         char **argv;
21229 {
21230
21231         /* pthread test function */
21232 #ifndef PTHREAD_CREATE_DETACHED
21233 #define PTHREAD_CREATE_DETACHED 1
21234 #endif
21235         pthread_t t;
21236         int status;
21237         int detach = PTHREAD_CREATE_DETACHED;
21238
21239 #if HAVE_PTHREADS > 4
21240         /* Final pthreads */
21241         pthread_attr_t attr;
21242
21243         status = pthread_attr_init(&attr);
21244         if( status ) return status;
21245
21246 #if HAVE_PTHREADS < 7
21247         status = pthread_attr_setdetachstate(&attr, &detach);
21248         if( status < 0 ) status = errno;
21249 #else
21250         status = pthread_attr_setdetachstate(&attr, detach);
21251 #endif
21252         if( status ) return status;
21253         status = pthread_create( &t, &attr, task, NULL );
21254 #if HAVE_PTHREADS < 7
21255         if( status < 0 ) status = errno;
21256 #endif
21257         if( status ) return status;
21258 #else
21259         /* Draft 4 pthreads */
21260         status = pthread_create( &t, pthread_attr_default, task, NULL );
21261         if( status ) return errno;
21262
21263         /* give thread a chance to complete */
21264         /* it should remain joinable and hence detachable */
21265         sleep( 1 );
21266
21267         status = pthread_detach( &t );
21268         if( status ) return errno;
21269 #endif
21270
21271 #ifdef HAVE_LINUX_THREADS
21272         pthread_kill_other_threads_np();
21273 #endif
21274
21275         return 0;
21276
21277 }
21278
21279 _ACEOF
21280 rm -f conftest$ac_exeext
21281 if { (ac_try="$ac_link"
21282 case "(($ac_try" in
21283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284   *) ac_try_echo=$ac_try;;
21285 esac
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287   (eval "$ac_link") 2>&5
21288   ac_status=$?
21289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21291   { (case "(($ac_try" in
21292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293   *) ac_try_echo=$ac_try;;
21294 esac
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296   (eval "$ac_try") 2>&5
21297   ac_status=$?
21298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299   (exit $ac_status); }; }; then
21300   ol_cv_pthread_kthread=yes
21301 else
21302   echo "$as_me: program exited with status $ac_status" >&5
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21305
21306 ( exit $ac_status )
21307 ol_cv_pthread_kthread=no
21308 fi
21309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21310 fi
21311
21312
21313
21314                 # restore the LIBS
21315                 LIBS="$ol_LIBS"
21316
21317 fi
21318 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21319 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21320
21321         if test $ol_cv_pthread_kthread = yes ; then
21322                 ol_link_pthreads="-kthread"
21323                 ol_link_threads=posix
21324         fi
21325 fi
21326
21327                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21328 if test "$ol_link_threads" = no ; then
21329         # try -pthread
21330         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21331 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21332 if test "${ol_cv_pthread_pthread+set}" = set; then
21333   echo $ECHO_N "(cached) $ECHO_C" >&6
21334 else
21335
21336                 # save the flags
21337                 ol_LIBS="$LIBS"
21338                 LIBS="-pthread $LIBS"
21339
21340                 if test "$cross_compiling" = yes; then
21341   cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h.  */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h.  */
21347
21348 /* pthread test headers */
21349 #include <pthread.h>
21350 #if HAVE_PTHREADS < 7
21351 #include <errno.h>
21352 #endif
21353 #ifndef NULL
21354 #define NULL (void*)0
21355 #endif
21356
21357 static void *task(p)
21358         void *p;
21359 {
21360         return (void *) (p == NULL);
21361 }
21362
21363 int
21364 main ()
21365 {
21366
21367         /* pthread test function */
21368 #ifndef PTHREAD_CREATE_DETACHED
21369 #define PTHREAD_CREATE_DETACHED 1
21370 #endif
21371         pthread_t t;
21372         int status;
21373         int detach = PTHREAD_CREATE_DETACHED;
21374
21375 #if HAVE_PTHREADS > 4
21376         /* Final pthreads */
21377         pthread_attr_t attr;
21378
21379         status = pthread_attr_init(&attr);
21380         if( status ) return status;
21381
21382 #if HAVE_PTHREADS < 7
21383         status = pthread_attr_setdetachstate(&attr, &detach);
21384         if( status < 0 ) status = errno;
21385 #else
21386         status = pthread_attr_setdetachstate(&attr, detach);
21387 #endif
21388         if( status ) return status;
21389         status = pthread_create( &t, &attr, task, NULL );
21390 #if HAVE_PTHREADS < 7
21391         if( status < 0 ) status = errno;
21392 #endif
21393         if( status ) return status;
21394 #else
21395         /* Draft 4 pthreads */
21396         status = pthread_create( &t, pthread_attr_default, task, NULL );
21397         if( status ) return errno;
21398
21399         /* give thread a chance to complete */
21400         /* it should remain joinable and hence detachable */
21401         sleep( 1 );
21402
21403         status = pthread_detach( &t );
21404         if( status ) return errno;
21405 #endif
21406
21407 #ifdef HAVE_LINUX_THREADS
21408         pthread_kill_other_threads_np();
21409 #endif
21410
21411         return 0;
21412
21413   ;
21414   return 0;
21415 }
21416 _ACEOF
21417 rm -f conftest.$ac_objext conftest$ac_exeext
21418 if { (ac_try="$ac_link"
21419 case "(($ac_try" in
21420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21421   *) ac_try_echo=$ac_try;;
21422 esac
21423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21424   (eval "$ac_link") 2>conftest.er1
21425   ac_status=$?
21426   grep -v '^ *+' conftest.er1 >conftest.err
21427   rm -f conftest.er1
21428   cat conftest.err >&5
21429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430   (exit $ac_status); } && {
21431          test -z "$ac_c_werror_flag" ||
21432          test ! -s conftest.err
21433        } && test -s conftest$ac_exeext &&
21434        $as_test_x conftest$ac_exeext; then
21435   ol_cv_pthread_pthread=yes
21436 else
21437   echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21439
21440         ol_cv_pthread_pthread=no
21441 fi
21442
21443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21444       conftest$ac_exeext conftest.$ac_ext
21445 else
21446   cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h.  */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h.  */
21452
21453 /* pthread test headers */
21454 #include <pthread.h>
21455 #if HAVE_PTHREADS < 7
21456 #include <errno.h>
21457 #endif
21458 #ifndef NULL
21459 #define NULL (void*)0
21460 #endif
21461
21462 static void *task(p)
21463         void *p;
21464 {
21465         return (void *) (p == NULL);
21466 }
21467
21468
21469 int main(argc, argv)
21470         int argc;
21471         char **argv;
21472 {
21473
21474         /* pthread test function */
21475 #ifndef PTHREAD_CREATE_DETACHED
21476 #define PTHREAD_CREATE_DETACHED 1
21477 #endif
21478         pthread_t t;
21479         int status;
21480         int detach = PTHREAD_CREATE_DETACHED;
21481
21482 #if HAVE_PTHREADS > 4
21483         /* Final pthreads */
21484         pthread_attr_t attr;
21485
21486         status = pthread_attr_init(&attr);
21487         if( status ) return status;
21488
21489 #if HAVE_PTHREADS < 7
21490         status = pthread_attr_setdetachstate(&attr, &detach);
21491         if( status < 0 ) status = errno;
21492 #else
21493         status = pthread_attr_setdetachstate(&attr, detach);
21494 #endif
21495         if( status ) return status;
21496         status = pthread_create( &t, &attr, task, NULL );
21497 #if HAVE_PTHREADS < 7
21498         if( status < 0 ) status = errno;
21499 #endif
21500         if( status ) return status;
21501 #else
21502         /* Draft 4 pthreads */
21503         status = pthread_create( &t, pthread_attr_default, task, NULL );
21504         if( status ) return errno;
21505
21506         /* give thread a chance to complete */
21507         /* it should remain joinable and hence detachable */
21508         sleep( 1 );
21509
21510         status = pthread_detach( &t );
21511         if( status ) return errno;
21512 #endif
21513
21514 #ifdef HAVE_LINUX_THREADS
21515         pthread_kill_other_threads_np();
21516 #endif
21517
21518         return 0;
21519
21520 }
21521
21522 _ACEOF
21523 rm -f conftest$ac_exeext
21524 if { (ac_try="$ac_link"
21525 case "(($ac_try" in
21526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527   *) ac_try_echo=$ac_try;;
21528 esac
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530   (eval "$ac_link") 2>&5
21531   ac_status=$?
21532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21534   { (case "(($ac_try" in
21535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21536   *) ac_try_echo=$ac_try;;
21537 esac
21538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21539   (eval "$ac_try") 2>&5
21540   ac_status=$?
21541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542   (exit $ac_status); }; }; then
21543   ol_cv_pthread_pthread=yes
21544 else
21545   echo "$as_me: program exited with status $ac_status" >&5
21546 echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21548
21549 ( exit $ac_status )
21550 ol_cv_pthread_pthread=no
21551 fi
21552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21553 fi
21554
21555
21556
21557                 # restore the LIBS
21558                 LIBS="$ol_LIBS"
21559
21560 fi
21561 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21562 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21563
21564         if test $ol_cv_pthread_pthread = yes ; then
21565                 ol_link_pthreads="-pthread"
21566                 ol_link_threads=posix
21567         fi
21568 fi
21569
21570                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21571 if test "$ol_link_threads" = no ; then
21572         # try -pthreads
21573         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21574 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21575 if test "${ol_cv_pthread_pthreads+set}" = set; then
21576   echo $ECHO_N "(cached) $ECHO_C" >&6
21577 else
21578
21579                 # save the flags
21580                 ol_LIBS="$LIBS"
21581                 LIBS="-pthreads $LIBS"
21582
21583                 if test "$cross_compiling" = yes; then
21584   cat >conftest.$ac_ext <<_ACEOF
21585 /* confdefs.h.  */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h.  */
21590
21591 /* pthread test headers */
21592 #include <pthread.h>
21593 #if HAVE_PTHREADS < 7
21594 #include <errno.h>
21595 #endif
21596 #ifndef NULL
21597 #define NULL (void*)0
21598 #endif
21599
21600 static void *task(p)
21601         void *p;
21602 {
21603         return (void *) (p == NULL);
21604 }
21605
21606 int
21607 main ()
21608 {
21609
21610         /* pthread test function */
21611 #ifndef PTHREAD_CREATE_DETACHED
21612 #define PTHREAD_CREATE_DETACHED 1
21613 #endif
21614         pthread_t t;
21615         int status;
21616         int detach = PTHREAD_CREATE_DETACHED;
21617
21618 #if HAVE_PTHREADS > 4
21619         /* Final pthreads */
21620         pthread_attr_t attr;
21621
21622         status = pthread_attr_init(&attr);
21623         if( status ) return status;
21624
21625 #if HAVE_PTHREADS < 7
21626         status = pthread_attr_setdetachstate(&attr, &detach);
21627         if( status < 0 ) status = errno;
21628 #else
21629         status = pthread_attr_setdetachstate(&attr, detach);
21630 #endif
21631         if( status ) return status;
21632         status = pthread_create( &t, &attr, task, NULL );
21633 #if HAVE_PTHREADS < 7
21634         if( status < 0 ) status = errno;
21635 #endif
21636         if( status ) return status;
21637 #else
21638         /* Draft 4 pthreads */
21639         status = pthread_create( &t, pthread_attr_default, task, NULL );
21640         if( status ) return errno;
21641
21642         /* give thread a chance to complete */
21643         /* it should remain joinable and hence detachable */
21644         sleep( 1 );
21645
21646         status = pthread_detach( &t );
21647         if( status ) return errno;
21648 #endif
21649
21650 #ifdef HAVE_LINUX_THREADS
21651         pthread_kill_other_threads_np();
21652 #endif
21653
21654         return 0;
21655
21656   ;
21657   return 0;
21658 }
21659 _ACEOF
21660 rm -f conftest.$ac_objext conftest$ac_exeext
21661 if { (ac_try="$ac_link"
21662 case "(($ac_try" in
21663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664   *) ac_try_echo=$ac_try;;
21665 esac
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667   (eval "$ac_link") 2>conftest.er1
21668   ac_status=$?
21669   grep -v '^ *+' conftest.er1 >conftest.err
21670   rm -f conftest.er1
21671   cat conftest.err >&5
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); } && {
21674          test -z "$ac_c_werror_flag" ||
21675          test ! -s conftest.err
21676        } && test -s conftest$ac_exeext &&
21677        $as_test_x conftest$ac_exeext; then
21678   ol_cv_pthread_pthreads=yes
21679 else
21680   echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21682
21683         ol_cv_pthread_pthreads=no
21684 fi
21685
21686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21687       conftest$ac_exeext conftest.$ac_ext
21688 else
21689   cat >conftest.$ac_ext <<_ACEOF
21690 /* confdefs.h.  */
21691 _ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h.  */
21695
21696 /* pthread test headers */
21697 #include <pthread.h>
21698 #if HAVE_PTHREADS < 7
21699 #include <errno.h>
21700 #endif
21701 #ifndef NULL
21702 #define NULL (void*)0
21703 #endif
21704
21705 static void *task(p)
21706         void *p;
21707 {
21708         return (void *) (p == NULL);
21709 }
21710
21711
21712 int main(argc, argv)
21713         int argc;
21714         char **argv;
21715 {
21716
21717         /* pthread test function */
21718 #ifndef PTHREAD_CREATE_DETACHED
21719 #define PTHREAD_CREATE_DETACHED 1
21720 #endif
21721         pthread_t t;
21722         int status;
21723         int detach = PTHREAD_CREATE_DETACHED;
21724
21725 #if HAVE_PTHREADS > 4
21726         /* Final pthreads */
21727         pthread_attr_t attr;
21728
21729         status = pthread_attr_init(&attr);
21730         if( status ) return status;
21731
21732 #if HAVE_PTHREADS < 7
21733         status = pthread_attr_setdetachstate(&attr, &detach);
21734         if( status < 0 ) status = errno;
21735 #else
21736         status = pthread_attr_setdetachstate(&attr, detach);
21737 #endif
21738         if( status ) return status;
21739         status = pthread_create( &t, &attr, task, NULL );
21740 #if HAVE_PTHREADS < 7
21741         if( status < 0 ) status = errno;
21742 #endif
21743         if( status ) return status;
21744 #else
21745         /* Draft 4 pthreads */
21746         status = pthread_create( &t, pthread_attr_default, task, NULL );
21747         if( status ) return errno;
21748
21749         /* give thread a chance to complete */
21750         /* it should remain joinable and hence detachable */
21751         sleep( 1 );
21752
21753         status = pthread_detach( &t );
21754         if( status ) return errno;
21755 #endif
21756
21757 #ifdef HAVE_LINUX_THREADS
21758         pthread_kill_other_threads_np();
21759 #endif
21760
21761         return 0;
21762
21763 }
21764
21765 _ACEOF
21766 rm -f conftest$ac_exeext
21767 if { (ac_try="$ac_link"
21768 case "(($ac_try" in
21769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770   *) ac_try_echo=$ac_try;;
21771 esac
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773   (eval "$ac_link") 2>&5
21774   ac_status=$?
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21777   { (case "(($ac_try" in
21778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779   *) ac_try_echo=$ac_try;;
21780 esac
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782   (eval "$ac_try") 2>&5
21783   ac_status=$?
21784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785   (exit $ac_status); }; }; then
21786   ol_cv_pthread_pthreads=yes
21787 else
21788   echo "$as_me: program exited with status $ac_status" >&5
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21791
21792 ( exit $ac_status )
21793 ol_cv_pthread_pthreads=no
21794 fi
21795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21796 fi
21797
21798
21799
21800                 # restore the LIBS
21801                 LIBS="$ol_LIBS"
21802
21803 fi
21804 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21805 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21806
21807         if test $ol_cv_pthread_pthreads = yes ; then
21808                 ol_link_pthreads="-pthreads"
21809                 ol_link_threads=posix
21810         fi
21811 fi
21812
21813                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21814 if test "$ol_link_threads" = no ; then
21815         # try -mthreads
21816         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21817 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21818 if test "${ol_cv_pthread_mthreads+set}" = set; then
21819   echo $ECHO_N "(cached) $ECHO_C" >&6
21820 else
21821
21822                 # save the flags
21823                 ol_LIBS="$LIBS"
21824                 LIBS="-mthreads $LIBS"
21825
21826                 if test "$cross_compiling" = yes; then
21827   cat >conftest.$ac_ext <<_ACEOF
21828 /* confdefs.h.  */
21829 _ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h.  */
21833
21834 /* pthread test headers */
21835 #include <pthread.h>
21836 #if HAVE_PTHREADS < 7
21837 #include <errno.h>
21838 #endif
21839 #ifndef NULL
21840 #define NULL (void*)0
21841 #endif
21842
21843 static void *task(p)
21844         void *p;
21845 {
21846         return (void *) (p == NULL);
21847 }
21848
21849 int
21850 main ()
21851 {
21852
21853         /* pthread test function */
21854 #ifndef PTHREAD_CREATE_DETACHED
21855 #define PTHREAD_CREATE_DETACHED 1
21856 #endif
21857         pthread_t t;
21858         int status;
21859         int detach = PTHREAD_CREATE_DETACHED;
21860
21861 #if HAVE_PTHREADS > 4
21862         /* Final pthreads */
21863         pthread_attr_t attr;
21864
21865         status = pthread_attr_init(&attr);
21866         if( status ) return status;
21867
21868 #if HAVE_PTHREADS < 7
21869         status = pthread_attr_setdetachstate(&attr, &detach);
21870         if( status < 0 ) status = errno;
21871 #else
21872         status = pthread_attr_setdetachstate(&attr, detach);
21873 #endif
21874         if( status ) return status;
21875         status = pthread_create( &t, &attr, task, NULL );
21876 #if HAVE_PTHREADS < 7
21877         if( status < 0 ) status = errno;
21878 #endif
21879         if( status ) return status;
21880 #else
21881         /* Draft 4 pthreads */
21882         status = pthread_create( &t, pthread_attr_default, task, NULL );
21883         if( status ) return errno;
21884
21885         /* give thread a chance to complete */
21886         /* it should remain joinable and hence detachable */
21887         sleep( 1 );
21888
21889         status = pthread_detach( &t );
21890         if( status ) return errno;
21891 #endif
21892
21893 #ifdef HAVE_LINUX_THREADS
21894         pthread_kill_other_threads_np();
21895 #endif
21896
21897         return 0;
21898
21899   ;
21900   return 0;
21901 }
21902 _ACEOF
21903 rm -f conftest.$ac_objext conftest$ac_exeext
21904 if { (ac_try="$ac_link"
21905 case "(($ac_try" in
21906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907   *) ac_try_echo=$ac_try;;
21908 esac
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910   (eval "$ac_link") 2>conftest.er1
21911   ac_status=$?
21912   grep -v '^ *+' conftest.er1 >conftest.err
21913   rm -f conftest.er1
21914   cat conftest.err >&5
21915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916   (exit $ac_status); } && {
21917          test -z "$ac_c_werror_flag" ||
21918          test ! -s conftest.err
21919        } && test -s conftest$ac_exeext &&
21920        $as_test_x conftest$ac_exeext; then
21921   ol_cv_pthread_mthreads=yes
21922 else
21923   echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21925
21926         ol_cv_pthread_mthreads=no
21927 fi
21928
21929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21930       conftest$ac_exeext conftest.$ac_ext
21931 else
21932   cat >conftest.$ac_ext <<_ACEOF
21933 /* confdefs.h.  */
21934 _ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h.  */
21938
21939 /* pthread test headers */
21940 #include <pthread.h>
21941 #if HAVE_PTHREADS < 7
21942 #include <errno.h>
21943 #endif
21944 #ifndef NULL
21945 #define NULL (void*)0
21946 #endif
21947
21948 static void *task(p)
21949         void *p;
21950 {
21951         return (void *) (p == NULL);
21952 }
21953
21954
21955 int main(argc, argv)
21956         int argc;
21957         char **argv;
21958 {
21959
21960         /* pthread test function */
21961 #ifndef PTHREAD_CREATE_DETACHED
21962 #define PTHREAD_CREATE_DETACHED 1
21963 #endif
21964         pthread_t t;
21965         int status;
21966         int detach = PTHREAD_CREATE_DETACHED;
21967
21968 #if HAVE_PTHREADS > 4
21969         /* Final pthreads */
21970         pthread_attr_t attr;
21971
21972         status = pthread_attr_init(&attr);
21973         if( status ) return status;
21974
21975 #if HAVE_PTHREADS < 7
21976         status = pthread_attr_setdetachstate(&attr, &detach);
21977         if( status < 0 ) status = errno;
21978 #else
21979         status = pthread_attr_setdetachstate(&attr, detach);
21980 #endif
21981         if( status ) return status;
21982         status = pthread_create( &t, &attr, task, NULL );
21983 #if HAVE_PTHREADS < 7
21984         if( status < 0 ) status = errno;
21985 #endif
21986         if( status ) return status;
21987 #else
21988         /* Draft 4 pthreads */
21989         status = pthread_create( &t, pthread_attr_default, task, NULL );
21990         if( status ) return errno;
21991
21992         /* give thread a chance to complete */
21993         /* it should remain joinable and hence detachable */
21994         sleep( 1 );
21995
21996         status = pthread_detach( &t );
21997         if( status ) return errno;
21998 #endif
21999
22000 #ifdef HAVE_LINUX_THREADS
22001         pthread_kill_other_threads_np();
22002 #endif
22003
22004         return 0;
22005
22006 }
22007
22008 _ACEOF
22009 rm -f conftest$ac_exeext
22010 if { (ac_try="$ac_link"
22011 case "(($ac_try" in
22012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013   *) ac_try_echo=$ac_try;;
22014 esac
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016   (eval "$ac_link") 2>&5
22017   ac_status=$?
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22020   { (case "(($ac_try" in
22021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022   *) ac_try_echo=$ac_try;;
22023 esac
22024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025   (eval "$ac_try") 2>&5
22026   ac_status=$?
22027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); }; }; then
22029   ol_cv_pthread_mthreads=yes
22030 else
22031   echo "$as_me: program exited with status $ac_status" >&5
22032 echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22034
22035 ( exit $ac_status )
22036 ol_cv_pthread_mthreads=no
22037 fi
22038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22039 fi
22040
22041
22042
22043                 # restore the LIBS
22044                 LIBS="$ol_LIBS"
22045
22046 fi
22047 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
22048 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
22049
22050         if test $ol_cv_pthread_mthreads = yes ; then
22051                 ol_link_pthreads="-mthreads"
22052                 ol_link_threads=posix
22053         fi
22054 fi
22055
22056                 # Pthread try link: -thread (ol_cv_pthread_thread)
22057 if test "$ol_link_threads" = no ; then
22058         # try -thread
22059         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
22060 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
22061 if test "${ol_cv_pthread_thread+set}" = set; then
22062   echo $ECHO_N "(cached) $ECHO_C" >&6
22063 else
22064
22065                 # save the flags
22066                 ol_LIBS="$LIBS"
22067                 LIBS="-thread $LIBS"
22068
22069                 if test "$cross_compiling" = yes; then
22070   cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h.  */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h.  */
22076
22077 /* pthread test headers */
22078 #include <pthread.h>
22079 #if HAVE_PTHREADS < 7
22080 #include <errno.h>
22081 #endif
22082 #ifndef NULL
22083 #define NULL (void*)0
22084 #endif
22085
22086 static void *task(p)
22087         void *p;
22088 {
22089         return (void *) (p == NULL);
22090 }
22091
22092 int
22093 main ()
22094 {
22095
22096         /* pthread test function */
22097 #ifndef PTHREAD_CREATE_DETACHED
22098 #define PTHREAD_CREATE_DETACHED 1
22099 #endif
22100         pthread_t t;
22101         int status;
22102         int detach = PTHREAD_CREATE_DETACHED;
22103
22104 #if HAVE_PTHREADS > 4
22105         /* Final pthreads */
22106         pthread_attr_t attr;
22107
22108         status = pthread_attr_init(&attr);
22109         if( status ) return status;
22110
22111 #if HAVE_PTHREADS < 7
22112         status = pthread_attr_setdetachstate(&attr, &detach);
22113         if( status < 0 ) status = errno;
22114 #else
22115         status = pthread_attr_setdetachstate(&attr, detach);
22116 #endif
22117         if( status ) return status;
22118         status = pthread_create( &t, &attr, task, NULL );
22119 #if HAVE_PTHREADS < 7
22120         if( status < 0 ) status = errno;
22121 #endif
22122         if( status ) return status;
22123 #else
22124         /* Draft 4 pthreads */
22125         status = pthread_create( &t, pthread_attr_default, task, NULL );
22126         if( status ) return errno;
22127
22128         /* give thread a chance to complete */
22129         /* it should remain joinable and hence detachable */
22130         sleep( 1 );
22131
22132         status = pthread_detach( &t );
22133         if( status ) return errno;
22134 #endif
22135
22136 #ifdef HAVE_LINUX_THREADS
22137         pthread_kill_other_threads_np();
22138 #endif
22139
22140         return 0;
22141
22142   ;
22143   return 0;
22144 }
22145 _ACEOF
22146 rm -f conftest.$ac_objext conftest$ac_exeext
22147 if { (ac_try="$ac_link"
22148 case "(($ac_try" in
22149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22150   *) ac_try_echo=$ac_try;;
22151 esac
22152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22153   (eval "$ac_link") 2>conftest.er1
22154   ac_status=$?
22155   grep -v '^ *+' conftest.er1 >conftest.err
22156   rm -f conftest.er1
22157   cat conftest.err >&5
22158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159   (exit $ac_status); } && {
22160          test -z "$ac_c_werror_flag" ||
22161          test ! -s conftest.err
22162        } && test -s conftest$ac_exeext &&
22163        $as_test_x conftest$ac_exeext; then
22164   ol_cv_pthread_thread=yes
22165 else
22166   echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22168
22169         ol_cv_pthread_thread=no
22170 fi
22171
22172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22173       conftest$ac_exeext conftest.$ac_ext
22174 else
22175   cat >conftest.$ac_ext <<_ACEOF
22176 /* confdefs.h.  */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h.  */
22181
22182 /* pthread test headers */
22183 #include <pthread.h>
22184 #if HAVE_PTHREADS < 7
22185 #include <errno.h>
22186 #endif
22187 #ifndef NULL
22188 #define NULL (void*)0
22189 #endif
22190
22191 static void *task(p)
22192         void *p;
22193 {
22194         return (void *) (p == NULL);
22195 }
22196
22197
22198 int main(argc, argv)
22199         int argc;
22200         char **argv;
22201 {
22202
22203         /* pthread test function */
22204 #ifndef PTHREAD_CREATE_DETACHED
22205 #define PTHREAD_CREATE_DETACHED 1
22206 #endif
22207         pthread_t t;
22208         int status;
22209         int detach = PTHREAD_CREATE_DETACHED;
22210
22211 #if HAVE_PTHREADS > 4
22212         /* Final pthreads */
22213         pthread_attr_t attr;
22214
22215         status = pthread_attr_init(&attr);
22216         if( status ) return status;
22217
22218 #if HAVE_PTHREADS < 7
22219         status = pthread_attr_setdetachstate(&attr, &detach);
22220         if( status < 0 ) status = errno;
22221 #else
22222         status = pthread_attr_setdetachstate(&attr, detach);
22223 #endif
22224         if( status ) return status;
22225         status = pthread_create( &t, &attr, task, NULL );
22226 #if HAVE_PTHREADS < 7
22227         if( status < 0 ) status = errno;
22228 #endif
22229         if( status ) return status;
22230 #else
22231         /* Draft 4 pthreads */
22232         status = pthread_create( &t, pthread_attr_default, task, NULL );
22233         if( status ) return errno;
22234
22235         /* give thread a chance to complete */
22236         /* it should remain joinable and hence detachable */
22237         sleep( 1 );
22238
22239         status = pthread_detach( &t );
22240         if( status ) return errno;
22241 #endif
22242
22243 #ifdef HAVE_LINUX_THREADS
22244         pthread_kill_other_threads_np();
22245 #endif
22246
22247         return 0;
22248
22249 }
22250
22251 _ACEOF
22252 rm -f conftest$ac_exeext
22253 if { (ac_try="$ac_link"
22254 case "(($ac_try" in
22255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22256   *) ac_try_echo=$ac_try;;
22257 esac
22258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22259   (eval "$ac_link") 2>&5
22260   ac_status=$?
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22263   { (case "(($ac_try" in
22264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265   *) ac_try_echo=$ac_try;;
22266 esac
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268   (eval "$ac_try") 2>&5
22269   ac_status=$?
22270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271   (exit $ac_status); }; }; then
22272   ol_cv_pthread_thread=yes
22273 else
22274   echo "$as_me: program exited with status $ac_status" >&5
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22277
22278 ( exit $ac_status )
22279 ol_cv_pthread_thread=no
22280 fi
22281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22282 fi
22283
22284
22285
22286                 # restore the LIBS
22287                 LIBS="$ol_LIBS"
22288
22289 fi
22290 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22291 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22292
22293         if test $ol_cv_pthread_thread = yes ; then
22294                 ol_link_pthreads="-thread"
22295                 ol_link_threads=posix
22296         fi
22297 fi
22298
22299
22300                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22301 if test "$ol_link_threads" = no ; then
22302         # try -lpthread -lmach -lexc -lc_r
22303         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22304 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22305 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22306   echo $ECHO_N "(cached) $ECHO_C" >&6
22307 else
22308
22309                 # save the flags
22310                 ol_LIBS="$LIBS"
22311                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22312
22313                 if test "$cross_compiling" = yes; then
22314   cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h.  */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h.  */
22320
22321 /* pthread test headers */
22322 #include <pthread.h>
22323 #if HAVE_PTHREADS < 7
22324 #include <errno.h>
22325 #endif
22326 #ifndef NULL
22327 #define NULL (void*)0
22328 #endif
22329
22330 static void *task(p)
22331         void *p;
22332 {
22333         return (void *) (p == NULL);
22334 }
22335
22336 int
22337 main ()
22338 {
22339
22340         /* pthread test function */
22341 #ifndef PTHREAD_CREATE_DETACHED
22342 #define PTHREAD_CREATE_DETACHED 1
22343 #endif
22344         pthread_t t;
22345         int status;
22346         int detach = PTHREAD_CREATE_DETACHED;
22347
22348 #if HAVE_PTHREADS > 4
22349         /* Final pthreads */
22350         pthread_attr_t attr;
22351
22352         status = pthread_attr_init(&attr);
22353         if( status ) return status;
22354
22355 #if HAVE_PTHREADS < 7
22356         status = pthread_attr_setdetachstate(&attr, &detach);
22357         if( status < 0 ) status = errno;
22358 #else
22359         status = pthread_attr_setdetachstate(&attr, detach);
22360 #endif
22361         if( status ) return status;
22362         status = pthread_create( &t, &attr, task, NULL );
22363 #if HAVE_PTHREADS < 7
22364         if( status < 0 ) status = errno;
22365 #endif
22366         if( status ) return status;
22367 #else
22368         /* Draft 4 pthreads */
22369         status = pthread_create( &t, pthread_attr_default, task, NULL );
22370         if( status ) return errno;
22371
22372         /* give thread a chance to complete */
22373         /* it should remain joinable and hence detachable */
22374         sleep( 1 );
22375
22376         status = pthread_detach( &t );
22377         if( status ) return errno;
22378 #endif
22379
22380 #ifdef HAVE_LINUX_THREADS
22381         pthread_kill_other_threads_np();
22382 #endif
22383
22384         return 0;
22385
22386   ;
22387   return 0;
22388 }
22389 _ACEOF
22390 rm -f conftest.$ac_objext conftest$ac_exeext
22391 if { (ac_try="$ac_link"
22392 case "(($ac_try" in
22393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394   *) ac_try_echo=$ac_try;;
22395 esac
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397   (eval "$ac_link") 2>conftest.er1
22398   ac_status=$?
22399   grep -v '^ *+' conftest.er1 >conftest.err
22400   rm -f conftest.er1
22401   cat conftest.err >&5
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); } && {
22404          test -z "$ac_c_werror_flag" ||
22405          test ! -s conftest.err
22406        } && test -s conftest$ac_exeext &&
22407        $as_test_x conftest$ac_exeext; then
22408   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22409 else
22410   echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22412
22413         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22414 fi
22415
22416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22417       conftest$ac_exeext conftest.$ac_ext
22418 else
22419   cat >conftest.$ac_ext <<_ACEOF
22420 /* confdefs.h.  */
22421 _ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h.  */
22425
22426 /* pthread test headers */
22427 #include <pthread.h>
22428 #if HAVE_PTHREADS < 7
22429 #include <errno.h>
22430 #endif
22431 #ifndef NULL
22432 #define NULL (void*)0
22433 #endif
22434
22435 static void *task(p)
22436         void *p;
22437 {
22438         return (void *) (p == NULL);
22439 }
22440
22441
22442 int main(argc, argv)
22443         int argc;
22444         char **argv;
22445 {
22446
22447         /* pthread test function */
22448 #ifndef PTHREAD_CREATE_DETACHED
22449 #define PTHREAD_CREATE_DETACHED 1
22450 #endif
22451         pthread_t t;
22452         int status;
22453         int detach = PTHREAD_CREATE_DETACHED;
22454
22455 #if HAVE_PTHREADS > 4
22456         /* Final pthreads */
22457         pthread_attr_t attr;
22458
22459         status = pthread_attr_init(&attr);
22460         if( status ) return status;
22461
22462 #if HAVE_PTHREADS < 7
22463         status = pthread_attr_setdetachstate(&attr, &detach);
22464         if( status < 0 ) status = errno;
22465 #else
22466         status = pthread_attr_setdetachstate(&attr, detach);
22467 #endif
22468         if( status ) return status;
22469         status = pthread_create( &t, &attr, task, NULL );
22470 #if HAVE_PTHREADS < 7
22471         if( status < 0 ) status = errno;
22472 #endif
22473         if( status ) return status;
22474 #else
22475         /* Draft 4 pthreads */
22476         status = pthread_create( &t, pthread_attr_default, task, NULL );
22477         if( status ) return errno;
22478
22479         /* give thread a chance to complete */
22480         /* it should remain joinable and hence detachable */
22481         sleep( 1 );
22482
22483         status = pthread_detach( &t );
22484         if( status ) return errno;
22485 #endif
22486
22487 #ifdef HAVE_LINUX_THREADS
22488         pthread_kill_other_threads_np();
22489 #endif
22490
22491         return 0;
22492
22493 }
22494
22495 _ACEOF
22496 rm -f conftest$ac_exeext
22497 if { (ac_try="$ac_link"
22498 case "(($ac_try" in
22499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500   *) ac_try_echo=$ac_try;;
22501 esac
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503   (eval "$ac_link") 2>&5
22504   ac_status=$?
22505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22507   { (case "(($ac_try" in
22508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509   *) ac_try_echo=$ac_try;;
22510 esac
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512   (eval "$ac_try") 2>&5
22513   ac_status=$?
22514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515   (exit $ac_status); }; }; then
22516   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22517 else
22518   echo "$as_me: program exited with status $ac_status" >&5
22519 echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.$ac_ext >&5
22521
22522 ( exit $ac_status )
22523 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22524 fi
22525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22526 fi
22527
22528
22529
22530                 # restore the LIBS
22531                 LIBS="$ol_LIBS"
22532
22533 fi
22534 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22535 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22536
22537         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22538                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22539                 ol_link_threads=posix
22540         fi
22541 fi
22542
22543                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22544 if test "$ol_link_threads" = no ; then
22545         # try -lpthread -lmach -lexc
22546         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22547 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22548 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22549   echo $ECHO_N "(cached) $ECHO_C" >&6
22550 else
22551
22552                 # save the flags
22553                 ol_LIBS="$LIBS"
22554                 LIBS="-lpthread -lmach -lexc $LIBS"
22555
22556                 if test "$cross_compiling" = yes; then
22557   cat >conftest.$ac_ext <<_ACEOF
22558 /* confdefs.h.  */
22559 _ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h.  */
22563
22564 /* pthread test headers */
22565 #include <pthread.h>
22566 #if HAVE_PTHREADS < 7
22567 #include <errno.h>
22568 #endif
22569 #ifndef NULL
22570 #define NULL (void*)0
22571 #endif
22572
22573 static void *task(p)
22574         void *p;
22575 {
22576         return (void *) (p == NULL);
22577 }
22578
22579 int
22580 main ()
22581 {
22582
22583         /* pthread test function */
22584 #ifndef PTHREAD_CREATE_DETACHED
22585 #define PTHREAD_CREATE_DETACHED 1
22586 #endif
22587         pthread_t t;
22588         int status;
22589         int detach = PTHREAD_CREATE_DETACHED;
22590
22591 #if HAVE_PTHREADS > 4
22592         /* Final pthreads */
22593         pthread_attr_t attr;
22594
22595         status = pthread_attr_init(&attr);
22596         if( status ) return status;
22597
22598 #if HAVE_PTHREADS < 7
22599         status = pthread_attr_setdetachstate(&attr, &detach);
22600         if( status < 0 ) status = errno;
22601 #else
22602         status = pthread_attr_setdetachstate(&attr, detach);
22603 #endif
22604         if( status ) return status;
22605         status = pthread_create( &t, &attr, task, NULL );
22606 #if HAVE_PTHREADS < 7
22607         if( status < 0 ) status = errno;
22608 #endif
22609         if( status ) return status;
22610 #else
22611         /* Draft 4 pthreads */
22612         status = pthread_create( &t, pthread_attr_default, task, NULL );
22613         if( status ) return errno;
22614
22615         /* give thread a chance to complete */
22616         /* it should remain joinable and hence detachable */
22617         sleep( 1 );
22618
22619         status = pthread_detach( &t );
22620         if( status ) return errno;
22621 #endif
22622
22623 #ifdef HAVE_LINUX_THREADS
22624         pthread_kill_other_threads_np();
22625 #endif
22626
22627         return 0;
22628
22629   ;
22630   return 0;
22631 }
22632 _ACEOF
22633 rm -f conftest.$ac_objext conftest$ac_exeext
22634 if { (ac_try="$ac_link"
22635 case "(($ac_try" in
22636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637   *) ac_try_echo=$ac_try;;
22638 esac
22639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22640   (eval "$ac_link") 2>conftest.er1
22641   ac_status=$?
22642   grep -v '^ *+' conftest.er1 >conftest.err
22643   rm -f conftest.er1
22644   cat conftest.err >&5
22645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646   (exit $ac_status); } && {
22647          test -z "$ac_c_werror_flag" ||
22648          test ! -s conftest.err
22649        } && test -s conftest$ac_exeext &&
22650        $as_test_x conftest$ac_exeext; then
22651   ol_cv_pthread_lpthread_lmach_lexc=yes
22652 else
22653   echo "$as_me: failed program was:" >&5
22654 sed 's/^/| /' conftest.$ac_ext >&5
22655
22656         ol_cv_pthread_lpthread_lmach_lexc=no
22657 fi
22658
22659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22660       conftest$ac_exeext conftest.$ac_ext
22661 else
22662   cat >conftest.$ac_ext <<_ACEOF
22663 /* confdefs.h.  */
22664 _ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h.  */
22668
22669 /* pthread test headers */
22670 #include <pthread.h>
22671 #if HAVE_PTHREADS < 7
22672 #include <errno.h>
22673 #endif
22674 #ifndef NULL
22675 #define NULL (void*)0
22676 #endif
22677
22678 static void *task(p)
22679         void *p;
22680 {
22681         return (void *) (p == NULL);
22682 }
22683
22684
22685 int main(argc, argv)
22686         int argc;
22687         char **argv;
22688 {
22689
22690         /* pthread test function */
22691 #ifndef PTHREAD_CREATE_DETACHED
22692 #define PTHREAD_CREATE_DETACHED 1
22693 #endif
22694         pthread_t t;
22695         int status;
22696         int detach = PTHREAD_CREATE_DETACHED;
22697
22698 #if HAVE_PTHREADS > 4
22699         /* Final pthreads */
22700         pthread_attr_t attr;
22701
22702         status = pthread_attr_init(&attr);
22703         if( status ) return status;
22704
22705 #if HAVE_PTHREADS < 7
22706         status = pthread_attr_setdetachstate(&attr, &detach);
22707         if( status < 0 ) status = errno;
22708 #else
22709         status = pthread_attr_setdetachstate(&attr, detach);
22710 #endif
22711         if( status ) return status;
22712         status = pthread_create( &t, &attr, task, NULL );
22713 #if HAVE_PTHREADS < 7
22714         if( status < 0 ) status = errno;
22715 #endif
22716         if( status ) return status;
22717 #else
22718         /* Draft 4 pthreads */
22719         status = pthread_create( &t, pthread_attr_default, task, NULL );
22720         if( status ) return errno;
22721
22722         /* give thread a chance to complete */
22723         /* it should remain joinable and hence detachable */
22724         sleep( 1 );
22725
22726         status = pthread_detach( &t );
22727         if( status ) return errno;
22728 #endif
22729
22730 #ifdef HAVE_LINUX_THREADS
22731         pthread_kill_other_threads_np();
22732 #endif
22733
22734         return 0;
22735
22736 }
22737
22738 _ACEOF
22739 rm -f conftest$ac_exeext
22740 if { (ac_try="$ac_link"
22741 case "(($ac_try" in
22742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743   *) ac_try_echo=$ac_try;;
22744 esac
22745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746   (eval "$ac_link") 2>&5
22747   ac_status=$?
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22750   { (case "(($ac_try" in
22751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752   *) ac_try_echo=$ac_try;;
22753 esac
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755   (eval "$ac_try") 2>&5
22756   ac_status=$?
22757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758   (exit $ac_status); }; }; then
22759   ol_cv_pthread_lpthread_lmach_lexc=yes
22760 else
22761   echo "$as_me: program exited with status $ac_status" >&5
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22764
22765 ( exit $ac_status )
22766 ol_cv_pthread_lpthread_lmach_lexc=no
22767 fi
22768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22769 fi
22770
22771
22772
22773                 # restore the LIBS
22774                 LIBS="$ol_LIBS"
22775
22776 fi
22777 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22778 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22779
22780         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22781                 ol_link_pthreads="-lpthread -lmach -lexc"
22782                 ol_link_threads=posix
22783         fi
22784 fi
22785
22786
22787                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22788 if test "$ol_link_threads" = no ; then
22789         # try -lpthread -Wl,-woff,85
22790         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22791 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22792 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22793   echo $ECHO_N "(cached) $ECHO_C" >&6
22794 else
22795
22796                 # save the flags
22797                 ol_LIBS="$LIBS"
22798                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22799
22800                 if test "$cross_compiling" = yes; then
22801   cat >conftest.$ac_ext <<_ACEOF
22802 /* confdefs.h.  */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h.  */
22807
22808 /* pthread test headers */
22809 #include <pthread.h>
22810 #if HAVE_PTHREADS < 7
22811 #include <errno.h>
22812 #endif
22813 #ifndef NULL
22814 #define NULL (void*)0
22815 #endif
22816
22817 static void *task(p)
22818         void *p;
22819 {
22820         return (void *) (p == NULL);
22821 }
22822
22823 int
22824 main ()
22825 {
22826
22827         /* pthread test function */
22828 #ifndef PTHREAD_CREATE_DETACHED
22829 #define PTHREAD_CREATE_DETACHED 1
22830 #endif
22831         pthread_t t;
22832         int status;
22833         int detach = PTHREAD_CREATE_DETACHED;
22834
22835 #if HAVE_PTHREADS > 4
22836         /* Final pthreads */
22837         pthread_attr_t attr;
22838
22839         status = pthread_attr_init(&attr);
22840         if( status ) return status;
22841
22842 #if HAVE_PTHREADS < 7
22843         status = pthread_attr_setdetachstate(&attr, &detach);
22844         if( status < 0 ) status = errno;
22845 #else
22846         status = pthread_attr_setdetachstate(&attr, detach);
22847 #endif
22848         if( status ) return status;
22849         status = pthread_create( &t, &attr, task, NULL );
22850 #if HAVE_PTHREADS < 7
22851         if( status < 0 ) status = errno;
22852 #endif
22853         if( status ) return status;
22854 #else
22855         /* Draft 4 pthreads */
22856         status = pthread_create( &t, pthread_attr_default, task, NULL );
22857         if( status ) return errno;
22858
22859         /* give thread a chance to complete */
22860         /* it should remain joinable and hence detachable */
22861         sleep( 1 );
22862
22863         status = pthread_detach( &t );
22864         if( status ) return errno;
22865 #endif
22866
22867 #ifdef HAVE_LINUX_THREADS
22868         pthread_kill_other_threads_np();
22869 #endif
22870
22871         return 0;
22872
22873   ;
22874   return 0;
22875 }
22876 _ACEOF
22877 rm -f conftest.$ac_objext conftest$ac_exeext
22878 if { (ac_try="$ac_link"
22879 case "(($ac_try" in
22880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881   *) ac_try_echo=$ac_try;;
22882 esac
22883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884   (eval "$ac_link") 2>conftest.er1
22885   ac_status=$?
22886   grep -v '^ *+' conftest.er1 >conftest.err
22887   rm -f conftest.er1
22888   cat conftest.err >&5
22889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890   (exit $ac_status); } && {
22891          test -z "$ac_c_werror_flag" ||
22892          test ! -s conftest.err
22893        } && test -s conftest$ac_exeext &&
22894        $as_test_x conftest$ac_exeext; then
22895   ol_cv_pthread_lib_lpthread_woff=yes
22896 else
22897   echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22899
22900         ol_cv_pthread_lib_lpthread_woff=no
22901 fi
22902
22903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22904       conftest$ac_exeext conftest.$ac_ext
22905 else
22906   cat >conftest.$ac_ext <<_ACEOF
22907 /* confdefs.h.  */
22908 _ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h.  */
22912
22913 /* pthread test headers */
22914 #include <pthread.h>
22915 #if HAVE_PTHREADS < 7
22916 #include <errno.h>
22917 #endif
22918 #ifndef NULL
22919 #define NULL (void*)0
22920 #endif
22921
22922 static void *task(p)
22923         void *p;
22924 {
22925         return (void *) (p == NULL);
22926 }
22927
22928
22929 int main(argc, argv)
22930         int argc;
22931         char **argv;
22932 {
22933
22934         /* pthread test function */
22935 #ifndef PTHREAD_CREATE_DETACHED
22936 #define PTHREAD_CREATE_DETACHED 1
22937 #endif
22938         pthread_t t;
22939         int status;
22940         int detach = PTHREAD_CREATE_DETACHED;
22941
22942 #if HAVE_PTHREADS > 4
22943         /* Final pthreads */
22944         pthread_attr_t attr;
22945
22946         status = pthread_attr_init(&attr);
22947         if( status ) return status;
22948
22949 #if HAVE_PTHREADS < 7
22950         status = pthread_attr_setdetachstate(&attr, &detach);
22951         if( status < 0 ) status = errno;
22952 #else
22953         status = pthread_attr_setdetachstate(&attr, detach);
22954 #endif
22955         if( status ) return status;
22956         status = pthread_create( &t, &attr, task, NULL );
22957 #if HAVE_PTHREADS < 7
22958         if( status < 0 ) status = errno;
22959 #endif
22960         if( status ) return status;
22961 #else
22962         /* Draft 4 pthreads */
22963         status = pthread_create( &t, pthread_attr_default, task, NULL );
22964         if( status ) return errno;
22965
22966         /* give thread a chance to complete */
22967         /* it should remain joinable and hence detachable */
22968         sleep( 1 );
22969
22970         status = pthread_detach( &t );
22971         if( status ) return errno;
22972 #endif
22973
22974 #ifdef HAVE_LINUX_THREADS
22975         pthread_kill_other_threads_np();
22976 #endif
22977
22978         return 0;
22979
22980 }
22981
22982 _ACEOF
22983 rm -f conftest$ac_exeext
22984 if { (ac_try="$ac_link"
22985 case "(($ac_try" in
22986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987   *) ac_try_echo=$ac_try;;
22988 esac
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990   (eval "$ac_link") 2>&5
22991   ac_status=$?
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22994   { (case "(($ac_try" in
22995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996   *) ac_try_echo=$ac_try;;
22997 esac
22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999   (eval "$ac_try") 2>&5
23000   ac_status=$?
23001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002   (exit $ac_status); }; }; then
23003   ol_cv_pthread_lib_lpthread_woff=yes
23004 else
23005   echo "$as_me: program exited with status $ac_status" >&5
23006 echo "$as_me: failed program was:" >&5
23007 sed 's/^/| /' conftest.$ac_ext >&5
23008
23009 ( exit $ac_status )
23010 ol_cv_pthread_lib_lpthread_woff=no
23011 fi
23012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23013 fi
23014
23015
23016
23017                 # restore the LIBS
23018                 LIBS="$ol_LIBS"
23019
23020 fi
23021 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
23022 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
23023
23024         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
23025                 ol_link_pthreads="-lpthread -Wl,-woff,85"
23026                 ol_link_threads=posix
23027         fi
23028 fi
23029
23030
23031                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
23032 if test "$ol_link_threads" = no ; then
23033         # try -lpthread
23034         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
23035 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
23036 if test "${ol_cv_pthread_lpthread+set}" = set; then
23037   echo $ECHO_N "(cached) $ECHO_C" >&6
23038 else
23039
23040                 # save the flags
23041                 ol_LIBS="$LIBS"
23042                 LIBS="-lpthread $LIBS"
23043
23044                 if test "$cross_compiling" = yes; then
23045   cat >conftest.$ac_ext <<_ACEOF
23046 /* confdefs.h.  */
23047 _ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h.  */
23051
23052 /* pthread test headers */
23053 #include <pthread.h>
23054 #if HAVE_PTHREADS < 7
23055 #include <errno.h>
23056 #endif
23057 #ifndef NULL
23058 #define NULL (void*)0
23059 #endif
23060
23061 static void *task(p)
23062         void *p;
23063 {
23064         return (void *) (p == NULL);
23065 }
23066
23067 int
23068 main ()
23069 {
23070
23071         /* pthread test function */
23072 #ifndef PTHREAD_CREATE_DETACHED
23073 #define PTHREAD_CREATE_DETACHED 1
23074 #endif
23075         pthread_t t;
23076         int status;
23077         int detach = PTHREAD_CREATE_DETACHED;
23078
23079 #if HAVE_PTHREADS > 4
23080         /* Final pthreads */
23081         pthread_attr_t attr;
23082
23083         status = pthread_attr_init(&attr);
23084         if( status ) return status;
23085
23086 #if HAVE_PTHREADS < 7
23087         status = pthread_attr_setdetachstate(&attr, &detach);
23088         if( status < 0 ) status = errno;
23089 #else
23090         status = pthread_attr_setdetachstate(&attr, detach);
23091 #endif
23092         if( status ) return status;
23093         status = pthread_create( &t, &attr, task, NULL );
23094 #if HAVE_PTHREADS < 7
23095         if( status < 0 ) status = errno;
23096 #endif
23097         if( status ) return status;
23098 #else
23099         /* Draft 4 pthreads */
23100         status = pthread_create( &t, pthread_attr_default, task, NULL );
23101         if( status ) return errno;
23102
23103         /* give thread a chance to complete */
23104         /* it should remain joinable and hence detachable */
23105         sleep( 1 );
23106
23107         status = pthread_detach( &t );
23108         if( status ) return errno;
23109 #endif
23110
23111 #ifdef HAVE_LINUX_THREADS
23112         pthread_kill_other_threads_np();
23113 #endif
23114
23115         return 0;
23116
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (ac_try="$ac_link"
23123 case "(($ac_try" in
23124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125   *) ac_try_echo=$ac_try;;
23126 esac
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128   (eval "$ac_link") 2>conftest.er1
23129   ac_status=$?
23130   grep -v '^ *+' conftest.er1 >conftest.err
23131   rm -f conftest.er1
23132   cat conftest.err >&5
23133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134   (exit $ac_status); } && {
23135          test -z "$ac_c_werror_flag" ||
23136          test ! -s conftest.err
23137        } && test -s conftest$ac_exeext &&
23138        $as_test_x conftest$ac_exeext; then
23139   ol_cv_pthread_lpthread=yes
23140 else
23141   echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23143
23144         ol_cv_pthread_lpthread=no
23145 fi
23146
23147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23148       conftest$ac_exeext conftest.$ac_ext
23149 else
23150   cat >conftest.$ac_ext <<_ACEOF
23151 /* confdefs.h.  */
23152 _ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h.  */
23156
23157 /* pthread test headers */
23158 #include <pthread.h>
23159 #if HAVE_PTHREADS < 7
23160 #include <errno.h>
23161 #endif
23162 #ifndef NULL
23163 #define NULL (void*)0
23164 #endif
23165
23166 static void *task(p)
23167         void *p;
23168 {
23169         return (void *) (p == NULL);
23170 }
23171
23172
23173 int main(argc, argv)
23174         int argc;
23175         char **argv;
23176 {
23177
23178         /* pthread test function */
23179 #ifndef PTHREAD_CREATE_DETACHED
23180 #define PTHREAD_CREATE_DETACHED 1
23181 #endif
23182         pthread_t t;
23183         int status;
23184         int detach = PTHREAD_CREATE_DETACHED;
23185
23186 #if HAVE_PTHREADS > 4
23187         /* Final pthreads */
23188         pthread_attr_t attr;
23189
23190         status = pthread_attr_init(&attr);
23191         if( status ) return status;
23192
23193 #if HAVE_PTHREADS < 7
23194         status = pthread_attr_setdetachstate(&attr, &detach);
23195         if( status < 0 ) status = errno;
23196 #else
23197         status = pthread_attr_setdetachstate(&attr, detach);
23198 #endif
23199         if( status ) return status;
23200         status = pthread_create( &t, &attr, task, NULL );
23201 #if HAVE_PTHREADS < 7
23202         if( status < 0 ) status = errno;
23203 #endif
23204         if( status ) return status;
23205 #else
23206         /* Draft 4 pthreads */
23207         status = pthread_create( &t, pthread_attr_default, task, NULL );
23208         if( status ) return errno;
23209
23210         /* give thread a chance to complete */
23211         /* it should remain joinable and hence detachable */
23212         sleep( 1 );
23213
23214         status = pthread_detach( &t );
23215         if( status ) return errno;
23216 #endif
23217
23218 #ifdef HAVE_LINUX_THREADS
23219         pthread_kill_other_threads_np();
23220 #endif
23221
23222         return 0;
23223
23224 }
23225
23226 _ACEOF
23227 rm -f conftest$ac_exeext
23228 if { (ac_try="$ac_link"
23229 case "(($ac_try" in
23230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231   *) ac_try_echo=$ac_try;;
23232 esac
23233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23234   (eval "$ac_link") 2>&5
23235   ac_status=$?
23236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23238   { (case "(($ac_try" in
23239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23240   *) ac_try_echo=$ac_try;;
23241 esac
23242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23243   (eval "$ac_try") 2>&5
23244   ac_status=$?
23245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246   (exit $ac_status); }; }; then
23247   ol_cv_pthread_lpthread=yes
23248 else
23249   echo "$as_me: program exited with status $ac_status" >&5
23250 echo "$as_me: failed program was:" >&5
23251 sed 's/^/| /' conftest.$ac_ext >&5
23252
23253 ( exit $ac_status )
23254 ol_cv_pthread_lpthread=no
23255 fi
23256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23257 fi
23258
23259
23260
23261                 # restore the LIBS
23262                 LIBS="$ol_LIBS"
23263
23264 fi
23265 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23266 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23267
23268         if test $ol_cv_pthread_lpthread = yes ; then
23269                 ol_link_pthreads="-lpthread"
23270                 ol_link_threads=posix
23271         fi
23272 fi
23273
23274                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23275 if test "$ol_link_threads" = no ; then
23276         # try -lc_r
23277         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23278 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23279 if test "${ol_cv_pthread_lc_r+set}" = set; then
23280   echo $ECHO_N "(cached) $ECHO_C" >&6
23281 else
23282
23283                 # save the flags
23284                 ol_LIBS="$LIBS"
23285                 LIBS="-lc_r $LIBS"
23286
23287                 if test "$cross_compiling" = yes; then
23288   cat >conftest.$ac_ext <<_ACEOF
23289 /* confdefs.h.  */
23290 _ACEOF
23291 cat confdefs.h >>conftest.$ac_ext
23292 cat >>conftest.$ac_ext <<_ACEOF
23293 /* end confdefs.h.  */
23294
23295 /* pthread test headers */
23296 #include <pthread.h>
23297 #if HAVE_PTHREADS < 7
23298 #include <errno.h>
23299 #endif
23300 #ifndef NULL
23301 #define NULL (void*)0
23302 #endif
23303
23304 static void *task(p)
23305         void *p;
23306 {
23307         return (void *) (p == NULL);
23308 }
23309
23310 int
23311 main ()
23312 {
23313
23314         /* pthread test function */
23315 #ifndef PTHREAD_CREATE_DETACHED
23316 #define PTHREAD_CREATE_DETACHED 1
23317 #endif
23318         pthread_t t;
23319         int status;
23320         int detach = PTHREAD_CREATE_DETACHED;
23321
23322 #if HAVE_PTHREADS > 4
23323         /* Final pthreads */
23324         pthread_attr_t attr;
23325
23326         status = pthread_attr_init(&attr);
23327         if( status ) return status;
23328
23329 #if HAVE_PTHREADS < 7
23330         status = pthread_attr_setdetachstate(&attr, &detach);
23331         if( status < 0 ) status = errno;
23332 #else
23333         status = pthread_attr_setdetachstate(&attr, detach);
23334 #endif
23335         if( status ) return status;
23336         status = pthread_create( &t, &attr, task, NULL );
23337 #if HAVE_PTHREADS < 7
23338         if( status < 0 ) status = errno;
23339 #endif
23340         if( status ) return status;
23341 #else
23342         /* Draft 4 pthreads */
23343         status = pthread_create( &t, pthread_attr_default, task, NULL );
23344         if( status ) return errno;
23345
23346         /* give thread a chance to complete */
23347         /* it should remain joinable and hence detachable */
23348         sleep( 1 );
23349
23350         status = pthread_detach( &t );
23351         if( status ) return errno;
23352 #endif
23353
23354 #ifdef HAVE_LINUX_THREADS
23355         pthread_kill_other_threads_np();
23356 #endif
23357
23358         return 0;
23359
23360   ;
23361   return 0;
23362 }
23363 _ACEOF
23364 rm -f conftest.$ac_objext conftest$ac_exeext
23365 if { (ac_try="$ac_link"
23366 case "(($ac_try" in
23367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368   *) ac_try_echo=$ac_try;;
23369 esac
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371   (eval "$ac_link") 2>conftest.er1
23372   ac_status=$?
23373   grep -v '^ *+' conftest.er1 >conftest.err
23374   rm -f conftest.er1
23375   cat conftest.err >&5
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); } && {
23378          test -z "$ac_c_werror_flag" ||
23379          test ! -s conftest.err
23380        } && test -s conftest$ac_exeext &&
23381        $as_test_x conftest$ac_exeext; then
23382   ol_cv_pthread_lc_r=yes
23383 else
23384   echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23386
23387         ol_cv_pthread_lc_r=no
23388 fi
23389
23390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23391       conftest$ac_exeext conftest.$ac_ext
23392 else
23393   cat >conftest.$ac_ext <<_ACEOF
23394 /* confdefs.h.  */
23395 _ACEOF
23396 cat confdefs.h >>conftest.$ac_ext
23397 cat >>conftest.$ac_ext <<_ACEOF
23398 /* end confdefs.h.  */
23399
23400 /* pthread test headers */
23401 #include <pthread.h>
23402 #if HAVE_PTHREADS < 7
23403 #include <errno.h>
23404 #endif
23405 #ifndef NULL
23406 #define NULL (void*)0
23407 #endif
23408
23409 static void *task(p)
23410         void *p;
23411 {
23412         return (void *) (p == NULL);
23413 }
23414
23415
23416 int main(argc, argv)
23417         int argc;
23418         char **argv;
23419 {
23420
23421         /* pthread test function */
23422 #ifndef PTHREAD_CREATE_DETACHED
23423 #define PTHREAD_CREATE_DETACHED 1
23424 #endif
23425         pthread_t t;
23426         int status;
23427         int detach = PTHREAD_CREATE_DETACHED;
23428
23429 #if HAVE_PTHREADS > 4
23430         /* Final pthreads */
23431         pthread_attr_t attr;
23432
23433         status = pthread_attr_init(&attr);
23434         if( status ) return status;
23435
23436 #if HAVE_PTHREADS < 7
23437         status = pthread_attr_setdetachstate(&attr, &detach);
23438         if( status < 0 ) status = errno;
23439 #else
23440         status = pthread_attr_setdetachstate(&attr, detach);
23441 #endif
23442         if( status ) return status;
23443         status = pthread_create( &t, &attr, task, NULL );
23444 #if HAVE_PTHREADS < 7
23445         if( status < 0 ) status = errno;
23446 #endif
23447         if( status ) return status;
23448 #else
23449         /* Draft 4 pthreads */
23450         status = pthread_create( &t, pthread_attr_default, task, NULL );
23451         if( status ) return errno;
23452
23453         /* give thread a chance to complete */
23454         /* it should remain joinable and hence detachable */
23455         sleep( 1 );
23456
23457         status = pthread_detach( &t );
23458         if( status ) return errno;
23459 #endif
23460
23461 #ifdef HAVE_LINUX_THREADS
23462         pthread_kill_other_threads_np();
23463 #endif
23464
23465         return 0;
23466
23467 }
23468
23469 _ACEOF
23470 rm -f conftest$ac_exeext
23471 if { (ac_try="$ac_link"
23472 case "(($ac_try" in
23473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474   *) ac_try_echo=$ac_try;;
23475 esac
23476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23477   (eval "$ac_link") 2>&5
23478   ac_status=$?
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23481   { (case "(($ac_try" in
23482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23483   *) ac_try_echo=$ac_try;;
23484 esac
23485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23486   (eval "$ac_try") 2>&5
23487   ac_status=$?
23488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489   (exit $ac_status); }; }; then
23490   ol_cv_pthread_lc_r=yes
23491 else
23492   echo "$as_me: program exited with status $ac_status" >&5
23493 echo "$as_me: failed program was:" >&5
23494 sed 's/^/| /' conftest.$ac_ext >&5
23495
23496 ( exit $ac_status )
23497 ol_cv_pthread_lc_r=no
23498 fi
23499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23500 fi
23501
23502
23503
23504                 # restore the LIBS
23505                 LIBS="$ol_LIBS"
23506
23507 fi
23508 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23509 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23510
23511         if test $ol_cv_pthread_lc_r = yes ; then
23512                 ol_link_pthreads="-lc_r"
23513                 ol_link_threads=posix
23514         fi
23515 fi
23516
23517
23518                 # Pthread try link: -threads (ol_cv_pthread_threads)
23519 if test "$ol_link_threads" = no ; then
23520         # try -threads
23521         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23522 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23523 if test "${ol_cv_pthread_threads+set}" = set; then
23524   echo $ECHO_N "(cached) $ECHO_C" >&6
23525 else
23526
23527                 # save the flags
23528                 ol_LIBS="$LIBS"
23529                 LIBS="-threads $LIBS"
23530
23531                 if test "$cross_compiling" = yes; then
23532   cat >conftest.$ac_ext <<_ACEOF
23533 /* confdefs.h.  */
23534 _ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h.  */
23538
23539 /* pthread test headers */
23540 #include <pthread.h>
23541 #if HAVE_PTHREADS < 7
23542 #include <errno.h>
23543 #endif
23544 #ifndef NULL
23545 #define NULL (void*)0
23546 #endif
23547
23548 static void *task(p)
23549         void *p;
23550 {
23551         return (void *) (p == NULL);
23552 }
23553
23554 int
23555 main ()
23556 {
23557
23558         /* pthread test function */
23559 #ifndef PTHREAD_CREATE_DETACHED
23560 #define PTHREAD_CREATE_DETACHED 1
23561 #endif
23562         pthread_t t;
23563         int status;
23564         int detach = PTHREAD_CREATE_DETACHED;
23565
23566 #if HAVE_PTHREADS > 4
23567         /* Final pthreads */
23568         pthread_attr_t attr;
23569
23570         status = pthread_attr_init(&attr);
23571         if( status ) return status;
23572
23573 #if HAVE_PTHREADS < 7
23574         status = pthread_attr_setdetachstate(&attr, &detach);
23575         if( status < 0 ) status = errno;
23576 #else
23577         status = pthread_attr_setdetachstate(&attr, detach);
23578 #endif
23579         if( status ) return status;
23580         status = pthread_create( &t, &attr, task, NULL );
23581 #if HAVE_PTHREADS < 7
23582         if( status < 0 ) status = errno;
23583 #endif
23584         if( status ) return status;
23585 #else
23586         /* Draft 4 pthreads */
23587         status = pthread_create( &t, pthread_attr_default, task, NULL );
23588         if( status ) return errno;
23589
23590         /* give thread a chance to complete */
23591         /* it should remain joinable and hence detachable */
23592         sleep( 1 );
23593
23594         status = pthread_detach( &t );
23595         if( status ) return errno;
23596 #endif
23597
23598 #ifdef HAVE_LINUX_THREADS
23599         pthread_kill_other_threads_np();
23600 #endif
23601
23602         return 0;
23603
23604   ;
23605   return 0;
23606 }
23607 _ACEOF
23608 rm -f conftest.$ac_objext conftest$ac_exeext
23609 if { (ac_try="$ac_link"
23610 case "(($ac_try" in
23611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23612   *) ac_try_echo=$ac_try;;
23613 esac
23614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23615   (eval "$ac_link") 2>conftest.er1
23616   ac_status=$?
23617   grep -v '^ *+' conftest.er1 >conftest.err
23618   rm -f conftest.er1
23619   cat conftest.err >&5
23620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621   (exit $ac_status); } && {
23622          test -z "$ac_c_werror_flag" ||
23623          test ! -s conftest.err
23624        } && test -s conftest$ac_exeext &&
23625        $as_test_x conftest$ac_exeext; then
23626   ol_cv_pthread_threads=yes
23627 else
23628   echo "$as_me: failed program was:" >&5
23629 sed 's/^/| /' conftest.$ac_ext >&5
23630
23631         ol_cv_pthread_threads=no
23632 fi
23633
23634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23635       conftest$ac_exeext conftest.$ac_ext
23636 else
23637   cat >conftest.$ac_ext <<_ACEOF
23638 /* confdefs.h.  */
23639 _ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h.  */
23643
23644 /* pthread test headers */
23645 #include <pthread.h>
23646 #if HAVE_PTHREADS < 7
23647 #include <errno.h>
23648 #endif
23649 #ifndef NULL
23650 #define NULL (void*)0
23651 #endif
23652
23653 static void *task(p)
23654         void *p;
23655 {
23656         return (void *) (p == NULL);
23657 }
23658
23659
23660 int main(argc, argv)
23661         int argc;
23662         char **argv;
23663 {
23664
23665         /* pthread test function */
23666 #ifndef PTHREAD_CREATE_DETACHED
23667 #define PTHREAD_CREATE_DETACHED 1
23668 #endif
23669         pthread_t t;
23670         int status;
23671         int detach = PTHREAD_CREATE_DETACHED;
23672
23673 #if HAVE_PTHREADS > 4
23674         /* Final pthreads */
23675         pthread_attr_t attr;
23676
23677         status = pthread_attr_init(&attr);
23678         if( status ) return status;
23679
23680 #if HAVE_PTHREADS < 7
23681         status = pthread_attr_setdetachstate(&attr, &detach);
23682         if( status < 0 ) status = errno;
23683 #else
23684         status = pthread_attr_setdetachstate(&attr, detach);
23685 #endif
23686         if( status ) return status;
23687         status = pthread_create( &t, &attr, task, NULL );
23688 #if HAVE_PTHREADS < 7
23689         if( status < 0 ) status = errno;
23690 #endif
23691         if( status ) return status;
23692 #else
23693         /* Draft 4 pthreads */
23694         status = pthread_create( &t, pthread_attr_default, task, NULL );
23695         if( status ) return errno;
23696
23697         /* give thread a chance to complete */
23698         /* it should remain joinable and hence detachable */
23699         sleep( 1 );
23700
23701         status = pthread_detach( &t );
23702         if( status ) return errno;
23703 #endif
23704
23705 #ifdef HAVE_LINUX_THREADS
23706         pthread_kill_other_threads_np();
23707 #endif
23708
23709         return 0;
23710
23711 }
23712
23713 _ACEOF
23714 rm -f conftest$ac_exeext
23715 if { (ac_try="$ac_link"
23716 case "(($ac_try" in
23717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718   *) ac_try_echo=$ac_try;;
23719 esac
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721   (eval "$ac_link") 2>&5
23722   ac_status=$?
23723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23725   { (case "(($ac_try" in
23726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23727   *) ac_try_echo=$ac_try;;
23728 esac
23729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23730   (eval "$ac_try") 2>&5
23731   ac_status=$?
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); }; }; then
23734   ol_cv_pthread_threads=yes
23735 else
23736   echo "$as_me: program exited with status $ac_status" >&5
23737 echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23739
23740 ( exit $ac_status )
23741 ol_cv_pthread_threads=no
23742 fi
23743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23744 fi
23745
23746
23747
23748                 # restore the LIBS
23749                 LIBS="$ol_LIBS"
23750
23751 fi
23752 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23753 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23754
23755         if test $ol_cv_pthread_threads = yes ; then
23756                 ol_link_pthreads="-threads"
23757                 ol_link_threads=posix
23758         fi
23759 fi
23760
23761
23762                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23763 if test "$ol_link_threads" = no ; then
23764         # try -lpthreads -lmach -lexc -lc_r
23765         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23766 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23767 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23768   echo $ECHO_N "(cached) $ECHO_C" >&6
23769 else
23770
23771                 # save the flags
23772                 ol_LIBS="$LIBS"
23773                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23774
23775                 if test "$cross_compiling" = yes; then
23776   cat >conftest.$ac_ext <<_ACEOF
23777 /* confdefs.h.  */
23778 _ACEOF
23779 cat confdefs.h >>conftest.$ac_ext
23780 cat >>conftest.$ac_ext <<_ACEOF
23781 /* end confdefs.h.  */
23782
23783 /* pthread test headers */
23784 #include <pthread.h>
23785 #if HAVE_PTHREADS < 7
23786 #include <errno.h>
23787 #endif
23788 #ifndef NULL
23789 #define NULL (void*)0
23790 #endif
23791
23792 static void *task(p)
23793         void *p;
23794 {
23795         return (void *) (p == NULL);
23796 }
23797
23798 int
23799 main ()
23800 {
23801
23802         /* pthread test function */
23803 #ifndef PTHREAD_CREATE_DETACHED
23804 #define PTHREAD_CREATE_DETACHED 1
23805 #endif
23806         pthread_t t;
23807         int status;
23808         int detach = PTHREAD_CREATE_DETACHED;
23809
23810 #if HAVE_PTHREADS > 4
23811         /* Final pthreads */
23812         pthread_attr_t attr;
23813
23814         status = pthread_attr_init(&attr);
23815         if( status ) return status;
23816
23817 #if HAVE_PTHREADS < 7
23818         status = pthread_attr_setdetachstate(&attr, &detach);
23819         if( status < 0 ) status = errno;
23820 #else
23821         status = pthread_attr_setdetachstate(&attr, detach);
23822 #endif
23823         if( status ) return status;
23824         status = pthread_create( &t, &attr, task, NULL );
23825 #if HAVE_PTHREADS < 7
23826         if( status < 0 ) status = errno;
23827 #endif
23828         if( status ) return status;
23829 #else
23830         /* Draft 4 pthreads */
23831         status = pthread_create( &t, pthread_attr_default, task, NULL );
23832         if( status ) return errno;
23833
23834         /* give thread a chance to complete */
23835         /* it should remain joinable and hence detachable */
23836         sleep( 1 );
23837
23838         status = pthread_detach( &t );
23839         if( status ) return errno;
23840 #endif
23841
23842 #ifdef HAVE_LINUX_THREADS
23843         pthread_kill_other_threads_np();
23844 #endif
23845
23846         return 0;
23847
23848   ;
23849   return 0;
23850 }
23851 _ACEOF
23852 rm -f conftest.$ac_objext conftest$ac_exeext
23853 if { (ac_try="$ac_link"
23854 case "(($ac_try" in
23855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23856   *) ac_try_echo=$ac_try;;
23857 esac
23858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23859   (eval "$ac_link") 2>conftest.er1
23860   ac_status=$?
23861   grep -v '^ *+' conftest.er1 >conftest.err
23862   rm -f conftest.er1
23863   cat conftest.err >&5
23864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865   (exit $ac_status); } && {
23866          test -z "$ac_c_werror_flag" ||
23867          test ! -s conftest.err
23868        } && test -s conftest$ac_exeext &&
23869        $as_test_x conftest$ac_exeext; then
23870   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23871 else
23872   echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23874
23875         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23876 fi
23877
23878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23879       conftest$ac_exeext conftest.$ac_ext
23880 else
23881   cat >conftest.$ac_ext <<_ACEOF
23882 /* confdefs.h.  */
23883 _ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h.  */
23887
23888 /* pthread test headers */
23889 #include <pthread.h>
23890 #if HAVE_PTHREADS < 7
23891 #include <errno.h>
23892 #endif
23893 #ifndef NULL
23894 #define NULL (void*)0
23895 #endif
23896
23897 static void *task(p)
23898         void *p;
23899 {
23900         return (void *) (p == NULL);
23901 }
23902
23903
23904 int main(argc, argv)
23905         int argc;
23906         char **argv;
23907 {
23908
23909         /* pthread test function */
23910 #ifndef PTHREAD_CREATE_DETACHED
23911 #define PTHREAD_CREATE_DETACHED 1
23912 #endif
23913         pthread_t t;
23914         int status;
23915         int detach = PTHREAD_CREATE_DETACHED;
23916
23917 #if HAVE_PTHREADS > 4
23918         /* Final pthreads */
23919         pthread_attr_t attr;
23920
23921         status = pthread_attr_init(&attr);
23922         if( status ) return status;
23923
23924 #if HAVE_PTHREADS < 7
23925         status = pthread_attr_setdetachstate(&attr, &detach);
23926         if( status < 0 ) status = errno;
23927 #else
23928         status = pthread_attr_setdetachstate(&attr, detach);
23929 #endif
23930         if( status ) return status;
23931         status = pthread_create( &t, &attr, task, NULL );
23932 #if HAVE_PTHREADS < 7
23933         if( status < 0 ) status = errno;
23934 #endif
23935         if( status ) return status;
23936 #else
23937         /* Draft 4 pthreads */
23938         status = pthread_create( &t, pthread_attr_default, task, NULL );
23939         if( status ) return errno;
23940
23941         /* give thread a chance to complete */
23942         /* it should remain joinable and hence detachable */
23943         sleep( 1 );
23944
23945         status = pthread_detach( &t );
23946         if( status ) return errno;
23947 #endif
23948
23949 #ifdef HAVE_LINUX_THREADS
23950         pthread_kill_other_threads_np();
23951 #endif
23952
23953         return 0;
23954
23955 }
23956
23957 _ACEOF
23958 rm -f conftest$ac_exeext
23959 if { (ac_try="$ac_link"
23960 case "(($ac_try" in
23961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23962   *) ac_try_echo=$ac_try;;
23963 esac
23964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23965   (eval "$ac_link") 2>&5
23966   ac_status=$?
23967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23969   { (case "(($ac_try" in
23970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971   *) ac_try_echo=$ac_try;;
23972 esac
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974   (eval "$ac_try") 2>&5
23975   ac_status=$?
23976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977   (exit $ac_status); }; }; then
23978   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23979 else
23980   echo "$as_me: program exited with status $ac_status" >&5
23981 echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23983
23984 ( exit $ac_status )
23985 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23986 fi
23987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23988 fi
23989
23990
23991
23992                 # restore the LIBS
23993                 LIBS="$ol_LIBS"
23994
23995 fi
23996 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23997 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23998
23999         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
24000                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
24001                 ol_link_threads=posix
24002         fi
24003 fi
24004
24005                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
24006 if test "$ol_link_threads" = no ; then
24007         # try -lpthreads -lmach -lexc
24008         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
24009 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
24010 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
24011   echo $ECHO_N "(cached) $ECHO_C" >&6
24012 else
24013
24014                 # save the flags
24015                 ol_LIBS="$LIBS"
24016                 LIBS="-lpthreads -lmach -lexc $LIBS"
24017
24018                 if test "$cross_compiling" = yes; then
24019   cat >conftest.$ac_ext <<_ACEOF
24020 /* confdefs.h.  */
24021 _ACEOF
24022 cat confdefs.h >>conftest.$ac_ext
24023 cat >>conftest.$ac_ext <<_ACEOF
24024 /* end confdefs.h.  */
24025
24026 /* pthread test headers */
24027 #include <pthread.h>
24028 #if HAVE_PTHREADS < 7
24029 #include <errno.h>
24030 #endif
24031 #ifndef NULL
24032 #define NULL (void*)0
24033 #endif
24034
24035 static void *task(p)
24036         void *p;
24037 {
24038         return (void *) (p == NULL);
24039 }
24040
24041 int
24042 main ()
24043 {
24044
24045         /* pthread test function */
24046 #ifndef PTHREAD_CREATE_DETACHED
24047 #define PTHREAD_CREATE_DETACHED 1
24048 #endif
24049         pthread_t t;
24050         int status;
24051         int detach = PTHREAD_CREATE_DETACHED;
24052
24053 #if HAVE_PTHREADS > 4
24054         /* Final pthreads */
24055         pthread_attr_t attr;
24056
24057         status = pthread_attr_init(&attr);
24058         if( status ) return status;
24059
24060 #if HAVE_PTHREADS < 7
24061         status = pthread_attr_setdetachstate(&attr, &detach);
24062         if( status < 0 ) status = errno;
24063 #else
24064         status = pthread_attr_setdetachstate(&attr, detach);
24065 #endif
24066         if( status ) return status;
24067         status = pthread_create( &t, &attr, task, NULL );
24068 #if HAVE_PTHREADS < 7
24069         if( status < 0 ) status = errno;
24070 #endif
24071         if( status ) return status;
24072 #else
24073         /* Draft 4 pthreads */
24074         status = pthread_create( &t, pthread_attr_default, task, NULL );
24075         if( status ) return errno;
24076
24077         /* give thread a chance to complete */
24078         /* it should remain joinable and hence detachable */
24079         sleep( 1 );
24080
24081         status = pthread_detach( &t );
24082         if( status ) return errno;
24083 #endif
24084
24085 #ifdef HAVE_LINUX_THREADS
24086         pthread_kill_other_threads_np();
24087 #endif
24088
24089         return 0;
24090
24091   ;
24092   return 0;
24093 }
24094 _ACEOF
24095 rm -f conftest.$ac_objext conftest$ac_exeext
24096 if { (ac_try="$ac_link"
24097 case "(($ac_try" in
24098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24099   *) ac_try_echo=$ac_try;;
24100 esac
24101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24102   (eval "$ac_link") 2>conftest.er1
24103   ac_status=$?
24104   grep -v '^ *+' conftest.er1 >conftest.err
24105   rm -f conftest.er1
24106   cat conftest.err >&5
24107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108   (exit $ac_status); } && {
24109          test -z "$ac_c_werror_flag" ||
24110          test ! -s conftest.err
24111        } && test -s conftest$ac_exeext &&
24112        $as_test_x conftest$ac_exeext; then
24113   ol_cv_pthread_lpthreads_lmach_lexc=yes
24114 else
24115   echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24117
24118         ol_cv_pthread_lpthreads_lmach_lexc=no
24119 fi
24120
24121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24122       conftest$ac_exeext conftest.$ac_ext
24123 else
24124   cat >conftest.$ac_ext <<_ACEOF
24125 /* confdefs.h.  */
24126 _ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h.  */
24130
24131 /* pthread test headers */
24132 #include <pthread.h>
24133 #if HAVE_PTHREADS < 7
24134 #include <errno.h>
24135 #endif
24136 #ifndef NULL
24137 #define NULL (void*)0
24138 #endif
24139
24140 static void *task(p)
24141         void *p;
24142 {
24143         return (void *) (p == NULL);
24144 }
24145
24146
24147 int main(argc, argv)
24148         int argc;
24149         char **argv;
24150 {
24151
24152         /* pthread test function */
24153 #ifndef PTHREAD_CREATE_DETACHED
24154 #define PTHREAD_CREATE_DETACHED 1
24155 #endif
24156         pthread_t t;
24157         int status;
24158         int detach = PTHREAD_CREATE_DETACHED;
24159
24160 #if HAVE_PTHREADS > 4
24161         /* Final pthreads */
24162         pthread_attr_t attr;
24163
24164         status = pthread_attr_init(&attr);
24165         if( status ) return status;
24166
24167 #if HAVE_PTHREADS < 7
24168         status = pthread_attr_setdetachstate(&attr, &detach);
24169         if( status < 0 ) status = errno;
24170 #else
24171         status = pthread_attr_setdetachstate(&attr, detach);
24172 #endif
24173         if( status ) return status;
24174         status = pthread_create( &t, &attr, task, NULL );
24175 #if HAVE_PTHREADS < 7
24176         if( status < 0 ) status = errno;
24177 #endif
24178         if( status ) return status;
24179 #else
24180         /* Draft 4 pthreads */
24181         status = pthread_create( &t, pthread_attr_default, task, NULL );
24182         if( status ) return errno;
24183
24184         /* give thread a chance to complete */
24185         /* it should remain joinable and hence detachable */
24186         sleep( 1 );
24187
24188         status = pthread_detach( &t );
24189         if( status ) return errno;
24190 #endif
24191
24192 #ifdef HAVE_LINUX_THREADS
24193         pthread_kill_other_threads_np();
24194 #endif
24195
24196         return 0;
24197
24198 }
24199
24200 _ACEOF
24201 rm -f conftest$ac_exeext
24202 if { (ac_try="$ac_link"
24203 case "(($ac_try" in
24204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24205   *) ac_try_echo=$ac_try;;
24206 esac
24207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24208   (eval "$ac_link") 2>&5
24209   ac_status=$?
24210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24212   { (case "(($ac_try" in
24213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24214   *) ac_try_echo=$ac_try;;
24215 esac
24216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24217   (eval "$ac_try") 2>&5
24218   ac_status=$?
24219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220   (exit $ac_status); }; }; then
24221   ol_cv_pthread_lpthreads_lmach_lexc=yes
24222 else
24223   echo "$as_me: program exited with status $ac_status" >&5
24224 echo "$as_me: failed program was:" >&5
24225 sed 's/^/| /' conftest.$ac_ext >&5
24226
24227 ( exit $ac_status )
24228 ol_cv_pthread_lpthreads_lmach_lexc=no
24229 fi
24230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24231 fi
24232
24233
24234
24235                 # restore the LIBS
24236                 LIBS="$ol_LIBS"
24237
24238 fi
24239 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24240 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24241
24242         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24243                 ol_link_pthreads="-lpthreads -lmach -lexc"
24244                 ol_link_threads=posix
24245         fi
24246 fi
24247
24248                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24249 if test "$ol_link_threads" = no ; then
24250         # try -lpthreads -lexc
24251         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24252 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24253 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24254   echo $ECHO_N "(cached) $ECHO_C" >&6
24255 else
24256
24257                 # save the flags
24258                 ol_LIBS="$LIBS"
24259                 LIBS="-lpthreads -lexc $LIBS"
24260
24261                 if test "$cross_compiling" = yes; then
24262   cat >conftest.$ac_ext <<_ACEOF
24263 /* confdefs.h.  */
24264 _ACEOF
24265 cat confdefs.h >>conftest.$ac_ext
24266 cat >>conftest.$ac_ext <<_ACEOF
24267 /* end confdefs.h.  */
24268
24269 /* pthread test headers */
24270 #include <pthread.h>
24271 #if HAVE_PTHREADS < 7
24272 #include <errno.h>
24273 #endif
24274 #ifndef NULL
24275 #define NULL (void*)0
24276 #endif
24277
24278 static void *task(p)
24279         void *p;
24280 {
24281         return (void *) (p == NULL);
24282 }
24283
24284 int
24285 main ()
24286 {
24287
24288         /* pthread test function */
24289 #ifndef PTHREAD_CREATE_DETACHED
24290 #define PTHREAD_CREATE_DETACHED 1
24291 #endif
24292         pthread_t t;
24293         int status;
24294         int detach = PTHREAD_CREATE_DETACHED;
24295
24296 #if HAVE_PTHREADS > 4
24297         /* Final pthreads */
24298         pthread_attr_t attr;
24299
24300         status = pthread_attr_init(&attr);
24301         if( status ) return status;
24302
24303 #if HAVE_PTHREADS < 7
24304         status = pthread_attr_setdetachstate(&attr, &detach);
24305         if( status < 0 ) status = errno;
24306 #else
24307         status = pthread_attr_setdetachstate(&attr, detach);
24308 #endif
24309         if( status ) return status;
24310         status = pthread_create( &t, &attr, task, NULL );
24311 #if HAVE_PTHREADS < 7
24312         if( status < 0 ) status = errno;
24313 #endif
24314         if( status ) return status;
24315 #else
24316         /* Draft 4 pthreads */
24317         status = pthread_create( &t, pthread_attr_default, task, NULL );
24318         if( status ) return errno;
24319
24320         /* give thread a chance to complete */
24321         /* it should remain joinable and hence detachable */
24322         sleep( 1 );
24323
24324         status = pthread_detach( &t );
24325         if( status ) return errno;
24326 #endif
24327
24328 #ifdef HAVE_LINUX_THREADS
24329         pthread_kill_other_threads_np();
24330 #endif
24331
24332         return 0;
24333
24334   ;
24335   return 0;
24336 }
24337 _ACEOF
24338 rm -f conftest.$ac_objext conftest$ac_exeext
24339 if { (ac_try="$ac_link"
24340 case "(($ac_try" in
24341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24342   *) ac_try_echo=$ac_try;;
24343 esac
24344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24345   (eval "$ac_link") 2>conftest.er1
24346   ac_status=$?
24347   grep -v '^ *+' conftest.er1 >conftest.err
24348   rm -f conftest.er1
24349   cat conftest.err >&5
24350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351   (exit $ac_status); } && {
24352          test -z "$ac_c_werror_flag" ||
24353          test ! -s conftest.err
24354        } && test -s conftest$ac_exeext &&
24355        $as_test_x conftest$ac_exeext; then
24356   ol_cv_pthread_lpthreads_lexc=yes
24357 else
24358   echo "$as_me: failed program was:" >&5
24359 sed 's/^/| /' conftest.$ac_ext >&5
24360
24361         ol_cv_pthread_lpthreads_lexc=no
24362 fi
24363
24364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24365       conftest$ac_exeext conftest.$ac_ext
24366 else
24367   cat >conftest.$ac_ext <<_ACEOF
24368 /* confdefs.h.  */
24369 _ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h.  */
24373
24374 /* pthread test headers */
24375 #include <pthread.h>
24376 #if HAVE_PTHREADS < 7
24377 #include <errno.h>
24378 #endif
24379 #ifndef NULL
24380 #define NULL (void*)0
24381 #endif
24382
24383 static void *task(p)
24384         void *p;
24385 {
24386         return (void *) (p == NULL);
24387 }
24388
24389
24390 int main(argc, argv)
24391         int argc;
24392         char **argv;
24393 {
24394
24395         /* pthread test function */
24396 #ifndef PTHREAD_CREATE_DETACHED
24397 #define PTHREAD_CREATE_DETACHED 1
24398 #endif
24399         pthread_t t;
24400         int status;
24401         int detach = PTHREAD_CREATE_DETACHED;
24402
24403 #if HAVE_PTHREADS > 4
24404         /* Final pthreads */
24405         pthread_attr_t attr;
24406
24407         status = pthread_attr_init(&attr);
24408         if( status ) return status;
24409
24410 #if HAVE_PTHREADS < 7
24411         status = pthread_attr_setdetachstate(&attr, &detach);
24412         if( status < 0 ) status = errno;
24413 #else
24414         status = pthread_attr_setdetachstate(&attr, detach);
24415 #endif
24416         if( status ) return status;
24417         status = pthread_create( &t, &attr, task, NULL );
24418 #if HAVE_PTHREADS < 7
24419         if( status < 0 ) status = errno;
24420 #endif
24421         if( status ) return status;
24422 #else
24423         /* Draft 4 pthreads */
24424         status = pthread_create( &t, pthread_attr_default, task, NULL );
24425         if( status ) return errno;
24426
24427         /* give thread a chance to complete */
24428         /* it should remain joinable and hence detachable */
24429         sleep( 1 );
24430
24431         status = pthread_detach( &t );
24432         if( status ) return errno;
24433 #endif
24434
24435 #ifdef HAVE_LINUX_THREADS
24436         pthread_kill_other_threads_np();
24437 #endif
24438
24439         return 0;
24440
24441 }
24442
24443 _ACEOF
24444 rm -f conftest$ac_exeext
24445 if { (ac_try="$ac_link"
24446 case "(($ac_try" in
24447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24448   *) ac_try_echo=$ac_try;;
24449 esac
24450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24451   (eval "$ac_link") 2>&5
24452   ac_status=$?
24453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24455   { (case "(($ac_try" in
24456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457   *) ac_try_echo=$ac_try;;
24458 esac
24459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460   (eval "$ac_try") 2>&5
24461   ac_status=$?
24462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463   (exit $ac_status); }; }; then
24464   ol_cv_pthread_lpthreads_lexc=yes
24465 else
24466   echo "$as_me: program exited with status $ac_status" >&5
24467 echo "$as_me: failed program was:" >&5
24468 sed 's/^/| /' conftest.$ac_ext >&5
24469
24470 ( exit $ac_status )
24471 ol_cv_pthread_lpthreads_lexc=no
24472 fi
24473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24474 fi
24475
24476
24477
24478                 # restore the LIBS
24479                 LIBS="$ol_LIBS"
24480
24481 fi
24482 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24483 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24484
24485         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24486                 ol_link_pthreads="-lpthreads -lexc"
24487                 ol_link_threads=posix
24488         fi
24489 fi
24490
24491
24492                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24493 if test "$ol_link_threads" = no ; then
24494         # try -lpthreads
24495         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24496 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24497 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24498   echo $ECHO_N "(cached) $ECHO_C" >&6
24499 else
24500
24501                 # save the flags
24502                 ol_LIBS="$LIBS"
24503                 LIBS="-lpthreads $LIBS"
24504
24505                 if test "$cross_compiling" = yes; then
24506   cat >conftest.$ac_ext <<_ACEOF
24507 /* confdefs.h.  */
24508 _ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h.  */
24512
24513 /* pthread test headers */
24514 #include <pthread.h>
24515 #if HAVE_PTHREADS < 7
24516 #include <errno.h>
24517 #endif
24518 #ifndef NULL
24519 #define NULL (void*)0
24520 #endif
24521
24522 static void *task(p)
24523         void *p;
24524 {
24525         return (void *) (p == NULL);
24526 }
24527
24528 int
24529 main ()
24530 {
24531
24532         /* pthread test function */
24533 #ifndef PTHREAD_CREATE_DETACHED
24534 #define PTHREAD_CREATE_DETACHED 1
24535 #endif
24536         pthread_t t;
24537         int status;
24538         int detach = PTHREAD_CREATE_DETACHED;
24539
24540 #if HAVE_PTHREADS > 4
24541         /* Final pthreads */
24542         pthread_attr_t attr;
24543
24544         status = pthread_attr_init(&attr);
24545         if( status ) return status;
24546
24547 #if HAVE_PTHREADS < 7
24548         status = pthread_attr_setdetachstate(&attr, &detach);
24549         if( status < 0 ) status = errno;
24550 #else
24551         status = pthread_attr_setdetachstate(&attr, detach);
24552 #endif
24553         if( status ) return status;
24554         status = pthread_create( &t, &attr, task, NULL );
24555 #if HAVE_PTHREADS < 7
24556         if( status < 0 ) status = errno;
24557 #endif
24558         if( status ) return status;
24559 #else
24560         /* Draft 4 pthreads */
24561         status = pthread_create( &t, pthread_attr_default, task, NULL );
24562         if( status ) return errno;
24563
24564         /* give thread a chance to complete */
24565         /* it should remain joinable and hence detachable */
24566         sleep( 1 );
24567
24568         status = pthread_detach( &t );
24569         if( status ) return errno;
24570 #endif
24571
24572 #ifdef HAVE_LINUX_THREADS
24573         pthread_kill_other_threads_np();
24574 #endif
24575
24576         return 0;
24577
24578   ;
24579   return 0;
24580 }
24581 _ACEOF
24582 rm -f conftest.$ac_objext conftest$ac_exeext
24583 if { (ac_try="$ac_link"
24584 case "(($ac_try" in
24585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586   *) ac_try_echo=$ac_try;;
24587 esac
24588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24589   (eval "$ac_link") 2>conftest.er1
24590   ac_status=$?
24591   grep -v '^ *+' conftest.er1 >conftest.err
24592   rm -f conftest.er1
24593   cat conftest.err >&5
24594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595   (exit $ac_status); } && {
24596          test -z "$ac_c_werror_flag" ||
24597          test ! -s conftest.err
24598        } && test -s conftest$ac_exeext &&
24599        $as_test_x conftest$ac_exeext; then
24600   ol_cv_pthread_lib_lpthreads=yes
24601 else
24602   echo "$as_me: failed program was:" >&5
24603 sed 's/^/| /' conftest.$ac_ext >&5
24604
24605         ol_cv_pthread_lib_lpthreads=no
24606 fi
24607
24608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24609       conftest$ac_exeext conftest.$ac_ext
24610 else
24611   cat >conftest.$ac_ext <<_ACEOF
24612 /* confdefs.h.  */
24613 _ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h.  */
24617
24618 /* pthread test headers */
24619 #include <pthread.h>
24620 #if HAVE_PTHREADS < 7
24621 #include <errno.h>
24622 #endif
24623 #ifndef NULL
24624 #define NULL (void*)0
24625 #endif
24626
24627 static void *task(p)
24628         void *p;
24629 {
24630         return (void *) (p == NULL);
24631 }
24632
24633
24634 int main(argc, argv)
24635         int argc;
24636         char **argv;
24637 {
24638
24639         /* pthread test function */
24640 #ifndef PTHREAD_CREATE_DETACHED
24641 #define PTHREAD_CREATE_DETACHED 1
24642 #endif
24643         pthread_t t;
24644         int status;
24645         int detach = PTHREAD_CREATE_DETACHED;
24646
24647 #if HAVE_PTHREADS > 4
24648         /* Final pthreads */
24649         pthread_attr_t attr;
24650
24651         status = pthread_attr_init(&attr);
24652         if( status ) return status;
24653
24654 #if HAVE_PTHREADS < 7
24655         status = pthread_attr_setdetachstate(&attr, &detach);
24656         if( status < 0 ) status = errno;
24657 #else
24658         status = pthread_attr_setdetachstate(&attr, detach);
24659 #endif
24660         if( status ) return status;
24661         status = pthread_create( &t, &attr, task, NULL );
24662 #if HAVE_PTHREADS < 7
24663         if( status < 0 ) status = errno;
24664 #endif
24665         if( status ) return status;
24666 #else
24667         /* Draft 4 pthreads */
24668         status = pthread_create( &t, pthread_attr_default, task, NULL );
24669         if( status ) return errno;
24670
24671         /* give thread a chance to complete */
24672         /* it should remain joinable and hence detachable */
24673         sleep( 1 );
24674
24675         status = pthread_detach( &t );
24676         if( status ) return errno;
24677 #endif
24678
24679 #ifdef HAVE_LINUX_THREADS
24680         pthread_kill_other_threads_np();
24681 #endif
24682
24683         return 0;
24684
24685 }
24686
24687 _ACEOF
24688 rm -f conftest$ac_exeext
24689 if { (ac_try="$ac_link"
24690 case "(($ac_try" in
24691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24692   *) ac_try_echo=$ac_try;;
24693 esac
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695   (eval "$ac_link") 2>&5
24696   ac_status=$?
24697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24699   { (case "(($ac_try" in
24700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701   *) ac_try_echo=$ac_try;;
24702 esac
24703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24704   (eval "$ac_try") 2>&5
24705   ac_status=$?
24706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707   (exit $ac_status); }; }; then
24708   ol_cv_pthread_lib_lpthreads=yes
24709 else
24710   echo "$as_me: program exited with status $ac_status" >&5
24711 echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.$ac_ext >&5
24713
24714 ( exit $ac_status )
24715 ol_cv_pthread_lib_lpthreads=no
24716 fi
24717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24718 fi
24719
24720
24721
24722                 # restore the LIBS
24723                 LIBS="$ol_LIBS"
24724
24725 fi
24726 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24727 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24728
24729         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24730                 ol_link_pthreads="-lpthreads"
24731                 ol_link_threads=posix
24732         fi
24733 fi
24734
24735
24736                 if test $ol_link_threads != no ; then
24737                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24738
24739                                                 save_CPPFLAGS="$CPPFLAGS"
24740                         save_LIBS="$LIBS"
24741                         LIBS="$LTHREAD_LIBS $LIBS"
24742
24743
24744
24745
24746 for ac_func in sched_yield pthread_yield thr_yield
24747 do
24748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24752   echo $ECHO_N "(cached) $ECHO_C" >&6
24753 else
24754   cat >conftest.$ac_ext <<_ACEOF
24755 /* confdefs.h.  */
24756 _ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h.  */
24760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24762 #define $ac_func innocuous_$ac_func
24763
24764 /* System header to define __stub macros and hopefully few prototypes,
24765     which can conflict with char $ac_func (); below.
24766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24767     <limits.h> exists even on freestanding compilers.  */
24768
24769 #ifdef __STDC__
24770 # include <limits.h>
24771 #else
24772 # include <assert.h>
24773 #endif
24774
24775 #undef $ac_func
24776
24777 /* Override any GCC internal prototype to avoid an error.
24778    Use char because int might match the return type of a GCC
24779    builtin and then its argument prototype would still apply.  */
24780 #ifdef __cplusplus
24781 extern "C"
24782 #endif
24783 char $ac_func ();
24784 /* The GNU C library defines this for functions which it implements
24785     to always fail with ENOSYS.  Some functions are actually named
24786     something starting with __ and the normal name is an alias.  */
24787 #if defined __stub_$ac_func || defined __stub___$ac_func
24788 choke me
24789 #endif
24790
24791 int
24792 main ()
24793 {
24794 return $ac_func ();
24795   ;
24796   return 0;
24797 }
24798 _ACEOF
24799 rm -f conftest.$ac_objext conftest$ac_exeext
24800 if { (ac_try="$ac_link"
24801 case "(($ac_try" in
24802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803   *) ac_try_echo=$ac_try;;
24804 esac
24805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806   (eval "$ac_link") 2>conftest.er1
24807   ac_status=$?
24808   grep -v '^ *+' conftest.er1 >conftest.err
24809   rm -f conftest.er1
24810   cat conftest.err >&5
24811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812   (exit $ac_status); } && {
24813          test -z "$ac_c_werror_flag" ||
24814          test ! -s conftest.err
24815        } && test -s conftest$ac_exeext &&
24816        $as_test_x conftest$ac_exeext; then
24817   eval "$as_ac_var=yes"
24818 else
24819   echo "$as_me: failed program was:" >&5
24820 sed 's/^/| /' conftest.$ac_ext >&5
24821
24822         eval "$as_ac_var=no"
24823 fi
24824
24825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24826       conftest$ac_exeext conftest.$ac_ext
24827 fi
24828 ac_res=`eval echo '${'$as_ac_var'}'`
24829                { echo "$as_me:$LINENO: result: $ac_res" >&5
24830 echo "${ECHO_T}$ac_res" >&6; }
24831 if test `eval echo '${'$as_ac_var'}'` = yes; then
24832   cat >>confdefs.h <<_ACEOF
24833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24834 _ACEOF
24835
24836 fi
24837 done
24838
24839
24840                         if test $ac_cv_func_sched_yield = no &&
24841                            test $ac_cv_func_pthread_yield = no &&
24842                            test $ac_cv_func_thr_yield = no ; then
24843                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24844 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24845 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24846   echo $ECHO_N "(cached) $ECHO_C" >&6
24847 else
24848   ac_check_lib_save_LIBS=$LIBS
24849 LIBS="-lrt  $LIBS"
24850 cat >conftest.$ac_ext <<_ACEOF
24851 /* confdefs.h.  */
24852 _ACEOF
24853 cat confdefs.h >>conftest.$ac_ext
24854 cat >>conftest.$ac_ext <<_ACEOF
24855 /* end confdefs.h.  */
24856
24857 /* Override any GCC internal prototype to avoid an error.
24858    Use char because int might match the return type of a GCC
24859    builtin and then its argument prototype would still apply.  */
24860 #ifdef __cplusplus
24861 extern "C"
24862 #endif
24863 char sched_yield ();
24864 int
24865 main ()
24866 {
24867 return sched_yield ();
24868   ;
24869   return 0;
24870 }
24871 _ACEOF
24872 rm -f conftest.$ac_objext conftest$ac_exeext
24873 if { (ac_try="$ac_link"
24874 case "(($ac_try" in
24875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24876   *) ac_try_echo=$ac_try;;
24877 esac
24878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24879   (eval "$ac_link") 2>conftest.er1
24880   ac_status=$?
24881   grep -v '^ *+' conftest.er1 >conftest.err
24882   rm -f conftest.er1
24883   cat conftest.err >&5
24884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885   (exit $ac_status); } && {
24886          test -z "$ac_c_werror_flag" ||
24887          test ! -s conftest.err
24888        } && test -s conftest$ac_exeext &&
24889        $as_test_x conftest$ac_exeext; then
24890   ac_cv_lib_rt_sched_yield=yes
24891 else
24892   echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24894
24895         ac_cv_lib_rt_sched_yield=no
24896 fi
24897
24898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24899       conftest$ac_exeext conftest.$ac_ext
24900 LIBS=$ac_check_lib_save_LIBS
24901 fi
24902 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24903 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24904 if test $ac_cv_lib_rt_sched_yield = yes; then
24905   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24906
24907 cat >>confdefs.h <<\_ACEOF
24908 #define HAVE_SCHED_YIELD 1
24909 _ACEOF
24910
24911                                         ac_cv_func_sched_yield=yes
24912 else
24913   ac_cv_func_sched_yield=no
24914 fi
24915
24916                         fi
24917                         if test $ac_cv_func_sched_yield = no &&
24918                            test $ac_cv_func_pthread_yield = no &&
24919                            test "$ac_cv_func_thr_yield" = no ; then
24920                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24921 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24922                         fi
24923
24924
24925 for ac_func in pthread_kill
24926 do
24927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24931   echo $ECHO_N "(cached) $ECHO_C" >&6
24932 else
24933   cat >conftest.$ac_ext <<_ACEOF
24934 /* confdefs.h.  */
24935 _ACEOF
24936 cat confdefs.h >>conftest.$ac_ext
24937 cat >>conftest.$ac_ext <<_ACEOF
24938 /* end confdefs.h.  */
24939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24941 #define $ac_func innocuous_$ac_func
24942
24943 /* System header to define __stub macros and hopefully few prototypes,
24944     which can conflict with char $ac_func (); below.
24945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24946     <limits.h> exists even on freestanding compilers.  */
24947
24948 #ifdef __STDC__
24949 # include <limits.h>
24950 #else
24951 # include <assert.h>
24952 #endif
24953
24954 #undef $ac_func
24955
24956 /* Override any GCC internal prototype to avoid an error.
24957    Use char because int might match the return type of a GCC
24958    builtin and then its argument prototype would still apply.  */
24959 #ifdef __cplusplus
24960 extern "C"
24961 #endif
24962 char $ac_func ();
24963 /* The GNU C library defines this for functions which it implements
24964     to always fail with ENOSYS.  Some functions are actually named
24965     something starting with __ and the normal name is an alias.  */
24966 #if defined __stub_$ac_func || defined __stub___$ac_func
24967 choke me
24968 #endif
24969
24970 int
24971 main ()
24972 {
24973 return $ac_func ();
24974   ;
24975   return 0;
24976 }
24977 _ACEOF
24978 rm -f conftest.$ac_objext conftest$ac_exeext
24979 if { (ac_try="$ac_link"
24980 case "(($ac_try" in
24981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24982   *) ac_try_echo=$ac_try;;
24983 esac
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985   (eval "$ac_link") 2>conftest.er1
24986   ac_status=$?
24987   grep -v '^ *+' conftest.er1 >conftest.err
24988   rm -f conftest.er1
24989   cat conftest.err >&5
24990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991   (exit $ac_status); } && {
24992          test -z "$ac_c_werror_flag" ||
24993          test ! -s conftest.err
24994        } && test -s conftest$ac_exeext &&
24995        $as_test_x conftest$ac_exeext; then
24996   eval "$as_ac_var=yes"
24997 else
24998   echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25000
25001         eval "$as_ac_var=no"
25002 fi
25003
25004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25005       conftest$ac_exeext conftest.$ac_ext
25006 fi
25007 ac_res=`eval echo '${'$as_ac_var'}'`
25008                { echo "$as_me:$LINENO: result: $ac_res" >&5
25009 echo "${ECHO_T}$ac_res" >&6; }
25010 if test `eval echo '${'$as_ac_var'}'` = yes; then
25011   cat >>confdefs.h <<_ACEOF
25012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25013 _ACEOF
25014
25015 fi
25016 done
25017
25018
25019                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
25020 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
25021 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
25022   echo $ECHO_N "(cached) $ECHO_C" >&6
25023 else
25024
25025                                                                 cat >conftest.$ac_ext <<_ACEOF
25026 /* confdefs.h.  */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h.  */
25031
25032 #include <pthread.h>
25033 pthread_rwlock_t rwlock;
25034
25035 int
25036 main ()
25037 {
25038 pthread_rwlock_destroy(&rwlock);
25039   ;
25040   return 0;
25041 }
25042 _ACEOF
25043 rm -f conftest.$ac_objext conftest$ac_exeext
25044 if { (ac_try="$ac_link"
25045 case "(($ac_try" in
25046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25047   *) ac_try_echo=$ac_try;;
25048 esac
25049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25050   (eval "$ac_link") 2>conftest.er1
25051   ac_status=$?
25052   grep -v '^ *+' conftest.er1 >conftest.err
25053   rm -f conftest.er1
25054   cat conftest.err >&5
25055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056   (exit $ac_status); } && {
25057          test -z "$ac_c_werror_flag" ||
25058          test ! -s conftest.err
25059        } && test -s conftest$ac_exeext &&
25060        $as_test_x conftest$ac_exeext; then
25061   ol_cv_func_pthread_rwlock_destroy=yes
25062 else
25063   echo "$as_me: failed program was:" >&5
25064 sed 's/^/| /' conftest.$ac_ext >&5
25065
25066         ol_cv_func_pthread_rwlock_destroy=no
25067 fi
25068
25069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25070       conftest$ac_exeext conftest.$ac_ext
25071
25072 fi
25073 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
25074 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
25075                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
25076
25077 cat >>confdefs.h <<\_ACEOF
25078 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
25079 _ACEOF
25080
25081                         fi
25082
25083                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
25084 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
25085 if test "${ol_cv_func_pthread_detach+set}" = set; then
25086   echo $ECHO_N "(cached) $ECHO_C" >&6
25087 else
25088
25089                                                                 cat >conftest.$ac_ext <<_ACEOF
25090 /* confdefs.h.  */
25091 _ACEOF
25092 cat confdefs.h >>conftest.$ac_ext
25093 cat >>conftest.$ac_ext <<_ACEOF
25094 /* end confdefs.h.  */
25095
25096 #include <pthread.h>
25097 #ifndef NULL
25098 #define NULL (void*)0
25099 #endif
25100
25101 int
25102 main ()
25103 {
25104 pthread_detach(NULL);
25105   ;
25106   return 0;
25107 }
25108 _ACEOF
25109 rm -f conftest.$ac_objext conftest$ac_exeext
25110 if { (ac_try="$ac_link"
25111 case "(($ac_try" in
25112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113   *) ac_try_echo=$ac_try;;
25114 esac
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116   (eval "$ac_link") 2>conftest.er1
25117   ac_status=$?
25118   grep -v '^ *+' conftest.er1 >conftest.err
25119   rm -f conftest.er1
25120   cat conftest.err >&5
25121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122   (exit $ac_status); } && {
25123          test -z "$ac_c_werror_flag" ||
25124          test ! -s conftest.err
25125        } && test -s conftest$ac_exeext &&
25126        $as_test_x conftest$ac_exeext; then
25127   ol_cv_func_pthread_detach=yes
25128 else
25129   echo "$as_me: failed program was:" >&5
25130 sed 's/^/| /' conftest.$ac_ext >&5
25131
25132         ol_cv_func_pthread_detach=no
25133 fi
25134
25135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25136       conftest$ac_exeext conftest.$ac_ext
25137
25138 fi
25139 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
25140 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
25141
25142                         if test $ol_cv_func_pthread_detach = no ; then
25143                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
25144 echo "$as_me: error: could not locate pthread_detach()" >&2;}
25145    { (exit 1); exit 1; }; }
25146                         fi
25147
25148
25149 cat >>confdefs.h <<\_ACEOF
25150 #define HAVE_PTHREAD_DETACH 1
25151 _ACEOF
25152
25153
25154
25155
25156
25157
25158 for ac_func in \
25159                                 pthread_setconcurrency \
25160                                 pthread_getconcurrency \
25161                                 thr_setconcurrency \
25162                                 thr_getconcurrency \
25163
25164 do
25165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25169   echo $ECHO_N "(cached) $ECHO_C" >&6
25170 else
25171   cat >conftest.$ac_ext <<_ACEOF
25172 /* confdefs.h.  */
25173 _ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h.  */
25177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25179 #define $ac_func innocuous_$ac_func
25180
25181 /* System header to define __stub macros and hopefully few prototypes,
25182     which can conflict with char $ac_func (); below.
25183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25184     <limits.h> exists even on freestanding compilers.  */
25185
25186 #ifdef __STDC__
25187 # include <limits.h>
25188 #else
25189 # include <assert.h>
25190 #endif
25191
25192 #undef $ac_func
25193
25194 /* Override any GCC internal prototype to avoid an error.
25195    Use char because int might match the return type of a GCC
25196    builtin and then its argument prototype would still apply.  */
25197 #ifdef __cplusplus
25198 extern "C"
25199 #endif
25200 char $ac_func ();
25201 /* The GNU C library defines this for functions which it implements
25202     to always fail with ENOSYS.  Some functions are actually named
25203     something starting with __ and the normal name is an alias.  */
25204 #if defined __stub_$ac_func || defined __stub___$ac_func
25205 choke me
25206 #endif
25207
25208 int
25209 main ()
25210 {
25211 return $ac_func ();
25212   ;
25213   return 0;
25214 }
25215 _ACEOF
25216 rm -f conftest.$ac_objext conftest$ac_exeext
25217 if { (ac_try="$ac_link"
25218 case "(($ac_try" in
25219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25220   *) ac_try_echo=$ac_try;;
25221 esac
25222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25223   (eval "$ac_link") 2>conftest.er1
25224   ac_status=$?
25225   grep -v '^ *+' conftest.er1 >conftest.err
25226   rm -f conftest.er1
25227   cat conftest.err >&5
25228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229   (exit $ac_status); } && {
25230          test -z "$ac_c_werror_flag" ||
25231          test ! -s conftest.err
25232        } && test -s conftest$ac_exeext &&
25233        $as_test_x conftest$ac_exeext; then
25234   eval "$as_ac_var=yes"
25235 else
25236   echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25238
25239         eval "$as_ac_var=no"
25240 fi
25241
25242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25243       conftest$ac_exeext conftest.$ac_ext
25244 fi
25245 ac_res=`eval echo '${'$as_ac_var'}'`
25246                { echo "$as_me:$LINENO: result: $ac_res" >&5
25247 echo "${ECHO_T}$ac_res" >&6; }
25248 if test `eval echo '${'$as_ac_var'}'` = yes; then
25249   cat >>confdefs.h <<_ACEOF
25250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25251 _ACEOF
25252
25253 fi
25254 done
25255
25256
25257
25258
25259 for ac_func in pthread_kill_other_threads_np
25260 do
25261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25265   echo $ECHO_N "(cached) $ECHO_C" >&6
25266 else
25267   cat >conftest.$ac_ext <<_ACEOF
25268 /* confdefs.h.  */
25269 _ACEOF
25270 cat confdefs.h >>conftest.$ac_ext
25271 cat >>conftest.$ac_ext <<_ACEOF
25272 /* end confdefs.h.  */
25273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25275 #define $ac_func innocuous_$ac_func
25276
25277 /* System header to define __stub macros and hopefully few prototypes,
25278     which can conflict with char $ac_func (); below.
25279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25280     <limits.h> exists even on freestanding compilers.  */
25281
25282 #ifdef __STDC__
25283 # include <limits.h>
25284 #else
25285 # include <assert.h>
25286 #endif
25287
25288 #undef $ac_func
25289
25290 /* Override any GCC internal prototype to avoid an error.
25291    Use char because int might match the return type of a GCC
25292    builtin and then its argument prototype would still apply.  */
25293 #ifdef __cplusplus
25294 extern "C"
25295 #endif
25296 char $ac_func ();
25297 /* The GNU C library defines this for functions which it implements
25298     to always fail with ENOSYS.  Some functions are actually named
25299     something starting with __ and the normal name is an alias.  */
25300 #if defined __stub_$ac_func || defined __stub___$ac_func
25301 choke me
25302 #endif
25303
25304 int
25305 main ()
25306 {
25307 return $ac_func ();
25308   ;
25309   return 0;
25310 }
25311 _ACEOF
25312 rm -f conftest.$ac_objext conftest$ac_exeext
25313 if { (ac_try="$ac_link"
25314 case "(($ac_try" in
25315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316   *) ac_try_echo=$ac_try;;
25317 esac
25318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25319   (eval "$ac_link") 2>conftest.er1
25320   ac_status=$?
25321   grep -v '^ *+' conftest.er1 >conftest.err
25322   rm -f conftest.er1
25323   cat conftest.err >&5
25324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325   (exit $ac_status); } && {
25326          test -z "$ac_c_werror_flag" ||
25327          test ! -s conftest.err
25328        } && test -s conftest$ac_exeext &&
25329        $as_test_x conftest$ac_exeext; then
25330   eval "$as_ac_var=yes"
25331 else
25332   echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25334
25335         eval "$as_ac_var=no"
25336 fi
25337
25338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25339       conftest$ac_exeext conftest.$ac_ext
25340 fi
25341 ac_res=`eval echo '${'$as_ac_var'}'`
25342                { echo "$as_me:$LINENO: result: $ac_res" >&5
25343 echo "${ECHO_T}$ac_res" >&6; }
25344 if test `eval echo '${'$as_ac_var'}'` = yes; then
25345   cat >>confdefs.h <<_ACEOF
25346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25347 _ACEOF
25348
25349 fi
25350 done
25351
25352         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25353 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25354 if test "${ol_cv_sys_linux_threads+set}" = set; then
25355   echo $ECHO_N "(cached) $ECHO_C" >&6
25356 else
25357   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25358 fi
25359 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25360 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25361
25362
25363
25364
25365         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25366 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25367 if test "${ol_cv_linux_threads+set}" = set; then
25368   echo $ECHO_N "(cached) $ECHO_C" >&6
25369 else
25370
25371                 if test $ol_cv_header_linux_threads = yes &&
25372                    test $ol_cv_sys_linux_threads = yes; then
25373                         ol_cv_linux_threads=yes
25374                 elif test $ol_cv_header_linux_threads = no &&
25375                      test $ol_cv_sys_linux_threads = no; then
25376                         ol_cv_linux_threads=no
25377                 else
25378                         ol_cv_linux_threads=error
25379                 fi
25380
25381 fi
25382 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25383 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25384
25385
25386                         if test $ol_cv_linux_threads = error; then
25387                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25388 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25389    { (exit 1); exit 1; }; };
25390                         fi
25391
25392                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25393 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25394 if test "${ol_cv_pthread_create_works+set}" = set; then
25395   echo $ECHO_N "(cached) $ECHO_C" >&6
25396 else
25397
25398                         if test "$cross_compiling" = yes; then
25399                                 ol_cv_pthread_create_works=yes
25400 else
25401   cat >conftest.$ac_ext <<_ACEOF
25402 /* confdefs.h.  */
25403 _ACEOF
25404 cat confdefs.h >>conftest.$ac_ext
25405 cat >>conftest.$ac_ext <<_ACEOF
25406 /* end confdefs.h.  */
25407
25408 /* pthread test headers */
25409 #include <pthread.h>
25410 #if HAVE_PTHREADS < 7
25411 #include <errno.h>
25412 #endif
25413 #ifndef NULL
25414 #define NULL (void*)0
25415 #endif
25416
25417 static void *task(p)
25418         void *p;
25419 {
25420         return (void *) (p == NULL);
25421 }
25422
25423
25424 int main(argc, argv)
25425         int argc;
25426         char **argv;
25427 {
25428
25429         /* pthread test function */
25430 #ifndef PTHREAD_CREATE_DETACHED
25431 #define PTHREAD_CREATE_DETACHED 1
25432 #endif
25433         pthread_t t;
25434         int status;
25435         int detach = PTHREAD_CREATE_DETACHED;
25436
25437 #if HAVE_PTHREADS > 4
25438         /* Final pthreads */
25439         pthread_attr_t attr;
25440
25441         status = pthread_attr_init(&attr);
25442         if( status ) return status;
25443
25444 #if HAVE_PTHREADS < 7
25445         status = pthread_attr_setdetachstate(&attr, &detach);
25446         if( status < 0 ) status = errno;
25447 #else
25448         status = pthread_attr_setdetachstate(&attr, detach);
25449 #endif
25450         if( status ) return status;
25451         status = pthread_create( &t, &attr, task, NULL );
25452 #if HAVE_PTHREADS < 7
25453         if( status < 0 ) status = errno;
25454 #endif
25455         if( status ) return status;
25456 #else
25457         /* Draft 4 pthreads */
25458         status = pthread_create( &t, pthread_attr_default, task, NULL );
25459         if( status ) return errno;
25460
25461         /* give thread a chance to complete */
25462         /* it should remain joinable and hence detachable */
25463         sleep( 1 );
25464
25465         status = pthread_detach( &t );
25466         if( status ) return errno;
25467 #endif
25468
25469 #ifdef HAVE_LINUX_THREADS
25470         pthread_kill_other_threads_np();
25471 #endif
25472
25473         return 0;
25474
25475 }
25476
25477 _ACEOF
25478 rm -f conftest$ac_exeext
25479 if { (ac_try="$ac_link"
25480 case "(($ac_try" in
25481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25482   *) ac_try_echo=$ac_try;;
25483 esac
25484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25485   (eval "$ac_link") 2>&5
25486   ac_status=$?
25487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25489   { (case "(($ac_try" in
25490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25491   *) ac_try_echo=$ac_try;;
25492 esac
25493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25494   (eval "$ac_try") 2>&5
25495   ac_status=$?
25496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497   (exit $ac_status); }; }; then
25498   ol_cv_pthread_create_works=yes
25499 else
25500   echo "$as_me: program exited with status $ac_status" >&5
25501 echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25503
25504 ( exit $ac_status )
25505 ol_cv_pthread_create_works=no
25506 fi
25507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25508 fi
25509
25510
25511 fi
25512 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25513 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25514
25515                         if test $ol_cv_pthread_create_works = no ; then
25516                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25517 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25518    { (exit 1); exit 1; }; }
25519                         fi
25520
25521                         ol_replace_broken_yield=no
25522
25523                         if test $ol_replace_broken_yield = yes ; then
25524
25525 cat >>confdefs.h <<\_ACEOF
25526 #define REPLACE_BROKEN_YIELD 1
25527 _ACEOF
25528
25529                         fi
25530
25531                                                 if test $ol_with_yielding_select = auto ; then
25532                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25533 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25534 if test "${ol_cv_pthread_select_yields+set}" = set; then
25535   echo $ECHO_N "(cached) $ECHO_C" >&6
25536 else
25537
25538                                 if test "$cross_compiling" = yes; then
25539   ol_cv_pthread_select_yields=cross
25540 else
25541   cat >conftest.$ac_ext <<_ACEOF
25542 /* confdefs.h.  */
25543 _ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h.  */
25547
25548 #include <sys/types.h>
25549 #include <sys/time.h>
25550 #include <unistd.h>
25551 #include <pthread.h>
25552 #ifndef NULL
25553 #define NULL (void*) 0
25554 #endif
25555
25556 static int fildes[2];
25557
25558 static void *task(p)
25559         void *p;
25560 {
25561         int i;
25562         struct timeval tv;
25563
25564         fd_set rfds;
25565
25566         tv.tv_sec=10;
25567         tv.tv_usec=0;
25568
25569         FD_ZERO(&rfds);
25570         FD_SET(fildes[0], &rfds);
25571
25572         /* we're not interested in any fds */
25573         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25574
25575         if(i < 0) {
25576                 perror("select");
25577                 exit(10);
25578         }
25579
25580         exit(0); /* if we exit here, the select blocked the whole process */
25581 }
25582
25583 int main(argc, argv)
25584         int argc;
25585         char **argv;
25586 {
25587         pthread_t t;
25588
25589         /* create a pipe to select */
25590         if(pipe(&fildes[0])) {
25591                 perror("select");
25592                 exit(1);
25593         }
25594
25595 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25596         (void) pthread_setconcurrency(2);
25597 #else
25598 #ifdef HAVE_THR_SETCONCURRENCY
25599         /* Set Solaris LWP concurrency to 2 */
25600         thr_setconcurrency(2);
25601 #endif
25602 #endif
25603
25604 #if HAVE_PTHREADS < 6
25605         pthread_create(&t, pthread_attr_default, task, NULL);
25606 #else
25607         pthread_create(&t, NULL, task, NULL);
25608 #endif
25609
25610         /* make sure task runs first */
25611 #ifdef HAVE_THR_YIELD
25612         thr_yield();
25613 #elif defined( HAVE_SCHED_YIELD )
25614         sched_yield();
25615 #elif defined( HAVE_PTHREAD_YIELD )
25616         pthread_yield();
25617 #endif
25618
25619         exit(2);
25620 }
25621 _ACEOF
25622 rm -f conftest$ac_exeext
25623 if { (ac_try="$ac_link"
25624 case "(($ac_try" in
25625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25626   *) ac_try_echo=$ac_try;;
25627 esac
25628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25629   (eval "$ac_link") 2>&5
25630   ac_status=$?
25631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25633   { (case "(($ac_try" in
25634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25635   *) ac_try_echo=$ac_try;;
25636 esac
25637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25638   (eval "$ac_try") 2>&5
25639   ac_status=$?
25640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641   (exit $ac_status); }; }; then
25642   ol_cv_pthread_select_yields=no
25643 else
25644   echo "$as_me: program exited with status $ac_status" >&5
25645 echo "$as_me: failed program was:" >&5
25646 sed 's/^/| /' conftest.$ac_ext >&5
25647
25648 ( exit $ac_status )
25649 ol_cv_pthread_select_yields=yes
25650 fi
25651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25652 fi
25653
25654
25655 fi
25656 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25657 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25658
25659                                 if test $ol_cv_pthread_select_yields = cross ; then
25660                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25661 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25662    { (exit 1); exit 1; }; }
25663                                 fi
25664
25665                                 if test $ol_cv_pthread_select_yields = yes ; then
25666                                         ol_with_yielding_select=yes
25667                                 fi
25668                         fi
25669
25670                                                 CPPFLAGS="$save_CPPFLAGS"
25671                         LIBS="$save_LIBS"
25672                 else
25673                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25674 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25675    { (exit 1); exit 1; }; }
25676                 fi
25677         fi
25678
25679         if test $ol_with_threads = posix ; then
25680                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25681 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25682    { (exit 1); exit 1; }; }
25683         fi
25684         ;;
25685 esac
25686
25687 case $ol_with_threads in auto | yes | mach)
25688
25689
25690
25691 for ac_header in mach/cthreads.h cthreads.h
25692 do
25693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25695   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25698   echo $ECHO_N "(cached) $ECHO_C" >&6
25699 fi
25700 ac_res=`eval echo '${'$as_ac_Header'}'`
25701                { echo "$as_me:$LINENO: result: $ac_res" >&5
25702 echo "${ECHO_T}$ac_res" >&6; }
25703 else
25704   # Is the header compilable?
25705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25707 cat >conftest.$ac_ext <<_ACEOF
25708 /* confdefs.h.  */
25709 _ACEOF
25710 cat confdefs.h >>conftest.$ac_ext
25711 cat >>conftest.$ac_ext <<_ACEOF
25712 /* end confdefs.h.  */
25713 $ac_includes_default
25714 #include <$ac_header>
25715 _ACEOF
25716 rm -f conftest.$ac_objext
25717 if { (ac_try="$ac_compile"
25718 case "(($ac_try" in
25719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720   *) ac_try_echo=$ac_try;;
25721 esac
25722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25723   (eval "$ac_compile") 2>conftest.er1
25724   ac_status=$?
25725   grep -v '^ *+' conftest.er1 >conftest.err
25726   rm -f conftest.er1
25727   cat conftest.err >&5
25728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729   (exit $ac_status); } && {
25730          test -z "$ac_c_werror_flag" ||
25731          test ! -s conftest.err
25732        } && test -s conftest.$ac_objext; then
25733   ac_header_compiler=yes
25734 else
25735   echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25737
25738         ac_header_compiler=no
25739 fi
25740
25741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25743 echo "${ECHO_T}$ac_header_compiler" >&6; }
25744
25745 # Is the header present?
25746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25748 cat >conftest.$ac_ext <<_ACEOF
25749 /* confdefs.h.  */
25750 _ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h.  */
25754 #include <$ac_header>
25755 _ACEOF
25756 if { (ac_try="$ac_cpp conftest.$ac_ext"
25757 case "(($ac_try" in
25758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25759   *) ac_try_echo=$ac_try;;
25760 esac
25761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25762   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25763   ac_status=$?
25764   grep -v '^ *+' conftest.er1 >conftest.err
25765   rm -f conftest.er1
25766   cat conftest.err >&5
25767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768   (exit $ac_status); } >/dev/null && {
25769          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25770          test ! -s conftest.err
25771        }; then
25772   ac_header_preproc=yes
25773 else
25774   echo "$as_me: failed program was:" >&5
25775 sed 's/^/| /' conftest.$ac_ext >&5
25776
25777   ac_header_preproc=no
25778 fi
25779
25780 rm -f conftest.err conftest.$ac_ext
25781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25782 echo "${ECHO_T}$ac_header_preproc" >&6; }
25783
25784 # So?  What about this header?
25785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25786   yes:no: )
25787     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25791     ac_header_preproc=yes
25792     ;;
25793   no:yes:* )
25794     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25796     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25797 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25798     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25800     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25801 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25804     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25806     ( cat <<\_ASBOX
25807 ## --------------------------------------------- ##
25808 ## Report this to <http://www.openldap.org/its/> ##
25809 ## --------------------------------------------- ##
25810 _ASBOX
25811      ) | sed "s/^/$as_me: WARNING:     /" >&2
25812     ;;
25813 esac
25814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25817   echo $ECHO_N "(cached) $ECHO_C" >&6
25818 else
25819   eval "$as_ac_Header=\$ac_header_preproc"
25820 fi
25821 ac_res=`eval echo '${'$as_ac_Header'}'`
25822                { echo "$as_me:$LINENO: result: $ac_res" >&5
25823 echo "${ECHO_T}$ac_res" >&6; }
25824
25825 fi
25826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25827   cat >>confdefs.h <<_ACEOF
25828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25829 _ACEOF
25830
25831 fi
25832
25833 done
25834
25835         if test $ac_cv_header_mach_cthreads_h = yes ; then
25836                 ol_with_threads=found
25837
25838                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25839 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25840 if test "${ac_cv_func_cthread_fork+set}" = set; then
25841   echo $ECHO_N "(cached) $ECHO_C" >&6
25842 else
25843   cat >conftest.$ac_ext <<_ACEOF
25844 /* confdefs.h.  */
25845 _ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h.  */
25849 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25851 #define cthread_fork innocuous_cthread_fork
25852
25853 /* System header to define __stub macros and hopefully few prototypes,
25854     which can conflict with char cthread_fork (); below.
25855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25856     <limits.h> exists even on freestanding compilers.  */
25857
25858 #ifdef __STDC__
25859 # include <limits.h>
25860 #else
25861 # include <assert.h>
25862 #endif
25863
25864 #undef cthread_fork
25865
25866 /* Override any GCC internal prototype to avoid an error.
25867    Use char because int might match the return type of a GCC
25868    builtin and then its argument prototype would still apply.  */
25869 #ifdef __cplusplus
25870 extern "C"
25871 #endif
25872 char cthread_fork ();
25873 /* The GNU C library defines this for functions which it implements
25874     to always fail with ENOSYS.  Some functions are actually named
25875     something starting with __ and the normal name is an alias.  */
25876 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25877 choke me
25878 #endif
25879
25880 int
25881 main ()
25882 {
25883 return cthread_fork ();
25884   ;
25885   return 0;
25886 }
25887 _ACEOF
25888 rm -f conftest.$ac_objext conftest$ac_exeext
25889 if { (ac_try="$ac_link"
25890 case "(($ac_try" in
25891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25892   *) ac_try_echo=$ac_try;;
25893 esac
25894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25895   (eval "$ac_link") 2>conftest.er1
25896   ac_status=$?
25897   grep -v '^ *+' conftest.er1 >conftest.err
25898   rm -f conftest.er1
25899   cat conftest.err >&5
25900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); } && {
25902          test -z "$ac_c_werror_flag" ||
25903          test ! -s conftest.err
25904        } && test -s conftest$ac_exeext &&
25905        $as_test_x conftest$ac_exeext; then
25906   ac_cv_func_cthread_fork=yes
25907 else
25908   echo "$as_me: failed program was:" >&5
25909 sed 's/^/| /' conftest.$ac_ext >&5
25910
25911         ac_cv_func_cthread_fork=no
25912 fi
25913
25914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25915       conftest$ac_exeext conftest.$ac_ext
25916 fi
25917 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25918 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25919 if test $ac_cv_func_cthread_fork = yes; then
25920   ol_link_threads=yes
25921 fi
25922
25923
25924                 if test $ol_link_threads = no ; then
25925                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25926 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25927 if test "${ol_cv_cthread_all_load+set}" = set; then
25928   echo $ECHO_N "(cached) $ECHO_C" >&6
25929 else
25930
25931                                                                 save_LIBS="$LIBS"
25932                                 LIBS="-all_load $LIBS"
25933                                 cat >conftest.$ac_ext <<_ACEOF
25934 /* confdefs.h.  */
25935 _ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h.  */
25939 #include <mach/cthreads.h>
25940 int
25941 main ()
25942 {
25943
25944                                         cthread_fork((void *)0, (void *)0);
25945
25946   ;
25947   return 0;
25948 }
25949 _ACEOF
25950 rm -f conftest.$ac_objext conftest$ac_exeext
25951 if { (ac_try="$ac_link"
25952 case "(($ac_try" in
25953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25954   *) ac_try_echo=$ac_try;;
25955 esac
25956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25957   (eval "$ac_link") 2>conftest.er1
25958   ac_status=$?
25959   grep -v '^ *+' conftest.er1 >conftest.err
25960   rm -f conftest.er1
25961   cat conftest.err >&5
25962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963   (exit $ac_status); } && {
25964          test -z "$ac_c_werror_flag" ||
25965          test ! -s conftest.err
25966        } && test -s conftest$ac_exeext &&
25967        $as_test_x conftest$ac_exeext; then
25968   ol_cv_cthread_all_load=yes
25969 else
25970   echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25972
25973         ol_cv_cthread_all_load=no
25974 fi
25975
25976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25977       conftest$ac_exeext conftest.$ac_ext
25978                                                                 LIBS="$save_LIBS"
25979
25980 fi
25981 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25982 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25983
25984                         if test $ol_cv_cthread_all_load = yes ; then
25985                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25986                                 ol_link_threads=mach
25987                                 ol_with_threads=found
25988                         fi
25989                 fi
25990
25991         elif test $ac_cv_header_cthreads_h = yes ; then
25992
25993                 ol_with_threads=found
25994
25995                                 save_LIBS="$LIBS"
25996                 LIBS="$LIBS -lthreads"
25997                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25998 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25999 if test "${ac_cv_func_cthread_fork+set}" = set; then
26000   echo $ECHO_N "(cached) $ECHO_C" >&6
26001 else
26002   cat >conftest.$ac_ext <<_ACEOF
26003 /* confdefs.h.  */
26004 _ACEOF
26005 cat confdefs.h >>conftest.$ac_ext
26006 cat >>conftest.$ac_ext <<_ACEOF
26007 /* end confdefs.h.  */
26008 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
26009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26010 #define cthread_fork innocuous_cthread_fork
26011
26012 /* System header to define __stub macros and hopefully few prototypes,
26013     which can conflict with char cthread_fork (); below.
26014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26015     <limits.h> exists even on freestanding compilers.  */
26016
26017 #ifdef __STDC__
26018 # include <limits.h>
26019 #else
26020 # include <assert.h>
26021 #endif
26022
26023 #undef cthread_fork
26024
26025 /* Override any GCC internal prototype to avoid an error.
26026    Use char because int might match the return type of a GCC
26027    builtin and then its argument prototype would still apply.  */
26028 #ifdef __cplusplus
26029 extern "C"
26030 #endif
26031 char cthread_fork ();
26032 /* The GNU C library defines this for functions which it implements
26033     to always fail with ENOSYS.  Some functions are actually named
26034     something starting with __ and the normal name is an alias.  */
26035 #if defined __stub_cthread_fork || defined __stub___cthread_fork
26036 choke me
26037 #endif
26038
26039 int
26040 main ()
26041 {
26042 return cthread_fork ();
26043   ;
26044   return 0;
26045 }
26046 _ACEOF
26047 rm -f conftest.$ac_objext conftest$ac_exeext
26048 if { (ac_try="$ac_link"
26049 case "(($ac_try" in
26050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26051   *) ac_try_echo=$ac_try;;
26052 esac
26053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26054   (eval "$ac_link") 2>conftest.er1
26055   ac_status=$?
26056   grep -v '^ *+' conftest.er1 >conftest.err
26057   rm -f conftest.er1
26058   cat conftest.err >&5
26059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060   (exit $ac_status); } && {
26061          test -z "$ac_c_werror_flag" ||
26062          test ! -s conftest.err
26063        } && test -s conftest$ac_exeext &&
26064        $as_test_x conftest$ac_exeext; then
26065   ac_cv_func_cthread_fork=yes
26066 else
26067   echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.$ac_ext >&5
26069
26070         ac_cv_func_cthread_fork=no
26071 fi
26072
26073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26074       conftest$ac_exeext conftest.$ac_ext
26075 fi
26076 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
26077 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
26078 if test $ac_cv_func_cthread_fork = yes; then
26079   ol_link_threads=yes
26080 fi
26081
26082                 LIBS="$save_LIBS"
26083
26084                 if test $ol_link_threads = yes ; then
26085                         LTHREAD_LIBS="-lthreads"
26086                         ol_link_threads=mach
26087                         ol_with_threads=found
26088                 else
26089                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26090 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26091    { (exit 1); exit 1; }; }
26092                 fi
26093
26094         elif test $ol_with_threads = mach ; then
26095                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
26096 echo "$as_me: error: could not locate Mach CThreads" >&2;}
26097    { (exit 1); exit 1; }; }
26098         fi
26099
26100         if test $ol_link_threads = mach ; then
26101
26102 cat >>confdefs.h <<\_ACEOF
26103 #define HAVE_MACH_CTHREADS 1
26104 _ACEOF
26105
26106         elif test $ol_with_threads = found ; then
26107                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26108 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26109    { (exit 1); exit 1; }; }
26110         fi
26111         ;;
26112 esac
26113
26114 case $ol_with_threads in auto | yes | pth)
26115
26116
26117 for ac_header in pth.h
26118 do
26119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26121   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26124   echo $ECHO_N "(cached) $ECHO_C" >&6
26125 fi
26126 ac_res=`eval echo '${'$as_ac_Header'}'`
26127                { echo "$as_me:$LINENO: result: $ac_res" >&5
26128 echo "${ECHO_T}$ac_res" >&6; }
26129 else
26130   # Is the header compilable?
26131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26133 cat >conftest.$ac_ext <<_ACEOF
26134 /* confdefs.h.  */
26135 _ACEOF
26136 cat confdefs.h >>conftest.$ac_ext
26137 cat >>conftest.$ac_ext <<_ACEOF
26138 /* end confdefs.h.  */
26139 $ac_includes_default
26140 #include <$ac_header>
26141 _ACEOF
26142 rm -f conftest.$ac_objext
26143 if { (ac_try="$ac_compile"
26144 case "(($ac_try" in
26145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26146   *) ac_try_echo=$ac_try;;
26147 esac
26148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26149   (eval "$ac_compile") 2>conftest.er1
26150   ac_status=$?
26151   grep -v '^ *+' conftest.er1 >conftest.err
26152   rm -f conftest.er1
26153   cat conftest.err >&5
26154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155   (exit $ac_status); } && {
26156          test -z "$ac_c_werror_flag" ||
26157          test ! -s conftest.err
26158        } && test -s conftest.$ac_objext; then
26159   ac_header_compiler=yes
26160 else
26161   echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26163
26164         ac_header_compiler=no
26165 fi
26166
26167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26169 echo "${ECHO_T}$ac_header_compiler" >&6; }
26170
26171 # Is the header present?
26172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26174 cat >conftest.$ac_ext <<_ACEOF
26175 /* confdefs.h.  */
26176 _ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h.  */
26180 #include <$ac_header>
26181 _ACEOF
26182 if { (ac_try="$ac_cpp conftest.$ac_ext"
26183 case "(($ac_try" in
26184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185   *) ac_try_echo=$ac_try;;
26186 esac
26187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26188   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26189   ac_status=$?
26190   grep -v '^ *+' conftest.er1 >conftest.err
26191   rm -f conftest.er1
26192   cat conftest.err >&5
26193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194   (exit $ac_status); } >/dev/null && {
26195          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26196          test ! -s conftest.err
26197        }; then
26198   ac_header_preproc=yes
26199 else
26200   echo "$as_me: failed program was:" >&5
26201 sed 's/^/| /' conftest.$ac_ext >&5
26202
26203   ac_header_preproc=no
26204 fi
26205
26206 rm -f conftest.err conftest.$ac_ext
26207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26208 echo "${ECHO_T}$ac_header_preproc" >&6; }
26209
26210 # So?  What about this header?
26211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26212   yes:no: )
26213     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26217     ac_header_preproc=yes
26218     ;;
26219   no:yes:* )
26220     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26222     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26223 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26224     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26226     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26227 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26230     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26232     ( cat <<\_ASBOX
26233 ## --------------------------------------------- ##
26234 ## Report this to <http://www.openldap.org/its/> ##
26235 ## --------------------------------------------- ##
26236 _ASBOX
26237      ) | sed "s/^/$as_me: WARNING:     /" >&2
26238     ;;
26239 esac
26240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26243   echo $ECHO_N "(cached) $ECHO_C" >&6
26244 else
26245   eval "$as_ac_Header=\$ac_header_preproc"
26246 fi
26247 ac_res=`eval echo '${'$as_ac_Header'}'`
26248                { echo "$as_me:$LINENO: result: $ac_res" >&5
26249 echo "${ECHO_T}$ac_res" >&6; }
26250
26251 fi
26252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26253   cat >>confdefs.h <<_ACEOF
26254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26255 _ACEOF
26256
26257 fi
26258
26259 done
26260
26261
26262         if test $ac_cv_header_pth_h = yes ; then
26263                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26264 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26265 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26266   echo $ECHO_N "(cached) $ECHO_C" >&6
26267 else
26268   ac_check_lib_save_LIBS=$LIBS
26269 LIBS="-lpth  $LIBS"
26270 cat >conftest.$ac_ext <<_ACEOF
26271 /* confdefs.h.  */
26272 _ACEOF
26273 cat confdefs.h >>conftest.$ac_ext
26274 cat >>conftest.$ac_ext <<_ACEOF
26275 /* end confdefs.h.  */
26276
26277 /* Override any GCC internal prototype to avoid an error.
26278    Use char because int might match the return type of a GCC
26279    builtin and then its argument prototype would still apply.  */
26280 #ifdef __cplusplus
26281 extern "C"
26282 #endif
26283 char pth_version ();
26284 int
26285 main ()
26286 {
26287 return pth_version ();
26288   ;
26289   return 0;
26290 }
26291 _ACEOF
26292 rm -f conftest.$ac_objext conftest$ac_exeext
26293 if { (ac_try="$ac_link"
26294 case "(($ac_try" in
26295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26296   *) ac_try_echo=$ac_try;;
26297 esac
26298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26299   (eval "$ac_link") 2>conftest.er1
26300   ac_status=$?
26301   grep -v '^ *+' conftest.er1 >conftest.err
26302   rm -f conftest.er1
26303   cat conftest.err >&5
26304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305   (exit $ac_status); } && {
26306          test -z "$ac_c_werror_flag" ||
26307          test ! -s conftest.err
26308        } && test -s conftest$ac_exeext &&
26309        $as_test_x conftest$ac_exeext; then
26310   ac_cv_lib_pth_pth_version=yes
26311 else
26312   echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26314
26315         ac_cv_lib_pth_pth_version=no
26316 fi
26317
26318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26319       conftest$ac_exeext conftest.$ac_ext
26320 LIBS=$ac_check_lib_save_LIBS
26321 fi
26322 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26323 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26324 if test $ac_cv_lib_pth_pth_version = yes; then
26325   have_pth=yes
26326 else
26327   have_pth=no
26328 fi
26329
26330
26331                 if test $have_pth = yes ; then
26332
26333 cat >>confdefs.h <<\_ACEOF
26334 #define HAVE_GNU_PTH 1
26335 _ACEOF
26336
26337                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26338                         ol_link_threads=pth
26339                         ol_with_threads=found
26340
26341                         if test $ol_with_yielding_select = auto ; then
26342                                 ol_with_yielding_select=yes
26343                         fi
26344                 fi
26345         fi
26346         ;;
26347 esac
26348
26349 case $ol_with_threads in auto | yes | lwp)
26350
26351
26352
26353 for ac_header in thread.h synch.h
26354 do
26355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26357   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26360   echo $ECHO_N "(cached) $ECHO_C" >&6
26361 fi
26362 ac_res=`eval echo '${'$as_ac_Header'}'`
26363                { echo "$as_me:$LINENO: result: $ac_res" >&5
26364 echo "${ECHO_T}$ac_res" >&6; }
26365 else
26366   # Is the header compilable?
26367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26369 cat >conftest.$ac_ext <<_ACEOF
26370 /* confdefs.h.  */
26371 _ACEOF
26372 cat confdefs.h >>conftest.$ac_ext
26373 cat >>conftest.$ac_ext <<_ACEOF
26374 /* end confdefs.h.  */
26375 $ac_includes_default
26376 #include <$ac_header>
26377 _ACEOF
26378 rm -f conftest.$ac_objext
26379 if { (ac_try="$ac_compile"
26380 case "(($ac_try" in
26381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26382   *) ac_try_echo=$ac_try;;
26383 esac
26384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26385   (eval "$ac_compile") 2>conftest.er1
26386   ac_status=$?
26387   grep -v '^ *+' conftest.er1 >conftest.err
26388   rm -f conftest.er1
26389   cat conftest.err >&5
26390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391   (exit $ac_status); } && {
26392          test -z "$ac_c_werror_flag" ||
26393          test ! -s conftest.err
26394        } && test -s conftest.$ac_objext; then
26395   ac_header_compiler=yes
26396 else
26397   echo "$as_me: failed program was:" >&5
26398 sed 's/^/| /' conftest.$ac_ext >&5
26399
26400         ac_header_compiler=no
26401 fi
26402
26403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26405 echo "${ECHO_T}$ac_header_compiler" >&6; }
26406
26407 # Is the header present?
26408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26410 cat >conftest.$ac_ext <<_ACEOF
26411 /* confdefs.h.  */
26412 _ACEOF
26413 cat confdefs.h >>conftest.$ac_ext
26414 cat >>conftest.$ac_ext <<_ACEOF
26415 /* end confdefs.h.  */
26416 #include <$ac_header>
26417 _ACEOF
26418 if { (ac_try="$ac_cpp conftest.$ac_ext"
26419 case "(($ac_try" in
26420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26421   *) ac_try_echo=$ac_try;;
26422 esac
26423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26425   ac_status=$?
26426   grep -v '^ *+' conftest.er1 >conftest.err
26427   rm -f conftest.er1
26428   cat conftest.err >&5
26429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430   (exit $ac_status); } >/dev/null && {
26431          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26432          test ! -s conftest.err
26433        }; then
26434   ac_header_preproc=yes
26435 else
26436   echo "$as_me: failed program was:" >&5
26437 sed 's/^/| /' conftest.$ac_ext >&5
26438
26439   ac_header_preproc=no
26440 fi
26441
26442 rm -f conftest.err conftest.$ac_ext
26443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26444 echo "${ECHO_T}$ac_header_preproc" >&6; }
26445
26446 # So?  What about this header?
26447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26448   yes:no: )
26449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26453     ac_header_preproc=yes
26454     ;;
26455   no:yes:* )
26456     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26458     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26459 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26460     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26462     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26463 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26466     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26468     ( cat <<\_ASBOX
26469 ## --------------------------------------------- ##
26470 ## Report this to <http://www.openldap.org/its/> ##
26471 ## --------------------------------------------- ##
26472 _ASBOX
26473      ) | sed "s/^/$as_me: WARNING:     /" >&2
26474     ;;
26475 esac
26476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26479   echo $ECHO_N "(cached) $ECHO_C" >&6
26480 else
26481   eval "$as_ac_Header=\$ac_header_preproc"
26482 fi
26483 ac_res=`eval echo '${'$as_ac_Header'}'`
26484                { echo "$as_me:$LINENO: result: $ac_res" >&5
26485 echo "${ECHO_T}$ac_res" >&6; }
26486
26487 fi
26488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26489   cat >>confdefs.h <<_ACEOF
26490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26491 _ACEOF
26492
26493 fi
26494
26495 done
26496
26497         if test $ac_cv_header_thread_h = yes &&
26498            test $ac_cv_header_synch_h = yes ; then
26499                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26500 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26501 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26502   echo $ECHO_N "(cached) $ECHO_C" >&6
26503 else
26504   ac_check_lib_save_LIBS=$LIBS
26505 LIBS="-lthread  $LIBS"
26506 cat >conftest.$ac_ext <<_ACEOF
26507 /* confdefs.h.  */
26508 _ACEOF
26509 cat confdefs.h >>conftest.$ac_ext
26510 cat >>conftest.$ac_ext <<_ACEOF
26511 /* end confdefs.h.  */
26512
26513 /* Override any GCC internal prototype to avoid an error.
26514    Use char because int might match the return type of a GCC
26515    builtin and then its argument prototype would still apply.  */
26516 #ifdef __cplusplus
26517 extern "C"
26518 #endif
26519 char thr_create ();
26520 int
26521 main ()
26522 {
26523 return thr_create ();
26524   ;
26525   return 0;
26526 }
26527 _ACEOF
26528 rm -f conftest.$ac_objext conftest$ac_exeext
26529 if { (ac_try="$ac_link"
26530 case "(($ac_try" in
26531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26532   *) ac_try_echo=$ac_try;;
26533 esac
26534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26535   (eval "$ac_link") 2>conftest.er1
26536   ac_status=$?
26537   grep -v '^ *+' conftest.er1 >conftest.err
26538   rm -f conftest.er1
26539   cat conftest.err >&5
26540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541   (exit $ac_status); } && {
26542          test -z "$ac_c_werror_flag" ||
26543          test ! -s conftest.err
26544        } && test -s conftest$ac_exeext &&
26545        $as_test_x conftest$ac_exeext; then
26546   ac_cv_lib_thread_thr_create=yes
26547 else
26548   echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26550
26551         ac_cv_lib_thread_thr_create=no
26552 fi
26553
26554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26555       conftest$ac_exeext conftest.$ac_ext
26556 LIBS=$ac_check_lib_save_LIBS
26557 fi
26558 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26559 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26560 if test $ac_cv_lib_thread_thr_create = yes; then
26561   have_thr=yes
26562 else
26563   have_thr=no
26564 fi
26565
26566
26567                 if test $have_thr = yes ; then
26568
26569 cat >>confdefs.h <<\_ACEOF
26570 #define HAVE_THR 1
26571 _ACEOF
26572
26573                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26574                         ol_link_threads=thr
26575
26576                         if test $ol_with_yielding_select = auto ; then
26577                                 ol_with_yielding_select=yes
26578                         fi
26579
26580
26581
26582 for ac_func in \
26583                                 thr_setconcurrency \
26584                                 thr_getconcurrency \
26585
26586 do
26587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26588 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26591   echo $ECHO_N "(cached) $ECHO_C" >&6
26592 else
26593   cat >conftest.$ac_ext <<_ACEOF
26594 /* confdefs.h.  */
26595 _ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h.  */
26599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26601 #define $ac_func innocuous_$ac_func
26602
26603 /* System header to define __stub macros and hopefully few prototypes,
26604     which can conflict with char $ac_func (); below.
26605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26606     <limits.h> exists even on freestanding compilers.  */
26607
26608 #ifdef __STDC__
26609 # include <limits.h>
26610 #else
26611 # include <assert.h>
26612 #endif
26613
26614 #undef $ac_func
26615
26616 /* Override any GCC internal prototype to avoid an error.
26617    Use char because int might match the return type of a GCC
26618    builtin and then its argument prototype would still apply.  */
26619 #ifdef __cplusplus
26620 extern "C"
26621 #endif
26622 char $ac_func ();
26623 /* The GNU C library defines this for functions which it implements
26624     to always fail with ENOSYS.  Some functions are actually named
26625     something starting with __ and the normal name is an alias.  */
26626 #if defined __stub_$ac_func || defined __stub___$ac_func
26627 choke me
26628 #endif
26629
26630 int
26631 main ()
26632 {
26633 return $ac_func ();
26634   ;
26635   return 0;
26636 }
26637 _ACEOF
26638 rm -f conftest.$ac_objext conftest$ac_exeext
26639 if { (ac_try="$ac_link"
26640 case "(($ac_try" in
26641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26642   *) ac_try_echo=$ac_try;;
26643 esac
26644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26645   (eval "$ac_link") 2>conftest.er1
26646   ac_status=$?
26647   grep -v '^ *+' conftest.er1 >conftest.err
26648   rm -f conftest.er1
26649   cat conftest.err >&5
26650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651   (exit $ac_status); } && {
26652          test -z "$ac_c_werror_flag" ||
26653          test ! -s conftest.err
26654        } && test -s conftest$ac_exeext &&
26655        $as_test_x conftest$ac_exeext; then
26656   eval "$as_ac_var=yes"
26657 else
26658   echo "$as_me: failed program was:" >&5
26659 sed 's/^/| /' conftest.$ac_ext >&5
26660
26661         eval "$as_ac_var=no"
26662 fi
26663
26664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26665       conftest$ac_exeext conftest.$ac_ext
26666 fi
26667 ac_res=`eval echo '${'$as_ac_var'}'`
26668                { echo "$as_me:$LINENO: result: $ac_res" >&5
26669 echo "${ECHO_T}$ac_res" >&6; }
26670 if test `eval echo '${'$as_ac_var'}'` = yes; then
26671   cat >>confdefs.h <<_ACEOF
26672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26673 _ACEOF
26674
26675 fi
26676 done
26677
26678                 fi
26679         fi
26680         ;;
26681 esac
26682
26683 if test $ol_with_yielding_select = yes ; then
26684
26685 cat >>confdefs.h <<\_ACEOF
26686 #define HAVE_YIELDING_SELECT 1
26687 _ACEOF
26688
26689 fi
26690
26691 if test $ol_with_threads = manual ; then
26692                 ol_link_threads=yes
26693
26694         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26695 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26696
26697
26698
26699 for ac_header in pthread.h sched.h
26700 do
26701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26703   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26706   echo $ECHO_N "(cached) $ECHO_C" >&6
26707 fi
26708 ac_res=`eval echo '${'$as_ac_Header'}'`
26709                { echo "$as_me:$LINENO: result: $ac_res" >&5
26710 echo "${ECHO_T}$ac_res" >&6; }
26711 else
26712   # Is the header compilable?
26713 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26715 cat >conftest.$ac_ext <<_ACEOF
26716 /* confdefs.h.  */
26717 _ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h.  */
26721 $ac_includes_default
26722 #include <$ac_header>
26723 _ACEOF
26724 rm -f conftest.$ac_objext
26725 if { (ac_try="$ac_compile"
26726 case "(($ac_try" in
26727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728   *) ac_try_echo=$ac_try;;
26729 esac
26730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731   (eval "$ac_compile") 2>conftest.er1
26732   ac_status=$?
26733   grep -v '^ *+' conftest.er1 >conftest.err
26734   rm -f conftest.er1
26735   cat conftest.err >&5
26736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737   (exit $ac_status); } && {
26738          test -z "$ac_c_werror_flag" ||
26739          test ! -s conftest.err
26740        } && test -s conftest.$ac_objext; then
26741   ac_header_compiler=yes
26742 else
26743   echo "$as_me: failed program was:" >&5
26744 sed 's/^/| /' conftest.$ac_ext >&5
26745
26746         ac_header_compiler=no
26747 fi
26748
26749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26751 echo "${ECHO_T}$ac_header_compiler" >&6; }
26752
26753 # Is the header present?
26754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26756 cat >conftest.$ac_ext <<_ACEOF
26757 /* confdefs.h.  */
26758 _ACEOF
26759 cat confdefs.h >>conftest.$ac_ext
26760 cat >>conftest.$ac_ext <<_ACEOF
26761 /* end confdefs.h.  */
26762 #include <$ac_header>
26763 _ACEOF
26764 if { (ac_try="$ac_cpp conftest.$ac_ext"
26765 case "(($ac_try" in
26766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26767   *) ac_try_echo=$ac_try;;
26768 esac
26769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26770   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26771   ac_status=$?
26772   grep -v '^ *+' conftest.er1 >conftest.err
26773   rm -f conftest.er1
26774   cat conftest.err >&5
26775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776   (exit $ac_status); } >/dev/null && {
26777          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26778          test ! -s conftest.err
26779        }; then
26780   ac_header_preproc=yes
26781 else
26782   echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26784
26785   ac_header_preproc=no
26786 fi
26787
26788 rm -f conftest.err conftest.$ac_ext
26789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26790 echo "${ECHO_T}$ac_header_preproc" >&6; }
26791
26792 # So?  What about this header?
26793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26794   yes:no: )
26795     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26799     ac_header_preproc=yes
26800     ;;
26801   no:yes:* )
26802     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26804     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26805 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26806     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26808     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26809 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26812     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26814     ( cat <<\_ASBOX
26815 ## --------------------------------------------- ##
26816 ## Report this to <http://www.openldap.org/its/> ##
26817 ## --------------------------------------------- ##
26818 _ASBOX
26819      ) | sed "s/^/$as_me: WARNING:     /" >&2
26820     ;;
26821 esac
26822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26825   echo $ECHO_N "(cached) $ECHO_C" >&6
26826 else
26827   eval "$as_ac_Header=\$ac_header_preproc"
26828 fi
26829 ac_res=`eval echo '${'$as_ac_Header'}'`
26830                { echo "$as_me:$LINENO: result: $ac_res" >&5
26831 echo "${ECHO_T}$ac_res" >&6; }
26832
26833 fi
26834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26835   cat >>confdefs.h <<_ACEOF
26836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26837 _ACEOF
26838
26839 fi
26840
26841 done
26842
26843
26844
26845 for ac_func in sched_yield pthread_yield
26846 do
26847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26851   echo $ECHO_N "(cached) $ECHO_C" >&6
26852 else
26853   cat >conftest.$ac_ext <<_ACEOF
26854 /* confdefs.h.  */
26855 _ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h.  */
26859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26861 #define $ac_func innocuous_$ac_func
26862
26863 /* System header to define __stub macros and hopefully few prototypes,
26864     which can conflict with char $ac_func (); below.
26865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26866     <limits.h> exists even on freestanding compilers.  */
26867
26868 #ifdef __STDC__
26869 # include <limits.h>
26870 #else
26871 # include <assert.h>
26872 #endif
26873
26874 #undef $ac_func
26875
26876 /* Override any GCC internal prototype to avoid an error.
26877    Use char because int might match the return type of a GCC
26878    builtin and then its argument prototype would still apply.  */
26879 #ifdef __cplusplus
26880 extern "C"
26881 #endif
26882 char $ac_func ();
26883 /* The GNU C library defines this for functions which it implements
26884     to always fail with ENOSYS.  Some functions are actually named
26885     something starting with __ and the normal name is an alias.  */
26886 #if defined __stub_$ac_func || defined __stub___$ac_func
26887 choke me
26888 #endif
26889
26890 int
26891 main ()
26892 {
26893 return $ac_func ();
26894   ;
26895   return 0;
26896 }
26897 _ACEOF
26898 rm -f conftest.$ac_objext conftest$ac_exeext
26899 if { (ac_try="$ac_link"
26900 case "(($ac_try" in
26901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902   *) ac_try_echo=$ac_try;;
26903 esac
26904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905   (eval "$ac_link") 2>conftest.er1
26906   ac_status=$?
26907   grep -v '^ *+' conftest.er1 >conftest.err
26908   rm -f conftest.er1
26909   cat conftest.err >&5
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); } && {
26912          test -z "$ac_c_werror_flag" ||
26913          test ! -s conftest.err
26914        } && test -s conftest$ac_exeext &&
26915        $as_test_x conftest$ac_exeext; then
26916   eval "$as_ac_var=yes"
26917 else
26918   echo "$as_me: failed program was:" >&5
26919 sed 's/^/| /' conftest.$ac_ext >&5
26920
26921         eval "$as_ac_var=no"
26922 fi
26923
26924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26925       conftest$ac_exeext conftest.$ac_ext
26926 fi
26927 ac_res=`eval echo '${'$as_ac_var'}'`
26928                { echo "$as_me:$LINENO: result: $ac_res" >&5
26929 echo "${ECHO_T}$ac_res" >&6; }
26930 if test `eval echo '${'$as_ac_var'}'` = yes; then
26931   cat >>confdefs.h <<_ACEOF
26932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26933 _ACEOF
26934
26935 fi
26936 done
26937
26938
26939         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26940 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26941 if test "${ol_cv_header_linux_threads+set}" = set; then
26942   echo $ECHO_N "(cached) $ECHO_C" >&6
26943 else
26944   cat >conftest.$ac_ext <<_ACEOF
26945 /* confdefs.h.  */
26946 _ACEOF
26947 cat confdefs.h >>conftest.$ac_ext
26948 cat >>conftest.$ac_ext <<_ACEOF
26949 /* end confdefs.h.  */
26950 #include <pthread.h>
26951 _ACEOF
26952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26953   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26954   ol_cv_header_linux_threads=yes
26955 else
26956   ol_cv_header_linux_threads=no
26957 fi
26958 rm -f conftest*
26959
26960
26961 fi
26962 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26963 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26964         if test $ol_cv_header_linux_threads = yes; then
26965
26966 cat >>confdefs.h <<\_ACEOF
26967 #define HAVE_LINUX_THREADS 1
26968 _ACEOF
26969
26970         fi
26971
26972
26973
26974 for ac_header in mach/cthreads.h
26975 do
26976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26978   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26981   echo $ECHO_N "(cached) $ECHO_C" >&6
26982 fi
26983 ac_res=`eval echo '${'$as_ac_Header'}'`
26984                { echo "$as_me:$LINENO: result: $ac_res" >&5
26985 echo "${ECHO_T}$ac_res" >&6; }
26986 else
26987   # Is the header compilable?
26988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26990 cat >conftest.$ac_ext <<_ACEOF
26991 /* confdefs.h.  */
26992 _ACEOF
26993 cat confdefs.h >>conftest.$ac_ext
26994 cat >>conftest.$ac_ext <<_ACEOF
26995 /* end confdefs.h.  */
26996 $ac_includes_default
26997 #include <$ac_header>
26998 _ACEOF
26999 rm -f conftest.$ac_objext
27000 if { (ac_try="$ac_compile"
27001 case "(($ac_try" in
27002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27003   *) ac_try_echo=$ac_try;;
27004 esac
27005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27006   (eval "$ac_compile") 2>conftest.er1
27007   ac_status=$?
27008   grep -v '^ *+' conftest.er1 >conftest.err
27009   rm -f conftest.er1
27010   cat conftest.err >&5
27011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012   (exit $ac_status); } && {
27013          test -z "$ac_c_werror_flag" ||
27014          test ! -s conftest.err
27015        } && test -s conftest.$ac_objext; then
27016   ac_header_compiler=yes
27017 else
27018   echo "$as_me: failed program was:" >&5
27019 sed 's/^/| /' conftest.$ac_ext >&5
27020
27021         ac_header_compiler=no
27022 fi
27023
27024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27026 echo "${ECHO_T}$ac_header_compiler" >&6; }
27027
27028 # Is the header present?
27029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27031 cat >conftest.$ac_ext <<_ACEOF
27032 /* confdefs.h.  */
27033 _ACEOF
27034 cat confdefs.h >>conftest.$ac_ext
27035 cat >>conftest.$ac_ext <<_ACEOF
27036 /* end confdefs.h.  */
27037 #include <$ac_header>
27038 _ACEOF
27039 if { (ac_try="$ac_cpp conftest.$ac_ext"
27040 case "(($ac_try" in
27041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042   *) ac_try_echo=$ac_try;;
27043 esac
27044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27046   ac_status=$?
27047   grep -v '^ *+' conftest.er1 >conftest.err
27048   rm -f conftest.er1
27049   cat conftest.err >&5
27050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051   (exit $ac_status); } >/dev/null && {
27052          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27053          test ! -s conftest.err
27054        }; then
27055   ac_header_preproc=yes
27056 else
27057   echo "$as_me: failed program was:" >&5
27058 sed 's/^/| /' conftest.$ac_ext >&5
27059
27060   ac_header_preproc=no
27061 fi
27062
27063 rm -f conftest.err conftest.$ac_ext
27064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27065 echo "${ECHO_T}$ac_header_preproc" >&6; }
27066
27067 # So?  What about this header?
27068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27069   yes:no: )
27070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27074     ac_header_preproc=yes
27075     ;;
27076   no:yes:* )
27077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27089     ( cat <<\_ASBOX
27090 ## --------------------------------------------- ##
27091 ## Report this to <http://www.openldap.org/its/> ##
27092 ## --------------------------------------------- ##
27093 _ASBOX
27094      ) | sed "s/^/$as_me: WARNING:     /" >&2
27095     ;;
27096 esac
27097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27100   echo $ECHO_N "(cached) $ECHO_C" >&6
27101 else
27102   eval "$as_ac_Header=\$ac_header_preproc"
27103 fi
27104 ac_res=`eval echo '${'$as_ac_Header'}'`
27105                { echo "$as_me:$LINENO: result: $ac_res" >&5
27106 echo "${ECHO_T}$ac_res" >&6; }
27107
27108 fi
27109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27110   cat >>confdefs.h <<_ACEOF
27111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27112 _ACEOF
27113
27114 fi
27115
27116 done
27117
27118
27119
27120 for ac_header in thread.h synch.h
27121 do
27122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27124   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27127   echo $ECHO_N "(cached) $ECHO_C" >&6
27128 fi
27129 ac_res=`eval echo '${'$as_ac_Header'}'`
27130                { echo "$as_me:$LINENO: result: $ac_res" >&5
27131 echo "${ECHO_T}$ac_res" >&6; }
27132 else
27133   # Is the header compilable?
27134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27136 cat >conftest.$ac_ext <<_ACEOF
27137 /* confdefs.h.  */
27138 _ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h.  */
27142 $ac_includes_default
27143 #include <$ac_header>
27144 _ACEOF
27145 rm -f conftest.$ac_objext
27146 if { (ac_try="$ac_compile"
27147 case "(($ac_try" in
27148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149   *) ac_try_echo=$ac_try;;
27150 esac
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152   (eval "$ac_compile") 2>conftest.er1
27153   ac_status=$?
27154   grep -v '^ *+' conftest.er1 >conftest.err
27155   rm -f conftest.er1
27156   cat conftest.err >&5
27157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158   (exit $ac_status); } && {
27159          test -z "$ac_c_werror_flag" ||
27160          test ! -s conftest.err
27161        } && test -s conftest.$ac_objext; then
27162   ac_header_compiler=yes
27163 else
27164   echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27166
27167         ac_header_compiler=no
27168 fi
27169
27170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27172 echo "${ECHO_T}$ac_header_compiler" >&6; }
27173
27174 # Is the header present?
27175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27177 cat >conftest.$ac_ext <<_ACEOF
27178 /* confdefs.h.  */
27179 _ACEOF
27180 cat confdefs.h >>conftest.$ac_ext
27181 cat >>conftest.$ac_ext <<_ACEOF
27182 /* end confdefs.h.  */
27183 #include <$ac_header>
27184 _ACEOF
27185 if { (ac_try="$ac_cpp conftest.$ac_ext"
27186 case "(($ac_try" in
27187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188   *) ac_try_echo=$ac_try;;
27189 esac
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27192   ac_status=$?
27193   grep -v '^ *+' conftest.er1 >conftest.err
27194   rm -f conftest.er1
27195   cat conftest.err >&5
27196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197   (exit $ac_status); } >/dev/null && {
27198          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27199          test ! -s conftest.err
27200        }; then
27201   ac_header_preproc=yes
27202 else
27203   echo "$as_me: failed program was:" >&5
27204 sed 's/^/| /' conftest.$ac_ext >&5
27205
27206   ac_header_preproc=no
27207 fi
27208
27209 rm -f conftest.err conftest.$ac_ext
27210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27211 echo "${ECHO_T}$ac_header_preproc" >&6; }
27212
27213 # So?  What about this header?
27214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27215   yes:no: )
27216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27220     ac_header_preproc=yes
27221     ;;
27222   no:yes:* )
27223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27235     ( cat <<\_ASBOX
27236 ## --------------------------------------------- ##
27237 ## Report this to <http://www.openldap.org/its/> ##
27238 ## --------------------------------------------- ##
27239 _ASBOX
27240      ) | sed "s/^/$as_me: WARNING:     /" >&2
27241     ;;
27242 esac
27243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27246   echo $ECHO_N "(cached) $ECHO_C" >&6
27247 else
27248   eval "$as_ac_Header=\$ac_header_preproc"
27249 fi
27250 ac_res=`eval echo '${'$as_ac_Header'}'`
27251                { echo "$as_me:$LINENO: result: $ac_res" >&5
27252 echo "${ECHO_T}$ac_res" >&6; }
27253
27254 fi
27255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27256   cat >>confdefs.h <<_ACEOF
27257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27258 _ACEOF
27259
27260 fi
27261
27262 done
27263
27264 fi
27265
27266 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27267                         cat >>confdefs.h <<\_ACEOF
27268 #define REENTRANT 1
27269 _ACEOF
27270
27271         cat >>confdefs.h <<\_ACEOF
27272 #define _REENTRANT 1
27273 _ACEOF
27274
27275         cat >>confdefs.h <<\_ACEOF
27276 #define THREAD_SAFE 1
27277 _ACEOF
27278
27279         cat >>confdefs.h <<\_ACEOF
27280 #define _THREAD_SAFE 1
27281 _ACEOF
27282
27283         cat >>confdefs.h <<\_ACEOF
27284 #define THREADSAFE 1
27285 _ACEOF
27286
27287         cat >>confdefs.h <<\_ACEOF
27288 #define _THREADSAFE 1
27289 _ACEOF
27290
27291         cat >>confdefs.h <<\_ACEOF
27292 #define _SGI_MP_SOURCE 1
27293 _ACEOF
27294
27295
27296                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27297 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27298 if test "${ol_cv_errno_thread_specific+set}" = set; then
27299   echo $ECHO_N "(cached) $ECHO_C" >&6
27300 else
27301
27302                 cat >conftest.$ac_ext <<_ACEOF
27303 /* confdefs.h.  */
27304 _ACEOF
27305 cat confdefs.h >>conftest.$ac_ext
27306 cat >>conftest.$ac_ext <<_ACEOF
27307 /* end confdefs.h.  */
27308 #include <errno.h>
27309 int
27310 main ()
27311 {
27312 errno = 0;
27313   ;
27314   return 0;
27315 }
27316 _ACEOF
27317 rm -f conftest.$ac_objext conftest$ac_exeext
27318 if { (ac_try="$ac_link"
27319 case "(($ac_try" in
27320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321   *) ac_try_echo=$ac_try;;
27322 esac
27323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324   (eval "$ac_link") 2>conftest.er1
27325   ac_status=$?
27326   grep -v '^ *+' conftest.er1 >conftest.err
27327   rm -f conftest.er1
27328   cat conftest.err >&5
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); } && {
27331          test -z "$ac_c_werror_flag" ||
27332          test ! -s conftest.err
27333        } && test -s conftest$ac_exeext &&
27334        $as_test_x conftest$ac_exeext; then
27335   ol_cv_errno_thread_specific=yes
27336 else
27337   echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27339
27340         ol_cv_errno_thread_specific=no
27341 fi
27342
27343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27344       conftest$ac_exeext conftest.$ac_ext
27345
27346 fi
27347 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27348 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27349
27350                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27351 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27352 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27353   echo $ECHO_N "(cached) $ECHO_C" >&6
27354 else
27355
27356                 cat >conftest.$ac_ext <<_ACEOF
27357 /* confdefs.h.  */
27358 _ACEOF
27359 cat confdefs.h >>conftest.$ac_ext
27360 cat >>conftest.$ac_ext <<_ACEOF
27361 /* end confdefs.h.  */
27362 #include <netdb.h>
27363 int
27364 main ()
27365 {
27366 h_errno = 0;
27367   ;
27368   return 0;
27369 }
27370 _ACEOF
27371 rm -f conftest.$ac_objext conftest$ac_exeext
27372 if { (ac_try="$ac_link"
27373 case "(($ac_try" in
27374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27375   *) ac_try_echo=$ac_try;;
27376 esac
27377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27378   (eval "$ac_link") 2>conftest.er1
27379   ac_status=$?
27380   grep -v '^ *+' conftest.er1 >conftest.err
27381   rm -f conftest.er1
27382   cat conftest.err >&5
27383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384   (exit $ac_status); } && {
27385          test -z "$ac_c_werror_flag" ||
27386          test ! -s conftest.err
27387        } && test -s conftest$ac_exeext &&
27388        $as_test_x conftest$ac_exeext; then
27389   ol_cv_h_errno_thread_specific=yes
27390 else
27391   echo "$as_me: failed program was:" >&5
27392 sed 's/^/| /' conftest.$ac_ext >&5
27393
27394         ol_cv_h_errno_thread_specific=no
27395 fi
27396
27397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27398       conftest$ac_exeext conftest.$ac_ext
27399
27400 fi
27401 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27402 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27403
27404         if test $ol_cv_errno_thread_specific != yes ||
27405            test $ol_cv_h_errno_thread_specific != yes ; then
27406                 LIBS="$LTHREAD_LIBS $LIBS"
27407                 LTHREAD_LIBS=""
27408         fi
27409
27410 fi
27411
27412 if test $ol_link_threads = no ; then
27413         if test $ol_with_threads = yes ; then
27414                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27415 echo "$as_me: error: no suitable thread support" >&2;}
27416    { (exit 1); exit 1; }; }
27417         fi
27418
27419         if test $ol_with_threads = auto ; then
27420                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27421 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27422                 ol_with_threads=no
27423         fi
27424
27425
27426 cat >>confdefs.h <<\_ACEOF
27427 #define NO_THREADS 1
27428 _ACEOF
27429
27430         LTHREAD_LIBS=""
27431         BUILD_THREAD=no
27432 else
27433         BUILD_THREAD=yes
27434 fi
27435
27436 if test $ol_link_threads != no ; then
27437
27438 cat >>confdefs.h <<\_ACEOF
27439 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27440 _ACEOF
27441
27442 fi
27443
27444
27445
27446
27447
27448
27449 for ac_func in \
27450         ctime_r                 \
27451         gmtime_r localtime_r \
27452         gethostbyname_r gethostbyaddr_r \
27453
27454 do
27455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27459   echo $ECHO_N "(cached) $ECHO_C" >&6
27460 else
27461   cat >conftest.$ac_ext <<_ACEOF
27462 /* confdefs.h.  */
27463 _ACEOF
27464 cat confdefs.h >>conftest.$ac_ext
27465 cat >>conftest.$ac_ext <<_ACEOF
27466 /* end confdefs.h.  */
27467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27469 #define $ac_func innocuous_$ac_func
27470
27471 /* System header to define __stub macros and hopefully few prototypes,
27472     which can conflict with char $ac_func (); below.
27473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27474     <limits.h> exists even on freestanding compilers.  */
27475
27476 #ifdef __STDC__
27477 # include <limits.h>
27478 #else
27479 # include <assert.h>
27480 #endif
27481
27482 #undef $ac_func
27483
27484 /* Override any GCC internal prototype to avoid an error.
27485    Use char because int might match the return type of a GCC
27486    builtin and then its argument prototype would still apply.  */
27487 #ifdef __cplusplus
27488 extern "C"
27489 #endif
27490 char $ac_func ();
27491 /* The GNU C library defines this for functions which it implements
27492     to always fail with ENOSYS.  Some functions are actually named
27493     something starting with __ and the normal name is an alias.  */
27494 #if defined __stub_$ac_func || defined __stub___$ac_func
27495 choke me
27496 #endif
27497
27498 int
27499 main ()
27500 {
27501 return $ac_func ();
27502   ;
27503   return 0;
27504 }
27505 _ACEOF
27506 rm -f conftest.$ac_objext conftest$ac_exeext
27507 if { (ac_try="$ac_link"
27508 case "(($ac_try" in
27509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27510   *) ac_try_echo=$ac_try;;
27511 esac
27512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27513   (eval "$ac_link") 2>conftest.er1
27514   ac_status=$?
27515   grep -v '^ *+' conftest.er1 >conftest.err
27516   rm -f conftest.er1
27517   cat conftest.err >&5
27518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519   (exit $ac_status); } && {
27520          test -z "$ac_c_werror_flag" ||
27521          test ! -s conftest.err
27522        } && test -s conftest$ac_exeext &&
27523        $as_test_x conftest$ac_exeext; then
27524   eval "$as_ac_var=yes"
27525 else
27526   echo "$as_me: failed program was:" >&5
27527 sed 's/^/| /' conftest.$ac_ext >&5
27528
27529         eval "$as_ac_var=no"
27530 fi
27531
27532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27533       conftest$ac_exeext conftest.$ac_ext
27534 fi
27535 ac_res=`eval echo '${'$as_ac_var'}'`
27536                { echo "$as_me:$LINENO: result: $ac_res" >&5
27537 echo "${ECHO_T}$ac_res" >&6; }
27538 if test `eval echo '${'$as_ac_var'}'` = yes; then
27539   cat >>confdefs.h <<_ACEOF
27540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27541 _ACEOF
27542
27543 fi
27544 done
27545
27546
27547 if test "$ac_cv_func_ctime_r" = no ; then
27548         ol_cv_func_ctime_r_nargs=0
27549 else
27550         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27551 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27552 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27553   echo $ECHO_N "(cached) $ECHO_C" >&6
27554 else
27555   cat >conftest.$ac_ext <<_ACEOF
27556 /* confdefs.h.  */
27557 _ACEOF
27558 cat confdefs.h >>conftest.$ac_ext
27559 cat >>conftest.$ac_ext <<_ACEOF
27560 /* end confdefs.h.  */
27561 #include <time.h>
27562 int
27563 main ()
27564 {
27565 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27566   ;
27567   return 0;
27568 }
27569 _ACEOF
27570 rm -f conftest.$ac_objext
27571 if { (ac_try="$ac_compile"
27572 case "(($ac_try" in
27573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574   *) ac_try_echo=$ac_try;;
27575 esac
27576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577   (eval "$ac_compile") 2>conftest.er1
27578   ac_status=$?
27579   grep -v '^ *+' conftest.er1 >conftest.err
27580   rm -f conftest.er1
27581   cat conftest.err >&5
27582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583   (exit $ac_status); } && {
27584          test -z "$ac_c_werror_flag" ||
27585          test ! -s conftest.err
27586        } && test -s conftest.$ac_objext; then
27587   ol_cv_func_ctime_r_nargs3=yes
27588 else
27589   echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27591
27592         ol_cv_func_ctime_r_nargs3=no
27593 fi
27594
27595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27596
27597         cat >conftest.$ac_ext <<_ACEOF
27598 /* confdefs.h.  */
27599 _ACEOF
27600 cat confdefs.h >>conftest.$ac_ext
27601 cat >>conftest.$ac_ext <<_ACEOF
27602 /* end confdefs.h.  */
27603 #include <time.h>
27604 int
27605 main ()
27606 {
27607 time_t ti; char *buffer; ctime_r(&ti,buffer);
27608   ;
27609   return 0;
27610 }
27611 _ACEOF
27612 rm -f conftest.$ac_objext
27613 if { (ac_try="$ac_compile"
27614 case "(($ac_try" in
27615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27616   *) ac_try_echo=$ac_try;;
27617 esac
27618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27619   (eval "$ac_compile") 2>conftest.er1
27620   ac_status=$?
27621   grep -v '^ *+' conftest.er1 >conftest.err
27622   rm -f conftest.er1
27623   cat conftest.err >&5
27624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625   (exit $ac_status); } && {
27626          test -z "$ac_c_werror_flag" ||
27627          test ! -s conftest.err
27628        } && test -s conftest.$ac_objext; then
27629   ol_cv_func_ctime_r_nargs2=yes
27630 else
27631   echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27633
27634         ol_cv_func_ctime_r_nargs2=no
27635 fi
27636
27637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27638
27639         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27640            test $ol_cv_func_ctime_r_nargs2 = no ; then
27641
27642                 ol_cv_func_ctime_r_nargs=3
27643
27644         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27645              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27646
27647                 ol_cv_func_ctime_r_nargs=2
27648
27649         else
27650                 ol_cv_func_ctime_r_nargs=0
27651         fi
27652
27653 fi
27654 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27655 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27656
27657   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27658
27659 cat >>confdefs.h <<_ACEOF
27660 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27661 _ACEOF
27662
27663   fi
27664
27665 fi
27666
27667 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27668         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27669 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27670 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27671   echo $ECHO_N "(cached) $ECHO_C" >&6
27672 else
27673   cat >conftest.$ac_ext <<_ACEOF
27674 /* confdefs.h.  */
27675 _ACEOF
27676 cat confdefs.h >>conftest.$ac_ext
27677 cat >>conftest.$ac_ext <<_ACEOF
27678 /* end confdefs.h.  */
27679 #include <sys/types.h>
27680 #include <sys/socket.h>
27681 #include <netinet/in.h>
27682 #include <netdb.h>
27683 #define BUFSIZE (sizeof(struct hostent)+10)
27684 int
27685 main ()
27686 {
27687 struct hostent hent; char buffer[BUFSIZE];
27688                 int bufsize=BUFSIZE;int h_errno;
27689                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27690                         buffer, bufsize, &h_errno);
27691   ;
27692   return 0;
27693 }
27694 _ACEOF
27695 rm -f conftest.$ac_objext
27696 if { (ac_try="$ac_compile"
27697 case "(($ac_try" in
27698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27699   *) ac_try_echo=$ac_try;;
27700 esac
27701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27702   (eval "$ac_compile") 2>conftest.er1
27703   ac_status=$?
27704   grep -v '^ *+' conftest.er1 >conftest.err
27705   rm -f conftest.er1
27706   cat conftest.err >&5
27707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708   (exit $ac_status); } && {
27709          test -z "$ac_c_werror_flag" ||
27710          test ! -s conftest.err
27711        } && test -s conftest.$ac_objext; then
27712   ol_cv_func_gethostbyname_r_nargs5=yes
27713 else
27714   echo "$as_me: failed program was:" >&5
27715 sed 's/^/| /' conftest.$ac_ext >&5
27716
27717         ol_cv_func_gethostbyname_r_nargs5=no
27718 fi
27719
27720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27721
27722         cat >conftest.$ac_ext <<_ACEOF
27723 /* confdefs.h.  */
27724 _ACEOF
27725 cat confdefs.h >>conftest.$ac_ext
27726 cat >>conftest.$ac_ext <<_ACEOF
27727 /* end confdefs.h.  */
27728 #include <sys/types.h>
27729 #include <sys/socket.h>
27730 #include <netinet/in.h>
27731 #include <netdb.h>
27732 #define BUFSIZE (sizeof(struct hostent)+10)
27733 int
27734 main ()
27735 {
27736 struct hostent hent;struct hostent *rhent;
27737                 char buffer[BUFSIZE];
27738                 int bufsize=BUFSIZE;int h_errno;
27739                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27740                         &rhent, &h_errno);
27741   ;
27742   return 0;
27743 }
27744 _ACEOF
27745 rm -f conftest.$ac_objext
27746 if { (ac_try="$ac_compile"
27747 case "(($ac_try" in
27748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27749   *) ac_try_echo=$ac_try;;
27750 esac
27751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27752   (eval "$ac_compile") 2>conftest.er1
27753   ac_status=$?
27754   grep -v '^ *+' conftest.er1 >conftest.err
27755   rm -f conftest.er1
27756   cat conftest.err >&5
27757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758   (exit $ac_status); } && {
27759          test -z "$ac_c_werror_flag" ||
27760          test ! -s conftest.err
27761        } && test -s conftest.$ac_objext; then
27762   ol_cv_func_gethostbyname_r_nargs6=yes
27763 else
27764   echo "$as_me: failed program was:" >&5
27765 sed 's/^/| /' conftest.$ac_ext >&5
27766
27767         ol_cv_func_gethostbyname_r_nargs6=no
27768 fi
27769
27770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27771
27772         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27773            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27774
27775                 ol_cv_func_gethostbyname_r_nargs=5
27776
27777         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27778              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27779
27780                 ol_cv_func_gethostbyname_r_nargs=6
27781
27782         else
27783                 ol_cv_func_gethostbyname_r_nargs=0
27784         fi
27785
27786 fi
27787 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27788 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27789   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27790
27791 cat >>confdefs.h <<_ACEOF
27792 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27793 _ACEOF
27794
27795   fi
27796
27797 else
27798         ol_cv_func_gethostbyname_r_nargs=0
27799 fi
27800
27801 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27802         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27803 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27804 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27805   echo $ECHO_N "(cached) $ECHO_C" >&6
27806 else
27807   cat >conftest.$ac_ext <<_ACEOF
27808 /* confdefs.h.  */
27809 _ACEOF
27810 cat confdefs.h >>conftest.$ac_ext
27811 cat >>conftest.$ac_ext <<_ACEOF
27812 /* end confdefs.h.  */
27813 #include <sys/types.h>
27814 #include <sys/socket.h>
27815 #include <netinet/in.h>
27816 #include <netdb.h>
27817 #define BUFSIZE (sizeof(struct hostent)+10)
27818 int
27819 main ()
27820 {
27821 struct hostent hent; char buffer[BUFSIZE];
27822             struct in_addr add;
27823             size_t alen=sizeof(struct in_addr);
27824             int bufsize=BUFSIZE;int h_errno;
27825                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27826                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27827   ;
27828   return 0;
27829 }
27830 _ACEOF
27831 rm -f conftest.$ac_objext
27832 if { (ac_try="$ac_compile"
27833 case "(($ac_try" in
27834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27835   *) ac_try_echo=$ac_try;;
27836 esac
27837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27838   (eval "$ac_compile") 2>conftest.er1
27839   ac_status=$?
27840   grep -v '^ *+' conftest.er1 >conftest.err
27841   rm -f conftest.er1
27842   cat conftest.err >&5
27843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); } && {
27845          test -z "$ac_c_werror_flag" ||
27846          test ! -s conftest.err
27847        } && test -s conftest.$ac_objext; then
27848   ol_cv_func_gethostbyaddr_r_nargs7=yes
27849 else
27850   echo "$as_me: failed program was:" >&5
27851 sed 's/^/| /' conftest.$ac_ext >&5
27852
27853         ol_cv_func_gethostbyaddr_r_nargs7=no
27854 fi
27855
27856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27857
27858         cat >conftest.$ac_ext <<_ACEOF
27859 /* confdefs.h.  */
27860 _ACEOF
27861 cat confdefs.h >>conftest.$ac_ext
27862 cat >>conftest.$ac_ext <<_ACEOF
27863 /* end confdefs.h.  */
27864 #include <sys/types.h>
27865 #include <sys/socket.h>
27866 #include <netinet/in.h>
27867 #include <netdb.h>
27868 #define BUFSIZE (sizeof(struct hostent)+10)
27869 int
27870 main ()
27871 {
27872 struct hostent hent;
27873                 struct hostent *rhent; char buffer[BUFSIZE];
27874                 struct in_addr add;
27875                 size_t alen=sizeof(struct in_addr);
27876                 int bufsize=BUFSIZE;int h_errno;
27877                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27878                         alen, AF_INET, &hent, buffer, bufsize,
27879                         &rhent, &h_errno);
27880   ;
27881   return 0;
27882 }
27883 _ACEOF
27884 rm -f conftest.$ac_objext
27885 if { (ac_try="$ac_compile"
27886 case "(($ac_try" in
27887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888   *) ac_try_echo=$ac_try;;
27889 esac
27890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891   (eval "$ac_compile") 2>conftest.er1
27892   ac_status=$?
27893   grep -v '^ *+' conftest.er1 >conftest.err
27894   rm -f conftest.er1
27895   cat conftest.err >&5
27896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897   (exit $ac_status); } && {
27898          test -z "$ac_c_werror_flag" ||
27899          test ! -s conftest.err
27900        } && test -s conftest.$ac_objext; then
27901   ol_cv_func_gethostbyaddr_r_nargs8=yes
27902 else
27903   echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27905
27906         ol_cv_func_gethostbyaddr_r_nargs8=no
27907 fi
27908
27909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27910
27911         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27912            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27913
27914                 ol_cv_func_gethostbyaddr_r_nargs=7
27915
27916         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27917              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27918
27919                 ol_cv_func_gethostbyaddr_r_nargs=8
27920
27921         else
27922                 ol_cv_func_gethostbyaddr_r_nargs=0
27923         fi
27924
27925 fi
27926 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27927 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27928   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27929
27930 cat >>confdefs.h <<_ACEOF
27931 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27932 _ACEOF
27933
27934   fi
27935
27936 else
27937         ol_cv_func_gethostbyaddr_r_nargs=0
27938 fi
27939
27940 ol_link_bdb=no
27941
27942 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27943         ol_cv_berkeley_db=no
27944
27945 for ac_header in db.h
27946 do
27947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27949   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27952   echo $ECHO_N "(cached) $ECHO_C" >&6
27953 fi
27954 ac_res=`eval echo '${'$as_ac_Header'}'`
27955                { echo "$as_me:$LINENO: result: $ac_res" >&5
27956 echo "${ECHO_T}$ac_res" >&6; }
27957 else
27958   # Is the header compilable?
27959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27961 cat >conftest.$ac_ext <<_ACEOF
27962 /* confdefs.h.  */
27963 _ACEOF
27964 cat confdefs.h >>conftest.$ac_ext
27965 cat >>conftest.$ac_ext <<_ACEOF
27966 /* end confdefs.h.  */
27967 $ac_includes_default
27968 #include <$ac_header>
27969 _ACEOF
27970 rm -f conftest.$ac_objext
27971 if { (ac_try="$ac_compile"
27972 case "(($ac_try" in
27973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27974   *) ac_try_echo=$ac_try;;
27975 esac
27976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27977   (eval "$ac_compile") 2>conftest.er1
27978   ac_status=$?
27979   grep -v '^ *+' conftest.er1 >conftest.err
27980   rm -f conftest.er1
27981   cat conftest.err >&5
27982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983   (exit $ac_status); } && {
27984          test -z "$ac_c_werror_flag" ||
27985          test ! -s conftest.err
27986        } && test -s conftest.$ac_objext; then
27987   ac_header_compiler=yes
27988 else
27989   echo "$as_me: failed program was:" >&5
27990 sed 's/^/| /' conftest.$ac_ext >&5
27991
27992         ac_header_compiler=no
27993 fi
27994
27995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27997 echo "${ECHO_T}$ac_header_compiler" >&6; }
27998
27999 # Is the header present?
28000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 <$ac_header>
28009 _ACEOF
28010 if { (ac_try="$ac_cpp conftest.$ac_ext"
28011 case "(($ac_try" in
28012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013   *) ac_try_echo=$ac_try;;
28014 esac
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28017   ac_status=$?
28018   grep -v '^ *+' conftest.er1 >conftest.err
28019   rm -f conftest.er1
28020   cat conftest.err >&5
28021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); } >/dev/null && {
28023          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28024          test ! -s conftest.err
28025        }; then
28026   ac_header_preproc=yes
28027 else
28028   echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28030
28031   ac_header_preproc=no
28032 fi
28033
28034 rm -f conftest.err conftest.$ac_ext
28035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28036 echo "${ECHO_T}$ac_header_preproc" >&6; }
28037
28038 # So?  What about this header?
28039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28040   yes:no: )
28041     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28045     ac_header_preproc=yes
28046     ;;
28047   no:yes:* )
28048     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28050     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28051 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28052     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28054     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28055 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28058     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28060     ( cat <<\_ASBOX
28061 ## --------------------------------------------- ##
28062 ## Report this to <http://www.openldap.org/its/> ##
28063 ## --------------------------------------------- ##
28064 _ASBOX
28065      ) | sed "s/^/$as_me: WARNING:     /" >&2
28066     ;;
28067 esac
28068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28071   echo $ECHO_N "(cached) $ECHO_C" >&6
28072 else
28073   eval "$as_ac_Header=\$ac_header_preproc"
28074 fi
28075 ac_res=`eval echo '${'$as_ac_Header'}'`
28076                { echo "$as_me:$LINENO: result: $ac_res" >&5
28077 echo "${ECHO_T}$ac_res" >&6; }
28078
28079 fi
28080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28081   cat >>confdefs.h <<_ACEOF
28082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28083 _ACEOF
28084
28085 fi
28086
28087 done
28088
28089 if test $ac_cv_header_db_h = yes; then
28090         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28091 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28092 if test "${ol_cv_bdb_major+set}" = set; then
28093   echo $ECHO_N "(cached) $ECHO_C" >&6
28094 else
28095
28096         cat >conftest.$ac_ext <<_ACEOF
28097
28098 #include <db.h>
28099 #ifndef DB_VERSION_MAJOR
28100 #       define DB_VERSION_MAJOR 1
28101 #endif
28102 __db_version DB_VERSION_MAJOR
28103
28104 _ACEOF
28105         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28106         ol_cv_bdb_major=${3}
28107
28108 fi
28109 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28110 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28111 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28112         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28113 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28114    { (exit 1); exit 1; }; } ;;
28115 esac
28116
28117 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28118 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28119 if test "${ol_cv_bdb_minor+set}" = set; then
28120   echo $ECHO_N "(cached) $ECHO_C" >&6
28121 else
28122
28123         cat >conftest.$ac_ext <<_ACEOF
28124
28125 #include <db.h>
28126 #ifndef DB_VERSION_MINOR
28127 #       define DB_VERSION_MINOR 0
28128 #endif
28129 __db_version DB_VERSION_MINOR
28130
28131 _ACEOF
28132         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28133         ol_cv_bdb_minor=${3}
28134
28135 fi
28136 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28137 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28138 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28139         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28140 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28141    { (exit 1); exit 1; }; } ;;
28142 esac
28143
28144         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28145 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28146 if test "${ol_cv_bdb_compat+set}" = set; then
28147   echo $ECHO_N "(cached) $ECHO_C" >&6
28148 else
28149
28150         cat >conftest.$ac_ext <<_ACEOF
28151 /* confdefs.h.  */
28152 _ACEOF
28153 cat confdefs.h >>conftest.$ac_ext
28154 cat >>conftest.$ac_ext <<_ACEOF
28155 /* end confdefs.h.  */
28156
28157 #include <db.h>
28158
28159  /* this check could be improved */
28160 #ifndef DB_VERSION_MAJOR
28161 #       define DB_VERSION_MAJOR 1
28162 #endif
28163 #ifndef DB_VERSION_MINOR
28164 #       define DB_VERSION_MINOR 0
28165 #endif
28166
28167 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28168
28169 /* require 4.4 or later */
28170 #if DB_VERSION_MM >= 0x0404
28171         __db_version_compat
28172 #endif
28173
28174 _ACEOF
28175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28176   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28177   ol_cv_bdb_compat=yes
28178 else
28179   ol_cv_bdb_compat=no
28180 fi
28181 rm -f conftest*
28182
28183 fi
28184 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28185 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28186
28187
28188         if test $ol_cv_bdb_compat != yes ; then
28189                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28190 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28191    { (exit 1); exit 1; }; }
28192         fi
28193
28194         ol_cv_lib_db=no
28195
28196 if test $ol_cv_bdb_major = 5 ; then
28197         if test $ol_cv_lib_db = no ; then
28198         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
28199 echo $ECHO_N "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28200 if test "${ol_cv_db_db_5_dot_m+set}" = set; then
28201   echo $ECHO_N "(cached) $ECHO_C" >&6
28202 else
28203
28204         ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
28205         ol_LIBS=$LIBS
28206         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28207
28208         cat >conftest.$ac_ext <<_ACEOF
28209 /* confdefs.h.  */
28210 _ACEOF
28211 cat confdefs.h >>conftest.$ac_ext
28212 cat >>conftest.$ac_ext <<_ACEOF
28213 /* end confdefs.h.  */
28214
28215 #ifdef HAVE_DB_185_H
28216 # include <db_185.h>
28217 #else
28218 # include <db.h>
28219 #endif
28220
28221 #ifndef DB_VERSION_MAJOR
28222 # define DB_VERSION_MAJOR 1
28223 #endif
28224
28225 #ifndef NULL
28226 #define NULL ((void*)0)
28227 #endif
28228
28229 int
28230 main ()
28231 {
28232
28233 #if DB_VERSION_MAJOR > 2
28234         db_env_create( NULL, 0 );
28235 #elif DB_VERSION_MAJOR > 1
28236         db_appexit( NULL );
28237 #else
28238         (void) dbopen( NULL, 0, 0, 0, NULL);
28239 #endif
28240
28241   ;
28242   return 0;
28243 }
28244 _ACEOF
28245 rm -f conftest.$ac_objext conftest$ac_exeext
28246 if { (ac_try="$ac_link"
28247 case "(($ac_try" in
28248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28249   *) ac_try_echo=$ac_try;;
28250 esac
28251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28252   (eval "$ac_link") 2>conftest.er1
28253   ac_status=$?
28254   grep -v '^ *+' conftest.er1 >conftest.err
28255   rm -f conftest.er1
28256   cat conftest.err >&5
28257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258   (exit $ac_status); } && {
28259          test -z "$ac_c_werror_flag" ||
28260          test ! -s conftest.err
28261        } && test -s conftest$ac_exeext &&
28262        $as_test_x conftest$ac_exeext; then
28263   ol_cv_db_db_5_dot_m=yes
28264 else
28265   echo "$as_me: failed program was:" >&5
28266 sed 's/^/| /' conftest.$ac_ext >&5
28267
28268         ol_cv_db_db_5_dot_m=no
28269 fi
28270
28271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28272       conftest$ac_exeext conftest.$ac_ext
28273
28274         LIBS="$ol_LIBS"
28275
28276 fi
28277 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5_dot_m" >&5
28278 echo "${ECHO_T}$ol_cv_db_db_5_dot_m" >&6; }
28279
28280         if test $ol_cv_db_db_5_dot_m = yes ; then
28281                 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
28282         fi
28283 fi
28284
28285         if test $ol_cv_lib_db = no ; then
28286         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
28287 echo $ECHO_N "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28288 if test "${ol_cv_db_db5m+set}" = set; then
28289   echo $ECHO_N "(cached) $ECHO_C" >&6
28290 else
28291
28292         ol_DB_LIB=-ldb5$ol_cv_bdb_minor
28293         ol_LIBS=$LIBS
28294         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28295
28296         cat >conftest.$ac_ext <<_ACEOF
28297 /* confdefs.h.  */
28298 _ACEOF
28299 cat confdefs.h >>conftest.$ac_ext
28300 cat >>conftest.$ac_ext <<_ACEOF
28301 /* end confdefs.h.  */
28302
28303 #ifdef HAVE_DB_185_H
28304 # include <db_185.h>
28305 #else
28306 # include <db.h>
28307 #endif
28308
28309 #ifndef DB_VERSION_MAJOR
28310 # define DB_VERSION_MAJOR 1
28311 #endif
28312
28313 #ifndef NULL
28314 #define NULL ((void*)0)
28315 #endif
28316
28317 int
28318 main ()
28319 {
28320
28321 #if DB_VERSION_MAJOR > 2
28322         db_env_create( NULL, 0 );
28323 #elif DB_VERSION_MAJOR > 1
28324         db_appexit( NULL );
28325 #else
28326         (void) dbopen( NULL, 0, 0, 0, NULL);
28327 #endif
28328
28329   ;
28330   return 0;
28331 }
28332 _ACEOF
28333 rm -f conftest.$ac_objext conftest$ac_exeext
28334 if { (ac_try="$ac_link"
28335 case "(($ac_try" in
28336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28337   *) ac_try_echo=$ac_try;;
28338 esac
28339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28340   (eval "$ac_link") 2>conftest.er1
28341   ac_status=$?
28342   grep -v '^ *+' conftest.er1 >conftest.err
28343   rm -f conftest.er1
28344   cat conftest.err >&5
28345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346   (exit $ac_status); } && {
28347          test -z "$ac_c_werror_flag" ||
28348          test ! -s conftest.err
28349        } && test -s conftest$ac_exeext &&
28350        $as_test_x conftest$ac_exeext; then
28351   ol_cv_db_db5m=yes
28352 else
28353   echo "$as_me: failed program was:" >&5
28354 sed 's/^/| /' conftest.$ac_ext >&5
28355
28356         ol_cv_db_db5m=no
28357 fi
28358
28359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28360       conftest$ac_exeext conftest.$ac_ext
28361
28362         LIBS="$ol_LIBS"
28363
28364 fi
28365 { echo "$as_me:$LINENO: result: $ol_cv_db_db5m" >&5
28366 echo "${ECHO_T}$ol_cv_db_db5m" >&6; }
28367
28368         if test $ol_cv_db_db5m = yes ; then
28369                 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
28370         fi
28371 fi
28372
28373         if test $ol_cv_lib_db = no ; then
28374         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
28375 echo $ECHO_N "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28376 if test "${ol_cv_db_db_5m+set}" = set; then
28377   echo $ECHO_N "(cached) $ECHO_C" >&6
28378 else
28379
28380         ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
28381         ol_LIBS=$LIBS
28382         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28383
28384         cat >conftest.$ac_ext <<_ACEOF
28385 /* confdefs.h.  */
28386 _ACEOF
28387 cat confdefs.h >>conftest.$ac_ext
28388 cat >>conftest.$ac_ext <<_ACEOF
28389 /* end confdefs.h.  */
28390
28391 #ifdef HAVE_DB_185_H
28392 # include <db_185.h>
28393 #else
28394 # include <db.h>
28395 #endif
28396
28397 #ifndef DB_VERSION_MAJOR
28398 # define DB_VERSION_MAJOR 1
28399 #endif
28400
28401 #ifndef NULL
28402 #define NULL ((void*)0)
28403 #endif
28404
28405 int
28406 main ()
28407 {
28408
28409 #if DB_VERSION_MAJOR > 2
28410         db_env_create( NULL, 0 );
28411 #elif DB_VERSION_MAJOR > 1
28412         db_appexit( NULL );
28413 #else
28414         (void) dbopen( NULL, 0, 0, 0, NULL);
28415 #endif
28416
28417   ;
28418   return 0;
28419 }
28420 _ACEOF
28421 rm -f conftest.$ac_objext conftest$ac_exeext
28422 if { (ac_try="$ac_link"
28423 case "(($ac_try" in
28424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28425   *) ac_try_echo=$ac_try;;
28426 esac
28427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28428   (eval "$ac_link") 2>conftest.er1
28429   ac_status=$?
28430   grep -v '^ *+' conftest.er1 >conftest.err
28431   rm -f conftest.er1
28432   cat conftest.err >&5
28433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434   (exit $ac_status); } && {
28435          test -z "$ac_c_werror_flag" ||
28436          test ! -s conftest.err
28437        } && test -s conftest$ac_exeext &&
28438        $as_test_x conftest$ac_exeext; then
28439   ol_cv_db_db_5m=yes
28440 else
28441   echo "$as_me: failed program was:" >&5
28442 sed 's/^/| /' conftest.$ac_ext >&5
28443
28444         ol_cv_db_db_5m=no
28445 fi
28446
28447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28448       conftest$ac_exeext conftest.$ac_ext
28449
28450         LIBS="$ol_LIBS"
28451
28452 fi
28453 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5m" >&5
28454 echo "${ECHO_T}$ol_cv_db_db_5m" >&6; }
28455
28456         if test $ol_cv_db_db_5m = yes ; then
28457                 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
28458         fi
28459 fi
28460
28461         if test $ol_cv_lib_db = no ; then
28462         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
28463 echo $ECHO_N "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28464 if test "${ol_cv_db_db_5_m+set}" = set; then
28465   echo $ECHO_N "(cached) $ECHO_C" >&6
28466 else
28467
28468         ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
28469         ol_LIBS=$LIBS
28470         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28471
28472         cat >conftest.$ac_ext <<_ACEOF
28473 /* confdefs.h.  */
28474 _ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h.  */
28478
28479 #ifdef HAVE_DB_185_H
28480 # include <db_185.h>
28481 #else
28482 # include <db.h>
28483 #endif
28484
28485 #ifndef DB_VERSION_MAJOR
28486 # define DB_VERSION_MAJOR 1
28487 #endif
28488
28489 #ifndef NULL
28490 #define NULL ((void*)0)
28491 #endif
28492
28493 int
28494 main ()
28495 {
28496
28497 #if DB_VERSION_MAJOR > 2
28498         db_env_create( NULL, 0 );
28499 #elif DB_VERSION_MAJOR > 1
28500         db_appexit( NULL );
28501 #else
28502         (void) dbopen( NULL, 0, 0, 0, NULL);
28503 #endif
28504
28505   ;
28506   return 0;
28507 }
28508 _ACEOF
28509 rm -f conftest.$ac_objext conftest$ac_exeext
28510 if { (ac_try="$ac_link"
28511 case "(($ac_try" in
28512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28513   *) ac_try_echo=$ac_try;;
28514 esac
28515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28516   (eval "$ac_link") 2>conftest.er1
28517   ac_status=$?
28518   grep -v '^ *+' conftest.er1 >conftest.err
28519   rm -f conftest.er1
28520   cat conftest.err >&5
28521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522   (exit $ac_status); } && {
28523          test -z "$ac_c_werror_flag" ||
28524          test ! -s conftest.err
28525        } && test -s conftest$ac_exeext &&
28526        $as_test_x conftest$ac_exeext; then
28527   ol_cv_db_db_5_m=yes
28528 else
28529   echo "$as_me: failed program was:" >&5
28530 sed 's/^/| /' conftest.$ac_ext >&5
28531
28532         ol_cv_db_db_5_m=no
28533 fi
28534
28535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28536       conftest$ac_exeext conftest.$ac_ext
28537
28538         LIBS="$ol_LIBS"
28539
28540 fi
28541 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5_m" >&5
28542 echo "${ECHO_T}$ol_cv_db_db_5_m" >&6; }
28543
28544         if test $ol_cv_db_db_5_m = yes ; then
28545                 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
28546         fi
28547 fi
28548
28549         if test $ol_cv_lib_db = no ; then
28550         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5)" >&5
28551 echo $ECHO_N "checking for Berkeley DB link (-ldb-5)... $ECHO_C" >&6; }
28552 if test "${ol_cv_db_db_5+set}" = set; then
28553   echo $ECHO_N "(cached) $ECHO_C" >&6
28554 else
28555
28556         ol_DB_LIB=-ldb-5
28557         ol_LIBS=$LIBS
28558         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28559
28560         cat >conftest.$ac_ext <<_ACEOF
28561 /* confdefs.h.  */
28562 _ACEOF
28563 cat confdefs.h >>conftest.$ac_ext
28564 cat >>conftest.$ac_ext <<_ACEOF
28565 /* end confdefs.h.  */
28566
28567 #ifdef HAVE_DB_185_H
28568 # include <db_185.h>
28569 #else
28570 # include <db.h>
28571 #endif
28572
28573 #ifndef DB_VERSION_MAJOR
28574 # define DB_VERSION_MAJOR 1
28575 #endif
28576
28577 #ifndef NULL
28578 #define NULL ((void*)0)
28579 #endif
28580
28581 int
28582 main ()
28583 {
28584
28585 #if DB_VERSION_MAJOR > 2
28586         db_env_create( NULL, 0 );
28587 #elif DB_VERSION_MAJOR > 1
28588         db_appexit( NULL );
28589 #else
28590         (void) dbopen( NULL, 0, 0, 0, NULL);
28591 #endif
28592
28593   ;
28594   return 0;
28595 }
28596 _ACEOF
28597 rm -f conftest.$ac_objext conftest$ac_exeext
28598 if { (ac_try="$ac_link"
28599 case "(($ac_try" in
28600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28601   *) ac_try_echo=$ac_try;;
28602 esac
28603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28604   (eval "$ac_link") 2>conftest.er1
28605   ac_status=$?
28606   grep -v '^ *+' conftest.er1 >conftest.err
28607   rm -f conftest.er1
28608   cat conftest.err >&5
28609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610   (exit $ac_status); } && {
28611          test -z "$ac_c_werror_flag" ||
28612          test ! -s conftest.err
28613        } && test -s conftest$ac_exeext &&
28614        $as_test_x conftest$ac_exeext; then
28615   ol_cv_db_db_5=yes
28616 else
28617   echo "$as_me: failed program was:" >&5
28618 sed 's/^/| /' conftest.$ac_ext >&5
28619
28620         ol_cv_db_db_5=no
28621 fi
28622
28623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28624       conftest$ac_exeext conftest.$ac_ext
28625
28626         LIBS="$ol_LIBS"
28627
28628 fi
28629 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5" >&5
28630 echo "${ECHO_T}$ol_cv_db_db_5" >&6; }
28631
28632         if test $ol_cv_db_db_5 = yes ; then
28633                 ol_cv_lib_db=-ldb-5
28634         fi
28635 fi
28636
28637         if test $ol_cv_lib_db = no ; then
28638         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5)" >&5
28639 echo $ECHO_N "checking for Berkeley DB link (-ldb5)... $ECHO_C" >&6; }
28640 if test "${ol_cv_db_db5+set}" = set; then
28641   echo $ECHO_N "(cached) $ECHO_C" >&6
28642 else
28643
28644         ol_DB_LIB=-ldb5
28645         ol_LIBS=$LIBS
28646         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28647
28648         cat >conftest.$ac_ext <<_ACEOF
28649 /* confdefs.h.  */
28650 _ACEOF
28651 cat confdefs.h >>conftest.$ac_ext
28652 cat >>conftest.$ac_ext <<_ACEOF
28653 /* end confdefs.h.  */
28654
28655 #ifdef HAVE_DB_185_H
28656 # include <db_185.h>
28657 #else
28658 # include <db.h>
28659 #endif
28660
28661 #ifndef DB_VERSION_MAJOR
28662 # define DB_VERSION_MAJOR 1
28663 #endif
28664
28665 #ifndef NULL
28666 #define NULL ((void*)0)
28667 #endif
28668
28669 int
28670 main ()
28671 {
28672
28673 #if DB_VERSION_MAJOR > 2
28674         db_env_create( NULL, 0 );
28675 #elif DB_VERSION_MAJOR > 1
28676         db_appexit( NULL );
28677 #else
28678         (void) dbopen( NULL, 0, 0, 0, NULL);
28679 #endif
28680
28681   ;
28682   return 0;
28683 }
28684 _ACEOF
28685 rm -f conftest.$ac_objext conftest$ac_exeext
28686 if { (ac_try="$ac_link"
28687 case "(($ac_try" in
28688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28689   *) ac_try_echo=$ac_try;;
28690 esac
28691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28692   (eval "$ac_link") 2>conftest.er1
28693   ac_status=$?
28694   grep -v '^ *+' conftest.er1 >conftest.err
28695   rm -f conftest.er1
28696   cat conftest.err >&5
28697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698   (exit $ac_status); } && {
28699          test -z "$ac_c_werror_flag" ||
28700          test ! -s conftest.err
28701        } && test -s conftest$ac_exeext &&
28702        $as_test_x conftest$ac_exeext; then
28703   ol_cv_db_db5=yes
28704 else
28705   echo "$as_me: failed program was:" >&5
28706 sed 's/^/| /' conftest.$ac_ext >&5
28707
28708         ol_cv_db_db5=no
28709 fi
28710
28711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28712       conftest$ac_exeext conftest.$ac_ext
28713
28714         LIBS="$ol_LIBS"
28715
28716 fi
28717 { echo "$as_me:$LINENO: result: $ol_cv_db_db5" >&5
28718 echo "${ECHO_T}$ol_cv_db_db5" >&6; }
28719
28720         if test $ol_cv_db_db5 = yes ; then
28721                 ol_cv_lib_db=-ldb5
28722         fi
28723 fi
28724
28725 elif test $ol_cv_bdb_major = 4 ; then
28726         if test $ol_cv_lib_db = no ; then
28727         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28728 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28729 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28730   echo $ECHO_N "(cached) $ECHO_C" >&6
28731 else
28732
28733         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28734         ol_LIBS=$LIBS
28735         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28736
28737         cat >conftest.$ac_ext <<_ACEOF
28738 /* confdefs.h.  */
28739 _ACEOF
28740 cat confdefs.h >>conftest.$ac_ext
28741 cat >>conftest.$ac_ext <<_ACEOF
28742 /* end confdefs.h.  */
28743
28744 #ifdef HAVE_DB_185_H
28745 # include <db_185.h>
28746 #else
28747 # include <db.h>
28748 #endif
28749
28750 #ifndef DB_VERSION_MAJOR
28751 # define DB_VERSION_MAJOR 1
28752 #endif
28753
28754 #ifndef NULL
28755 #define NULL ((void*)0)
28756 #endif
28757
28758 int
28759 main ()
28760 {
28761
28762 #if DB_VERSION_MAJOR > 2
28763         db_env_create( NULL, 0 );
28764 #elif DB_VERSION_MAJOR > 1
28765         db_appexit( NULL );
28766 #else
28767         (void) dbopen( NULL, 0, 0, 0, NULL);
28768 #endif
28769
28770   ;
28771   return 0;
28772 }
28773 _ACEOF
28774 rm -f conftest.$ac_objext conftest$ac_exeext
28775 if { (ac_try="$ac_link"
28776 case "(($ac_try" in
28777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778   *) ac_try_echo=$ac_try;;
28779 esac
28780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781   (eval "$ac_link") 2>conftest.er1
28782   ac_status=$?
28783   grep -v '^ *+' conftest.er1 >conftest.err
28784   rm -f conftest.er1
28785   cat conftest.err >&5
28786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787   (exit $ac_status); } && {
28788          test -z "$ac_c_werror_flag" ||
28789          test ! -s conftest.err
28790        } && test -s conftest$ac_exeext &&
28791        $as_test_x conftest$ac_exeext; then
28792   ol_cv_db_db_4_dot_m=yes
28793 else
28794   echo "$as_me: failed program was:" >&5
28795 sed 's/^/| /' conftest.$ac_ext >&5
28796
28797         ol_cv_db_db_4_dot_m=no
28798 fi
28799
28800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28801       conftest$ac_exeext conftest.$ac_ext
28802
28803         LIBS="$ol_LIBS"
28804
28805 fi
28806 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28807 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28808
28809         if test $ol_cv_db_db_4_dot_m = yes ; then
28810                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28811         fi
28812 fi
28813
28814         if test $ol_cv_lib_db = no ; then
28815         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28816 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28817 if test "${ol_cv_db_db4m+set}" = set; then
28818   echo $ECHO_N "(cached) $ECHO_C" >&6
28819 else
28820
28821         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28822         ol_LIBS=$LIBS
28823         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28824
28825         cat >conftest.$ac_ext <<_ACEOF
28826 /* confdefs.h.  */
28827 _ACEOF
28828 cat confdefs.h >>conftest.$ac_ext
28829 cat >>conftest.$ac_ext <<_ACEOF
28830 /* end confdefs.h.  */
28831
28832 #ifdef HAVE_DB_185_H
28833 # include <db_185.h>
28834 #else
28835 # include <db.h>
28836 #endif
28837
28838 #ifndef DB_VERSION_MAJOR
28839 # define DB_VERSION_MAJOR 1
28840 #endif
28841
28842 #ifndef NULL
28843 #define NULL ((void*)0)
28844 #endif
28845
28846 int
28847 main ()
28848 {
28849
28850 #if DB_VERSION_MAJOR > 2
28851         db_env_create( NULL, 0 );
28852 #elif DB_VERSION_MAJOR > 1
28853         db_appexit( NULL );
28854 #else
28855         (void) dbopen( NULL, 0, 0, 0, NULL);
28856 #endif
28857
28858   ;
28859   return 0;
28860 }
28861 _ACEOF
28862 rm -f conftest.$ac_objext conftest$ac_exeext
28863 if { (ac_try="$ac_link"
28864 case "(($ac_try" in
28865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866   *) ac_try_echo=$ac_try;;
28867 esac
28868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28869   (eval "$ac_link") 2>conftest.er1
28870   ac_status=$?
28871   grep -v '^ *+' conftest.er1 >conftest.err
28872   rm -f conftest.er1
28873   cat conftest.err >&5
28874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875   (exit $ac_status); } && {
28876          test -z "$ac_c_werror_flag" ||
28877          test ! -s conftest.err
28878        } && test -s conftest$ac_exeext &&
28879        $as_test_x conftest$ac_exeext; then
28880   ol_cv_db_db4m=yes
28881 else
28882   echo "$as_me: failed program was:" >&5
28883 sed 's/^/| /' conftest.$ac_ext >&5
28884
28885         ol_cv_db_db4m=no
28886 fi
28887
28888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28889       conftest$ac_exeext conftest.$ac_ext
28890
28891         LIBS="$ol_LIBS"
28892
28893 fi
28894 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28895 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28896
28897         if test $ol_cv_db_db4m = yes ; then
28898                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28899         fi
28900 fi
28901
28902         if test $ol_cv_lib_db = no ; then
28903         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28904 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28905 if test "${ol_cv_db_db_4m+set}" = set; then
28906   echo $ECHO_N "(cached) $ECHO_C" >&6
28907 else
28908
28909         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28910         ol_LIBS=$LIBS
28911         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28912
28913         cat >conftest.$ac_ext <<_ACEOF
28914 /* confdefs.h.  */
28915 _ACEOF
28916 cat confdefs.h >>conftest.$ac_ext
28917 cat >>conftest.$ac_ext <<_ACEOF
28918 /* end confdefs.h.  */
28919
28920 #ifdef HAVE_DB_185_H
28921 # include <db_185.h>
28922 #else
28923 # include <db.h>
28924 #endif
28925
28926 #ifndef DB_VERSION_MAJOR
28927 # define DB_VERSION_MAJOR 1
28928 #endif
28929
28930 #ifndef NULL
28931 #define NULL ((void*)0)
28932 #endif
28933
28934 int
28935 main ()
28936 {
28937
28938 #if DB_VERSION_MAJOR > 2
28939         db_env_create( NULL, 0 );
28940 #elif DB_VERSION_MAJOR > 1
28941         db_appexit( NULL );
28942 #else
28943         (void) dbopen( NULL, 0, 0, 0, NULL);
28944 #endif
28945
28946   ;
28947   return 0;
28948 }
28949 _ACEOF
28950 rm -f conftest.$ac_objext conftest$ac_exeext
28951 if { (ac_try="$ac_link"
28952 case "(($ac_try" in
28953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28954   *) ac_try_echo=$ac_try;;
28955 esac
28956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28957   (eval "$ac_link") 2>conftest.er1
28958   ac_status=$?
28959   grep -v '^ *+' conftest.er1 >conftest.err
28960   rm -f conftest.er1
28961   cat conftest.err >&5
28962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963   (exit $ac_status); } && {
28964          test -z "$ac_c_werror_flag" ||
28965          test ! -s conftest.err
28966        } && test -s conftest$ac_exeext &&
28967        $as_test_x conftest$ac_exeext; then
28968   ol_cv_db_db_4m=yes
28969 else
28970   echo "$as_me: failed program was:" >&5
28971 sed 's/^/| /' conftest.$ac_ext >&5
28972
28973         ol_cv_db_db_4m=no
28974 fi
28975
28976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28977       conftest$ac_exeext conftest.$ac_ext
28978
28979         LIBS="$ol_LIBS"
28980
28981 fi
28982 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28983 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28984
28985         if test $ol_cv_db_db_4m = yes ; then
28986                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28987         fi
28988 fi
28989
28990         if test $ol_cv_lib_db = no ; then
28991         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28992 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28993 if test "${ol_cv_db_db_4_m+set}" = set; then
28994   echo $ECHO_N "(cached) $ECHO_C" >&6
28995 else
28996
28997         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28998         ol_LIBS=$LIBS
28999         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29000
29001         cat >conftest.$ac_ext <<_ACEOF
29002 /* confdefs.h.  */
29003 _ACEOF
29004 cat confdefs.h >>conftest.$ac_ext
29005 cat >>conftest.$ac_ext <<_ACEOF
29006 /* end confdefs.h.  */
29007
29008 #ifdef HAVE_DB_185_H
29009 # include <db_185.h>
29010 #else
29011 # include <db.h>
29012 #endif
29013
29014 #ifndef DB_VERSION_MAJOR
29015 # define DB_VERSION_MAJOR 1
29016 #endif
29017
29018 #ifndef NULL
29019 #define NULL ((void*)0)
29020 #endif
29021
29022 int
29023 main ()
29024 {
29025
29026 #if DB_VERSION_MAJOR > 2
29027         db_env_create( NULL, 0 );
29028 #elif DB_VERSION_MAJOR > 1
29029         db_appexit( NULL );
29030 #else
29031         (void) dbopen( NULL, 0, 0, 0, NULL);
29032 #endif
29033
29034   ;
29035   return 0;
29036 }
29037 _ACEOF
29038 rm -f conftest.$ac_objext conftest$ac_exeext
29039 if { (ac_try="$ac_link"
29040 case "(($ac_try" in
29041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29042   *) ac_try_echo=$ac_try;;
29043 esac
29044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29045   (eval "$ac_link") 2>conftest.er1
29046   ac_status=$?
29047   grep -v '^ *+' conftest.er1 >conftest.err
29048   rm -f conftest.er1
29049   cat conftest.err >&5
29050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051   (exit $ac_status); } && {
29052          test -z "$ac_c_werror_flag" ||
29053          test ! -s conftest.err
29054        } && test -s conftest$ac_exeext &&
29055        $as_test_x conftest$ac_exeext; then
29056   ol_cv_db_db_4_m=yes
29057 else
29058   echo "$as_me: failed program was:" >&5
29059 sed 's/^/| /' conftest.$ac_ext >&5
29060
29061         ol_cv_db_db_4_m=no
29062 fi
29063
29064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29065       conftest$ac_exeext conftest.$ac_ext
29066
29067         LIBS="$ol_LIBS"
29068
29069 fi
29070 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
29071 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
29072
29073         if test $ol_cv_db_db_4_m = yes ; then
29074                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
29075         fi
29076 fi
29077
29078         if test $ol_cv_lib_db = no ; then
29079         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29080 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
29081 if test "${ol_cv_db_db_4+set}" = set; then
29082   echo $ECHO_N "(cached) $ECHO_C" >&6
29083 else
29084
29085         ol_DB_LIB=-ldb-4
29086         ol_LIBS=$LIBS
29087         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29088
29089         cat >conftest.$ac_ext <<_ACEOF
29090 /* confdefs.h.  */
29091 _ACEOF
29092 cat confdefs.h >>conftest.$ac_ext
29093 cat >>conftest.$ac_ext <<_ACEOF
29094 /* end confdefs.h.  */
29095
29096 #ifdef HAVE_DB_185_H
29097 # include <db_185.h>
29098 #else
29099 # include <db.h>
29100 #endif
29101
29102 #ifndef DB_VERSION_MAJOR
29103 # define DB_VERSION_MAJOR 1
29104 #endif
29105
29106 #ifndef NULL
29107 #define NULL ((void*)0)
29108 #endif
29109
29110 int
29111 main ()
29112 {
29113
29114 #if DB_VERSION_MAJOR > 2
29115         db_env_create( NULL, 0 );
29116 #elif DB_VERSION_MAJOR > 1
29117         db_appexit( NULL );
29118 #else
29119         (void) dbopen( NULL, 0, 0, 0, NULL);
29120 #endif
29121
29122   ;
29123   return 0;
29124 }
29125 _ACEOF
29126 rm -f conftest.$ac_objext conftest$ac_exeext
29127 if { (ac_try="$ac_link"
29128 case "(($ac_try" in
29129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130   *) ac_try_echo=$ac_try;;
29131 esac
29132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133   (eval "$ac_link") 2>conftest.er1
29134   ac_status=$?
29135   grep -v '^ *+' conftest.er1 >conftest.err
29136   rm -f conftest.er1
29137   cat conftest.err >&5
29138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139   (exit $ac_status); } && {
29140          test -z "$ac_c_werror_flag" ||
29141          test ! -s conftest.err
29142        } && test -s conftest$ac_exeext &&
29143        $as_test_x conftest$ac_exeext; then
29144   ol_cv_db_db_4=yes
29145 else
29146   echo "$as_me: failed program was:" >&5
29147 sed 's/^/| /' conftest.$ac_ext >&5
29148
29149         ol_cv_db_db_4=no
29150 fi
29151
29152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29153       conftest$ac_exeext conftest.$ac_ext
29154
29155         LIBS="$ol_LIBS"
29156
29157 fi
29158 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29159 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
29160
29161         if test $ol_cv_db_db_4 = yes ; then
29162                 ol_cv_lib_db=-ldb-4
29163         fi
29164 fi
29165
29166         if test $ol_cv_lib_db = no ; then
29167         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29168 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
29169 if test "${ol_cv_db_db4+set}" = set; then
29170   echo $ECHO_N "(cached) $ECHO_C" >&6
29171 else
29172
29173         ol_DB_LIB=-ldb4
29174         ol_LIBS=$LIBS
29175         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29176
29177         cat >conftest.$ac_ext <<_ACEOF
29178 /* confdefs.h.  */
29179 _ACEOF
29180 cat confdefs.h >>conftest.$ac_ext
29181 cat >>conftest.$ac_ext <<_ACEOF
29182 /* end confdefs.h.  */
29183
29184 #ifdef HAVE_DB_185_H
29185 # include <db_185.h>
29186 #else
29187 # include <db.h>
29188 #endif
29189
29190 #ifndef DB_VERSION_MAJOR
29191 # define DB_VERSION_MAJOR 1
29192 #endif
29193
29194 #ifndef NULL
29195 #define NULL ((void*)0)
29196 #endif
29197
29198 int
29199 main ()
29200 {
29201
29202 #if DB_VERSION_MAJOR > 2
29203         db_env_create( NULL, 0 );
29204 #elif DB_VERSION_MAJOR > 1
29205         db_appexit( NULL );
29206 #else
29207         (void) dbopen( NULL, 0, 0, 0, NULL);
29208 #endif
29209
29210   ;
29211   return 0;
29212 }
29213 _ACEOF
29214 rm -f conftest.$ac_objext conftest$ac_exeext
29215 if { (ac_try="$ac_link"
29216 case "(($ac_try" in
29217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218   *) ac_try_echo=$ac_try;;
29219 esac
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221   (eval "$ac_link") 2>conftest.er1
29222   ac_status=$?
29223   grep -v '^ *+' conftest.er1 >conftest.err
29224   rm -f conftest.er1
29225   cat conftest.err >&5
29226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227   (exit $ac_status); } && {
29228          test -z "$ac_c_werror_flag" ||
29229          test ! -s conftest.err
29230        } && test -s conftest$ac_exeext &&
29231        $as_test_x conftest$ac_exeext; then
29232   ol_cv_db_db4=yes
29233 else
29234   echo "$as_me: failed program was:" >&5
29235 sed 's/^/| /' conftest.$ac_ext >&5
29236
29237         ol_cv_db_db4=no
29238 fi
29239
29240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29241       conftest$ac_exeext conftest.$ac_ext
29242
29243         LIBS="$ol_LIBS"
29244
29245 fi
29246 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29247 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
29248
29249         if test $ol_cv_db_db4 = yes ; then
29250                 ol_cv_lib_db=-ldb4
29251         fi
29252 fi
29253
29254 fi
29255 if test $ol_cv_lib_db = no ; then
29256         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29257 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
29258 if test "${ol_cv_db_db+set}" = set; then
29259   echo $ECHO_N "(cached) $ECHO_C" >&6
29260 else
29261
29262         ol_DB_LIB=-ldb
29263         ol_LIBS=$LIBS
29264         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29265
29266         cat >conftest.$ac_ext <<_ACEOF
29267 /* confdefs.h.  */
29268 _ACEOF
29269 cat confdefs.h >>conftest.$ac_ext
29270 cat >>conftest.$ac_ext <<_ACEOF
29271 /* end confdefs.h.  */
29272
29273 #ifdef HAVE_DB_185_H
29274 # include <db_185.h>
29275 #else
29276 # include <db.h>
29277 #endif
29278
29279 #ifndef DB_VERSION_MAJOR
29280 # define DB_VERSION_MAJOR 1
29281 #endif
29282
29283 #ifndef NULL
29284 #define NULL ((void*)0)
29285 #endif
29286
29287 int
29288 main ()
29289 {
29290
29291 #if DB_VERSION_MAJOR > 2
29292         db_env_create( NULL, 0 );
29293 #elif DB_VERSION_MAJOR > 1
29294         db_appexit( NULL );
29295 #else
29296         (void) dbopen( NULL, 0, 0, 0, NULL);
29297 #endif
29298
29299   ;
29300   return 0;
29301 }
29302 _ACEOF
29303 rm -f conftest.$ac_objext conftest$ac_exeext
29304 if { (ac_try="$ac_link"
29305 case "(($ac_try" in
29306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29307   *) ac_try_echo=$ac_try;;
29308 esac
29309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29310   (eval "$ac_link") 2>conftest.er1
29311   ac_status=$?
29312   grep -v '^ *+' conftest.er1 >conftest.err
29313   rm -f conftest.er1
29314   cat conftest.err >&5
29315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316   (exit $ac_status); } && {
29317          test -z "$ac_c_werror_flag" ||
29318          test ! -s conftest.err
29319        } && test -s conftest$ac_exeext &&
29320        $as_test_x conftest$ac_exeext; then
29321   ol_cv_db_db=yes
29322 else
29323   echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.$ac_ext >&5
29325
29326         ol_cv_db_db=no
29327 fi
29328
29329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29330       conftest$ac_exeext conftest.$ac_ext
29331
29332         LIBS="$ol_LIBS"
29333
29334 fi
29335 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29336 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29337
29338         if test $ol_cv_db_db = yes ; then
29339                 ol_cv_lib_db=-ldb
29340         fi
29341 fi
29342
29343 if test $ol_cv_lib_db = no ; then
29344         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29345 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29346 if test "${ol_cv_db_none+set}" = set; then
29347   echo $ECHO_N "(cached) $ECHO_C" >&6
29348 else
29349
29350         ol_DB_LIB=
29351         ol_LIBS=$LIBS
29352         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29353
29354         cat >conftest.$ac_ext <<_ACEOF
29355 /* confdefs.h.  */
29356 _ACEOF
29357 cat confdefs.h >>conftest.$ac_ext
29358 cat >>conftest.$ac_ext <<_ACEOF
29359 /* end confdefs.h.  */
29360
29361 #ifdef HAVE_DB_185_H
29362 # include <db_185.h>
29363 #else
29364 # include <db.h>
29365 #endif
29366
29367 #ifndef DB_VERSION_MAJOR
29368 # define DB_VERSION_MAJOR 1
29369 #endif
29370
29371 #ifndef NULL
29372 #define NULL ((void*)0)
29373 #endif
29374
29375 int
29376 main ()
29377 {
29378
29379 #if DB_VERSION_MAJOR > 2
29380         db_env_create( NULL, 0 );
29381 #elif DB_VERSION_MAJOR > 1
29382         db_appexit( NULL );
29383 #else
29384         (void) dbopen( NULL, 0, 0, 0, NULL);
29385 #endif
29386
29387   ;
29388   return 0;
29389 }
29390 _ACEOF
29391 rm -f conftest.$ac_objext conftest$ac_exeext
29392 if { (ac_try="$ac_link"
29393 case "(($ac_try" in
29394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29395   *) ac_try_echo=$ac_try;;
29396 esac
29397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29398   (eval "$ac_link") 2>conftest.er1
29399   ac_status=$?
29400   grep -v '^ *+' conftest.er1 >conftest.err
29401   rm -f conftest.er1
29402   cat conftest.err >&5
29403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404   (exit $ac_status); } && {
29405          test -z "$ac_c_werror_flag" ||
29406          test ! -s conftest.err
29407        } && test -s conftest$ac_exeext &&
29408        $as_test_x conftest$ac_exeext; then
29409   ol_cv_db_none=yes
29410 else
29411   echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29413
29414         ol_cv_db_none=no
29415 fi
29416
29417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29418       conftest$ac_exeext conftest.$ac_ext
29419
29420         LIBS="$ol_LIBS"
29421
29422 fi
29423 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29424 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29425
29426         if test $ol_cv_db_none = yes ; then
29427                 ol_cv_lib_db=yes
29428         fi
29429 fi
29430
29431
29432         if test "$ol_cv_lib_db" != no ; then
29433                 ol_cv_berkeley_db=yes
29434                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29435 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29436 if test "${ol_cv_berkeley_db_version+set}" = set; then
29437   echo $ECHO_N "(cached) $ECHO_C" >&6
29438 else
29439
29440         ol_LIBS="$LIBS"
29441         LIBS="$LTHREAD_LIBS $LIBS"
29442         if test $ol_cv_lib_db != yes ; then
29443                 LIBS="$ol_cv_lib_db $LIBS"
29444         fi
29445
29446         if test "$cross_compiling" = yes; then
29447   ol_cv_berkeley_db_version=cross
29448 else
29449   cat >conftest.$ac_ext <<_ACEOF
29450 /* confdefs.h.  */
29451 _ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h.  */
29455
29456 #ifdef HAVE_DB_185_H
29457         choke me;
29458 #else
29459 #include <db.h>
29460 #endif
29461 #ifndef DB_VERSION_MAJOR
29462 # define DB_VERSION_MAJOR 1
29463 #endif
29464 #ifndef NULL
29465 #define NULL ((void *)0)
29466 #endif
29467 main()
29468 {
29469 #if DB_VERSION_MAJOR > 1
29470         char *version;
29471         int major, minor, patch;
29472
29473         version = db_version( &major, &minor, &patch );
29474
29475         if( major != DB_VERSION_MAJOR ||
29476                 minor != DB_VERSION_MINOR ||
29477                 patch != DB_VERSION_PATCH )
29478         {
29479                 printf("Berkeley DB version mismatch\n"
29480                         "\theader: %s\n\tlibrary: %s\n",
29481                         DB_VERSION_STRING, version);
29482                 return 1;
29483         }
29484 #endif
29485
29486         return 0;
29487 }
29488 _ACEOF
29489 rm -f conftest$ac_exeext
29490 if { (ac_try="$ac_link"
29491 case "(($ac_try" in
29492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493   *) ac_try_echo=$ac_try;;
29494 esac
29495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496   (eval "$ac_link") 2>&5
29497   ac_status=$?
29498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29500   { (case "(($ac_try" in
29501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29502   *) ac_try_echo=$ac_try;;
29503 esac
29504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29505   (eval "$ac_try") 2>&5
29506   ac_status=$?
29507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508   (exit $ac_status); }; }; then
29509   ol_cv_berkeley_db_version=yes
29510 else
29511   echo "$as_me: program exited with status $ac_status" >&5
29512 echo "$as_me: failed program was:" >&5
29513 sed 's/^/| /' conftest.$ac_ext >&5
29514
29515 ( exit $ac_status )
29516 ol_cv_berkeley_db_version=no
29517 fi
29518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29519 fi
29520
29521
29522
29523         LIBS="$ol_LIBS"
29524
29525 fi
29526 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29527 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29528
29529         if test $ol_cv_berkeley_db_version = no ; then
29530                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29531 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29532    { (exit 1); exit 1; }; }
29533         fi
29534
29535                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29536 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29537 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29538   echo $ECHO_N "(cached) $ECHO_C" >&6
29539 else
29540
29541         ol_LIBS="$LIBS"
29542         LIBS="$LTHREAD_LIBS $LIBS"
29543         if test $ol_cv_lib_db != yes ; then
29544                 LIBS="$ol_cv_lib_db $LIBS"
29545         fi
29546
29547         if test "$cross_compiling" = yes; then
29548   ol_cv_berkeley_db_thread=cross
29549 else
29550   cat >conftest.$ac_ext <<_ACEOF
29551 /* confdefs.h.  */
29552 _ACEOF
29553 cat confdefs.h >>conftest.$ac_ext
29554 cat >>conftest.$ac_ext <<_ACEOF
29555 /* end confdefs.h.  */
29556
29557 #ifdef HAVE_DB_185_H
29558         choke me;
29559 #else
29560 #include <db.h>
29561 #endif
29562 #ifndef NULL
29563 #define NULL ((void *)0)
29564 #endif
29565 main()
29566 {
29567         int rc;
29568         u_int32_t flags = DB_CREATE |
29569 #ifdef DB_PRIVATE
29570                 DB_PRIVATE |
29571 #endif
29572                 DB_THREAD;
29573
29574 #if DB_VERSION_MAJOR > 2
29575         DB_ENV *env = NULL;
29576
29577         rc = db_env_create( &env, 0 );
29578
29579         flags |= DB_INIT_MPOOL;
29580 #ifdef DB_MPOOL_PRIVATE
29581         flags |= DB_MPOOL_PRIVATE;
29582 #endif
29583
29584         if( rc ) {
29585                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29586                 return rc;
29587         }
29588
29589 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29590         rc = (env->open)( env, NULL, flags, 0 );
29591 #else
29592         rc = (env->open)( env, NULL, NULL, flags, 0 );
29593 #endif
29594
29595         if ( rc == 0 ) {
29596                 rc = env->close( env, 0 );
29597         }
29598
29599         if( rc ) {
29600                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29601                 return rc;
29602         }
29603
29604 #else
29605         DB_ENV env;
29606         memset( &env, '\0', sizeof(env) );
29607
29608         rc = db_appinit( NULL, NULL, &env, flags );
29609
29610         if( rc == 0 ) {
29611                 db_appexit( &env );
29612         }
29613
29614         unlink("__db_mpool.share");
29615         unlink("__db_lock.share");
29616 #endif
29617
29618         return rc;
29619 }
29620 _ACEOF
29621 rm -f conftest$ac_exeext
29622 if { (ac_try="$ac_link"
29623 case "(($ac_try" in
29624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625   *) ac_try_echo=$ac_try;;
29626 esac
29627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29628   (eval "$ac_link") 2>&5
29629   ac_status=$?
29630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29632   { (case "(($ac_try" in
29633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634   *) ac_try_echo=$ac_try;;
29635 esac
29636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29637   (eval "$ac_try") 2>&5
29638   ac_status=$?
29639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640   (exit $ac_status); }; }; then
29641   ol_cv_berkeley_db_thread=yes
29642 else
29643   echo "$as_me: program exited with status $ac_status" >&5
29644 echo "$as_me: failed program was:" >&5
29645 sed 's/^/| /' conftest.$ac_ext >&5
29646
29647 ( exit $ac_status )
29648 ol_cv_berkeley_db_thread=no
29649 fi
29650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29651 fi
29652
29653
29654
29655         LIBS="$ol_LIBS"
29656
29657 fi
29658 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29659 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29660
29661         if test $ol_cv_berkeley_db_thread != no ; then
29662
29663 cat >>confdefs.h <<\_ACEOF
29664 #define HAVE_BERKELEY_DB_THREAD 1
29665 _ACEOF
29666
29667         fi
29668
29669         fi
29670 fi
29671
29672
29673         if test $ol_cv_berkeley_db = no ; then
29674                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29675 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29676    { (exit 1); exit 1; }; }
29677         fi
29678
29679
29680 cat >>confdefs.h <<\_ACEOF
29681 #define HAVE_BERKELEY_DB 1
29682 _ACEOF
29683
29684
29685                         if test $ol_cv_lib_db != yes ; then
29686                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29687         fi
29688
29689         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29690
29691         ol_link_bdb=yes
29692 fi
29693
29694
29695 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29696         BUILD_LIBS_DYNAMIC=shared
29697
29698 cat >>confdefs.h <<\_ACEOF
29699 #define LDAP_LIBS_DYNAMIC 1
29700 _ACEOF
29701
29702         LTSTATIC=""
29703 else
29704         BUILD_LIBS_DYNAMIC=static
29705         LTSTATIC="-static"
29706 fi
29707
29708 if test $ol_enable_wrappers != no ; then
29709
29710 for ac_header in tcpd.h
29711 do
29712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29714   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29717   echo $ECHO_N "(cached) $ECHO_C" >&6
29718 fi
29719 ac_res=`eval echo '${'$as_ac_Header'}'`
29720                { echo "$as_me:$LINENO: result: $ac_res" >&5
29721 echo "${ECHO_T}$ac_res" >&6; }
29722 else
29723   # Is the header compilable?
29724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29726 cat >conftest.$ac_ext <<_ACEOF
29727 /* confdefs.h.  */
29728 _ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h.  */
29732 $ac_includes_default
29733 #include <$ac_header>
29734 _ACEOF
29735 rm -f conftest.$ac_objext
29736 if { (ac_try="$ac_compile"
29737 case "(($ac_try" in
29738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29739   *) ac_try_echo=$ac_try;;
29740 esac
29741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29742   (eval "$ac_compile") 2>conftest.er1
29743   ac_status=$?
29744   grep -v '^ *+' conftest.er1 >conftest.err
29745   rm -f conftest.er1
29746   cat conftest.err >&5
29747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748   (exit $ac_status); } && {
29749          test -z "$ac_c_werror_flag" ||
29750          test ! -s conftest.err
29751        } && test -s conftest.$ac_objext; then
29752   ac_header_compiler=yes
29753 else
29754   echo "$as_me: failed program was:" >&5
29755 sed 's/^/| /' conftest.$ac_ext >&5
29756
29757         ac_header_compiler=no
29758 fi
29759
29760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29762 echo "${ECHO_T}$ac_header_compiler" >&6; }
29763
29764 # Is the header present?
29765 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29767 cat >conftest.$ac_ext <<_ACEOF
29768 /* confdefs.h.  */
29769 _ACEOF
29770 cat confdefs.h >>conftest.$ac_ext
29771 cat >>conftest.$ac_ext <<_ACEOF
29772 /* end confdefs.h.  */
29773 #include <$ac_header>
29774 _ACEOF
29775 if { (ac_try="$ac_cpp conftest.$ac_ext"
29776 case "(($ac_try" in
29777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29778   *) ac_try_echo=$ac_try;;
29779 esac
29780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29782   ac_status=$?
29783   grep -v '^ *+' conftest.er1 >conftest.err
29784   rm -f conftest.er1
29785   cat conftest.err >&5
29786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787   (exit $ac_status); } >/dev/null && {
29788          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29789          test ! -s conftest.err
29790        }; then
29791   ac_header_preproc=yes
29792 else
29793   echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29795
29796   ac_header_preproc=no
29797 fi
29798
29799 rm -f conftest.err conftest.$ac_ext
29800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29801 echo "${ECHO_T}$ac_header_preproc" >&6; }
29802
29803 # So?  What about this header?
29804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29805   yes:no: )
29806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29810     ac_header_preproc=yes
29811     ;;
29812   no:yes:* )
29813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29815     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29816 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29817     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29819     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29820 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29823     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29825     ( cat <<\_ASBOX
29826 ## --------------------------------------------- ##
29827 ## Report this to <http://www.openldap.org/its/> ##
29828 ## --------------------------------------------- ##
29829 _ASBOX
29830      ) | sed "s/^/$as_me: WARNING:     /" >&2
29831     ;;
29832 esac
29833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29836   echo $ECHO_N "(cached) $ECHO_C" >&6
29837 else
29838   eval "$as_ac_Header=\$ac_header_preproc"
29839 fi
29840 ac_res=`eval echo '${'$as_ac_Header'}'`
29841                { echo "$as_me:$LINENO: result: $ac_res" >&5
29842 echo "${ECHO_T}$ac_res" >&6; }
29843
29844 fi
29845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29846   cat >>confdefs.h <<_ACEOF
29847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29848 _ACEOF
29849
29850                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29851 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29852                 save_LIBS="$LIBS"
29853                 LIBS="$LIBS -lwrap"
29854                 cat >conftest.$ac_ext <<_ACEOF
29855 /* confdefs.h.  */
29856 _ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h.  */
29860
29861 #include <tcpd.h>
29862 int allow_severity = 0;
29863 int deny_severity  = 0;
29864
29865 struct request_info *req;
29866
29867 int
29868 main ()
29869 {
29870
29871 hosts_access(req)
29872
29873   ;
29874   return 0;
29875 }
29876 _ACEOF
29877 rm -f conftest.$ac_objext conftest$ac_exeext
29878 if { (ac_try="$ac_link"
29879 case "(($ac_try" in
29880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29881   *) ac_try_echo=$ac_try;;
29882 esac
29883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29884   (eval "$ac_link") 2>conftest.er1
29885   ac_status=$?
29886   grep -v '^ *+' conftest.er1 >conftest.err
29887   rm -f conftest.er1
29888   cat conftest.err >&5
29889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890   (exit $ac_status); } && {
29891          test -z "$ac_c_werror_flag" ||
29892          test ! -s conftest.err
29893        } && test -s conftest$ac_exeext &&
29894        $as_test_x conftest$ac_exeext; then
29895   { echo "$as_me:$LINENO: result: -lwrap" >&5
29896 echo "${ECHO_T}-lwrap" >&6; }
29897                 have_wrappers=yes
29898                 LIBS="$save_LIBS"
29899 else
29900   echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29902
29903
29904                                 LIBS="$LIBS -lnsl"
29905                 cat >conftest.$ac_ext <<_ACEOF
29906 /* confdefs.h.  */
29907 _ACEOF
29908 cat confdefs.h >>conftest.$ac_ext
29909 cat >>conftest.$ac_ext <<_ACEOF
29910 /* end confdefs.h.  */
29911
29912 #include <tcpd.h>
29913 int allow_severity = 0;
29914 int deny_severity  = 0;
29915
29916 struct request_info *req;
29917
29918 int
29919 main ()
29920 {
29921
29922 hosts_access(req)
29923
29924   ;
29925   return 0;
29926 }
29927 _ACEOF
29928 rm -f conftest.$ac_objext conftest$ac_exeext
29929 if { (ac_try="$ac_link"
29930 case "(($ac_try" in
29931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29932   *) ac_try_echo=$ac_try;;
29933 esac
29934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29935   (eval "$ac_link") 2>conftest.er1
29936   ac_status=$?
29937   grep -v '^ *+' conftest.er1 >conftest.err
29938   rm -f conftest.er1
29939   cat conftest.err >&5
29940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941   (exit $ac_status); } && {
29942          test -z "$ac_c_werror_flag" ||
29943          test ! -s conftest.err
29944        } && test -s conftest$ac_exeext &&
29945        $as_test_x conftest$ac_exeext; then
29946   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29947 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29948                 have_wrappers=yes
29949                 LIBS="$save_LIBS -lnsl"
29950 else
29951   echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.$ac_ext >&5
29953
29954
29955                 { echo "$as_me:$LINENO: result: no" >&5
29956 echo "${ECHO_T}no" >&6; }
29957                 have_wrappers=no
29958                 LIBS=$save_LIBS
29959 fi
29960
29961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29962       conftest$ac_exeext conftest.$ac_ext
29963 fi
29964
29965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29966       conftest$ac_exeext conftest.$ac_ext
29967 else
29968   have_wrappers=no
29969 fi
29970
29971 done
29972
29973
29974         if test $have_wrappers = yes ; then
29975
29976 cat >>confdefs.h <<\_ACEOF
29977 #define HAVE_TCPD 1
29978 _ACEOF
29979
29980                 WRAP_LIBS="-lwrap"
29981         elif test $ol_enable_wrappers = yes ; then
29982                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29983 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29984    { (exit 1); exit 1; }; }
29985         else
29986                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29987 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29988                 WRAP_LIBS=""
29989         fi
29990 fi
29991
29992 if test $ol_enable_syslog != no ; then
29993         { echo "$as_me:$LINENO: checking for openlog" >&5
29994 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29995 if test "${ac_cv_func_openlog+set}" = set; then
29996   echo $ECHO_N "(cached) $ECHO_C" >&6
29997 else
29998   cat >conftest.$ac_ext <<_ACEOF
29999 /* confdefs.h.  */
30000 _ACEOF
30001 cat confdefs.h >>conftest.$ac_ext
30002 cat >>conftest.$ac_ext <<_ACEOF
30003 /* end confdefs.h.  */
30004 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
30005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30006 #define openlog innocuous_openlog
30007
30008 /* System header to define __stub macros and hopefully few prototypes,
30009     which can conflict with char openlog (); below.
30010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30011     <limits.h> exists even on freestanding compilers.  */
30012
30013 #ifdef __STDC__
30014 # include <limits.h>
30015 #else
30016 # include <assert.h>
30017 #endif
30018
30019 #undef openlog
30020
30021 /* Override any GCC internal prototype to avoid an error.
30022    Use char because int might match the return type of a GCC
30023    builtin and then its argument prototype would still apply.  */
30024 #ifdef __cplusplus
30025 extern "C"
30026 #endif
30027 char openlog ();
30028 /* The GNU C library defines this for functions which it implements
30029     to always fail with ENOSYS.  Some functions are actually named
30030     something starting with __ and the normal name is an alias.  */
30031 #if defined __stub_openlog || defined __stub___openlog
30032 choke me
30033 #endif
30034
30035 int
30036 main ()
30037 {
30038 return openlog ();
30039   ;
30040   return 0;
30041 }
30042 _ACEOF
30043 rm -f conftest.$ac_objext conftest$ac_exeext
30044 if { (ac_try="$ac_link"
30045 case "(($ac_try" in
30046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30047   *) ac_try_echo=$ac_try;;
30048 esac
30049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30050   (eval "$ac_link") 2>conftest.er1
30051   ac_status=$?
30052   grep -v '^ *+' conftest.er1 >conftest.err
30053   rm -f conftest.er1
30054   cat conftest.err >&5
30055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056   (exit $ac_status); } && {
30057          test -z "$ac_c_werror_flag" ||
30058          test ! -s conftest.err
30059        } && test -s conftest$ac_exeext &&
30060        $as_test_x conftest$ac_exeext; then
30061   ac_cv_func_openlog=yes
30062 else
30063   echo "$as_me: failed program was:" >&5
30064 sed 's/^/| /' conftest.$ac_ext >&5
30065
30066         ac_cv_func_openlog=no
30067 fi
30068
30069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30070       conftest$ac_exeext conftest.$ac_ext
30071 fi
30072 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
30073 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
30074
30075         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
30076                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
30077 echo "$as_me: error: could not find syslog" >&2;}
30078    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
30079         fi
30080         ol_enable_syslog=$ac_cv_func_openlog
30081 fi
30082
30083 ol_link_sql=no
30084 if test $ol_enable_sql != no ; then
30085
30086
30087 for ac_header in sql.h sqlext.h
30088 do
30089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30091   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30094   echo $ECHO_N "(cached) $ECHO_C" >&6
30095 fi
30096 ac_res=`eval echo '${'$as_ac_Header'}'`
30097                { echo "$as_me:$LINENO: result: $ac_res" >&5
30098 echo "${ECHO_T}$ac_res" >&6; }
30099 else
30100   # Is the header compilable?
30101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30103 cat >conftest.$ac_ext <<_ACEOF
30104 /* confdefs.h.  */
30105 _ACEOF
30106 cat confdefs.h >>conftest.$ac_ext
30107 cat >>conftest.$ac_ext <<_ACEOF
30108 /* end confdefs.h.  */
30109 $ac_includes_default
30110 #include <$ac_header>
30111 _ACEOF
30112 rm -f conftest.$ac_objext
30113 if { (ac_try="$ac_compile"
30114 case "(($ac_try" in
30115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116   *) ac_try_echo=$ac_try;;
30117 esac
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119   (eval "$ac_compile") 2>conftest.er1
30120   ac_status=$?
30121   grep -v '^ *+' conftest.er1 >conftest.err
30122   rm -f conftest.er1
30123   cat conftest.err >&5
30124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125   (exit $ac_status); } && {
30126          test -z "$ac_c_werror_flag" ||
30127          test ! -s conftest.err
30128        } && test -s conftest.$ac_objext; then
30129   ac_header_compiler=yes
30130 else
30131   echo "$as_me: failed program was:" >&5
30132 sed 's/^/| /' conftest.$ac_ext >&5
30133
30134         ac_header_compiler=no
30135 fi
30136
30137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30139 echo "${ECHO_T}$ac_header_compiler" >&6; }
30140
30141 # Is the header present?
30142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30144 cat >conftest.$ac_ext <<_ACEOF
30145 /* confdefs.h.  */
30146 _ACEOF
30147 cat confdefs.h >>conftest.$ac_ext
30148 cat >>conftest.$ac_ext <<_ACEOF
30149 /* end confdefs.h.  */
30150 #include <$ac_header>
30151 _ACEOF
30152 if { (ac_try="$ac_cpp conftest.$ac_ext"
30153 case "(($ac_try" in
30154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30155   *) ac_try_echo=$ac_try;;
30156 esac
30157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30158   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30159   ac_status=$?
30160   grep -v '^ *+' conftest.er1 >conftest.err
30161   rm -f conftest.er1
30162   cat conftest.err >&5
30163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164   (exit $ac_status); } >/dev/null && {
30165          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30166          test ! -s conftest.err
30167        }; then
30168   ac_header_preproc=yes
30169 else
30170   echo "$as_me: failed program was:" >&5
30171 sed 's/^/| /' conftest.$ac_ext >&5
30172
30173   ac_header_preproc=no
30174 fi
30175
30176 rm -f conftest.err conftest.$ac_ext
30177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30178 echo "${ECHO_T}$ac_header_preproc" >&6; }
30179
30180 # So?  What about this header?
30181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30182   yes:no: )
30183     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30187     ac_header_preproc=yes
30188     ;;
30189   no:yes:* )
30190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30192     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30193 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30194     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30196     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30197 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30200     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30202     ( cat <<\_ASBOX
30203 ## --------------------------------------------- ##
30204 ## Report this to <http://www.openldap.org/its/> ##
30205 ## --------------------------------------------- ##
30206 _ASBOX
30207      ) | sed "s/^/$as_me: WARNING:     /" >&2
30208     ;;
30209 esac
30210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30213   echo $ECHO_N "(cached) $ECHO_C" >&6
30214 else
30215   eval "$as_ac_Header=\$ac_header_preproc"
30216 fi
30217 ac_res=`eval echo '${'$as_ac_Header'}'`
30218                { echo "$as_me:$LINENO: result: $ac_res" >&5
30219 echo "${ECHO_T}$ac_res" >&6; }
30220
30221 fi
30222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30223   cat >>confdefs.h <<_ACEOF
30224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30225 _ACEOF
30226
30227 else
30228
30229                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30230 echo "$as_me: error: could not locate SQL headers" >&2;}
30231    { (exit 1); exit 1; }; }
30232
30233 fi
30234
30235 done
30236
30237
30238         sql_LIBS="$LIBS"
30239         LIBS="$LTHREAD_LIBS"
30240
30241         if test $ol_with_odbc = auto ; then
30242                 ol_with_odbc="iodbc unixodbc odbc32"
30243         fi
30244
30245         for odbc in $ol_with_odbc ; do
30246                 if test $ol_link_sql = no ; then
30247                         case $odbc in
30248                         iodbc)
30249                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30250 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
30251 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30252   echo $ECHO_N "(cached) $ECHO_C" >&6
30253 else
30254   ac_check_lib_save_LIBS=$LIBS
30255 LIBS="-liodbc  $LIBS"
30256 cat >conftest.$ac_ext <<_ACEOF
30257 /* confdefs.h.  */
30258 _ACEOF
30259 cat confdefs.h >>conftest.$ac_ext
30260 cat >>conftest.$ac_ext <<_ACEOF
30261 /* end confdefs.h.  */
30262
30263 /* Override any GCC internal prototype to avoid an error.
30264    Use char because int might match the return type of a GCC
30265    builtin and then its argument prototype would still apply.  */
30266 #ifdef __cplusplus
30267 extern "C"
30268 #endif
30269 char SQLDriverConnect ();
30270 int
30271 main ()
30272 {
30273 return SQLDriverConnect ();
30274   ;
30275   return 0;
30276 }
30277 _ACEOF
30278 rm -f conftest.$ac_objext conftest$ac_exeext
30279 if { (ac_try="$ac_link"
30280 case "(($ac_try" in
30281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30282   *) ac_try_echo=$ac_try;;
30283 esac
30284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30285   (eval "$ac_link") 2>conftest.er1
30286   ac_status=$?
30287   grep -v '^ *+' conftest.er1 >conftest.err
30288   rm -f conftest.er1
30289   cat conftest.err >&5
30290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291   (exit $ac_status); } && {
30292          test -z "$ac_c_werror_flag" ||
30293          test ! -s conftest.err
30294        } && test -s conftest$ac_exeext &&
30295        $as_test_x conftest$ac_exeext; then
30296   ac_cv_lib_iodbc_SQLDriverConnect=yes
30297 else
30298   echo "$as_me: failed program was:" >&5
30299 sed 's/^/| /' conftest.$ac_ext >&5
30300
30301         ac_cv_lib_iodbc_SQLDriverConnect=no
30302 fi
30303
30304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30305       conftest$ac_exeext conftest.$ac_ext
30306 LIBS=$ac_check_lib_save_LIBS
30307 fi
30308 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30309 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
30310 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30311   have_iodbc=yes
30312 else
30313   have_iodbc=no
30314 fi
30315
30316                                 if test $have_iodbc = yes ; then
30317                                         ol_link_sql="-liodbc"
30318                                 fi
30319                                 ;;
30320
30321                         unixodbc)
30322                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30323 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
30324 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30325   echo $ECHO_N "(cached) $ECHO_C" >&6
30326 else
30327   ac_check_lib_save_LIBS=$LIBS
30328 LIBS="-lodbc  $LIBS"
30329 cat >conftest.$ac_ext <<_ACEOF
30330 /* confdefs.h.  */
30331 _ACEOF
30332 cat confdefs.h >>conftest.$ac_ext
30333 cat >>conftest.$ac_ext <<_ACEOF
30334 /* end confdefs.h.  */
30335
30336 /* Override any GCC internal prototype to avoid an error.
30337    Use char because int might match the return type of a GCC
30338    builtin and then its argument prototype would still apply.  */
30339 #ifdef __cplusplus
30340 extern "C"
30341 #endif
30342 char SQLDriverConnect ();
30343 int
30344 main ()
30345 {
30346 return SQLDriverConnect ();
30347   ;
30348   return 0;
30349 }
30350 _ACEOF
30351 rm -f conftest.$ac_objext conftest$ac_exeext
30352 if { (ac_try="$ac_link"
30353 case "(($ac_try" in
30354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355   *) ac_try_echo=$ac_try;;
30356 esac
30357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358   (eval "$ac_link") 2>conftest.er1
30359   ac_status=$?
30360   grep -v '^ *+' conftest.er1 >conftest.err
30361   rm -f conftest.er1
30362   cat conftest.err >&5
30363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364   (exit $ac_status); } && {
30365          test -z "$ac_c_werror_flag" ||
30366          test ! -s conftest.err
30367        } && test -s conftest$ac_exeext &&
30368        $as_test_x conftest$ac_exeext; then
30369   ac_cv_lib_odbc_SQLDriverConnect=yes
30370 else
30371   echo "$as_me: failed program was:" >&5
30372 sed 's/^/| /' conftest.$ac_ext >&5
30373
30374         ac_cv_lib_odbc_SQLDriverConnect=no
30375 fi
30376
30377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30378       conftest$ac_exeext conftest.$ac_ext
30379 LIBS=$ac_check_lib_save_LIBS
30380 fi
30381 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30382 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30383 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30384   have_odbc=yes
30385 else
30386   have_odbc=no
30387 fi
30388
30389                                 if test $have_odbc = yes ; then
30390                                         ol_link_sql="-lodbc"
30391                                 fi
30392                                 ;;
30393
30394                         odbc32)
30395                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30396 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30397 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30398   echo $ECHO_N "(cached) $ECHO_C" >&6
30399 else
30400   ac_check_lib_save_LIBS=$LIBS
30401 LIBS="-lodbc32  $LIBS"
30402 cat >conftest.$ac_ext <<_ACEOF
30403 /* confdefs.h.  */
30404 _ACEOF
30405 cat confdefs.h >>conftest.$ac_ext
30406 cat >>conftest.$ac_ext <<_ACEOF
30407 /* end confdefs.h.  */
30408
30409 /* Override any GCC internal prototype to avoid an error.
30410    Use char because int might match the return type of a GCC
30411    builtin and then its argument prototype would still apply.  */
30412 #ifdef __cplusplus
30413 extern "C"
30414 #endif
30415 char SQLDriverConnect ();
30416 int
30417 main ()
30418 {
30419 return SQLDriverConnect ();
30420   ;
30421   return 0;
30422 }
30423 _ACEOF
30424 rm -f conftest.$ac_objext conftest$ac_exeext
30425 if { (ac_try="$ac_link"
30426 case "(($ac_try" in
30427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30428   *) ac_try_echo=$ac_try;;
30429 esac
30430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30431   (eval "$ac_link") 2>conftest.er1
30432   ac_status=$?
30433   grep -v '^ *+' conftest.er1 >conftest.err
30434   rm -f conftest.er1
30435   cat conftest.err >&5
30436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437   (exit $ac_status); } && {
30438          test -z "$ac_c_werror_flag" ||
30439          test ! -s conftest.err
30440        } && test -s conftest$ac_exeext &&
30441        $as_test_x conftest$ac_exeext; then
30442   ac_cv_lib_odbc32_SQLDriverConnect=yes
30443 else
30444   echo "$as_me: failed program was:" >&5
30445 sed 's/^/| /' conftest.$ac_ext >&5
30446
30447         ac_cv_lib_odbc32_SQLDriverConnect=no
30448 fi
30449
30450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30451       conftest$ac_exeext conftest.$ac_ext
30452 LIBS=$ac_check_lib_save_LIBS
30453 fi
30454 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30455 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30456 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30457   have_odbc32=yes
30458 else
30459   have_odbc32=no
30460 fi
30461
30462
30463                                                                 if test $have_odbc32 = no ; then
30464                                         { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
30465 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32 with windows.h... $ECHO_C" >&6; }
30466                                         save_LIBS="$LIBS"
30467                                         LIBS="$LIBS -lodbc32"
30468                                         cat >conftest.$ac_ext <<_ACEOF
30469 /* confdefs.h.  */
30470 _ACEOF
30471 cat confdefs.h >>conftest.$ac_ext
30472 cat >>conftest.$ac_ext <<_ACEOF
30473 /* end confdefs.h.  */
30474 #include <windows.h>
30475                                         #include <sqlext.h>
30476
30477 int
30478 main ()
30479 {
30480
30481                                                 SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
30482
30483   ;
30484   return 0;
30485 }
30486 _ACEOF
30487 rm -f conftest.$ac_objext conftest$ac_exeext
30488 if { (ac_try="$ac_link"
30489 case "(($ac_try" in
30490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491   *) ac_try_echo=$ac_try;;
30492 esac
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494   (eval "$ac_link") 2>conftest.er1
30495   ac_status=$?
30496   grep -v '^ *+' conftest.er1 >conftest.err
30497   rm -f conftest.er1
30498   cat conftest.err >&5
30499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500   (exit $ac_status); } && {
30501          test -z "$ac_c_werror_flag" ||
30502          test ! -s conftest.err
30503        } && test -s conftest$ac_exeext &&
30504        $as_test_x conftest$ac_exeext; then
30505   have_odbc32=yes
30506 else
30507   echo "$as_me: failed program was:" >&5
30508 sed 's/^/| /' conftest.$ac_ext >&5
30509
30510         have_odbc32=no
30511 fi
30512
30513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30514       conftest$ac_exeext conftest.$ac_ext
30515                                         LIBS="$save_LIBS"
30516                                         { echo "$as_me:$LINENO: result: $have_odbc32" >&5
30517 echo "${ECHO_T}$have_odbc32" >&6; }
30518                                 fi
30519
30520                                 if test $have_odbc32 = yes ; then
30521                                         ol_link_sql="-lodbc32"
30522                                 fi
30523                                 ;;
30524
30525                         *)
30526                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30527 echo "$as_me: error: unknown ODBC library" >&2;}
30528    { (exit 1); exit 1; }; }
30529                                 ;;
30530                         esac
30531                 fi
30532         done
30533
30534         LIBS="$sql_LIBS"
30535
30536         if test $ol_link_sql != no ; then
30537                 SLAPD_SQL_LIBS="$ol_link_sql"
30538
30539         elif test $ol_enable_sql != auto ; then
30540                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30541 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30542    { (exit 1); exit 1; }; }
30543         fi
30544 fi
30545
30546 ol_link_ndb=no
30547 if test $ol_enable_ndb != no ; then
30548         # Extract the first word of "mysql_config", so it can be a program name with args.
30549 set dummy mysql_config; ac_word=$2
30550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30552 if test "${ac_cv_prog_MYSQL+set}" = set; then
30553   echo $ECHO_N "(cached) $ECHO_C" >&6
30554 else
30555   if test -n "$MYSQL"; then
30556   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30557 else
30558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30559 for as_dir in $PATH
30560 do
30561   IFS=$as_save_IFS
30562   test -z "$as_dir" && as_dir=.
30563   for ac_exec_ext in '' $ac_executable_extensions; do
30564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30565     ac_cv_prog_MYSQL="yes"
30566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30567     break 2
30568   fi
30569 done
30570 done
30571 IFS=$as_save_IFS
30572
30573 fi
30574 fi
30575 MYSQL=$ac_cv_prog_MYSQL
30576 if test -n "$MYSQL"; then
30577   { echo "$as_me:$LINENO: result: $MYSQL" >&5
30578 echo "${ECHO_T}$MYSQL" >&6; }
30579 else
30580   { echo "$as_me:$LINENO: result: no" >&5
30581 echo "${ECHO_T}no" >&6; }
30582 fi
30583
30584
30585         if test "$MYSQL" != yes ; then
30586                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30587 echo "$as_me: error: could not locate mysql_config" >&2;}
30588    { (exit 1); exit 1; }; }
30589         fi
30590
30591         SQL_INC=`mysql_config --include`
30592         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30593
30594         save_CPPFLAGS="$CPPFLAGS"
30595         CPPFLAGS="$SLAPD_NDB_INCS"
30596         { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30597 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30598         cat >conftest.$ac_ext <<_ACEOF
30599 /* confdefs.h.  */
30600 _ACEOF
30601 cat confdefs.h >>conftest.$ac_ext
30602 cat >>conftest.$ac_ext <<_ACEOF
30603 /* end confdefs.h.  */
30604 #include <NdbApi.hpp>
30605 _ACEOF
30606 if { (ac_try="$ac_cpp conftest.$ac_ext"
30607 case "(($ac_try" in
30608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30609   *) ac_try_echo=$ac_try;;
30610 esac
30611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30613   ac_status=$?
30614   grep -v '^ *+' conftest.er1 >conftest.err
30615   rm -f conftest.er1
30616   cat conftest.err >&5
30617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618   (exit $ac_status); } >/dev/null && {
30619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30620          test ! -s conftest.err
30621        }; then
30622   { echo "$as_me:$LINENO: result: yes" >&5
30623 echo "${ECHO_T}yes" >&6; }
30624 else
30625   echo "$as_me: failed program was:" >&5
30626 sed 's/^/| /' conftest.$ac_ext >&5
30627
30628   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30629 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30630    { (exit 1); exit 1; }; }
30631
30632 fi
30633
30634 rm -f conftest.err conftest.$ac_ext
30635         CPPFLAGS="$save_CPPFLAGS"
30636
30637         SQL_LIB=`mysql_config --libs_r`
30638         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30639
30640         save_LDFLAGS="$LDFLAGS"
30641         save_LIBS="$LIBS"
30642         LDFLAGS="$SQL_LIB"
30643         { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30644 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30645 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30646   echo $ECHO_N "(cached) $ECHO_C" >&6
30647 else
30648   ac_check_lib_save_LIBS=$LIBS
30649 LIBS="-lndbclient -lstdc++ $LIBS"
30650 cat >conftest.$ac_ext <<_ACEOF
30651 /* confdefs.h.  */
30652 _ACEOF
30653 cat confdefs.h >>conftest.$ac_ext
30654 cat >>conftest.$ac_ext <<_ACEOF
30655 /* end confdefs.h.  */
30656
30657 /* Override any GCC internal prototype to avoid an error.
30658    Use char because int might match the return type of a GCC
30659    builtin and then its argument prototype would still apply.  */
30660 #ifdef __cplusplus
30661 extern "C"
30662 #endif
30663 char ndb_init ();
30664 int
30665 main ()
30666 {
30667 return ndb_init ();
30668   ;
30669   return 0;
30670 }
30671 _ACEOF
30672 rm -f conftest.$ac_objext conftest$ac_exeext
30673 if { (ac_try="$ac_link"
30674 case "(($ac_try" in
30675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30676   *) ac_try_echo=$ac_try;;
30677 esac
30678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30679   (eval "$ac_link") 2>conftest.er1
30680   ac_status=$?
30681   grep -v '^ *+' conftest.er1 >conftest.err
30682   rm -f conftest.er1
30683   cat conftest.err >&5
30684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685   (exit $ac_status); } && {
30686          test -z "$ac_c_werror_flag" ||
30687          test ! -s conftest.err
30688        } && test -s conftest$ac_exeext &&
30689        $as_test_x conftest$ac_exeext; then
30690   ac_cv_lib_ndbclient_ndb_init=yes
30691 else
30692   echo "$as_me: failed program was:" >&5
30693 sed 's/^/| /' conftest.$ac_ext >&5
30694
30695         ac_cv_lib_ndbclient_ndb_init=no
30696 fi
30697
30698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30699       conftest$ac_exeext conftest.$ac_ext
30700 LIBS=$ac_check_lib_save_LIBS
30701 fi
30702 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30703 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30704 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30705   : ok
30706 else
30707
30708                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30709 echo "$as_me: error: could not locate ndbclient library" >&2;}
30710    { (exit 1); exit 1; }; }
30711
30712 fi
30713
30714         LIBS="$save_LIBS"
30715         LDFLAGS="$save_LDFLAGS"
30716
30717         if test "$ol_enable_ndb" = yes ; then
30718                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30719         fi
30720 fi
30721
30722 ol_icu=no
30723
30724 for ac_header in unicode/utypes.h
30725 do
30726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30728   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30731   echo $ECHO_N "(cached) $ECHO_C" >&6
30732 fi
30733 ac_res=`eval echo '${'$as_ac_Header'}'`
30734                { echo "$as_me:$LINENO: result: $ac_res" >&5
30735 echo "${ECHO_T}$ac_res" >&6; }
30736 else
30737   # Is the header compilable?
30738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30740 cat >conftest.$ac_ext <<_ACEOF
30741 /* confdefs.h.  */
30742 _ACEOF
30743 cat confdefs.h >>conftest.$ac_ext
30744 cat >>conftest.$ac_ext <<_ACEOF
30745 /* end confdefs.h.  */
30746 $ac_includes_default
30747 #include <$ac_header>
30748 _ACEOF
30749 rm -f conftest.$ac_objext
30750 if { (ac_try="$ac_compile"
30751 case "(($ac_try" in
30752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30753   *) ac_try_echo=$ac_try;;
30754 esac
30755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30756   (eval "$ac_compile") 2>conftest.er1
30757   ac_status=$?
30758   grep -v '^ *+' conftest.er1 >conftest.err
30759   rm -f conftest.er1
30760   cat conftest.err >&5
30761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30762   (exit $ac_status); } && {
30763          test -z "$ac_c_werror_flag" ||
30764          test ! -s conftest.err
30765        } && test -s conftest.$ac_objext; then
30766   ac_header_compiler=yes
30767 else
30768   echo "$as_me: failed program was:" >&5
30769 sed 's/^/| /' conftest.$ac_ext >&5
30770
30771         ac_header_compiler=no
30772 fi
30773
30774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30776 echo "${ECHO_T}$ac_header_compiler" >&6; }
30777
30778 # Is the header present?
30779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30781 cat >conftest.$ac_ext <<_ACEOF
30782 /* confdefs.h.  */
30783 _ACEOF
30784 cat confdefs.h >>conftest.$ac_ext
30785 cat >>conftest.$ac_ext <<_ACEOF
30786 /* end confdefs.h.  */
30787 #include <$ac_header>
30788 _ACEOF
30789 if { (ac_try="$ac_cpp conftest.$ac_ext"
30790 case "(($ac_try" in
30791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30792   *) ac_try_echo=$ac_try;;
30793 esac
30794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30796   ac_status=$?
30797   grep -v '^ *+' conftest.er1 >conftest.err
30798   rm -f conftest.er1
30799   cat conftest.err >&5
30800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801   (exit $ac_status); } >/dev/null && {
30802          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30803          test ! -s conftest.err
30804        }; then
30805   ac_header_preproc=yes
30806 else
30807   echo "$as_me: failed program was:" >&5
30808 sed 's/^/| /' conftest.$ac_ext >&5
30809
30810   ac_header_preproc=no
30811 fi
30812
30813 rm -f conftest.err conftest.$ac_ext
30814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30815 echo "${ECHO_T}$ac_header_preproc" >&6; }
30816
30817 # So?  What about this header?
30818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30819   yes:no: )
30820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30824     ac_header_preproc=yes
30825     ;;
30826   no:yes:* )
30827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30839     ( cat <<\_ASBOX
30840 ## --------------------------------------------- ##
30841 ## Report this to <http://www.openldap.org/its/> ##
30842 ## --------------------------------------------- ##
30843 _ASBOX
30844      ) | sed "s/^/$as_me: WARNING:     /" >&2
30845     ;;
30846 esac
30847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30850   echo $ECHO_N "(cached) $ECHO_C" >&6
30851 else
30852   eval "$as_ac_Header=\$ac_header_preproc"
30853 fi
30854 ac_res=`eval echo '${'$as_ac_Header'}'`
30855                { echo "$as_me:$LINENO: result: $ac_res" >&5
30856 echo "${ECHO_T}$ac_res" >&6; }
30857
30858 fi
30859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30860   cat >>confdefs.h <<_ACEOF
30861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30862 _ACEOF
30863
30864 fi
30865
30866 done
30867
30868 if test $ac_cv_header_unicode_utypes_h = yes ; then
30869                 OL_ICULIBS="-licuuc -licudata"
30870
30871         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30872 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30873 if test "${ol_cv_lib_icu+set}" = set; then
30874   echo $ECHO_N "(cached) $ECHO_C" >&6
30875 else
30876
30877                 ol_LIBS="$LIBS"
30878                 LIBS="$OL_ICULIBS $LIBS"
30879                 cat >conftest.$ac_ext <<_ACEOF
30880 /* confdefs.h.  */
30881 _ACEOF
30882 cat confdefs.h >>conftest.$ac_ext
30883 cat >>conftest.$ac_ext <<_ACEOF
30884 /* end confdefs.h.  */
30885
30886 #include <unicode/utypes.h>
30887
30888 int
30889 main ()
30890 {
30891
30892 (void) u_errorName(0);
30893
30894   ;
30895   return 0;
30896 }
30897 _ACEOF
30898 rm -f conftest.$ac_objext conftest$ac_exeext
30899 if { (ac_try="$ac_link"
30900 case "(($ac_try" in
30901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30902   *) ac_try_echo=$ac_try;;
30903 esac
30904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30905   (eval "$ac_link") 2>conftest.er1
30906   ac_status=$?
30907   grep -v '^ *+' conftest.er1 >conftest.err
30908   rm -f conftest.er1
30909   cat conftest.err >&5
30910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911   (exit $ac_status); } && {
30912          test -z "$ac_c_werror_flag" ||
30913          test ! -s conftest.err
30914        } && test -s conftest$ac_exeext &&
30915        $as_test_x conftest$ac_exeext; then
30916   ol_cv_lib_icu=yes
30917 else
30918   echo "$as_me: failed program was:" >&5
30919 sed 's/^/| /' conftest.$ac_ext >&5
30920
30921         ol_cv_lib_icu=no
30922 fi
30923
30924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30925       conftest$ac_exeext conftest.$ac_ext
30926                 LIBS="$ol_LIBS"
30927
30928 fi
30929 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30930 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30931
30932         if test $ol_cv_lib_icu != no ; then
30933                 ol_icu="$OL_ICULIBS"
30934
30935 cat >>confdefs.h <<\_ACEOF
30936 #define HAVE_ICU 1
30937 _ACEOF
30938
30939         fi
30940 fi
30941
30942 if test "$ol_icu" = no ; then
30943         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30944 echo "$as_me: WARNING: ICU not available" >&2;}
30945 else
30946         ICU_LIBS="$ol_icu"
30947 fi
30948 WITH_SASL=no
30949 ol_link_sasl=no
30950 ol_link_spasswd=no
30951 if test $ol_with_cyrus_sasl != no ; then
30952
30953
30954 for ac_header in sasl/sasl.h sasl.h
30955 do
30956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30958   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30961   echo $ECHO_N "(cached) $ECHO_C" >&6
30962 fi
30963 ac_res=`eval echo '${'$as_ac_Header'}'`
30964                { echo "$as_me:$LINENO: result: $ac_res" >&5
30965 echo "${ECHO_T}$ac_res" >&6; }
30966 else
30967   # Is the header compilable?
30968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30970 cat >conftest.$ac_ext <<_ACEOF
30971 /* confdefs.h.  */
30972 _ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h.  */
30976 $ac_includes_default
30977 #include <$ac_header>
30978 _ACEOF
30979 rm -f conftest.$ac_objext
30980 if { (ac_try="$ac_compile"
30981 case "(($ac_try" in
30982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30983   *) ac_try_echo=$ac_try;;
30984 esac
30985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30986   (eval "$ac_compile") 2>conftest.er1
30987   ac_status=$?
30988   grep -v '^ *+' conftest.er1 >conftest.err
30989   rm -f conftest.er1
30990   cat conftest.err >&5
30991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992   (exit $ac_status); } && {
30993          test -z "$ac_c_werror_flag" ||
30994          test ! -s conftest.err
30995        } && test -s conftest.$ac_objext; then
30996   ac_header_compiler=yes
30997 else
30998   echo "$as_me: failed program was:" >&5
30999 sed 's/^/| /' conftest.$ac_ext >&5
31000
31001         ac_header_compiler=no
31002 fi
31003
31004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31006 echo "${ECHO_T}$ac_header_compiler" >&6; }
31007
31008 # Is the header present?
31009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31011 cat >conftest.$ac_ext <<_ACEOF
31012 /* confdefs.h.  */
31013 _ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h.  */
31017 #include <$ac_header>
31018 _ACEOF
31019 if { (ac_try="$ac_cpp conftest.$ac_ext"
31020 case "(($ac_try" in
31021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022   *) ac_try_echo=$ac_try;;
31023 esac
31024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31026   ac_status=$?
31027   grep -v '^ *+' conftest.er1 >conftest.err
31028   rm -f conftest.er1
31029   cat conftest.err >&5
31030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031   (exit $ac_status); } >/dev/null && {
31032          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31033          test ! -s conftest.err
31034        }; then
31035   ac_header_preproc=yes
31036 else
31037   echo "$as_me: failed program was:" >&5
31038 sed 's/^/| /' conftest.$ac_ext >&5
31039
31040   ac_header_preproc=no
31041 fi
31042
31043 rm -f conftest.err conftest.$ac_ext
31044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31045 echo "${ECHO_T}$ac_header_preproc" >&6; }
31046
31047 # So?  What about this header?
31048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31049   yes:no: )
31050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31054     ac_header_preproc=yes
31055     ;;
31056   no:yes:* )
31057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31069     ( cat <<\_ASBOX
31070 ## --------------------------------------------- ##
31071 ## Report this to <http://www.openldap.org/its/> ##
31072 ## --------------------------------------------- ##
31073 _ASBOX
31074      ) | sed "s/^/$as_me: WARNING:     /" >&2
31075     ;;
31076 esac
31077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31080   echo $ECHO_N "(cached) $ECHO_C" >&6
31081 else
31082   eval "$as_ac_Header=\$ac_header_preproc"
31083 fi
31084 ac_res=`eval echo '${'$as_ac_Header'}'`
31085                { echo "$as_me:$LINENO: result: $ac_res" >&5
31086 echo "${ECHO_T}$ac_res" >&6; }
31087
31088 fi
31089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31090   cat >>confdefs.h <<_ACEOF
31091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31092 _ACEOF
31093
31094 fi
31095
31096 done
31097
31098
31099         if test $ac_cv_header_sasl_sasl_h = yes ||
31100            test $ac_cv_header_sasl_h = yes; then
31101                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
31102 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
31103 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
31104   echo $ECHO_N "(cached) $ECHO_C" >&6
31105 else
31106   ac_check_lib_save_LIBS=$LIBS
31107 LIBS="-lsasl2  $LIBS"
31108 cat >conftest.$ac_ext <<_ACEOF
31109 /* confdefs.h.  */
31110 _ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h.  */
31114
31115 /* Override any GCC internal prototype to avoid an error.
31116    Use char because int might match the return type of a GCC
31117    builtin and then its argument prototype would still apply.  */
31118 #ifdef __cplusplus
31119 extern "C"
31120 #endif
31121 char sasl_client_init ();
31122 int
31123 main ()
31124 {
31125 return sasl_client_init ();
31126   ;
31127   return 0;
31128 }
31129 _ACEOF
31130 rm -f conftest.$ac_objext conftest$ac_exeext
31131 if { (ac_try="$ac_link"
31132 case "(($ac_try" in
31133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134   *) ac_try_echo=$ac_try;;
31135 esac
31136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137   (eval "$ac_link") 2>conftest.er1
31138   ac_status=$?
31139   grep -v '^ *+' conftest.er1 >conftest.err
31140   rm -f conftest.er1
31141   cat conftest.err >&5
31142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143   (exit $ac_status); } && {
31144          test -z "$ac_c_werror_flag" ||
31145          test ! -s conftest.err
31146        } && test -s conftest$ac_exeext &&
31147        $as_test_x conftest$ac_exeext; then
31148   ac_cv_lib_sasl2_sasl_client_init=yes
31149 else
31150   echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31152
31153         ac_cv_lib_sasl2_sasl_client_init=no
31154 fi
31155
31156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31157       conftest$ac_exeext conftest.$ac_ext
31158 LIBS=$ac_check_lib_save_LIBS
31159 fi
31160 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
31161 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
31162 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
31163   ol_link_sasl="-lsasl2"
31164 else
31165   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
31166 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
31167 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
31168   echo $ECHO_N "(cached) $ECHO_C" >&6
31169 else
31170   ac_check_lib_save_LIBS=$LIBS
31171 LIBS="-lsasl  $LIBS"
31172 cat >conftest.$ac_ext <<_ACEOF
31173 /* confdefs.h.  */
31174 _ACEOF
31175 cat confdefs.h >>conftest.$ac_ext
31176 cat >>conftest.$ac_ext <<_ACEOF
31177 /* end confdefs.h.  */
31178
31179 /* Override any GCC internal prototype to avoid an error.
31180    Use char because int might match the return type of a GCC
31181    builtin and then its argument prototype would still apply.  */
31182 #ifdef __cplusplus
31183 extern "C"
31184 #endif
31185 char sasl_client_init ();
31186 int
31187 main ()
31188 {
31189 return sasl_client_init ();
31190   ;
31191   return 0;
31192 }
31193 _ACEOF
31194 rm -f conftest.$ac_objext conftest$ac_exeext
31195 if { (ac_try="$ac_link"
31196 case "(($ac_try" in
31197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31198   *) ac_try_echo=$ac_try;;
31199 esac
31200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31201   (eval "$ac_link") 2>conftest.er1
31202   ac_status=$?
31203   grep -v '^ *+' conftest.er1 >conftest.err
31204   rm -f conftest.er1
31205   cat conftest.err >&5
31206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207   (exit $ac_status); } && {
31208          test -z "$ac_c_werror_flag" ||
31209          test ! -s conftest.err
31210        } && test -s conftest$ac_exeext &&
31211        $as_test_x conftest$ac_exeext; then
31212   ac_cv_lib_sasl_sasl_client_init=yes
31213 else
31214   echo "$as_me: failed program was:" >&5
31215 sed 's/^/| /' conftest.$ac_ext >&5
31216
31217         ac_cv_lib_sasl_sasl_client_init=no
31218 fi
31219
31220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31221       conftest$ac_exeext conftest.$ac_ext
31222 LIBS=$ac_check_lib_save_LIBS
31223 fi
31224 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
31225 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
31226 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
31227   ol_link_sasl="-lsasl"
31228 fi
31229
31230 fi
31231
31232         fi
31233
31234         if test $ol_link_sasl = no ; then
31235                 if test $ol_with_cyrus_sasl != auto ; then
31236                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
31237 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
31238    { (exit 1); exit 1; }; }
31239                 else
31240                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
31241 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
31242                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31243 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31244                         if test $ol_link_tls = no ; then
31245                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31246 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31247                         fi
31248                 fi
31249         else
31250                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
31251 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
31252 if test "${ol_cv_sasl_compat+set}" = set; then
31253   echo $ECHO_N "(cached) $ECHO_C" >&6
31254 else
31255
31256         cat >conftest.$ac_ext <<_ACEOF
31257 /* confdefs.h.  */
31258 _ACEOF
31259 cat confdefs.h >>conftest.$ac_ext
31260 cat >>conftest.$ac_ext <<_ACEOF
31261 /* end confdefs.h.  */
31262
31263 #ifdef HAVE_SASL_SASL_H
31264 #include <sasl/sasl.h>
31265 #else
31266 #include <sasl.h>
31267 #endif
31268
31269 /* Require 2.1.15+ */
31270 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
31271         char *__sasl_compat = "2.2+ or better okay (we guess)";
31272 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
31273         && SASL_VERSION_STEP >=15
31274         char *__sasl_compat = "2.1.15+ or better okay";
31275 #endif
31276
31277 _ACEOF
31278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31279   $EGREP "__sasl_compat" >/dev/null 2>&1; then
31280   ol_cv_sasl_compat=yes
31281 else
31282   ol_cv_sasl_compat=no
31283 fi
31284 rm -f conftest*
31285
31286 fi
31287 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
31288 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
31289
31290                 if test $ol_cv_sasl_compat = no ; then
31291                         ol_link_sasl=no
31292                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
31293 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
31294    { (exit 1); exit 1; }; }
31295                 fi
31296
31297
31298 cat >>confdefs.h <<\_ACEOF
31299 #define HAVE_CYRUS_SASL 1
31300 _ACEOF
31301
31302                 SASL_LIBS="$ol_link_sasl"
31303                 if test $ol_enable_spasswd != no ; then
31304                         ol_link_spasswd=yes
31305                 fi
31306
31307                 ac_save_LIBS="$LIBS"
31308                 LIBS="$LIBS $ol_link_sasl"
31309                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
31310 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
31311 if test "${ac_cv_func_sasl_version+set}" = set; then
31312   echo $ECHO_N "(cached) $ECHO_C" >&6
31313 else
31314   cat >conftest.$ac_ext <<_ACEOF
31315 /* confdefs.h.  */
31316 _ACEOF
31317 cat confdefs.h >>conftest.$ac_ext
31318 cat >>conftest.$ac_ext <<_ACEOF
31319 /* end confdefs.h.  */
31320 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
31321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31322 #define sasl_version innocuous_sasl_version
31323
31324 /* System header to define __stub macros and hopefully few prototypes,
31325     which can conflict with char sasl_version (); below.
31326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31327     <limits.h> exists even on freestanding compilers.  */
31328
31329 #ifdef __STDC__
31330 # include <limits.h>
31331 #else
31332 # include <assert.h>
31333 #endif
31334
31335 #undef sasl_version
31336
31337 /* Override any GCC internal prototype to avoid an error.
31338    Use char because int might match the return type of a GCC
31339    builtin and then its argument prototype would still apply.  */
31340 #ifdef __cplusplus
31341 extern "C"
31342 #endif
31343 char sasl_version ();
31344 /* The GNU C library defines this for functions which it implements
31345     to always fail with ENOSYS.  Some functions are actually named
31346     something starting with __ and the normal name is an alias.  */
31347 #if defined __stub_sasl_version || defined __stub___sasl_version
31348 choke me
31349 #endif
31350
31351 int
31352 main ()
31353 {
31354 return sasl_version ();
31355   ;
31356   return 0;
31357 }
31358 _ACEOF
31359 rm -f conftest.$ac_objext conftest$ac_exeext
31360 if { (ac_try="$ac_link"
31361 case "(($ac_try" in
31362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363   *) ac_try_echo=$ac_try;;
31364 esac
31365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366   (eval "$ac_link") 2>conftest.er1
31367   ac_status=$?
31368   grep -v '^ *+' conftest.er1 >conftest.err
31369   rm -f conftest.er1
31370   cat conftest.err >&5
31371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372   (exit $ac_status); } && {
31373          test -z "$ac_c_werror_flag" ||
31374          test ! -s conftest.err
31375        } && test -s conftest$ac_exeext &&
31376        $as_test_x conftest$ac_exeext; then
31377   ac_cv_func_sasl_version=yes
31378 else
31379   echo "$as_me: failed program was:" >&5
31380 sed 's/^/| /' conftest.$ac_ext >&5
31381
31382         ac_cv_func_sasl_version=no
31383 fi
31384
31385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31386       conftest$ac_exeext conftest.$ac_ext
31387 fi
31388 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31389 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
31390 if test $ac_cv_func_sasl_version = yes; then
31391
31392 cat >>confdefs.h <<\_ACEOF
31393 #define HAVE_SASL_VERSION 1
31394 _ACEOF
31395
31396 fi
31397
31398                 LIBS="$ac_save_LIBS"
31399
31400                 WITH_SASL=yes
31401         fi
31402
31403 else
31404         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31405 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31406         if test $ol_link_tls = no ; then
31407                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31408 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31409         fi
31410 fi
31411
31412 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31413         dev=no
31414         if test -r /dev/urandom ; then
31415                 dev="/dev/urandom";
31416         elif test -r /idev/urandom ; then
31417                 dev="/idev/urandom";
31418         elif test -r /dev/srandom ; then
31419                 dev="/dev/srandom";
31420         elif test -r /dev/random ; then
31421                 dev="/dev/random";
31422         elif test -r /idev/random ; then
31423                 dev="/idev/random";
31424         fi
31425
31426         if test $dev != no ; then
31427
31428 cat >>confdefs.h <<_ACEOF
31429 #define URANDOM_DEVICE "$dev"
31430 _ACEOF
31431
31432         fi
31433 fi
31434
31435 ol_link_fetch=no
31436 if test $ol_with_fetch != no ; then
31437         ol_LIBS=$LIBS
31438 LIBS="-lfetch -lcom_err $LIBS"
31439 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31440 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31441 if test "${ol_cv_lib_fetch+set}" = set; then
31442   echo $ECHO_N "(cached) $ECHO_C" >&6
31443 else
31444
31445         cat >conftest.$ac_ext <<_ACEOF
31446 /* confdefs.h.  */
31447 _ACEOF
31448 cat confdefs.h >>conftest.$ac_ext
31449 cat >>conftest.$ac_ext <<_ACEOF
31450 /* end confdefs.h.  */
31451
31452 #ifdef HAVE_SYS_PARAM_H
31453 #include <sys/param.h>
31454 #endif
31455 #include <stdio.h>
31456 #include <fetch.h>
31457 int
31458 main ()
31459 {
31460 struct url *u = fetchParseURL("file:///");
31461   ;
31462   return 0;
31463 }
31464 _ACEOF
31465 rm -f conftest.$ac_objext conftest$ac_exeext
31466 if { (ac_try="$ac_link"
31467 case "(($ac_try" in
31468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31469   *) ac_try_echo=$ac_try;;
31470 esac
31471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31472   (eval "$ac_link") 2>conftest.er1
31473   ac_status=$?
31474   grep -v '^ *+' conftest.er1 >conftest.err
31475   rm -f conftest.er1
31476   cat conftest.err >&5
31477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478   (exit $ac_status); } && {
31479          test -z "$ac_c_werror_flag" ||
31480          test ! -s conftest.err
31481        } && test -s conftest$ac_exeext &&
31482        $as_test_x conftest$ac_exeext; then
31483   ol_cv_lib_fetch=yes
31484 else
31485   echo "$as_me: failed program was:" >&5
31486 sed 's/^/| /' conftest.$ac_ext >&5
31487
31488         ol_cv_lib_fetch=no
31489 fi
31490
31491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31492       conftest$ac_exeext conftest.$ac_ext
31493 fi
31494 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31495 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31496 LIBS=$ol_LIBS
31497 if test $ol_cv_lib_fetch != no ; then
31498         ol_link_fetch="-lfetch -lcom_err"
31499
31500 cat >>confdefs.h <<\_ACEOF
31501 #define HAVE_FETCH 1
31502 _ACEOF
31503
31504 fi
31505
31506
31507         if test $ol_cv_lib_fetch != no ; then
31508                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31509                 ol_link_fetch=freebsd
31510
31511         elif test $ol_with_fetch != auto ; then
31512                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31513 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31514    { (exit 1); exit 1; }; }
31515         fi
31516 fi
31517
31518 if test $ol_enable_crypt != no ; then
31519         save_LIBS="$LIBS"
31520         LIBS="$TLS_LIBS $LIBS"
31521
31522         { echo "$as_me:$LINENO: checking for crypt" >&5
31523 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31524 if test "${ac_cv_func_crypt+set}" = set; then
31525   echo $ECHO_N "(cached) $ECHO_C" >&6
31526 else
31527   cat >conftest.$ac_ext <<_ACEOF
31528 /* confdefs.h.  */
31529 _ACEOF
31530 cat confdefs.h >>conftest.$ac_ext
31531 cat >>conftest.$ac_ext <<_ACEOF
31532 /* end confdefs.h.  */
31533 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31535 #define crypt innocuous_crypt
31536
31537 /* System header to define __stub macros and hopefully few prototypes,
31538     which can conflict with char crypt (); below.
31539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31540     <limits.h> exists even on freestanding compilers.  */
31541
31542 #ifdef __STDC__
31543 # include <limits.h>
31544 #else
31545 # include <assert.h>
31546 #endif
31547
31548 #undef crypt
31549
31550 /* Override any GCC internal prototype to avoid an error.
31551    Use char because int might match the return type of a GCC
31552    builtin and then its argument prototype would still apply.  */
31553 #ifdef __cplusplus
31554 extern "C"
31555 #endif
31556 char crypt ();
31557 /* The GNU C library defines this for functions which it implements
31558     to always fail with ENOSYS.  Some functions are actually named
31559     something starting with __ and the normal name is an alias.  */
31560 #if defined __stub_crypt || defined __stub___crypt
31561 choke me
31562 #endif
31563
31564 int
31565 main ()
31566 {
31567 return crypt ();
31568   ;
31569   return 0;
31570 }
31571 _ACEOF
31572 rm -f conftest.$ac_objext conftest$ac_exeext
31573 if { (ac_try="$ac_link"
31574 case "(($ac_try" in
31575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31576   *) ac_try_echo=$ac_try;;
31577 esac
31578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31579   (eval "$ac_link") 2>conftest.er1
31580   ac_status=$?
31581   grep -v '^ *+' conftest.er1 >conftest.err
31582   rm -f conftest.er1
31583   cat conftest.err >&5
31584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585   (exit $ac_status); } && {
31586          test -z "$ac_c_werror_flag" ||
31587          test ! -s conftest.err
31588        } && test -s conftest$ac_exeext &&
31589        $as_test_x conftest$ac_exeext; then
31590   ac_cv_func_crypt=yes
31591 else
31592   echo "$as_me: failed program was:" >&5
31593 sed 's/^/| /' conftest.$ac_ext >&5
31594
31595         ac_cv_func_crypt=no
31596 fi
31597
31598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31599       conftest$ac_exeext conftest.$ac_ext
31600 fi
31601 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31602 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31603 if test $ac_cv_func_crypt = yes; then
31604   have_crypt=yes
31605 else
31606
31607                 LIBS="$save_LIBS"
31608                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31609 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31610 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31611   echo $ECHO_N "(cached) $ECHO_C" >&6
31612 else
31613   ac_check_lib_save_LIBS=$LIBS
31614 LIBS="-lcrypt  $LIBS"
31615 cat >conftest.$ac_ext <<_ACEOF
31616 /* confdefs.h.  */
31617 _ACEOF
31618 cat confdefs.h >>conftest.$ac_ext
31619 cat >>conftest.$ac_ext <<_ACEOF
31620 /* end confdefs.h.  */
31621
31622 /* Override any GCC internal prototype to avoid an error.
31623    Use char because int might match the return type of a GCC
31624    builtin and then its argument prototype would still apply.  */
31625 #ifdef __cplusplus
31626 extern "C"
31627 #endif
31628 char crypt ();
31629 int
31630 main ()
31631 {
31632 return crypt ();
31633   ;
31634   return 0;
31635 }
31636 _ACEOF
31637 rm -f conftest.$ac_objext conftest$ac_exeext
31638 if { (ac_try="$ac_link"
31639 case "(($ac_try" in
31640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31641   *) ac_try_echo=$ac_try;;
31642 esac
31643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31644   (eval "$ac_link") 2>conftest.er1
31645   ac_status=$?
31646   grep -v '^ *+' conftest.er1 >conftest.err
31647   rm -f conftest.er1
31648   cat conftest.err >&5
31649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650   (exit $ac_status); } && {
31651          test -z "$ac_c_werror_flag" ||
31652          test ! -s conftest.err
31653        } && test -s conftest$ac_exeext &&
31654        $as_test_x conftest$ac_exeext; then
31655   ac_cv_lib_crypt_crypt=yes
31656 else
31657   echo "$as_me: failed program was:" >&5
31658 sed 's/^/| /' conftest.$ac_ext >&5
31659
31660         ac_cv_lib_crypt_crypt=no
31661 fi
31662
31663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31664       conftest$ac_exeext conftest.$ac_ext
31665 LIBS=$ac_check_lib_save_LIBS
31666 fi
31667 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31668 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31669 if test $ac_cv_lib_crypt_crypt = yes; then
31670   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31671                         have_crypt=yes
31672 else
31673   have_crypt=no
31674 fi
31675
31676 fi
31677
31678
31679         LIBS="$save_LIBS"
31680
31681         if test $have_crypt = yes ; then
31682
31683 cat >>confdefs.h <<\_ACEOF
31684 #define HAVE_CRYPT 1
31685 _ACEOF
31686
31687         else
31688                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31689 echo "$as_me: WARNING: could not find crypt" >&2;}
31690                 if test $ol_enable_crypt = yes ; then
31691                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31692 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31693    { (exit 1); exit 1; }; }
31694                 fi
31695
31696                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31697 echo "$as_me: WARNING: disabling crypt support" >&2;}
31698                 ol_enable_crypt=no
31699         fi
31700 fi
31701
31702 if test $ol_enable_proctitle != no ; then
31703         { echo "$as_me:$LINENO: checking for setproctitle" >&5
31704 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31705 if test "${ac_cv_func_setproctitle+set}" = set; then
31706   echo $ECHO_N "(cached) $ECHO_C" >&6
31707 else
31708   cat >conftest.$ac_ext <<_ACEOF
31709 /* confdefs.h.  */
31710 _ACEOF
31711 cat confdefs.h >>conftest.$ac_ext
31712 cat >>conftest.$ac_ext <<_ACEOF
31713 /* end confdefs.h.  */
31714 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31716 #define setproctitle innocuous_setproctitle
31717
31718 /* System header to define __stub macros and hopefully few prototypes,
31719     which can conflict with char setproctitle (); below.
31720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31721     <limits.h> exists even on freestanding compilers.  */
31722
31723 #ifdef __STDC__
31724 # include <limits.h>
31725 #else
31726 # include <assert.h>
31727 #endif
31728
31729 #undef setproctitle
31730
31731 /* Override any GCC internal prototype to avoid an error.
31732    Use char because int might match the return type of a GCC
31733    builtin and then its argument prototype would still apply.  */
31734 #ifdef __cplusplus
31735 extern "C"
31736 #endif
31737 char setproctitle ();
31738 /* The GNU C library defines this for functions which it implements
31739     to always fail with ENOSYS.  Some functions are actually named
31740     something starting with __ and the normal name is an alias.  */
31741 #if defined __stub_setproctitle || defined __stub___setproctitle
31742 choke me
31743 #endif
31744
31745 int
31746 main ()
31747 {
31748 return setproctitle ();
31749   ;
31750   return 0;
31751 }
31752 _ACEOF
31753 rm -f conftest.$ac_objext conftest$ac_exeext
31754 if { (ac_try="$ac_link"
31755 case "(($ac_try" in
31756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31757   *) ac_try_echo=$ac_try;;
31758 esac
31759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31760   (eval "$ac_link") 2>conftest.er1
31761   ac_status=$?
31762   grep -v '^ *+' conftest.er1 >conftest.err
31763   rm -f conftest.er1
31764   cat conftest.err >&5
31765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766   (exit $ac_status); } && {
31767          test -z "$ac_c_werror_flag" ||
31768          test ! -s conftest.err
31769        } && test -s conftest$ac_exeext &&
31770        $as_test_x conftest$ac_exeext; then
31771   ac_cv_func_setproctitle=yes
31772 else
31773   echo "$as_me: failed program was:" >&5
31774 sed 's/^/| /' conftest.$ac_ext >&5
31775
31776         ac_cv_func_setproctitle=no
31777 fi
31778
31779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31780       conftest$ac_exeext conftest.$ac_ext
31781 fi
31782 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31783 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31784 if test $ac_cv_func_setproctitle = yes; then
31785   have_setproctitle=yes
31786 else
31787
31788                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31789 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31790 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31791   echo $ECHO_N "(cached) $ECHO_C" >&6
31792 else
31793   ac_check_lib_save_LIBS=$LIBS
31794 LIBS="-lutil  $LIBS"
31795 cat >conftest.$ac_ext <<_ACEOF
31796 /* confdefs.h.  */
31797 _ACEOF
31798 cat confdefs.h >>conftest.$ac_ext
31799 cat >>conftest.$ac_ext <<_ACEOF
31800 /* end confdefs.h.  */
31801
31802 /* Override any GCC internal prototype to avoid an error.
31803    Use char because int might match the return type of a GCC
31804    builtin and then its argument prototype would still apply.  */
31805 #ifdef __cplusplus
31806 extern "C"
31807 #endif
31808 char setproctitle ();
31809 int
31810 main ()
31811 {
31812 return setproctitle ();
31813   ;
31814   return 0;
31815 }
31816 _ACEOF
31817 rm -f conftest.$ac_objext conftest$ac_exeext
31818 if { (ac_try="$ac_link"
31819 case "(($ac_try" in
31820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821   *) ac_try_echo=$ac_try;;
31822 esac
31823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824   (eval "$ac_link") 2>conftest.er1
31825   ac_status=$?
31826   grep -v '^ *+' conftest.er1 >conftest.err
31827   rm -f conftest.er1
31828   cat conftest.err >&5
31829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830   (exit $ac_status); } && {
31831          test -z "$ac_c_werror_flag" ||
31832          test ! -s conftest.err
31833        } && test -s conftest$ac_exeext &&
31834        $as_test_x conftest$ac_exeext; then
31835   ac_cv_lib_util_setproctitle=yes
31836 else
31837   echo "$as_me: failed program was:" >&5
31838 sed 's/^/| /' conftest.$ac_ext >&5
31839
31840         ac_cv_lib_util_setproctitle=no
31841 fi
31842
31843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31844       conftest$ac_exeext conftest.$ac_ext
31845 LIBS=$ac_check_lib_save_LIBS
31846 fi
31847 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31848 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31849 if test $ac_cv_lib_util_setproctitle = yes; then
31850   have_setproctitle=yes
31851                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31852 else
31853   have_setproctitle=no
31854                         case " $LIBOBJS " in
31855   *" setproctitle.$ac_objext "* ) ;;
31856   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31857  ;;
31858 esac
31859
31860                         LIBSRCS="$LIBSRCS setproctitle.c"
31861 fi
31862
31863 fi
31864
31865
31866         if test $have_setproctitle = yes ; then
31867
31868 cat >>confdefs.h <<\_ACEOF
31869 #define HAVE_SETPROCTITLE 1
31870 _ACEOF
31871
31872         fi
31873 fi
31874
31875 if test $ol_enable_slp != no ; then
31876
31877 for ac_header in slp.h
31878 do
31879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31881   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31884   echo $ECHO_N "(cached) $ECHO_C" >&6
31885 fi
31886 ac_res=`eval echo '${'$as_ac_Header'}'`
31887                { echo "$as_me:$LINENO: result: $ac_res" >&5
31888 echo "${ECHO_T}$ac_res" >&6; }
31889 else
31890   # Is the header compilable?
31891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31893 cat >conftest.$ac_ext <<_ACEOF
31894 /* confdefs.h.  */
31895 _ACEOF
31896 cat confdefs.h >>conftest.$ac_ext
31897 cat >>conftest.$ac_ext <<_ACEOF
31898 /* end confdefs.h.  */
31899 $ac_includes_default
31900 #include <$ac_header>
31901 _ACEOF
31902 rm -f conftest.$ac_objext
31903 if { (ac_try="$ac_compile"
31904 case "(($ac_try" in
31905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31906   *) ac_try_echo=$ac_try;;
31907 esac
31908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31909   (eval "$ac_compile") 2>conftest.er1
31910   ac_status=$?
31911   grep -v '^ *+' conftest.er1 >conftest.err
31912   rm -f conftest.er1
31913   cat conftest.err >&5
31914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31915   (exit $ac_status); } && {
31916          test -z "$ac_c_werror_flag" ||
31917          test ! -s conftest.err
31918        } && test -s conftest.$ac_objext; then
31919   ac_header_compiler=yes
31920 else
31921   echo "$as_me: failed program was:" >&5
31922 sed 's/^/| /' conftest.$ac_ext >&5
31923
31924         ac_header_compiler=no
31925 fi
31926
31927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31929 echo "${ECHO_T}$ac_header_compiler" >&6; }
31930
31931 # Is the header present?
31932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31934 cat >conftest.$ac_ext <<_ACEOF
31935 /* confdefs.h.  */
31936 _ACEOF
31937 cat confdefs.h >>conftest.$ac_ext
31938 cat >>conftest.$ac_ext <<_ACEOF
31939 /* end confdefs.h.  */
31940 #include <$ac_header>
31941 _ACEOF
31942 if { (ac_try="$ac_cpp conftest.$ac_ext"
31943 case "(($ac_try" in
31944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31945   *) ac_try_echo=$ac_try;;
31946 esac
31947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31949   ac_status=$?
31950   grep -v '^ *+' conftest.er1 >conftest.err
31951   rm -f conftest.er1
31952   cat conftest.err >&5
31953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954   (exit $ac_status); } >/dev/null && {
31955          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31956          test ! -s conftest.err
31957        }; then
31958   ac_header_preproc=yes
31959 else
31960   echo "$as_me: failed program was:" >&5
31961 sed 's/^/| /' conftest.$ac_ext >&5
31962
31963   ac_header_preproc=no
31964 fi
31965
31966 rm -f conftest.err conftest.$ac_ext
31967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31968 echo "${ECHO_T}$ac_header_preproc" >&6; }
31969
31970 # So?  What about this header?
31971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31972   yes:no: )
31973     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31977     ac_header_preproc=yes
31978     ;;
31979   no:yes:* )
31980     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31982     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31983 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31984     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31986     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31987 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31990     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31992     ( cat <<\_ASBOX
31993 ## --------------------------------------------- ##
31994 ## Report this to <http://www.openldap.org/its/> ##
31995 ## --------------------------------------------- ##
31996 _ASBOX
31997      ) | sed "s/^/$as_me: WARNING:     /" >&2
31998     ;;
31999 esac
32000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32003   echo $ECHO_N "(cached) $ECHO_C" >&6
32004 else
32005   eval "$as_ac_Header=\$ac_header_preproc"
32006 fi
32007 ac_res=`eval echo '${'$as_ac_Header'}'`
32008                { echo "$as_me:$LINENO: result: $ac_res" >&5
32009 echo "${ECHO_T}$ac_res" >&6; }
32010
32011 fi
32012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32013   cat >>confdefs.h <<_ACEOF
32014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32015 _ACEOF
32016
32017 fi
32018
32019 done
32020
32021
32022         if test $ac_cv_header_slp_h = yes ; then
32023                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
32024 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
32025 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
32026   echo $ECHO_N "(cached) $ECHO_C" >&6
32027 else
32028   ac_check_lib_save_LIBS=$LIBS
32029 LIBS="-lslp  $LIBS"
32030 cat >conftest.$ac_ext <<_ACEOF
32031 /* confdefs.h.  */
32032 _ACEOF
32033 cat confdefs.h >>conftest.$ac_ext
32034 cat >>conftest.$ac_ext <<_ACEOF
32035 /* end confdefs.h.  */
32036
32037 /* Override any GCC internal prototype to avoid an error.
32038    Use char because int might match the return type of a GCC
32039    builtin and then its argument prototype would still apply.  */
32040 #ifdef __cplusplus
32041 extern "C"
32042 #endif
32043 char SLPOpen ();
32044 int
32045 main ()
32046 {
32047 return SLPOpen ();
32048   ;
32049   return 0;
32050 }
32051 _ACEOF
32052 rm -f conftest.$ac_objext conftest$ac_exeext
32053 if { (ac_try="$ac_link"
32054 case "(($ac_try" in
32055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32056   *) ac_try_echo=$ac_try;;
32057 esac
32058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32059   (eval "$ac_link") 2>conftest.er1
32060   ac_status=$?
32061   grep -v '^ *+' conftest.er1 >conftest.err
32062   rm -f conftest.er1
32063   cat conftest.err >&5
32064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065   (exit $ac_status); } && {
32066          test -z "$ac_c_werror_flag" ||
32067          test ! -s conftest.err
32068        } && test -s conftest$ac_exeext &&
32069        $as_test_x conftest$ac_exeext; then
32070   ac_cv_lib_slp_SLPOpen=yes
32071 else
32072   echo "$as_me: failed program was:" >&5
32073 sed 's/^/| /' conftest.$ac_ext >&5
32074
32075         ac_cv_lib_slp_SLPOpen=no
32076 fi
32077
32078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32079       conftest$ac_exeext conftest.$ac_ext
32080 LIBS=$ac_check_lib_save_LIBS
32081 fi
32082 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
32083 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
32084 if test $ac_cv_lib_slp_SLPOpen = yes; then
32085   have_slp=yes
32086 else
32087   have_slp=no
32088 fi
32089
32090                 if test $have_slp = yes ; then
32091
32092 cat >>confdefs.h <<\_ACEOF
32093 #define HAVE_SLP 1
32094 _ACEOF
32095
32096                         SLAPD_SLP_LIBS=-lslp
32097                 fi
32098
32099         elif test $ol_enable_slp = yes ; then
32100                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
32101 echo "$as_me: error: SLP not found" >&2;}
32102    { (exit 1); exit 1; }; }
32103         fi
32104 fi
32105
32106
32107 { echo "$as_me:$LINENO: checking for mode_t" >&5
32108 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
32109 if test "${ac_cv_type_mode_t+set}" = set; then
32110   echo $ECHO_N "(cached) $ECHO_C" >&6
32111 else
32112   cat >conftest.$ac_ext <<_ACEOF
32113 /* confdefs.h.  */
32114 _ACEOF
32115 cat confdefs.h >>conftest.$ac_ext
32116 cat >>conftest.$ac_ext <<_ACEOF
32117 /* end confdefs.h.  */
32118 $ac_includes_default
32119 typedef mode_t ac__type_new_;
32120 int
32121 main ()
32122 {
32123 if ((ac__type_new_ *) 0)
32124   return 0;
32125 if (sizeof (ac__type_new_))
32126   return 0;
32127   ;
32128   return 0;
32129 }
32130 _ACEOF
32131 rm -f conftest.$ac_objext
32132 if { (ac_try="$ac_compile"
32133 case "(($ac_try" in
32134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32135   *) ac_try_echo=$ac_try;;
32136 esac
32137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32138   (eval "$ac_compile") 2>conftest.er1
32139   ac_status=$?
32140   grep -v '^ *+' conftest.er1 >conftest.err
32141   rm -f conftest.er1
32142   cat conftest.err >&5
32143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144   (exit $ac_status); } && {
32145          test -z "$ac_c_werror_flag" ||
32146          test ! -s conftest.err
32147        } && test -s conftest.$ac_objext; then
32148   ac_cv_type_mode_t=yes
32149 else
32150   echo "$as_me: failed program was:" >&5
32151 sed 's/^/| /' conftest.$ac_ext >&5
32152
32153         ac_cv_type_mode_t=no
32154 fi
32155
32156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32157 fi
32158 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32159 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
32160 if test $ac_cv_type_mode_t = yes; then
32161   :
32162 else
32163
32164 cat >>confdefs.h <<_ACEOF
32165 #define mode_t int
32166 _ACEOF
32167
32168 fi
32169
32170 { echo "$as_me:$LINENO: checking for off_t" >&5
32171 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
32172 if test "${ac_cv_type_off_t+set}" = set; then
32173   echo $ECHO_N "(cached) $ECHO_C" >&6
32174 else
32175   cat >conftest.$ac_ext <<_ACEOF
32176 /* confdefs.h.  */
32177 _ACEOF
32178 cat confdefs.h >>conftest.$ac_ext
32179 cat >>conftest.$ac_ext <<_ACEOF
32180 /* end confdefs.h.  */
32181 $ac_includes_default
32182 typedef off_t ac__type_new_;
32183 int
32184 main ()
32185 {
32186 if ((ac__type_new_ *) 0)
32187   return 0;
32188 if (sizeof (ac__type_new_))
32189   return 0;
32190   ;
32191   return 0;
32192 }
32193 _ACEOF
32194 rm -f conftest.$ac_objext
32195 if { (ac_try="$ac_compile"
32196 case "(($ac_try" in
32197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32198   *) ac_try_echo=$ac_try;;
32199 esac
32200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32201   (eval "$ac_compile") 2>conftest.er1
32202   ac_status=$?
32203   grep -v '^ *+' conftest.er1 >conftest.err
32204   rm -f conftest.er1
32205   cat conftest.err >&5
32206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207   (exit $ac_status); } && {
32208          test -z "$ac_c_werror_flag" ||
32209          test ! -s conftest.err
32210        } && test -s conftest.$ac_objext; then
32211   ac_cv_type_off_t=yes
32212 else
32213   echo "$as_me: failed program was:" >&5
32214 sed 's/^/| /' conftest.$ac_ext >&5
32215
32216         ac_cv_type_off_t=no
32217 fi
32218
32219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32220 fi
32221 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32222 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
32223 if test $ac_cv_type_off_t = yes; then
32224   :
32225 else
32226
32227 cat >>confdefs.h <<_ACEOF
32228 #define off_t long
32229 _ACEOF
32230
32231 fi
32232
32233 { echo "$as_me:$LINENO: checking for pid_t" >&5
32234 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
32235 if test "${ac_cv_type_pid_t+set}" = set; then
32236   echo $ECHO_N "(cached) $ECHO_C" >&6
32237 else
32238   cat >conftest.$ac_ext <<_ACEOF
32239 /* confdefs.h.  */
32240 _ACEOF
32241 cat confdefs.h >>conftest.$ac_ext
32242 cat >>conftest.$ac_ext <<_ACEOF
32243 /* end confdefs.h.  */
32244 $ac_includes_default
32245 typedef pid_t ac__type_new_;
32246 int
32247 main ()
32248 {
32249 if ((ac__type_new_ *) 0)
32250   return 0;
32251 if (sizeof (ac__type_new_))
32252   return 0;
32253   ;
32254   return 0;
32255 }
32256 _ACEOF
32257 rm -f conftest.$ac_objext
32258 if { (ac_try="$ac_compile"
32259 case "(($ac_try" in
32260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32261   *) ac_try_echo=$ac_try;;
32262 esac
32263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32264   (eval "$ac_compile") 2>conftest.er1
32265   ac_status=$?
32266   grep -v '^ *+' conftest.er1 >conftest.err
32267   rm -f conftest.er1
32268   cat conftest.err >&5
32269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270   (exit $ac_status); } && {
32271          test -z "$ac_c_werror_flag" ||
32272          test ! -s conftest.err
32273        } && test -s conftest.$ac_objext; then
32274   ac_cv_type_pid_t=yes
32275 else
32276   echo "$as_me: failed program was:" >&5
32277 sed 's/^/| /' conftest.$ac_ext >&5
32278
32279         ac_cv_type_pid_t=no
32280 fi
32281
32282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32283 fi
32284 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32285 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
32286 if test $ac_cv_type_pid_t = yes; then
32287   :
32288 else
32289
32290 cat >>confdefs.h <<_ACEOF
32291 #define pid_t int
32292 _ACEOF
32293
32294 fi
32295
32296 { echo "$as_me:$LINENO: checking for ssize_t" >&5
32297 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
32298 if test "${ac_cv_type_ssize_t+set}" = set; then
32299   echo $ECHO_N "(cached) $ECHO_C" >&6
32300 else
32301   cat >conftest.$ac_ext <<_ACEOF
32302 /* confdefs.h.  */
32303 _ACEOF
32304 cat confdefs.h >>conftest.$ac_ext
32305 cat >>conftest.$ac_ext <<_ACEOF
32306 /* end confdefs.h.  */
32307 $ac_includes_default
32308 typedef ssize_t ac__type_new_;
32309 int
32310 main ()
32311 {
32312 if ((ac__type_new_ *) 0)
32313   return 0;
32314 if (sizeof (ac__type_new_))
32315   return 0;
32316   ;
32317   return 0;
32318 }
32319 _ACEOF
32320 rm -f conftest.$ac_objext
32321 if { (ac_try="$ac_compile"
32322 case "(($ac_try" in
32323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32324   *) ac_try_echo=$ac_try;;
32325 esac
32326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32327   (eval "$ac_compile") 2>conftest.er1
32328   ac_status=$?
32329   grep -v '^ *+' conftest.er1 >conftest.err
32330   rm -f conftest.er1
32331   cat conftest.err >&5
32332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333   (exit $ac_status); } && {
32334          test -z "$ac_c_werror_flag" ||
32335          test ! -s conftest.err
32336        } && test -s conftest.$ac_objext; then
32337   ac_cv_type_ssize_t=yes
32338 else
32339   echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32341
32342         ac_cv_type_ssize_t=no
32343 fi
32344
32345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32346 fi
32347 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32348 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
32349 if test $ac_cv_type_ssize_t = yes; then
32350   :
32351 else
32352
32353 cat >>confdefs.h <<_ACEOF
32354 #define ssize_t signed int
32355 _ACEOF
32356
32357 fi
32358
32359 { echo "$as_me:$LINENO: checking for caddr_t" >&5
32360 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
32361 if test "${ac_cv_type_caddr_t+set}" = set; then
32362   echo $ECHO_N "(cached) $ECHO_C" >&6
32363 else
32364   cat >conftest.$ac_ext <<_ACEOF
32365 /* confdefs.h.  */
32366 _ACEOF
32367 cat confdefs.h >>conftest.$ac_ext
32368 cat >>conftest.$ac_ext <<_ACEOF
32369 /* end confdefs.h.  */
32370 $ac_includes_default
32371 typedef caddr_t ac__type_new_;
32372 int
32373 main ()
32374 {
32375 if ((ac__type_new_ *) 0)
32376   return 0;
32377 if (sizeof (ac__type_new_))
32378   return 0;
32379   ;
32380   return 0;
32381 }
32382 _ACEOF
32383 rm -f conftest.$ac_objext
32384 if { (ac_try="$ac_compile"
32385 case "(($ac_try" in
32386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32387   *) ac_try_echo=$ac_try;;
32388 esac
32389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32390   (eval "$ac_compile") 2>conftest.er1
32391   ac_status=$?
32392   grep -v '^ *+' conftest.er1 >conftest.err
32393   rm -f conftest.er1
32394   cat conftest.err >&5
32395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396   (exit $ac_status); } && {
32397          test -z "$ac_c_werror_flag" ||
32398          test ! -s conftest.err
32399        } && test -s conftest.$ac_objext; then
32400   ac_cv_type_caddr_t=yes
32401 else
32402   echo "$as_me: failed program was:" >&5
32403 sed 's/^/| /' conftest.$ac_ext >&5
32404
32405         ac_cv_type_caddr_t=no
32406 fi
32407
32408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32409 fi
32410 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32411 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32412 if test $ac_cv_type_caddr_t = yes; then
32413   :
32414 else
32415
32416 cat >>confdefs.h <<_ACEOF
32417 #define caddr_t char *
32418 _ACEOF
32419
32420 fi
32421
32422 { echo "$as_me:$LINENO: checking for size_t" >&5
32423 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32424 if test "${ac_cv_type_size_t+set}" = set; then
32425   echo $ECHO_N "(cached) $ECHO_C" >&6
32426 else
32427   cat >conftest.$ac_ext <<_ACEOF
32428 /* confdefs.h.  */
32429 _ACEOF
32430 cat confdefs.h >>conftest.$ac_ext
32431 cat >>conftest.$ac_ext <<_ACEOF
32432 /* end confdefs.h.  */
32433 $ac_includes_default
32434 typedef size_t ac__type_new_;
32435 int
32436 main ()
32437 {
32438 if ((ac__type_new_ *) 0)
32439   return 0;
32440 if (sizeof (ac__type_new_))
32441   return 0;
32442   ;
32443   return 0;
32444 }
32445 _ACEOF
32446 rm -f conftest.$ac_objext
32447 if { (ac_try="$ac_compile"
32448 case "(($ac_try" in
32449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32450   *) ac_try_echo=$ac_try;;
32451 esac
32452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32453   (eval "$ac_compile") 2>conftest.er1
32454   ac_status=$?
32455   grep -v '^ *+' conftest.er1 >conftest.err
32456   rm -f conftest.er1
32457   cat conftest.err >&5
32458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32459   (exit $ac_status); } && {
32460          test -z "$ac_c_werror_flag" ||
32461          test ! -s conftest.err
32462        } && test -s conftest.$ac_objext; then
32463   ac_cv_type_size_t=yes
32464 else
32465   echo "$as_me: failed program was:" >&5
32466 sed 's/^/| /' conftest.$ac_ext >&5
32467
32468         ac_cv_type_size_t=no
32469 fi
32470
32471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32472 fi
32473 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32474 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32475 if test $ac_cv_type_size_t = yes; then
32476   :
32477 else
32478
32479 cat >>confdefs.h <<_ACEOF
32480 #define size_t unsigned
32481 _ACEOF
32482
32483 fi
32484
32485
32486 { echo "$as_me:$LINENO: checking for long long" >&5
32487 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32488 if test "${ac_cv_type_long_long+set}" = set; then
32489   echo $ECHO_N "(cached) $ECHO_C" >&6
32490 else
32491   cat >conftest.$ac_ext <<_ACEOF
32492 /* confdefs.h.  */
32493 _ACEOF
32494 cat confdefs.h >>conftest.$ac_ext
32495 cat >>conftest.$ac_ext <<_ACEOF
32496 /* end confdefs.h.  */
32497 $ac_includes_default
32498 typedef long long ac__type_new_;
32499 int
32500 main ()
32501 {
32502 if ((ac__type_new_ *) 0)
32503   return 0;
32504 if (sizeof (ac__type_new_))
32505   return 0;
32506   ;
32507   return 0;
32508 }
32509 _ACEOF
32510 rm -f conftest.$ac_objext
32511 if { (ac_try="$ac_compile"
32512 case "(($ac_try" in
32513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514   *) ac_try_echo=$ac_try;;
32515 esac
32516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517   (eval "$ac_compile") 2>conftest.er1
32518   ac_status=$?
32519   grep -v '^ *+' conftest.er1 >conftest.err
32520   rm -f conftest.er1
32521   cat conftest.err >&5
32522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523   (exit $ac_status); } && {
32524          test -z "$ac_c_werror_flag" ||
32525          test ! -s conftest.err
32526        } && test -s conftest.$ac_objext; then
32527   ac_cv_type_long_long=yes
32528 else
32529   echo "$as_me: failed program was:" >&5
32530 sed 's/^/| /' conftest.$ac_ext >&5
32531
32532         ac_cv_type_long_long=no
32533 fi
32534
32535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32536 fi
32537 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32538 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32539 if test $ac_cv_type_long_long = yes; then
32540
32541 cat >>confdefs.h <<_ACEOF
32542 #define HAVE_LONG_LONG 1
32543 _ACEOF
32544
32545
32546 fi
32547
32548 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32549 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32550 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32551   echo $ECHO_N "(cached) $ECHO_C" >&6
32552 else
32553   cat >conftest.$ac_ext <<_ACEOF
32554 /* confdefs.h.  */
32555 _ACEOF
32556 cat confdefs.h >>conftest.$ac_ext
32557 cat >>conftest.$ac_ext <<_ACEOF
32558 /* end confdefs.h.  */
32559 $ac_includes_default
32560 typedef ptrdiff_t ac__type_new_;
32561 int
32562 main ()
32563 {
32564 if ((ac__type_new_ *) 0)
32565   return 0;
32566 if (sizeof (ac__type_new_))
32567   return 0;
32568   ;
32569   return 0;
32570 }
32571 _ACEOF
32572 rm -f conftest.$ac_objext
32573 if { (ac_try="$ac_compile"
32574 case "(($ac_try" in
32575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576   *) ac_try_echo=$ac_try;;
32577 esac
32578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32579   (eval "$ac_compile") 2>conftest.er1
32580   ac_status=$?
32581   grep -v '^ *+' conftest.er1 >conftest.err
32582   rm -f conftest.er1
32583   cat conftest.err >&5
32584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585   (exit $ac_status); } && {
32586          test -z "$ac_c_werror_flag" ||
32587          test ! -s conftest.err
32588        } && test -s conftest.$ac_objext; then
32589   ac_cv_type_ptrdiff_t=yes
32590 else
32591   echo "$as_me: failed program was:" >&5
32592 sed 's/^/| /' conftest.$ac_ext >&5
32593
32594         ac_cv_type_ptrdiff_t=no
32595 fi
32596
32597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32598 fi
32599 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32600 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32601 if test $ac_cv_type_ptrdiff_t = yes; then
32602
32603 cat >>confdefs.h <<_ACEOF
32604 #define HAVE_PTRDIFF_T 1
32605 _ACEOF
32606
32607
32608 fi
32609
32610
32611
32612 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32613 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32614 if test "${ac_cv_type_socklen_t+set}" = set; then
32615   echo $ECHO_N "(cached) $ECHO_C" >&6
32616 else
32617   cat >conftest.$ac_ext <<_ACEOF
32618 /* confdefs.h.  */
32619 _ACEOF
32620 cat confdefs.h >>conftest.$ac_ext
32621 cat >>conftest.$ac_ext <<_ACEOF
32622 /* end confdefs.h.  */
32623 $ac_includes_default
32624 #ifdef HAVE_SYS_SOCKET_H
32625 #include <sys/socket.h>
32626 #endif
32627
32628 typedef socklen_t ac__type_new_;
32629 int
32630 main ()
32631 {
32632 if ((ac__type_new_ *) 0)
32633   return 0;
32634 if (sizeof (ac__type_new_))
32635   return 0;
32636   ;
32637   return 0;
32638 }
32639 _ACEOF
32640 rm -f conftest.$ac_objext
32641 if { (ac_try="$ac_compile"
32642 case "(($ac_try" in
32643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644   *) ac_try_echo=$ac_try;;
32645 esac
32646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647   (eval "$ac_compile") 2>conftest.er1
32648   ac_status=$?
32649   grep -v '^ *+' conftest.er1 >conftest.err
32650   rm -f conftest.er1
32651   cat conftest.err >&5
32652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653   (exit $ac_status); } && {
32654          test -z "$ac_c_werror_flag" ||
32655          test ! -s conftest.err
32656        } && test -s conftest.$ac_objext; then
32657   ac_cv_type_socklen_t=yes
32658 else
32659   echo "$as_me: failed program was:" >&5
32660 sed 's/^/| /' conftest.$ac_ext >&5
32661
32662         ac_cv_type_socklen_t=no
32663 fi
32664
32665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32666 fi
32667 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32668 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32669
32670
32671 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32672 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32673 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32674   echo $ECHO_N "(cached) $ECHO_C" >&6
32675 else
32676
32677         set socklen_t int unsigned "unsigned long" long size_t
32678         test "$ac_cv_type_socklen_t" = yes || shift
32679         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32680         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32681                 cat >conftest.$ac_ext <<_ACEOF
32682 /* confdefs.h.  */
32683 _ACEOF
32684 cat confdefs.h >>conftest.$ac_ext
32685 cat >>conftest.$ac_ext <<_ACEOF
32686 /* end confdefs.h.  */
32687 $ac_includes_default
32688 #ifdef HAVE_SYS_SOCKET_H
32689 #include <sys/socket.h>
32690 #endif
32691 extern int accept(int s, $addrtype *ap, $lentype *lp);
32692
32693 int
32694 main ()
32695 {
32696
32697 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32698
32699   ;
32700   return 0;
32701 }
32702 _ACEOF
32703 rm -f conftest.$ac_objext
32704 if { (ac_try="$ac_compile"
32705 case "(($ac_try" in
32706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707   *) ac_try_echo=$ac_try;;
32708 esac
32709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32710   (eval "$ac_compile") 2>conftest.er1
32711   ac_status=$?
32712   grep -v '^ *+' conftest.er1 >conftest.err
32713   rm -f conftest.er1
32714   cat conftest.err >&5
32715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716   (exit $ac_status); } && {
32717          test -z "$ac_c_werror_flag" ||
32718          test ! -s conftest.err
32719        } && test -s conftest.$ac_objext; then
32720   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32721 else
32722   echo "$as_me: failed program was:" >&5
32723 sed 's/^/| /' conftest.$ac_ext >&5
32724
32725
32726 fi
32727
32728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32729         done ; done
32730 fi
32731
32732 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32733 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32734
32735 cat >>confdefs.h <<_ACEOF
32736 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32737 _ACEOF
32738
32739
32740 if test "$ac_cv_type_socklen_t" != yes; then
32741
32742 cat >>confdefs.h <<_ACEOF
32743 #define socklen_t $ol_cv_type_ber_socklen_t
32744 _ACEOF
32745
32746 fi
32747
32748
32749 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32750 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32751 if test "${ac_cv_type_signal+set}" = set; then
32752   echo $ECHO_N "(cached) $ECHO_C" >&6
32753 else
32754   cat >conftest.$ac_ext <<_ACEOF
32755 /* confdefs.h.  */
32756 _ACEOF
32757 cat confdefs.h >>conftest.$ac_ext
32758 cat >>conftest.$ac_ext <<_ACEOF
32759 /* end confdefs.h.  */
32760 #include <sys/types.h>
32761 #include <signal.h>
32762
32763 int
32764 main ()
32765 {
32766 return *(signal (0, 0)) (0) == 1;
32767   ;
32768   return 0;
32769 }
32770 _ACEOF
32771 rm -f conftest.$ac_objext
32772 if { (ac_try="$ac_compile"
32773 case "(($ac_try" in
32774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775   *) ac_try_echo=$ac_try;;
32776 esac
32777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778   (eval "$ac_compile") 2>conftest.er1
32779   ac_status=$?
32780   grep -v '^ *+' conftest.er1 >conftest.err
32781   rm -f conftest.er1
32782   cat conftest.err >&5
32783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784   (exit $ac_status); } && {
32785          test -z "$ac_c_werror_flag" ||
32786          test ! -s conftest.err
32787        } && test -s conftest.$ac_objext; then
32788   ac_cv_type_signal=int
32789 else
32790   echo "$as_me: failed program was:" >&5
32791 sed 's/^/| /' conftest.$ac_ext >&5
32792
32793         ac_cv_type_signal=void
32794 fi
32795
32796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32797 fi
32798 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32799 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32800
32801 cat >>confdefs.h <<_ACEOF
32802 #define RETSIGTYPE $ac_cv_type_signal
32803 _ACEOF
32804
32805
32806
32807 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32808 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32809 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32810   echo $ECHO_N "(cached) $ECHO_C" >&6
32811 else
32812   cat >conftest.$ac_ext <<_ACEOF
32813 /* confdefs.h.  */
32814 _ACEOF
32815 cat confdefs.h >>conftest.$ac_ext
32816 cat >>conftest.$ac_ext <<_ACEOF
32817 /* end confdefs.h.  */
32818 $ac_includes_default
32819 #include <signal.h>
32820
32821
32822 typedef sig_atomic_t ac__type_new_;
32823 int
32824 main ()
32825 {
32826 if ((ac__type_new_ *) 0)
32827   return 0;
32828 if (sizeof (ac__type_new_))
32829   return 0;
32830   ;
32831   return 0;
32832 }
32833 _ACEOF
32834 rm -f conftest.$ac_objext
32835 if { (ac_try="$ac_compile"
32836 case "(($ac_try" in
32837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838   *) ac_try_echo=$ac_try;;
32839 esac
32840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841   (eval "$ac_compile") 2>conftest.er1
32842   ac_status=$?
32843   grep -v '^ *+' conftest.er1 >conftest.err
32844   rm -f conftest.er1
32845   cat conftest.err >&5
32846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847   (exit $ac_status); } && {
32848          test -z "$ac_c_werror_flag" ||
32849          test ! -s conftest.err
32850        } && test -s conftest.$ac_objext; then
32851   ac_cv_type_sig_atomic_t=yes
32852 else
32853   echo "$as_me: failed program was:" >&5
32854 sed 's/^/| /' conftest.$ac_ext >&5
32855
32856         ac_cv_type_sig_atomic_t=no
32857 fi
32858
32859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32860 fi
32861 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32862 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32863 if test $ac_cv_type_sig_atomic_t = yes; then
32864   :
32865 else
32866
32867 cat >>confdefs.h <<_ACEOF
32868 #define sig_atomic_t int
32869 _ACEOF
32870
32871 fi
32872
32873
32874 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32875 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32876 if test "${ac_cv_type_uid_t+set}" = set; then
32877   echo $ECHO_N "(cached) $ECHO_C" >&6
32878 else
32879   cat >conftest.$ac_ext <<_ACEOF
32880 /* confdefs.h.  */
32881 _ACEOF
32882 cat confdefs.h >>conftest.$ac_ext
32883 cat >>conftest.$ac_ext <<_ACEOF
32884 /* end confdefs.h.  */
32885 #include <sys/types.h>
32886
32887 _ACEOF
32888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32889   $EGREP "uid_t" >/dev/null 2>&1; then
32890   ac_cv_type_uid_t=yes
32891 else
32892   ac_cv_type_uid_t=no
32893 fi
32894 rm -f conftest*
32895
32896 fi
32897 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32898 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32899 if test $ac_cv_type_uid_t = no; then
32900
32901 cat >>confdefs.h <<\_ACEOF
32902 #define uid_t int
32903 _ACEOF
32904
32905
32906 cat >>confdefs.h <<\_ACEOF
32907 #define gid_t int
32908 _ACEOF
32909
32910 fi
32911
32912
32913 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32914 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32915 if test "${ac_cv_header_time+set}" = set; then
32916   echo $ECHO_N "(cached) $ECHO_C" >&6
32917 else
32918   cat >conftest.$ac_ext <<_ACEOF
32919 /* confdefs.h.  */
32920 _ACEOF
32921 cat confdefs.h >>conftest.$ac_ext
32922 cat >>conftest.$ac_ext <<_ACEOF
32923 /* end confdefs.h.  */
32924 #include <sys/types.h>
32925 #include <sys/time.h>
32926 #include <time.h>
32927
32928 int
32929 main ()
32930 {
32931 if ((struct tm *) 0)
32932 return 0;
32933   ;
32934   return 0;
32935 }
32936 _ACEOF
32937 rm -f conftest.$ac_objext
32938 if { (ac_try="$ac_compile"
32939 case "(($ac_try" in
32940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32941   *) ac_try_echo=$ac_try;;
32942 esac
32943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32944   (eval "$ac_compile") 2>conftest.er1
32945   ac_status=$?
32946   grep -v '^ *+' conftest.er1 >conftest.err
32947   rm -f conftest.er1
32948   cat conftest.err >&5
32949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950   (exit $ac_status); } && {
32951          test -z "$ac_c_werror_flag" ||
32952          test ! -s conftest.err
32953        } && test -s conftest.$ac_objext; then
32954   ac_cv_header_time=yes
32955 else
32956   echo "$as_me: failed program was:" >&5
32957 sed 's/^/| /' conftest.$ac_ext >&5
32958
32959         ac_cv_header_time=no
32960 fi
32961
32962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32963 fi
32964 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32965 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32966 if test $ac_cv_header_time = yes; then
32967
32968 cat >>confdefs.h <<\_ACEOF
32969 #define TIME_WITH_SYS_TIME 1
32970 _ACEOF
32971
32972 fi
32973
32974 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32975 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32976 if test "${ac_cv_struct_tm+set}" = set; then
32977   echo $ECHO_N "(cached) $ECHO_C" >&6
32978 else
32979   cat >conftest.$ac_ext <<_ACEOF
32980 /* confdefs.h.  */
32981 _ACEOF
32982 cat confdefs.h >>conftest.$ac_ext
32983 cat >>conftest.$ac_ext <<_ACEOF
32984 /* end confdefs.h.  */
32985 #include <sys/types.h>
32986 #include <time.h>
32987
32988 int
32989 main ()
32990 {
32991 struct tm tm;
32992                                      int *p = &tm.tm_sec;
32993                                      return !p;
32994   ;
32995   return 0;
32996 }
32997 _ACEOF
32998 rm -f conftest.$ac_objext
32999 if { (ac_try="$ac_compile"
33000 case "(($ac_try" in
33001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33002   *) ac_try_echo=$ac_try;;
33003 esac
33004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33005   (eval "$ac_compile") 2>conftest.er1
33006   ac_status=$?
33007   grep -v '^ *+' conftest.er1 >conftest.err
33008   rm -f conftest.er1
33009   cat conftest.err >&5
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); } && {
33012          test -z "$ac_c_werror_flag" ||
33013          test ! -s conftest.err
33014        } && test -s conftest.$ac_objext; then
33015   ac_cv_struct_tm=time.h
33016 else
33017   echo "$as_me: failed program was:" >&5
33018 sed 's/^/| /' conftest.$ac_ext >&5
33019
33020         ac_cv_struct_tm=sys/time.h
33021 fi
33022
33023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33024 fi
33025 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
33026 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
33027 if test $ac_cv_struct_tm = sys/time.h; then
33028
33029 cat >>confdefs.h <<\_ACEOF
33030 #define TM_IN_SYS_TIME 1
33031 _ACEOF
33032
33033 fi
33034
33035 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33036 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
33037 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33038   echo $ECHO_N "(cached) $ECHO_C" >&6
33039 else
33040   cat >conftest.$ac_ext <<_ACEOF
33041 /* confdefs.h.  */
33042 _ACEOF
33043 cat confdefs.h >>conftest.$ac_ext
33044 cat >>conftest.$ac_ext <<_ACEOF
33045 /* end confdefs.h.  */
33046 $ac_includes_default
33047 int
33048 main ()
33049 {
33050 static struct stat ac_aggr;
33051 if (ac_aggr.st_blksize)
33052 return 0;
33053   ;
33054   return 0;
33055 }
33056 _ACEOF
33057 rm -f conftest.$ac_objext
33058 if { (ac_try="$ac_compile"
33059 case "(($ac_try" in
33060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33061   *) ac_try_echo=$ac_try;;
33062 esac
33063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33064   (eval "$ac_compile") 2>conftest.er1
33065   ac_status=$?
33066   grep -v '^ *+' conftest.er1 >conftest.err
33067   rm -f conftest.er1
33068   cat conftest.err >&5
33069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33070   (exit $ac_status); } && {
33071          test -z "$ac_c_werror_flag" ||
33072          test ! -s conftest.err
33073        } && test -s conftest.$ac_objext; then
33074   ac_cv_member_struct_stat_st_blksize=yes
33075 else
33076   echo "$as_me: failed program was:" >&5
33077 sed 's/^/| /' conftest.$ac_ext >&5
33078
33079         cat >conftest.$ac_ext <<_ACEOF
33080 /* confdefs.h.  */
33081 _ACEOF
33082 cat confdefs.h >>conftest.$ac_ext
33083 cat >>conftest.$ac_ext <<_ACEOF
33084 /* end confdefs.h.  */
33085 $ac_includes_default
33086 int
33087 main ()
33088 {
33089 static struct stat ac_aggr;
33090 if (sizeof ac_aggr.st_blksize)
33091 return 0;
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_member_struct_stat_st_blksize=yes
33114 else
33115   echo "$as_me: failed program was:" >&5
33116 sed 's/^/| /' conftest.$ac_ext >&5
33117
33118         ac_cv_member_struct_stat_st_blksize=no
33119 fi
33120
33121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33122 fi
33123
33124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33125 fi
33126 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33127 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
33128 if test $ac_cv_member_struct_stat_st_blksize = yes; then
33129
33130 cat >>confdefs.h <<_ACEOF
33131 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33132 _ACEOF
33133
33134
33135 fi
33136
33137 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
33138 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
33139 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
33140   echo $ECHO_N "(cached) $ECHO_C" >&6
33141 else
33142   cat >conftest.$ac_ext <<_ACEOF
33143 /* confdefs.h.  */
33144 _ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h.  */
33148 $ac_includes_default
33149 #include <pwd.h>
33150
33151 int
33152 main ()
33153 {
33154 static struct passwd ac_aggr;
33155 if (ac_aggr.pw_gecos)
33156 return 0;
33157   ;
33158   return 0;
33159 }
33160 _ACEOF
33161 rm -f conftest.$ac_objext
33162 if { (ac_try="$ac_compile"
33163 case "(($ac_try" in
33164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165   *) ac_try_echo=$ac_try;;
33166 esac
33167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168   (eval "$ac_compile") 2>conftest.er1
33169   ac_status=$?
33170   grep -v '^ *+' conftest.er1 >conftest.err
33171   rm -f conftest.er1
33172   cat conftest.err >&5
33173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174   (exit $ac_status); } && {
33175          test -z "$ac_c_werror_flag" ||
33176          test ! -s conftest.err
33177        } && test -s conftest.$ac_objext; then
33178   ac_cv_member_struct_passwd_pw_gecos=yes
33179 else
33180   echo "$as_me: failed program was:" >&5
33181 sed 's/^/| /' conftest.$ac_ext >&5
33182
33183         cat >conftest.$ac_ext <<_ACEOF
33184 /* confdefs.h.  */
33185 _ACEOF
33186 cat confdefs.h >>conftest.$ac_ext
33187 cat >>conftest.$ac_ext <<_ACEOF
33188 /* end confdefs.h.  */
33189 $ac_includes_default
33190 #include <pwd.h>
33191
33192 int
33193 main ()
33194 {
33195 static struct passwd ac_aggr;
33196 if (sizeof ac_aggr.pw_gecos)
33197 return 0;
33198   ;
33199   return 0;
33200 }
33201 _ACEOF
33202 rm -f conftest.$ac_objext
33203 if { (ac_try="$ac_compile"
33204 case "(($ac_try" in
33205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33206   *) ac_try_echo=$ac_try;;
33207 esac
33208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33209   (eval "$ac_compile") 2>conftest.er1
33210   ac_status=$?
33211   grep -v '^ *+' conftest.er1 >conftest.err
33212   rm -f conftest.er1
33213   cat conftest.err >&5
33214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215   (exit $ac_status); } && {
33216          test -z "$ac_c_werror_flag" ||
33217          test ! -s conftest.err
33218        } && test -s conftest.$ac_objext; then
33219   ac_cv_member_struct_passwd_pw_gecos=yes
33220 else
33221   echo "$as_me: failed program was:" >&5
33222 sed 's/^/| /' conftest.$ac_ext >&5
33223
33224         ac_cv_member_struct_passwd_pw_gecos=no
33225 fi
33226
33227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33228 fi
33229
33230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33231 fi
33232 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
33233 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
33234 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
33235
33236 cat >>confdefs.h <<_ACEOF
33237 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
33238 _ACEOF
33239
33240
33241 fi
33242
33243 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
33244 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
33245 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
33246   echo $ECHO_N "(cached) $ECHO_C" >&6
33247 else
33248   cat >conftest.$ac_ext <<_ACEOF
33249 /* confdefs.h.  */
33250 _ACEOF
33251 cat confdefs.h >>conftest.$ac_ext
33252 cat >>conftest.$ac_ext <<_ACEOF
33253 /* end confdefs.h.  */
33254 $ac_includes_default
33255 #include <pwd.h>
33256
33257 int
33258 main ()
33259 {
33260 static struct passwd ac_aggr;
33261 if (ac_aggr.pw_passwd)
33262 return 0;
33263   ;
33264   return 0;
33265 }
33266 _ACEOF
33267 rm -f conftest.$ac_objext
33268 if { (ac_try="$ac_compile"
33269 case "(($ac_try" in
33270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271   *) ac_try_echo=$ac_try;;
33272 esac
33273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33274   (eval "$ac_compile") 2>conftest.er1
33275   ac_status=$?
33276   grep -v '^ *+' conftest.er1 >conftest.err
33277   rm -f conftest.er1
33278   cat conftest.err >&5
33279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280   (exit $ac_status); } && {
33281          test -z "$ac_c_werror_flag" ||
33282          test ! -s conftest.err
33283        } && test -s conftest.$ac_objext; then
33284   ac_cv_member_struct_passwd_pw_passwd=yes
33285 else
33286   echo "$as_me: failed program was:" >&5
33287 sed 's/^/| /' conftest.$ac_ext >&5
33288
33289         cat >conftest.$ac_ext <<_ACEOF
33290 /* confdefs.h.  */
33291 _ACEOF
33292 cat confdefs.h >>conftest.$ac_ext
33293 cat >>conftest.$ac_ext <<_ACEOF
33294 /* end confdefs.h.  */
33295 $ac_includes_default
33296 #include <pwd.h>
33297
33298 int
33299 main ()
33300 {
33301 static struct passwd ac_aggr;
33302 if (sizeof ac_aggr.pw_passwd)
33303 return 0;
33304   ;
33305   return 0;
33306 }
33307 _ACEOF
33308 rm -f conftest.$ac_objext
33309 if { (ac_try="$ac_compile"
33310 case "(($ac_try" in
33311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33312   *) ac_try_echo=$ac_try;;
33313 esac
33314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33315   (eval "$ac_compile") 2>conftest.er1
33316   ac_status=$?
33317   grep -v '^ *+' conftest.er1 >conftest.err
33318   rm -f conftest.er1
33319   cat conftest.err >&5
33320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321   (exit $ac_status); } && {
33322          test -z "$ac_c_werror_flag" ||
33323          test ! -s conftest.err
33324        } && test -s conftest.$ac_objext; then
33325   ac_cv_member_struct_passwd_pw_passwd=yes
33326 else
33327   echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33329
33330         ac_cv_member_struct_passwd_pw_passwd=no
33331 fi
33332
33333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33334 fi
33335
33336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33337 fi
33338 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33339 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
33340 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33341
33342 cat >>confdefs.h <<_ACEOF
33343 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33344 _ACEOF
33345
33346
33347 fi
33348
33349
33350 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33351 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
33352 if test "${ol_cv_c_upper_lower+set}" = set; then
33353   echo $ECHO_N "(cached) $ECHO_C" >&6
33354 else
33355
33356         if test "$cross_compiling" = yes; then
33357   ol_cv_c_upper_lower=safe
33358 else
33359   cat >conftest.$ac_ext <<_ACEOF
33360 /* confdefs.h.  */
33361 _ACEOF
33362 cat confdefs.h >>conftest.$ac_ext
33363 cat >>conftest.$ac_ext <<_ACEOF
33364 /* end confdefs.h.  */
33365
33366 #include <ctype.h>
33367 main()
33368 {
33369         if ('C' == toupper('C'))
33370                 exit(0);
33371         else
33372                 exit(1);
33373 }
33374 _ACEOF
33375 rm -f conftest$ac_exeext
33376 if { (ac_try="$ac_link"
33377 case "(($ac_try" in
33378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33379   *) ac_try_echo=$ac_try;;
33380 esac
33381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33382   (eval "$ac_link") 2>&5
33383   ac_status=$?
33384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
33392   ac_status=$?
33393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394   (exit $ac_status); }; }; then
33395   ol_cv_c_upper_lower=no
33396 else
33397   echo "$as_me: program exited with status $ac_status" >&5
33398 echo "$as_me: failed program was:" >&5
33399 sed 's/^/| /' conftest.$ac_ext >&5
33400
33401 ( exit $ac_status )
33402 ol_cv_c_upper_lower=yes
33403 fi
33404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33405 fi
33406
33407
33408 fi
33409 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33410 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33411 if test $ol_cv_c_upper_lower != no ; then
33412
33413 cat >>confdefs.h <<\_ACEOF
33414 #define C_UPPER_LOWER 1
33415 _ACEOF
33416
33417 fi
33418
33419 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33420 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33421 if test "${ac_cv_c_const+set}" = set; then
33422   echo $ECHO_N "(cached) $ECHO_C" >&6
33423 else
33424   cat >conftest.$ac_ext <<_ACEOF
33425 /* confdefs.h.  */
33426 _ACEOF
33427 cat confdefs.h >>conftest.$ac_ext
33428 cat >>conftest.$ac_ext <<_ACEOF
33429 /* end confdefs.h.  */
33430
33431 int
33432 main ()
33433 {
33434 /* FIXME: Include the comments suggested by Paul. */
33435 #ifndef __cplusplus
33436   /* Ultrix mips cc rejects this.  */
33437   typedef int charset[2];
33438   const charset cs;
33439   /* SunOS 4.1.1 cc rejects this.  */
33440   char const *const *pcpcc;
33441   char **ppc;
33442   /* NEC SVR4.0.2 mips cc rejects this.  */
33443   struct point {int x, y;};
33444   static struct point const zero = {0,0};
33445   /* AIX XL C 1.02.0.0 rejects this.
33446      It does not let you subtract one const X* pointer from another in
33447      an arm of an if-expression whose if-part is not a constant
33448      expression */
33449   const char *g = "string";
33450   pcpcc = &g + (g ? g-g : 0);
33451   /* HPUX 7.0 cc rejects these. */
33452   ++pcpcc;
33453   ppc = (char**) pcpcc;
33454   pcpcc = (char const *const *) ppc;
33455   { /* SCO 3.2v4 cc rejects this.  */
33456     char *t;
33457     char const *s = 0 ? (char *) 0 : (char const *) 0;
33458
33459     *t++ = 0;
33460     if (s) return 0;
33461   }
33462   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33463     int x[] = {25, 17};
33464     const int *foo = &x[0];
33465     ++foo;
33466   }
33467   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33468     typedef const int *iptr;
33469     iptr p = 0;
33470     ++p;
33471   }
33472   { /* AIX XL C 1.02.0.0 rejects this saying
33473        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33474     struct s { int j; const int *ap[3]; };
33475     struct s *b; b->j = 5;
33476   }
33477   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33478     const int foo = 10;
33479     if (!foo) return 0;
33480   }
33481   return !cs[0] && !zero.x;
33482 #endif
33483
33484   ;
33485   return 0;
33486 }
33487 _ACEOF
33488 rm -f conftest.$ac_objext
33489 if { (ac_try="$ac_compile"
33490 case "(($ac_try" in
33491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33492   *) ac_try_echo=$ac_try;;
33493 esac
33494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33495   (eval "$ac_compile") 2>conftest.er1
33496   ac_status=$?
33497   grep -v '^ *+' conftest.er1 >conftest.err
33498   rm -f conftest.er1
33499   cat conftest.err >&5
33500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501   (exit $ac_status); } && {
33502          test -z "$ac_c_werror_flag" ||
33503          test ! -s conftest.err
33504        } && test -s conftest.$ac_objext; then
33505   ac_cv_c_const=yes
33506 else
33507   echo "$as_me: failed program was:" >&5
33508 sed 's/^/| /' conftest.$ac_ext >&5
33509
33510         ac_cv_c_const=no
33511 fi
33512
33513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33514 fi
33515 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33516 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33517 if test $ac_cv_c_const = no; then
33518
33519 cat >>confdefs.h <<\_ACEOF
33520 #define const
33521 _ACEOF
33522
33523 fi
33524
33525 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33526 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33527 if test "${ol_cv_c_volatile+set}" = set; then
33528   echo $ECHO_N "(cached) $ECHO_C" >&6
33529 else
33530   cat >conftest.$ac_ext <<_ACEOF
33531 /* confdefs.h.  */
33532 _ACEOF
33533 cat confdefs.h >>conftest.$ac_ext
33534 cat >>conftest.$ac_ext <<_ACEOF
33535 /* end confdefs.h.  */
33536 int x, y, z;
33537 int
33538 main ()
33539 {
33540 volatile int a; int * volatile b = x ? &y : &z;
33541       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33542       *b = 0;
33543   ;
33544   return 0;
33545 }
33546 _ACEOF
33547 rm -f conftest.$ac_objext
33548 if { (ac_try="$ac_compile"
33549 case "(($ac_try" in
33550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33551   *) ac_try_echo=$ac_try;;
33552 esac
33553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33554   (eval "$ac_compile") 2>conftest.er1
33555   ac_status=$?
33556   grep -v '^ *+' conftest.er1 >conftest.err
33557   rm -f conftest.er1
33558   cat conftest.err >&5
33559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33560   (exit $ac_status); } && {
33561          test -z "$ac_c_werror_flag" ||
33562          test ! -s conftest.err
33563        } && test -s conftest.$ac_objext; then
33564   ol_cv_c_volatile=yes
33565 else
33566   echo "$as_me: failed program was:" >&5
33567 sed 's/^/| /' conftest.$ac_ext >&5
33568
33569         ol_cv_c_volatile=no
33570 fi
33571
33572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33573 fi
33574 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33575 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33576   if test $ol_cv_c_volatile = yes; then
33577     :
33578   else
33579
33580 cat >>confdefs.h <<\_ACEOF
33581 #define volatile
33582 _ACEOF
33583
33584   fi
33585
33586
33587 if test $cross_compiling = yes ; then
33588         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33589 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33590
33591 cat >>confdefs.h <<\_ACEOF
33592 #define CROSS_COMPILING 1
33593 _ACEOF
33594
33595 else
33596         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33597 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33598 if test "${ac_cv_c_bigendian+set}" = set; then
33599   echo $ECHO_N "(cached) $ECHO_C" >&6
33600 else
33601   # See if sys/param.h defines the BYTE_ORDER macro.
33602 cat >conftest.$ac_ext <<_ACEOF
33603 /* confdefs.h.  */
33604 _ACEOF
33605 cat confdefs.h >>conftest.$ac_ext
33606 cat >>conftest.$ac_ext <<_ACEOF
33607 /* end confdefs.h.  */
33608 #include <sys/types.h>
33609 #include <sys/param.h>
33610
33611 int
33612 main ()
33613 {
33614 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33615         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33616  bogus endian macros
33617 #endif
33618
33619   ;
33620   return 0;
33621 }
33622 _ACEOF
33623 rm -f conftest.$ac_objext
33624 if { (ac_try="$ac_compile"
33625 case "(($ac_try" in
33626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627   *) ac_try_echo=$ac_try;;
33628 esac
33629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33630   (eval "$ac_compile") 2>conftest.er1
33631   ac_status=$?
33632   grep -v '^ *+' conftest.er1 >conftest.err
33633   rm -f conftest.er1
33634   cat conftest.err >&5
33635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636   (exit $ac_status); } && {
33637          test -z "$ac_c_werror_flag" ||
33638          test ! -s conftest.err
33639        } && test -s conftest.$ac_objext; then
33640   # It does; now see whether it defined to BIG_ENDIAN or not.
33641 cat >conftest.$ac_ext <<_ACEOF
33642 /* confdefs.h.  */
33643 _ACEOF
33644 cat confdefs.h >>conftest.$ac_ext
33645 cat >>conftest.$ac_ext <<_ACEOF
33646 /* end confdefs.h.  */
33647 #include <sys/types.h>
33648 #include <sys/param.h>
33649
33650 int
33651 main ()
33652 {
33653 #if BYTE_ORDER != BIG_ENDIAN
33654  not big endian
33655 #endif
33656
33657   ;
33658   return 0;
33659 }
33660 _ACEOF
33661 rm -f conftest.$ac_objext
33662 if { (ac_try="$ac_compile"
33663 case "(($ac_try" in
33664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33665   *) ac_try_echo=$ac_try;;
33666 esac
33667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33668   (eval "$ac_compile") 2>conftest.er1
33669   ac_status=$?
33670   grep -v '^ *+' conftest.er1 >conftest.err
33671   rm -f conftest.er1
33672   cat conftest.err >&5
33673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674   (exit $ac_status); } && {
33675          test -z "$ac_c_werror_flag" ||
33676          test ! -s conftest.err
33677        } && test -s conftest.$ac_objext; then
33678   ac_cv_c_bigendian=yes
33679 else
33680   echo "$as_me: failed program was:" >&5
33681 sed 's/^/| /' conftest.$ac_ext >&5
33682
33683         ac_cv_c_bigendian=no
33684 fi
33685
33686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33687 else
33688   echo "$as_me: failed program was:" >&5
33689 sed 's/^/| /' conftest.$ac_ext >&5
33690
33691         # It does not; compile a test program.
33692 if test "$cross_compiling" = yes; then
33693   # try to guess the endianness by grepping values into an object file
33694   ac_cv_c_bigendian=unknown
33695   cat >conftest.$ac_ext <<_ACEOF
33696 /* confdefs.h.  */
33697 _ACEOF
33698 cat confdefs.h >>conftest.$ac_ext
33699 cat >>conftest.$ac_ext <<_ACEOF
33700 /* end confdefs.h.  */
33701 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33702 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33703 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33704 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33705 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33706 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33707 int
33708 main ()
33709 {
33710  _ascii (); _ebcdic ();
33711   ;
33712   return 0;
33713 }
33714 _ACEOF
33715 rm -f conftest.$ac_objext
33716 if { (ac_try="$ac_compile"
33717 case "(($ac_try" in
33718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33719   *) ac_try_echo=$ac_try;;
33720 esac
33721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33722   (eval "$ac_compile") 2>conftest.er1
33723   ac_status=$?
33724   grep -v '^ *+' conftest.er1 >conftest.err
33725   rm -f conftest.er1
33726   cat conftest.err >&5
33727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728   (exit $ac_status); } && {
33729          test -z "$ac_c_werror_flag" ||
33730          test ! -s conftest.err
33731        } && test -s conftest.$ac_objext; then
33732   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33733   ac_cv_c_bigendian=yes
33734 fi
33735 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33736   if test "$ac_cv_c_bigendian" = unknown; then
33737     ac_cv_c_bigendian=no
33738   else
33739     # finding both strings is unlikely to happen, but who knows?
33740     ac_cv_c_bigendian=unknown
33741   fi
33742 fi
33743 else
33744   echo "$as_me: failed program was:" >&5
33745 sed 's/^/| /' conftest.$ac_ext >&5
33746
33747
33748 fi
33749
33750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33751 else
33752   cat >conftest.$ac_ext <<_ACEOF
33753 /* confdefs.h.  */
33754 _ACEOF
33755 cat confdefs.h >>conftest.$ac_ext
33756 cat >>conftest.$ac_ext <<_ACEOF
33757 /* end confdefs.h.  */
33758 $ac_includes_default
33759 int
33760 main ()
33761 {
33762
33763   /* Are we little or big endian?  From Harbison&Steele.  */
33764   union
33765   {
33766     long int l;
33767     char c[sizeof (long int)];
33768   } u;
33769   u.l = 1;
33770   return u.c[sizeof (long int) - 1] == 1;
33771
33772   ;
33773   return 0;
33774 }
33775 _ACEOF
33776 rm -f conftest$ac_exeext
33777 if { (ac_try="$ac_link"
33778 case "(($ac_try" in
33779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33780   *) ac_try_echo=$ac_try;;
33781 esac
33782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33783   (eval "$ac_link") 2>&5
33784   ac_status=$?
33785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33787   { (case "(($ac_try" in
33788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33789   *) ac_try_echo=$ac_try;;
33790 esac
33791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33792   (eval "$ac_try") 2>&5
33793   ac_status=$?
33794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795   (exit $ac_status); }; }; then
33796   ac_cv_c_bigendian=no
33797 else
33798   echo "$as_me: program exited with status $ac_status" >&5
33799 echo "$as_me: failed program was:" >&5
33800 sed 's/^/| /' conftest.$ac_ext >&5
33801
33802 ( exit $ac_status )
33803 ac_cv_c_bigendian=yes
33804 fi
33805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33806 fi
33807
33808
33809 fi
33810
33811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33812 fi
33813 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33814 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33815 case $ac_cv_c_bigendian in
33816   yes)
33817
33818 cat >>confdefs.h <<\_ACEOF
33819 #define WORDS_BIGENDIAN 1
33820 _ACEOF
33821  ;;
33822   no)
33823      ;;
33824   *)
33825     { { echo "$as_me:$LINENO: error: unknown endianness
33826 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33827 echo "$as_me: error: unknown endianness
33828 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33829    { (exit 1); exit 1; }; } ;;
33830 esac
33831
33832 fi
33833
33834 { echo "$as_me:$LINENO: checking for short" >&5
33835 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33836 if test "${ac_cv_type_short+set}" = set; then
33837   echo $ECHO_N "(cached) $ECHO_C" >&6
33838 else
33839   cat >conftest.$ac_ext <<_ACEOF
33840 /* confdefs.h.  */
33841 _ACEOF
33842 cat confdefs.h >>conftest.$ac_ext
33843 cat >>conftest.$ac_ext <<_ACEOF
33844 /* end confdefs.h.  */
33845 $ac_includes_default
33846 typedef short ac__type_new_;
33847 int
33848 main ()
33849 {
33850 if ((ac__type_new_ *) 0)
33851   return 0;
33852 if (sizeof (ac__type_new_))
33853   return 0;
33854   ;
33855   return 0;
33856 }
33857 _ACEOF
33858 rm -f conftest.$ac_objext
33859 if { (ac_try="$ac_compile"
33860 case "(($ac_try" in
33861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33862   *) ac_try_echo=$ac_try;;
33863 esac
33864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33865   (eval "$ac_compile") 2>conftest.er1
33866   ac_status=$?
33867   grep -v '^ *+' conftest.er1 >conftest.err
33868   rm -f conftest.er1
33869   cat conftest.err >&5
33870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33871   (exit $ac_status); } && {
33872          test -z "$ac_c_werror_flag" ||
33873          test ! -s conftest.err
33874        } && test -s conftest.$ac_objext; then
33875   ac_cv_type_short=yes
33876 else
33877   echo "$as_me: failed program was:" >&5
33878 sed 's/^/| /' conftest.$ac_ext >&5
33879
33880         ac_cv_type_short=no
33881 fi
33882
33883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33884 fi
33885 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33886 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33887
33888 # The cast to long int works around a bug in the HP C Compiler
33889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33891 # This bug is HP SR number 8606223364.
33892 { echo "$as_me:$LINENO: checking size of short" >&5
33893 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33894 if test "${ac_cv_sizeof_short+set}" = set; then
33895   echo $ECHO_N "(cached) $ECHO_C" >&6
33896 else
33897   if test "$cross_compiling" = yes; then
33898   # Depending upon the size, compute the lo and hi bounds.
33899 cat >conftest.$ac_ext <<_ACEOF
33900 /* confdefs.h.  */
33901 _ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h.  */
33905 $ac_includes_default
33906    typedef short ac__type_sizeof_;
33907 int
33908 main ()
33909 {
33910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33911 test_array [0] = 0
33912
33913   ;
33914   return 0;
33915 }
33916 _ACEOF
33917 rm -f conftest.$ac_objext
33918 if { (ac_try="$ac_compile"
33919 case "(($ac_try" in
33920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33921   *) ac_try_echo=$ac_try;;
33922 esac
33923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33924   (eval "$ac_compile") 2>conftest.er1
33925   ac_status=$?
33926   grep -v '^ *+' conftest.er1 >conftest.err
33927   rm -f conftest.er1
33928   cat conftest.err >&5
33929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930   (exit $ac_status); } && {
33931          test -z "$ac_c_werror_flag" ||
33932          test ! -s conftest.err
33933        } && test -s conftest.$ac_objext; then
33934   ac_lo=0 ac_mid=0
33935   while :; do
33936     cat >conftest.$ac_ext <<_ACEOF
33937 /* confdefs.h.  */
33938 _ACEOF
33939 cat confdefs.h >>conftest.$ac_ext
33940 cat >>conftest.$ac_ext <<_ACEOF
33941 /* end confdefs.h.  */
33942 $ac_includes_default
33943    typedef short ac__type_sizeof_;
33944 int
33945 main ()
33946 {
33947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33948 test_array [0] = 0
33949
33950   ;
33951   return 0;
33952 }
33953 _ACEOF
33954 rm -f conftest.$ac_objext
33955 if { (ac_try="$ac_compile"
33956 case "(($ac_try" in
33957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958   *) ac_try_echo=$ac_try;;
33959 esac
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961   (eval "$ac_compile") 2>conftest.er1
33962   ac_status=$?
33963   grep -v '^ *+' conftest.er1 >conftest.err
33964   rm -f conftest.er1
33965   cat conftest.err >&5
33966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967   (exit $ac_status); } && {
33968          test -z "$ac_c_werror_flag" ||
33969          test ! -s conftest.err
33970        } && test -s conftest.$ac_objext; then
33971   ac_hi=$ac_mid; break
33972 else
33973   echo "$as_me: failed program was:" >&5
33974 sed 's/^/| /' conftest.$ac_ext >&5
33975
33976         ac_lo=`expr $ac_mid + 1`
33977                         if test $ac_lo -le $ac_mid; then
33978                           ac_lo= ac_hi=
33979                           break
33980                         fi
33981                         ac_mid=`expr 2 '*' $ac_mid + 1`
33982 fi
33983
33984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33985   done
33986 else
33987   echo "$as_me: failed program was:" >&5
33988 sed 's/^/| /' conftest.$ac_ext >&5
33989
33990         cat >conftest.$ac_ext <<_ACEOF
33991 /* confdefs.h.  */
33992 _ACEOF
33993 cat confdefs.h >>conftest.$ac_ext
33994 cat >>conftest.$ac_ext <<_ACEOF
33995 /* end confdefs.h.  */
33996 $ac_includes_default
33997    typedef short ac__type_sizeof_;
33998 int
33999 main ()
34000 {
34001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34002 test_array [0] = 0
34003
34004   ;
34005   return 0;
34006 }
34007 _ACEOF
34008 rm -f conftest.$ac_objext
34009 if { (ac_try="$ac_compile"
34010 case "(($ac_try" in
34011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34012   *) ac_try_echo=$ac_try;;
34013 esac
34014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34015   (eval "$ac_compile") 2>conftest.er1
34016   ac_status=$?
34017   grep -v '^ *+' conftest.er1 >conftest.err
34018   rm -f conftest.er1
34019   cat conftest.err >&5
34020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021   (exit $ac_status); } && {
34022          test -z "$ac_c_werror_flag" ||
34023          test ! -s conftest.err
34024        } && test -s conftest.$ac_objext; then
34025   ac_hi=-1 ac_mid=-1
34026   while :; do
34027     cat >conftest.$ac_ext <<_ACEOF
34028 /* confdefs.h.  */
34029 _ACEOF
34030 cat confdefs.h >>conftest.$ac_ext
34031 cat >>conftest.$ac_ext <<_ACEOF
34032 /* end confdefs.h.  */
34033 $ac_includes_default
34034    typedef short ac__type_sizeof_;
34035 int
34036 main ()
34037 {
34038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34039 test_array [0] = 0
34040
34041   ;
34042   return 0;
34043 }
34044 _ACEOF
34045 rm -f conftest.$ac_objext
34046 if { (ac_try="$ac_compile"
34047 case "(($ac_try" in
34048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34049   *) ac_try_echo=$ac_try;;
34050 esac
34051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34052   (eval "$ac_compile") 2>conftest.er1
34053   ac_status=$?
34054   grep -v '^ *+' conftest.er1 >conftest.err
34055   rm -f conftest.er1
34056   cat conftest.err >&5
34057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058   (exit $ac_status); } && {
34059          test -z "$ac_c_werror_flag" ||
34060          test ! -s conftest.err
34061        } && test -s conftest.$ac_objext; then
34062   ac_lo=$ac_mid; break
34063 else
34064   echo "$as_me: failed program was:" >&5
34065 sed 's/^/| /' conftest.$ac_ext >&5
34066
34067         ac_hi=`expr '(' $ac_mid ')' - 1`
34068                         if test $ac_mid -le $ac_hi; then
34069                           ac_lo= ac_hi=
34070                           break
34071                         fi
34072                         ac_mid=`expr 2 '*' $ac_mid`
34073 fi
34074
34075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34076   done
34077 else
34078   echo "$as_me: failed program was:" >&5
34079 sed 's/^/| /' conftest.$ac_ext >&5
34080
34081         ac_lo= ac_hi=
34082 fi
34083
34084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34085 fi
34086
34087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34088 # Binary search between lo and hi bounds.
34089 while test "x$ac_lo" != "x$ac_hi"; do
34090   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34091   cat >conftest.$ac_ext <<_ACEOF
34092 /* confdefs.h.  */
34093 _ACEOF
34094 cat confdefs.h >>conftest.$ac_ext
34095 cat >>conftest.$ac_ext <<_ACEOF
34096 /* end confdefs.h.  */
34097 $ac_includes_default
34098    typedef short ac__type_sizeof_;
34099 int
34100 main ()
34101 {
34102 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34103 test_array [0] = 0
34104
34105   ;
34106   return 0;
34107 }
34108 _ACEOF
34109 rm -f conftest.$ac_objext
34110 if { (ac_try="$ac_compile"
34111 case "(($ac_try" in
34112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34113   *) ac_try_echo=$ac_try;;
34114 esac
34115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34116   (eval "$ac_compile") 2>conftest.er1
34117   ac_status=$?
34118   grep -v '^ *+' conftest.er1 >conftest.err
34119   rm -f conftest.er1
34120   cat conftest.err >&5
34121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122   (exit $ac_status); } && {
34123          test -z "$ac_c_werror_flag" ||
34124          test ! -s conftest.err
34125        } && test -s conftest.$ac_objext; then
34126   ac_hi=$ac_mid
34127 else
34128   echo "$as_me: failed program was:" >&5
34129 sed 's/^/| /' conftest.$ac_ext >&5
34130
34131         ac_lo=`expr '(' $ac_mid ')' + 1`
34132 fi
34133
34134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34135 done
34136 case $ac_lo in
34137 ?*) ac_cv_sizeof_short=$ac_lo;;
34138 '') if test "$ac_cv_type_short" = yes; then
34139      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
34140 See \`config.log' for more details." >&5
34141 echo "$as_me: error: cannot compute sizeof (short)
34142 See \`config.log' for more details." >&2;}
34143    { (exit 77); exit 77; }; }
34144    else
34145      ac_cv_sizeof_short=0
34146    fi ;;
34147 esac
34148 else
34149   cat >conftest.$ac_ext <<_ACEOF
34150 /* confdefs.h.  */
34151 _ACEOF
34152 cat confdefs.h >>conftest.$ac_ext
34153 cat >>conftest.$ac_ext <<_ACEOF
34154 /* end confdefs.h.  */
34155 $ac_includes_default
34156    typedef short ac__type_sizeof_;
34157 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34158 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34159 #include <stdio.h>
34160 #include <stdlib.h>
34161 int
34162 main ()
34163 {
34164
34165   FILE *f = fopen ("conftest.val", "w");
34166   if (! f)
34167     return 1;
34168   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34169     {
34170       long int i = longval ();
34171       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34172         return 1;
34173       fprintf (f, "%ld\n", i);
34174     }
34175   else
34176     {
34177       unsigned long int i = ulongval ();
34178       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34179         return 1;
34180       fprintf (f, "%lu\n", i);
34181     }
34182   return ferror (f) || fclose (f) != 0;
34183
34184   ;
34185   return 0;
34186 }
34187 _ACEOF
34188 rm -f conftest$ac_exeext
34189 if { (ac_try="$ac_link"
34190 case "(($ac_try" in
34191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34192   *) ac_try_echo=$ac_try;;
34193 esac
34194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34195   (eval "$ac_link") 2>&5
34196   ac_status=$?
34197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34199   { (case "(($ac_try" in
34200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34201   *) ac_try_echo=$ac_try;;
34202 esac
34203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34204   (eval "$ac_try") 2>&5
34205   ac_status=$?
34206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207   (exit $ac_status); }; }; then
34208   ac_cv_sizeof_short=`cat conftest.val`
34209 else
34210   echo "$as_me: program exited with status $ac_status" >&5
34211 echo "$as_me: failed program was:" >&5
34212 sed 's/^/| /' conftest.$ac_ext >&5
34213
34214 ( exit $ac_status )
34215 if test "$ac_cv_type_short" = yes; then
34216      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
34217 See \`config.log' for more details." >&5
34218 echo "$as_me: error: cannot compute sizeof (short)
34219 See \`config.log' for more details." >&2;}
34220    { (exit 77); exit 77; }; }
34221    else
34222      ac_cv_sizeof_short=0
34223    fi
34224 fi
34225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34226 fi
34227 rm -f conftest.val
34228 fi
34229 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
34230 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
34231
34232
34233
34234 cat >>confdefs.h <<_ACEOF
34235 #define SIZEOF_SHORT $ac_cv_sizeof_short
34236 _ACEOF
34237
34238
34239 { echo "$as_me:$LINENO: checking for int" >&5
34240 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34241 if test "${ac_cv_type_int+set}" = set; then
34242   echo $ECHO_N "(cached) $ECHO_C" >&6
34243 else
34244   cat >conftest.$ac_ext <<_ACEOF
34245 /* confdefs.h.  */
34246 _ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h.  */
34250 $ac_includes_default
34251 typedef int ac__type_new_;
34252 int
34253 main ()
34254 {
34255 if ((ac__type_new_ *) 0)
34256   return 0;
34257 if (sizeof (ac__type_new_))
34258   return 0;
34259   ;
34260   return 0;
34261 }
34262 _ACEOF
34263 rm -f conftest.$ac_objext
34264 if { (ac_try="$ac_compile"
34265 case "(($ac_try" in
34266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34267   *) ac_try_echo=$ac_try;;
34268 esac
34269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34270   (eval "$ac_compile") 2>conftest.er1
34271   ac_status=$?
34272   grep -v '^ *+' conftest.er1 >conftest.err
34273   rm -f conftest.er1
34274   cat conftest.err >&5
34275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276   (exit $ac_status); } && {
34277          test -z "$ac_c_werror_flag" ||
34278          test ! -s conftest.err
34279        } && test -s conftest.$ac_objext; then
34280   ac_cv_type_int=yes
34281 else
34282   echo "$as_me: failed program was:" >&5
34283 sed 's/^/| /' conftest.$ac_ext >&5
34284
34285         ac_cv_type_int=no
34286 fi
34287
34288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34289 fi
34290 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
34291 echo "${ECHO_T}$ac_cv_type_int" >&6; }
34292
34293 # The cast to long int works around a bug in the HP C Compiler
34294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34296 # This bug is HP SR number 8606223364.
34297 { echo "$as_me:$LINENO: checking size of int" >&5
34298 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
34299 if test "${ac_cv_sizeof_int+set}" = set; then
34300   echo $ECHO_N "(cached) $ECHO_C" >&6
34301 else
34302   if test "$cross_compiling" = yes; then
34303   # Depending upon the size, compute the lo and hi bounds.
34304 cat >conftest.$ac_ext <<_ACEOF
34305 /* confdefs.h.  */
34306 _ACEOF
34307 cat confdefs.h >>conftest.$ac_ext
34308 cat >>conftest.$ac_ext <<_ACEOF
34309 /* end confdefs.h.  */
34310 $ac_includes_default
34311    typedef int ac__type_sizeof_;
34312 int
34313 main ()
34314 {
34315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34316 test_array [0] = 0
34317
34318   ;
34319   return 0;
34320 }
34321 _ACEOF
34322 rm -f conftest.$ac_objext
34323 if { (ac_try="$ac_compile"
34324 case "(($ac_try" in
34325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34326   *) ac_try_echo=$ac_try;;
34327 esac
34328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34329   (eval "$ac_compile") 2>conftest.er1
34330   ac_status=$?
34331   grep -v '^ *+' conftest.er1 >conftest.err
34332   rm -f conftest.er1
34333   cat conftest.err >&5
34334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335   (exit $ac_status); } && {
34336          test -z "$ac_c_werror_flag" ||
34337          test ! -s conftest.err
34338        } && test -s conftest.$ac_objext; then
34339   ac_lo=0 ac_mid=0
34340   while :; do
34341     cat >conftest.$ac_ext <<_ACEOF
34342 /* confdefs.h.  */
34343 _ACEOF
34344 cat confdefs.h >>conftest.$ac_ext
34345 cat >>conftest.$ac_ext <<_ACEOF
34346 /* end confdefs.h.  */
34347 $ac_includes_default
34348    typedef int ac__type_sizeof_;
34349 int
34350 main ()
34351 {
34352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34353 test_array [0] = 0
34354
34355   ;
34356   return 0;
34357 }
34358 _ACEOF
34359 rm -f conftest.$ac_objext
34360 if { (ac_try="$ac_compile"
34361 case "(($ac_try" in
34362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363   *) ac_try_echo=$ac_try;;
34364 esac
34365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34366   (eval "$ac_compile") 2>conftest.er1
34367   ac_status=$?
34368   grep -v '^ *+' conftest.er1 >conftest.err
34369   rm -f conftest.er1
34370   cat conftest.err >&5
34371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372   (exit $ac_status); } && {
34373          test -z "$ac_c_werror_flag" ||
34374          test ! -s conftest.err
34375        } && test -s conftest.$ac_objext; then
34376   ac_hi=$ac_mid; break
34377 else
34378   echo "$as_me: failed program was:" >&5
34379 sed 's/^/| /' conftest.$ac_ext >&5
34380
34381         ac_lo=`expr $ac_mid + 1`
34382                         if test $ac_lo -le $ac_mid; then
34383                           ac_lo= ac_hi=
34384                           break
34385                         fi
34386                         ac_mid=`expr 2 '*' $ac_mid + 1`
34387 fi
34388
34389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34390   done
34391 else
34392   echo "$as_me: failed program was:" >&5
34393 sed 's/^/| /' conftest.$ac_ext >&5
34394
34395         cat >conftest.$ac_ext <<_ACEOF
34396 /* confdefs.h.  */
34397 _ACEOF
34398 cat confdefs.h >>conftest.$ac_ext
34399 cat >>conftest.$ac_ext <<_ACEOF
34400 /* end confdefs.h.  */
34401 $ac_includes_default
34402    typedef int ac__type_sizeof_;
34403 int
34404 main ()
34405 {
34406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34407 test_array [0] = 0
34408
34409   ;
34410   return 0;
34411 }
34412 _ACEOF
34413 rm -f conftest.$ac_objext
34414 if { (ac_try="$ac_compile"
34415 case "(($ac_try" in
34416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34417   *) ac_try_echo=$ac_try;;
34418 esac
34419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34420   (eval "$ac_compile") 2>conftest.er1
34421   ac_status=$?
34422   grep -v '^ *+' conftest.er1 >conftest.err
34423   rm -f conftest.er1
34424   cat conftest.err >&5
34425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426   (exit $ac_status); } && {
34427          test -z "$ac_c_werror_flag" ||
34428          test ! -s conftest.err
34429        } && test -s conftest.$ac_objext; then
34430   ac_hi=-1 ac_mid=-1
34431   while :; do
34432     cat >conftest.$ac_ext <<_ACEOF
34433 /* confdefs.h.  */
34434 _ACEOF
34435 cat confdefs.h >>conftest.$ac_ext
34436 cat >>conftest.$ac_ext <<_ACEOF
34437 /* end confdefs.h.  */
34438 $ac_includes_default
34439    typedef int ac__type_sizeof_;
34440 int
34441 main ()
34442 {
34443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34444 test_array [0] = 0
34445
34446   ;
34447   return 0;
34448 }
34449 _ACEOF
34450 rm -f conftest.$ac_objext
34451 if { (ac_try="$ac_compile"
34452 case "(($ac_try" in
34453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454   *) ac_try_echo=$ac_try;;
34455 esac
34456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34457   (eval "$ac_compile") 2>conftest.er1
34458   ac_status=$?
34459   grep -v '^ *+' conftest.er1 >conftest.err
34460   rm -f conftest.er1
34461   cat conftest.err >&5
34462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463   (exit $ac_status); } && {
34464          test -z "$ac_c_werror_flag" ||
34465          test ! -s conftest.err
34466        } && test -s conftest.$ac_objext; then
34467   ac_lo=$ac_mid; break
34468 else
34469   echo "$as_me: failed program was:" >&5
34470 sed 's/^/| /' conftest.$ac_ext >&5
34471
34472         ac_hi=`expr '(' $ac_mid ')' - 1`
34473                         if test $ac_mid -le $ac_hi; then
34474                           ac_lo= ac_hi=
34475                           break
34476                         fi
34477                         ac_mid=`expr 2 '*' $ac_mid`
34478 fi
34479
34480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34481   done
34482 else
34483   echo "$as_me: failed program was:" >&5
34484 sed 's/^/| /' conftest.$ac_ext >&5
34485
34486         ac_lo= ac_hi=
34487 fi
34488
34489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34490 fi
34491
34492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34493 # Binary search between lo and hi bounds.
34494 while test "x$ac_lo" != "x$ac_hi"; do
34495   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34496   cat >conftest.$ac_ext <<_ACEOF
34497 /* confdefs.h.  */
34498 _ACEOF
34499 cat confdefs.h >>conftest.$ac_ext
34500 cat >>conftest.$ac_ext <<_ACEOF
34501 /* end confdefs.h.  */
34502 $ac_includes_default
34503    typedef int ac__type_sizeof_;
34504 int
34505 main ()
34506 {
34507 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34508 test_array [0] = 0
34509
34510   ;
34511   return 0;
34512 }
34513 _ACEOF
34514 rm -f conftest.$ac_objext
34515 if { (ac_try="$ac_compile"
34516 case "(($ac_try" in
34517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34518   *) ac_try_echo=$ac_try;;
34519 esac
34520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34521   (eval "$ac_compile") 2>conftest.er1
34522   ac_status=$?
34523   grep -v '^ *+' conftest.er1 >conftest.err
34524   rm -f conftest.er1
34525   cat conftest.err >&5
34526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527   (exit $ac_status); } && {
34528          test -z "$ac_c_werror_flag" ||
34529          test ! -s conftest.err
34530        } && test -s conftest.$ac_objext; then
34531   ac_hi=$ac_mid
34532 else
34533   echo "$as_me: failed program was:" >&5
34534 sed 's/^/| /' conftest.$ac_ext >&5
34535
34536         ac_lo=`expr '(' $ac_mid ')' + 1`
34537 fi
34538
34539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34540 done
34541 case $ac_lo in
34542 ?*) ac_cv_sizeof_int=$ac_lo;;
34543 '') if test "$ac_cv_type_int" = yes; then
34544      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34545 See \`config.log' for more details." >&5
34546 echo "$as_me: error: cannot compute sizeof (int)
34547 See \`config.log' for more details." >&2;}
34548    { (exit 77); exit 77; }; }
34549    else
34550      ac_cv_sizeof_int=0
34551    fi ;;
34552 esac
34553 else
34554   cat >conftest.$ac_ext <<_ACEOF
34555 /* confdefs.h.  */
34556 _ACEOF
34557 cat confdefs.h >>conftest.$ac_ext
34558 cat >>conftest.$ac_ext <<_ACEOF
34559 /* end confdefs.h.  */
34560 $ac_includes_default
34561    typedef int ac__type_sizeof_;
34562 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34563 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34564 #include <stdio.h>
34565 #include <stdlib.h>
34566 int
34567 main ()
34568 {
34569
34570   FILE *f = fopen ("conftest.val", "w");
34571   if (! f)
34572     return 1;
34573   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34574     {
34575       long int i = longval ();
34576       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34577         return 1;
34578       fprintf (f, "%ld\n", i);
34579     }
34580   else
34581     {
34582       unsigned long int i = ulongval ();
34583       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34584         return 1;
34585       fprintf (f, "%lu\n", i);
34586     }
34587   return ferror (f) || fclose (f) != 0;
34588
34589   ;
34590   return 0;
34591 }
34592 _ACEOF
34593 rm -f conftest$ac_exeext
34594 if { (ac_try="$ac_link"
34595 case "(($ac_try" in
34596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34597   *) ac_try_echo=$ac_try;;
34598 esac
34599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34600   (eval "$ac_link") 2>&5
34601   ac_status=$?
34602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34604   { (case "(($ac_try" in
34605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34606   *) ac_try_echo=$ac_try;;
34607 esac
34608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34609   (eval "$ac_try") 2>&5
34610   ac_status=$?
34611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612   (exit $ac_status); }; }; then
34613   ac_cv_sizeof_int=`cat conftest.val`
34614 else
34615   echo "$as_me: program exited with status $ac_status" >&5
34616 echo "$as_me: failed program was:" >&5
34617 sed 's/^/| /' conftest.$ac_ext >&5
34618
34619 ( exit $ac_status )
34620 if test "$ac_cv_type_int" = yes; then
34621      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34622 See \`config.log' for more details." >&5
34623 echo "$as_me: error: cannot compute sizeof (int)
34624 See \`config.log' for more details." >&2;}
34625    { (exit 77); exit 77; }; }
34626    else
34627      ac_cv_sizeof_int=0
34628    fi
34629 fi
34630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34631 fi
34632 rm -f conftest.val
34633 fi
34634 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34635 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34636
34637
34638
34639 cat >>confdefs.h <<_ACEOF
34640 #define SIZEOF_INT $ac_cv_sizeof_int
34641 _ACEOF
34642
34643
34644 { echo "$as_me:$LINENO: checking for long" >&5
34645 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34646 if test "${ac_cv_type_long+set}" = set; then
34647   echo $ECHO_N "(cached) $ECHO_C" >&6
34648 else
34649   cat >conftest.$ac_ext <<_ACEOF
34650 /* confdefs.h.  */
34651 _ACEOF
34652 cat confdefs.h >>conftest.$ac_ext
34653 cat >>conftest.$ac_ext <<_ACEOF
34654 /* end confdefs.h.  */
34655 $ac_includes_default
34656 typedef long ac__type_new_;
34657 int
34658 main ()
34659 {
34660 if ((ac__type_new_ *) 0)
34661   return 0;
34662 if (sizeof (ac__type_new_))
34663   return 0;
34664   ;
34665   return 0;
34666 }
34667 _ACEOF
34668 rm -f conftest.$ac_objext
34669 if { (ac_try="$ac_compile"
34670 case "(($ac_try" in
34671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34672   *) ac_try_echo=$ac_try;;
34673 esac
34674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34675   (eval "$ac_compile") 2>conftest.er1
34676   ac_status=$?
34677   grep -v '^ *+' conftest.er1 >conftest.err
34678   rm -f conftest.er1
34679   cat conftest.err >&5
34680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34681   (exit $ac_status); } && {
34682          test -z "$ac_c_werror_flag" ||
34683          test ! -s conftest.err
34684        } && test -s conftest.$ac_objext; then
34685   ac_cv_type_long=yes
34686 else
34687   echo "$as_me: failed program was:" >&5
34688 sed 's/^/| /' conftest.$ac_ext >&5
34689
34690         ac_cv_type_long=no
34691 fi
34692
34693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34694 fi
34695 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34696 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34697
34698 # The cast to long int works around a bug in the HP C Compiler
34699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34701 # This bug is HP SR number 8606223364.
34702 { echo "$as_me:$LINENO: checking size of long" >&5
34703 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34704 if test "${ac_cv_sizeof_long+set}" = set; then
34705   echo $ECHO_N "(cached) $ECHO_C" >&6
34706 else
34707   if test "$cross_compiling" = yes; then
34708   # Depending upon the size, compute the lo and hi bounds.
34709 cat >conftest.$ac_ext <<_ACEOF
34710 /* confdefs.h.  */
34711 _ACEOF
34712 cat confdefs.h >>conftest.$ac_ext
34713 cat >>conftest.$ac_ext <<_ACEOF
34714 /* end confdefs.h.  */
34715 $ac_includes_default
34716    typedef long ac__type_sizeof_;
34717 int
34718 main ()
34719 {
34720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34721 test_array [0] = 0
34722
34723   ;
34724   return 0;
34725 }
34726 _ACEOF
34727 rm -f conftest.$ac_objext
34728 if { (ac_try="$ac_compile"
34729 case "(($ac_try" in
34730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34731   *) ac_try_echo=$ac_try;;
34732 esac
34733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34734   (eval "$ac_compile") 2>conftest.er1
34735   ac_status=$?
34736   grep -v '^ *+' conftest.er1 >conftest.err
34737   rm -f conftest.er1
34738   cat conftest.err >&5
34739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34740   (exit $ac_status); } && {
34741          test -z "$ac_c_werror_flag" ||
34742          test ! -s conftest.err
34743        } && test -s conftest.$ac_objext; then
34744   ac_lo=0 ac_mid=0
34745   while :; do
34746     cat >conftest.$ac_ext <<_ACEOF
34747 /* confdefs.h.  */
34748 _ACEOF
34749 cat confdefs.h >>conftest.$ac_ext
34750 cat >>conftest.$ac_ext <<_ACEOF
34751 /* end confdefs.h.  */
34752 $ac_includes_default
34753    typedef long ac__type_sizeof_;
34754 int
34755 main ()
34756 {
34757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34758 test_array [0] = 0
34759
34760   ;
34761   return 0;
34762 }
34763 _ACEOF
34764 rm -f conftest.$ac_objext
34765 if { (ac_try="$ac_compile"
34766 case "(($ac_try" in
34767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34768   *) ac_try_echo=$ac_try;;
34769 esac
34770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34771   (eval "$ac_compile") 2>conftest.er1
34772   ac_status=$?
34773   grep -v '^ *+' conftest.er1 >conftest.err
34774   rm -f conftest.er1
34775   cat conftest.err >&5
34776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777   (exit $ac_status); } && {
34778          test -z "$ac_c_werror_flag" ||
34779          test ! -s conftest.err
34780        } && test -s conftest.$ac_objext; then
34781   ac_hi=$ac_mid; break
34782 else
34783   echo "$as_me: failed program was:" >&5
34784 sed 's/^/| /' conftest.$ac_ext >&5
34785
34786         ac_lo=`expr $ac_mid + 1`
34787                         if test $ac_lo -le $ac_mid; then
34788                           ac_lo= ac_hi=
34789                           break
34790                         fi
34791                         ac_mid=`expr 2 '*' $ac_mid + 1`
34792 fi
34793
34794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34795   done
34796 else
34797   echo "$as_me: failed program was:" >&5
34798 sed 's/^/| /' conftest.$ac_ext >&5
34799
34800         cat >conftest.$ac_ext <<_ACEOF
34801 /* confdefs.h.  */
34802 _ACEOF
34803 cat confdefs.h >>conftest.$ac_ext
34804 cat >>conftest.$ac_ext <<_ACEOF
34805 /* end confdefs.h.  */
34806 $ac_includes_default
34807    typedef long ac__type_sizeof_;
34808 int
34809 main ()
34810 {
34811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34812 test_array [0] = 0
34813
34814   ;
34815   return 0;
34816 }
34817 _ACEOF
34818 rm -f conftest.$ac_objext
34819 if { (ac_try="$ac_compile"
34820 case "(($ac_try" in
34821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34822   *) ac_try_echo=$ac_try;;
34823 esac
34824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34825   (eval "$ac_compile") 2>conftest.er1
34826   ac_status=$?
34827   grep -v '^ *+' conftest.er1 >conftest.err
34828   rm -f conftest.er1
34829   cat conftest.err >&5
34830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34831   (exit $ac_status); } && {
34832          test -z "$ac_c_werror_flag" ||
34833          test ! -s conftest.err
34834        } && test -s conftest.$ac_objext; then
34835   ac_hi=-1 ac_mid=-1
34836   while :; do
34837     cat >conftest.$ac_ext <<_ACEOF
34838 /* confdefs.h.  */
34839 _ACEOF
34840 cat confdefs.h >>conftest.$ac_ext
34841 cat >>conftest.$ac_ext <<_ACEOF
34842 /* end confdefs.h.  */
34843 $ac_includes_default
34844    typedef long ac__type_sizeof_;
34845 int
34846 main ()
34847 {
34848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34849 test_array [0] = 0
34850
34851   ;
34852   return 0;
34853 }
34854 _ACEOF
34855 rm -f conftest.$ac_objext
34856 if { (ac_try="$ac_compile"
34857 case "(($ac_try" in
34858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34859   *) ac_try_echo=$ac_try;;
34860 esac
34861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34862   (eval "$ac_compile") 2>conftest.er1
34863   ac_status=$?
34864   grep -v '^ *+' conftest.er1 >conftest.err
34865   rm -f conftest.er1
34866   cat conftest.err >&5
34867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868   (exit $ac_status); } && {
34869          test -z "$ac_c_werror_flag" ||
34870          test ! -s conftest.err
34871        } && test -s conftest.$ac_objext; then
34872   ac_lo=$ac_mid; break
34873 else
34874   echo "$as_me: failed program was:" >&5
34875 sed 's/^/| /' conftest.$ac_ext >&5
34876
34877         ac_hi=`expr '(' $ac_mid ')' - 1`
34878                         if test $ac_mid -le $ac_hi; then
34879                           ac_lo= ac_hi=
34880                           break
34881                         fi
34882                         ac_mid=`expr 2 '*' $ac_mid`
34883 fi
34884
34885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34886   done
34887 else
34888   echo "$as_me: failed program was:" >&5
34889 sed 's/^/| /' conftest.$ac_ext >&5
34890
34891         ac_lo= ac_hi=
34892 fi
34893
34894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34895 fi
34896
34897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34898 # Binary search between lo and hi bounds.
34899 while test "x$ac_lo" != "x$ac_hi"; do
34900   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34901   cat >conftest.$ac_ext <<_ACEOF
34902 /* confdefs.h.  */
34903 _ACEOF
34904 cat confdefs.h >>conftest.$ac_ext
34905 cat >>conftest.$ac_ext <<_ACEOF
34906 /* end confdefs.h.  */
34907 $ac_includes_default
34908    typedef long ac__type_sizeof_;
34909 int
34910 main ()
34911 {
34912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34913 test_array [0] = 0
34914
34915   ;
34916   return 0;
34917 }
34918 _ACEOF
34919 rm -f conftest.$ac_objext
34920 if { (ac_try="$ac_compile"
34921 case "(($ac_try" in
34922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34923   *) ac_try_echo=$ac_try;;
34924 esac
34925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34926   (eval "$ac_compile") 2>conftest.er1
34927   ac_status=$?
34928   grep -v '^ *+' conftest.er1 >conftest.err
34929   rm -f conftest.er1
34930   cat conftest.err >&5
34931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932   (exit $ac_status); } && {
34933          test -z "$ac_c_werror_flag" ||
34934          test ! -s conftest.err
34935        } && test -s conftest.$ac_objext; then
34936   ac_hi=$ac_mid
34937 else
34938   echo "$as_me: failed program was:" >&5
34939 sed 's/^/| /' conftest.$ac_ext >&5
34940
34941         ac_lo=`expr '(' $ac_mid ')' + 1`
34942 fi
34943
34944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34945 done
34946 case $ac_lo in
34947 ?*) ac_cv_sizeof_long=$ac_lo;;
34948 '') if test "$ac_cv_type_long" = yes; then
34949      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34950 See \`config.log' for more details." >&5
34951 echo "$as_me: error: cannot compute sizeof (long)
34952 See \`config.log' for more details." >&2;}
34953    { (exit 77); exit 77; }; }
34954    else
34955      ac_cv_sizeof_long=0
34956    fi ;;
34957 esac
34958 else
34959   cat >conftest.$ac_ext <<_ACEOF
34960 /* confdefs.h.  */
34961 _ACEOF
34962 cat confdefs.h >>conftest.$ac_ext
34963 cat >>conftest.$ac_ext <<_ACEOF
34964 /* end confdefs.h.  */
34965 $ac_includes_default
34966    typedef long ac__type_sizeof_;
34967 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34968 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34969 #include <stdio.h>
34970 #include <stdlib.h>
34971 int
34972 main ()
34973 {
34974
34975   FILE *f = fopen ("conftest.val", "w");
34976   if (! f)
34977     return 1;
34978   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34979     {
34980       long int i = longval ();
34981       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34982         return 1;
34983       fprintf (f, "%ld\n", i);
34984     }
34985   else
34986     {
34987       unsigned long int i = ulongval ();
34988       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34989         return 1;
34990       fprintf (f, "%lu\n", i);
34991     }
34992   return ferror (f) || fclose (f) != 0;
34993
34994   ;
34995   return 0;
34996 }
34997 _ACEOF
34998 rm -f conftest$ac_exeext
34999 if { (ac_try="$ac_link"
35000 case "(($ac_try" in
35001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35002   *) ac_try_echo=$ac_try;;
35003 esac
35004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35005   (eval "$ac_link") 2>&5
35006   ac_status=$?
35007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35009   { (case "(($ac_try" in
35010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35011   *) ac_try_echo=$ac_try;;
35012 esac
35013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35014   (eval "$ac_try") 2>&5
35015   ac_status=$?
35016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017   (exit $ac_status); }; }; then
35018   ac_cv_sizeof_long=`cat conftest.val`
35019 else
35020   echo "$as_me: program exited with status $ac_status" >&5
35021 echo "$as_me: failed program was:" >&5
35022 sed 's/^/| /' conftest.$ac_ext >&5
35023
35024 ( exit $ac_status )
35025 if test "$ac_cv_type_long" = yes; then
35026      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
35027 See \`config.log' for more details." >&5
35028 echo "$as_me: error: cannot compute sizeof (long)
35029 See \`config.log' for more details." >&2;}
35030    { (exit 77); exit 77; }; }
35031    else
35032      ac_cv_sizeof_long=0
35033    fi
35034 fi
35035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35036 fi
35037 rm -f conftest.val
35038 fi
35039 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
35040 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
35041
35042
35043
35044 cat >>confdefs.h <<_ACEOF
35045 #define SIZEOF_LONG $ac_cv_sizeof_long
35046 _ACEOF
35047
35048
35049 { echo "$as_me:$LINENO: checking for long long" >&5
35050 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
35051 if test "${ac_cv_type_long_long+set}" = set; then
35052   echo $ECHO_N "(cached) $ECHO_C" >&6
35053 else
35054   cat >conftest.$ac_ext <<_ACEOF
35055 /* confdefs.h.  */
35056 _ACEOF
35057 cat confdefs.h >>conftest.$ac_ext
35058 cat >>conftest.$ac_ext <<_ACEOF
35059 /* end confdefs.h.  */
35060 $ac_includes_default
35061 typedef long long ac__type_new_;
35062 int
35063 main ()
35064 {
35065 if ((ac__type_new_ *) 0)
35066   return 0;
35067 if (sizeof (ac__type_new_))
35068   return 0;
35069   ;
35070   return 0;
35071 }
35072 _ACEOF
35073 rm -f conftest.$ac_objext
35074 if { (ac_try="$ac_compile"
35075 case "(($ac_try" in
35076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35077   *) ac_try_echo=$ac_try;;
35078 esac
35079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35080   (eval "$ac_compile") 2>conftest.er1
35081   ac_status=$?
35082   grep -v '^ *+' conftest.er1 >conftest.err
35083   rm -f conftest.er1
35084   cat conftest.err >&5
35085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35086   (exit $ac_status); } && {
35087          test -z "$ac_c_werror_flag" ||
35088          test ! -s conftest.err
35089        } && test -s conftest.$ac_objext; then
35090   ac_cv_type_long_long=yes
35091 else
35092   echo "$as_me: failed program was:" >&5
35093 sed 's/^/| /' conftest.$ac_ext >&5
35094
35095         ac_cv_type_long_long=no
35096 fi
35097
35098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35099 fi
35100 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
35101 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
35102
35103 # The cast to long int works around a bug in the HP C Compiler
35104 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35105 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35106 # This bug is HP SR number 8606223364.
35107 { echo "$as_me:$LINENO: checking size of long long" >&5
35108 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
35109 if test "${ac_cv_sizeof_long_long+set}" = set; then
35110   echo $ECHO_N "(cached) $ECHO_C" >&6
35111 else
35112   if test "$cross_compiling" = yes; then
35113   # Depending upon the size, compute the lo and hi bounds.
35114 cat >conftest.$ac_ext <<_ACEOF
35115 /* confdefs.h.  */
35116 _ACEOF
35117 cat confdefs.h >>conftest.$ac_ext
35118 cat >>conftest.$ac_ext <<_ACEOF
35119 /* end confdefs.h.  */
35120 $ac_includes_default
35121    typedef long long ac__type_sizeof_;
35122 int
35123 main ()
35124 {
35125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35126 test_array [0] = 0
35127
35128   ;
35129   return 0;
35130 }
35131 _ACEOF
35132 rm -f conftest.$ac_objext
35133 if { (ac_try="$ac_compile"
35134 case "(($ac_try" in
35135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35136   *) ac_try_echo=$ac_try;;
35137 esac
35138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35139   (eval "$ac_compile") 2>conftest.er1
35140   ac_status=$?
35141   grep -v '^ *+' conftest.er1 >conftest.err
35142   rm -f conftest.er1
35143   cat conftest.err >&5
35144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145   (exit $ac_status); } && {
35146          test -z "$ac_c_werror_flag" ||
35147          test ! -s conftest.err
35148        } && test -s conftest.$ac_objext; then
35149   ac_lo=0 ac_mid=0
35150   while :; do
35151     cat >conftest.$ac_ext <<_ACEOF
35152 /* confdefs.h.  */
35153 _ACEOF
35154 cat confdefs.h >>conftest.$ac_ext
35155 cat >>conftest.$ac_ext <<_ACEOF
35156 /* end confdefs.h.  */
35157 $ac_includes_default
35158    typedef long long ac__type_sizeof_;
35159 int
35160 main ()
35161 {
35162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35163 test_array [0] = 0
35164
35165   ;
35166   return 0;
35167 }
35168 _ACEOF
35169 rm -f conftest.$ac_objext
35170 if { (ac_try="$ac_compile"
35171 case "(($ac_try" in
35172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35173   *) ac_try_echo=$ac_try;;
35174 esac
35175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35176   (eval "$ac_compile") 2>conftest.er1
35177   ac_status=$?
35178   grep -v '^ *+' conftest.er1 >conftest.err
35179   rm -f conftest.er1
35180   cat conftest.err >&5
35181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35182   (exit $ac_status); } && {
35183          test -z "$ac_c_werror_flag" ||
35184          test ! -s conftest.err
35185        } && test -s conftest.$ac_objext; then
35186   ac_hi=$ac_mid; break
35187 else
35188   echo "$as_me: failed program was:" >&5
35189 sed 's/^/| /' conftest.$ac_ext >&5
35190
35191         ac_lo=`expr $ac_mid + 1`
35192                         if test $ac_lo -le $ac_mid; then
35193                           ac_lo= ac_hi=
35194                           break
35195                         fi
35196                         ac_mid=`expr 2 '*' $ac_mid + 1`
35197 fi
35198
35199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35200   done
35201 else
35202   echo "$as_me: failed program was:" >&5
35203 sed 's/^/| /' conftest.$ac_ext >&5
35204
35205         cat >conftest.$ac_ext <<_ACEOF
35206 /* confdefs.h.  */
35207 _ACEOF
35208 cat confdefs.h >>conftest.$ac_ext
35209 cat >>conftest.$ac_ext <<_ACEOF
35210 /* end confdefs.h.  */
35211 $ac_includes_default
35212    typedef long long ac__type_sizeof_;
35213 int
35214 main ()
35215 {
35216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35217 test_array [0] = 0
35218
35219   ;
35220   return 0;
35221 }
35222 _ACEOF
35223 rm -f conftest.$ac_objext
35224 if { (ac_try="$ac_compile"
35225 case "(($ac_try" in
35226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35227   *) ac_try_echo=$ac_try;;
35228 esac
35229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35230   (eval "$ac_compile") 2>conftest.er1
35231   ac_status=$?
35232   grep -v '^ *+' conftest.er1 >conftest.err
35233   rm -f conftest.er1
35234   cat conftest.err >&5
35235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236   (exit $ac_status); } && {
35237          test -z "$ac_c_werror_flag" ||
35238          test ! -s conftest.err
35239        } && test -s conftest.$ac_objext; then
35240   ac_hi=-1 ac_mid=-1
35241   while :; do
35242     cat >conftest.$ac_ext <<_ACEOF
35243 /* confdefs.h.  */
35244 _ACEOF
35245 cat confdefs.h >>conftest.$ac_ext
35246 cat >>conftest.$ac_ext <<_ACEOF
35247 /* end confdefs.h.  */
35248 $ac_includes_default
35249    typedef long long ac__type_sizeof_;
35250 int
35251 main ()
35252 {
35253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35254 test_array [0] = 0
35255
35256   ;
35257   return 0;
35258 }
35259 _ACEOF
35260 rm -f conftest.$ac_objext
35261 if { (ac_try="$ac_compile"
35262 case "(($ac_try" in
35263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35264   *) ac_try_echo=$ac_try;;
35265 esac
35266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35267   (eval "$ac_compile") 2>conftest.er1
35268   ac_status=$?
35269   grep -v '^ *+' conftest.er1 >conftest.err
35270   rm -f conftest.er1
35271   cat conftest.err >&5
35272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273   (exit $ac_status); } && {
35274          test -z "$ac_c_werror_flag" ||
35275          test ! -s conftest.err
35276        } && test -s conftest.$ac_objext; then
35277   ac_lo=$ac_mid; break
35278 else
35279   echo "$as_me: failed program was:" >&5
35280 sed 's/^/| /' conftest.$ac_ext >&5
35281
35282         ac_hi=`expr '(' $ac_mid ')' - 1`
35283                         if test $ac_mid -le $ac_hi; then
35284                           ac_lo= ac_hi=
35285                           break
35286                         fi
35287                         ac_mid=`expr 2 '*' $ac_mid`
35288 fi
35289
35290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35291   done
35292 else
35293   echo "$as_me: failed program was:" >&5
35294 sed 's/^/| /' conftest.$ac_ext >&5
35295
35296         ac_lo= ac_hi=
35297 fi
35298
35299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35300 fi
35301
35302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35303 # Binary search between lo and hi bounds.
35304 while test "x$ac_lo" != "x$ac_hi"; do
35305   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35306   cat >conftest.$ac_ext <<_ACEOF
35307 /* confdefs.h.  */
35308 _ACEOF
35309 cat confdefs.h >>conftest.$ac_ext
35310 cat >>conftest.$ac_ext <<_ACEOF
35311 /* end confdefs.h.  */
35312 $ac_includes_default
35313    typedef long long ac__type_sizeof_;
35314 int
35315 main ()
35316 {
35317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35318 test_array [0] = 0
35319
35320   ;
35321   return 0;
35322 }
35323 _ACEOF
35324 rm -f conftest.$ac_objext
35325 if { (ac_try="$ac_compile"
35326 case "(($ac_try" in
35327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35328   *) ac_try_echo=$ac_try;;
35329 esac
35330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35331   (eval "$ac_compile") 2>conftest.er1
35332   ac_status=$?
35333   grep -v '^ *+' conftest.er1 >conftest.err
35334   rm -f conftest.er1
35335   cat conftest.err >&5
35336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337   (exit $ac_status); } && {
35338          test -z "$ac_c_werror_flag" ||
35339          test ! -s conftest.err
35340        } && test -s conftest.$ac_objext; then
35341   ac_hi=$ac_mid
35342 else
35343   echo "$as_me: failed program was:" >&5
35344 sed 's/^/| /' conftest.$ac_ext >&5
35345
35346         ac_lo=`expr '(' $ac_mid ')' + 1`
35347 fi
35348
35349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35350 done
35351 case $ac_lo in
35352 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35353 '') if test "$ac_cv_type_long_long" = yes; then
35354      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35355 See \`config.log' for more details." >&5
35356 echo "$as_me: error: cannot compute sizeof (long long)
35357 See \`config.log' for more details." >&2;}
35358    { (exit 77); exit 77; }; }
35359    else
35360      ac_cv_sizeof_long_long=0
35361    fi ;;
35362 esac
35363 else
35364   cat >conftest.$ac_ext <<_ACEOF
35365 /* confdefs.h.  */
35366 _ACEOF
35367 cat confdefs.h >>conftest.$ac_ext
35368 cat >>conftest.$ac_ext <<_ACEOF
35369 /* end confdefs.h.  */
35370 $ac_includes_default
35371    typedef long long ac__type_sizeof_;
35372 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35373 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35374 #include <stdio.h>
35375 #include <stdlib.h>
35376 int
35377 main ()
35378 {
35379
35380   FILE *f = fopen ("conftest.val", "w");
35381   if (! f)
35382     return 1;
35383   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35384     {
35385       long int i = longval ();
35386       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35387         return 1;
35388       fprintf (f, "%ld\n", i);
35389     }
35390   else
35391     {
35392       unsigned long int i = ulongval ();
35393       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35394         return 1;
35395       fprintf (f, "%lu\n", i);
35396     }
35397   return ferror (f) || fclose (f) != 0;
35398
35399   ;
35400   return 0;
35401 }
35402 _ACEOF
35403 rm -f conftest$ac_exeext
35404 if { (ac_try="$ac_link"
35405 case "(($ac_try" in
35406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35407   *) ac_try_echo=$ac_try;;
35408 esac
35409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35410   (eval "$ac_link") 2>&5
35411   ac_status=$?
35412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35414   { (case "(($ac_try" in
35415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35416   *) ac_try_echo=$ac_try;;
35417 esac
35418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35419   (eval "$ac_try") 2>&5
35420   ac_status=$?
35421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35422   (exit $ac_status); }; }; then
35423   ac_cv_sizeof_long_long=`cat conftest.val`
35424 else
35425   echo "$as_me: program exited with status $ac_status" >&5
35426 echo "$as_me: failed program was:" >&5
35427 sed 's/^/| /' conftest.$ac_ext >&5
35428
35429 ( exit $ac_status )
35430 if test "$ac_cv_type_long_long" = yes; then
35431      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35432 See \`config.log' for more details." >&5
35433 echo "$as_me: error: cannot compute sizeof (long long)
35434 See \`config.log' for more details." >&2;}
35435    { (exit 77); exit 77; }; }
35436    else
35437      ac_cv_sizeof_long_long=0
35438    fi
35439 fi
35440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35441 fi
35442 rm -f conftest.val
35443 fi
35444 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35445 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35446
35447
35448
35449 cat >>confdefs.h <<_ACEOF
35450 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35451 _ACEOF
35452
35453
35454 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35455 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35456 if test "${ac_cv_type_wchar_t+set}" = set; then
35457   echo $ECHO_N "(cached) $ECHO_C" >&6
35458 else
35459   cat >conftest.$ac_ext <<_ACEOF
35460 /* confdefs.h.  */
35461 _ACEOF
35462 cat confdefs.h >>conftest.$ac_ext
35463 cat >>conftest.$ac_ext <<_ACEOF
35464 /* end confdefs.h.  */
35465 $ac_includes_default
35466 typedef wchar_t ac__type_new_;
35467 int
35468 main ()
35469 {
35470 if ((ac__type_new_ *) 0)
35471   return 0;
35472 if (sizeof (ac__type_new_))
35473   return 0;
35474   ;
35475   return 0;
35476 }
35477 _ACEOF
35478 rm -f conftest.$ac_objext
35479 if { (ac_try="$ac_compile"
35480 case "(($ac_try" in
35481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35482   *) ac_try_echo=$ac_try;;
35483 esac
35484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35485   (eval "$ac_compile") 2>conftest.er1
35486   ac_status=$?
35487   grep -v '^ *+' conftest.er1 >conftest.err
35488   rm -f conftest.er1
35489   cat conftest.err >&5
35490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491   (exit $ac_status); } && {
35492          test -z "$ac_c_werror_flag" ||
35493          test ! -s conftest.err
35494        } && test -s conftest.$ac_objext; then
35495   ac_cv_type_wchar_t=yes
35496 else
35497   echo "$as_me: failed program was:" >&5
35498 sed 's/^/| /' conftest.$ac_ext >&5
35499
35500         ac_cv_type_wchar_t=no
35501 fi
35502
35503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35504 fi
35505 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35506 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35507
35508 # The cast to long int works around a bug in the HP C Compiler
35509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35511 # This bug is HP SR number 8606223364.
35512 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35513 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35514 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35515   echo $ECHO_N "(cached) $ECHO_C" >&6
35516 else
35517   if test "$cross_compiling" = yes; then
35518   # Depending upon the size, compute the lo and hi bounds.
35519 cat >conftest.$ac_ext <<_ACEOF
35520 /* confdefs.h.  */
35521 _ACEOF
35522 cat confdefs.h >>conftest.$ac_ext
35523 cat >>conftest.$ac_ext <<_ACEOF
35524 /* end confdefs.h.  */
35525 $ac_includes_default
35526    typedef wchar_t ac__type_sizeof_;
35527 int
35528 main ()
35529 {
35530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35531 test_array [0] = 0
35532
35533   ;
35534   return 0;
35535 }
35536 _ACEOF
35537 rm -f conftest.$ac_objext
35538 if { (ac_try="$ac_compile"
35539 case "(($ac_try" in
35540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35541   *) ac_try_echo=$ac_try;;
35542 esac
35543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35544   (eval "$ac_compile") 2>conftest.er1
35545   ac_status=$?
35546   grep -v '^ *+' conftest.er1 >conftest.err
35547   rm -f conftest.er1
35548   cat conftest.err >&5
35549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550   (exit $ac_status); } && {
35551          test -z "$ac_c_werror_flag" ||
35552          test ! -s conftest.err
35553        } && test -s conftest.$ac_objext; then
35554   ac_lo=0 ac_mid=0
35555   while :; do
35556     cat >conftest.$ac_ext <<_ACEOF
35557 /* confdefs.h.  */
35558 _ACEOF
35559 cat confdefs.h >>conftest.$ac_ext
35560 cat >>conftest.$ac_ext <<_ACEOF
35561 /* end confdefs.h.  */
35562 $ac_includes_default
35563    typedef wchar_t ac__type_sizeof_;
35564 int
35565 main ()
35566 {
35567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35568 test_array [0] = 0
35569
35570   ;
35571   return 0;
35572 }
35573 _ACEOF
35574 rm -f conftest.$ac_objext
35575 if { (ac_try="$ac_compile"
35576 case "(($ac_try" in
35577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35578   *) ac_try_echo=$ac_try;;
35579 esac
35580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35581   (eval "$ac_compile") 2>conftest.er1
35582   ac_status=$?
35583   grep -v '^ *+' conftest.er1 >conftest.err
35584   rm -f conftest.er1
35585   cat conftest.err >&5
35586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587   (exit $ac_status); } && {
35588          test -z "$ac_c_werror_flag" ||
35589          test ! -s conftest.err
35590        } && test -s conftest.$ac_objext; then
35591   ac_hi=$ac_mid; break
35592 else
35593   echo "$as_me: failed program was:" >&5
35594 sed 's/^/| /' conftest.$ac_ext >&5
35595
35596         ac_lo=`expr $ac_mid + 1`
35597                         if test $ac_lo -le $ac_mid; then
35598                           ac_lo= ac_hi=
35599                           break
35600                         fi
35601                         ac_mid=`expr 2 '*' $ac_mid + 1`
35602 fi
35603
35604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35605   done
35606 else
35607   echo "$as_me: failed program was:" >&5
35608 sed 's/^/| /' conftest.$ac_ext >&5
35609
35610         cat >conftest.$ac_ext <<_ACEOF
35611 /* confdefs.h.  */
35612 _ACEOF
35613 cat confdefs.h >>conftest.$ac_ext
35614 cat >>conftest.$ac_ext <<_ACEOF
35615 /* end confdefs.h.  */
35616 $ac_includes_default
35617    typedef wchar_t ac__type_sizeof_;
35618 int
35619 main ()
35620 {
35621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35622 test_array [0] = 0
35623
35624   ;
35625   return 0;
35626 }
35627 _ACEOF
35628 rm -f conftest.$ac_objext
35629 if { (ac_try="$ac_compile"
35630 case "(($ac_try" in
35631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35632   *) ac_try_echo=$ac_try;;
35633 esac
35634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35635   (eval "$ac_compile") 2>conftest.er1
35636   ac_status=$?
35637   grep -v '^ *+' conftest.er1 >conftest.err
35638   rm -f conftest.er1
35639   cat conftest.err >&5
35640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35641   (exit $ac_status); } && {
35642          test -z "$ac_c_werror_flag" ||
35643          test ! -s conftest.err
35644        } && test -s conftest.$ac_objext; then
35645   ac_hi=-1 ac_mid=-1
35646   while :; do
35647     cat >conftest.$ac_ext <<_ACEOF
35648 /* confdefs.h.  */
35649 _ACEOF
35650 cat confdefs.h >>conftest.$ac_ext
35651 cat >>conftest.$ac_ext <<_ACEOF
35652 /* end confdefs.h.  */
35653 $ac_includes_default
35654    typedef wchar_t ac__type_sizeof_;
35655 int
35656 main ()
35657 {
35658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35659 test_array [0] = 0
35660
35661   ;
35662   return 0;
35663 }
35664 _ACEOF
35665 rm -f conftest.$ac_objext
35666 if { (ac_try="$ac_compile"
35667 case "(($ac_try" in
35668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35669   *) ac_try_echo=$ac_try;;
35670 esac
35671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35672   (eval "$ac_compile") 2>conftest.er1
35673   ac_status=$?
35674   grep -v '^ *+' conftest.er1 >conftest.err
35675   rm -f conftest.er1
35676   cat conftest.err >&5
35677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678   (exit $ac_status); } && {
35679          test -z "$ac_c_werror_flag" ||
35680          test ! -s conftest.err
35681        } && test -s conftest.$ac_objext; then
35682   ac_lo=$ac_mid; break
35683 else
35684   echo "$as_me: failed program was:" >&5
35685 sed 's/^/| /' conftest.$ac_ext >&5
35686
35687         ac_hi=`expr '(' $ac_mid ')' - 1`
35688                         if test $ac_mid -le $ac_hi; then
35689                           ac_lo= ac_hi=
35690                           break
35691                         fi
35692                         ac_mid=`expr 2 '*' $ac_mid`
35693 fi
35694
35695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35696   done
35697 else
35698   echo "$as_me: failed program was:" >&5
35699 sed 's/^/| /' conftest.$ac_ext >&5
35700
35701         ac_lo= ac_hi=
35702 fi
35703
35704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35705 fi
35706
35707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35708 # Binary search between lo and hi bounds.
35709 while test "x$ac_lo" != "x$ac_hi"; do
35710   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35711   cat >conftest.$ac_ext <<_ACEOF
35712 /* confdefs.h.  */
35713 _ACEOF
35714 cat confdefs.h >>conftest.$ac_ext
35715 cat >>conftest.$ac_ext <<_ACEOF
35716 /* end confdefs.h.  */
35717 $ac_includes_default
35718    typedef wchar_t ac__type_sizeof_;
35719 int
35720 main ()
35721 {
35722 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35723 test_array [0] = 0
35724
35725   ;
35726   return 0;
35727 }
35728 _ACEOF
35729 rm -f conftest.$ac_objext
35730 if { (ac_try="$ac_compile"
35731 case "(($ac_try" in
35732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35733   *) ac_try_echo=$ac_try;;
35734 esac
35735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35736   (eval "$ac_compile") 2>conftest.er1
35737   ac_status=$?
35738   grep -v '^ *+' conftest.er1 >conftest.err
35739   rm -f conftest.er1
35740   cat conftest.err >&5
35741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35742   (exit $ac_status); } && {
35743          test -z "$ac_c_werror_flag" ||
35744          test ! -s conftest.err
35745        } && test -s conftest.$ac_objext; then
35746   ac_hi=$ac_mid
35747 else
35748   echo "$as_me: failed program was:" >&5
35749 sed 's/^/| /' conftest.$ac_ext >&5
35750
35751         ac_lo=`expr '(' $ac_mid ')' + 1`
35752 fi
35753
35754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35755 done
35756 case $ac_lo in
35757 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35758 '') if test "$ac_cv_type_wchar_t" = yes; then
35759      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35760 See \`config.log' for more details." >&5
35761 echo "$as_me: error: cannot compute sizeof (wchar_t)
35762 See \`config.log' for more details." >&2;}
35763    { (exit 77); exit 77; }; }
35764    else
35765      ac_cv_sizeof_wchar_t=0
35766    fi ;;
35767 esac
35768 else
35769   cat >conftest.$ac_ext <<_ACEOF
35770 /* confdefs.h.  */
35771 _ACEOF
35772 cat confdefs.h >>conftest.$ac_ext
35773 cat >>conftest.$ac_ext <<_ACEOF
35774 /* end confdefs.h.  */
35775 $ac_includes_default
35776    typedef wchar_t ac__type_sizeof_;
35777 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35778 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35779 #include <stdio.h>
35780 #include <stdlib.h>
35781 int
35782 main ()
35783 {
35784
35785   FILE *f = fopen ("conftest.val", "w");
35786   if (! f)
35787     return 1;
35788   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35789     {
35790       long int i = longval ();
35791       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35792         return 1;
35793       fprintf (f, "%ld\n", i);
35794     }
35795   else
35796     {
35797       unsigned long int i = ulongval ();
35798       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35799         return 1;
35800       fprintf (f, "%lu\n", i);
35801     }
35802   return ferror (f) || fclose (f) != 0;
35803
35804   ;
35805   return 0;
35806 }
35807 _ACEOF
35808 rm -f conftest$ac_exeext
35809 if { (ac_try="$ac_link"
35810 case "(($ac_try" in
35811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35812   *) ac_try_echo=$ac_try;;
35813 esac
35814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35815   (eval "$ac_link") 2>&5
35816   ac_status=$?
35817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35818   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35819   { (case "(($ac_try" in
35820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35821   *) ac_try_echo=$ac_try;;
35822 esac
35823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35824   (eval "$ac_try") 2>&5
35825   ac_status=$?
35826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827   (exit $ac_status); }; }; then
35828   ac_cv_sizeof_wchar_t=`cat conftest.val`
35829 else
35830   echo "$as_me: program exited with status $ac_status" >&5
35831 echo "$as_me: failed program was:" >&5
35832 sed 's/^/| /' conftest.$ac_ext >&5
35833
35834 ( exit $ac_status )
35835 if test "$ac_cv_type_wchar_t" = yes; then
35836      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35837 See \`config.log' for more details." >&5
35838 echo "$as_me: error: cannot compute sizeof (wchar_t)
35839 See \`config.log' for more details." >&2;}
35840    { (exit 77); exit 77; }; }
35841    else
35842      ac_cv_sizeof_wchar_t=0
35843    fi
35844 fi
35845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35846 fi
35847 rm -f conftest.val
35848 fi
35849 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35850 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35851
35852
35853
35854 cat >>confdefs.h <<_ACEOF
35855 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35856 _ACEOF
35857
35858
35859
35860 if test "$ac_cv_sizeof_int" -lt 4 ; then
35861         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35862 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35863
35864
35865 cat >>confdefs.h <<\_ACEOF
35866 #define LBER_INT_T long
35867 _ACEOF
35868
35869 else
35870
35871 cat >>confdefs.h <<\_ACEOF
35872 #define LBER_INT_T int
35873 _ACEOF
35874
35875 fi
35876
35877
35878 cat >>confdefs.h <<\_ACEOF
35879 #define LBER_LEN_T long
35880 _ACEOF
35881
35882
35883 cat >>confdefs.h <<\_ACEOF
35884 #define LBER_SOCKET_T int
35885 _ACEOF
35886
35887
35888 cat >>confdefs.h <<\_ACEOF
35889 #define LBER_TAG_T long
35890 _ACEOF
35891
35892
35893 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35894         if test $ac_cv_sizeof_long_long -gt 4 ; then
35895                 ol_with_mp=longlong
35896
35897 cat >>confdefs.h <<\_ACEOF
35898 #define USE_MP_LONG_LONG 1
35899 _ACEOF
35900
35901         elif test $ol_with_mp = longlong ; then
35902                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35903 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35904    { (exit 1); exit 1; }; }
35905         fi
35906 fi
35907 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35908         if test $ac_cv_sizeof_long -gt 4 ; then
35909                 ol_with_mp=long
35910
35911 cat >>confdefs.h <<\_ACEOF
35912 #define USE_MP_LONG 1
35913 _ACEOF
35914
35915         elif test $ol_with_mp = long ; then
35916                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35917 echo "$as_me: error: long unusable for multiple precision" >&2;}
35918    { (exit 1); exit 1; }; }
35919         fi
35920 fi
35921 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35922
35923 for ac_header in openssl/bn.h
35924 do
35925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35927   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35930   echo $ECHO_N "(cached) $ECHO_C" >&6
35931 fi
35932 ac_res=`eval echo '${'$as_ac_Header'}'`
35933                { echo "$as_me:$LINENO: result: $ac_res" >&5
35934 echo "${ECHO_T}$ac_res" >&6; }
35935 else
35936   # Is the header compilable?
35937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35939 cat >conftest.$ac_ext <<_ACEOF
35940 /* confdefs.h.  */
35941 _ACEOF
35942 cat confdefs.h >>conftest.$ac_ext
35943 cat >>conftest.$ac_ext <<_ACEOF
35944 /* end confdefs.h.  */
35945 $ac_includes_default
35946 #include <$ac_header>
35947 _ACEOF
35948 rm -f conftest.$ac_objext
35949 if { (ac_try="$ac_compile"
35950 case "(($ac_try" in
35951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35952   *) ac_try_echo=$ac_try;;
35953 esac
35954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35955   (eval "$ac_compile") 2>conftest.er1
35956   ac_status=$?
35957   grep -v '^ *+' conftest.er1 >conftest.err
35958   rm -f conftest.er1
35959   cat conftest.err >&5
35960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35961   (exit $ac_status); } && {
35962          test -z "$ac_c_werror_flag" ||
35963          test ! -s conftest.err
35964        } && test -s conftest.$ac_objext; then
35965   ac_header_compiler=yes
35966 else
35967   echo "$as_me: failed program was:" >&5
35968 sed 's/^/| /' conftest.$ac_ext >&5
35969
35970         ac_header_compiler=no
35971 fi
35972
35973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35975 echo "${ECHO_T}$ac_header_compiler" >&6; }
35976
35977 # Is the header present?
35978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35980 cat >conftest.$ac_ext <<_ACEOF
35981 /* confdefs.h.  */
35982 _ACEOF
35983 cat confdefs.h >>conftest.$ac_ext
35984 cat >>conftest.$ac_ext <<_ACEOF
35985 /* end confdefs.h.  */
35986 #include <$ac_header>
35987 _ACEOF
35988 if { (ac_try="$ac_cpp conftest.$ac_ext"
35989 case "(($ac_try" in
35990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35991   *) ac_try_echo=$ac_try;;
35992 esac
35993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35995   ac_status=$?
35996   grep -v '^ *+' conftest.er1 >conftest.err
35997   rm -f conftest.er1
35998   cat conftest.err >&5
35999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000   (exit $ac_status); } >/dev/null && {
36001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36002          test ! -s conftest.err
36003        }; then
36004   ac_header_preproc=yes
36005 else
36006   echo "$as_me: failed program was:" >&5
36007 sed 's/^/| /' conftest.$ac_ext >&5
36008
36009   ac_header_preproc=no
36010 fi
36011
36012 rm -f conftest.err conftest.$ac_ext
36013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36014 echo "${ECHO_T}$ac_header_preproc" >&6; }
36015
36016 # So?  What about this header?
36017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36018   yes:no: )
36019     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36023     ac_header_preproc=yes
36024     ;;
36025   no:yes:* )
36026     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36028     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36029 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36030     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36032     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36033 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36036     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36038     ( cat <<\_ASBOX
36039 ## --------------------------------------------- ##
36040 ## Report this to <http://www.openldap.org/its/> ##
36041 ## --------------------------------------------- ##
36042 _ASBOX
36043      ) | sed "s/^/$as_me: WARNING:     /" >&2
36044     ;;
36045 esac
36046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36049   echo $ECHO_N "(cached) $ECHO_C" >&6
36050 else
36051   eval "$as_ac_Header=\$ac_header_preproc"
36052 fi
36053 ac_res=`eval echo '${'$as_ac_Header'}'`
36054                { echo "$as_me:$LINENO: result: $ac_res" >&5
36055 echo "${ECHO_T}$ac_res" >&6; }
36056
36057 fi
36058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36059   cat >>confdefs.h <<_ACEOF
36060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36061 _ACEOF
36062
36063 fi
36064
36065 done
36066
36067
36068 for ac_header in openssl/crypto.h
36069 do
36070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36072   { echo "$as_me:$LINENO: checking for $ac_header" >&5
36073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36075   echo $ECHO_N "(cached) $ECHO_C" >&6
36076 fi
36077 ac_res=`eval echo '${'$as_ac_Header'}'`
36078                { echo "$as_me:$LINENO: result: $ac_res" >&5
36079 echo "${ECHO_T}$ac_res" >&6; }
36080 else
36081   # Is the header compilable?
36082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36084 cat >conftest.$ac_ext <<_ACEOF
36085 /* confdefs.h.  */
36086 _ACEOF
36087 cat confdefs.h >>conftest.$ac_ext
36088 cat >>conftest.$ac_ext <<_ACEOF
36089 /* end confdefs.h.  */
36090 $ac_includes_default
36091 #include <$ac_header>
36092 _ACEOF
36093 rm -f conftest.$ac_objext
36094 if { (ac_try="$ac_compile"
36095 case "(($ac_try" in
36096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36097   *) ac_try_echo=$ac_try;;
36098 esac
36099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36100   (eval "$ac_compile") 2>conftest.er1
36101   ac_status=$?
36102   grep -v '^ *+' conftest.er1 >conftest.err
36103   rm -f conftest.er1
36104   cat conftest.err >&5
36105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36106   (exit $ac_status); } && {
36107          test -z "$ac_c_werror_flag" ||
36108          test ! -s conftest.err
36109        } && test -s conftest.$ac_objext; then
36110   ac_header_compiler=yes
36111 else
36112   echo "$as_me: failed program was:" >&5
36113 sed 's/^/| /' conftest.$ac_ext >&5
36114
36115         ac_header_compiler=no
36116 fi
36117
36118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36120 echo "${ECHO_T}$ac_header_compiler" >&6; }
36121
36122 # Is the header present?
36123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36125 cat >conftest.$ac_ext <<_ACEOF
36126 /* confdefs.h.  */
36127 _ACEOF
36128 cat confdefs.h >>conftest.$ac_ext
36129 cat >>conftest.$ac_ext <<_ACEOF
36130 /* end confdefs.h.  */
36131 #include <$ac_header>
36132 _ACEOF
36133 if { (ac_try="$ac_cpp conftest.$ac_ext"
36134 case "(($ac_try" in
36135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36136   *) ac_try_echo=$ac_try;;
36137 esac
36138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36140   ac_status=$?
36141   grep -v '^ *+' conftest.er1 >conftest.err
36142   rm -f conftest.er1
36143   cat conftest.err >&5
36144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36145   (exit $ac_status); } >/dev/null && {
36146          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36147          test ! -s conftest.err
36148        }; then
36149   ac_header_preproc=yes
36150 else
36151   echo "$as_me: failed program was:" >&5
36152 sed 's/^/| /' conftest.$ac_ext >&5
36153
36154   ac_header_preproc=no
36155 fi
36156
36157 rm -f conftest.err conftest.$ac_ext
36158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36159 echo "${ECHO_T}$ac_header_preproc" >&6; }
36160
36161 # So?  What about this header?
36162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36163   yes:no: )
36164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36168     ac_header_preproc=yes
36169     ;;
36170   no:yes:* )
36171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36173     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36174 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36175     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36177     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36178 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36181     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36183     ( cat <<\_ASBOX
36184 ## --------------------------------------------- ##
36185 ## Report this to <http://www.openldap.org/its/> ##
36186 ## --------------------------------------------- ##
36187 _ASBOX
36188      ) | sed "s/^/$as_me: WARNING:     /" >&2
36189     ;;
36190 esac
36191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36194   echo $ECHO_N "(cached) $ECHO_C" >&6
36195 else
36196   eval "$as_ac_Header=\$ac_header_preproc"
36197 fi
36198 ac_res=`eval echo '${'$as_ac_Header'}'`
36199                { echo "$as_me:$LINENO: result: $ac_res" >&5
36200 echo "${ECHO_T}$ac_res" >&6; }
36201
36202 fi
36203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36204   cat >>confdefs.h <<_ACEOF
36205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36206 _ACEOF
36207
36208 fi
36209
36210 done
36211
36212         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
36213                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
36214                 test "$ol_with_tls" = "found" ; then
36215                 ol_with_mp=bignum
36216
36217 cat >>confdefs.h <<\_ACEOF
36218 #define USE_MP_BIGNUM 1
36219 _ACEOF
36220
36221         elif test $ol_with_mp = bignum ; then
36222                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
36223 echo "$as_me: error: bignum not available" >&2;}
36224    { (exit 1); exit 1; }; }
36225         fi
36226 fi
36227 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
36228
36229 for ac_header in gmp.h
36230 do
36231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36233   { echo "$as_me:$LINENO: checking for $ac_header" >&5
36234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36236   echo $ECHO_N "(cached) $ECHO_C" >&6
36237 fi
36238 ac_res=`eval echo '${'$as_ac_Header'}'`
36239                { echo "$as_me:$LINENO: result: $ac_res" >&5
36240 echo "${ECHO_T}$ac_res" >&6; }
36241 else
36242   # Is the header compilable?
36243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36245 cat >conftest.$ac_ext <<_ACEOF
36246 /* confdefs.h.  */
36247 _ACEOF
36248 cat confdefs.h >>conftest.$ac_ext
36249 cat >>conftest.$ac_ext <<_ACEOF
36250 /* end confdefs.h.  */
36251 $ac_includes_default
36252 #include <$ac_header>
36253 _ACEOF
36254 rm -f conftest.$ac_objext
36255 if { (ac_try="$ac_compile"
36256 case "(($ac_try" in
36257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36258   *) ac_try_echo=$ac_try;;
36259 esac
36260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36261   (eval "$ac_compile") 2>conftest.er1
36262   ac_status=$?
36263   grep -v '^ *+' conftest.er1 >conftest.err
36264   rm -f conftest.er1
36265   cat conftest.err >&5
36266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36267   (exit $ac_status); } && {
36268          test -z "$ac_c_werror_flag" ||
36269          test ! -s conftest.err
36270        } && test -s conftest.$ac_objext; then
36271   ac_header_compiler=yes
36272 else
36273   echo "$as_me: failed program was:" >&5
36274 sed 's/^/| /' conftest.$ac_ext >&5
36275
36276         ac_header_compiler=no
36277 fi
36278
36279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36281 echo "${ECHO_T}$ac_header_compiler" >&6; }
36282
36283 # Is the header present?
36284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36286 cat >conftest.$ac_ext <<_ACEOF
36287 /* confdefs.h.  */
36288 _ACEOF
36289 cat confdefs.h >>conftest.$ac_ext
36290 cat >>conftest.$ac_ext <<_ACEOF
36291 /* end confdefs.h.  */
36292 #include <$ac_header>
36293 _ACEOF
36294 if { (ac_try="$ac_cpp conftest.$ac_ext"
36295 case "(($ac_try" in
36296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36297   *) ac_try_echo=$ac_try;;
36298 esac
36299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36301   ac_status=$?
36302   grep -v '^ *+' conftest.er1 >conftest.err
36303   rm -f conftest.er1
36304   cat conftest.err >&5
36305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306   (exit $ac_status); } >/dev/null && {
36307          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36308          test ! -s conftest.err
36309        }; then
36310   ac_header_preproc=yes
36311 else
36312   echo "$as_me: failed program was:" >&5
36313 sed 's/^/| /' conftest.$ac_ext >&5
36314
36315   ac_header_preproc=no
36316 fi
36317
36318 rm -f conftest.err conftest.$ac_ext
36319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36320 echo "${ECHO_T}$ac_header_preproc" >&6; }
36321
36322 # So?  What about this header?
36323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36324   yes:no: )
36325     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36329     ac_header_preproc=yes
36330     ;;
36331   no:yes:* )
36332     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36334     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36335 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36336     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36338     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36339 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36342     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36344     ( cat <<\_ASBOX
36345 ## --------------------------------------------- ##
36346 ## Report this to <http://www.openldap.org/its/> ##
36347 ## --------------------------------------------- ##
36348 _ASBOX
36349      ) | sed "s/^/$as_me: WARNING:     /" >&2
36350     ;;
36351 esac
36352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36355   echo $ECHO_N "(cached) $ECHO_C" >&6
36356 else
36357   eval "$as_ac_Header=\$ac_header_preproc"
36358 fi
36359 ac_res=`eval echo '${'$as_ac_Header'}'`
36360                { echo "$as_me:$LINENO: result: $ac_res" >&5
36361 echo "${ECHO_T}$ac_res" >&6; }
36362
36363 fi
36364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36365   cat >>confdefs.h <<_ACEOF
36366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36367 _ACEOF
36368
36369 fi
36370
36371 done
36372
36373
36374 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36375 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
36376 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36377   echo $ECHO_N "(cached) $ECHO_C" >&6
36378 else
36379   ac_check_lib_save_LIBS=$LIBS
36380 LIBS="-lgmp  $LIBS"
36381 cat >conftest.$ac_ext <<_ACEOF
36382 /* confdefs.h.  */
36383 _ACEOF
36384 cat confdefs.h >>conftest.$ac_ext
36385 cat >>conftest.$ac_ext <<_ACEOF
36386 /* end confdefs.h.  */
36387
36388 /* Override any GCC internal prototype to avoid an error.
36389    Use char because int might match the return type of a GCC
36390    builtin and then its argument prototype would still apply.  */
36391 #ifdef __cplusplus
36392 extern "C"
36393 #endif
36394 char __gmpz_add_ui ();
36395 int
36396 main ()
36397 {
36398 return __gmpz_add_ui ();
36399   ;
36400   return 0;
36401 }
36402 _ACEOF
36403 rm -f conftest.$ac_objext conftest$ac_exeext
36404 if { (ac_try="$ac_link"
36405 case "(($ac_try" in
36406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36407   *) ac_try_echo=$ac_try;;
36408 esac
36409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36410   (eval "$ac_link") 2>conftest.er1
36411   ac_status=$?
36412   grep -v '^ *+' conftest.er1 >conftest.err
36413   rm -f conftest.er1
36414   cat conftest.err >&5
36415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416   (exit $ac_status); } && {
36417          test -z "$ac_c_werror_flag" ||
36418          test ! -s conftest.err
36419        } && test -s conftest$ac_exeext &&
36420        $as_test_x conftest$ac_exeext; then
36421   ac_cv_lib_gmp___gmpz_add_ui=yes
36422 else
36423   echo "$as_me: failed program was:" >&5
36424 sed 's/^/| /' conftest.$ac_ext >&5
36425
36426         ac_cv_lib_gmp___gmpz_add_ui=no
36427 fi
36428
36429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36430       conftest$ac_exeext conftest.$ac_ext
36431 LIBS=$ac_check_lib_save_LIBS
36432 fi
36433 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36434 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36435 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36436   cat >>confdefs.h <<_ACEOF
36437 #define HAVE_LIBGMP 1
36438 _ACEOF
36439
36440   LIBS="-lgmp $LIBS"
36441
36442 fi
36443
36444         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36445
36446 cat >>confdefs.h <<\_ACEOF
36447 #define USE_MP_GMP 1
36448 _ACEOF
36449
36450                 ol_with_mp=gmp
36451         elif test $ol_with_mp = gmp ; then
36452                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36453 echo "$as_me: error: gmp not available" >&2;}
36454    { (exit 1); exit 1; }; }
36455         fi
36456 fi
36457 if test $ol_with_mp = auto ; then
36458         ol_with_mp=no
36459 fi
36460
36461 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36462 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36463 if test "${ac_cv_func_memcmp_working+set}" = set; then
36464   echo $ECHO_N "(cached) $ECHO_C" >&6
36465 else
36466   if test "$cross_compiling" = yes; then
36467   ac_cv_func_memcmp_working=no
36468 else
36469   cat >conftest.$ac_ext <<_ACEOF
36470 /* confdefs.h.  */
36471 _ACEOF
36472 cat confdefs.h >>conftest.$ac_ext
36473 cat >>conftest.$ac_ext <<_ACEOF
36474 /* end confdefs.h.  */
36475 $ac_includes_default
36476 int
36477 main ()
36478 {
36479
36480   /* Some versions of memcmp are not 8-bit clean.  */
36481   char c0 = '\100', c1 = '\200', c2 = '\201';
36482   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36483     return 1;
36484
36485   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36486      or more and with at least one buffer not starting on a 4-byte boundary.
36487      William Lewis provided this test program.   */
36488   {
36489     char foo[21];
36490     char bar[21];
36491     int i;
36492     for (i = 0; i < 4; i++)
36493       {
36494         char *a = foo + i;
36495         char *b = bar + i;
36496         strcpy (a, "--------01111111");
36497         strcpy (b, "--------10000000");
36498         if (memcmp (a, b, 16) >= 0)
36499           return 1;
36500       }
36501     return 0;
36502   }
36503
36504   ;
36505   return 0;
36506 }
36507 _ACEOF
36508 rm -f conftest$ac_exeext
36509 if { (ac_try="$ac_link"
36510 case "(($ac_try" in
36511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36512   *) ac_try_echo=$ac_try;;
36513 esac
36514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36515   (eval "$ac_link") 2>&5
36516   ac_status=$?
36517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36519   { (case "(($ac_try" in
36520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36521   *) ac_try_echo=$ac_try;;
36522 esac
36523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36524   (eval "$ac_try") 2>&5
36525   ac_status=$?
36526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527   (exit $ac_status); }; }; then
36528   ac_cv_func_memcmp_working=yes
36529 else
36530   echo "$as_me: program exited with status $ac_status" >&5
36531 echo "$as_me: failed program was:" >&5
36532 sed 's/^/| /' conftest.$ac_ext >&5
36533
36534 ( exit $ac_status )
36535 ac_cv_func_memcmp_working=no
36536 fi
36537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36538 fi
36539
36540
36541 fi
36542 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36543 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36544 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36545   *" memcmp.$ac_objext "* ) ;;
36546   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36547  ;;
36548 esac
36549
36550
36551
36552 if test $ac_cv_func_memcmp_working = no ; then
36553
36554 cat >>confdefs.h <<\_ACEOF
36555 #define NEED_MEMCMP_REPLACEMENT 1
36556 _ACEOF
36557
36558 fi
36559
36560
36561 for ac_func in strftime
36562 do
36563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36567   echo $ECHO_N "(cached) $ECHO_C" >&6
36568 else
36569   cat >conftest.$ac_ext <<_ACEOF
36570 /* confdefs.h.  */
36571 _ACEOF
36572 cat confdefs.h >>conftest.$ac_ext
36573 cat >>conftest.$ac_ext <<_ACEOF
36574 /* end confdefs.h.  */
36575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36577 #define $ac_func innocuous_$ac_func
36578
36579 /* System header to define __stub macros and hopefully few prototypes,
36580     which can conflict with char $ac_func (); below.
36581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36582     <limits.h> exists even on freestanding compilers.  */
36583
36584 #ifdef __STDC__
36585 # include <limits.h>
36586 #else
36587 # include <assert.h>
36588 #endif
36589
36590 #undef $ac_func
36591
36592 /* Override any GCC internal prototype to avoid an error.
36593    Use char because int might match the return type of a GCC
36594    builtin and then its argument prototype would still apply.  */
36595 #ifdef __cplusplus
36596 extern "C"
36597 #endif
36598 char $ac_func ();
36599 /* The GNU C library defines this for functions which it implements
36600     to always fail with ENOSYS.  Some functions are actually named
36601     something starting with __ and the normal name is an alias.  */
36602 #if defined __stub_$ac_func || defined __stub___$ac_func
36603 choke me
36604 #endif
36605
36606 int
36607 main ()
36608 {
36609 return $ac_func ();
36610   ;
36611   return 0;
36612 }
36613 _ACEOF
36614 rm -f conftest.$ac_objext conftest$ac_exeext
36615 if { (ac_try="$ac_link"
36616 case "(($ac_try" in
36617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36618   *) ac_try_echo=$ac_try;;
36619 esac
36620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36621   (eval "$ac_link") 2>conftest.er1
36622   ac_status=$?
36623   grep -v '^ *+' conftest.er1 >conftest.err
36624   rm -f conftest.er1
36625   cat conftest.err >&5
36626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36627   (exit $ac_status); } && {
36628          test -z "$ac_c_werror_flag" ||
36629          test ! -s conftest.err
36630        } && test -s conftest$ac_exeext &&
36631        $as_test_x conftest$ac_exeext; then
36632   eval "$as_ac_var=yes"
36633 else
36634   echo "$as_me: failed program was:" >&5
36635 sed 's/^/| /' conftest.$ac_ext >&5
36636
36637         eval "$as_ac_var=no"
36638 fi
36639
36640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36641       conftest$ac_exeext conftest.$ac_ext
36642 fi
36643 ac_res=`eval echo '${'$as_ac_var'}'`
36644                { echo "$as_me:$LINENO: result: $ac_res" >&5
36645 echo "${ECHO_T}$ac_res" >&6; }
36646 if test `eval echo '${'$as_ac_var'}'` = yes; then
36647   cat >>confdefs.h <<_ACEOF
36648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36649 _ACEOF
36650
36651 else
36652   # strftime is in -lintl on SCO UNIX.
36653 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36654 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36655 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36656   echo $ECHO_N "(cached) $ECHO_C" >&6
36657 else
36658   ac_check_lib_save_LIBS=$LIBS
36659 LIBS="-lintl  $LIBS"
36660 cat >conftest.$ac_ext <<_ACEOF
36661 /* confdefs.h.  */
36662 _ACEOF
36663 cat confdefs.h >>conftest.$ac_ext
36664 cat >>conftest.$ac_ext <<_ACEOF
36665 /* end confdefs.h.  */
36666
36667 /* Override any GCC internal prototype to avoid an error.
36668    Use char because int might match the return type of a GCC
36669    builtin and then its argument prototype would still apply.  */
36670 #ifdef __cplusplus
36671 extern "C"
36672 #endif
36673 char strftime ();
36674 int
36675 main ()
36676 {
36677 return strftime ();
36678   ;
36679   return 0;
36680 }
36681 _ACEOF
36682 rm -f conftest.$ac_objext conftest$ac_exeext
36683 if { (ac_try="$ac_link"
36684 case "(($ac_try" in
36685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36686   *) ac_try_echo=$ac_try;;
36687 esac
36688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36689   (eval "$ac_link") 2>conftest.er1
36690   ac_status=$?
36691   grep -v '^ *+' conftest.er1 >conftest.err
36692   rm -f conftest.er1
36693   cat conftest.err >&5
36694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36695   (exit $ac_status); } && {
36696          test -z "$ac_c_werror_flag" ||
36697          test ! -s conftest.err
36698        } && test -s conftest$ac_exeext &&
36699        $as_test_x conftest$ac_exeext; then
36700   ac_cv_lib_intl_strftime=yes
36701 else
36702   echo "$as_me: failed program was:" >&5
36703 sed 's/^/| /' conftest.$ac_ext >&5
36704
36705         ac_cv_lib_intl_strftime=no
36706 fi
36707
36708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36709       conftest$ac_exeext conftest.$ac_ext
36710 LIBS=$ac_check_lib_save_LIBS
36711 fi
36712 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36713 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36714 if test $ac_cv_lib_intl_strftime = yes; then
36715   cat >>confdefs.h <<\_ACEOF
36716 #define HAVE_STRFTIME 1
36717 _ACEOF
36718
36719 LIBS="-lintl $LIBS"
36720 fi
36721
36722 fi
36723 done
36724
36725
36726 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36727 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36728 if test "${ol_cv_func_inet_aton+set}" = set; then
36729   echo $ECHO_N "(cached) $ECHO_C" >&6
36730 else
36731   cat >conftest.$ac_ext <<_ACEOF
36732 /* confdefs.h.  */
36733 _ACEOF
36734 cat confdefs.h >>conftest.$ac_ext
36735 cat >>conftest.$ac_ext <<_ACEOF
36736 /* end confdefs.h.  */
36737
36738 #ifdef HAVE_SYS_TYPES_H
36739 #       include <sys/types.h>
36740 #endif
36741 #ifdef HAVE_SYS_SOCKET_H
36742 #       include <sys/socket.h>
36743 #       ifdef HAVE_SYS_SELECT_H
36744 #               include <sys/select.h>
36745 #       endif
36746 #       include <netinet/in.h>
36747 #       ifdef HAVE_ARPA_INET_H
36748 #               include <arpa/inet.h>
36749 #       endif
36750 #endif
36751
36752 int
36753 main ()
36754 {
36755 struct in_addr in;
36756 int rc = inet_aton( "255.255.255.255", &in );
36757   ;
36758   return 0;
36759 }
36760 _ACEOF
36761 rm -f conftest.$ac_objext conftest$ac_exeext
36762 if { (ac_try="$ac_link"
36763 case "(($ac_try" in
36764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36765   *) ac_try_echo=$ac_try;;
36766 esac
36767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36768   (eval "$ac_link") 2>conftest.er1
36769   ac_status=$?
36770   grep -v '^ *+' conftest.er1 >conftest.err
36771   rm -f conftest.er1
36772   cat conftest.err >&5
36773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36774   (exit $ac_status); } && {
36775          test -z "$ac_c_werror_flag" ||
36776          test ! -s conftest.err
36777        } && test -s conftest$ac_exeext &&
36778        $as_test_x conftest$ac_exeext; then
36779   ol_cv_func_inet_aton=yes
36780 else
36781   echo "$as_me: failed program was:" >&5
36782 sed 's/^/| /' conftest.$ac_ext >&5
36783
36784         ol_cv_func_inet_aton=no
36785 fi
36786
36787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36788       conftest$ac_exeext conftest.$ac_ext
36789 fi
36790 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36791 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36792   if test $ol_cv_func_inet_aton != no; then
36793
36794 cat >>confdefs.h <<\_ACEOF
36795 #define HAVE_INET_ATON 1
36796 _ACEOF
36797
36798   fi
36799
36800
36801 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36802 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36803 if test "${ac_cv_func__spawnlp+set}" = set; then
36804   echo $ECHO_N "(cached) $ECHO_C" >&6
36805 else
36806   cat >conftest.$ac_ext <<_ACEOF
36807 /* confdefs.h.  */
36808 _ACEOF
36809 cat confdefs.h >>conftest.$ac_ext
36810 cat >>conftest.$ac_ext <<_ACEOF
36811 /* end confdefs.h.  */
36812 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36814 #define _spawnlp innocuous__spawnlp
36815
36816 /* System header to define __stub macros and hopefully few prototypes,
36817     which can conflict with char _spawnlp (); below.
36818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36819     <limits.h> exists even on freestanding compilers.  */
36820
36821 #ifdef __STDC__
36822 # include <limits.h>
36823 #else
36824 # include <assert.h>
36825 #endif
36826
36827 #undef _spawnlp
36828
36829 /* Override any GCC internal prototype to avoid an error.
36830    Use char because int might match the return type of a GCC
36831    builtin and then its argument prototype would still apply.  */
36832 #ifdef __cplusplus
36833 extern "C"
36834 #endif
36835 char _spawnlp ();
36836 /* The GNU C library defines this for functions which it implements
36837     to always fail with ENOSYS.  Some functions are actually named
36838     something starting with __ and the normal name is an alias.  */
36839 #if defined __stub__spawnlp || defined __stub____spawnlp
36840 choke me
36841 #endif
36842
36843 int
36844 main ()
36845 {
36846 return _spawnlp ();
36847   ;
36848   return 0;
36849 }
36850 _ACEOF
36851 rm -f conftest.$ac_objext conftest$ac_exeext
36852 if { (ac_try="$ac_link"
36853 case "(($ac_try" in
36854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36855   *) ac_try_echo=$ac_try;;
36856 esac
36857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36858   (eval "$ac_link") 2>conftest.er1
36859   ac_status=$?
36860   grep -v '^ *+' conftest.er1 >conftest.err
36861   rm -f conftest.er1
36862   cat conftest.err >&5
36863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36864   (exit $ac_status); } && {
36865          test -z "$ac_c_werror_flag" ||
36866          test ! -s conftest.err
36867        } && test -s conftest$ac_exeext &&
36868        $as_test_x conftest$ac_exeext; then
36869   ac_cv_func__spawnlp=yes
36870 else
36871   echo "$as_me: failed program was:" >&5
36872 sed 's/^/| /' conftest.$ac_ext >&5
36873
36874         ac_cv_func__spawnlp=no
36875 fi
36876
36877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36878       conftest$ac_exeext conftest.$ac_ext
36879 fi
36880 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36881 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36882 if test $ac_cv_func__spawnlp = yes; then
36883
36884 cat >>confdefs.h <<\_ACEOF
36885 #define HAVE_SPAWNLP 1
36886 _ACEOF
36887
36888 fi
36889
36890
36891 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36892 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36893 if test "${ac_cv_func__snprintf+set}" = set; then
36894   echo $ECHO_N "(cached) $ECHO_C" >&6
36895 else
36896   cat >conftest.$ac_ext <<_ACEOF
36897 /* confdefs.h.  */
36898 _ACEOF
36899 cat confdefs.h >>conftest.$ac_ext
36900 cat >>conftest.$ac_ext <<_ACEOF
36901 /* end confdefs.h.  */
36902 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36904 #define _snprintf innocuous__snprintf
36905
36906 /* System header to define __stub macros and hopefully few prototypes,
36907     which can conflict with char _snprintf (); below.
36908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36909     <limits.h> exists even on freestanding compilers.  */
36910
36911 #ifdef __STDC__
36912 # include <limits.h>
36913 #else
36914 # include <assert.h>
36915 #endif
36916
36917 #undef _snprintf
36918
36919 /* Override any GCC internal prototype to avoid an error.
36920    Use char because int might match the return type of a GCC
36921    builtin and then its argument prototype would still apply.  */
36922 #ifdef __cplusplus
36923 extern "C"
36924 #endif
36925 char _snprintf ();
36926 /* The GNU C library defines this for functions which it implements
36927     to always fail with ENOSYS.  Some functions are actually named
36928     something starting with __ and the normal name is an alias.  */
36929 #if defined __stub__snprintf || defined __stub____snprintf
36930 choke me
36931 #endif
36932
36933 int
36934 main ()
36935 {
36936 return _snprintf ();
36937   ;
36938   return 0;
36939 }
36940 _ACEOF
36941 rm -f conftest.$ac_objext conftest$ac_exeext
36942 if { (ac_try="$ac_link"
36943 case "(($ac_try" in
36944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36945   *) ac_try_echo=$ac_try;;
36946 esac
36947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36948   (eval "$ac_link") 2>conftest.er1
36949   ac_status=$?
36950   grep -v '^ *+' conftest.er1 >conftest.err
36951   rm -f conftest.er1
36952   cat conftest.err >&5
36953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954   (exit $ac_status); } && {
36955          test -z "$ac_c_werror_flag" ||
36956          test ! -s conftest.err
36957        } && test -s conftest$ac_exeext &&
36958        $as_test_x conftest$ac_exeext; then
36959   ac_cv_func__snprintf=yes
36960 else
36961   echo "$as_me: failed program was:" >&5
36962 sed 's/^/| /' conftest.$ac_ext >&5
36963
36964         ac_cv_func__snprintf=no
36965 fi
36966
36967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36968       conftest$ac_exeext conftest.$ac_ext
36969 fi
36970 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36971 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36972 if test $ac_cv_func__snprintf = yes; then
36973   ac_cv_func_snprintf=yes
36974
36975 cat >>confdefs.h <<\_ACEOF
36976 #define snprintf _snprintf
36977 _ACEOF
36978
36979
36980 fi
36981
36982
36983
36984
36985 for ac_func in vsnprintf _vsnprintf
36986 do
36987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36991   echo $ECHO_N "(cached) $ECHO_C" >&6
36992 else
36993   cat >conftest.$ac_ext <<_ACEOF
36994 /* confdefs.h.  */
36995 _ACEOF
36996 cat confdefs.h >>conftest.$ac_ext
36997 cat >>conftest.$ac_ext <<_ACEOF
36998 /* end confdefs.h.  */
36999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37001 #define $ac_func innocuous_$ac_func
37002
37003 /* System header to define __stub macros and hopefully few prototypes,
37004     which can conflict with char $ac_func (); below.
37005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37006     <limits.h> exists even on freestanding compilers.  */
37007
37008 #ifdef __STDC__
37009 # include <limits.h>
37010 #else
37011 # include <assert.h>
37012 #endif
37013
37014 #undef $ac_func
37015
37016 /* Override any GCC internal prototype to avoid an error.
37017    Use char because int might match the return type of a GCC
37018    builtin and then its argument prototype would still apply.  */
37019 #ifdef __cplusplus
37020 extern "C"
37021 #endif
37022 char $ac_func ();
37023 /* The GNU C library defines this for functions which it implements
37024     to always fail with ENOSYS.  Some functions are actually named
37025     something starting with __ and the normal name is an alias.  */
37026 #if defined __stub_$ac_func || defined __stub___$ac_func
37027 choke me
37028 #endif
37029
37030 int
37031 main ()
37032 {
37033 return $ac_func ();
37034   ;
37035   return 0;
37036 }
37037 _ACEOF
37038 rm -f conftest.$ac_objext conftest$ac_exeext
37039 if { (ac_try="$ac_link"
37040 case "(($ac_try" in
37041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37042   *) ac_try_echo=$ac_try;;
37043 esac
37044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37045   (eval "$ac_link") 2>conftest.er1
37046   ac_status=$?
37047   grep -v '^ *+' conftest.er1 >conftest.err
37048   rm -f conftest.er1
37049   cat conftest.err >&5
37050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37051   (exit $ac_status); } && {
37052          test -z "$ac_c_werror_flag" ||
37053          test ! -s conftest.err
37054        } && test -s conftest$ac_exeext &&
37055        $as_test_x conftest$ac_exeext; then
37056   eval "$as_ac_var=yes"
37057 else
37058   echo "$as_me: failed program was:" >&5
37059 sed 's/^/| /' conftest.$ac_ext >&5
37060
37061         eval "$as_ac_var=no"
37062 fi
37063
37064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37065       conftest$ac_exeext conftest.$ac_ext
37066 fi
37067 ac_res=`eval echo '${'$as_ac_var'}'`
37068                { echo "$as_me:$LINENO: result: $ac_res" >&5
37069 echo "${ECHO_T}$ac_res" >&6; }
37070 if test `eval echo '${'$as_ac_var'}'` = yes; then
37071   cat >>confdefs.h <<_ACEOF
37072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37073 _ACEOF
37074
37075 fi
37076 done
37077
37078
37079 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
37080         ac_cv_func_vsnprintf=yes
37081
37082 cat >>confdefs.h <<\_ACEOF
37083 #define vsnprintf _vsnprintf
37084 _ACEOF
37085
37086 fi
37087
37088
37089 for ac_func in vprintf
37090 do
37091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37095   echo $ECHO_N "(cached) $ECHO_C" >&6
37096 else
37097   cat >conftest.$ac_ext <<_ACEOF
37098 /* confdefs.h.  */
37099 _ACEOF
37100 cat confdefs.h >>conftest.$ac_ext
37101 cat >>conftest.$ac_ext <<_ACEOF
37102 /* end confdefs.h.  */
37103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37105 #define $ac_func innocuous_$ac_func
37106
37107 /* System header to define __stub macros and hopefully few prototypes,
37108     which can conflict with char $ac_func (); below.
37109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37110     <limits.h> exists even on freestanding compilers.  */
37111
37112 #ifdef __STDC__
37113 # include <limits.h>
37114 #else
37115 # include <assert.h>
37116 #endif
37117
37118 #undef $ac_func
37119
37120 /* Override any GCC internal prototype to avoid an error.
37121    Use char because int might match the return type of a GCC
37122    builtin and then its argument prototype would still apply.  */
37123 #ifdef __cplusplus
37124 extern "C"
37125 #endif
37126 char $ac_func ();
37127 /* The GNU C library defines this for functions which it implements
37128     to always fail with ENOSYS.  Some functions are actually named
37129     something starting with __ and the normal name is an alias.  */
37130 #if defined __stub_$ac_func || defined __stub___$ac_func
37131 choke me
37132 #endif
37133
37134 int
37135 main ()
37136 {
37137 return $ac_func ();
37138   ;
37139   return 0;
37140 }
37141 _ACEOF
37142 rm -f conftest.$ac_objext conftest$ac_exeext
37143 if { (ac_try="$ac_link"
37144 case "(($ac_try" in
37145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37146   *) ac_try_echo=$ac_try;;
37147 esac
37148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37149   (eval "$ac_link") 2>conftest.er1
37150   ac_status=$?
37151   grep -v '^ *+' conftest.er1 >conftest.err
37152   rm -f conftest.er1
37153   cat conftest.err >&5
37154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155   (exit $ac_status); } && {
37156          test -z "$ac_c_werror_flag" ||
37157          test ! -s conftest.err
37158        } && test -s conftest$ac_exeext &&
37159        $as_test_x conftest$ac_exeext; then
37160   eval "$as_ac_var=yes"
37161 else
37162   echo "$as_me: failed program was:" >&5
37163 sed 's/^/| /' conftest.$ac_ext >&5
37164
37165         eval "$as_ac_var=no"
37166 fi
37167
37168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37169       conftest$ac_exeext conftest.$ac_ext
37170 fi
37171 ac_res=`eval echo '${'$as_ac_var'}'`
37172                { echo "$as_me:$LINENO: result: $ac_res" >&5
37173 echo "${ECHO_T}$ac_res" >&6; }
37174 if test `eval echo '${'$as_ac_var'}'` = yes; then
37175   cat >>confdefs.h <<_ACEOF
37176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37177 _ACEOF
37178
37179 { echo "$as_me:$LINENO: checking for _doprnt" >&5
37180 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
37181 if test "${ac_cv_func__doprnt+set}" = set; then
37182   echo $ECHO_N "(cached) $ECHO_C" >&6
37183 else
37184   cat >conftest.$ac_ext <<_ACEOF
37185 /* confdefs.h.  */
37186 _ACEOF
37187 cat confdefs.h >>conftest.$ac_ext
37188 cat >>conftest.$ac_ext <<_ACEOF
37189 /* end confdefs.h.  */
37190 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
37191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37192 #define _doprnt innocuous__doprnt
37193
37194 /* System header to define __stub macros and hopefully few prototypes,
37195     which can conflict with char _doprnt (); below.
37196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37197     <limits.h> exists even on freestanding compilers.  */
37198
37199 #ifdef __STDC__
37200 # include <limits.h>
37201 #else
37202 # include <assert.h>
37203 #endif
37204
37205 #undef _doprnt
37206
37207 /* Override any GCC internal prototype to avoid an error.
37208    Use char because int might match the return type of a GCC
37209    builtin and then its argument prototype would still apply.  */
37210 #ifdef __cplusplus
37211 extern "C"
37212 #endif
37213 char _doprnt ();
37214 /* The GNU C library defines this for functions which it implements
37215     to always fail with ENOSYS.  Some functions are actually named
37216     something starting with __ and the normal name is an alias.  */
37217 #if defined __stub__doprnt || defined __stub____doprnt
37218 choke me
37219 #endif
37220
37221 int
37222 main ()
37223 {
37224 return _doprnt ();
37225   ;
37226   return 0;
37227 }
37228 _ACEOF
37229 rm -f conftest.$ac_objext conftest$ac_exeext
37230 if { (ac_try="$ac_link"
37231 case "(($ac_try" in
37232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37233   *) ac_try_echo=$ac_try;;
37234 esac
37235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37236   (eval "$ac_link") 2>conftest.er1
37237   ac_status=$?
37238   grep -v '^ *+' conftest.er1 >conftest.err
37239   rm -f conftest.er1
37240   cat conftest.err >&5
37241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37242   (exit $ac_status); } && {
37243          test -z "$ac_c_werror_flag" ||
37244          test ! -s conftest.err
37245        } && test -s conftest$ac_exeext &&
37246        $as_test_x conftest$ac_exeext; then
37247   ac_cv_func__doprnt=yes
37248 else
37249   echo "$as_me: failed program was:" >&5
37250 sed 's/^/| /' conftest.$ac_ext >&5
37251
37252         ac_cv_func__doprnt=no
37253 fi
37254
37255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37256       conftest$ac_exeext conftest.$ac_ext
37257 fi
37258 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37259 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
37260 if test $ac_cv_func__doprnt = yes; then
37261
37262 cat >>confdefs.h <<\_ACEOF
37263 #define HAVE_DOPRNT 1
37264 _ACEOF
37265
37266 fi
37267
37268 fi
37269 done
37270
37271
37272
37273 if test $ac_cv_func_vprintf = yes ; then
37274
37275
37276 for ac_func in snprintf vsnprintf
37277 do
37278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37282   echo $ECHO_N "(cached) $ECHO_C" >&6
37283 else
37284   cat >conftest.$ac_ext <<_ACEOF
37285 /* confdefs.h.  */
37286 _ACEOF
37287 cat confdefs.h >>conftest.$ac_ext
37288 cat >>conftest.$ac_ext <<_ACEOF
37289 /* end confdefs.h.  */
37290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37292 #define $ac_func innocuous_$ac_func
37293
37294 /* System header to define __stub macros and hopefully few prototypes,
37295     which can conflict with char $ac_func (); below.
37296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37297     <limits.h> exists even on freestanding compilers.  */
37298
37299 #ifdef __STDC__
37300 # include <limits.h>
37301 #else
37302 # include <assert.h>
37303 #endif
37304
37305 #undef $ac_func
37306
37307 /* Override any GCC internal prototype to avoid an error.
37308    Use char because int might match the return type of a GCC
37309    builtin and then its argument prototype would still apply.  */
37310 #ifdef __cplusplus
37311 extern "C"
37312 #endif
37313 char $ac_func ();
37314 /* The GNU C library defines this for functions which it implements
37315     to always fail with ENOSYS.  Some functions are actually named
37316     something starting with __ and the normal name is an alias.  */
37317 #if defined __stub_$ac_func || defined __stub___$ac_func
37318 choke me
37319 #endif
37320
37321 int
37322 main ()
37323 {
37324 return $ac_func ();
37325   ;
37326   return 0;
37327 }
37328 _ACEOF
37329 rm -f conftest.$ac_objext conftest$ac_exeext
37330 if { (ac_try="$ac_link"
37331 case "(($ac_try" in
37332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37333   *) ac_try_echo=$ac_try;;
37334 esac
37335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37336   (eval "$ac_link") 2>conftest.er1
37337   ac_status=$?
37338   grep -v '^ *+' conftest.er1 >conftest.err
37339   rm -f conftest.er1
37340   cat conftest.err >&5
37341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37342   (exit $ac_status); } && {
37343          test -z "$ac_c_werror_flag" ||
37344          test ! -s conftest.err
37345        } && test -s conftest$ac_exeext &&
37346        $as_test_x conftest$ac_exeext; then
37347   eval "$as_ac_var=yes"
37348 else
37349   echo "$as_me: failed program was:" >&5
37350 sed 's/^/| /' conftest.$ac_ext >&5
37351
37352         eval "$as_ac_var=no"
37353 fi
37354
37355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37356       conftest$ac_exeext conftest.$ac_ext
37357 fi
37358 ac_res=`eval echo '${'$as_ac_var'}'`
37359                { echo "$as_me:$LINENO: result: $ac_res" >&5
37360 echo "${ECHO_T}$ac_res" >&6; }
37361 if test `eval echo '${'$as_ac_var'}'` = yes; then
37362   cat >>confdefs.h <<_ACEOF
37363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37364 _ACEOF
37365
37366 fi
37367 done
37368
37369 fi
37370
37371
37372
37373
37374
37375
37376
37377
37378
37379
37380
37381
37382
37383
37384
37385
37386
37387
37388
37389
37390
37391
37392
37393
37394
37395
37396
37397
37398
37399
37400
37401
37402
37403
37404
37405
37406
37407
37408
37409
37410
37411
37412
37413
37414
37415
37416
37417
37418
37419
37420
37421
37422
37423
37424
37425
37426
37427 for ac_func in \
37428         bcopy                   \
37429         closesocket             \
37430         chroot                  \
37431         endgrent                \
37432         endpwent                \
37433         fcntl                   \
37434         flock                   \
37435         fstat                   \
37436         getdtablesize           \
37437         geteuid                 \
37438         getgrgid                \
37439         gethostname             \
37440         getpassphrase           \
37441         getpwuid                \
37442         getpwnam                \
37443         getspnam                \
37444         gettimeofday            \
37445         initgroups              \
37446         inet_ntoa_b             \
37447         ioctl                   \
37448         lockf                   \
37449         memcpy                  \
37450         memmove                 \
37451         memrchr                 \
37452         mkstemp                 \
37453         mktemp                  \
37454         pipe                    \
37455         read                    \
37456         recv                    \
37457         recvfrom                \
37458         setpwfile               \
37459         setgid                  \
37460         setegid                 \
37461         setsid                  \
37462         setuid                  \
37463         seteuid                 \
37464         signal                  \
37465         strdup                  \
37466         strpbrk                 \
37467         strrchr                 \
37468         strsep                  \
37469         strstr                  \
37470         strtol                  \
37471         strtoul                 \
37472         strtoq                  \
37473         strtouq                 \
37474         strtoll                 \
37475         strtoull                \
37476         strspn                  \
37477         sysconf                 \
37478         waitpid                 \
37479         wait4                   \
37480         write                   \
37481         send                    \
37482         sendmsg                 \
37483         sendto                  \
37484
37485 do
37486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37490   echo $ECHO_N "(cached) $ECHO_C" >&6
37491 else
37492   cat >conftest.$ac_ext <<_ACEOF
37493 /* confdefs.h.  */
37494 _ACEOF
37495 cat confdefs.h >>conftest.$ac_ext
37496 cat >>conftest.$ac_ext <<_ACEOF
37497 /* end confdefs.h.  */
37498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37500 #define $ac_func innocuous_$ac_func
37501
37502 /* System header to define __stub macros and hopefully few prototypes,
37503     which can conflict with char $ac_func (); below.
37504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37505     <limits.h> exists even on freestanding compilers.  */
37506
37507 #ifdef __STDC__
37508 # include <limits.h>
37509 #else
37510 # include <assert.h>
37511 #endif
37512
37513 #undef $ac_func
37514
37515 /* Override any GCC internal prototype to avoid an error.
37516    Use char because int might match the return type of a GCC
37517    builtin and then its argument prototype would still apply.  */
37518 #ifdef __cplusplus
37519 extern "C"
37520 #endif
37521 char $ac_func ();
37522 /* The GNU C library defines this for functions which it implements
37523     to always fail with ENOSYS.  Some functions are actually named
37524     something starting with __ and the normal name is an alias.  */
37525 #if defined __stub_$ac_func || defined __stub___$ac_func
37526 choke me
37527 #endif
37528
37529 int
37530 main ()
37531 {
37532 return $ac_func ();
37533   ;
37534   return 0;
37535 }
37536 _ACEOF
37537 rm -f conftest.$ac_objext conftest$ac_exeext
37538 if { (ac_try="$ac_link"
37539 case "(($ac_try" in
37540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37541   *) ac_try_echo=$ac_try;;
37542 esac
37543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37544   (eval "$ac_link") 2>conftest.er1
37545   ac_status=$?
37546   grep -v '^ *+' conftest.er1 >conftest.err
37547   rm -f conftest.er1
37548   cat conftest.err >&5
37549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550   (exit $ac_status); } && {
37551          test -z "$ac_c_werror_flag" ||
37552          test ! -s conftest.err
37553        } && test -s conftest$ac_exeext &&
37554        $as_test_x conftest$ac_exeext; then
37555   eval "$as_ac_var=yes"
37556 else
37557   echo "$as_me: failed program was:" >&5
37558 sed 's/^/| /' conftest.$ac_ext >&5
37559
37560         eval "$as_ac_var=no"
37561 fi
37562
37563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37564       conftest$ac_exeext conftest.$ac_ext
37565 fi
37566 ac_res=`eval echo '${'$as_ac_var'}'`
37567                { echo "$as_me:$LINENO: result: $ac_res" >&5
37568 echo "${ECHO_T}$ac_res" >&6; }
37569 if test `eval echo '${'$as_ac_var'}'` = yes; then
37570   cat >>confdefs.h <<_ACEOF
37571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37572 _ACEOF
37573
37574 fi
37575 done
37576
37577
37578
37579
37580 for ac_func in getopt getpeereid
37581 do
37582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37586   echo $ECHO_N "(cached) $ECHO_C" >&6
37587 else
37588   cat >conftest.$ac_ext <<_ACEOF
37589 /* confdefs.h.  */
37590 _ACEOF
37591 cat confdefs.h >>conftest.$ac_ext
37592 cat >>conftest.$ac_ext <<_ACEOF
37593 /* end confdefs.h.  */
37594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37596 #define $ac_func innocuous_$ac_func
37597
37598 /* System header to define __stub macros and hopefully few prototypes,
37599     which can conflict with char $ac_func (); below.
37600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37601     <limits.h> exists even on freestanding compilers.  */
37602
37603 #ifdef __STDC__
37604 # include <limits.h>
37605 #else
37606 # include <assert.h>
37607 #endif
37608
37609 #undef $ac_func
37610
37611 /* Override any GCC internal prototype to avoid an error.
37612    Use char because int might match the return type of a GCC
37613    builtin and then its argument prototype would still apply.  */
37614 #ifdef __cplusplus
37615 extern "C"
37616 #endif
37617 char $ac_func ();
37618 /* The GNU C library defines this for functions which it implements
37619     to always fail with ENOSYS.  Some functions are actually named
37620     something starting with __ and the normal name is an alias.  */
37621 #if defined __stub_$ac_func || defined __stub___$ac_func
37622 choke me
37623 #endif
37624
37625 int
37626 main ()
37627 {
37628 return $ac_func ();
37629   ;
37630   return 0;
37631 }
37632 _ACEOF
37633 rm -f conftest.$ac_objext conftest$ac_exeext
37634 if { (ac_try="$ac_link"
37635 case "(($ac_try" in
37636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37637   *) ac_try_echo=$ac_try;;
37638 esac
37639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37640   (eval "$ac_link") 2>conftest.er1
37641   ac_status=$?
37642   grep -v '^ *+' conftest.er1 >conftest.err
37643   rm -f conftest.er1
37644   cat conftest.err >&5
37645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646   (exit $ac_status); } && {
37647          test -z "$ac_c_werror_flag" ||
37648          test ! -s conftest.err
37649        } && test -s conftest$ac_exeext &&
37650        $as_test_x conftest$ac_exeext; then
37651   eval "$as_ac_var=yes"
37652 else
37653   echo "$as_me: failed program was:" >&5
37654 sed 's/^/| /' conftest.$ac_ext >&5
37655
37656         eval "$as_ac_var=no"
37657 fi
37658
37659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37660       conftest$ac_exeext conftest.$ac_ext
37661 fi
37662 ac_res=`eval echo '${'$as_ac_var'}'`
37663                { echo "$as_me:$LINENO: result: $ac_res" >&5
37664 echo "${ECHO_T}$ac_res" >&6; }
37665 if test `eval echo '${'$as_ac_var'}'` = yes; then
37666   cat >>confdefs.h <<_ACEOF
37667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37668 _ACEOF
37669
37670 else
37671   case " $LIBOBJS " in
37672   *" $ac_func.$ac_objext "* ) ;;
37673   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37674  ;;
37675 esac
37676
37677 fi
37678 done
37679
37680
37681
37682 if test "$ac_cv_func_getopt" != yes; then
37683         LIBSRCS="$LIBSRCS getopt.c"
37684 fi
37685
37686 if test "$ac_cv_func_getpeereid" != yes; then
37687
37688 for ac_func in getpeerucred
37689 do
37690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37694   echo $ECHO_N "(cached) $ECHO_C" >&6
37695 else
37696   cat >conftest.$ac_ext <<_ACEOF
37697 /* confdefs.h.  */
37698 _ACEOF
37699 cat confdefs.h >>conftest.$ac_ext
37700 cat >>conftest.$ac_ext <<_ACEOF
37701 /* end confdefs.h.  */
37702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37704 #define $ac_func innocuous_$ac_func
37705
37706 /* System header to define __stub macros and hopefully few prototypes,
37707     which can conflict with char $ac_func (); below.
37708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37709     <limits.h> exists even on freestanding compilers.  */
37710
37711 #ifdef __STDC__
37712 # include <limits.h>
37713 #else
37714 # include <assert.h>
37715 #endif
37716
37717 #undef $ac_func
37718
37719 /* Override any GCC internal prototype to avoid an error.
37720    Use char because int might match the return type of a GCC
37721    builtin and then its argument prototype would still apply.  */
37722 #ifdef __cplusplus
37723 extern "C"
37724 #endif
37725 char $ac_func ();
37726 /* The GNU C library defines this for functions which it implements
37727     to always fail with ENOSYS.  Some functions are actually named
37728     something starting with __ and the normal name is an alias.  */
37729 #if defined __stub_$ac_func || defined __stub___$ac_func
37730 choke me
37731 #endif
37732
37733 int
37734 main ()
37735 {
37736 return $ac_func ();
37737   ;
37738   return 0;
37739 }
37740 _ACEOF
37741 rm -f conftest.$ac_objext conftest$ac_exeext
37742 if { (ac_try="$ac_link"
37743 case "(($ac_try" in
37744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37745   *) ac_try_echo=$ac_try;;
37746 esac
37747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37748   (eval "$ac_link") 2>conftest.er1
37749   ac_status=$?
37750   grep -v '^ *+' conftest.er1 >conftest.err
37751   rm -f conftest.er1
37752   cat conftest.err >&5
37753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754   (exit $ac_status); } && {
37755          test -z "$ac_c_werror_flag" ||
37756          test ! -s conftest.err
37757        } && test -s conftest$ac_exeext &&
37758        $as_test_x conftest$ac_exeext; then
37759   eval "$as_ac_var=yes"
37760 else
37761   echo "$as_me: failed program was:" >&5
37762 sed 's/^/| /' conftest.$ac_ext >&5
37763
37764         eval "$as_ac_var=no"
37765 fi
37766
37767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37768       conftest$ac_exeext conftest.$ac_ext
37769 fi
37770 ac_res=`eval echo '${'$as_ac_var'}'`
37771                { echo "$as_me:$LINENO: result: $ac_res" >&5
37772 echo "${ECHO_T}$ac_res" >&6; }
37773 if test `eval echo '${'$as_ac_var'}'` = yes; then
37774   cat >>confdefs.h <<_ACEOF
37775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37776 _ACEOF
37777
37778 fi
37779 done
37780
37781         if test "$ac_cv_func_getpeerucred" != yes ; then
37782                 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37783 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37784 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37785   echo $ECHO_N "(cached) $ECHO_C" >&6
37786 else
37787   cat >conftest.$ac_ext <<_ACEOF
37788 /* confdefs.h.  */
37789 _ACEOF
37790 cat confdefs.h >>conftest.$ac_ext
37791 cat >>conftest.$ac_ext <<_ACEOF
37792 /* end confdefs.h.  */
37793 $ac_includes_default
37794 #ifdef HAVE_SYS_SOCKET_H
37795 #include <sys/socket.h>
37796 #endif
37797
37798 int
37799 main ()
37800 {
37801 static struct msghdr ac_aggr;
37802 if (ac_aggr.msg_accrightslen)
37803 return 0;
37804   ;
37805   return 0;
37806 }
37807 _ACEOF
37808 rm -f conftest.$ac_objext
37809 if { (ac_try="$ac_compile"
37810 case "(($ac_try" in
37811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37812   *) ac_try_echo=$ac_try;;
37813 esac
37814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37815   (eval "$ac_compile") 2>conftest.er1
37816   ac_status=$?
37817   grep -v '^ *+' conftest.er1 >conftest.err
37818   rm -f conftest.er1
37819   cat conftest.err >&5
37820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821   (exit $ac_status); } && {
37822          test -z "$ac_c_werror_flag" ||
37823          test ! -s conftest.err
37824        } && test -s conftest.$ac_objext; then
37825   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37826 else
37827   echo "$as_me: failed program was:" >&5
37828 sed 's/^/| /' conftest.$ac_ext >&5
37829
37830         cat >conftest.$ac_ext <<_ACEOF
37831 /* confdefs.h.  */
37832 _ACEOF
37833 cat confdefs.h >>conftest.$ac_ext
37834 cat >>conftest.$ac_ext <<_ACEOF
37835 /* end confdefs.h.  */
37836 $ac_includes_default
37837 #ifdef HAVE_SYS_SOCKET_H
37838 #include <sys/socket.h>
37839 #endif
37840
37841 int
37842 main ()
37843 {
37844 static struct msghdr ac_aggr;
37845 if (sizeof ac_aggr.msg_accrightslen)
37846 return 0;
37847   ;
37848   return 0;
37849 }
37850 _ACEOF
37851 rm -f conftest.$ac_objext
37852 if { (ac_try="$ac_compile"
37853 case "(($ac_try" in
37854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37855   *) ac_try_echo=$ac_try;;
37856 esac
37857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37858   (eval "$ac_compile") 2>conftest.er1
37859   ac_status=$?
37860   grep -v '^ *+' conftest.er1 >conftest.err
37861   rm -f conftest.er1
37862   cat conftest.err >&5
37863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37864   (exit $ac_status); } && {
37865          test -z "$ac_c_werror_flag" ||
37866          test ! -s conftest.err
37867        } && test -s conftest.$ac_objext; then
37868   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37869 else
37870   echo "$as_me: failed program was:" >&5
37871 sed 's/^/| /' conftest.$ac_ext >&5
37872
37873         ac_cv_member_struct_msghdr_msg_accrightslen=no
37874 fi
37875
37876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37877 fi
37878
37879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37880 fi
37881 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37882 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37883 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37884
37885 cat >>confdefs.h <<_ACEOF
37886 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37887 _ACEOF
37888
37889
37890 fi
37891
37892                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37893                         { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37894 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37895 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37896   echo $ECHO_N "(cached) $ECHO_C" >&6
37897 else
37898   cat >conftest.$ac_ext <<_ACEOF
37899 /* confdefs.h.  */
37900 _ACEOF
37901 cat confdefs.h >>conftest.$ac_ext
37902 cat >>conftest.$ac_ext <<_ACEOF
37903 /* end confdefs.h.  */
37904 $ac_includes_default
37905 #ifdef HAVE_SYS_SOCKET_H
37906 #include <sys/socket.h>
37907 #endif
37908
37909 int
37910 main ()
37911 {
37912 static struct msghdr ac_aggr;
37913 if (ac_aggr.msg_control)
37914 return 0;
37915   ;
37916   return 0;
37917 }
37918 _ACEOF
37919 rm -f conftest.$ac_objext
37920 if { (ac_try="$ac_compile"
37921 case "(($ac_try" in
37922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37923   *) ac_try_echo=$ac_try;;
37924 esac
37925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37926   (eval "$ac_compile") 2>conftest.er1
37927   ac_status=$?
37928   grep -v '^ *+' conftest.er1 >conftest.err
37929   rm -f conftest.er1
37930   cat conftest.err >&5
37931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37932   (exit $ac_status); } && {
37933          test -z "$ac_c_werror_flag" ||
37934          test ! -s conftest.err
37935        } && test -s conftest.$ac_objext; then
37936   ac_cv_member_struct_msghdr_msg_control=yes
37937 else
37938   echo "$as_me: failed program was:" >&5
37939 sed 's/^/| /' conftest.$ac_ext >&5
37940
37941         cat >conftest.$ac_ext <<_ACEOF
37942 /* confdefs.h.  */
37943 _ACEOF
37944 cat confdefs.h >>conftest.$ac_ext
37945 cat >>conftest.$ac_ext <<_ACEOF
37946 /* end confdefs.h.  */
37947 $ac_includes_default
37948 #ifdef HAVE_SYS_SOCKET_H
37949 #include <sys/socket.h>
37950 #endif
37951
37952 int
37953 main ()
37954 {
37955 static struct msghdr ac_aggr;
37956 if (sizeof ac_aggr.msg_control)
37957 return 0;
37958   ;
37959   return 0;
37960 }
37961 _ACEOF
37962 rm -f conftest.$ac_objext
37963 if { (ac_try="$ac_compile"
37964 case "(($ac_try" in
37965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37966   *) ac_try_echo=$ac_try;;
37967 esac
37968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37969   (eval "$ac_compile") 2>conftest.er1
37970   ac_status=$?
37971   grep -v '^ *+' conftest.er1 >conftest.err
37972   rm -f conftest.er1
37973   cat conftest.err >&5
37974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975   (exit $ac_status); } && {
37976          test -z "$ac_c_werror_flag" ||
37977          test ! -s conftest.err
37978        } && test -s conftest.$ac_objext; then
37979   ac_cv_member_struct_msghdr_msg_control=yes
37980 else
37981   echo "$as_me: failed program was:" >&5
37982 sed 's/^/| /' conftest.$ac_ext >&5
37983
37984         ac_cv_member_struct_msghdr_msg_control=no
37985 fi
37986
37987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37988 fi
37989
37990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37991 fi
37992 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37993 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37994 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37995
37996 cat >>confdefs.h <<_ACEOF
37997 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37998 _ACEOF
37999
38000
38001 fi
38002
38003                 fi
38004                 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
38005 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
38006 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
38007   echo $ECHO_N "(cached) $ECHO_C" >&6
38008 else
38009   cat >conftest.$ac_ext <<_ACEOF
38010 /* confdefs.h.  */
38011 _ACEOF
38012 cat confdefs.h >>conftest.$ac_ext
38013 cat >>conftest.$ac_ext <<_ACEOF
38014 /* end confdefs.h.  */
38015 $ac_includes_default
38016 int
38017 main ()
38018 {
38019 static struct stat ac_aggr;
38020 if (ac_aggr.st_fstype)
38021 return 0;
38022   ;
38023   return 0;
38024 }
38025 _ACEOF
38026 rm -f conftest.$ac_objext
38027 if { (ac_try="$ac_compile"
38028 case "(($ac_try" in
38029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38030   *) ac_try_echo=$ac_try;;
38031 esac
38032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38033   (eval "$ac_compile") 2>conftest.er1
38034   ac_status=$?
38035   grep -v '^ *+' conftest.er1 >conftest.err
38036   rm -f conftest.er1
38037   cat conftest.err >&5
38038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38039   (exit $ac_status); } && {
38040          test -z "$ac_c_werror_flag" ||
38041          test ! -s conftest.err
38042        } && test -s conftest.$ac_objext; then
38043   ac_cv_member_struct_stat_st_fstype=yes
38044 else
38045   echo "$as_me: failed program was:" >&5
38046 sed 's/^/| /' conftest.$ac_ext >&5
38047
38048         cat >conftest.$ac_ext <<_ACEOF
38049 /* confdefs.h.  */
38050 _ACEOF
38051 cat confdefs.h >>conftest.$ac_ext
38052 cat >>conftest.$ac_ext <<_ACEOF
38053 /* end confdefs.h.  */
38054 $ac_includes_default
38055 int
38056 main ()
38057 {
38058 static struct stat ac_aggr;
38059 if (sizeof ac_aggr.st_fstype)
38060 return 0;
38061   ;
38062   return 0;
38063 }
38064 _ACEOF
38065 rm -f conftest.$ac_objext
38066 if { (ac_try="$ac_compile"
38067 case "(($ac_try" in
38068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38069   *) ac_try_echo=$ac_try;;
38070 esac
38071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38072   (eval "$ac_compile") 2>conftest.er1
38073   ac_status=$?
38074   grep -v '^ *+' conftest.er1 >conftest.err
38075   rm -f conftest.er1
38076   cat conftest.err >&5
38077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078   (exit $ac_status); } && {
38079          test -z "$ac_c_werror_flag" ||
38080          test ! -s conftest.err
38081        } && test -s conftest.$ac_objext; then
38082   ac_cv_member_struct_stat_st_fstype=yes
38083 else
38084   echo "$as_me: failed program was:" >&5
38085 sed 's/^/| /' conftest.$ac_ext >&5
38086
38087         ac_cv_member_struct_stat_st_fstype=no
38088 fi
38089
38090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38091 fi
38092
38093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38094 fi
38095 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
38096 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
38097 if test $ac_cv_member_struct_stat_st_fstype = yes; then
38098
38099 cat >>confdefs.h <<_ACEOF
38100 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
38101 _ACEOF
38102
38103
38104 fi
38105 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
38106 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
38107 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
38108   echo $ECHO_N "(cached) $ECHO_C" >&6
38109 else
38110   cat >conftest.$ac_ext <<_ACEOF
38111 /* confdefs.h.  */
38112 _ACEOF
38113 cat confdefs.h >>conftest.$ac_ext
38114 cat >>conftest.$ac_ext <<_ACEOF
38115 /* end confdefs.h.  */
38116 $ac_includes_default
38117 int
38118 main ()
38119 {
38120 static struct stat ac_aggr;
38121 if (ac_aggr.st_vfstype)
38122 return 0;
38123   ;
38124   return 0;
38125 }
38126 _ACEOF
38127 rm -f conftest.$ac_objext
38128 if { (ac_try="$ac_compile"
38129 case "(($ac_try" in
38130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38131   *) ac_try_echo=$ac_try;;
38132 esac
38133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38134   (eval "$ac_compile") 2>conftest.er1
38135   ac_status=$?
38136   grep -v '^ *+' conftest.er1 >conftest.err
38137   rm -f conftest.er1
38138   cat conftest.err >&5
38139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38140   (exit $ac_status); } && {
38141          test -z "$ac_c_werror_flag" ||
38142          test ! -s conftest.err
38143        } && test -s conftest.$ac_objext; then
38144   ac_cv_member_struct_stat_st_vfstype=yes
38145 else
38146   echo "$as_me: failed program was:" >&5
38147 sed 's/^/| /' conftest.$ac_ext >&5
38148
38149         cat >conftest.$ac_ext <<_ACEOF
38150 /* confdefs.h.  */
38151 _ACEOF
38152 cat confdefs.h >>conftest.$ac_ext
38153 cat >>conftest.$ac_ext <<_ACEOF
38154 /* end confdefs.h.  */
38155 $ac_includes_default
38156 int
38157 main ()
38158 {
38159 static struct stat ac_aggr;
38160 if (sizeof ac_aggr.st_vfstype)
38161 return 0;
38162   ;
38163   return 0;
38164 }
38165 _ACEOF
38166 rm -f conftest.$ac_objext
38167 if { (ac_try="$ac_compile"
38168 case "(($ac_try" in
38169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38170   *) ac_try_echo=$ac_try;;
38171 esac
38172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38173   (eval "$ac_compile") 2>conftest.er1
38174   ac_status=$?
38175   grep -v '^ *+' conftest.er1 >conftest.err
38176   rm -f conftest.er1
38177   cat conftest.err >&5
38178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38179   (exit $ac_status); } && {
38180          test -z "$ac_c_werror_flag" ||
38181          test ! -s conftest.err
38182        } && test -s conftest.$ac_objext; then
38183   ac_cv_member_struct_stat_st_vfstype=yes
38184 else
38185   echo "$as_me: failed program was:" >&5
38186 sed 's/^/| /' conftest.$ac_ext >&5
38187
38188         ac_cv_member_struct_stat_st_vfstype=no
38189 fi
38190
38191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38192 fi
38193
38194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38195 fi
38196 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
38197 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
38198 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
38199
38200 cat >>confdefs.h <<_ACEOF
38201 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
38202 _ACEOF
38203
38204
38205 fi
38206
38207                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
38208                         cat >conftest.$ac_ext <<_ACEOF
38209 struct stat st; char *ptr=st.st_fstype;
38210 _ACEOF
38211 rm -f conftest.$ac_objext
38212 if { (ac_try="$ac_compile"
38213 case "(($ac_try" in
38214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38215   *) ac_try_echo=$ac_try;;
38216 esac
38217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38218   (eval "$ac_compile") 2>conftest.er1
38219   ac_status=$?
38220   grep -v '^ *+' conftest.er1 >conftest.err
38221   rm -f conftest.er1
38222   cat conftest.err >&5
38223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38224   (exit $ac_status); } && {
38225          test -z "$ac_c_werror_flag" ||
38226          test ! -s conftest.err
38227        } && test -s conftest.$ac_objext; then
38228
38229 cat >>confdefs.h <<\_ACEOF
38230 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
38231 _ACEOF
38232
38233 else
38234   echo "$as_me: failed program was:" >&5
38235 sed 's/^/| /' conftest.$ac_ext >&5
38236
38237
38238 cat >>confdefs.h <<\_ACEOF
38239 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
38240 _ACEOF
38241
38242 fi
38243
38244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38245                 fi
38246         fi
38247         LIBSRCS="$LIBSRCS getpeereid.c"
38248 fi
38249
38250 if test "$ac_cv_func_snprintf" != yes ||
38251    test "$ac_cv_func_vsnprintf" != yes; then
38252         if test "$ac_cv_func_snprintf" != yes; then
38253
38254 cat >>confdefs.h <<\_ACEOF
38255 #define snprintf ber_pvt_snprintf
38256 _ACEOF
38257
38258         fi
38259         if test "$ac_cv_func_vsnprintf" != yes; then
38260
38261 cat >>confdefs.h <<\_ACEOF
38262 #define vsnprintf ber_pvt_vsnprintf
38263 _ACEOF
38264
38265         fi
38266 fi
38267
38268
38269 if test "$ol_enable_slapi" != no ; then
38270
38271 for ac_header in ltdl.h
38272 do
38273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38275   { echo "$as_me:$LINENO: checking for $ac_header" >&5
38276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38278   echo $ECHO_N "(cached) $ECHO_C" >&6
38279 fi
38280 ac_res=`eval echo '${'$as_ac_Header'}'`
38281                { echo "$as_me:$LINENO: result: $ac_res" >&5
38282 echo "${ECHO_T}$ac_res" >&6; }
38283 else
38284   # Is the header compilable?
38285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38287 cat >conftest.$ac_ext <<_ACEOF
38288 /* confdefs.h.  */
38289 _ACEOF
38290 cat confdefs.h >>conftest.$ac_ext
38291 cat >>conftest.$ac_ext <<_ACEOF
38292 /* end confdefs.h.  */
38293 $ac_includes_default
38294 #include <$ac_header>
38295 _ACEOF
38296 rm -f conftest.$ac_objext
38297 if { (ac_try="$ac_compile"
38298 case "(($ac_try" in
38299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38300   *) ac_try_echo=$ac_try;;
38301 esac
38302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38303   (eval "$ac_compile") 2>conftest.er1
38304   ac_status=$?
38305   grep -v '^ *+' conftest.er1 >conftest.err
38306   rm -f conftest.er1
38307   cat conftest.err >&5
38308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38309   (exit $ac_status); } && {
38310          test -z "$ac_c_werror_flag" ||
38311          test ! -s conftest.err
38312        } && test -s conftest.$ac_objext; then
38313   ac_header_compiler=yes
38314 else
38315   echo "$as_me: failed program was:" >&5
38316 sed 's/^/| /' conftest.$ac_ext >&5
38317
38318         ac_header_compiler=no
38319 fi
38320
38321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38323 echo "${ECHO_T}$ac_header_compiler" >&6; }
38324
38325 # Is the header present?
38326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38328 cat >conftest.$ac_ext <<_ACEOF
38329 /* confdefs.h.  */
38330 _ACEOF
38331 cat confdefs.h >>conftest.$ac_ext
38332 cat >>conftest.$ac_ext <<_ACEOF
38333 /* end confdefs.h.  */
38334 #include <$ac_header>
38335 _ACEOF
38336 if { (ac_try="$ac_cpp conftest.$ac_ext"
38337 case "(($ac_try" in
38338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38339   *) ac_try_echo=$ac_try;;
38340 esac
38341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38343   ac_status=$?
38344   grep -v '^ *+' conftest.er1 >conftest.err
38345   rm -f conftest.er1
38346   cat conftest.err >&5
38347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38348   (exit $ac_status); } >/dev/null && {
38349          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38350          test ! -s conftest.err
38351        }; then
38352   ac_header_preproc=yes
38353 else
38354   echo "$as_me: failed program was:" >&5
38355 sed 's/^/| /' conftest.$ac_ext >&5
38356
38357   ac_header_preproc=no
38358 fi
38359
38360 rm -f conftest.err conftest.$ac_ext
38361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38362 echo "${ECHO_T}$ac_header_preproc" >&6; }
38363
38364 # So?  What about this header?
38365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38366   yes:no: )
38367     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38371     ac_header_preproc=yes
38372     ;;
38373   no:yes:* )
38374     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38376     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38377 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38378     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38380     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38381 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38384     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38386     ( cat <<\_ASBOX
38387 ## --------------------------------------------- ##
38388 ## Report this to <http://www.openldap.org/its/> ##
38389 ## --------------------------------------------- ##
38390 _ASBOX
38391      ) | sed "s/^/$as_me: WARNING:     /" >&2
38392     ;;
38393 esac
38394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38397   echo $ECHO_N "(cached) $ECHO_C" >&6
38398 else
38399   eval "$as_ac_Header=\$ac_header_preproc"
38400 fi
38401 ac_res=`eval echo '${'$as_ac_Header'}'`
38402                { echo "$as_me:$LINENO: result: $ac_res" >&5
38403 echo "${ECHO_T}$ac_res" >&6; }
38404
38405 fi
38406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38407   cat >>confdefs.h <<_ACEOF
38408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38409 _ACEOF
38410
38411 fi
38412
38413 done
38414
38415
38416         if test $ac_cv_header_ltdl_h != yes ; then
38417                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38418 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38419    { (exit 1); exit 1; }; }
38420         fi
38421         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38422 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38423 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38424   echo $ECHO_N "(cached) $ECHO_C" >&6
38425 else
38426   ac_check_lib_save_LIBS=$LIBS
38427 LIBS="-lltdl  $LIBS"
38428 cat >conftest.$ac_ext <<_ACEOF
38429 /* confdefs.h.  */
38430 _ACEOF
38431 cat confdefs.h >>conftest.$ac_ext
38432 cat >>conftest.$ac_ext <<_ACEOF
38433 /* end confdefs.h.  */
38434
38435 /* Override any GCC internal prototype to avoid an error.
38436    Use char because int might match the return type of a GCC
38437    builtin and then its argument prototype would still apply.  */
38438 #ifdef __cplusplus
38439 extern "C"
38440 #endif
38441 char lt_dlinit ();
38442 int
38443 main ()
38444 {
38445 return lt_dlinit ();
38446   ;
38447   return 0;
38448 }
38449 _ACEOF
38450 rm -f conftest.$ac_objext conftest$ac_exeext
38451 if { (ac_try="$ac_link"
38452 case "(($ac_try" in
38453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38454   *) ac_try_echo=$ac_try;;
38455 esac
38456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38457   (eval "$ac_link") 2>conftest.er1
38458   ac_status=$?
38459   grep -v '^ *+' conftest.er1 >conftest.err
38460   rm -f conftest.er1
38461   cat conftest.err >&5
38462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463   (exit $ac_status); } && {
38464          test -z "$ac_c_werror_flag" ||
38465          test ! -s conftest.err
38466        } && test -s conftest$ac_exeext &&
38467        $as_test_x conftest$ac_exeext; then
38468   ac_cv_lib_ltdl_lt_dlinit=yes
38469 else
38470   echo "$as_me: failed program was:" >&5
38471 sed 's/^/| /' conftest.$ac_ext >&5
38472
38473         ac_cv_lib_ltdl_lt_dlinit=no
38474 fi
38475
38476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38477       conftest$ac_exeext conftest.$ac_ext
38478 LIBS=$ac_check_lib_save_LIBS
38479 fi
38480 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38481 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38482 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38483
38484                 SLAPI_LIBS=-lltdl
38485                 LIBSLAPI=slapi/libslapi.la
38486
38487 cat >>confdefs.h <<\_ACEOF
38488 #define HAVE_LIBLTDL 1
38489 _ACEOF
38490
38491
38492 else
38493   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38494 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38495    { (exit 1); exit 1; }; }
38496 fi
38497
38498
38499
38500 cat >>confdefs.h <<\_ACEOF
38501 #define LDAP_SLAPI 1
38502 _ACEOF
38503
38504 fi
38505
38506 if test "$ol_enable_debug" != no ; then
38507         if test "$ol_enable_debug" = traditional; then
38508
38509 cat >>confdefs.h <<\_ACEOF
38510 #define OLD_DEBUG 1
38511 _ACEOF
38512
38513         fi
38514
38515 cat >>confdefs.h <<\_ACEOF
38516 #define LDAP_DEBUG 1
38517 _ACEOF
38518
38519 fi
38520 if test "$ol_enable_syslog" = yes ; then
38521
38522 cat >>confdefs.h <<\_ACEOF
38523 #define LDAP_SYSLOG 1
38524 _ACEOF
38525
38526 fi
38527 if test "$ol_enable_proctitle" != no ; then
38528
38529 cat >>confdefs.h <<\_ACEOF
38530 #define LDAP_PROCTITLE 1
38531 _ACEOF
38532
38533 fi
38534 if test "$ol_enable_referrals" != no ; then
38535
38536 cat >>confdefs.h <<\_ACEOF
38537 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38538 _ACEOF
38539
38540 fi
38541 if test "$ol_enable_local" != no; then
38542
38543 cat >>confdefs.h <<\_ACEOF
38544 #define LDAP_PF_LOCAL 1
38545 _ACEOF
38546
38547 fi
38548 if test "$ol_link_ipv6" != no; then
38549
38550 cat >>confdefs.h <<\_ACEOF
38551 #define LDAP_PF_INET6 1
38552 _ACEOF
38553
38554 fi
38555 if test "$ol_enable_cleartext" != no ; then
38556
38557 cat >>confdefs.h <<\_ACEOF
38558 #define SLAPD_CLEARTEXT 1
38559 _ACEOF
38560
38561 fi
38562 if test "$ol_enable_crypt" != no ; then
38563
38564 cat >>confdefs.h <<\_ACEOF
38565 #define SLAPD_CRYPT 1
38566 _ACEOF
38567
38568 fi
38569 if test "$ol_link_spasswd" != no ; then
38570
38571 cat >>confdefs.h <<\_ACEOF
38572 #define SLAPD_SPASSWD 1
38573 _ACEOF
38574
38575 fi
38576 if test "$ol_enable_rlookups" != no ; then
38577
38578 cat >>confdefs.h <<\_ACEOF
38579 #define SLAPD_RLOOKUPS 1
38580 _ACEOF
38581
38582 fi
38583 if test "$ol_enable_aci" != no ; then
38584         if test $ol_enable_dynacl = no ; then
38585                 ol_enable_dynacl=yes
38586                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38587 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38588         fi
38589         if test "$ol_enable_aci" = mod ; then
38590                 MFLAG=SLAPD_MOD_DYNAMIC
38591                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38592 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38593    { (exit 1); exit 1; }; }
38594         else
38595                 MFLAG=SLAPD_MOD_STATIC
38596         fi
38597         WITH_ACI_ENABLED=$ol_enable_aci
38598
38599 cat >>confdefs.h <<_ACEOF
38600 #define SLAPD_ACI_ENABLED $MFLAG
38601 _ACEOF
38602
38603 else
38604         WITH_ACI_ENABLED=no
38605 fi
38606 if test "$ol_enable_dynacl" != no ; then
38607
38608 cat >>confdefs.h <<\_ACEOF
38609 #define SLAP_DYNACL 1
38610 _ACEOF
38611
38612 fi
38613
38614 if test "$ol_link_modules" != no ; then
38615
38616 cat >>confdefs.h <<\_ACEOF
38617 #define SLAPD_MODULES 1
38618 _ACEOF
38619
38620         BUILD_SLAPD=yes
38621         SLAPD_MODULES_LDFLAGS="-dlopen self"
38622 fi
38623
38624
38625 cat >>confdefs.h <<\_ACEOF
38626 #define SLAPD_MOD_STATIC 1
38627 _ACEOF
38628
38629
38630 cat >>confdefs.h <<\_ACEOF
38631 #define SLAPD_MOD_DYNAMIC 2
38632 _ACEOF
38633
38634
38635 if test "$ol_enable_monitor" != no ; then
38636         BUILD_SLAPD=yes
38637         BUILD_MONITOR=$ol_enable_monitor
38638         if test "$ol_enable_monitor" = mod ; then
38639                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38640                 MFLAG=SLAPD_MOD_DYNAMIC
38641         else
38642                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38643                 MFLAG=SLAPD_MOD_STATIC
38644         fi
38645
38646 cat >>confdefs.h <<_ACEOF
38647 #define SLAPD_MONITOR $MFLAG
38648 _ACEOF
38649
38650 fi
38651
38652 if test "$ol_enable_bdb" != no ; then
38653         BUILD_SLAPD=yes
38654         BUILD_BDB=$ol_enable_bdb
38655         if test "$ol_enable_bdb" = mod ; then
38656                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38657                 MFLAG=SLAPD_MOD_DYNAMIC
38658         else
38659                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38660                 MFLAG=SLAPD_MOD_STATIC
38661         fi
38662
38663 cat >>confdefs.h <<_ACEOF
38664 #define SLAPD_BDB $MFLAG
38665 _ACEOF
38666
38667 fi
38668
38669 if test "$ol_enable_dnssrv" != no ; then
38670         BUILD_SLAPD=yes
38671         BUILD_DNSSRV=$ol_enable_dnssrv
38672         if test "$ol_enable_dnssrv" = mod ; then
38673                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38674                 MFLAG=SLAPD_MOD_DYNAMIC
38675         else
38676                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38677                 MFLAG=SLAPD_MOD_STATIC
38678         fi
38679
38680 cat >>confdefs.h <<_ACEOF
38681 #define SLAPD_DNSSRV $MFLAG
38682 _ACEOF
38683
38684 fi
38685
38686 if test "$ol_enable_hdb" != no ; then
38687         BUILD_SLAPD=yes
38688         BUILD_HDB=$ol_enable_hdb
38689         if test "$ol_enable_hdb" = mod ; then
38690                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38691                 MFLAG=SLAPD_MOD_DYNAMIC
38692         else
38693                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38694                 MFLAG=SLAPD_MOD_STATIC
38695         fi
38696
38697 cat >>confdefs.h <<_ACEOF
38698 #define SLAPD_HDB $MFLAG
38699 _ACEOF
38700
38701 fi
38702
38703 if test "$ol_enable_ldap" != no ; then
38704         BUILD_SLAPD=yes
38705         BUILD_LDAP=$ol_enable_ldap
38706         if test "$ol_enable_ldap" = mod ; then
38707                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38708                 MFLAG=SLAPD_MOD_DYNAMIC
38709         else
38710                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38711                 MFLAG=SLAPD_MOD_STATIC
38712         fi
38713
38714 cat >>confdefs.h <<_ACEOF
38715 #define SLAPD_LDAP $MFLAG
38716 _ACEOF
38717
38718 fi
38719
38720 if test "$ol_enable_meta" != no ; then
38721         BUILD_SLAPD=yes
38722         BUILD_META=$ol_enable_meta
38723         BUILD_REWRITE=yes
38724         if test "$ol_enable_meta" = mod ; then
38725                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38726                 MFLAG=SLAPD_MOD_DYNAMIC
38727         else
38728                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38729                 MFLAG=SLAPD_MOD_STATIC
38730         fi
38731
38732 cat >>confdefs.h <<_ACEOF
38733 #define SLAPD_META $MFLAG
38734 _ACEOF
38735
38736 fi
38737
38738 if test "$ol_enable_ndb" != no ; then
38739         BUILD_SLAPD=yes
38740         BUILD_NDB=$ol_enable_ndb
38741         if test "$ol_enable_ndb" = mod ; then
38742                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38743                 MFLAG=SLAPD_MOD_DYNAMIC
38744         else
38745                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38746                 MFLAG=SLAPD_MOD_STATIC
38747         fi
38748
38749 cat >>confdefs.h <<_ACEOF
38750 #define SLAPD_NDB $MFLAG
38751 _ACEOF
38752
38753 fi
38754
38755 if test "$ol_enable_null" != no ; then
38756         BUILD_SLAPD=yes
38757         BUILD_NULL=$ol_enable_null
38758         if test "$ol_enable_null" = mod ; then
38759                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38760                 MFLAG=SLAPD_MOD_DYNAMIC
38761         else
38762                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38763                 MFLAG=SLAPD_MOD_STATIC
38764         fi
38765
38766 cat >>confdefs.h <<_ACEOF
38767 #define SLAPD_NULL $MFLAG
38768 _ACEOF
38769
38770 fi
38771
38772 if test "$ol_enable_passwd" != no ; then
38773         BUILD_SLAPD=yes
38774         BUILD_PASSWD=$ol_enable_passwd
38775         if test "$ol_enable_passwd" = mod ; then
38776                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38777                 MFLAG=SLAPD_MOD_DYNAMIC
38778         else
38779                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38780                 MFLAG=SLAPD_MOD_STATIC
38781         fi
38782
38783 cat >>confdefs.h <<_ACEOF
38784 #define SLAPD_PASSWD $MFLAG
38785 _ACEOF
38786
38787 fi
38788
38789 if test "$ol_link_perl" != no ; then
38790         BUILD_SLAPD=yes
38791         BUILD_PERL=$ol_enable_perl
38792         if test "$ol_enable_perl" = mod ; then
38793                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38794                 MFLAG=SLAPD_MOD_DYNAMIC
38795         else
38796                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38797                 MFLAG=SLAPD_MOD_STATIC
38798         fi
38799
38800 cat >>confdefs.h <<_ACEOF
38801 #define SLAPD_PERL $MFLAG
38802 _ACEOF
38803
38804 fi
38805
38806 if test "$ol_enable_relay" != no ; then
38807         BUILD_SLAPD=yes
38808         BUILD_RELAY=$ol_enable_relay
38809         if test "$ol_enable_relay" = mod ; then
38810                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38811                 MFLAG=SLAPD_MOD_DYNAMIC
38812         else
38813                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38814                 MFLAG=SLAPD_MOD_STATIC
38815         fi
38816
38817 cat >>confdefs.h <<_ACEOF
38818 #define SLAPD_RELAY $MFLAG
38819 _ACEOF
38820
38821 fi
38822
38823 if test "$ol_enable_shell" != no ; then
38824         if test "$ol_link_threads" != no ; then
38825                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38826 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38827         fi
38828         BUILD_SLAPD=yes
38829         BUILD_SHELL=$ol_enable_shell
38830         if test "$ol_enable_shell" = mod ; then
38831                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38832                 MFLAG=SLAPD_MOD_DYNAMIC
38833         else
38834                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38835                 MFLAG=SLAPD_MOD_STATIC
38836         fi
38837
38838 cat >>confdefs.h <<_ACEOF
38839 #define SLAPD_SHELL $MFLAG
38840 _ACEOF
38841
38842 fi
38843
38844 if test "$ol_enable_sock" != no ; then
38845         BUILD_SLAPD=yes
38846         BUILD_SOCK=$ol_enable_sock
38847         if test "$ol_enable_sock" = mod ; then
38848                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38849                 MFLAG=SLAPD_MOD_DYNAMIC
38850         else
38851                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38852                 MFLAG=SLAPD_MOD_STATIC
38853         fi
38854
38855 cat >>confdefs.h <<_ACEOF
38856 #define SLAPD_SOCK $MFLAG
38857 _ACEOF
38858
38859 fi
38860
38861 if test "$ol_link_sql" != no ; then
38862         BUILD_SLAPD=yes
38863         BUILD_SQL=$ol_enable_sql
38864         if test "$ol_enable_sql" = mod; then
38865                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38866                 MFLAG=SLAPD_MOD_DYNAMIC
38867         else
38868                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38869                 MFLAG=SLAPD_MOD_STATIC
38870         fi
38871
38872 cat >>confdefs.h <<_ACEOF
38873 #define SLAPD_SQL $MFLAG
38874 _ACEOF
38875
38876 fi
38877
38878 if test "$ol_enable_accesslog" != no ; then
38879         BUILD_ACCESSLOG=$ol_enable_accesslog
38880         if test "$ol_enable_accesslog" = mod ; then
38881                 MFLAG=SLAPD_MOD_DYNAMIC
38882                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38883         else
38884                 MFLAG=SLAPD_MOD_STATIC
38885                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38886         fi
38887
38888 cat >>confdefs.h <<_ACEOF
38889 #define SLAPD_OVER_ACCESSLOG $MFLAG
38890 _ACEOF
38891
38892 fi
38893
38894 if test "$ol_enable_auditlog" != no ; then
38895         BUILD_AUDITLOG=$ol_enable_auditlog
38896         if test "$ol_enable_auditlog" = mod ; then
38897                 MFLAG=SLAPD_MOD_DYNAMIC
38898                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38899         else
38900                 MFLAG=SLAPD_MOD_STATIC
38901                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38902         fi
38903
38904 cat >>confdefs.h <<_ACEOF
38905 #define SLAPD_OVER_AUDITLOG $MFLAG
38906 _ACEOF
38907
38908 fi
38909
38910 if test "$ol_enable_collect" != no ; then
38911         BUILD_COLLECT=$ol_enable_collect
38912         if test "$ol_enable_collect" = mod ; then
38913                 MFLAG=SLAPD_MOD_DYNAMIC
38914                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38915         else
38916                 MFLAG=SLAPD_MOD_STATIC
38917                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38918         fi
38919
38920 cat >>confdefs.h <<_ACEOF
38921 #define SLAPD_OVER_COLLECT $MFLAG
38922 _ACEOF
38923
38924 fi
38925
38926 if test "$ol_enable_constraint" != no ; then
38927         BUILD_CONSTRAINT=$ol_enable_constraint
38928         if test "$ol_enable_constraint" = mod ; then
38929                 MFLAG=SLAPD_MOD_DYNAMIC
38930                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38931         else
38932                 MFLAG=SLAPD_MOD_STATIC
38933                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38934         fi
38935
38936 cat >>confdefs.h <<_ACEOF
38937 #define SLAPD_OVER_CONSTRAINT $MFLAG
38938 _ACEOF
38939
38940 fi
38941
38942 if test "$ol_enable_dds" != no ; then
38943         BUILD_DDS=$ol_enable_dds
38944         if test "$ol_enable_dds" = mod ; then
38945                 MFLAG=SLAPD_MOD_DYNAMIC
38946                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38947         else
38948                 MFLAG=SLAPD_MOD_STATIC
38949                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38950         fi
38951
38952 cat >>confdefs.h <<_ACEOF
38953 #define SLAPD_OVER_DDS $MFLAG
38954 _ACEOF
38955
38956 fi
38957
38958 if test "$ol_enable_deref" != no ; then
38959         BUILD_DEREF=$ol_enable_deref
38960         if test "$ol_enable_deref" = mod ; then
38961                 MFLAG=SLAPD_MOD_DYNAMIC
38962                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38963         else
38964                 MFLAG=SLAPD_MOD_STATIC
38965                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38966         fi
38967
38968 cat >>confdefs.h <<_ACEOF
38969 #define SLAPD_OVER_DEREF $MFLAG
38970 _ACEOF
38971
38972 fi
38973
38974 if test "$ol_enable_dyngroup" != no ; then
38975         BUILD_DYNGROUP=$ol_enable_dyngroup
38976         if test "$ol_enable_dyngroup" = mod ; then
38977                 MFLAG=SLAPD_MOD_DYNAMIC
38978                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38979         else
38980                 MFLAG=SLAPD_MOD_STATIC
38981                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38982         fi
38983
38984 cat >>confdefs.h <<_ACEOF
38985 #define SLAPD_OVER_DYNGROUP $MFLAG
38986 _ACEOF
38987
38988 fi
38989
38990 if test "$ol_enable_dynlist" != no ; then
38991         BUILD_DYNLIST=$ol_enable_dynlist
38992         if test "$ol_enable_dynlist" = mod ; then
38993                 MFLAG=SLAPD_MOD_DYNAMIC
38994                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38995         else
38996                 MFLAG=SLAPD_MOD_STATIC
38997                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38998         fi
38999
39000 cat >>confdefs.h <<_ACEOF
39001 #define SLAPD_OVER_DYNLIST $MFLAG
39002 _ACEOF
39003
39004 fi
39005
39006 if test "$ol_enable_memberof" != no ; then
39007         BUILD_MEMBEROF=$ol_enable_memberof
39008         if test "$ol_enable_memberof" = mod ; then
39009                 MFLAG=SLAPD_MOD_DYNAMIC
39010                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
39011         else
39012                 MFLAG=SLAPD_MOD_STATIC
39013                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
39014         fi
39015
39016 cat >>confdefs.h <<_ACEOF
39017 #define SLAPD_OVER_MEMBEROF $MFLAG
39018 _ACEOF
39019
39020 fi
39021
39022 if test "$ol_enable_ppolicy" != no ; then
39023         BUILD_PPOLICY=$ol_enable_ppolicy
39024         if test "$ol_enable_ppolicy" = mod ; then
39025                 MFLAG=SLAPD_MOD_DYNAMIC
39026                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
39027         else
39028                 MFLAG=SLAPD_MOD_STATIC
39029                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
39030         fi
39031
39032 cat >>confdefs.h <<_ACEOF
39033 #define SLAPD_OVER_PPOLICY $MFLAG
39034 _ACEOF
39035
39036 fi
39037
39038 if test "$ol_enable_proxycache" != no ; then
39039         BUILD_PROXYCACHE=$ol_enable_proxycache
39040         if test "$ol_enable_proxycache" = mod ; then
39041                 MFLAG=SLAPD_MOD_DYNAMIC
39042                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
39043         else
39044                 MFLAG=SLAPD_MOD_STATIC
39045                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
39046         fi
39047
39048 cat >>confdefs.h <<_ACEOF
39049 #define SLAPD_OVER_PROXYCACHE $MFLAG
39050 _ACEOF
39051
39052 fi
39053
39054 if test "$ol_enable_refint" != no ; then
39055         BUILD_REFINT=$ol_enable_refint
39056         if test "$ol_enable_refint" = mod ; then
39057                 MFLAG=SLAPD_MOD_DYNAMIC
39058                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
39059         else
39060                 MFLAG=SLAPD_MOD_STATIC
39061                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
39062         fi
39063
39064 cat >>confdefs.h <<_ACEOF
39065 #define SLAPD_OVER_REFINT $MFLAG
39066 _ACEOF
39067
39068 fi
39069
39070 if test "$ol_enable_retcode" != no ; then
39071         BUILD_RETCODE=$ol_enable_retcode
39072         if test "$ol_enable_retcode" = mod ; then
39073                 MFLAG=SLAPD_MOD_DYNAMIC
39074                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
39075         else
39076                 MFLAG=SLAPD_MOD_STATIC
39077                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
39078         fi
39079
39080 cat >>confdefs.h <<_ACEOF
39081 #define SLAPD_OVER_RETCODE $MFLAG
39082 _ACEOF
39083
39084 fi
39085
39086 if test "$ol_enable_rwm" != no ; then
39087         BUILD_REWRITE=yes
39088         BUILD_RWM=$ol_enable_rwm
39089         if test "$ol_enable_rwm" = mod ; then
39090                 MFLAG=SLAPD_MOD_DYNAMIC
39091                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
39092         else
39093                 MFLAG=SLAPD_MOD_STATIC
39094                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
39095         fi
39096
39097 cat >>confdefs.h <<_ACEOF
39098 #define SLAPD_OVER_RWM $MFLAG
39099 _ACEOF
39100
39101 fi
39102
39103 if test "$ol_enable_seqmod" != no ; then
39104         BUILD_SEQMOD=$ol_enable_seqmod
39105         if test "$ol_enable_seqmod" = mod ; then
39106                 MFLAG=SLAPD_MOD_DYNAMIC
39107                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
39108         else
39109                 MFLAG=SLAPD_MOD_STATIC
39110                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
39111         fi
39112
39113 cat >>confdefs.h <<_ACEOF
39114 #define SLAPD_OVER_SEQMOD $MFLAG
39115 _ACEOF
39116
39117 fi
39118
39119 if test "$ol_enable_sssvlv" != no ; then
39120         BUILD_SSSVLV=$ol_enable_sssvlv
39121         if test "$ol_enable_sssvlv" = mod ; then
39122                 MFLAG=SLAPD_MOD_DYNAMIC
39123                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
39124         else
39125                 MFLAG=SLAPD_MOD_STATIC
39126                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
39127         fi
39128
39129 cat >>confdefs.h <<_ACEOF
39130 #define SLAPD_OVER_SSSVLV $MFLAG
39131 _ACEOF
39132
39133 fi
39134
39135 if test "$ol_enable_syncprov" != no ; then
39136         BUILD_SYNCPROV=$ol_enable_syncprov
39137         if test "$ol_enable_syncprov" = mod ; then
39138                 MFLAG=SLAPD_MOD_DYNAMIC
39139                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
39140         else
39141                 MFLAG=SLAPD_MOD_STATIC
39142                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
39143         fi
39144
39145 cat >>confdefs.h <<_ACEOF
39146 #define SLAPD_OVER_SYNCPROV $MFLAG
39147 _ACEOF
39148
39149 fi
39150
39151 if test "$ol_enable_translucent" != no ; then
39152         BUILD_TRANSLUCENT=$ol_enable_translucent
39153         if test "$ol_enable_translucent" = mod ; then
39154                 MFLAG=SLAPD_MOD_DYNAMIC
39155                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
39156         else
39157                 MFLAG=SLAPD_MOD_STATIC
39158                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
39159         fi
39160
39161 cat >>confdefs.h <<_ACEOF
39162 #define SLAPD_OVER_TRANSLUCENT $MFLAG
39163 _ACEOF
39164
39165 fi
39166
39167 if test "$ol_enable_unique" != no ; then
39168         BUILD_UNIQUE=$ol_enable_unique
39169         if test "$ol_enable_unique" = mod ; then
39170                 MFLAG=SLAPD_MOD_DYNAMIC
39171                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
39172         else
39173                 MFLAG=SLAPD_MOD_STATIC
39174                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
39175         fi
39176
39177 cat >>confdefs.h <<_ACEOF
39178 #define SLAPD_OVER_UNIQUE $MFLAG
39179 _ACEOF
39180
39181 fi
39182
39183 if test "$ol_enable_valsort" != no ; then
39184         BUILD_VALSORT=$ol_enable_valsort
39185         if test "$ol_enable_valsort" = mod ; then
39186                 MFLAG=SLAPD_MOD_DYNAMIC
39187                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
39188         else
39189                 MFLAG=SLAPD_MOD_STATIC
39190                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
39191         fi
39192
39193 cat >>confdefs.h <<_ACEOF
39194 #define SLAPD_OVER_VALSORT $MFLAG
39195 _ACEOF
39196
39197 fi
39198
39199 if test "$ol_enable_rewrite" != no ; then
39200
39201 cat >>confdefs.h <<\_ACEOF
39202 #define ENABLE_REWRITE 1
39203 _ACEOF
39204
39205         BUILD_REWRITE=yes
39206 fi
39207
39208 if test "$ol_enable_slapi" != no ; then
39209
39210 cat >>confdefs.h <<\_ACEOF
39211 #define ENABLE_SLAPI 1
39212 _ACEOF
39213
39214         BUILD_SLAPI=yes
39215         SLAPD_SLAPI_DEPEND=libslapi.a
39216 fi
39217
39218
39219
39220 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
39221         PLAT=NT
39222         SLAPD_MODULES_LDFLAGS=
39223 else
39224         PLAT=UNIX
39225 fi
39226
39227
39228
39229
39230
39231
39232
39233
39234
39235
39236
39237
39238
39239
39240
39241
39242
39243
39244
39245
39246
39247
39248
39249
39250
39251
39252
39253
39254
39255
39256
39257
39258
39259
39260
39261
39262
39263
39264
39265
39266
39267
39268
39269
39270
39271
39272
39273
39274
39275
39276
39277
39278
39279
39280
39281
39282
39283
39284
39285
39286
39287
39288
39289
39290
39291
39292
39293
39294
39295
39296
39297
39298
39299
39300
39301
39302
39303
39304
39305
39306
39307
39308
39309
39310
39311
39312
39313
39314
39315
39316 # Check whether --with-xxinstall was given.
39317 if test "${with_xxinstall+set}" = set; then
39318   withval=$with_xxinstall;
39319 fi
39320
39321
39322
39323 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"
39324
39325
39326 ac_config_commands="$ac_config_commands default"
39327
39328
39329
39330 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39331 # Let make expand exec_prefix.
39332 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39333
39334 DEFS=-DHAVE_CONFIG_H
39335
39336 ac_libobjs=
39337 ac_ltlibobjs=
39338 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39339   # 1. Remove the extension, and $U if already installed.
39340   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39341   ac_i=`echo "$ac_i" | sed "$ac_script"`
39342   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39343   #    will be set to the directory where LIBOBJS objects are built.
39344   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39345   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39346 done
39347 LIBOBJS=$ac_libobjs
39348
39349 LTLIBOBJS=$ac_ltlibobjs
39350
39351
39352 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39353   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39354 Usually this means the macro was only invoked conditionally." >&5
39355 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39356 Usually this means the macro was only invoked conditionally." >&2;}
39357    { (exit 1); exit 1; }; }
39358 fi
39359 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39360   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39361 Usually this means the macro was only invoked conditionally." >&5
39362 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39363 Usually this means the macro was only invoked conditionally." >&2;}
39364    { (exit 1); exit 1; }; }
39365 fi
39366 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39367   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39368 Usually this means the macro was only invoked conditionally." >&5
39369 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39370 Usually this means the macro was only invoked conditionally." >&2;}
39371    { (exit 1); exit 1; }; }
39372 fi
39373
39374 : ${CONFIG_STATUS=./config.status}
39375 ac_clean_files_save=$ac_clean_files
39376 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39377 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39378 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39379 cat >$CONFIG_STATUS <<_ACEOF
39380 #! $SHELL
39381 # Generated by $as_me.
39382 # Run this file to recreate the current configuration.
39383 # Compiler output produced by configure, useful for debugging
39384 # configure, is in config.log if it exists.
39385
39386 debug=false
39387 ac_cs_recheck=false
39388 ac_cs_silent=false
39389 SHELL=\${CONFIG_SHELL-$SHELL}
39390 _ACEOF
39391
39392 cat >>$CONFIG_STATUS <<\_ACEOF
39393 ## --------------------- ##
39394 ## M4sh Initialization.  ##
39395 ## --------------------- ##
39396
39397 # Be more Bourne compatible
39398 DUALCASE=1; export DUALCASE # for MKS sh
39399 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39400   emulate sh
39401   NULLCMD=:
39402   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39403   # is contrary to our usage.  Disable this feature.
39404   alias -g '${1+"$@"}'='"$@"'
39405   setopt NO_GLOB_SUBST
39406 else
39407   case `(set -o) 2>/dev/null` in
39408   *posix*) set -o posix ;;
39409 esac
39410
39411 fi
39412
39413
39414
39415
39416 # PATH needs CR
39417 # Avoid depending upon Character Ranges.
39418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39421 as_cr_digits='0123456789'
39422 as_cr_alnum=$as_cr_Letters$as_cr_digits
39423
39424 # The user is always right.
39425 if test "${PATH_SEPARATOR+set}" != set; then
39426   echo "#! /bin/sh" >conf$$.sh
39427   echo  "exit 0"   >>conf$$.sh
39428   chmod +x conf$$.sh
39429   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39430     PATH_SEPARATOR=';'
39431   else
39432     PATH_SEPARATOR=:
39433   fi
39434   rm -f conf$$.sh
39435 fi
39436
39437 # Support unset when possible.
39438 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39439   as_unset=unset
39440 else
39441   as_unset=false
39442 fi
39443
39444
39445 # IFS
39446 # We need space, tab and new line, in precisely that order.  Quoting is
39447 # there to prevent editors from complaining about space-tab.
39448 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39449 # splitting by setting IFS to empty value.)
39450 as_nl='
39451 '
39452 IFS=" ""        $as_nl"
39453
39454 # Find who we are.  Look in the path if we contain no directory separator.
39455 case $0 in
39456   *[\\/]* ) as_myself=$0 ;;
39457   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39458 for as_dir in $PATH
39459 do
39460   IFS=$as_save_IFS
39461   test -z "$as_dir" && as_dir=.
39462   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39463 done
39464 IFS=$as_save_IFS
39465
39466      ;;
39467 esac
39468 # We did not find ourselves, most probably we were run as `sh COMMAND'
39469 # in which case we are not to be found in the path.
39470 if test "x$as_myself" = x; then
39471   as_myself=$0
39472 fi
39473 if test ! -f "$as_myself"; then
39474   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39475   { (exit 1); exit 1; }
39476 fi
39477
39478 # Work around bugs in pre-3.0 UWIN ksh.
39479 for as_var in ENV MAIL MAILPATH
39480 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39481 done
39482 PS1='$ '
39483 PS2='> '
39484 PS4='+ '
39485
39486 # NLS nuisances.
39487 for as_var in \
39488   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39489   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39490   LC_TELEPHONE LC_TIME
39491 do
39492   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39493     eval $as_var=C; export $as_var
39494   else
39495     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39496   fi
39497 done
39498
39499 # Required to use basename.
39500 if expr a : '\(a\)' >/dev/null 2>&1 &&
39501    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39502   as_expr=expr
39503 else
39504   as_expr=false
39505 fi
39506
39507 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39508   as_basename=basename
39509 else
39510   as_basename=false
39511 fi
39512
39513
39514 # Name of the executable.
39515 as_me=`$as_basename -- "$0" ||
39516 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39517          X"$0" : 'X\(//\)$' \| \
39518          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39519 echo X/"$0" |
39520     sed '/^.*\/\([^/][^/]*\)\/*$/{
39521             s//\1/
39522             q
39523           }
39524           /^X\/\(\/\/\)$/{
39525             s//\1/
39526             q
39527           }
39528           /^X\/\(\/\).*/{
39529             s//\1/
39530             q
39531           }
39532           s/.*/./; q'`
39533
39534 # CDPATH.
39535 $as_unset CDPATH
39536
39537
39538
39539   as_lineno_1=$LINENO
39540   as_lineno_2=$LINENO
39541   test "x$as_lineno_1" != "x$as_lineno_2" &&
39542   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39543
39544   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39545   # uniformly replaced by the line number.  The first 'sed' inserts a
39546   # line-number line after each line using $LINENO; the second 'sed'
39547   # does the real work.  The second script uses 'N' to pair each
39548   # line-number line with the line containing $LINENO, and appends
39549   # trailing '-' during substitution so that $LINENO is not a special
39550   # case at line end.
39551   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39552   # scripts with optimization help from Paolo Bonzini.  Blame Lee
39553   # E. McMahon (1931-1989) for sed's syntax.  :-)
39554   sed -n '
39555     p
39556     /[$]LINENO/=
39557   ' <$as_myself |
39558     sed '
39559       s/[$]LINENO.*/&-/
39560       t lineno
39561       b
39562       :lineno
39563       N
39564       :loop
39565       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39566       t loop
39567       s/-\n.*//
39568     ' >$as_me.lineno &&
39569   chmod +x "$as_me.lineno" ||
39570     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39571    { (exit 1); exit 1; }; }
39572
39573   # Don't try to exec as it changes $[0], causing all sort of problems
39574   # (the dirname of $[0] is not the place where we might find the
39575   # original and so on.  Autoconf is especially sensitive to this).
39576   . "./$as_me.lineno"
39577   # Exit status is that of the last command.
39578   exit
39579 }
39580
39581
39582 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39583   as_dirname=dirname
39584 else
39585   as_dirname=false
39586 fi
39587
39588 ECHO_C= ECHO_N= ECHO_T=
39589 case `echo -n x` in
39590 -n*)
39591   case `echo 'x\c'` in
39592   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
39593   *)   ECHO_C='\c';;
39594   esac;;
39595 *)
39596   ECHO_N='-n';;
39597 esac
39598
39599 if expr a : '\(a\)' >/dev/null 2>&1 &&
39600    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39601   as_expr=expr
39602 else
39603   as_expr=false
39604 fi
39605
39606 rm -f conf$$ conf$$.exe conf$$.file
39607 if test -d conf$$.dir; then
39608   rm -f conf$$.dir/conf$$.file
39609 else
39610   rm -f conf$$.dir
39611   mkdir conf$$.dir
39612 fi
39613 echo >conf$$.file
39614 if ln -s conf$$.file conf$$ 2>/dev/null; then
39615   as_ln_s='ln -s'
39616   # ... but there are two gotchas:
39617   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39618   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39619   # In both cases, we have to default to `cp -p'.
39620   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39621     as_ln_s='cp -p'
39622 elif ln conf$$.file conf$$ 2>/dev/null; then
39623   as_ln_s=ln
39624 else
39625   as_ln_s='cp -p'
39626 fi
39627 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39628 rmdir conf$$.dir 2>/dev/null
39629
39630 if mkdir -p . 2>/dev/null; then
39631   as_mkdir_p=:
39632 else
39633   test -d ./-p && rmdir ./-p
39634   as_mkdir_p=false
39635 fi
39636
39637 if test -x / >/dev/null 2>&1; then
39638   as_test_x='test -x'
39639 else
39640   if ls -dL / >/dev/null 2>&1; then
39641     as_ls_L_option=L
39642   else
39643     as_ls_L_option=
39644   fi
39645   as_test_x='
39646     eval sh -c '\''
39647       if test -d "$1"; then
39648         test -d "$1/.";
39649       else
39650         case $1 in
39651         -*)set "./$1";;
39652         esac;
39653         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39654         ???[sx]*):;;*)false;;esac;fi
39655     '\'' sh
39656   '
39657 fi
39658 as_executable_p=$as_test_x
39659
39660 # Sed expression to map a string onto a valid CPP name.
39661 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39662
39663 # Sed expression to map a string onto a valid variable name.
39664 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39665
39666
39667 exec 6>&1
39668
39669 # Save the log message, to keep $[0] and so on meaningful, and to
39670 # report actual input values of CONFIG_FILES etc. instead of their
39671 # values after options handling.
39672 ac_log="
39673 This file was extended by $as_me, which was
39674 generated by GNU Autoconf 2.61.  Invocation command line was
39675
39676   CONFIG_FILES    = $CONFIG_FILES
39677   CONFIG_HEADERS  = $CONFIG_HEADERS
39678   CONFIG_LINKS    = $CONFIG_LINKS
39679   CONFIG_COMMANDS = $CONFIG_COMMANDS
39680   $ $0 $@
39681
39682 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39683 "
39684
39685 _ACEOF
39686
39687 cat >>$CONFIG_STATUS <<_ACEOF
39688 # Files that config.status was made for.
39689 config_files="$ac_config_files"
39690 config_headers="$ac_config_headers"
39691 config_commands="$ac_config_commands"
39692
39693 _ACEOF
39694
39695 cat >>$CONFIG_STATUS <<\_ACEOF
39696 ac_cs_usage="\
39697 \`$as_me' instantiates files from templates according to the
39698 current configuration.
39699
39700 Usage: $0 [OPTIONS] [FILE]...
39701
39702   -h, --help       print this help, then exit
39703   -V, --version    print version number and configuration settings, then exit
39704   -q, --quiet      do not print progress messages
39705   -d, --debug      don't remove temporary files
39706       --recheck    update $as_me by reconfiguring in the same conditions
39707   --file=FILE[:TEMPLATE]
39708                    instantiate the configuration file FILE
39709   --header=FILE[:TEMPLATE]
39710                    instantiate the configuration header FILE
39711
39712 Configuration files:
39713 $config_files
39714
39715 Configuration headers:
39716 $config_headers
39717
39718 Configuration commands:
39719 $config_commands
39720
39721 Report bugs to <bug-autoconf@gnu.org>."
39722
39723 _ACEOF
39724 cat >>$CONFIG_STATUS <<_ACEOF
39725 ac_cs_version="\\
39726 config.status
39727 configured by $0, generated by GNU Autoconf 2.61,
39728   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39729
39730 Copyright (C) 2006 Free Software Foundation, Inc.
39731 This config.status script is free software; the Free Software Foundation
39732 gives unlimited permission to copy, distribute and modify it."
39733
39734 ac_pwd='$ac_pwd'
39735 srcdir='$srcdir'
39736 INSTALL='$INSTALL'
39737 MKDIR_P='$MKDIR_P'
39738 _ACEOF
39739
39740 cat >>$CONFIG_STATUS <<\_ACEOF
39741 # If no file are specified by the user, then we need to provide default
39742 # value.  By we need to know if files were specified by the user.
39743 ac_need_defaults=:
39744 while test $# != 0
39745 do
39746   case $1 in
39747   --*=*)
39748     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39749     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39750     ac_shift=:
39751     ;;
39752   *)
39753     ac_option=$1
39754     ac_optarg=$2
39755     ac_shift=shift
39756     ;;
39757   esac
39758
39759   case $ac_option in
39760   # Handling of the options.
39761   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39762     ac_cs_recheck=: ;;
39763   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39764     echo "$ac_cs_version"; exit ;;
39765   --debug | --debu | --deb | --de | --d | -d )
39766     debug=: ;;
39767   --file | --fil | --fi | --f )
39768     $ac_shift
39769     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39770     ac_need_defaults=false;;
39771   --header | --heade | --head | --hea )
39772     $ac_shift
39773     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39774     ac_need_defaults=false;;
39775   --he | --h)
39776     # Conflict between --help and --header
39777     { echo "$as_me: error: ambiguous option: $1
39778 Try \`$0 --help' for more information." >&2
39779    { (exit 1); exit 1; }; };;
39780   --help | --hel | -h )
39781     echo "$ac_cs_usage"; exit ;;
39782   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39783   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39784     ac_cs_silent=: ;;
39785
39786   # This is an error.
39787   -*) { echo "$as_me: error: unrecognized option: $1
39788 Try \`$0 --help' for more information." >&2
39789    { (exit 1); exit 1; }; } ;;
39790
39791   *) ac_config_targets="$ac_config_targets $1"
39792      ac_need_defaults=false ;;
39793
39794   esac
39795   shift
39796 done
39797
39798 ac_configure_extra_args=
39799
39800 if $ac_cs_silent; then
39801   exec 6>/dev/null
39802   ac_configure_extra_args="$ac_configure_extra_args --silent"
39803 fi
39804
39805 _ACEOF
39806 cat >>$CONFIG_STATUS <<_ACEOF
39807 if \$ac_cs_recheck; then
39808   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39809   CONFIG_SHELL=$SHELL
39810   export CONFIG_SHELL
39811   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39812 fi
39813
39814 _ACEOF
39815 cat >>$CONFIG_STATUS <<\_ACEOF
39816 exec 5>>config.log
39817 {
39818   echo
39819   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39820 ## Running $as_me. ##
39821 _ASBOX
39822   echo "$ac_log"
39823 } >&5
39824
39825 _ACEOF
39826 cat >>$CONFIG_STATUS <<_ACEOF
39827 #
39828 # INIT-COMMANDS
39829 #
39830 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39831
39832 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39833 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39834
39835
39836 _ACEOF
39837
39838 cat >>$CONFIG_STATUS <<\_ACEOF
39839
39840 # Handling of arguments.
39841 for ac_config_target in $ac_config_targets
39842 do
39843   case $ac_config_target in
39844     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39845     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39846     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39847     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39848     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39849     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39850     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39851     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39852     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39853     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39854     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39855     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39856     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39857     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39858     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39859     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39860     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39861     "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" ;;
39862     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39863     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39864     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39865     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39866     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39867     "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" ;;
39868     "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" ;;
39869     "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" ;;
39870     "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" ;;
39871     "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" ;;
39872     "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" ;;
39873     "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" ;;
39874     "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" ;;
39875     "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" ;;
39876     "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" ;;
39877     "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" ;;
39878     "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" ;;
39879     "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" ;;
39880     "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" ;;
39881     "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" ;;
39882     "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" ;;
39883     "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" ;;
39884     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39885     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39886     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39887     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39888     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39889
39890   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39891 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39892    { (exit 1); exit 1; }; };;
39893   esac
39894 done
39895
39896
39897 # If the user did not use the arguments to specify the items to instantiate,
39898 # then the envvar interface is used.  Set only those that are not.
39899 # We use the long form for the default assignment because of an extremely
39900 # bizarre bug on SunOS 4.1.3.
39901 if $ac_need_defaults; then
39902   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39903   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39904   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39905 fi
39906
39907 # Have a temporary directory for convenience.  Make it in the build tree
39908 # simply because there is no reason against having it here, and in addition,
39909 # creating and moving files from /tmp can sometimes cause problems.
39910 # Hook for its removal unless debugging.
39911 # Note that there is a small window in which the directory will not be cleaned:
39912 # after its creation but before its name has been assigned to `$tmp'.
39913 $debug ||
39914 {
39915   tmp=
39916   trap 'exit_status=$?
39917   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39918 ' 0
39919   trap '{ (exit 1); exit 1; }' 1 2 13 15
39920 }
39921 # Create a (secure) tmp directory for tmp files.
39922
39923 {
39924   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39925   test -n "$tmp" && test -d "$tmp"
39926 }  ||
39927 {
39928   tmp=./conf$$-$RANDOM
39929   (umask 077 && mkdir "$tmp")
39930 } ||
39931 {
39932    echo "$me: cannot create a temporary directory in ." >&2
39933    { (exit 1); exit 1; }
39934 }
39935
39936 #
39937 # Set up the sed scripts for CONFIG_FILES section.
39938 #
39939
39940 # No need to generate the scripts if there are no CONFIG_FILES.
39941 # This happens for instance when ./config.status config.h
39942 if test -n "$CONFIG_FILES"; then
39943
39944 _ACEOF
39945
39946
39947
39948 ac_delim='%!_!# '
39949 for ac_last_try in false false false false false :; do
39950   cat >conf$$subs.sed <<_ACEOF
39951 SHELL!$SHELL$ac_delim
39952 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39953 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39954 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39955 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39956 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39957 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39958 exec_prefix!$exec_prefix$ac_delim
39959 prefix!$prefix$ac_delim
39960 program_transform_name!$program_transform_name$ac_delim
39961 bindir!$bindir$ac_delim
39962 sbindir!$sbindir$ac_delim
39963 libexecdir!$libexecdir$ac_delim
39964 datarootdir!$datarootdir$ac_delim
39965 datadir!$datadir$ac_delim
39966 sysconfdir!$sysconfdir$ac_delim
39967 sharedstatedir!$sharedstatedir$ac_delim
39968 localstatedir!$localstatedir$ac_delim
39969 includedir!$includedir$ac_delim
39970 oldincludedir!$oldincludedir$ac_delim
39971 docdir!$docdir$ac_delim
39972 infodir!$infodir$ac_delim
39973 htmldir!$htmldir$ac_delim
39974 dvidir!$dvidir$ac_delim
39975 pdfdir!$pdfdir$ac_delim
39976 psdir!$psdir$ac_delim
39977 libdir!$libdir$ac_delim
39978 localedir!$localedir$ac_delim
39979 mandir!$mandir$ac_delim
39980 DEFS!$DEFS$ac_delim
39981 ECHO_C!$ECHO_C$ac_delim
39982 ECHO_N!$ECHO_N$ac_delim
39983 ECHO_T!$ECHO_T$ac_delim
39984 LIBS!$LIBS$ac_delim
39985 build_alias!$build_alias$ac_delim
39986 host_alias!$host_alias$ac_delim
39987 target_alias!$target_alias$ac_delim
39988 build!$build$ac_delim
39989 build_cpu!$build_cpu$ac_delim
39990 build_vendor!$build_vendor$ac_delim
39991 build_os!$build_os$ac_delim
39992 host!$host$ac_delim
39993 host_cpu!$host_cpu$ac_delim
39994 host_vendor!$host_vendor$ac_delim
39995 host_os!$host_os$ac_delim
39996 target!$target$ac_delim
39997 target_cpu!$target_cpu$ac_delim
39998 target_vendor!$target_vendor$ac_delim
39999 target_os!$target_os$ac_delim
40000 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
40001 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
40002 INSTALL_DATA!$INSTALL_DATA$ac_delim
40003 am__isrc!$am__isrc$ac_delim
40004 CYGPATH_W!$CYGPATH_W$ac_delim
40005 PACKAGE!$PACKAGE$ac_delim
40006 VERSION!$VERSION$ac_delim
40007 ACLOCAL!$ACLOCAL$ac_delim
40008 AUTOCONF!$AUTOCONF$ac_delim
40009 AUTOMAKE!$AUTOMAKE$ac_delim
40010 AUTOHEADER!$AUTOHEADER$ac_delim
40011 MAKEINFO!$MAKEINFO$ac_delim
40012 install_sh!$install_sh$ac_delim
40013 STRIP!$STRIP$ac_delim
40014 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
40015 mkdir_p!$mkdir_p$ac_delim
40016 AWK!$AWK$ac_delim
40017 SET_MAKE!$SET_MAKE$ac_delim
40018 am__leading_dot!$am__leading_dot$ac_delim
40019 AMTAR!$AMTAR$ac_delim
40020 am__tar!$am__tar$ac_delim
40021 am__untar!$am__untar$ac_delim
40022 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
40023 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
40024 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
40025 top_builddir!$top_builddir$ac_delim
40026 ldap_subdir!$ldap_subdir$ac_delim
40027 CC!$CC$ac_delim
40028 AR!$AR$ac_delim
40029 CFLAGS!$CFLAGS$ac_delim
40030 LDFLAGS!$LDFLAGS$ac_delim
40031 CPPFLAGS!$CPPFLAGS$ac_delim
40032 ac_ct_CC!$ac_ct_CC$ac_delim
40033 EXEEXT!$EXEEXT$ac_delim
40034 OBJEXT!$OBJEXT$ac_delim
40035 DEPDIR!$DEPDIR$ac_delim
40036 am__include!$am__include$ac_delim
40037 am__quote!$am__quote$ac_delim
40038 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
40039 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
40040 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
40041 CCDEPMODE!$CCDEPMODE$ac_delim
40042 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
40043 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
40044 GREP!$GREP$ac_delim
40045 EGREP!$EGREP$ac_delim
40046 LN_S!$LN_S$ac_delim
40047 ECHO!$ECHO$ac_delim
40048 _ACEOF
40049
40050   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40051     break
40052   elif $ac_last_try; then
40053     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40054 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40055    { (exit 1); exit 1; }; }
40056   else
40057     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40058   fi
40059 done
40060
40061 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40062 if test -n "$ac_eof"; then
40063   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40064   ac_eof=`expr $ac_eof + 1`
40065 fi
40066
40067 cat >>$CONFIG_STATUS <<_ACEOF
40068 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
40069 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40070 _ACEOF
40071 sed '
40072 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40073 s/^/s,@/; s/!/@,|#_!!_#|/
40074 :n
40075 t n
40076 s/'"$ac_delim"'$/,g/; t
40077 s/$/\\/; p
40078 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40079 ' >>$CONFIG_STATUS <conf$$subs.sed
40080 rm -f conf$$subs.sed
40081 cat >>$CONFIG_STATUS <<_ACEOF
40082 CEOF$ac_eof
40083 _ACEOF
40084
40085
40086 ac_delim='%!_!# '
40087 for ac_last_try in false false false false false :; do
40088   cat >conf$$subs.sed <<_ACEOF
40089 RANLIB!$RANLIB$ac_delim
40090 DLLTOOL!$DLLTOOL$ac_delim
40091 AS!$AS$ac_delim
40092 OBJDUMP!$OBJDUMP$ac_delim
40093 CPP!$CPP$ac_delim
40094 LIBTOOL!$LIBTOOL$ac_delim
40095 PERLBIN!$PERLBIN$ac_delim
40096 OL_MKDEP!$OL_MKDEP$ac_delim
40097 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
40098 LTSTATIC!$LTSTATIC$ac_delim
40099 MYSQL!$MYSQL$ac_delim
40100 LIBOBJS!$LIBOBJS$ac_delim
40101 LIBSRCS!$LIBSRCS$ac_delim
40102 PLAT!$PLAT$ac_delim
40103 WITH_SASL!$WITH_SASL$ac_delim
40104 WITH_TLS!$WITH_TLS$ac_delim
40105 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
40106 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
40107 BUILD_THREAD!$BUILD_THREAD$ac_delim
40108 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
40109 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
40110 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
40111 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
40112 BUILD_BDB!$BUILD_BDB$ac_delim
40113 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
40114 BUILD_HDB!$BUILD_HDB$ac_delim
40115 BUILD_LDAP!$BUILD_LDAP$ac_delim
40116 BUILD_META!$BUILD_META$ac_delim
40117 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
40118 BUILD_NDB!$BUILD_NDB$ac_delim
40119 BUILD_NULL!$BUILD_NULL$ac_delim
40120 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
40121 BUILD_RELAY!$BUILD_RELAY$ac_delim
40122 BUILD_PERL!$BUILD_PERL$ac_delim
40123 BUILD_SHELL!$BUILD_SHELL$ac_delim
40124 BUILD_SOCK!$BUILD_SOCK$ac_delim
40125 BUILD_SQL!$BUILD_SQL$ac_delim
40126 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
40127 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
40128 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
40129 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
40130 BUILD_DDS!$BUILD_DDS$ac_delim
40131 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
40132 BUILD_DEREF!$BUILD_DEREF$ac_delim
40133 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
40134 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
40135 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
40136 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
40137 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
40138 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
40139 BUILD_REFINT!$BUILD_REFINT$ac_delim
40140 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
40141 BUILD_RWM!$BUILD_RWM$ac_delim
40142 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
40143 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
40144 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
40145 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
40146 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
40147 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
40148 LDAP_LIBS!$LDAP_LIBS$ac_delim
40149 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
40150 BDB_LIBS!$BDB_LIBS$ac_delim
40151 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
40152 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
40153 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
40154 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
40155 WRAP_LIBS!$WRAP_LIBS$ac_delim
40156 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
40157 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
40158 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
40159 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
40160 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
40161 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
40162 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
40163 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
40164 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
40165 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
40166 KRB4_LIBS!$KRB4_LIBS$ac_delim
40167 KRB5_LIBS!$KRB5_LIBS$ac_delim
40168 SASL_LIBS!$SASL_LIBS$ac_delim
40169 TLS_LIBS!$TLS_LIBS$ac_delim
40170 MODULES_LIBS!$MODULES_LIBS$ac_delim
40171 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
40172 LIBSLAPI!$LIBSLAPI$ac_delim
40173 AUTH_LIBS!$AUTH_LIBS$ac_delim
40174 ICU_LIBS!$ICU_LIBS$ac_delim
40175 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
40176 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
40177 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
40178 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
40179 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
40180 LTLIBOBJS!$LTLIBOBJS$ac_delim
40181 _ACEOF
40182
40183   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
40184     break
40185   elif $ac_last_try; then
40186     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40187 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40188    { (exit 1); exit 1; }; }
40189   else
40190     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40191   fi
40192 done
40193
40194 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40195 if test -n "$ac_eof"; then
40196   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40197   ac_eof=`expr $ac_eof + 1`
40198 fi
40199
40200 cat >>$CONFIG_STATUS <<_ACEOF
40201 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
40203 _ACEOF
40204 sed '
40205 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40206 s/^/s,@/; s/!/@,|#_!!_#|/
40207 :n
40208 t n
40209 s/'"$ac_delim"'$/,g/; t
40210 s/$/\\/; p
40211 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40212 ' >>$CONFIG_STATUS <conf$$subs.sed
40213 rm -f conf$$subs.sed
40214 cat >>$CONFIG_STATUS <<_ACEOF
40215 :end
40216 s/|#_!!_#|//g
40217 CEOF$ac_eof
40218 _ACEOF
40219
40220
40221 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40222 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40223 # trailing colons and then remove the whole line if VPATH becomes empty
40224 # (actually we leave an empty line to preserve line numbers).
40225 if test "x$srcdir" = x.; then
40226   ac_vpsub='/^[  ]*VPATH[        ]*=/{
40227 s/:*\$(srcdir):*/:/
40228 s/:*\${srcdir}:*/:/
40229 s/:*@srcdir@:*/:/
40230 s/^\([^=]*=[     ]*\):*/\1/
40231 s/:*$//
40232 s/^[^=]*=[       ]*$//
40233 }'
40234 fi
40235
40236 cat >>$CONFIG_STATUS <<\_ACEOF
40237 fi # test -n "$CONFIG_FILES"
40238
40239
40240 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
40241 do
40242   case $ac_tag in
40243   :[FHLC]) ac_mode=$ac_tag; continue;;
40244   esac
40245   case $ac_mode$ac_tag in
40246   :[FHL]*:*);;
40247   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
40248 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
40249    { (exit 1); exit 1; }; };;
40250   :[FH]-) ac_tag=-:-;;
40251   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40252   esac
40253   ac_save_IFS=$IFS
40254   IFS=:
40255   set x $ac_tag
40256   IFS=$ac_save_IFS
40257   shift
40258   ac_file=$1
40259   shift
40260
40261   case $ac_mode in
40262   :L) ac_source=$1;;
40263   :[FH])
40264     ac_file_inputs=
40265     for ac_f
40266     do
40267       case $ac_f in
40268       -) ac_f="$tmp/stdin";;
40269       *) # Look for the file first in the build tree, then in the source tree
40270          # (if the path is not absolute).  The absolute path cannot be DOS-style,
40271          # because $ac_f cannot contain `:'.
40272          test -f "$ac_f" ||
40273            case $ac_f in
40274            [\\/$]*) false;;
40275            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40276            esac ||
40277            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40278 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40279    { (exit 1); exit 1; }; };;
40280       esac
40281       ac_file_inputs="$ac_file_inputs $ac_f"
40282     done
40283
40284     # Let's still pretend it is `configure' which instantiates (i.e., don't
40285     # use $as_me), people would be surprised to read:
40286     #    /* config.h.  Generated by config.status.  */
40287     configure_input="Generated from "`IFS=:
40288           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40289     if test x"$ac_file" != x-; then
40290       configure_input="$ac_file.  $configure_input"
40291       { echo "$as_me:$LINENO: creating $ac_file" >&5
40292 echo "$as_me: creating $ac_file" >&6;}
40293     fi
40294
40295     case $ac_tag in
40296     *:-:* | *:-) cat >"$tmp/stdin";;
40297     esac
40298     ;;
40299   esac
40300
40301   ac_dir=`$as_dirname -- "$ac_file" ||
40302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40303          X"$ac_file" : 'X\(//\)[^/]' \| \
40304          X"$ac_file" : 'X\(//\)$' \| \
40305          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40306 echo X"$ac_file" |
40307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40308             s//\1/
40309             q
40310           }
40311           /^X\(\/\/\)[^/].*/{
40312             s//\1/
40313             q
40314           }
40315           /^X\(\/\/\)$/{
40316             s//\1/
40317             q
40318           }
40319           /^X\(\/\).*/{
40320             s//\1/
40321             q
40322           }
40323           s/.*/./; q'`
40324   { as_dir="$ac_dir"
40325   case $as_dir in #(
40326   -*) as_dir=./$as_dir;;
40327   esac
40328   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40329     as_dirs=
40330     while :; do
40331       case $as_dir in #(
40332       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40333       *) as_qdir=$as_dir;;
40334       esac
40335       as_dirs="'$as_qdir' $as_dirs"
40336       as_dir=`$as_dirname -- "$as_dir" ||
40337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40338          X"$as_dir" : 'X\(//\)[^/]' \| \
40339          X"$as_dir" : 'X\(//\)$' \| \
40340          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40341 echo X"$as_dir" |
40342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40343             s//\1/
40344             q
40345           }
40346           /^X\(\/\/\)[^/].*/{
40347             s//\1/
40348             q
40349           }
40350           /^X\(\/\/\)$/{
40351             s//\1/
40352             q
40353           }
40354           /^X\(\/\).*/{
40355             s//\1/
40356             q
40357           }
40358           s/.*/./; q'`
40359       test -d "$as_dir" && break
40360     done
40361     test -z "$as_dirs" || eval "mkdir $as_dirs"
40362   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40363 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40364    { (exit 1); exit 1; }; }; }
40365   ac_builddir=.
40366
40367 case "$ac_dir" in
40368 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40369 *)
40370   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40371   # A ".." for each directory in $ac_dir_suffix.
40372   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40373   case $ac_top_builddir_sub in
40374   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40375   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40376   esac ;;
40377 esac
40378 ac_abs_top_builddir=$ac_pwd
40379 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40380 # for backward compatibility:
40381 ac_top_builddir=$ac_top_build_prefix
40382
40383 case $srcdir in
40384   .)  # We are building in place.
40385     ac_srcdir=.
40386     ac_top_srcdir=$ac_top_builddir_sub
40387     ac_abs_top_srcdir=$ac_pwd ;;
40388   [\\/]* | ?:[\\/]* )  # Absolute name.
40389     ac_srcdir=$srcdir$ac_dir_suffix;
40390     ac_top_srcdir=$srcdir
40391     ac_abs_top_srcdir=$srcdir ;;
40392   *) # Relative name.
40393     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40394     ac_top_srcdir=$ac_top_build_prefix$srcdir
40395     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40396 esac
40397 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40398
40399
40400   case $ac_mode in
40401   :F)
40402   #
40403   # CONFIG_FILE
40404   #
40405
40406   case $INSTALL in
40407   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40408   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40409   esac
40410   ac_MKDIR_P=$MKDIR_P
40411   case $MKDIR_P in
40412   [\\/$]* | ?:[\\/]* ) ;;
40413   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
40414   esac
40415 _ACEOF
40416
40417 cat >>$CONFIG_STATUS <<\_ACEOF
40418 # If the template does not know about datarootdir, expand it.
40419 # FIXME: This hack should be removed a few years after 2.60.
40420 ac_datarootdir_hack=; ac_datarootdir_seen=
40421
40422 case `sed -n '/datarootdir/ {
40423   p
40424   q
40425 }
40426 /@datadir@/p
40427 /@docdir@/p
40428 /@infodir@/p
40429 /@localedir@/p
40430 /@mandir@/p
40431 ' $ac_file_inputs` in
40432 *datarootdir*) ac_datarootdir_seen=yes;;
40433 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40434   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40435 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40436 _ACEOF
40437 cat >>$CONFIG_STATUS <<_ACEOF
40438   ac_datarootdir_hack='
40439   s&@datadir@&$datadir&g
40440   s&@docdir@&$docdir&g
40441   s&@infodir@&$infodir&g
40442   s&@localedir@&$localedir&g
40443   s&@mandir@&$mandir&g
40444     s&\\\${datarootdir}&$datarootdir&g' ;;
40445 esac
40446 _ACEOF
40447
40448 # Neutralize VPATH when `$srcdir' = `.'.
40449 # Shell code in configure.ac might set extrasub.
40450 # FIXME: do we really want to maintain this feature?
40451 cat >>$CONFIG_STATUS <<_ACEOF
40452   sed "$ac_vpsub
40453 $extrasub
40454 _ACEOF
40455 cat >>$CONFIG_STATUS <<\_ACEOF
40456 :t
40457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40458 s&@configure_input@&$configure_input&;t t
40459 s&@top_builddir@&$ac_top_builddir_sub&;t t
40460 s&@srcdir@&$ac_srcdir&;t t
40461 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40462 s&@top_srcdir@&$ac_top_srcdir&;t t
40463 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40464 s&@builddir@&$ac_builddir&;t t
40465 s&@abs_builddir@&$ac_abs_builddir&;t t
40466 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40467 s&@INSTALL@&$ac_INSTALL&;t t
40468 s&@MKDIR_P@&$ac_MKDIR_P&;t t
40469 $ac_datarootdir_hack
40470 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40471
40472 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40473   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40474   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40475   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40476 which seems to be undefined.  Please make sure it is defined." >&5
40477 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40478 which seems to be undefined.  Please make sure it is defined." >&2;}
40479
40480   rm -f "$tmp/stdin"
40481   case $ac_file in
40482   -) cat "$tmp/out"; rm -f "$tmp/out";;
40483   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40484   esac
40485  ;;
40486   :H)
40487   #
40488   # CONFIG_HEADER
40489   #
40490 _ACEOF
40491
40492 # Transform confdefs.h into a sed script `conftest.defines', that
40493 # substitutes the proper values into config.h.in to produce config.h.
40494 rm -f conftest.defines conftest.tail
40495 # First, append a space to every undef/define line, to ease matching.
40496 echo 's/$/ /' >conftest.defines
40497 # Then, protect against being on the right side of a sed subst, or in
40498 # an unquoted here document, in config.status.  If some macros were
40499 # called several times there might be several #defines for the same
40500 # symbol, which is useless.  But do not sort them, since the last
40501 # AC_DEFINE must be honored.
40502 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40503 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40504 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40505 # PARAMS is the parameter list in the macro definition--in most cases, it's
40506 # just an empty string.
40507 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
40508 ac_dB='\\)[      (].*,\\1define\\2'
40509 ac_dC=' '
40510 ac_dD=' ,'
40511
40512 uniq confdefs.h |
40513   sed -n '
40514         t rset
40515         :rset
40516         s/^[     ]*#[    ]*define[       ][      ]*//
40517         t ok
40518         d
40519         :ok
40520         s/[\\&,]/\\&/g
40521         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40522         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40523   ' >>conftest.defines
40524
40525 # Remove the space that was appended to ease matching.
40526 # Then replace #undef with comments.  This is necessary, for
40527 # example, in the case of _POSIX_SOURCE, which is predefined and required
40528 # on some systems where configure will not decide to define it.
40529 # (The regexp can be short, since the line contains either #define or #undef.)
40530 echo 's/ $//
40531 s,^[     #]*u.*,/* & */,' >>conftest.defines
40532
40533 # Break up conftest.defines:
40534 ac_max_sed_lines=50
40535
40536 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40537 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40538 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40539 # et cetera.
40540 ac_in='$ac_file_inputs'
40541 ac_out='"$tmp/out1"'
40542 ac_nxt='"$tmp/out2"'
40543
40544 while :
40545 do
40546   # Write a here document:
40547     cat >>$CONFIG_STATUS <<_ACEOF
40548     # First, check the format of the line:
40549     cat >"\$tmp/defines.sed" <<\\CEOF
40550 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
40551 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
40552 b
40553 :def
40554 _ACEOF
40555   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40556   echo 'CEOF
40557     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40558   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40559   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40560   grep . conftest.tail >/dev/null || break
40561   rm -f conftest.defines
40562   mv conftest.tail conftest.defines
40563 done
40564 rm -f conftest.defines conftest.tail
40565
40566 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40567 cat >>$CONFIG_STATUS <<\_ACEOF
40568   if test x"$ac_file" != x-; then
40569     echo "/* $configure_input  */" >"$tmp/config.h"
40570     cat "$ac_result" >>"$tmp/config.h"
40571     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40572       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40573 echo "$as_me: $ac_file is unchanged" >&6;}
40574     else
40575       rm -f $ac_file
40576       mv "$tmp/config.h" $ac_file
40577     fi
40578   else
40579     echo "/* $configure_input  */"
40580     cat "$ac_result"
40581   fi
40582   rm -f "$tmp/out12"
40583 # Compute $ac_file's index in $config_headers.
40584 _am_stamp_count=1
40585 for _am_header in $config_headers :; do
40586   case $_am_header in
40587     $ac_file | $ac_file:* )
40588       break ;;
40589     * )
40590       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40591   esac
40592 done
40593 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40594 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40595          X$ac_file : 'X\(//\)[^/]' \| \
40596          X$ac_file : 'X\(//\)$' \| \
40597          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40598 echo X$ac_file |
40599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40600             s//\1/
40601             q
40602           }
40603           /^X\(\/\/\)[^/].*/{
40604             s//\1/
40605             q
40606           }
40607           /^X\(\/\/\)$/{
40608             s//\1/
40609             q
40610           }
40611           /^X\(\/\).*/{
40612             s//\1/
40613             q
40614           }
40615           s/.*/./; q'`/stamp-h$_am_stamp_count
40616  ;;
40617
40618   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40619 echo "$as_me: executing $ac_file commands" >&6;}
40620  ;;
40621   esac
40622
40623
40624   case $ac_file$ac_mode in
40625     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40626   # Strip MF so we end up with the name of the file.
40627   mf=`echo "$mf" | sed -e 's/:.*$//'`
40628   # Check whether this is an Automake generated Makefile or not.
40629   # We used to match only the files named `Makefile.in', but
40630   # some people rename them; so instead we look at the file content.
40631   # Grep'ing the first line is not enough: some people post-process
40632   # each Makefile.in and add a new line on top of each file to say so.
40633   # Grep'ing the whole file is not good either: AIX grep has a line
40634   # limit of 2048, but all sed's we know have understand at least 4000.
40635   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
40636     dirpart=`$as_dirname -- "$mf" ||
40637 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40638          X"$mf" : 'X\(//\)[^/]' \| \
40639          X"$mf" : 'X\(//\)$' \| \
40640          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40641 echo X"$mf" |
40642     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40643             s//\1/
40644             q
40645           }
40646           /^X\(\/\/\)[^/].*/{
40647             s//\1/
40648             q
40649           }
40650           /^X\(\/\/\)$/{
40651             s//\1/
40652             q
40653           }
40654           /^X\(\/\).*/{
40655             s//\1/
40656             q
40657           }
40658           s/.*/./; q'`
40659   else
40660     continue
40661   fi
40662   # Extract the definition of DEPDIR, am__include, and am__quote
40663   # from the Makefile without running `make'.
40664   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40665   test -z "$DEPDIR" && continue
40666   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40667   test -z "am__include" && continue
40668   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40669   # When using ansi2knr, U may be empty or an underscore; expand it
40670   U=`sed -n 's/^U = //p' < "$mf"`
40671   # Find all dependency output files, they are included files with
40672   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40673   # simplest approach to changing $(DEPDIR) to its actual value in the
40674   # expansion.
40675   for file in `sed -n "
40676     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40677        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40678     # Make sure the directory exists.
40679     test -f "$dirpart/$file" && continue
40680     fdir=`$as_dirname -- "$file" ||
40681 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40682          X"$file" : 'X\(//\)[^/]' \| \
40683          X"$file" : 'X\(//\)$' \| \
40684          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40685 echo X"$file" |
40686     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40687             s//\1/
40688             q
40689           }
40690           /^X\(\/\/\)[^/].*/{
40691             s//\1/
40692             q
40693           }
40694           /^X\(\/\/\)$/{
40695             s//\1/
40696             q
40697           }
40698           /^X\(\/\).*/{
40699             s//\1/
40700             q
40701           }
40702           s/.*/./; q'`
40703     { as_dir=$dirpart/$fdir
40704   case $as_dir in #(
40705   -*) as_dir=./$as_dir;;
40706   esac
40707   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40708     as_dirs=
40709     while :; do
40710       case $as_dir in #(
40711       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40712       *) as_qdir=$as_dir;;
40713       esac
40714       as_dirs="'$as_qdir' $as_dirs"
40715       as_dir=`$as_dirname -- "$as_dir" ||
40716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40717          X"$as_dir" : 'X\(//\)[^/]' \| \
40718          X"$as_dir" : 'X\(//\)$' \| \
40719          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40720 echo X"$as_dir" |
40721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40722             s//\1/
40723             q
40724           }
40725           /^X\(\/\/\)[^/].*/{
40726             s//\1/
40727             q
40728           }
40729           /^X\(\/\/\)$/{
40730             s//\1/
40731             q
40732           }
40733           /^X\(\/\).*/{
40734             s//\1/
40735             q
40736           }
40737           s/.*/./; q'`
40738       test -d "$as_dir" && break
40739     done
40740     test -z "$as_dirs" || eval "mkdir $as_dirs"
40741   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40742 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40743    { (exit 1); exit 1; }; }; }
40744     # echo "creating $dirpart/$file"
40745     echo '# dummy' > "$dirpart/$file"
40746   done
40747 done
40748  ;;
40749     "default":C)
40750 chmod +x tests/run
40751 date > stamp-h
40752 BACKENDSC="servers/slapd/backends.c"
40753 echo "Making $BACKENDSC"
40754 rm -f $BACKENDSC
40755 cat > $BACKENDSC << ENDX
40756 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40757  *
40758  * Copyright 1998-2011 The OpenLDAP Foundation.
40759  * All rights reserved.
40760  *
40761  * Redistribution and use in source and binary forms, with or without
40762  * modification, are permitted only as authorized by the OpenLDAP
40763  * Public License.
40764  *
40765  * A copy of this license is available in the file LICENSE in the
40766  * top-level directory of the distribution or, alternatively, at
40767  * <http://www.OpenLDAP.org/license.html>.
40768  */
40769 /* This file is automatically generated by configure; please do not edit. */
40770
40771 #include "portable.h"
40772 #include "slap.h"
40773
40774 ENDX
40775 if test "${STATIC_BACKENDS}"; then
40776         for b in config ${STATIC_BACKENDS}; do
40777                 bb=`echo "${b}" | sed -e 's/back-//'`
40778                 cat >> $BACKENDSC << ENDX
40779 extern BI_init ${bb}_back_initialize;
40780 ENDX
40781         done
40782
40783         cat >> $BACKENDSC << ENDX
40784
40785 BackendInfo slap_binfo[] = {
40786 ENDX
40787
40788         for b in config ${STATIC_BACKENDS}; do
40789                 bb=`echo "${b}" | sed -e 's/back-//'`
40790                 echo "    Add ${bb} ..."
40791                 cat >> $BACKENDSC << ENDX
40792         { "${bb}", ${bb}_back_initialize },
40793 ENDX
40794         done
40795
40796         cat >> $BACKENDSC << ENDX
40797         { NULL, NULL },
40798 };
40799
40800 /* end of generated file */
40801 ENDX
40802 fi
40803 OVERLAYSC="servers/slapd/overlays/statover.c"
40804 echo "Making $OVERLAYSC"
40805 rm -f $OVERLAYSC
40806 cat > $OVERLAYSC << ENDX
40807 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40808  *
40809  * Copyright 1998-2011 The OpenLDAP Foundation.
40810  * All rights reserved.
40811  *
40812  * Redistribution and use in source and binary forms, with or without
40813  * modification, are permitted only as authorized by the OpenLDAP
40814  * Public License.
40815  *
40816  * A copy of this license is available in the file LICENSE in the
40817  * top-level directory of the distribution or, alternatively, at
40818  * <http://www.OpenLDAP.org/license.html>.
40819  */
40820 /* This file is automatically generated by configure; please do not edit. */
40821
40822 #include "portable.h"
40823 #include "slap.h"
40824
40825 ENDX
40826 if test "${STATIC_OVERLAYS}"; then
40827         for o in ${STATIC_OVERLAYS}; do
40828                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40829                 cat >> $OVERLAYSC << ENDX
40830 extern OV_init ${oo}_initialize;
40831 ENDX
40832         done
40833 fi
40834
40835 cat >> $OVERLAYSC << ENDX
40836
40837 OverlayInit slap_oinfo[] = {
40838 ENDX
40839
40840 if test "${STATIC_OVERLAYS}"; then
40841         for o in ${STATIC_OVERLAYS}; do
40842                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40843                 echo "    Add ${oo} ..."
40844                 cat >> $OVERLAYSC << ENDX
40845         { "${oo}", ${oo}_initialize },
40846 ENDX
40847         done
40848 fi
40849
40850         cat >> $OVERLAYSC << ENDX
40851         { NULL, NULL },
40852 };
40853
40854 /* end of generated file */
40855 ENDX
40856
40857 if test "${ol_cv_mkdep}" = no; then
40858         echo '(Do not "make depend"; we do not know how to build dependencies)'
40859 else
40860         echo 'Please run "make depend" to build dependencies'
40861 fi
40862  ;;
40863
40864   esac
40865 done # for ac_tag
40866
40867
40868 { (exit 0); exit 0; }
40869 _ACEOF
40870 chmod +x $CONFIG_STATUS
40871 ac_clean_files=$ac_clean_files_save
40872
40873
40874 # configure is writing to config.log, and then calls config.status.
40875 # config.status does its own redirection, appending to config.log.
40876 # Unfortunately, on DOS this fails, as config.log is still kept open
40877 # by configure, so config.status won't be able to write to it; its
40878 # output is simply discarded.  So we exec the FD to /dev/null,
40879 # effectively closing config.log, so it can be properly (re)opened and
40880 # appended to by config.status.  When coming back to configure, we
40881 # need to make the FD available again.
40882 if test "$no_create" != yes; then
40883   ac_cs_success=:
40884   ac_config_status_args=
40885   test "$silent" = yes &&
40886     ac_config_status_args="$ac_config_status_args --quiet"
40887   exec 5>/dev/null
40888   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40889   exec 5>>config.log
40890   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40891   # would make configure fail if this is the last instruction.
40892   $ac_cs_success || { (exit 1); exit 1; }
40893 fi
40894