]> git.sur5r.net Git - openldap/blob - configure
2c4d4278ee91db9f605ec2e20daef320430af12c
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.684 2009/01/17 00:05:34 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46   echo "#! /bin/sh" >conf$$.sh
47   echo  "exit 0"   >>conf$$.sh
48   chmod +x conf$$.sh
49   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50     PATH_SEPARATOR=';'
51   else
52     PATH_SEPARATOR=:
53   fi
54   rm -f conf$$.sh
55 fi
56
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59   as_unset=unset
60 else
61   as_unset=false
62 fi
63
64
65 # IFS
66 # We need space, tab and new line, in precisely that order.  Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
71 '
72 IFS=" ""        $as_nl"
73
74 # Find who we are.  Look in the path if we contain no directory separator.
75 case $0 in
76   *[\\/]* ) as_myself=$0 ;;
77   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
79 do
80   IFS=$as_save_IFS
81   test -z "$as_dir" && as_dir=.
82   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
85
86      ;;
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91   as_myself=$0
92 fi
93 if test ! -f "$as_myself"; then
94   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95   { (exit 1); exit 1; }
96 fi
97
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
105
106 # NLS nuisances.
107 for as_var in \
108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110   LC_TELEPHONE LC_TIME
111 do
112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113     eval $as_var=C; export $as_var
114   else
115     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116   fi
117 done
118
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
122   as_expr=expr
123 else
124   as_expr=false
125 fi
126
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128   as_basename=basename
129 else
130   as_basename=false
131 fi
132
133
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137          X"$0" : 'X\(//\)$' \| \
138          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140     sed '/^.*\/\([^/][^/]*\)\/*$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\/\)$/{
145             s//\1/
146             q
147           }
148           /^X\/\(\/\).*/{
149             s//\1/
150             q
151           }
152           s/.*/./; q'`
153
154 # CDPATH.
155 $as_unset CDPATH
156
157
158 if test "x$CONFIG_SHELL" = x; then
159   if (eval ":") 2>/dev/null; then
160   as_have_required=yes
161 else
162   as_have_required=no
163 fi
164
165   if test $as_have_required = yes &&     (eval ":
166 (as_func_return () {
167   (exit \$1)
168 }
169 as_func_success () {
170   as_func_return 0
171 }
172 as_func_failure () {
173   as_func_return 1
174 }
175 as_func_ret_success () {
176   return 0
177 }
178 as_func_ret_failure () {
179   return 1
180 }
181
182 exitcode=0
183 if as_func_success; then
184   :
185 else
186   exitcode=1
187   echo as_func_success failed.
188 fi
189
190 if as_func_failure; then
191   exitcode=1
192   echo as_func_failure succeeded.
193 fi
194
195 if as_func_ret_success; then
196   :
197 else
198   exitcode=1
199   echo as_func_ret_success failed.
200 fi
201
202 if as_func_ret_failure; then
203   exitcode=1
204   echo as_func_ret_failure succeeded.
205 fi
206
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208   :
209 else
210   exitcode=1
211   echo positional parameters were not saved.
212 fi
213
214 test \$exitcode = 0) || { (exit 1); exit 1; }
215
216 (
217   as_lineno_1=\$LINENO
218   as_lineno_2=\$LINENO
219   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
222   :
223 else
224   as_candidate_shells=
225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
228   IFS=$as_save_IFS
229   test -z "$as_dir" && as_dir=.
230   case $as_dir in
231          /*)
232            for as_base in sh bash ksh sh5; do
233              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234            done;;
235        esac
236 done
237 IFS=$as_save_IFS
238
239
240       for as_shell in $as_candidate_shells $SHELL; do
241          # Try only shells that exist, to save several forks.
242          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243                 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245   emulate sh
246   NULLCMD=:
247   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248   # is contrary to our usage.  Disable this feature.
249   alias -g '${1+"$@"}'='"$@"'
250   setopt NO_GLOB_SUBST
251 else
252   case `(set -o) 2>/dev/null` in
253   *posix*) set -o posix ;;
254 esac
255
256 fi
257
258
259 :
260 _ASEOF
261 }; then
262   CONFIG_SHELL=$as_shell
263                as_have_required=yes
264                if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266   emulate sh
267   NULLCMD=:
268   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in
274   *posix*) set -o posix ;;
275 esac
276
277 fi
278
279
280 :
281 (as_func_return () {
282   (exit $1)
283 }
284 as_func_success () {
285   as_func_return 0
286 }
287 as_func_failure () {
288   as_func_return 1
289 }
290 as_func_ret_success () {
291   return 0
292 }
293 as_func_ret_failure () {
294   return 1
295 }
296
297 exitcode=0
298 if as_func_success; then
299   :
300 else
301   exitcode=1
302   echo as_func_success failed.
303 fi
304
305 if as_func_failure; then
306   exitcode=1
307   echo as_func_failure succeeded.
308 fi
309
310 if as_func_ret_success; then
311   :
312 else
313   exitcode=1
314   echo as_func_ret_success failed.
315 fi
316
317 if as_func_ret_failure; then
318   exitcode=1
319   echo as_func_ret_failure succeeded.
320 fi
321
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
323   :
324 else
325   exitcode=1
326   echo positional parameters were not saved.
327 fi
328
329 test $exitcode = 0) || { (exit 1); exit 1; }
330
331 (
332   as_lineno_1=$LINENO
333   as_lineno_2=$LINENO
334   test "x$as_lineno_1" != "x$as_lineno_2" &&
335   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337 _ASEOF
338 }; then
339   break
340 fi
341
342 fi
343
344       done
345
346       if test "x$CONFIG_SHELL" != x; then
347   for as_var in BASH_ENV ENV
348         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349         done
350         export CONFIG_SHELL
351         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 fi
353
354
355     if test $as_have_required = no; then
356   echo This script requires a shell more modern than all the
357       echo shells that I found on your system.  Please install a
358       echo modern shell, or manually run the script under such a
359       echo shell if you do have one.
360       { (exit 1); exit 1; }
361 fi
362
363
364 fi
365
366 fi
367
368
369
370 (eval "as_func_return () {
371   (exit \$1)
372 }
373 as_func_success () {
374   as_func_return 0
375 }
376 as_func_failure () {
377   as_func_return 1
378 }
379 as_func_ret_success () {
380   return 0
381 }
382 as_func_ret_failure () {
383   return 1
384 }
385
386 exitcode=0
387 if as_func_success; then
388   :
389 else
390   exitcode=1
391   echo as_func_success failed.
392 fi
393
394 if as_func_failure; then
395   exitcode=1
396   echo as_func_failure succeeded.
397 fi
398
399 if as_func_ret_success; then
400   :
401 else
402   exitcode=1
403   echo as_func_ret_success failed.
404 fi
405
406 if as_func_ret_failure; then
407   exitcode=1
408   echo as_func_ret_failure succeeded.
409 fi
410
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412   :
413 else
414   exitcode=1
415   echo positional parameters were not saved.
416 fi
417
418 test \$exitcode = 0") || {
419   echo No shell found that supports shell functions.
420   echo Please tell autoconf@gnu.org about your system,
421   echo including any error possibly output before this
422   echo message
423 }
424
425
426
427   as_lineno_1=$LINENO
428   as_lineno_2=$LINENO
429   test "x$as_lineno_1" != "x$as_lineno_2" &&
430   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433   # uniformly replaced by the line number.  The first 'sed' inserts a
434   # line-number line after each line using $LINENO; the second 'sed'
435   # does the real work.  The second script uses 'N' to pair each
436   # line-number line with the line containing $LINENO, and appends
437   # trailing '-' during substitution so that $LINENO is not a special
438   # case at line end.
439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440   # scripts with optimization help from Paolo Bonzini.  Blame Lee
441   # E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459    { (exit 1); exit 1; }; }
460
461   # Don't try to exec as it changes $[0], causing all sort of problems
462   # (the dirname of $[0] is not the place where we might find the
463   # original and so on.  Autoconf is especially sensitive to this).
464   . "./$as_me.lineno"
465   # Exit status is that of the last command.
466   exit
467 }
468
469
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471   as_dirname=dirname
472 else
473   as_dirname=false
474 fi
475
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479   case `echo 'x\c'` in
480   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481   *)   ECHO_C='\c';;
482   esac;;
483 *)
484   ECHO_N='-n';;
485 esac
486
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
489   as_expr=expr
490 else
491   as_expr=false
492 fi
493
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496   rm -f conf$$.dir/conf$$.file
497 else
498   rm -f conf$$.dir
499   mkdir conf$$.dir
500 fi
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s='ln -s'
504   # ... but there are two gotchas:
505   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507   # In both cases, we have to default to `cp -p'.
508   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509     as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511   as_ln_s=ln
512 else
513   as_ln_s='cp -p'
514 fi
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
517
518 if mkdir -p . 2>/dev/null; then
519   as_mkdir_p=:
520 else
521   test -d ./-p && rmdir ./-p
522   as_mkdir_p=false
523 fi
524
525 if test -x / >/dev/null 2>&1; then
526   as_test_x='test -x'
527 else
528   if ls -dL / >/dev/null 2>&1; then
529     as_ls_L_option=L
530   else
531     as_ls_L_option=
532   fi
533   as_test_x='
534     eval sh -c '\''
535       if test -d "$1"; then
536         test -d "$1/.";
537       else
538         case $1 in
539         -*)set "./$1";;
540         esac;
541         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542         ???[sx]*):;;*)false;;esac;fi
543     '\'' sh
544   '
545 fi
546 as_executable_p=$as_test_x
547
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 case X$ECHO in
561 X*--fallback-echo)
562   # Remove one level of quotation (which was required for Make).
563   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564   ;;
565 esac
566
567 echo=${ECHO-echo}
568 if test "X$1" = X--no-reexec; then
569   # Discard the --no-reexec flag, and continue.
570   shift
571 elif test "X$1" = X--fallback-echo; then
572   # Avoid inline document here, it may be left over
573   :
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575   # Yippee, $echo works!
576   :
577 else
578   # Restart under the correct shell.
579   exec $SHELL "$0" --no-reexec ${1+"$@"}
580 fi
581
582 if test "X$1" = X--fallback-echo; then
583   # used as fallback echo
584   shift
585   cat <<EOF
586 $*
587 EOF
588   exit 0
589 fi
590
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 # if CDPATH is set.
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601        echo_test_string=`eval $cmd` &&
602        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603     then
604       break
605     fi
606   done
607 fi
608
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611    test "X$echo_testing_string" = "X$echo_test_string"; then
612   :
613 else
614   # The Solaris, AIX, and Digital Unix default echo programs unquote
615   # backslashes.  This makes it impossible to quote backslashes using
616   #   echo "$something" | sed 's/\\/\\\\/g'
617   #
618   # So, first we look for a working echo in the user's PATH.
619
620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621   for dir in $PATH /usr/ucb; do
622     IFS="$lt_save_ifs"
623     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626        test "X$echo_testing_string" = "X$echo_test_string"; then
627       echo="$dir/echo"
628       break
629     fi
630   done
631   IFS="$lt_save_ifs"
632
633   if test "X$echo" = Xecho; then
634     # We didn't find a better echo, so look for alternatives.
635     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637        test "X$echo_testing_string" = "X$echo_test_string"; then
638       # This shell has a builtin print -r that does the trick.
639       echo='print -r'
640     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641          test "X$CONFIG_SHELL" != X/bin/ksh; then
642       # If we have ksh, try running configure again with it.
643       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644       export ORIGINAL_CONFIG_SHELL
645       CONFIG_SHELL=/bin/ksh
646       export CONFIG_SHELL
647       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648     else
649       # Try using printf.
650       echo='printf %s\n'
651       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653          test "X$echo_testing_string" = "X$echo_test_string"; then
654         # Cool, printf works
655         :
656       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657            test "X$echo_testing_string" = 'X\t' &&
658            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659            test "X$echo_testing_string" = "X$echo_test_string"; then
660         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661         export CONFIG_SHELL
662         SHELL="$CONFIG_SHELL"
663         export SHELL
664         echo="$CONFIG_SHELL $0 --fallback-echo"
665       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666            test "X$echo_testing_string" = 'X\t' &&
667            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668            test "X$echo_testing_string" = "X$echo_test_string"; then
669         echo="$CONFIG_SHELL $0 --fallback-echo"
670       else
671         # maybe with a smaller string...
672         prev=:
673
674         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676           then
677             break
678           fi
679           prev="$cmd"
680         done
681
682         if test "$prev" != 'sed 50q "$0"'; then
683           echo_test_string=`eval $prev`
684           export echo_test_string
685           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686         else
687           # Oops.  We lost completely, so just stick with echo.
688           echo=echo
689         fi
690       fi
691     fi
692   fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 ECHO=$echo
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 OPENLDAP_LIBRELEASE
843 OPENLDAP_LIBVERSION
844 OPENLDAP_RELEASE_DATE
845 top_builddir
846 ldap_subdir
847 CC
848 AR
849 CFLAGS
850 LDFLAGS
851 CPPFLAGS
852 ac_ct_CC
853 EXEEXT
854 OBJEXT
855 DEPDIR
856 am__include
857 am__quote
858 AMDEP_TRUE
859 AMDEP_FALSE
860 AMDEPBACKSLASH
861 CCDEPMODE
862 am__fastdepCC_TRUE
863 am__fastdepCC_FALSE
864 GREP
865 EGREP
866 LN_S
867 ECHO
868 RANLIB
869 DLLTOOL
870 AS
871 OBJDUMP
872 CPP
873 LIBTOOL
874 PERLBIN
875 OL_MKDEP
876 OL_MKDEP_FLAGS
877 LTSTATIC
878 MYSQL
879 LIBOBJS
880 LIBSRCS
881 PLAT
882 WITH_SASL
883 WITH_TLS
884 WITH_MODULES_ENABLED
885 WITH_ACI_ENABLED
886 BUILD_THREAD
887 BUILD_LIBS_DYNAMIC
888 BUILD_SLAPD
889 BUILD_SLAPI
890 SLAPD_SLAPI_DEPEND
891 BUILD_BDB
892 BUILD_DNSSRV
893 BUILD_HDB
894 BUILD_LDAP
895 BUILD_META
896 BUILD_MONITOR
897 BUILD_NDB
898 BUILD_NULL
899 BUILD_PASSWD
900 BUILD_RELAY
901 BUILD_PERL
902 BUILD_SHELL
903 BUILD_SOCK
904 BUILD_SQL
905 BUILD_ACCESSLOG
906 BUILD_AUDITLOG
907 BUILD_COLLECT
908 BUILD_CONSTRAINT
909 BUILD_DDS
910 BUILD_DENYOP
911 BUILD_DYNGROUP
912 BUILD_DYNLIST
913 BUILD_LASTMOD
914 BUILD_MEMBEROF
915 BUILD_PPOLICY
916 BUILD_PROXYCACHE
917 BUILD_REFINT
918 BUILD_RETCODE
919 BUILD_RWM
920 BUILD_SEQMOD
921 BUILD_SYNCPROV
922 BUILD_TRANSLUCENT
923 BUILD_UNIQUE
924 BUILD_VALSORT
925 LDAP_LIBS
926 SLAPD_LIBS
927 BDB_LIBS
928 SLAPD_NDB_LIBS
929 SLAPD_NDB_INCS
930 LTHREAD_LIBS
931 LUTIL_LIBS
932 WRAP_LIBS
933 SLAPD_MODULES_CPPFLAGS
934 SLAPD_MODULES_LDFLAGS
935 SLAPD_NO_STATIC
936 SLAPD_STATIC_BACKENDS
937 SLAPD_DYNAMIC_BACKENDS
938 SLAPD_STATIC_OVERLAYS
939 SLAPD_DYNAMIC_OVERLAYS
940 PERL_CPPFLAGS
941 SLAPD_PERL_LDFLAGS
942 MOD_PERL_LDFLAGS
943 KRB4_LIBS
944 KRB5_LIBS
945 SASL_LIBS
946 GSSAPI_LIBS
947 TLS_LIBS
948 MODULES_LIBS
949 SLAPI_LIBS
950 LIBSLAPI
951 LIBSLAPITOOLS
952 AUTH_LIBS
953 ICU_LIBS
954 SLAPD_SLP_LIBS
955 SLAPD_GMP_LIBS
956 SLAPD_SQL_LDFLAGS
957 SLAPD_SQL_LIBS
958 SLAPD_SQL_INCLUDES
959 LTLIBOBJS'
960 ac_subst_files=''
961       ac_precious_vars='build_alias
962 host_alias
963 target_alias
964 CC
965 CFLAGS
966 LDFLAGS
967 LIBS
968 CPPFLAGS
969 CPP'
970
971
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
977 cache_file=/dev/null
978 exec_prefix=NONE
979 no_create=
980 no_recursion=
981 prefix=NONE
982 program_prefix=NONE
983 program_suffix=NONE
984 program_transform_name=s,x,x,
985 silent=
986 site=
987 srcdir=
988 verbose=
989 x_includes=NONE
990 x_libraries=NONE
991
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE}'
1009 infodir='${datarootdir}/info'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1017
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1021 do
1022   # If the previous option needs an argument, assign it.
1023   if test -n "$ac_prev"; then
1024     eval $ac_prev=\$ac_option
1025     ac_prev=
1026     continue
1027   fi
1028
1029   case $ac_option in
1030   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031   *)    ac_optarg=yes ;;
1032   esac
1033
1034   # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1036   case $ac_dashdash$ac_option in
1037   --)
1038     ac_dashdash=yes ;;
1039
1040   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041     ac_prev=bindir ;;
1042   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043     bindir=$ac_optarg ;;
1044
1045   -build | --build | --buil | --bui | --bu)
1046     ac_prev=build_alias ;;
1047   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048     build_alias=$ac_optarg ;;
1049
1050   -cache-file | --cache-file | --cache-fil | --cache-fi \
1051   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052     ac_prev=cache_file ;;
1053   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055     cache_file=$ac_optarg ;;
1056
1057   --config-cache | -C)
1058     cache_file=config.cache ;;
1059
1060   -datadir | --datadir | --datadi | --datad)
1061     ac_prev=datadir ;;
1062   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063     datadir=$ac_optarg ;;
1064
1065   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066   | --dataroo | --dataro | --datar)
1067     ac_prev=datarootdir ;;
1068   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070     datarootdir=$ac_optarg ;;
1071
1072   -disable-* | --disable-*)
1073     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077    { (exit 1); exit 1; }; }
1078     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1079     eval enable_$ac_feature=no ;;
1080
1081   -docdir | --docdir | --docdi | --doc | --do)
1082     ac_prev=docdir ;;
1083   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084     docdir=$ac_optarg ;;
1085
1086   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087     ac_prev=dvidir ;;
1088   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089     dvidir=$ac_optarg ;;
1090
1091   -enable-* | --enable-*)
1092     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096    { (exit 1); exit 1; }; }
1097     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1098     eval enable_$ac_feature=\$ac_optarg ;;
1099
1100   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102   | --exec | --exe | --ex)
1103     ac_prev=exec_prefix ;;
1104   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106   | --exec=* | --exe=* | --ex=*)
1107     exec_prefix=$ac_optarg ;;
1108
1109   -gas | --gas | --ga | --g)
1110     # Obsolete; use --with-gas.
1111     with_gas=yes ;;
1112
1113   -help | --help | --hel | --he | -h)
1114     ac_init_help=long ;;
1115   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116     ac_init_help=recursive ;;
1117   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118     ac_init_help=short ;;
1119
1120   -host | --host | --hos | --ho)
1121     ac_prev=host_alias ;;
1122   -host=* | --host=* | --hos=* | --ho=*)
1123     host_alias=$ac_optarg ;;
1124
1125   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126     ac_prev=htmldir ;;
1127   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128   | --ht=*)
1129     htmldir=$ac_optarg ;;
1130
1131   -includedir | --includedir | --includedi | --included | --include \
1132   | --includ | --inclu | --incl | --inc)
1133     ac_prev=includedir ;;
1134   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135   | --includ=* | --inclu=* | --incl=* | --inc=*)
1136     includedir=$ac_optarg ;;
1137
1138   -infodir | --infodir | --infodi | --infod | --info | --inf)
1139     ac_prev=infodir ;;
1140   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141     infodir=$ac_optarg ;;
1142
1143   -libdir | --libdir | --libdi | --libd)
1144     ac_prev=libdir ;;
1145   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146     libdir=$ac_optarg ;;
1147
1148   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149   | --libexe | --libex | --libe)
1150     ac_prev=libexecdir ;;
1151   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152   | --libexe=* | --libex=* | --libe=*)
1153     libexecdir=$ac_optarg ;;
1154
1155   -localedir | --localedir | --localedi | --localed | --locale)
1156     ac_prev=localedir ;;
1157   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158     localedir=$ac_optarg ;;
1159
1160   -localstatedir | --localstatedir | --localstatedi | --localstated \
1161   | --localstate | --localstat | --localsta | --localst | --locals)
1162     ac_prev=localstatedir ;;
1163   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165     localstatedir=$ac_optarg ;;
1166
1167   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168     ac_prev=mandir ;;
1169   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170     mandir=$ac_optarg ;;
1171
1172   -nfp | --nfp | --nf)
1173     # Obsolete; use --without-fp.
1174     with_fp=no ;;
1175
1176   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177   | --no-cr | --no-c | -n)
1178     no_create=yes ;;
1179
1180   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182     no_recursion=yes ;;
1183
1184   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186   | --oldin | --oldi | --old | --ol | --o)
1187     ac_prev=oldincludedir ;;
1188   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191     oldincludedir=$ac_optarg ;;
1192
1193   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194     ac_prev=prefix ;;
1195   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196     prefix=$ac_optarg ;;
1197
1198   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199   | --program-pre | --program-pr | --program-p)
1200     ac_prev=program_prefix ;;
1201   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203     program_prefix=$ac_optarg ;;
1204
1205   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206   | --program-suf | --program-su | --program-s)
1207     ac_prev=program_suffix ;;
1208   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210     program_suffix=$ac_optarg ;;
1211
1212   -program-transform-name | --program-transform-name \
1213   | --program-transform-nam | --program-transform-na \
1214   | --program-transform-n | --program-transform- \
1215   | --program-transform | --program-transfor \
1216   | --program-transfo | --program-transf \
1217   | --program-trans | --program-tran \
1218   | --progr-tra | --program-tr | --program-t)
1219     ac_prev=program_transform_name ;;
1220   -program-transform-name=* | --program-transform-name=* \
1221   | --program-transform-nam=* | --program-transform-na=* \
1222   | --program-transform-n=* | --program-transform-=* \
1223   | --program-transform=* | --program-transfor=* \
1224   | --program-transfo=* | --program-transf=* \
1225   | --program-trans=* | --program-tran=* \
1226   | --progr-tra=* | --program-tr=* | --program-t=*)
1227     program_transform_name=$ac_optarg ;;
1228
1229   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230     ac_prev=pdfdir ;;
1231   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232     pdfdir=$ac_optarg ;;
1233
1234   -psdir | --psdir | --psdi | --psd | --ps)
1235     ac_prev=psdir ;;
1236   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237     psdir=$ac_optarg ;;
1238
1239   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240   | -silent | --silent | --silen | --sile | --sil)
1241     silent=yes ;;
1242
1243   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244     ac_prev=sbindir ;;
1245   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246   | --sbi=* | --sb=*)
1247     sbindir=$ac_optarg ;;
1248
1249   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251   | --sharedst | --shareds | --shared | --share | --shar \
1252   | --sha | --sh)
1253     ac_prev=sharedstatedir ;;
1254   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257   | --sha=* | --sh=*)
1258     sharedstatedir=$ac_optarg ;;
1259
1260   -site | --site | --sit)
1261     ac_prev=site ;;
1262   -site=* | --site=* | --sit=*)
1263     site=$ac_optarg ;;
1264
1265   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266     ac_prev=srcdir ;;
1267   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268     srcdir=$ac_optarg ;;
1269
1270   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271   | --syscon | --sysco | --sysc | --sys | --sy)
1272     ac_prev=sysconfdir ;;
1273   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275     sysconfdir=$ac_optarg ;;
1276
1277   -target | --target | --targe | --targ | --tar | --ta | --t)
1278     ac_prev=target_alias ;;
1279   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280     target_alias=$ac_optarg ;;
1281
1282   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283     verbose=yes ;;
1284
1285   -version | --version | --versio | --versi | --vers | -V)
1286     ac_init_version=: ;;
1287
1288   -with-* | --with-*)
1289     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292       { echo "$as_me: error: invalid package name: $ac_package" >&2
1293    { (exit 1); exit 1; }; }
1294     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1295     eval with_$ac_package=\$ac_optarg ;;
1296
1297   -without-* | --without-*)
1298     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299     # Reject names that are not valid shell variable names.
1300     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301       { echo "$as_me: error: invalid package name: $ac_package" >&2
1302    { (exit 1); exit 1; }; }
1303     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1304     eval with_$ac_package=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326    { (exit 1); exit 1; }; }
1327     ;;
1328
1329   *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334    { (exit 1); exit 1; }; }
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   { echo "$as_me: error: missing argument to $ac_option" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 # Be sure to have absolute directory names.
1356 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357                 datadir sysconfdir sharedstatedir localstatedir includedir \
1358                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359                 libdir localedir mandir
1360 do
1361   eval ac_val=\$$ac_var
1362   case $ac_val in
1363     [\\/$]* | ?:[\\/]* )  continue;;
1364     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365   esac
1366   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367    { (exit 1); exit 1; }; }
1368 done
1369
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379   if test "x$build_alias" = x; then
1380     cross_compiling=maybe
1381     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382     If a cross compiler is detected then cross compile mode will be used." >&2
1383   elif test "x$build_alias" != "x$host_alias"; then
1384     cross_compiling=yes
1385   fi
1386 fi
1387
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391 test "$silent" = yes && exec 6>/dev/null
1392
1393
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397   { echo "$as_me: error: Working directory cannot be determined" >&2
1398    { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400   { echo "$as_me: error: pwd does not report name of working directory" >&2
1401    { (exit 1); exit 1; }; }
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406   ac_srcdir_defaulted=yes
1407   # Try the directory containing this script, then the parent directory.
1408   ac_confdir=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410          X"$0" : 'X\(//\)[^/]' \| \
1411          X"$0" : 'X\(//\)$' \| \
1412          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1413 echo X"$0" |
1414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415             s//\1/
1416             q
1417           }
1418           /^X\(\/\/\)[^/].*/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\/\)$/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\).*/{
1427             s//\1/
1428             q
1429           }
1430           s/.*/./; q'`
1431   srcdir=$ac_confdir
1432   if test ! -r "$srcdir/$ac_unique_file"; then
1433     srcdir=..
1434   fi
1435 else
1436   ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441    { (exit 1); exit 1; }; }
1442 fi
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 ac_abs_confdir=`(
1445         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446    { (exit 1); exit 1; }; }
1447         pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450   srcdir=.
1451 fi
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for ac_var in $ac_precious_vars; do
1459   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460   eval ac_env_${ac_var}_value=\$${ac_var}
1461   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463 done
1464
1465 #
1466 # Report the --help message.
1467 #
1468 if test "$ac_init_help" = "long"; then
1469   # Omit some internal or obsolete options to make the list less imposing.
1470   # This message is too long to be a string in the A/UX 3.1 sh.
1471   cat <<_ACEOF
1472 \`configure' configures this package to adapt to many kinds of systems.
1473
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE.  See below for descriptions of some of the useful variables.
1478
1479 Defaults for the options are specified in brackets.
1480
1481 Configuration:
1482   -h, --help              display this help and exit
1483       --help=short        display options specific to this package
1484       --help=recursive    display the short help of all the included packages
1485   -V, --version           display version information and exit
1486   -q, --quiet, --silent   do not print \`checking...' messages
1487       --cache-file=FILE   cache test results in FILE [disabled]
1488   -C, --config-cache      alias for \`--cache-file=config.cache'
1489   -n, --no-create         do not create output files
1490       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1491
1492 Installation directories:
1493   --prefix=PREFIX         install architecture-independent files in PREFIX
1494                           [$ac_default_prefix]
1495   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1496                           [PREFIX]
1497
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1502
1503 For better control, use the options below.
1504
1505 Fine tuning of the installation directories:
1506   --bindir=DIR           user executables [EPREFIX/bin]
1507   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1508   --libexecdir=DIR       program executables [EPREFIX/libexec]
1509   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1510   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1511   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1512   --libdir=DIR           object code libraries [EPREFIX/lib]
1513   --includedir=DIR       C header files [PREFIX/include]
1514   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1515   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1516   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1517   --infodir=DIR          info documentation [DATAROOTDIR/info]
1518   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1519   --mandir=DIR           man documentation [DATAROOTDIR/man]
1520   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1521   --htmldir=DIR          html documentation [DOCDIR]
1522   --dvidir=DIR           dvi documentation [DOCDIR]
1523   --pdfdir=DIR           pdf documentation [DOCDIR]
1524   --psdir=DIR            ps documentation [DOCDIR]
1525 _ACEOF
1526
1527   cat <<\_ACEOF
1528
1529 Program names:
1530   --program-prefix=PREFIX            prepend PREFIX to installed program names
1531   --program-suffix=SUFFIX            append SUFFIX to installed program names
1532   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1533
1534 System types:
1535   --build=BUILD     configure for building on BUILD [guessed]
1536   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1537   --target=TARGET   configure for building compilers for TARGET [HOST]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542
1543   cat <<\_ACEOF
1544
1545 Optional Features:
1546   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1547   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1548   --enable-debug          enable debugging no|yes|traditional [yes]
1549   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1550   --enable-syslog         enable syslog support [auto]
1551   --enable-proctitle      enable proctitle support [yes]
1552   --enable-ipv6           enable IPv6 support [auto]
1553   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1554
1555 SLAPD (Standalone LDAP Daemon) Options:
1556   --enable-slapd          enable building slapd [yes]
1557     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1558     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1559     --enable-cleartext    enable cleartext passwords [yes]
1560     --enable-crypt        enable crypt(3) passwords [no]
1561     --enable-lmpasswd     enable LAN Manager passwords [no]
1562     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1563     --enable-modules      enable dynamic module support [no]
1564     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1565     --enable-rlookups     enable reverse lookups of client hostnames [no]
1566     --enable-slapi        enable SLAPI support (experimental) [no]
1567     --enable-slp          enable SLPv2 support [no]
1568     --enable-wrappers     enable tcp wrapper support [no]
1569
1570 SLAPD Backend Options:
1571     --enable-backends     enable all available backends no|yes|mod
1572     --enable-bdb          enable Berkeley DB backend no|yes|mod [no]
1573     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1574     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1575     --enable-ldap         enable ldap backend no|yes|mod [no]
1576     --enable-meta         enable metadirectory backend no|yes|mod [no]
1577     --enable-monitor      enable monitor backend no|yes|mod [yes]
1578     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1579     --enable-null         enable null backend no|yes|mod [no]
1580     --enable-passwd       enable passwd backend no|yes|mod [no]
1581     --enable-perl         enable perl backend no|yes|mod [no]
1582     --enable-relay        enable relay backend no|yes|mod [yes]
1583     --enable-shell        enable shell backend no|yes|mod [no]
1584     --enable-sock         enable sock backend no|yes|mod [no]
1585     --enable-sql          enable sql backend no|yes|mod [no]
1586
1587 SLAPD Overlay Options:
1588     --enable-overlays     enable all available overlays no|yes|mod
1589     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1590     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1591     --enable-collect      Collect overlay no|yes|mod [no]
1592     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1593     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1594     --enable-deref        Dereference overlay no|yes|mod [no]
1595     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1596     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1597     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1598     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1599     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1600     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1601     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1602     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1603     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1604     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1605     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1606     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1607     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1608
1609 Library Generation & Linking Options
1610   --enable-static[=PKGS]  build static libraries [default=yes]
1611   --enable-shared[=PKGS]  build shared libraries [default=yes]
1612   --enable-fast-install[=PKGS]
1613                           optimize for fast installation [default=yes]
1614   --disable-dependency-tracking  speeds up one-time build
1615   --enable-dependency-tracking   do not reject slow dependency extractors
1616   --disable-libtool-lock  avoid locking (might break parallel builds)
1617
1618 Optional Packages:
1619   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1620   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1621   --with-subdir=DIR       change default subdirectory used for installs
1622   --with-cyrus-sasl       with Cyrus SASL support [auto]
1623   --with-fetch            with fetch(3) URL support [auto]
1624   --with-gssapi           with GSSAPI support [auto]
1625   --with-threads          with threads [auto]
1626   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1627   --with-yielding-select  with implicitly yielding select [auto]
1628   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1629   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1630   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1631   --with-pic              try to use only PIC/non-PIC objects [default=use
1632                           both]
1633   --with-tags[=TAGS]      include additional configurations [automatic]
1634
1635 See INSTALL file for further details.
1636
1637 Some influential environment variables:
1638   CC          C compiler command
1639   CFLAGS      C compiler flags
1640   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1641               nonstandard directory <lib dir>
1642   LIBS        libraries to pass to the linker, e.g. -l<library>
1643   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1644               you have headers in a nonstandard directory <include dir>
1645   CPP         C preprocessor
1646
1647 Use these variables to override the choices made by `configure' or to help
1648 it to find libraries and programs with nonstandard names/locations.
1649
1650 _ACEOF
1651 ac_status=$?
1652 fi
1653
1654 if test "$ac_init_help" = "recursive"; then
1655   # If there are subdirs, report their specific --help.
1656   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657     test -d "$ac_dir" || continue
1658     ac_builddir=.
1659
1660 case "$ac_dir" in
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *)
1663   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1664   # A ".." for each directory in $ac_dir_suffix.
1665   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1666   case $ac_top_builddir_sub in
1667   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669   esac ;;
1670 esac
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1675
1676 case $srcdir in
1677   .)  # We are building in place.
1678     ac_srcdir=.
1679     ac_top_srcdir=$ac_top_builddir_sub
1680     ac_abs_top_srcdir=$ac_pwd ;;
1681   [\\/]* | ?:[\\/]* )  # Absolute name.
1682     ac_srcdir=$srcdir$ac_dir_suffix;
1683     ac_top_srcdir=$srcdir
1684     ac_abs_top_srcdir=$srcdir ;;
1685   *) # Relative name.
1686     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687     ac_top_srcdir=$ac_top_build_prefix$srcdir
1688     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 esac
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
1692     cd "$ac_dir" || { ac_status=$?; continue; }
1693     # Check for guested configure.
1694     if test -f "$ac_srcdir/configure.gnu"; then
1695       echo &&
1696       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697     elif test -f "$ac_srcdir/configure"; then
1698       echo &&
1699       $SHELL "$ac_srcdir/configure" --help=recursive
1700     else
1701       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702     fi || ac_status=$?
1703     cd "$ac_pwd" || { ac_status=$?; break; }
1704   done
1705 fi
1706
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1709   cat <<\_ACEOF
1710 configure
1711 generated by GNU Autoconf 2.61
1712
1713 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1714 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1717
1718 Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved.
1719 Restrictions apply, see COPYRIGHT and LICENSE files.
1720 _ACEOF
1721   exit
1722 fi
1723 cat >config.log <<_ACEOF
1724 This file contains any messages produced by compilers while
1725 running configure, to aid debugging if configure makes a mistake.
1726
1727 It was created by $as_me, which was
1728 generated by GNU Autoconf 2.61.  Invocation command line was
1729
1730   $ $0 $@
1731
1732 _ACEOF
1733 exec 5>>config.log
1734 {
1735 cat <<_ASUNAME
1736 ## --------- ##
1737 ## Platform. ##
1738 ## --------- ##
1739
1740 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1741 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1742 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1743 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1744 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1745
1746 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1747 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1748
1749 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1750 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1751 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1752 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1753 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1754 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1755 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1756
1757 _ASUNAME
1758
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1761 do
1762   IFS=$as_save_IFS
1763   test -z "$as_dir" && as_dir=.
1764   echo "PATH: $as_dir"
1765 done
1766 IFS=$as_save_IFS
1767
1768 } >&5
1769
1770 cat >&5 <<_ACEOF
1771
1772
1773 ## ----------- ##
1774 ## Core tests. ##
1775 ## ----------- ##
1776
1777 _ACEOF
1778
1779
1780 # Keep a trace of the command line.
1781 # Strip out --no-create and --no-recursion so they do not pile up.
1782 # Strip out --silent because we don't want to record it for future runs.
1783 # Also quote any args containing shell meta-characters.
1784 # Make two passes to allow for proper duplicate-argument suppression.
1785 ac_configure_args=
1786 ac_configure_args0=
1787 ac_configure_args1=
1788 ac_must_keep_next=false
1789 for ac_pass in 1 2
1790 do
1791   for ac_arg
1792   do
1793     case $ac_arg in
1794     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1795     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1796     | -silent | --silent | --silen | --sile | --sil)
1797       continue ;;
1798     *\'*)
1799       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1800     esac
1801     case $ac_pass in
1802     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1803     2)
1804       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1805       if test $ac_must_keep_next = true; then
1806         ac_must_keep_next=false # Got value, back to normal.
1807       else
1808         case $ac_arg in
1809           *=* | --config-cache | -C | -disable-* | --disable-* \
1810           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1811           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1812           | -with-* | --with-* | -without-* | --without-* | --x)
1813             case "$ac_configure_args0 " in
1814               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1815             esac
1816             ;;
1817           -* ) ac_must_keep_next=true ;;
1818         esac
1819       fi
1820       ac_configure_args="$ac_configure_args '$ac_arg'"
1821       ;;
1822     esac
1823   done
1824 done
1825 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1826 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1827
1828 # When interrupted or exit'd, cleanup temporary files, and complete
1829 # config.log.  We remove comments because anyway the quotes in there
1830 # would cause problems or look ugly.
1831 # WARNING: Use '\'' to represent an apostrophe within the trap.
1832 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1833 trap 'exit_status=$?
1834   # Save into config.log some information that might help in debugging.
1835   {
1836     echo
1837
1838     cat <<\_ASBOX
1839 ## ---------------- ##
1840 ## Cache variables. ##
1841 ## ---------------- ##
1842 _ASBOX
1843     echo
1844     # The following way of writing the cache mishandles newlines in values,
1845 (
1846   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1847     eval ac_val=\$$ac_var
1848     case $ac_val in #(
1849     *${as_nl}*)
1850       case $ac_var in #(
1851       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1852 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1853       esac
1854       case $ac_var in #(
1855       _ | IFS | as_nl) ;; #(
1856       *) $as_unset $ac_var ;;
1857       esac ;;
1858     esac
1859   done
1860   (set) 2>&1 |
1861     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1862     *${as_nl}ac_space=\ *)
1863       sed -n \
1864         "s/'\''/'\''\\\\'\'''\''/g;
1865           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1866       ;; #(
1867     *)
1868       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1869       ;;
1870     esac |
1871     sort
1872 )
1873     echo
1874
1875     cat <<\_ASBOX
1876 ## ----------------- ##
1877 ## Output variables. ##
1878 ## ----------------- ##
1879 _ASBOX
1880     echo
1881     for ac_var in $ac_subst_vars
1882     do
1883       eval ac_val=\$$ac_var
1884       case $ac_val in
1885       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1886       esac
1887       echo "$ac_var='\''$ac_val'\''"
1888     done | sort
1889     echo
1890
1891     if test -n "$ac_subst_files"; then
1892       cat <<\_ASBOX
1893 ## ------------------- ##
1894 ## File substitutions. ##
1895 ## ------------------- ##
1896 _ASBOX
1897       echo
1898       for ac_var in $ac_subst_files
1899       do
1900         eval ac_val=\$$ac_var
1901         case $ac_val in
1902         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903         esac
1904         echo "$ac_var='\''$ac_val'\''"
1905       done | sort
1906       echo
1907     fi
1908
1909     if test -s confdefs.h; then
1910       cat <<\_ASBOX
1911 ## ----------- ##
1912 ## confdefs.h. ##
1913 ## ----------- ##
1914 _ASBOX
1915       echo
1916       cat confdefs.h
1917       echo
1918     fi
1919     test "$ac_signal" != 0 &&
1920       echo "$as_me: caught signal $ac_signal"
1921     echo "$as_me: exit $exit_status"
1922   } >&5
1923   rm -f core *.core core.conftest.* &&
1924     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1925     exit $exit_status
1926 ' 0
1927 for ac_signal in 1 2 13 15; do
1928   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1929 done
1930 ac_signal=0
1931
1932 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1933 rm -f -r conftest* confdefs.h
1934
1935 # Predefined preprocessor variables.
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_NAME "$PACKAGE_NAME"
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1949 _ACEOF
1950
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1954 _ACEOF
1955
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1959 _ACEOF
1960
1961
1962 # Let the site file select an alternate cache file if it wants to.
1963 # Prefer explicitly selected file to automatically selected ones.
1964 if test -n "$CONFIG_SITE"; then
1965   set x "$CONFIG_SITE"
1966 elif test "x$prefix" != xNONE; then
1967   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1968 else
1969   set x "$ac_default_prefix/share/config.site" \
1970         "$ac_default_prefix/etc/config.site"
1971 fi
1972 shift
1973 for ac_site_file
1974 do
1975   if test -r "$ac_site_file"; then
1976     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1977 echo "$as_me: loading site script $ac_site_file" >&6;}
1978     sed 's/^/| /' "$ac_site_file" >&5
1979     . "$ac_site_file"
1980   fi
1981 done
1982
1983
1984 # Check that the precious variables saved in the cache have kept the same
1985 # value.
1986 ac_cache_corrupted=false
1987 for ac_var in $ac_precious_vars; do
1988   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1989   eval ac_new_set=\$ac_env_${ac_var}_set
1990   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1991   eval ac_new_val=\$ac_env_${ac_var}_value
1992   case $ac_old_set,$ac_new_set in
1993     set,)
1994       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996       ac_cache_corrupted=: ;;
1997     ,set)
1998       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000       ac_cache_corrupted=: ;;
2001     ,);;
2002     *)
2003       if test "x$ac_old_val" != "x$ac_new_val"; then
2004         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2005 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2006         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2007 echo "$as_me:   former value:  $ac_old_val" >&2;}
2008         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2009 echo "$as_me:   current value: $ac_new_val" >&2;}
2010         ac_cache_corrupted=:
2011       fi;;
2012   esac
2013   # Pass precious variables to config.status.
2014   if test "$ac_new_set" = set; then
2015     case $ac_new_val in
2016     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2017     *) ac_arg=$ac_var=$ac_new_val ;;
2018     esac
2019     case " $ac_configure_args " in
2020       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2021       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2022     esac
2023   fi
2024 done
2025 if $ac_cache_corrupted; then
2026   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2027 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2028   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2029 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2030    { (exit 1); exit 1; }; }
2031 fi
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049 ac_ext=c
2050 ac_cpp='$CPP $CPPFLAGS'
2051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082 ac_aux_dir=
2083 for ac_dir in build "$srcdir"/build; do
2084   if test -f "$ac_dir/install-sh"; then
2085     ac_aux_dir=$ac_dir
2086     ac_install_sh="$ac_aux_dir/install-sh -c"
2087     break
2088   elif test -f "$ac_dir/install.sh"; then
2089     ac_aux_dir=$ac_dir
2090     ac_install_sh="$ac_aux_dir/install.sh -c"
2091     break
2092   elif test -f "$ac_dir/shtool"; then
2093     ac_aux_dir=$ac_dir
2094     ac_install_sh="$ac_aux_dir/shtool install -c"
2095     break
2096   fi
2097 done
2098 if test -z "$ac_aux_dir"; then
2099   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2100 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2101    { (exit 1); exit 1; }; }
2102 fi
2103
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2111
2112
2113 eval `$ac_aux_dir/version.sh`
2114 if test -z "$OL_STRING"; then
2115         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2116 echo "$as_me: error: could not determine version" >&2;}
2117    { (exit 1); exit 1; }; }
2118 fi
2119
2120 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2121         ac_cv_shtool="$ac_aux_dir/shtool"
2122 else
2123         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2124 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2125    { (exit 1); exit 1; }; }
2126 fi
2127
2128 SHTOOL="$ac_cv_shtool"
2129
2130 TB="" TN=""
2131 if test -t 1; then
2132         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2133         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2134 fi
2135
2136 OPENLDAP_CVS=""
2137 if test -d $ac_aux_dir/CVS; then
2138         OPENLDAP_CVS="(from CVS sources) "
2139 fi
2140
2141 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2142
2143 # Make sure we can run config.sub.
2144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2145   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2146 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2147    { (exit 1); exit 1; }; }
2148
2149 { echo "$as_me:$LINENO: checking build system type" >&5
2150 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2151 if test "${ac_cv_build+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   ac_build_alias=$build_alias
2155 test "x$ac_build_alias" = x &&
2156   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2157 test "x$ac_build_alias" = x &&
2158   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160    { (exit 1); exit 1; }; }
2161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2162   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2164    { (exit 1); exit 1; }; }
2165
2166 fi
2167 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168 echo "${ECHO_T}$ac_cv_build" >&6; }
2169 case $ac_cv_build in
2170 *-*-*) ;;
2171 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2172 echo "$as_me: error: invalid value of canonical build" >&2;}
2173    { (exit 1); exit 1; }; };;
2174 esac
2175 build=$ac_cv_build
2176 ac_save_IFS=$IFS; IFS='-'
2177 set x $ac_cv_build
2178 shift
2179 build_cpu=$1
2180 build_vendor=$2
2181 shift; shift
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2184 build_os=$*
2185 IFS=$ac_save_IFS
2186 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2187
2188
2189 { echo "$as_me:$LINENO: checking host system type" >&5
2190 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2191 if test "${ac_cv_host+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   if test "x$host_alias" = x; then
2195   ac_cv_host=$ac_cv_build
2196 else
2197   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2199 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2200    { (exit 1); exit 1; }; }
2201 fi
2202
2203 fi
2204 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205 echo "${ECHO_T}$ac_cv_host" >&6; }
2206 case $ac_cv_host in
2207 *-*-*) ;;
2208 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2209 echo "$as_me: error: invalid value of canonical host" >&2;}
2210    { (exit 1); exit 1; }; };;
2211 esac
2212 host=$ac_cv_host
2213 ac_save_IFS=$IFS; IFS='-'
2214 set x $ac_cv_host
2215 shift
2216 host_cpu=$1
2217 host_vendor=$2
2218 shift; shift
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2221 host_os=$*
2222 IFS=$ac_save_IFS
2223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2224
2225
2226 { echo "$as_me:$LINENO: checking target system type" >&5
2227 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2228 if test "${ac_cv_target+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test "x$target_alias" = x; then
2232   ac_cv_target=$ac_cv_host
2233 else
2234   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2235     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2236 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2237    { (exit 1); exit 1; }; }
2238 fi
2239
2240 fi
2241 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2242 echo "${ECHO_T}$ac_cv_target" >&6; }
2243 case $ac_cv_target in
2244 *-*-*) ;;
2245 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2246 echo "$as_me: error: invalid value of canonical target" >&2;}
2247    { (exit 1); exit 1; }; };;
2248 esac
2249 target=$ac_cv_target
2250 ac_save_IFS=$IFS; IFS='-'
2251 set x $ac_cv_target
2252 shift
2253 target_cpu=$1
2254 target_vendor=$2
2255 shift; shift
2256 # Remember, the first character of IFS is used to create $*,
2257 # except with old shells:
2258 target_os=$*
2259 IFS=$ac_save_IFS
2260 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2261
2262
2263 # The aliases save the names the user supplied, while $host etc.
2264 # will get canonicalized.
2265 test -n "$target_alias" &&
2266   test "$program_prefix$program_suffix$program_transform_name" = \
2267     NONENONEs,x,x, &&
2268   program_prefix=${target_alias}-
2269
2270 am__api_version="1.9"
2271 # Find a good install program.  We prefer a C program (faster),
2272 # so one script is as good as another.  But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2277 # AIX /bin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # OS/2's system install, which has a completely different semantic
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2286 if test -z "$INSTALL"; then
2287 if test "${ac_cv_path_install+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293   IFS=$as_save_IFS
2294   test -z "$as_dir" && as_dir=.
2295   # Account for people who put trailing slashes in PATH elements.
2296 case $as_dir/ in
2297   ./ | .// | /cC/* | \
2298   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2299   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2300   /usr/ucb/* ) ;;
2301   *)
2302     # OSF1 and SCO ODT 3.0 have their own names for install.
2303     # Don't use installbsd from OSF since it installs stuff as root
2304     # by default.
2305     for ac_prog in ginstall scoinst install; do
2306       for ac_exec_ext in '' $ac_executable_extensions; do
2307         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2308           if test $ac_prog = install &&
2309             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310             # AIX install.  It has an incompatible calling convention.
2311             :
2312           elif test $ac_prog = install &&
2313             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2314             # program-specific install script used by HP pwplus--don't use.
2315             :
2316           else
2317             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2318             break 3
2319           fi
2320         fi
2321       done
2322     done
2323     ;;
2324 esac
2325 done
2326 IFS=$as_save_IFS
2327
2328
2329 fi
2330   if test "${ac_cv_path_install+set}" = set; then
2331     INSTALL=$ac_cv_path_install
2332   else
2333     # As a last resort, use the slow shell script.  Don't cache a
2334     # value for INSTALL within a source directory, because that will
2335     # break other packages using the cache if that directory is
2336     # removed, or if the value is a relative name.
2337     INSTALL=$ac_install_sh
2338   fi
2339 fi
2340 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2341 echo "${ECHO_T}$INSTALL" >&6; }
2342
2343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2344 # It thinks the first close brace ends the variable substitution.
2345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2346
2347 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2348
2349 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2350
2351 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2352 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2353 # Just in case
2354 sleep 1
2355 echo timestamp > conftest.file
2356 # Do `set' in a subshell so we don't clobber the current shell's
2357 # arguments.  Must try -L first in case configure is actually a
2358 # symlink; some systems play weird games with the mod time of symlinks
2359 # (eg FreeBSD returns the mod time of the symlink's containing
2360 # directory).
2361 if (
2362    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2363    if test "$*" = "X"; then
2364       # -L didn't work.
2365       set X `ls -t $srcdir/configure conftest.file`
2366    fi
2367    rm -f conftest.file
2368    if test "$*" != "X $srcdir/configure conftest.file" \
2369       && test "$*" != "X conftest.file $srcdir/configure"; then
2370
2371       # If neither matched, then we have a broken ls.  This can happen
2372       # if, for instance, CONFIG_SHELL is bash and it inherits a
2373       # broken ls alias from the environment.  This has actually
2374       # happened.  Such a system could not be considered "sane".
2375       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2376 alias in your environment" >&5
2377 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2378 alias in your environment" >&2;}
2379    { (exit 1); exit 1; }; }
2380    fi
2381
2382    test "$2" = conftest.file
2383    )
2384 then
2385    # Ok.
2386    :
2387 else
2388    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2389 Check your system clock" >&5
2390 echo "$as_me: error: newly created file is older than distributed files!
2391 Check your system clock" >&2;}
2392    { (exit 1); exit 1; }; }
2393 fi
2394 { echo "$as_me:$LINENO: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6; }
2396 test "$program_prefix" != NONE &&
2397   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2398 # Use a double $ so make ignores it.
2399 test "$program_suffix" != NONE &&
2400   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2401 # Double any \ or $.  echo might interpret backslashes.
2402 # By default was `s,x,x', remove it if useless.
2403 cat <<\_ACEOF >conftest.sed
2404 s/[\\$]/&&/g;s/;s,x,x,$//
2405 _ACEOF
2406 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2407 rm -f conftest.sed
2408
2409 # expand $ac_aux_dir to an absolute path
2410 am_aux_dir=`cd $ac_aux_dir && pwd`
2411
2412 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2413 # Use eval to expand $SHELL
2414 if eval "$MISSING --run true"; then
2415   am_missing_run="$MISSING --run "
2416 else
2417   am_missing_run=
2418   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2419 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2420 fi
2421
2422 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2423   # We used to keeping the `.' as first argument, in order to
2424   # allow $(mkdir_p) to be used without argument.  As in
2425   #   $(mkdir_p) $(somedir)
2426   # where $(somedir) is conditionally defined.  However this is wrong
2427   # for two reasons:
2428   #  1. if the package is installed by a user who cannot write `.'
2429   #     make install will fail,
2430   #  2. the above comment should most certainly read
2431   #     $(mkdir_p) $(DESTDIR)$(somedir)
2432   #     so it does not work when $(somedir) is undefined and
2433   #     $(DESTDIR) is not.
2434   #  To support the latter case, we have to write
2435   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2436   #  so the `.' trick is pointless.
2437   mkdir_p='mkdir -p --'
2438 else
2439   # On NextStep and OpenStep, the `mkdir' command does not
2440   # recognize any option.  It will interpret all options as
2441   # directories to create, and then abort because `.' already
2442   # exists.
2443   for d in ./-p ./--version;
2444   do
2445     test -d $d && rmdir $d
2446   done
2447   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2448   if test -f "$ac_aux_dir/mkinstalldirs"; then
2449     mkdir_p='$(mkinstalldirs)'
2450   else
2451     mkdir_p='$(install_sh) -d'
2452   fi
2453 fi
2454
2455 for ac_prog in gawk mawk nawk awk
2456 do
2457   # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_AWK+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$AWK"; then
2465   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474     ac_cv_prog_AWK="$ac_prog"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480 IFS=$as_save_IFS
2481
2482 fi
2483 fi
2484 AWK=$ac_cv_prog_AWK
2485 if test -n "$AWK"; then
2486   { echo "$as_me:$LINENO: result: $AWK" >&5
2487 echo "${ECHO_T}$AWK" >&6; }
2488 else
2489   { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2491 fi
2492
2493
2494   test -n "$AWK" && break
2495 done
2496
2497 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2498 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2499 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2500 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   cat >conftest.make <<\_ACEOF
2504 SHELL = /bin/sh
2505 all:
2506         @echo '@@@%%%=$(MAKE)=@@@%%%'
2507 _ACEOF
2508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2509 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2510   *@@@%%%=?*=@@@%%%*)
2511     eval ac_cv_prog_make_${ac_make}_set=yes;;
2512   *)
2513     eval ac_cv_prog_make_${ac_make}_set=no;;
2514 esac
2515 rm -f conftest.make
2516 fi
2517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2518   { echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6; }
2520   SET_MAKE=
2521 else
2522   { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524   SET_MAKE="MAKE=${MAKE-make}"
2525 fi
2526
2527 rm -rf .tst 2>/dev/null
2528 mkdir .tst 2>/dev/null
2529 if test -d .tst; then
2530   am__leading_dot=.
2531 else
2532   am__leading_dot=_
2533 fi
2534 rmdir .tst 2>/dev/null
2535
2536 # test to see if srcdir already configured
2537 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2538    test -f $srcdir/config.status; then
2539   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2540 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2541    { (exit 1); exit 1; }; }
2542 fi
2543
2544 # test whether we have cygpath
2545 if test -z "$CYGPATH_W"; then
2546   if (cygpath --version) >/dev/null 2>/dev/null; then
2547     CYGPATH_W='cygpath -w'
2548   else
2549     CYGPATH_W=echo
2550   fi
2551 fi
2552
2553
2554 # Define the identity of the package.
2555  PACKAGE=$OL_PACKAGE
2556  VERSION=$OL_VERSION
2557
2558
2559 # Some tools Automake needs.
2560
2561 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2562
2563
2564 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2565
2566
2567 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2568
2569
2570 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2571
2572
2573 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2574
2575 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2576
2577 # Installed binaries are usually stripped using `strip' when the user
2578 # run `make install-strip'.  However `strip' might not be the right
2579 # tool to use in cross-compilation environments, therefore Automake
2580 # will honor the `STRIP' environment variable to overrule this program.
2581 if test "$cross_compiling" != no; then
2582   if test -n "$ac_tool_prefix"; then
2583   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}strip; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_STRIP+set}" = set; then
2588   echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590   if test -n "$STRIP"; then
2591   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596   IFS=$as_save_IFS
2597   test -z "$as_dir" && as_dir=.
2598   for ac_exec_ext in '' $ac_executable_extensions; do
2599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602     break 2
2603   fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 STRIP=$ac_cv_prog_STRIP
2611 if test -n "$STRIP"; then
2612   { echo "$as_me:$LINENO: result: $STRIP" >&5
2613 echo "${ECHO_T}$STRIP" >&6; }
2614 else
2615   { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2617 fi
2618
2619
2620 fi
2621 if test -z "$ac_cv_prog_STRIP"; then
2622   ac_ct_STRIP=$STRIP
2623   # Extract the first word of "strip", so it can be a program name with args.
2624 set dummy strip; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   if test -n "$ac_ct_STRIP"; then
2631   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638   for ac_exec_ext in '' $ac_executable_extensions; do
2639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640     ac_cv_prog_ac_ct_STRIP="strip"
2641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2651 if test -n "$ac_ct_STRIP"; then
2652   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2653 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2654 else
2655   { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2657 fi
2658
2659   if test "x$ac_ct_STRIP" = x; then
2660     STRIP=":"
2661   else
2662     case $cross_compiling:$ac_tool_warned in
2663 yes:)
2664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet.  If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&5
2667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2668 whose name does not start with the host triplet.  If you think this
2669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2670 ac_tool_warned=yes ;;
2671 esac
2672     STRIP=$ac_ct_STRIP
2673   fi
2674 else
2675   STRIP="$ac_cv_prog_STRIP"
2676 fi
2677
2678 fi
2679 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2680
2681 # We need awk for the "check" target.  The system "awk" is bad on
2682 # some platforms.
2683 # Always define AMTAR for backward compatibility.
2684
2685 AMTAR=${AMTAR-"${am_missing_run}tar"}
2686
2687 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2688
2689
2690
2691
2692
2693 cat >>confdefs.h <<_ACEOF
2694 #define OPENLDAP_PACKAGE "$PACKAGE"
2695 _ACEOF
2696
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define OPENLDAP_VERSION "$VERSION"
2700 _ACEOF
2701
2702
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define LDAP_VENDOR_VERSION $OL_API_INC
2706 _ACEOF
2707
2708
2709 cat >>confdefs.h <<_ACEOF
2710 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2711 _ACEOF
2712
2713
2714 cat >>confdefs.h <<_ACEOF
2715 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2716 _ACEOF
2717
2718
2719 cat >>confdefs.h <<_ACEOF
2720 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2721 _ACEOF
2722
2723
2724 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2725
2726 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2727
2728 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2729
2730
2731
2732
2733
2734
2735
2736 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2737
2738 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2739
2740 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2741
2742
2743 { echo "$as_me:$LINENO: checking configure arguments" >&5
2744 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2745
2746
2747 top_builddir=`pwd`
2748
2749 ldap_subdir="/openldap"
2750
2751
2752 # Check whether --with-subdir was given.
2753 if test "${with_subdir+set}" = set; then
2754   withval=$with_subdir; case "$withval" in
2755         no) ldap_subdir=""
2756                 ;;
2757         yes)
2758                 ;;
2759         /*|\\*)
2760                 ldap_subdir="$withval"
2761                 ;;
2762         *)
2763                 ldap_subdir="/$withval"
2764                 ;;
2765 esac
2766
2767 fi
2768
2769
2770 # OpenLDAP --enable-debug
2771
2772         # Check whether --enable-debug was given.
2773 if test "${enable_debug+set}" = set; then
2774   enableval=$enable_debug;
2775         ol_arg=invalid
2776         for ol_val in no yes traditional ; do
2777                 if test "$enableval" = "$ol_val" ; then
2778                         ol_arg="$ol_val"
2779                 fi
2780         done
2781         if test "$ol_arg" = "invalid" ; then
2782                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2783 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2784    { (exit 1); exit 1; }; }
2785         fi
2786         ol_enable_debug="$ol_arg"
2787
2788 else
2789         ol_enable_debug=yes
2790 fi
2791
2792 # end --enable-debug
2793 # OpenLDAP --enable-dynamic
2794
2795         # Check whether --enable-dynamic was given.
2796 if test "${enable_dynamic+set}" = set; then
2797   enableval=$enable_dynamic;
2798         ol_arg=invalid
2799         for ol_val in auto yes no ; do
2800                 if test "$enableval" = "$ol_val" ; then
2801                         ol_arg="$ol_val"
2802                 fi
2803         done
2804         if test "$ol_arg" = "invalid" ; then
2805                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2806 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2807    { (exit 1); exit 1; }; }
2808         fi
2809         ol_enable_dynamic="$ol_arg"
2810
2811 else
2812         ol_enable_dynamic=no
2813 fi
2814
2815 # end --enable-dynamic
2816 # OpenLDAP --enable-syslog
2817
2818         # Check whether --enable-syslog was given.
2819 if test "${enable_syslog+set}" = set; then
2820   enableval=$enable_syslog;
2821         ol_arg=invalid
2822         for ol_val in auto yes no ; do
2823                 if test "$enableval" = "$ol_val" ; then
2824                         ol_arg="$ol_val"
2825                 fi
2826         done
2827         if test "$ol_arg" = "invalid" ; then
2828                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2829 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2830    { (exit 1); exit 1; }; }
2831         fi
2832         ol_enable_syslog="$ol_arg"
2833
2834 else
2835         ol_enable_syslog=auto
2836 fi
2837
2838 # end --enable-syslog
2839 # OpenLDAP --enable-proctitle
2840
2841         # Check whether --enable-proctitle was given.
2842 if test "${enable_proctitle+set}" = set; then
2843   enableval=$enable_proctitle;
2844         ol_arg=invalid
2845         for ol_val in auto yes no ; do
2846                 if test "$enableval" = "$ol_val" ; then
2847                         ol_arg="$ol_val"
2848                 fi
2849         done
2850         if test "$ol_arg" = "invalid" ; then
2851                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2852 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2853    { (exit 1); exit 1; }; }
2854         fi
2855         ol_enable_proctitle="$ol_arg"
2856
2857 else
2858         ol_enable_proctitle=yes
2859 fi
2860
2861 # end --enable-proctitle
2862 ol_enable_referrals=${ol_enable_referrals-no}
2863 # OpenLDAP --enable-ipv6
2864
2865         # Check whether --enable-ipv6 was given.
2866 if test "${enable_ipv6+set}" = set; then
2867   enableval=$enable_ipv6;
2868         ol_arg=invalid
2869         for ol_val in auto yes no ; do
2870                 if test "$enableval" = "$ol_val" ; then
2871                         ol_arg="$ol_val"
2872                 fi
2873         done
2874         if test "$ol_arg" = "invalid" ; then
2875                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2876 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2877    { (exit 1); exit 1; }; }
2878         fi
2879         ol_enable_ipv6="$ol_arg"
2880
2881 else
2882         ol_enable_ipv6=auto
2883 fi
2884
2885 # end --enable-ipv6
2886 # OpenLDAP --enable-local
2887
2888         # Check whether --enable-local was given.
2889 if test "${enable_local+set}" = set; then
2890   enableval=$enable_local;
2891         ol_arg=invalid
2892         for ol_val in auto yes no ; do
2893                 if test "$enableval" = "$ol_val" ; then
2894                         ol_arg="$ol_val"
2895                 fi
2896         done
2897         if test "$ol_arg" = "invalid" ; then
2898                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2899 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2900    { (exit 1); exit 1; }; }
2901         fi
2902         ol_enable_local="$ol_arg"
2903
2904 else
2905         ol_enable_local=auto
2906 fi
2907
2908 # end --enable-local
2909
2910 # OpenLDAP --with-cyrus_sasl
2911
2912 # Check whether --with-cyrus_sasl was given.
2913 if test "${with_cyrus_sasl+set}" = set; then
2914   withval=$with_cyrus_sasl;
2915         ol_arg=invalid
2916         for ol_val in auto yes no  ; do
2917                 if test "$withval" = "$ol_val" ; then
2918                         ol_arg="$ol_val"
2919                 fi
2920         done
2921         if test "$ol_arg" = "invalid" ; then
2922                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2923 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2924    { (exit 1); exit 1; }; }
2925         fi
2926         ol_with_cyrus_sasl="$ol_arg"
2927
2928 else
2929         ol_with_cyrus_sasl="auto"
2930 fi
2931 # end --with-cyrus_sasl
2932
2933 # OpenLDAP --with-fetch
2934
2935 # Check whether --with-fetch was given.
2936 if test "${with_fetch+set}" = set; then
2937   withval=$with_fetch;
2938         ol_arg=invalid
2939         for ol_val in auto yes no  ; do
2940                 if test "$withval" = "$ol_val" ; then
2941                         ol_arg="$ol_val"
2942                 fi
2943         done
2944         if test "$ol_arg" = "invalid" ; then
2945                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2946 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2947    { (exit 1); exit 1; }; }
2948         fi
2949         ol_with_fetch="$ol_arg"
2950
2951 else
2952         ol_with_fetch="auto"
2953 fi
2954 # end --with-fetch
2955
2956 # OpenLDAP --with-gssapi
2957
2958 # Check whether --with-gssapi was given.
2959 if test "${with_gssapi+set}" = set; then
2960   withval=$with_gssapi;
2961         ol_arg=invalid
2962         for ol_val in auto yes no  ; do
2963                 if test "$withval" = "$ol_val" ; then
2964                         ol_arg="$ol_val"
2965                 fi
2966         done
2967         if test "$ol_arg" = "invalid" ; then
2968                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-gssapi" >&5
2969 echo "$as_me: error: bad value $withval for --with-gssapi" >&2;}
2970    { (exit 1); exit 1; }; }
2971         fi
2972         ol_with_gssapi="$ol_arg"
2973
2974 else
2975         ol_with_gssapi="auto"
2976 fi
2977 # end --with-gssapi
2978
2979 # OpenLDAP --with-threads
2980
2981 # Check whether --with-threads was given.
2982 if test "${with_threads+set}" = set; then
2983   withval=$with_threads;
2984         ol_arg=invalid
2985         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2986                 if test "$withval" = "$ol_val" ; then
2987                         ol_arg="$ol_val"
2988                 fi
2989         done
2990         if test "$ol_arg" = "invalid" ; then
2991                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2992 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2993    { (exit 1); exit 1; }; }
2994         fi
2995         ol_with_threads="$ol_arg"
2996
2997 else
2998         ol_with_threads="auto"
2999 fi
3000 # end --with-threads
3001
3002 # OpenLDAP --with-tls
3003
3004 # Check whether --with-tls was given.
3005 if test "${with_tls+set}" = set; then
3006   withval=$with_tls;
3007         ol_arg=invalid
3008         for ol_val in auto openssl gnutls yes no  ; do
3009                 if test "$withval" = "$ol_val" ; then
3010                         ol_arg="$ol_val"
3011                 fi
3012         done
3013         if test "$ol_arg" = "invalid" ; then
3014                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
3015 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
3016    { (exit 1); exit 1; }; }
3017         fi
3018         ol_with_tls="$ol_arg"
3019
3020 else
3021         ol_with_tls="auto"
3022 fi
3023 # end --with-tls
3024
3025 # OpenLDAP --with-yielding_select
3026
3027 # Check whether --with-yielding_select was given.
3028 if test "${with_yielding_select+set}" = set; then
3029   withval=$with_yielding_select;
3030         ol_arg=invalid
3031         for ol_val in auto yes no manual  ; do
3032                 if test "$withval" = "$ol_val" ; then
3033                         ol_arg="$ol_val"
3034                 fi
3035         done
3036         if test "$ol_arg" = "invalid" ; then
3037                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3038 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3039    { (exit 1); exit 1; }; }
3040         fi
3041         ol_with_yielding_select="$ol_arg"
3042
3043 else
3044         ol_with_yielding_select="auto"
3045 fi
3046 # end --with-yielding_select
3047
3048 # OpenLDAP --with-mp
3049
3050 # Check whether --with-mp was given.
3051 if test "${with_mp+set}" = set; then
3052   withval=$with_mp;
3053         ol_arg=invalid
3054         for ol_val in auto longlong long bignum gmp yes no ; do
3055                 if test "$withval" = "$ol_val" ; then
3056                         ol_arg="$ol_val"
3057                 fi
3058         done
3059         if test "$ol_arg" = "invalid" ; then
3060                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3061 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3062    { (exit 1); exit 1; }; }
3063         fi
3064         ol_with_mp="$ol_arg"
3065
3066 else
3067         ol_with_mp="auto"
3068 fi
3069 # end --with-mp
3070
3071 # OpenLDAP --with-odbc
3072
3073 # Check whether --with-odbc was given.
3074 if test "${with_odbc+set}" = set; then
3075   withval=$with_odbc;
3076         ol_arg=invalid
3077         for ol_val in auto iodbc unixodbc odbc32  ; do
3078                 if test "$withval" = "$ol_val" ; then
3079                         ol_arg="$ol_val"
3080                 fi
3081         done
3082         if test "$ol_arg" = "invalid" ; then
3083                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3084 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3085    { (exit 1); exit 1; }; }
3086         fi
3087         ol_with_odbc="$ol_arg"
3088
3089 else
3090         ol_with_odbc="auto"
3091 fi
3092 # end --with-odbc
3093
3094
3095
3096 # Check whether --enable-xxslapdoptions was given.
3097 if test "${enable_xxslapdoptions+set}" = set; then
3098   enableval=$enable_xxslapdoptions;
3099 fi
3100
3101 # OpenLDAP --enable-slapd
3102
3103         # Check whether --enable-slapd was given.
3104 if test "${enable_slapd+set}" = set; then
3105   enableval=$enable_slapd;
3106         ol_arg=invalid
3107         for ol_val in auto yes no ; do
3108                 if test "$enableval" = "$ol_val" ; then
3109                         ol_arg="$ol_val"
3110                 fi
3111         done
3112         if test "$ol_arg" = "invalid" ; then
3113                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3115    { (exit 1); exit 1; }; }
3116         fi
3117         ol_enable_slapd="$ol_arg"
3118
3119 else
3120         ol_enable_slapd=yes
3121 fi
3122
3123 # end --enable-slapd
3124 # OpenLDAP --enable-dynacl
3125
3126         # Check whether --enable-dynacl was given.
3127 if test "${enable_dynacl+set}" = set; then
3128   enableval=$enable_dynacl;
3129         ol_arg=invalid
3130         for ol_val in auto yes no ; do
3131                 if test "$enableval" = "$ol_val" ; then
3132                         ol_arg="$ol_val"
3133                 fi
3134         done
3135         if test "$ol_arg" = "invalid" ; then
3136                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3138    { (exit 1); exit 1; }; }
3139         fi
3140         ol_enable_dynacl="$ol_arg"
3141
3142 else
3143         ol_enable_dynacl=no
3144 fi
3145
3146 # end --enable-dynacl
3147 # OpenLDAP --enable-aci
3148
3149         # Check whether --enable-aci was given.
3150 if test "${enable_aci+set}" = set; then
3151   enableval=$enable_aci;
3152         ol_arg=invalid
3153         for ol_val in no yes mod ; do
3154                 if test "$enableval" = "$ol_val" ; then
3155                         ol_arg="$ol_val"
3156                 fi
3157         done
3158         if test "$ol_arg" = "invalid" ; then
3159                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3161    { (exit 1); exit 1; }; }
3162         fi
3163         ol_enable_aci="$ol_arg"
3164
3165 else
3166         ol_enable_aci=no
3167 fi
3168
3169 # end --enable-aci
3170 # OpenLDAP --enable-cleartext
3171
3172         # Check whether --enable-cleartext was given.
3173 if test "${enable_cleartext+set}" = set; then
3174   enableval=$enable_cleartext;
3175         ol_arg=invalid
3176         for ol_val in auto yes no ; do
3177                 if test "$enableval" = "$ol_val" ; then
3178                         ol_arg="$ol_val"
3179                 fi
3180         done
3181         if test "$ol_arg" = "invalid" ; then
3182                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3183 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3184    { (exit 1); exit 1; }; }
3185         fi
3186         ol_enable_cleartext="$ol_arg"
3187
3188 else
3189         ol_enable_cleartext=yes
3190 fi
3191
3192 # end --enable-cleartext
3193 # OpenLDAP --enable-crypt
3194
3195         # Check whether --enable-crypt was given.
3196 if test "${enable_crypt+set}" = set; then
3197   enableval=$enable_crypt;
3198         ol_arg=invalid
3199         for ol_val in auto yes no ; do
3200                 if test "$enableval" = "$ol_val" ; then
3201                         ol_arg="$ol_val"
3202                 fi
3203         done
3204         if test "$ol_arg" = "invalid" ; then
3205                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3207    { (exit 1); exit 1; }; }
3208         fi
3209         ol_enable_crypt="$ol_arg"
3210
3211 else
3212         ol_enable_crypt=no
3213 fi
3214
3215 # end --enable-crypt
3216 # OpenLDAP --enable-lmpasswd
3217
3218         # Check whether --enable-lmpasswd was given.
3219 if test "${enable_lmpasswd+set}" = set; then
3220   enableval=$enable_lmpasswd;
3221         ol_arg=invalid
3222         for ol_val in auto yes no ; do
3223                 if test "$enableval" = "$ol_val" ; then
3224                         ol_arg="$ol_val"
3225                 fi
3226         done
3227         if test "$ol_arg" = "invalid" ; then
3228                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3229 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3230    { (exit 1); exit 1; }; }
3231         fi
3232         ol_enable_lmpasswd="$ol_arg"
3233
3234 else
3235         ol_enable_lmpasswd=no
3236 fi
3237
3238 # end --enable-lmpasswd
3239 # OpenLDAP --enable-spasswd
3240
3241         # Check whether --enable-spasswd was given.
3242 if test "${enable_spasswd+set}" = set; then
3243   enableval=$enable_spasswd;
3244         ol_arg=invalid
3245         for ol_val in auto yes no ; do
3246                 if test "$enableval" = "$ol_val" ; then
3247                         ol_arg="$ol_val"
3248                 fi
3249         done
3250         if test "$ol_arg" = "invalid" ; then
3251                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3252 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3253    { (exit 1); exit 1; }; }
3254         fi
3255         ol_enable_spasswd="$ol_arg"
3256
3257 else
3258         ol_enable_spasswd=no
3259 fi
3260
3261 # end --enable-spasswd
3262 # OpenLDAP --enable-modules
3263
3264         # Check whether --enable-modules was given.
3265 if test "${enable_modules+set}" = set; then
3266   enableval=$enable_modules;
3267         ol_arg=invalid
3268         for ol_val in auto yes no ; do
3269                 if test "$enableval" = "$ol_val" ; then
3270                         ol_arg="$ol_val"
3271                 fi
3272         done
3273         if test "$ol_arg" = "invalid" ; then
3274                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3275 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3276    { (exit 1); exit 1; }; }
3277         fi
3278         ol_enable_modules="$ol_arg"
3279
3280 else
3281         ol_enable_modules=no
3282 fi
3283
3284 # end --enable-modules
3285 # OpenLDAP --enable-rewrite
3286
3287         # Check whether --enable-rewrite was given.
3288 if test "${enable_rewrite+set}" = set; then
3289   enableval=$enable_rewrite;
3290         ol_arg=invalid
3291         for ol_val in auto yes no ; do
3292                 if test "$enableval" = "$ol_val" ; then
3293                         ol_arg="$ol_val"
3294                 fi
3295         done
3296         if test "$ol_arg" = "invalid" ; then
3297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3299    { (exit 1); exit 1; }; }
3300         fi
3301         ol_enable_rewrite="$ol_arg"
3302
3303 else
3304         ol_enable_rewrite=auto
3305 fi
3306
3307 # end --enable-rewrite
3308 # OpenLDAP --enable-rlookups
3309
3310         # Check whether --enable-rlookups was given.
3311 if test "${enable_rlookups+set}" = set; then
3312   enableval=$enable_rlookups;
3313         ol_arg=invalid
3314         for ol_val in auto yes no ; do
3315                 if test "$enableval" = "$ol_val" ; then
3316                         ol_arg="$ol_val"
3317                 fi
3318         done
3319         if test "$ol_arg" = "invalid" ; then
3320                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3322    { (exit 1); exit 1; }; }
3323         fi
3324         ol_enable_rlookups="$ol_arg"
3325
3326 else
3327         ol_enable_rlookups=no
3328 fi
3329
3330 # end --enable-rlookups
3331 # OpenLDAP --enable-slapi
3332
3333         # Check whether --enable-slapi was given.
3334 if test "${enable_slapi+set}" = set; then
3335   enableval=$enable_slapi;
3336         ol_arg=invalid
3337         for ol_val in auto yes no ; do
3338                 if test "$enableval" = "$ol_val" ; then
3339                         ol_arg="$ol_val"
3340                 fi
3341         done
3342         if test "$ol_arg" = "invalid" ; then
3343                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3345    { (exit 1); exit 1; }; }
3346         fi
3347         ol_enable_slapi="$ol_arg"
3348
3349 else
3350         ol_enable_slapi=no
3351 fi
3352
3353 # end --enable-slapi
3354 # OpenLDAP --enable-slp
3355
3356         # Check whether --enable-slp was given.
3357 if test "${enable_slp+set}" = set; then
3358   enableval=$enable_slp;
3359         ol_arg=invalid
3360         for ol_val in auto yes no ; do
3361                 if test "$enableval" = "$ol_val" ; then
3362                         ol_arg="$ol_val"
3363                 fi
3364         done
3365         if test "$ol_arg" = "invalid" ; then
3366                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3368    { (exit 1); exit 1; }; }
3369         fi
3370         ol_enable_slp="$ol_arg"
3371
3372 else
3373         ol_enable_slp=no
3374 fi
3375
3376 # end --enable-slp
3377 # OpenLDAP --enable-wrappers
3378
3379         # Check whether --enable-wrappers was given.
3380 if test "${enable_wrappers+set}" = set; then
3381   enableval=$enable_wrappers;
3382         ol_arg=invalid
3383         for ol_val in auto yes no ; do
3384                 if test "$enableval" = "$ol_val" ; then
3385                         ol_arg="$ol_val"
3386                 fi
3387         done
3388         if test "$ol_arg" = "invalid" ; then
3389                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3390 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3391    { (exit 1); exit 1; }; }
3392         fi
3393         ol_enable_wrappers="$ol_arg"
3394
3395 else
3396         ol_enable_wrappers=no
3397 fi
3398
3399 # end --enable-wrappers
3400
3401 Backends="bdb \
3402         dnssrv \
3403         hdb \
3404         ldap \
3405         meta \
3406         monitor \
3407         ndb \
3408         null \
3409         passwd \
3410         perl \
3411         relay \
3412         shell \
3413         sock \
3414         sql"
3415
3416 # Check whether --enable-xxslapbackends was given.
3417 if test "${enable_xxslapbackends+set}" = set; then
3418   enableval=$enable_xxslapbackends;
3419 fi
3420
3421
3422 # OpenLDAP --enable-backends
3423
3424         # Check whether --enable-backends was given.
3425 if test "${enable_backends+set}" = set; then
3426   enableval=$enable_backends;
3427         ol_arg=invalid
3428         for ol_val in no yes mod ; do
3429                 if test "$enableval" = "$ol_val" ; then
3430                         ol_arg="$ol_val"
3431                 fi
3432         done
3433         if test "$ol_arg" = "invalid" ; then
3434                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3435 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3436    { (exit 1); exit 1; }; }
3437         fi
3438         ol_enable_backends="$ol_arg"
3439
3440 fi
3441
3442 # end --enable-backends
3443 # OpenLDAP --enable-bdb
3444
3445         # Check whether --enable-bdb was given.
3446 if test "${enable_bdb+set}" = set; then
3447   enableval=$enable_bdb;
3448         ol_arg=invalid
3449         for ol_val in no yes mod ; do
3450                 if test "$enableval" = "$ol_val" ; then
3451                         ol_arg="$ol_val"
3452                 fi
3453         done
3454         if test "$ol_arg" = "invalid" ; then
3455                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3456 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3457    { (exit 1); exit 1; }; }
3458         fi
3459         ol_enable_bdb="$ol_arg"
3460
3461 else
3462         ol_enable_bdb=${ol_enable_backends:-no}
3463 fi
3464
3465 # end --enable-bdb
3466 # OpenLDAP --enable-dnssrv
3467
3468         # Check whether --enable-dnssrv was given.
3469 if test "${enable_dnssrv+set}" = set; then
3470   enableval=$enable_dnssrv;
3471         ol_arg=invalid
3472         for ol_val in no yes mod ; do
3473                 if test "$enableval" = "$ol_val" ; then
3474                         ol_arg="$ol_val"
3475                 fi
3476         done
3477         if test "$ol_arg" = "invalid" ; then
3478                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3479 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3480    { (exit 1); exit 1; }; }
3481         fi
3482         ol_enable_dnssrv="$ol_arg"
3483
3484 else
3485         ol_enable_dnssrv=${ol_enable_backends:-no}
3486 fi
3487
3488 # end --enable-dnssrv
3489 # OpenLDAP --enable-hdb
3490
3491         # Check whether --enable-hdb was given.
3492 if test "${enable_hdb+set}" = set; then
3493   enableval=$enable_hdb;
3494         ol_arg=invalid
3495         for ol_val in no yes mod ; do
3496                 if test "$enableval" = "$ol_val" ; then
3497                         ol_arg="$ol_val"
3498                 fi
3499         done
3500         if test "$ol_arg" = "invalid" ; then
3501                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3502 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3503    { (exit 1); exit 1; }; }
3504         fi
3505         ol_enable_hdb="$ol_arg"
3506
3507 else
3508         ol_enable_hdb=${ol_enable_backends:-yes}
3509 fi
3510
3511 # end --enable-hdb
3512 # OpenLDAP --enable-ldap
3513
3514         # Check whether --enable-ldap was given.
3515 if test "${enable_ldap+set}" = set; then
3516   enableval=$enable_ldap;
3517         ol_arg=invalid
3518         for ol_val in no yes mod ; do
3519                 if test "$enableval" = "$ol_val" ; then
3520                         ol_arg="$ol_val"
3521                 fi
3522         done
3523         if test "$ol_arg" = "invalid" ; then
3524                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3525 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3526    { (exit 1); exit 1; }; }
3527         fi
3528         ol_enable_ldap="$ol_arg"
3529
3530 else
3531         ol_enable_ldap=${ol_enable_backends:-no}
3532 fi
3533
3534 # end --enable-ldap
3535 # OpenLDAP --enable-meta
3536
3537         # Check whether --enable-meta was given.
3538 if test "${enable_meta+set}" = set; then
3539   enableval=$enable_meta;
3540         ol_arg=invalid
3541         for ol_val in no yes mod ; do
3542                 if test "$enableval" = "$ol_val" ; then
3543                         ol_arg="$ol_val"
3544                 fi
3545         done
3546         if test "$ol_arg" = "invalid" ; then
3547                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3549    { (exit 1); exit 1; }; }
3550         fi
3551         ol_enable_meta="$ol_arg"
3552
3553 else
3554         ol_enable_meta=${ol_enable_backends:-no}
3555 fi
3556
3557 # end --enable-meta
3558 # OpenLDAP --enable-monitor
3559
3560         # Check whether --enable-monitor was given.
3561 if test "${enable_monitor+set}" = set; then
3562   enableval=$enable_monitor;
3563         ol_arg=invalid
3564         for ol_val in no yes mod ; do
3565                 if test "$enableval" = "$ol_val" ; then
3566                         ol_arg="$ol_val"
3567                 fi
3568         done
3569         if test "$ol_arg" = "invalid" ; then
3570                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3571 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3572    { (exit 1); exit 1; }; }
3573         fi
3574         ol_enable_monitor="$ol_arg"
3575
3576 else
3577         ol_enable_monitor=${ol_enable_backends:-yes}
3578 fi
3579
3580 # end --enable-monitor
3581 # OpenLDAP --enable-ndb
3582
3583         # Check whether --enable-ndb was given.
3584 if test "${enable_ndb+set}" = set; then
3585   enableval=$enable_ndb;
3586         ol_arg=invalid
3587         for ol_val in no yes mod ; do
3588                 if test "$enableval" = "$ol_val" ; then
3589                         ol_arg="$ol_val"
3590                 fi
3591         done
3592         if test "$ol_arg" = "invalid" ; then
3593                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3594 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3595    { (exit 1); exit 1; }; }
3596         fi
3597         ol_enable_ndb="$ol_arg"
3598
3599 else
3600         ol_enable_ndb=${ol_enable_backends:-no}
3601 fi
3602
3603 # end --enable-ndb
3604 # OpenLDAP --enable-null
3605
3606         # Check whether --enable-null was given.
3607 if test "${enable_null+set}" = set; then
3608   enableval=$enable_null;
3609         ol_arg=invalid
3610         for ol_val in no yes mod ; do
3611                 if test "$enableval" = "$ol_val" ; then
3612                         ol_arg="$ol_val"
3613                 fi
3614         done
3615         if test "$ol_arg" = "invalid" ; then
3616                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3617 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3618    { (exit 1); exit 1; }; }
3619         fi
3620         ol_enable_null="$ol_arg"
3621
3622 else
3623         ol_enable_null=${ol_enable_backends:-no}
3624 fi
3625
3626 # end --enable-null
3627 # OpenLDAP --enable-passwd
3628
3629         # Check whether --enable-passwd was given.
3630 if test "${enable_passwd+set}" = set; then
3631   enableval=$enable_passwd;
3632         ol_arg=invalid
3633         for ol_val in no yes mod ; do
3634                 if test "$enableval" = "$ol_val" ; then
3635                         ol_arg="$ol_val"
3636                 fi
3637         done
3638         if test "$ol_arg" = "invalid" ; then
3639                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3640 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3641    { (exit 1); exit 1; }; }
3642         fi
3643         ol_enable_passwd="$ol_arg"
3644
3645 else
3646         ol_enable_passwd=${ol_enable_backends:-no}
3647 fi
3648
3649 # end --enable-passwd
3650 # OpenLDAP --enable-perl
3651
3652         # Check whether --enable-perl was given.
3653 if test "${enable_perl+set}" = set; then
3654   enableval=$enable_perl;
3655         ol_arg=invalid
3656         for ol_val in no yes mod ; do
3657                 if test "$enableval" = "$ol_val" ; then
3658                         ol_arg="$ol_val"
3659                 fi
3660         done
3661         if test "$ol_arg" = "invalid" ; then
3662                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3663 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3664    { (exit 1); exit 1; }; }
3665         fi
3666         ol_enable_perl="$ol_arg"
3667
3668 else
3669         ol_enable_perl=${ol_enable_backends:-no}
3670 fi
3671
3672 # end --enable-perl
3673 # OpenLDAP --enable-relay
3674
3675         # Check whether --enable-relay was given.
3676 if test "${enable_relay+set}" = set; then
3677   enableval=$enable_relay;
3678         ol_arg=invalid
3679         for ol_val in no yes mod ; do
3680                 if test "$enableval" = "$ol_val" ; then
3681                         ol_arg="$ol_val"
3682                 fi
3683         done
3684         if test "$ol_arg" = "invalid" ; then
3685                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3686 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3687    { (exit 1); exit 1; }; }
3688         fi
3689         ol_enable_relay="$ol_arg"
3690
3691 else
3692         ol_enable_relay=${ol_enable_backends:-yes}
3693 fi
3694
3695 # end --enable-relay
3696 # OpenLDAP --enable-shell
3697
3698         # Check whether --enable-shell was given.
3699 if test "${enable_shell+set}" = set; then
3700   enableval=$enable_shell;
3701         ol_arg=invalid
3702         for ol_val in no yes mod ; do
3703                 if test "$enableval" = "$ol_val" ; then
3704                         ol_arg="$ol_val"
3705                 fi
3706         done
3707         if test "$ol_arg" = "invalid" ; then
3708                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3709 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3710    { (exit 1); exit 1; }; }
3711         fi
3712         ol_enable_shell="$ol_arg"
3713
3714 else
3715         ol_enable_shell=${ol_enable_backends:-no}
3716 fi
3717
3718 # end --enable-shell
3719 # OpenLDAP --enable-sock
3720
3721         # Check whether --enable-sock was given.
3722 if test "${enable_sock+set}" = set; then
3723   enableval=$enable_sock;
3724         ol_arg=invalid
3725         for ol_val in no yes mod ; do
3726                 if test "$enableval" = "$ol_val" ; then
3727                         ol_arg="$ol_val"
3728                 fi
3729         done
3730         if test "$ol_arg" = "invalid" ; then
3731                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3732 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3733    { (exit 1); exit 1; }; }
3734         fi
3735         ol_enable_sock="$ol_arg"
3736
3737 else
3738         ol_enable_sock=${ol_enable_backends:-no}
3739 fi
3740
3741 # end --enable-sock
3742 # OpenLDAP --enable-sql
3743
3744         # Check whether --enable-sql was given.
3745 if test "${enable_sql+set}" = set; then
3746   enableval=$enable_sql;
3747         ol_arg=invalid
3748         for ol_val in no yes mod ; do
3749                 if test "$enableval" = "$ol_val" ; then
3750                         ol_arg="$ol_val"
3751                 fi
3752         done
3753         if test "$ol_arg" = "invalid" ; then
3754                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3755 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3756    { (exit 1); exit 1; }; }
3757         fi
3758         ol_enable_sql="$ol_arg"
3759
3760 else
3761         ol_enable_sql=${ol_enable_backends:-no}
3762 fi
3763
3764 # end --enable-sql
3765
3766 Overlays="accesslog \
3767         auditlog \
3768         collect \
3769         constraint \
3770         dds \
3771         deref \
3772         dyngroup \
3773         dynlist \
3774         memberof \
3775         ppolicy \
3776         proxycache \
3777         refint \
3778         retcode \
3779         rwm \
3780         seqmod \
3781         syncprov \
3782         translucent \
3783         unique \
3784         valsort"
3785
3786 # Check whether --enable-xxslapoverlays was given.
3787 if test "${enable_xxslapoverlays+set}" = set; then
3788   enableval=$enable_xxslapoverlays;
3789 fi
3790
3791
3792 # OpenLDAP --enable-overlays
3793
3794         # Check whether --enable-overlays was given.
3795 if test "${enable_overlays+set}" = set; then
3796   enableval=$enable_overlays;
3797         ol_arg=invalid
3798         for ol_val in no yes mod ; do
3799                 if test "$enableval" = "$ol_val" ; then
3800                         ol_arg="$ol_val"
3801                 fi
3802         done
3803         if test "$ol_arg" = "invalid" ; then
3804                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3805 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3806    { (exit 1); exit 1; }; }
3807         fi
3808         ol_enable_overlays="$ol_arg"
3809
3810 fi
3811
3812 # end --enable-overlays
3813 # OpenLDAP --enable-accesslog
3814
3815         # Check whether --enable-accesslog was given.
3816 if test "${enable_accesslog+set}" = set; then
3817   enableval=$enable_accesslog;
3818         ol_arg=invalid
3819         for ol_val in no yes mod ; do
3820                 if test "$enableval" = "$ol_val" ; then
3821                         ol_arg="$ol_val"
3822                 fi
3823         done
3824         if test "$ol_arg" = "invalid" ; then
3825                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3826 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3827    { (exit 1); exit 1; }; }
3828         fi
3829         ol_enable_accesslog="$ol_arg"
3830
3831 else
3832         ol_enable_accesslog=${ol_enable_overlays:-no}
3833 fi
3834
3835 # end --enable-accesslog
3836
3837 # OpenLDAP --enable-auditlog
3838
3839         # Check whether --enable-auditlog was given.
3840 if test "${enable_auditlog+set}" = set; then
3841   enableval=$enable_auditlog;
3842         ol_arg=invalid
3843         for ol_val in no yes mod ; do
3844                 if test "$enableval" = "$ol_val" ; then
3845                         ol_arg="$ol_val"
3846                 fi
3847         done
3848         if test "$ol_arg" = "invalid" ; then
3849                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3850 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3851    { (exit 1); exit 1; }; }
3852         fi
3853         ol_enable_auditlog="$ol_arg"
3854
3855 else
3856         ol_enable_auditlog=${ol_enable_overlays:-no}
3857 fi
3858
3859 # end --enable-auditlog
3860
3861 # OpenLDAP --enable-collect
3862
3863         # Check whether --enable-collect was given.
3864 if test "${enable_collect+set}" = set; then
3865   enableval=$enable_collect;
3866         ol_arg=invalid
3867         for ol_val in no yes mod ; do
3868                 if test "$enableval" = "$ol_val" ; then
3869                         ol_arg="$ol_val"
3870                 fi
3871         done
3872         if test "$ol_arg" = "invalid" ; then
3873                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3874 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3875    { (exit 1); exit 1; }; }
3876         fi
3877         ol_enable_collect="$ol_arg"
3878
3879 else
3880         ol_enable_collect=${ol_enable_overlays:-no}
3881 fi
3882
3883 # end --enable-collect
3884
3885 # OpenLDAP --enable-constraint
3886
3887         # Check whether --enable-constraint was given.
3888 if test "${enable_constraint+set}" = set; then
3889   enableval=$enable_constraint;
3890         ol_arg=invalid
3891         for ol_val in no yes mod ; do
3892                 if test "$enableval" = "$ol_val" ; then
3893                         ol_arg="$ol_val"
3894                 fi
3895         done
3896         if test "$ol_arg" = "invalid" ; then
3897                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3898 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3899    { (exit 1); exit 1; }; }
3900         fi
3901         ol_enable_constraint="$ol_arg"
3902
3903 else
3904         ol_enable_constraint=${ol_enable_overlays:-no}
3905 fi
3906
3907 # end --enable-constraint
3908
3909 # OpenLDAP --enable-dds
3910
3911         # Check whether --enable-dds was given.
3912 if test "${enable_dds+set}" = set; then
3913   enableval=$enable_dds;
3914         ol_arg=invalid
3915         for ol_val in no yes mod ; do
3916                 if test "$enableval" = "$ol_val" ; then
3917                         ol_arg="$ol_val"
3918                 fi
3919         done
3920         if test "$ol_arg" = "invalid" ; then
3921                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3922 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3923    { (exit 1); exit 1; }; }
3924         fi
3925         ol_enable_dds="$ol_arg"
3926
3927 else
3928         ol_enable_dds=${ol_enable_overlays:-no}
3929 fi
3930
3931 # end --enable-dds
3932
3933 # OpenLDAP --enable-deref
3934
3935         # Check whether --enable-deref was given.
3936 if test "${enable_deref+set}" = set; then
3937   enableval=$enable_deref;
3938         ol_arg=invalid
3939         for ol_val in no yes mod ; do
3940                 if test "$enableval" = "$ol_val" ; then
3941                         ol_arg="$ol_val"
3942                 fi
3943         done
3944         if test "$ol_arg" = "invalid" ; then
3945                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3946 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3947    { (exit 1); exit 1; }; }
3948         fi
3949         ol_enable_deref="$ol_arg"
3950
3951 else
3952         ol_enable_deref=${ol_enable_overlays:-no}
3953 fi
3954
3955 # end --enable-deref
3956
3957 # OpenLDAP --enable-dyngroup
3958
3959         # Check whether --enable-dyngroup was given.
3960 if test "${enable_dyngroup+set}" = set; then
3961   enableval=$enable_dyngroup;
3962         ol_arg=invalid
3963         for ol_val in no yes mod ; do
3964                 if test "$enableval" = "$ol_val" ; then
3965                         ol_arg="$ol_val"
3966                 fi
3967         done
3968         if test "$ol_arg" = "invalid" ; then
3969                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3970 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3971    { (exit 1); exit 1; }; }
3972         fi
3973         ol_enable_dyngroup="$ol_arg"
3974
3975 else
3976         ol_enable_dyngroup=${ol_enable_overlays:-no}
3977 fi
3978
3979 # end --enable-dyngroup
3980
3981 # OpenLDAP --enable-dynlist
3982
3983         # Check whether --enable-dynlist was given.
3984 if test "${enable_dynlist+set}" = set; then
3985   enableval=$enable_dynlist;
3986         ol_arg=invalid
3987         for ol_val in no yes mod ; do
3988                 if test "$enableval" = "$ol_val" ; then
3989                         ol_arg="$ol_val"
3990                 fi
3991         done
3992         if test "$ol_arg" = "invalid" ; then
3993                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3994 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3995    { (exit 1); exit 1; }; }
3996         fi
3997         ol_enable_dynlist="$ol_arg"
3998
3999 else
4000         ol_enable_dynlist=${ol_enable_overlays:-no}
4001 fi
4002
4003 # end --enable-dynlist
4004
4005 # OpenLDAP --enable-memberof
4006
4007         # Check whether --enable-memberof was given.
4008 if test "${enable_memberof+set}" = set; then
4009   enableval=$enable_memberof;
4010         ol_arg=invalid
4011         for ol_val in no yes mod ; do
4012                 if test "$enableval" = "$ol_val" ; then
4013                         ol_arg="$ol_val"
4014                 fi
4015         done
4016         if test "$ol_arg" = "invalid" ; then
4017                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
4018 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
4019    { (exit 1); exit 1; }; }
4020         fi
4021         ol_enable_memberof="$ol_arg"
4022
4023 else
4024         ol_enable_memberof=${ol_enable_overlays:-no}
4025 fi
4026
4027 # end --enable-memberof
4028
4029 # OpenLDAP --enable-ppolicy
4030
4031         # Check whether --enable-ppolicy was given.
4032 if test "${enable_ppolicy+set}" = set; then
4033   enableval=$enable_ppolicy;
4034         ol_arg=invalid
4035         for ol_val in no yes mod ; do
4036                 if test "$enableval" = "$ol_val" ; then
4037                         ol_arg="$ol_val"
4038                 fi
4039         done
4040         if test "$ol_arg" = "invalid" ; then
4041                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4042 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4043    { (exit 1); exit 1; }; }
4044         fi
4045         ol_enable_ppolicy="$ol_arg"
4046
4047 else
4048         ol_enable_ppolicy=${ol_enable_overlays:-no}
4049 fi
4050
4051 # end --enable-ppolicy
4052
4053 # OpenLDAP --enable-proxycache
4054
4055         # Check whether --enable-proxycache was given.
4056 if test "${enable_proxycache+set}" = set; then
4057   enableval=$enable_proxycache;
4058         ol_arg=invalid
4059         for ol_val in no yes mod ; do
4060                 if test "$enableval" = "$ol_val" ; then
4061                         ol_arg="$ol_val"
4062                 fi
4063         done
4064         if test "$ol_arg" = "invalid" ; then
4065                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4066 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4067    { (exit 1); exit 1; }; }
4068         fi
4069         ol_enable_proxycache="$ol_arg"
4070
4071 else
4072         ol_enable_proxycache=${ol_enable_overlays:-no}
4073 fi
4074
4075 # end --enable-proxycache
4076
4077 # OpenLDAP --enable-refint
4078
4079         # Check whether --enable-refint was given.
4080 if test "${enable_refint+set}" = set; then
4081   enableval=$enable_refint;
4082         ol_arg=invalid
4083         for ol_val in no yes mod ; do
4084                 if test "$enableval" = "$ol_val" ; then
4085                         ol_arg="$ol_val"
4086                 fi
4087         done
4088         if test "$ol_arg" = "invalid" ; then
4089                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4090 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4091    { (exit 1); exit 1; }; }
4092         fi
4093         ol_enable_refint="$ol_arg"
4094
4095 else
4096         ol_enable_refint=${ol_enable_overlays:-no}
4097 fi
4098
4099 # end --enable-refint
4100
4101 # OpenLDAP --enable-retcode
4102
4103         # Check whether --enable-retcode was given.
4104 if test "${enable_retcode+set}" = set; then
4105   enableval=$enable_retcode;
4106         ol_arg=invalid
4107         for ol_val in no yes mod ; do
4108                 if test "$enableval" = "$ol_val" ; then
4109                         ol_arg="$ol_val"
4110                 fi
4111         done
4112         if test "$ol_arg" = "invalid" ; then
4113                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4114 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4115    { (exit 1); exit 1; }; }
4116         fi
4117         ol_enable_retcode="$ol_arg"
4118
4119 else
4120         ol_enable_retcode=${ol_enable_overlays:-no}
4121 fi
4122
4123 # end --enable-retcode
4124
4125 # OpenLDAP --enable-rwm
4126
4127         # Check whether --enable-rwm was given.
4128 if test "${enable_rwm+set}" = set; then
4129   enableval=$enable_rwm;
4130         ol_arg=invalid
4131         for ol_val in no yes mod ; do
4132                 if test "$enableval" = "$ol_val" ; then
4133                         ol_arg="$ol_val"
4134                 fi
4135         done
4136         if test "$ol_arg" = "invalid" ; then
4137                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4138 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4139    { (exit 1); exit 1; }; }
4140         fi
4141         ol_enable_rwm="$ol_arg"
4142
4143 else
4144         ol_enable_rwm=${ol_enable_overlays:-no}
4145 fi
4146
4147 # end --enable-rwm
4148
4149 # OpenLDAP --enable-seqmod
4150
4151         # Check whether --enable-seqmod was given.
4152 if test "${enable_seqmod+set}" = set; then
4153   enableval=$enable_seqmod;
4154         ol_arg=invalid
4155         for ol_val in no yes mod ; do
4156                 if test "$enableval" = "$ol_val" ; then
4157                         ol_arg="$ol_val"
4158                 fi
4159         done
4160         if test "$ol_arg" = "invalid" ; then
4161                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4162 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4163    { (exit 1); exit 1; }; }
4164         fi
4165         ol_enable_seqmod="$ol_arg"
4166
4167 else
4168         ol_enable_seqmod=${ol_enable_overlays:-yes}
4169 fi
4170
4171 # end --enable-seqmod
4172
4173 # OpenLDAP --enable-syncprov
4174
4175         # Check whether --enable-syncprov was given.
4176 if test "${enable_syncprov+set}" = set; then
4177   enableval=$enable_syncprov;
4178         ol_arg=invalid
4179         for ol_val in no yes mod ; do
4180                 if test "$enableval" = "$ol_val" ; then
4181                         ol_arg="$ol_val"
4182                 fi
4183         done
4184         if test "$ol_arg" = "invalid" ; then
4185                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4186 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4187    { (exit 1); exit 1; }; }
4188         fi
4189         ol_enable_syncprov="$ol_arg"
4190
4191 else
4192         ol_enable_syncprov=${ol_enable_overlays:-yes}
4193 fi
4194
4195 # end --enable-syncprov
4196
4197 # OpenLDAP --enable-translucent
4198
4199         # Check whether --enable-translucent was given.
4200 if test "${enable_translucent+set}" = set; then
4201   enableval=$enable_translucent;
4202         ol_arg=invalid
4203         for ol_val in no yes mod ; do
4204                 if test "$enableval" = "$ol_val" ; then
4205                         ol_arg="$ol_val"
4206                 fi
4207         done
4208         if test "$ol_arg" = "invalid" ; then
4209                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4210 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4211    { (exit 1); exit 1; }; }
4212         fi
4213         ol_enable_translucent="$ol_arg"
4214
4215 else
4216         ol_enable_translucent=${ol_enable_overlays:-no}
4217 fi
4218
4219 # end --enable-translucent
4220
4221 # OpenLDAP --enable-unique
4222
4223         # Check whether --enable-unique was given.
4224 if test "${enable_unique+set}" = set; then
4225   enableval=$enable_unique;
4226         ol_arg=invalid
4227         for ol_val in no yes mod ; do
4228                 if test "$enableval" = "$ol_val" ; then
4229                         ol_arg="$ol_val"
4230                 fi
4231         done
4232         if test "$ol_arg" = "invalid" ; then
4233                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4234 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4235    { (exit 1); exit 1; }; }
4236         fi
4237         ol_enable_unique="$ol_arg"
4238
4239 else
4240         ol_enable_unique=${ol_enable_overlays:-no}
4241 fi
4242
4243 # end --enable-unique
4244
4245 # OpenLDAP --enable-valsort
4246
4247         # Check whether --enable-valsort was given.
4248 if test "${enable_valsort+set}" = set; then
4249   enableval=$enable_valsort;
4250         ol_arg=invalid
4251         for ol_val in no yes mod ; do
4252                 if test "$enableval" = "$ol_val" ; then
4253                         ol_arg="$ol_val"
4254                 fi
4255         done
4256         if test "$ol_arg" = "invalid" ; then
4257                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4258 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4259    { (exit 1); exit 1; }; }
4260         fi
4261         ol_enable_valsort="$ol_arg"
4262
4263 else
4264         ol_enable_valsort=${ol_enable_overlays:-no}
4265 fi
4266
4267 # end --enable-valsort
4268
4269
4270 # Check whether --enable-xxliboptions was given.
4271 if test "${enable_xxliboptions+set}" = set; then
4272   enableval=$enable_xxliboptions;
4273 fi
4274
4275 # Check whether --enable-static was given.
4276 if test "${enable_static+set}" = set; then
4277   enableval=$enable_static; p=${PACKAGE-default}
4278     case $enableval in
4279     yes) enable_static=yes ;;
4280     no) enable_static=no ;;
4281     *)
4282      enable_static=no
4283       # Look at the argument we got.  We use all the common list separators.
4284       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4285       for pkg in $enableval; do
4286         IFS="$lt_save_ifs"
4287         if test "X$pkg" = "X$p"; then
4288           enable_static=yes
4289         fi
4290       done
4291       IFS="$lt_save_ifs"
4292       ;;
4293     esac
4294 else
4295   enable_static=yes
4296 fi
4297
4298
4299 # Check whether --enable-shared was given.
4300 if test "${enable_shared+set}" = set; then
4301   enableval=$enable_shared; p=${PACKAGE-default}
4302     case $enableval in
4303     yes) enable_shared=yes ;;
4304     no) enable_shared=no ;;
4305     *)
4306       enable_shared=no
4307       # Look at the argument we got.  We use all the common list separators.
4308       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4309       for pkg in $enableval; do
4310         IFS="$lt_save_ifs"
4311         if test "X$pkg" = "X$p"; then
4312           enable_shared=yes
4313         fi
4314       done
4315       IFS="$lt_save_ifs"
4316       ;;
4317     esac
4318 else
4319   enable_shared=yes
4320 fi
4321
4322
4323
4324
4325 # validate options
4326 if test $ol_enable_slapd = no ; then
4327                 if test $ol_enable_slapi = yes ; then
4328                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4329 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4330         fi
4331         case "$ol_enable_backends" in yes | mod)
4332                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4333 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4334         esac
4335         for i in $Backends; do
4336                 eval "ol_tmp=\$ol_enable_$i"
4337                 if test $ol_tmp != no ; then
4338                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4339 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4340                         eval "ol_enable_$i=no"
4341                 fi
4342         done
4343         if test $ol_enable_modules = yes ; then
4344                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4345 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4346         fi
4347         if test $ol_enable_wrappers = yes ; then
4348                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4349 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4350         fi
4351         if test $ol_enable_rlookups = yes ; then
4352                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4353 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4354         fi
4355         if test $ol_enable_dynacl = yes ; then
4356                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4357 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4358         fi
4359         if test $ol_enable_aci != no ; then
4360                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4361 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4362         fi
4363         if test $ol_enable_rewrite = yes ; then
4364                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4365 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4366         fi
4367                 case "$ol_enable_overlays" in yes | mod)
4368                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4369 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4370         esac
4371         for i in $Overlays; do
4372                 eval "ol_tmp=\$ol_enable_$i"
4373                 if test $ol_tmp != no ; then
4374                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4375 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4376                         eval "ol_enable_$i=no"
4377                 fi
4378         done
4379
4380         # force settings to no
4381         ol_enable_slapi=no
4382
4383         ol_enable_backends=
4384         ol_enable_overlays=
4385         ol_enable_modules=no
4386         ol_enable_rlookups=no
4387         ol_enable_dynacl=no
4388         ol_enable_aci=no
4389         ol_enable_wrappers=no
4390
4391         ol_enable_rewrite=no
4392
4393 elif test $ol_enable_modules != yes &&
4394         test $ol_enable_bdb = no &&
4395         test $ol_enable_dnssrv = no &&
4396         test $ol_enable_hdb = no &&
4397         test $ol_enable_ldap = no &&
4398         test $ol_enable_meta = no &&
4399         test $ol_enable_monitor = no &&
4400         test $ol_enable_ndb = no &&
4401         test $ol_enable_null = no &&
4402         test $ol_enable_passwd = no &&
4403         test $ol_enable_perl = no &&
4404         test $ol_enable_relay = no &&
4405         test $ol_enable_shell = no &&
4406         test $ol_enable_sock = no &&
4407         test $ol_enable_sql = no ; then
4408
4409         if test $ol_enable_slapd = yes ; then
4410                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4411 echo "$as_me: error: slapd requires a backend" >&2;}
4412    { (exit 1); exit 1; }; }
4413         else
4414                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4415 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4416                 ol_enable_slapd=no
4417         fi
4418 fi
4419
4420 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4421         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4422 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4423    { (exit 1); exit 1; }; }
4424 fi
4425
4426 if test $ol_enable_lmpasswd = yes ; then
4427         if test $ol_with_tls = no ; then
4428                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4429 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4430    { (exit 1); exit 1; }; }
4431         fi
4432 fi
4433
4434 if test $ol_enable_spasswd = yes ; then
4435         if test $ol_with_cyrus_sasl = no ; then
4436                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4437 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4438    { (exit 1); exit 1; }; }
4439         fi
4440         ol_with_cyrus_sasl=yes
4441 fi
4442
4443 { echo "$as_me:$LINENO: result: done" >&5
4444 echo "${ECHO_T}done" >&6; }
4445
4446 LDAP_LIBS=
4447 BDB_LIBS=
4448 SLAPD_NDB_LIBS=
4449 SLAPD_NDB_INCS=
4450 LTHREAD_LIBS=
4451 LUTIL_LIBS=
4452
4453 SLAPD_LIBS=
4454
4455 BUILD_SLAPD=no
4456
4457 BUILD_THREAD=no
4458
4459 BUILD_SLAPI=no
4460 SLAPD_SLAPI_DEPEND=
4461
4462 BUILD_BDB=no
4463 BUILD_DNSSRV=no
4464 BUILD_HDB=no
4465 BUILD_LDAP=no
4466 BUILD_META=no
4467 BUILD_MONITOR=no
4468 BUILD_NDB=no
4469 BUILD_NULL=no
4470 BUILD_PASSWD=no
4471 BUILD_PERL=no
4472 BUILD_RELAY=no
4473 BUILD_SHELL=no
4474 BUILD_SOCK=no
4475 BUILD_SQL=no
4476
4477 BUILD_ACCESSLOG=no
4478 BUILD_AUDITLOG=no
4479 BUILD_CONSTRAINT=no
4480 BUILD_DDS=no
4481 BUILD_DENYOP=no
4482 BUILD_DYNGROUP=no
4483 BUILD_DYNLIST=no
4484 BUILD_LASTMOD=no
4485 BUILD_MEMBEROF=no
4486 BUILD_PPOLICY=no
4487 BUILD_PROXYCACHE=no
4488 BUILD_REFINT=no
4489 BUILD_RETCODE=no
4490 BUILD_RWM=no
4491 BUILD_SEQMOD=no
4492 BUILD_SYNCPROV=no
4493 BUILD_TRANSLUCENT=no
4494 BUILD_UNIQUE=no
4495 BUILD_VALSORT=no
4496
4497 SLAPD_STATIC_OVERLAYS=
4498 SLAPD_DYNAMIC_OVERLAYS=
4499
4500 SLAPD_MODULES_LDFLAGS=
4501 SLAPD_MODULES_CPPFLAGS=
4502
4503 SLAPD_STATIC_BACKENDS=back-ldif
4504 SLAPD_DYNAMIC_BACKENDS=
4505
4506 SLAPD_PERL_LDFLAGS=
4507 MOD_PERL_LDFLAGS=
4508 PERL_CPPFLAGS=
4509
4510 SLAPD_SQL_LDFLAGS=
4511 SLAPD_SQL_LIBS=
4512 SLAPD_SQL_INCLUDES=
4513
4514 KRB4_LIBS=
4515 KRB5_LIBS=
4516 SASL_LIBS=
4517 GSSAPI_LIBS=
4518 TLS_LIBS=
4519 MODULES_LIBS=
4520 SLAPI_LIBS=
4521 LIBSLAPI=
4522 LIBSLAPITOOLS=
4523 AUTH_LIBS=
4524 ICU_LIBS=
4525
4526 SLAPD_SLP_LIBS=
4527 SLAPD_GMP_LIBS=
4528
4529
4530
4531 cat >>confdefs.h <<\_ACEOF
4532 #define HAVE_MKVERSION 1
4533 _ACEOF
4534
4535
4536
4537
4538 ol_aix_threads=no
4539 case "$target" in
4540 *-*-aix*)       if test -z "$CC" ; then
4541                 case "$ol_with_threads" in
4542                 auto | yes |  posix) ol_aix_threads=yes ;;
4543                 esac
4544         fi
4545 ;;
4546 esac
4547
4548 if test $ol_aix_threads = yes ; then
4549         if test -z "${CC}" ; then
4550                 for ac_prog in cc_r xlc_r cc
4551 do
4552   # Extract the first word of "$ac_prog", so it can be a program name with args.
4553 set dummy $ac_prog; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_prog_CC+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   if test -n "$CC"; then
4560   ac_cv_prog_CC="$CC" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567   for ac_exec_ext in '' $ac_executable_extensions; do
4568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569     ac_cv_prog_CC="$ac_prog"
4570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571     break 2
4572   fi
4573 done
4574 done
4575 IFS=$as_save_IFS
4576
4577 fi
4578 fi
4579 CC=$ac_cv_prog_CC
4580 if test -n "$CC"; then
4581   { echo "$as_me:$LINENO: result: $CC" >&5
4582 echo "${ECHO_T}$CC" >&6; }
4583 else
4584   { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4586 fi
4587
4588
4589   test -n "$CC" && break
4590 done
4591
4592
4593                 if test "$CC" = cc ; then
4594                                                 if test $ol_with_threads != auto ; then
4595                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4596 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4597    { (exit 1); exit 1; }; }
4598                         else
4599                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4600 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4601                         fi
4602                         ol_with_threads=no
4603                 fi
4604         fi
4605
4606         case ${CC} in cc_r | xlc_r)
4607                 ol_with_threads=posix
4608                 ol_cv_pthread_create=yes
4609                 ;;
4610         esac
4611 fi
4612
4613 if test -z "${CC}"; then
4614         for ac_prog in cc gcc
4615 do
4616   # Extract the first word of "$ac_prog", so it can be a program name with args.
4617 set dummy $ac_prog; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_CC+set}" = set; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   if test -n "$CC"; then
4624   ac_cv_prog_CC="$CC" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633     ac_cv_prog_CC="$ac_prog"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639 IFS=$as_save_IFS
4640
4641 fi
4642 fi
4643 CC=$ac_cv_prog_CC
4644 if test -n "$CC"; then
4645   { echo "$as_me:$LINENO: result: $CC" >&5
4646 echo "${ECHO_T}$CC" >&6; }
4647 else
4648   { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4650 fi
4651
4652
4653   test -n "$CC" && break
4654 done
4655 test -n "$CC" || CC="missing"
4656
4657
4658         if test "${CC}" = "missing" ; then
4659                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4660 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4661    { (exit 1); exit 1; }; }
4662         fi
4663 fi
4664
4665 if test -z "${AR}"; then
4666         for ac_prog in ar gar
4667 do
4668   # Extract the first word of "$ac_prog", so it can be a program name with args.
4669 set dummy $ac_prog; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_AR+set}" = set; then
4673   echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675   if test -n "$AR"; then
4676   ac_cv_prog_AR="$AR" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683   for ac_exec_ext in '' $ac_executable_extensions; do
4684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685     ac_cv_prog_AR="$ac_prog"
4686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687     break 2
4688   fi
4689 done
4690 done
4691 IFS=$as_save_IFS
4692
4693 fi
4694 fi
4695 AR=$ac_cv_prog_AR
4696 if test -n "$AR"; then
4697   { echo "$as_me:$LINENO: result: $AR" >&5
4698 echo "${ECHO_T}$AR" >&6; }
4699 else
4700   { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4702 fi
4703
4704
4705   test -n "$AR" && break
4706 done
4707 test -n "$AR" || AR="missing"
4708
4709
4710         if test "${AR}" = "missing" ; then
4711                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4712 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4713    { (exit 1); exit 1; }; }
4714         fi
4715 fi
4716
4717
4718
4719
4720
4721 # Check whether --enable-fast-install was given.
4722 if test "${enable_fast_install+set}" = set; then
4723   enableval=$enable_fast_install; p=${PACKAGE-default}
4724     case $enableval in
4725     yes) enable_fast_install=yes ;;
4726     no) enable_fast_install=no ;;
4727     *)
4728       enable_fast_install=no
4729       # Look at the argument we got.  We use all the common list separators.
4730       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4731       for pkg in $enableval; do
4732         IFS="$lt_save_ifs"
4733         if test "X$pkg" = "X$p"; then
4734           enable_fast_install=yes
4735         fi
4736       done
4737       IFS="$lt_save_ifs"
4738       ;;
4739     esac
4740 else
4741   enable_fast_install=yes
4742 fi
4743
4744
4745 DEPDIR="${am__leading_dot}deps"
4746
4747 ac_config_commands="$ac_config_commands depfiles"
4748
4749
4750 am_make=${MAKE-make}
4751 cat > confinc << 'END'
4752 am__doit:
4753         @echo done
4754 .PHONY: am__doit
4755 END
4756 # If we don't find an include directive, just comment out the code.
4757 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4758 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4759 am__include="#"
4760 am__quote=
4761 _am_result=none
4762 # First try GNU make style include.
4763 echo "include confinc" > confmf
4764 # We grep out `Entering directory' and `Leaving directory'
4765 # messages which can occur if `w' ends up in MAKEFLAGS.
4766 # In particular we don't look at `^make:' because GNU make might
4767 # be invoked under some other name (usually "gmake"), in which
4768 # case it prints its new name instead of `make'.
4769 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4770    am__include=include
4771    am__quote=
4772    _am_result=GNU
4773 fi
4774 # Now try BSD make style include.
4775 if test "$am__include" = "#"; then
4776    echo '.include "confinc"' > confmf
4777    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4778       am__include=.include
4779       am__quote="\""
4780       _am_result=BSD
4781    fi
4782 fi
4783
4784
4785 { echo "$as_me:$LINENO: result: $_am_result" >&5
4786 echo "${ECHO_T}$_am_result" >&6; }
4787 rm -f confinc confmf
4788
4789 # Check whether --enable-dependency-tracking was given.
4790 if test "${enable_dependency_tracking+set}" = set; then
4791   enableval=$enable_dependency_tracking;
4792 fi
4793
4794 if test "x$enable_dependency_tracking" != xno; then
4795   am_depcomp="$ac_aux_dir/depcomp"
4796   AMDEPBACKSLASH='\'
4797 fi
4798
4799
4800 if test "x$enable_dependency_tracking" != xno; then
4801   AMDEP_TRUE=
4802   AMDEP_FALSE='#'
4803 else
4804   AMDEP_TRUE='#'
4805   AMDEP_FALSE=
4806 fi
4807
4808
4809
4810 ac_ext=c
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 if test -n "$ac_tool_prefix"; then
4816   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_prog_CC+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   if test -n "$CC"; then
4824   ac_cv_prog_CC="$CC" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831   for ac_exec_ext in '' $ac_executable_extensions; do
4832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 CC=$ac_cv_prog_CC
4844 if test -n "$CC"; then
4845   { echo "$as_me:$LINENO: result: $CC" >&5
4846 echo "${ECHO_T}$CC" >&6; }
4847 else
4848   { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4850 fi
4851
4852
4853 fi
4854 if test -z "$ac_cv_prog_CC"; then
4855   ac_ct_CC=$CC
4856   # Extract the first word of "gcc", so it can be a program name with args.
4857 set dummy gcc; ac_word=$2
4858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4861   echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863   if test -n "$ac_ct_CC"; then
4864   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     ac_cv_prog_ac_ct_CC="gcc"
4874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881 fi
4882 fi
4883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4884 if test -n "$ac_ct_CC"; then
4885   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4886 echo "${ECHO_T}$ac_ct_CC" >&6; }
4887 else
4888   { echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6; }
4890 fi
4891
4892   if test "x$ac_ct_CC" = x; then
4893     CC=""
4894   else
4895     case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4898 whose name does not start with the host triplet.  If you think this
4899 configuration is useful to you, please write to autoconf@gnu.org." >&5
4900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4901 whose name does not start with the host triplet.  If you think this
4902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905     CC=$ac_ct_CC
4906   fi
4907 else
4908   CC="$ac_cv_prog_CC"
4909 fi
4910
4911 if test -z "$CC"; then
4912           if test -n "$ac_tool_prefix"; then
4913     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4914 set dummy ${ac_tool_prefix}cc; ac_word=$2
4915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4917 if test "${ac_cv_prog_CC+set}" = set; then
4918   echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920   if test -n "$CC"; then
4921   ac_cv_prog_CC="$CC" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926   IFS=$as_save_IFS
4927   test -z "$as_dir" && as_dir=.
4928   for ac_exec_ext in '' $ac_executable_extensions; do
4929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930     ac_cv_prog_CC="${ac_tool_prefix}cc"
4931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932     break 2
4933   fi
4934 done
4935 done
4936 IFS=$as_save_IFS
4937
4938 fi
4939 fi
4940 CC=$ac_cv_prog_CC
4941 if test -n "$CC"; then
4942   { echo "$as_me:$LINENO: result: $CC" >&5
4943 echo "${ECHO_T}$CC" >&6; }
4944 else
4945   { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4947 fi
4948
4949
4950   fi
4951 fi
4952 if test -z "$CC"; then
4953   # Extract the first word of "cc", so it can be a program name with args.
4954 set dummy cc; ac_word=$2
4955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4957 if test "${ac_cv_prog_CC+set}" = set; then
4958   echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960   if test -n "$CC"; then
4961   ac_cv_prog_CC="$CC" # Let the user override the test.
4962 else
4963   ac_prog_rejected=no
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967   IFS=$as_save_IFS
4968   test -z "$as_dir" && as_dir=.
4969   for ac_exec_ext in '' $ac_executable_extensions; do
4970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4972        ac_prog_rejected=yes
4973        continue
4974      fi
4975     ac_cv_prog_CC="cc"
4976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4977     break 2
4978   fi
4979 done
4980 done
4981 IFS=$as_save_IFS
4982
4983 if test $ac_prog_rejected = yes; then
4984   # We found a bogon in the path, so make sure we never use it.
4985   set dummy $ac_cv_prog_CC
4986   shift
4987   if test $# != 0; then
4988     # We chose a different compiler from the bogus one.
4989     # However, it has the same basename, so the bogon will be chosen
4990     # first if we set CC to just the basename; use the full file name.
4991     shift
4992     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4993   fi
4994 fi
4995 fi
4996 fi
4997 CC=$ac_cv_prog_CC
4998 if test -n "$CC"; then
4999   { echo "$as_me:$LINENO: result: $CC" >&5
5000 echo "${ECHO_T}$CC" >&6; }
5001 else
5002   { echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6; }
5004 fi
5005
5006
5007 fi
5008 if test -z "$CC"; then
5009   if test -n "$ac_tool_prefix"; then
5010   for ac_prog in cl.exe
5011   do
5012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_CC+set}" = set; then
5017   echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019   if test -n "$CC"; then
5020   ac_cv_prog_CC="$CC" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025   IFS=$as_save_IFS
5026   test -z "$as_dir" && as_dir=.
5027   for ac_exec_ext in '' $ac_executable_extensions; do
5028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031     break 2
5032   fi
5033 done
5034 done
5035 IFS=$as_save_IFS
5036
5037 fi
5038 fi
5039 CC=$ac_cv_prog_CC
5040 if test -n "$CC"; then
5041   { echo "$as_me:$LINENO: result: $CC" >&5
5042 echo "${ECHO_T}$CC" >&6; }
5043 else
5044   { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5046 fi
5047
5048
5049     test -n "$CC" && break
5050   done
5051 fi
5052 if test -z "$CC"; then
5053   ac_ct_CC=$CC
5054   for ac_prog in cl.exe
5055 do
5056   # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5061   echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063   if test -n "$ac_ct_CC"; then
5064   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069   IFS=$as_save_IFS
5070   test -z "$as_dir" && as_dir=.
5071   for ac_exec_ext in '' $ac_executable_extensions; do
5072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073     ac_cv_prog_ac_ct_CC="$ac_prog"
5074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075     break 2
5076   fi
5077 done
5078 done
5079 IFS=$as_save_IFS
5080
5081 fi
5082 fi
5083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5084 if test -n "$ac_ct_CC"; then
5085   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5086 echo "${ECHO_T}$ac_ct_CC" >&6; }
5087 else
5088   { echo "$as_me:$LINENO: result: no" >&5
5089 echo "${ECHO_T}no" >&6; }
5090 fi
5091
5092
5093   test -n "$ac_ct_CC" && break
5094 done
5095
5096   if test "x$ac_ct_CC" = x; then
5097     CC=""
5098   else
5099     case $cross_compiling:$ac_tool_warned in
5100 yes:)
5101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5102 whose name does not start with the host triplet.  If you think this
5103 configuration is useful to you, please write to autoconf@gnu.org." >&5
5104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5105 whose name does not start with the host triplet.  If you think this
5106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5107 ac_tool_warned=yes ;;
5108 esac
5109     CC=$ac_ct_CC
5110   fi
5111 fi
5112
5113 fi
5114
5115
5116 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5117 See \`config.log' for more details." >&5
5118 echo "$as_me: error: no acceptable C compiler found in \$PATH
5119 See \`config.log' for more details." >&2;}
5120    { (exit 1); exit 1; }; }
5121
5122 # Provide some information about the compiler.
5123 echo "$as_me:$LINENO: checking for C compiler version" >&5
5124 ac_compiler=`set X $ac_compile; echo $2`
5125 { (ac_try="$ac_compiler --version >&5"
5126 case "(($ac_try" in
5127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128   *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131   (eval "$ac_compiler --version >&5") 2>&5
5132   ac_status=$?
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); }
5135 { (ac_try="$ac_compiler -v >&5"
5136 case "(($ac_try" in
5137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138   *) ac_try_echo=$ac_try;;
5139 esac
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141   (eval "$ac_compiler -v >&5") 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); }
5145 { (ac_try="$ac_compiler -V >&5"
5146 case "(($ac_try" in
5147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148   *) ac_try_echo=$ac_try;;
5149 esac
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151   (eval "$ac_compiler -V >&5") 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }
5155
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h.  */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h.  */
5162
5163 int
5164 main ()
5165 {
5166
5167   ;
5168   return 0;
5169 }
5170 _ACEOF
5171 ac_clean_files_save=$ac_clean_files
5172 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5173 # Try to create an executable without -o first, disregard a.out.
5174 # It will help us diagnose broken compilers, and finding out an intuition
5175 # of exeext.
5176 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5177 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5178 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5179 #
5180 # List of possible output files, starting from the most likely.
5181 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5182 # only as a last resort.  b.out is created by i960 compilers.
5183 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5184 #
5185 # The IRIX 6 linker writes into existing files which may not be
5186 # executable, retaining their permissions.  Remove them first so a
5187 # subsequent execution test works.
5188 ac_rmfiles=
5189 for ac_file in $ac_files
5190 do
5191   case $ac_file in
5192     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5193     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5194   esac
5195 done
5196 rm -f $ac_rmfiles
5197
5198 if { (ac_try="$ac_link_default"
5199 case "(($ac_try" in
5200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201   *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204   (eval "$ac_link_default") 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }; then
5208   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5209 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5210 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5211 # so that the user can short-circuit this test for compilers unknown to
5212 # Autoconf.
5213 for ac_file in $ac_files ''
5214 do
5215   test -f "$ac_file" || continue
5216   case $ac_file in
5217     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5218         ;;
5219     [ab].out )
5220         # We found the default executable, but exeext='' is most
5221         # certainly right.
5222         break;;
5223     *.* )
5224         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5225         then :; else
5226            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5227         fi
5228         # We set ac_cv_exeext here because the later test for it is not
5229         # safe: cross compilers may not add the suffix if given an `-o'
5230         # argument, so we may need to know it at that point already.
5231         # Even if this section looks crufty: it has the advantage of
5232         # actually working.
5233         break;;
5234     * )
5235         break;;
5236   esac
5237 done
5238 test "$ac_cv_exeext" = no && ac_cv_exeext=
5239
5240 else
5241   ac_file=''
5242 fi
5243
5244 { echo "$as_me:$LINENO: result: $ac_file" >&5
5245 echo "${ECHO_T}$ac_file" >&6; }
5246 if test -z "$ac_file"; then
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5251 See \`config.log' for more details." >&5
5252 echo "$as_me: error: C compiler cannot create executables
5253 See \`config.log' for more details." >&2;}
5254    { (exit 77); exit 77; }; }
5255 fi
5256
5257 ac_exeext=$ac_cv_exeext
5258
5259 # Check that the compiler produces executables we can run.  If not, either
5260 # the compiler is broken, or we cross compile.
5261 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5262 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5263 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5264 # If not cross compiling, check that we can run a simple program.
5265 if test "$cross_compiling" != yes; then
5266   if { ac_try='./$ac_file'
5267   { (case "(($ac_try" in
5268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269   *) ac_try_echo=$ac_try;;
5270 esac
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272   (eval "$ac_try") 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); }; }; then
5276     cross_compiling=no
5277   else
5278     if test "$cross_compiling" = maybe; then
5279         cross_compiling=yes
5280     else
5281         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5282 If you meant to cross compile, use \`--host'.
5283 See \`config.log' for more details." >&5
5284 echo "$as_me: error: cannot run C compiled programs.
5285 If you meant to cross compile, use \`--host'.
5286 See \`config.log' for more details." >&2;}
5287    { (exit 1); exit 1; }; }
5288     fi
5289   fi
5290 fi
5291 { echo "$as_me:$LINENO: result: yes" >&5
5292 echo "${ECHO_T}yes" >&6; }
5293
5294 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5295 ac_clean_files=$ac_clean_files_save
5296 # Check that the compiler produces executables we can run.  If not, either
5297 # the compiler is broken, or we cross compile.
5298 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5299 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5300 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5301 echo "${ECHO_T}$cross_compiling" >&6; }
5302
5303 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5304 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5305 if { (ac_try="$ac_link"
5306 case "(($ac_try" in
5307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308   *) ac_try_echo=$ac_try;;
5309 esac
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311   (eval "$ac_link") 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; then
5315   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5316 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5317 # work properly (i.e., refer to `conftest.exe'), while it won't with
5318 # `rm'.
5319 for ac_file in conftest.exe conftest conftest.*; do
5320   test -f "$ac_file" || continue
5321   case $ac_file in
5322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5323     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5324           break;;
5325     * ) break;;
5326   esac
5327 done
5328 else
5329   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5330 See \`config.log' for more details." >&5
5331 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5332 See \`config.log' for more details." >&2;}
5333    { (exit 1); exit 1; }; }
5334 fi
5335
5336 rm -f conftest$ac_cv_exeext
5337 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5338 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5339
5340 rm -f conftest.$ac_ext
5341 EXEEXT=$ac_cv_exeext
5342 ac_exeext=$EXEEXT
5343 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5344 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5345 if test "${ac_cv_objext+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354
5355 int
5356 main ()
5357 {
5358
5359   ;
5360   return 0;
5361 }
5362 _ACEOF
5363 rm -f conftest.o conftest.obj
5364 if { (ac_try="$ac_compile"
5365 case "(($ac_try" in
5366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367   *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370   (eval "$ac_compile") 2>&5
5371   ac_status=$?
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); }; then
5374   for ac_file in conftest.o conftest.obj conftest.*; do
5375   test -f "$ac_file" || continue;
5376   case $ac_file in
5377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5378     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5379        break;;
5380   esac
5381 done
5382 else
5383   echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5385
5386 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5387 See \`config.log' for more details." >&5
5388 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5389 See \`config.log' for more details." >&2;}
5390    { (exit 1); exit 1; }; }
5391 fi
5392
5393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5394 fi
5395 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5396 echo "${ECHO_T}$ac_cv_objext" >&6; }
5397 OBJEXT=$ac_cv_objext
5398 ac_objext=$OBJEXT
5399 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5400 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5401 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5402   echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404   cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h.  */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h.  */
5410
5411 int
5412 main ()
5413 {
5414 #ifndef __GNUC__
5415        choke me
5416 #endif
5417
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext
5423 if { (ac_try="$ac_compile"
5424 case "(($ac_try" in
5425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426   *) ac_try_echo=$ac_try;;
5427 esac
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429   (eval "$ac_compile") 2>conftest.er1
5430   ac_status=$?
5431   grep -v '^ *+' conftest.er1 >conftest.err
5432   rm -f conftest.er1
5433   cat conftest.err >&5
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); } && {
5436          test -z "$ac_c_werror_flag" ||
5437          test ! -s conftest.err
5438        } && test -s conftest.$ac_objext; then
5439   ac_compiler_gnu=yes
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444         ac_compiler_gnu=no
5445 fi
5446
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5449
5450 fi
5451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5453 GCC=`test $ac_compiler_gnu = yes && echo yes`
5454 ac_test_CFLAGS=${CFLAGS+set}
5455 ac_save_CFLAGS=$CFLAGS
5456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5458 if test "${ac_cv_prog_cc_g+set}" = set; then
5459   echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461   ac_save_c_werror_flag=$ac_c_werror_flag
5462    ac_c_werror_flag=yes
5463    ac_cv_prog_cc_g=no
5464    CFLAGS="-g"
5465    cat >conftest.$ac_ext <<_ACEOF
5466 /* confdefs.h.  */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h.  */
5471
5472 int
5473 main ()
5474 {
5475
5476   ;
5477   return 0;
5478 }
5479 _ACEOF
5480 rm -f conftest.$ac_objext
5481 if { (ac_try="$ac_compile"
5482 case "(($ac_try" in
5483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484   *) ac_try_echo=$ac_try;;
5485 esac
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487   (eval "$ac_compile") 2>conftest.er1
5488   ac_status=$?
5489   grep -v '^ *+' conftest.er1 >conftest.err
5490   rm -f conftest.er1
5491   cat conftest.err >&5
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); } && {
5494          test -z "$ac_c_werror_flag" ||
5495          test ! -s conftest.err
5496        } && test -s conftest.$ac_objext; then
5497   ac_cv_prog_cc_g=yes
5498 else
5499   echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5501
5502         CFLAGS=""
5503       cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h.  */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h.  */
5509
5510 int
5511 main ()
5512 {
5513
5514   ;
5515   return 0;
5516 }
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5520 case "(($ac_try" in
5521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522   *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525   (eval "$ac_compile") 2>conftest.er1
5526   ac_status=$?
5527   grep -v '^ *+' conftest.er1 >conftest.err
5528   rm -f conftest.er1
5529   cat conftest.err >&5
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } && {
5532          test -z "$ac_c_werror_flag" ||
5533          test ! -s conftest.err
5534        } && test -s conftest.$ac_objext; then
5535   :
5536 else
5537   echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540         ac_c_werror_flag=$ac_save_c_werror_flag
5541          CFLAGS="-g"
5542          cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h.  */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h.  */
5548
5549 int
5550 main ()
5551 {
5552
5553   ;
5554   return 0;
5555 }
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5559 case "(($ac_try" in
5560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561   *) ac_try_echo=$ac_try;;
5562 esac
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564   (eval "$ac_compile") 2>conftest.er1
5565   ac_status=$?
5566   grep -v '^ *+' conftest.er1 >conftest.err
5567   rm -f conftest.er1
5568   cat conftest.err >&5
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } && {
5571          test -z "$ac_c_werror_flag" ||
5572          test ! -s conftest.err
5573        } && test -s conftest.$ac_objext; then
5574   ac_cv_prog_cc_g=yes
5575 else
5576   echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579
5580 fi
5581
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 fi
5584
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 fi
5587
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589    ac_c_werror_flag=$ac_save_c_werror_flag
5590 fi
5591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5592 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5593 if test "$ac_test_CFLAGS" = set; then
5594   CFLAGS=$ac_save_CFLAGS
5595 elif test $ac_cv_prog_cc_g = yes; then
5596   if test "$GCC" = yes; then
5597     CFLAGS="-g -O2"
5598   else
5599     CFLAGS="-g"
5600   fi
5601 else
5602   if test "$GCC" = yes; then
5603     CFLAGS="-O2"
5604   else
5605     CFLAGS=
5606   fi
5607 fi
5608 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5609 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5610 if test "${ac_cv_prog_cc_c89+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613   ac_cv_prog_cc_c89=no
5614 ac_save_CC=$CC
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h.  */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h.  */
5621 #include <stdarg.h>
5622 #include <stdio.h>
5623 #include <sys/types.h>
5624 #include <sys/stat.h>
5625 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5626 struct buf { int x; };
5627 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5628 static char *e (p, i)
5629      char **p;
5630      int i;
5631 {
5632   return p[i];
5633 }
5634 static char *f (char * (*g) (char **, int), char **p, ...)
5635 {
5636   char *s;
5637   va_list v;
5638   va_start (v,p);
5639   s = g (p, va_arg (v,int));
5640   va_end (v);
5641   return s;
5642 }
5643
5644 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5645    function prototypes and stuff, but not '\xHH' hex character constants.
5646    These don't provoke an error unfortunately, instead are silently treated
5647    as 'x'.  The following induces an error, until -std is added to get
5648    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5649    array size at least.  It's necessary to write '\x00'==0 to get something
5650    that's true only with -std.  */
5651 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5652
5653 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5654    inside strings and character constants.  */
5655 #define FOO(x) 'x'
5656 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5657
5658 int test (int i, double x);
5659 struct s1 {int (*f) (int a);};
5660 struct s2 {int (*f) (double a);};
5661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5662 int argc;
5663 char **argv;
5664 int
5665 main ()
5666 {
5667 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5668   ;
5669   return 0;
5670 }
5671 _ACEOF
5672 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5673         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5674 do
5675   CC="$ac_save_CC $ac_arg"
5676   rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5678 case "(($ac_try" in
5679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680   *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683   (eval "$ac_compile") 2>conftest.er1
5684   ac_status=$?
5685   grep -v '^ *+' conftest.er1 >conftest.err
5686   rm -f conftest.er1
5687   cat conftest.err >&5
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); } && {
5690          test -z "$ac_c_werror_flag" ||
5691          test ! -s conftest.err
5692        } && test -s conftest.$ac_objext; then
5693   ac_cv_prog_cc_c89=$ac_arg
5694 else
5695   echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5697
5698
5699 fi
5700
5701 rm -f core conftest.err conftest.$ac_objext
5702   test "x$ac_cv_prog_cc_c89" != "xno" && break
5703 done
5704 rm -f conftest.$ac_ext
5705 CC=$ac_save_CC
5706
5707 fi
5708 # AC_CACHE_VAL
5709 case "x$ac_cv_prog_cc_c89" in
5710   x)
5711     { echo "$as_me:$LINENO: result: none needed" >&5
5712 echo "${ECHO_T}none needed" >&6; } ;;
5713   xno)
5714     { echo "$as_me:$LINENO: result: unsupported" >&5
5715 echo "${ECHO_T}unsupported" >&6; } ;;
5716   *)
5717     CC="$CC $ac_cv_prog_cc_c89"
5718     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5719 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5720 esac
5721
5722
5723 ac_ext=c
5724 ac_cpp='$CPP $CPPFLAGS'
5725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5728
5729 depcc="$CC"   am_compiler_list=
5730
5731 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5732 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5737   # We make a subdir and do the tests there.  Otherwise we can end up
5738   # making bogus files that we don't know about and never remove.  For
5739   # instance it was reported that on HP-UX the gcc test will end up
5740   # making a dummy file named `D' -- because `-MD' means `put the output
5741   # in D'.
5742   mkdir conftest.dir
5743   # Copy depcomp to subdir because otherwise we won't find it if we're
5744   # using a relative directory.
5745   cp "$am_depcomp" conftest.dir
5746   cd conftest.dir
5747   # We will build objects and dependencies in a subdirectory because
5748   # it helps to detect inapplicable dependency modes.  For instance
5749   # both Tru64's cc and ICC support -MD to output dependencies as a
5750   # side effect of compilation, but ICC will put the dependencies in
5751   # the current directory while Tru64 will put them in the object
5752   # directory.
5753   mkdir sub
5754
5755   am_cv_CC_dependencies_compiler_type=none
5756   if test "$am_compiler_list" = ""; then
5757      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5758   fi
5759   for depmode in $am_compiler_list; do
5760     # Setup a source with many dependencies, because some compilers
5761     # like to wrap large dependency lists on column 80 (with \), and
5762     # we should not choose a depcomp mode which is confused by this.
5763     #
5764     # We need to recreate these files for each test, as the compiler may
5765     # overwrite some of them when testing with obscure command lines.
5766     # This happens at least with the AIX C compiler.
5767     : > sub/conftest.c
5768     for i in 1 2 3 4 5 6; do
5769       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5770       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5771       # Solaris 8's {/usr,}/bin/sh.
5772       touch sub/conftst$i.h
5773     done
5774     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5775
5776     case $depmode in
5777     nosideeffect)
5778       # after this tag, mechanisms are not by side-effect, so they'll
5779       # only be used when explicitly requested
5780       if test "x$enable_dependency_tracking" = xyes; then
5781         continue
5782       else
5783         break
5784       fi
5785       ;;
5786     none) break ;;
5787     esac
5788     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5789     # mode.  It turns out that the SunPro C++ compiler does not properly
5790     # handle `-M -o', and we need to detect this.
5791     if depmode=$depmode \
5792        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5793        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5794        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5795          >/dev/null 2>conftest.err &&
5796        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5797        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5798        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5799       # icc doesn't choke on unknown options, it will just issue warnings
5800       # or remarks (even with -Werror).  So we grep stderr for any message
5801       # that says an option was ignored or not supported.
5802       # When given -MP, icc 7.0 and 7.1 complain thusly:
5803       #   icc: Command line warning: ignoring option '-M'; no argument required
5804       # The diagnosis changed in icc 8.0:
5805       #   icc: Command line remark: option '-MP' not supported
5806       if (grep 'ignoring option' conftest.err ||
5807           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5808         am_cv_CC_dependencies_compiler_type=$depmode
5809         break
5810       fi
5811     fi
5812   done
5813
5814   cd ..
5815   rm -rf conftest.dir
5816 else
5817   am_cv_CC_dependencies_compiler_type=none
5818 fi
5819
5820 fi
5821 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5822 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5823 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5824
5825
5826
5827 if
5828   test "x$enable_dependency_tracking" != xno \
5829   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5830   am__fastdepCC_TRUE=
5831   am__fastdepCC_FALSE='#'
5832 else
5833   am__fastdepCC_TRUE='#'
5834   am__fastdepCC_FALSE=
5835 fi
5836
5837
5838 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5839 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5840 if test "${lt_cv_path_SED+set}" = set; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843   # Loop through the user's path and test for sed and gsed.
5844 # Then use that list of sed's as ones to test for truncation.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850   for lt_ac_prog in sed gsed; do
5851     for ac_exec_ext in '' $ac_executable_extensions; do
5852       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5853         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5854       fi
5855     done
5856   done
5857 done
5858 lt_ac_max=0
5859 lt_ac_count=0
5860 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5861 # along with /bin/sed that truncates output.
5862 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5863   test ! -f $lt_ac_sed && continue
5864   cat /dev/null > conftest.in
5865   lt_ac_count=0
5866   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5867   # Check for GNU sed and select it if it is found.
5868   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5869     lt_cv_path_SED=$lt_ac_sed
5870     break
5871   fi
5872   while true; do
5873     cat conftest.in conftest.in >conftest.tmp
5874     mv conftest.tmp conftest.in
5875     cp conftest.in conftest.nl
5876     echo >>conftest.nl
5877     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5878     cmp -s conftest.out conftest.nl || break
5879     # 10000 chars as input seems more than enough
5880     test $lt_ac_count -gt 10 && break
5881     lt_ac_count=`expr $lt_ac_count + 1`
5882     if test $lt_ac_count -gt $lt_ac_max; then
5883       lt_ac_max=$lt_ac_count
5884       lt_cv_path_SED=$lt_ac_sed
5885     fi
5886   done
5887 done
5888
5889 fi
5890
5891 SED=$lt_cv_path_SED
5892 { echo "$as_me:$LINENO: result: $SED" >&5
5893 echo "${ECHO_T}$SED" >&6; }
5894
5895 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5896 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5897 if test "${ac_cv_path_GREP+set}" = set; then
5898   echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900   # Extract the first word of "grep ggrep" to use in msg output
5901 if test -z "$GREP"; then
5902 set dummy grep ggrep; ac_prog_name=$2
5903 if test "${ac_cv_path_GREP+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   ac_path_GREP_found=false
5907 # Loop through the user's path and test for each of PROGNAME-LIST
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5910 do
5911   IFS=$as_save_IFS
5912   test -z "$as_dir" && as_dir=.
5913   for ac_prog in grep ggrep; do
5914   for ac_exec_ext in '' $ac_executable_extensions; do
5915     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5916     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5917     # Check for GNU ac_path_GREP and select it if it is found.
5918   # Check for GNU $ac_path_GREP
5919 case `"$ac_path_GREP" --version 2>&1` in
5920 *GNU*)
5921   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5922 *)
5923   ac_count=0
5924   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5925   while :
5926   do
5927     cat "conftest.in" "conftest.in" >"conftest.tmp"
5928     mv "conftest.tmp" "conftest.in"
5929     cp "conftest.in" "conftest.nl"
5930     echo 'GREP' >> "conftest.nl"
5931     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5932     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5933     ac_count=`expr $ac_count + 1`
5934     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5935       # Best one so far, save it but keep looking for a better one
5936       ac_cv_path_GREP="$ac_path_GREP"
5937       ac_path_GREP_max=$ac_count
5938     fi
5939     # 10*(2^10) chars as input seems more than enough
5940     test $ac_count -gt 10 && break
5941   done
5942   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5943 esac
5944
5945
5946     $ac_path_GREP_found && break 3
5947   done
5948 done
5949
5950 done
5951 IFS=$as_save_IFS
5952
5953
5954 fi
5955
5956 GREP="$ac_cv_path_GREP"
5957 if test -z "$GREP"; then
5958   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5959 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5960    { (exit 1); exit 1; }; }
5961 fi
5962
5963 else
5964   ac_cv_path_GREP=$GREP
5965 fi
5966
5967
5968 fi
5969 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5970 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5971  GREP="$ac_cv_path_GREP"
5972
5973
5974 { echo "$as_me:$LINENO: checking for egrep" >&5
5975 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5976 if test "${ac_cv_path_EGREP+set}" = set; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5980    then ac_cv_path_EGREP="$GREP -E"
5981    else
5982      # Extract the first word of "egrep" to use in msg output
5983 if test -z "$EGREP"; then
5984 set dummy egrep; ac_prog_name=$2
5985 if test "${ac_cv_path_EGREP+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   ac_path_EGREP_found=false
5989 # Loop through the user's path and test for each of PROGNAME-LIST
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995   for ac_prog in egrep; do
5996   for ac_exec_ext in '' $ac_executable_extensions; do
5997     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5998     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5999     # Check for GNU ac_path_EGREP and select it if it is found.
6000   # Check for GNU $ac_path_EGREP
6001 case `"$ac_path_EGREP" --version 2>&1` in
6002 *GNU*)
6003   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6004 *)
6005   ac_count=0
6006   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6007   while :
6008   do
6009     cat "conftest.in" "conftest.in" >"conftest.tmp"
6010     mv "conftest.tmp" "conftest.in"
6011     cp "conftest.in" "conftest.nl"
6012     echo 'EGREP' >> "conftest.nl"
6013     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6014     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6015     ac_count=`expr $ac_count + 1`
6016     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6017       # Best one so far, save it but keep looking for a better one
6018       ac_cv_path_EGREP="$ac_path_EGREP"
6019       ac_path_EGREP_max=$ac_count
6020     fi
6021     # 10*(2^10) chars as input seems more than enough
6022     test $ac_count -gt 10 && break
6023   done
6024   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6025 esac
6026
6027
6028     $ac_path_EGREP_found && break 3
6029   done
6030 done
6031
6032 done
6033 IFS=$as_save_IFS
6034
6035
6036 fi
6037
6038 EGREP="$ac_cv_path_EGREP"
6039 if test -z "$EGREP"; then
6040   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6041 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6042    { (exit 1); exit 1; }; }
6043 fi
6044
6045 else
6046   ac_cv_path_EGREP=$EGREP
6047 fi
6048
6049
6050    fi
6051 fi
6052 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6053 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6054  EGREP="$ac_cv_path_EGREP"
6055
6056
6057
6058 # Check whether --with-gnu-ld was given.
6059 if test "${with_gnu_ld+set}" = set; then
6060   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6061 else
6062   with_gnu_ld=no
6063 fi
6064
6065 ac_prog=ld
6066 if test "$GCC" = yes; then
6067   # Check if gcc -print-prog-name=ld gives a path.
6068   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6069 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6070   case $host in
6071   *-*-mingw*)
6072     # gcc leaves a trailing carriage return which upsets mingw
6073     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6074   *)
6075     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6076   esac
6077   case $ac_prog in
6078     # Accept absolute paths.
6079     [\\/]* | ?:[\\/]*)
6080       re_direlt='/[^/][^/]*/\.\./'
6081       # Canonicalize the pathname of ld
6082       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6083       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6084         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6085       done
6086       test -z "$LD" && LD="$ac_prog"
6087       ;;
6088   "")
6089     # If it fails, then pretend we aren't using GCC.
6090     ac_prog=ld
6091     ;;
6092   *)
6093     # If it is relative, then search for the first ld in PATH.
6094     with_gnu_ld=unknown
6095     ;;
6096   esac
6097 elif test "$with_gnu_ld" = yes; then
6098   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6099 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6100 else
6101   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6102 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6103 fi
6104 if test "${lt_cv_path_LD+set}" = set; then
6105   echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107   if test -z "$LD"; then
6108   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6109   for ac_dir in $PATH; do
6110     IFS="$lt_save_ifs"
6111     test -z "$ac_dir" && ac_dir=.
6112     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6113       lt_cv_path_LD="$ac_dir/$ac_prog"
6114       # Check to see if the program is GNU ld.  I'd rather use --version,
6115       # but apparently some variants of GNU ld only accept -v.
6116       # Break only if it was the GNU/non-GNU ld that we prefer.
6117       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6118       *GNU* | *'with BFD'*)
6119         test "$with_gnu_ld" != no && break
6120         ;;
6121       *)
6122         test "$with_gnu_ld" != yes && break
6123         ;;
6124       esac
6125     fi
6126   done
6127   IFS="$lt_save_ifs"
6128 else
6129   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6130 fi
6131 fi
6132
6133 LD="$lt_cv_path_LD"
6134 if test -n "$LD"; then
6135   { echo "$as_me:$LINENO: result: $LD" >&5
6136 echo "${ECHO_T}$LD" >&6; }
6137 else
6138   { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6140 fi
6141 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6142 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6143    { (exit 1); exit 1; }; }
6144 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6145 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6146 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6147   echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6150 case `$LD -v 2>&1 </dev/null` in
6151 *GNU* | *'with BFD'*)
6152   lt_cv_prog_gnu_ld=yes
6153   ;;
6154 *)
6155   lt_cv_prog_gnu_ld=no
6156   ;;
6157 esac
6158 fi
6159 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6160 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6161 with_gnu_ld=$lt_cv_prog_gnu_ld
6162
6163
6164 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6165 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6166 if test "${lt_cv_ld_reload_flag+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   lt_cv_ld_reload_flag='-r'
6170 fi
6171 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6172 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6173 reload_flag=$lt_cv_ld_reload_flag
6174 case $reload_flag in
6175 "" | " "*) ;;
6176 *) reload_flag=" $reload_flag" ;;
6177 esac
6178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6179 case $host_os in
6180   darwin*)
6181     if test "$GCC" = yes; then
6182       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6183     else
6184       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185     fi
6186     ;;
6187 esac
6188
6189 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6190 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6191 if test "${lt_cv_path_NM+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   if test -n "$NM"; then
6195   # Let the user override the test.
6196   lt_cv_path_NM="$NM"
6197 else
6198   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6199   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6200     IFS="$lt_save_ifs"
6201     test -z "$ac_dir" && ac_dir=.
6202     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6203     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6204       # Check to see if the nm accepts a BSD-compat flag.
6205       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6206       #   nm: unknown option "B" ignored
6207       # Tru64's nm complains that /dev/null is an invalid object file
6208       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6209       */dev/null* | *'Invalid file or object type'*)
6210         lt_cv_path_NM="$tmp_nm -B"
6211         break
6212         ;;
6213       *)
6214         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6215         */dev/null*)
6216           lt_cv_path_NM="$tmp_nm -p"
6217           break
6218           ;;
6219         *)
6220           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6221           continue # so that we can try to find one that supports BSD flags
6222           ;;
6223         esac
6224       esac
6225     fi
6226   done
6227   IFS="$lt_save_ifs"
6228   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6229 fi
6230 fi
6231 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6232 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6233 NM="$lt_cv_path_NM"
6234
6235 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6236 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6237 LN_S=$as_ln_s
6238 if test "$LN_S" = "ln -s"; then
6239   { echo "$as_me:$LINENO: result: yes" >&5
6240 echo "${ECHO_T}yes" >&6; }
6241 else
6242   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6243 echo "${ECHO_T}no, using $LN_S" >&6; }
6244 fi
6245
6246 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6247 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6248 if test "${lt_cv_deplibs_check_method+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251   lt_cv_file_magic_cmd='$MAGIC_CMD'
6252 lt_cv_file_magic_test_file=
6253 lt_cv_deplibs_check_method='unknown'
6254 # Need to set the preceding variable on all platforms that support
6255 # interlibrary dependencies.
6256 # 'none' -- dependencies not supported.
6257 # `unknown' -- same as none, but documents that we really don't know.
6258 # 'pass_all' -- all dependencies passed with no checks.
6259 # 'test_compile' -- check by making test program.
6260 # 'file_magic [[regex]]' -- check by looking for files in library path
6261 # which responds to the $file_magic_cmd with a given extended regex.
6262 # If you have `file' or equivalent on your system and you're not sure
6263 # whether `pass_all' will *always* work, you probably want this one.
6264
6265 case $host_os in
6266 aix4* | aix5*)
6267   lt_cv_deplibs_check_method=pass_all
6268   ;;
6269
6270 beos*)
6271   lt_cv_deplibs_check_method=pass_all
6272   ;;
6273
6274 bsdi[45]*)
6275   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6276   lt_cv_file_magic_cmd='/usr/bin/file -L'
6277   lt_cv_file_magic_test_file=/shlib/libc.so
6278   ;;
6279
6280 cygwin*)
6281   # func_win32_libid is a shell function defined in ltmain.sh
6282   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6283   lt_cv_file_magic_cmd='func_win32_libid'
6284   ;;
6285
6286 mingw* | pw32*)
6287   # Base MSYS/MinGW do not provide the 'file' command needed by
6288   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6289   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6290   lt_cv_file_magic_cmd='$OBJDUMP -f'
6291   ;;
6292
6293 darwin* | rhapsody*)
6294   lt_cv_deplibs_check_method=pass_all
6295   ;;
6296
6297 freebsd* | kfreebsd*-gnu | dragonfly*)
6298   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6299     case $host_cpu in
6300     i*86 )
6301       # Not sure whether the presence of OpenBSD here was a mistake.
6302       # Let's accept both of them until this is cleared up.
6303       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6304       lt_cv_file_magic_cmd=/usr/bin/file
6305       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6306       ;;
6307     esac
6308   else
6309     lt_cv_deplibs_check_method=pass_all
6310   fi
6311   ;;
6312
6313 gnu*)
6314   lt_cv_deplibs_check_method=pass_all
6315   ;;
6316
6317 hpux10.20* | hpux11*)
6318   lt_cv_file_magic_cmd=/usr/bin/file
6319   case $host_cpu in
6320   ia64*)
6321     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6322     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6323     ;;
6324   hppa*64*)
6325     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6326     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6327     ;;
6328   *)
6329     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6330     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6331     ;;
6332   esac
6333   ;;
6334
6335 irix5* | irix6* | nonstopux*)
6336   case $LD in
6337   *-32|*"-32 ") libmagic=32-bit;;
6338   *-n32|*"-n32 ") libmagic=N32;;
6339   *-64|*"-64 ") libmagic=64-bit;;
6340   *) libmagic=never-match;;
6341   esac
6342   lt_cv_deplibs_check_method=pass_all
6343   ;;
6344
6345 # This must be Linux ELF.
6346 linux*)
6347   lt_cv_deplibs_check_method=pass_all
6348   ;;
6349
6350 netbsd*)
6351   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6352     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6353   else
6354     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6355   fi
6356   ;;
6357
6358 newos6*)
6359   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6360   lt_cv_file_magic_cmd=/usr/bin/file
6361   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6362   ;;
6363
6364 nto-qnx*)
6365   lt_cv_deplibs_check_method=unknown
6366   ;;
6367
6368 openbsd*)
6369   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6370     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6371   else
6372     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6373   fi
6374   ;;
6375
6376 osf3* | osf4* | osf5*)
6377   lt_cv_deplibs_check_method=pass_all
6378   ;;
6379
6380 sco3.2v5*)
6381   lt_cv_deplibs_check_method=pass_all
6382   ;;
6383
6384 solaris*)
6385   lt_cv_deplibs_check_method=pass_all
6386   ;;
6387
6388 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6389   case $host_vendor in
6390   motorola)
6391     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6392     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6393     ;;
6394   ncr)
6395     lt_cv_deplibs_check_method=pass_all
6396     ;;
6397   sequent)
6398     lt_cv_file_magic_cmd='/bin/file'
6399     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6400     ;;
6401   sni)
6402     lt_cv_file_magic_cmd='/bin/file'
6403     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6404     lt_cv_file_magic_test_file=/lib/libc.so
6405     ;;
6406   siemens)
6407     lt_cv_deplibs_check_method=pass_all
6408     ;;
6409   esac
6410   ;;
6411
6412 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6413   lt_cv_deplibs_check_method=pass_all
6414   ;;
6415 esac
6416
6417 fi
6418 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6419 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6420 file_magic_cmd=$lt_cv_file_magic_cmd
6421 deplibs_check_method=$lt_cv_deplibs_check_method
6422 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6423
6424
6425
6426
6427 # If no C compiler was specified, use CC.
6428 LTCC=${LTCC-"$CC"}
6429
6430 # Allow CC to be a program name with arguments.
6431 compiler=$CC
6432
6433
6434 # Check whether --enable-libtool-lock was given.
6435 if test "${enable_libtool_lock+set}" = set; then
6436   enableval=$enable_libtool_lock;
6437 fi
6438
6439 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6440
6441 # Some flags need to be propagated to the compiler or linker for good
6442 # libtool support.
6443 case $host in
6444 ia64-*-hpux*)
6445   # Find out which ABI we are using.
6446   echo 'int i;' > conftest.$ac_ext
6447   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448   (eval $ac_compile) 2>&5
6449   ac_status=$?
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); }; then
6452     case `/usr/bin/file conftest.$ac_objext` in
6453     *ELF-32*)
6454       HPUX_IA64_MODE="32"
6455       ;;
6456     *ELF-64*)
6457       HPUX_IA64_MODE="64"
6458       ;;
6459     esac
6460   fi
6461   rm -rf conftest*
6462   ;;
6463 *-*-irix6*)
6464   # Find out which ABI we are using.
6465   echo '#line 6465 "configure"' > conftest.$ac_ext
6466   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6467   (eval $ac_compile) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; then
6471    if test "$lt_cv_prog_gnu_ld" = yes; then
6472     case `/usr/bin/file conftest.$ac_objext` in
6473     *32-bit*)
6474       LD="${LD-ld} -melf32bsmip"
6475       ;;
6476     *N32*)
6477       LD="${LD-ld} -melf32bmipn32"
6478       ;;
6479     *64-bit*)
6480       LD="${LD-ld} -melf64bmip"
6481       ;;
6482     esac
6483    else
6484     case `/usr/bin/file conftest.$ac_objext` in
6485     *32-bit*)
6486       LD="${LD-ld} -32"
6487       ;;
6488     *N32*)
6489       LD="${LD-ld} -n32"
6490       ;;
6491     *64-bit*)
6492       LD="${LD-ld} -64"
6493       ;;
6494     esac
6495    fi
6496   fi
6497   rm -rf conftest*
6498   ;;
6499
6500 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6501   # Find out which ABI we are using.
6502   echo 'int i;' > conftest.$ac_ext
6503   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504   (eval $ac_compile) 2>&5
6505   ac_status=$?
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); }; then
6508     case `/usr/bin/file conftest.o` in
6509     *32-bit*)
6510       case $host in
6511         x86_64-*linux*)
6512           LD="${LD-ld} -m elf_i386"
6513           ;;
6514         ppc64-*linux*|powerpc64-*linux*)
6515           LD="${LD-ld} -m elf32ppclinux"
6516           ;;
6517         s390x-*linux*)
6518           LD="${LD-ld} -m elf_s390"
6519           ;;
6520         sparc64-*linux*)
6521           LD="${LD-ld} -m elf32_sparc"
6522           ;;
6523       esac
6524       ;;
6525     *64-bit*)
6526       case $host in
6527         x86_64-*linux*)
6528           LD="${LD-ld} -m elf_x86_64"
6529           ;;
6530         ppc*-*linux*|powerpc*-*linux*)
6531           LD="${LD-ld} -m elf64ppc"
6532           ;;
6533         s390*-*linux*)
6534           LD="${LD-ld} -m elf64_s390"
6535           ;;
6536         sparc*-*linux*)
6537           LD="${LD-ld} -m elf64_sparc"
6538           ;;
6539       esac
6540       ;;
6541     esac
6542   fi
6543   rm -rf conftest*
6544   ;;
6545
6546 *-*-sco3.2v5*)
6547   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6548   SAVE_CFLAGS="$CFLAGS"
6549   CFLAGS="$CFLAGS -belf"
6550   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6551 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6552 if test "${lt_cv_cc_needs_belf+set}" = set; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   ac_ext=c
6556 ac_cpp='$CPP $CPPFLAGS'
6557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6560
6561      cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h.  */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h.  */
6567
6568 int
6569 main ()
6570 {
6571
6572   ;
6573   return 0;
6574 }
6575 _ACEOF
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (ac_try="$ac_link"
6578 case "(($ac_try" in
6579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580   *) ac_try_echo=$ac_try;;
6581 esac
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583   (eval "$ac_link") 2>conftest.er1
6584   ac_status=$?
6585   grep -v '^ *+' conftest.er1 >conftest.err
6586   rm -f conftest.er1
6587   cat conftest.err >&5
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); } && {
6590          test -z "$ac_c_werror_flag" ||
6591          test ! -s conftest.err
6592        } && test -s conftest$ac_exeext &&
6593        $as_test_x conftest$ac_exeext; then
6594   lt_cv_cc_needs_belf=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599         lt_cv_cc_needs_belf=no
6600 fi
6601
6602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6603       conftest$ac_exeext conftest.$ac_ext
6604      ac_ext=c
6605 ac_cpp='$CPP $CPPFLAGS'
6606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6609
6610 fi
6611 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6612 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6613   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6614     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6615     CFLAGS="$SAVE_CFLAGS"
6616   fi
6617   ;;
6618 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6619   if test -n "$ac_tool_prefix"; then
6620   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6625   echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627   if test -n "$DLLTOOL"; then
6628   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635   for ac_exec_ext in '' $ac_executable_extensions; do
6636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645 fi
6646 fi
6647 DLLTOOL=$ac_cv_prog_DLLTOOL
6648 if test -n "$DLLTOOL"; then
6649   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6650 echo "${ECHO_T}$DLLTOOL" >&6; }
6651 else
6652   { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6654 fi
6655
6656
6657 fi
6658 if test -z "$ac_cv_prog_DLLTOOL"; then
6659   ac_ct_DLLTOOL=$DLLTOOL
6660   # Extract the first word of "dlltool", so it can be a program name with args.
6661 set dummy dlltool; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   if test -n "$ac_ct_DLLTOOL"; then
6668   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   test -z "$as_dir" && as_dir=.
6675   for ac_exec_ext in '' $ac_executable_extensions; do
6676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679     break 2
6680   fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6688 if test -n "$ac_ct_DLLTOOL"; then
6689   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6690 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6691 else
6692   { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6694 fi
6695
6696   if test "x$ac_ct_DLLTOOL" = x; then
6697     DLLTOOL="false"
6698   else
6699     case $cross_compiling:$ac_tool_warned in
6700 yes:)
6701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6702 whose name does not start with the host triplet.  If you think this
6703 configuration is useful to you, please write to autoconf@gnu.org." >&5
6704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6705 whose name does not start with the host triplet.  If you think this
6706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709     DLLTOOL=$ac_ct_DLLTOOL
6710   fi
6711 else
6712   DLLTOOL="$ac_cv_prog_DLLTOOL"
6713 fi
6714
6715   if test -n "$ac_tool_prefix"; then
6716   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}as; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_prog_AS+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   if test -n "$AS"; then
6724   ac_cv_prog_AS="$AS" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731   for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_prog_AS="${ac_tool_prefix}as"
6734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 AS=$ac_cv_prog_AS
6744 if test -n "$AS"; then
6745   { echo "$as_me:$LINENO: result: $AS" >&5
6746 echo "${ECHO_T}$AS" >&6; }
6747 else
6748   { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6750 fi
6751
6752
6753 fi
6754 if test -z "$ac_cv_prog_AS"; then
6755   ac_ct_AS=$AS
6756   # Extract the first word of "as", so it can be a program name with args.
6757 set dummy as; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   if test -n "$ac_ct_AS"; then
6764   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771   for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_prog_ac_ct_AS="as"
6774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6784 if test -n "$ac_ct_AS"; then
6785   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6786 echo "${ECHO_T}$ac_ct_AS" >&6; }
6787 else
6788   { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6790 fi
6791
6792   if test "x$ac_ct_AS" = x; then
6793     AS="false"
6794   else
6795     case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6798 whose name does not start with the host triplet.  If you think this
6799 configuration is useful to you, please write to autoconf@gnu.org." >&5
6800 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet.  If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6803 ac_tool_warned=yes ;;
6804 esac
6805     AS=$ac_ct_AS
6806   fi
6807 else
6808   AS="$ac_cv_prog_AS"
6809 fi
6810
6811   if test -n "$ac_tool_prefix"; then
6812   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   if test -n "$OBJDUMP"; then
6820   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827   for ac_exec_ext in '' $ac_executable_extensions; do
6828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 OBJDUMP=$ac_cv_prog_OBJDUMP
6840 if test -n "$OBJDUMP"; then
6841   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6842 echo "${ECHO_T}$OBJDUMP" >&6; }
6843 else
6844   { echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; }
6846 fi
6847
6848
6849 fi
6850 if test -z "$ac_cv_prog_OBJDUMP"; then
6851   ac_ct_OBJDUMP=$OBJDUMP
6852   # Extract the first word of "objdump", so it can be a program name with args.
6853 set dummy objdump; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   if test -n "$ac_ct_OBJDUMP"; then
6860   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867   for ac_exec_ext in '' $ac_executable_extensions; do
6868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6880 if test -n "$ac_ct_OBJDUMP"; then
6881   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6882 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6883 else
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 fi
6887
6888   if test "x$ac_ct_OBJDUMP" = x; then
6889     OBJDUMP="false"
6890   else
6891     case $cross_compiling:$ac_tool_warned in
6892 yes:)
6893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6894 whose name does not start with the host triplet.  If you think this
6895 configuration is useful to you, please write to autoconf@gnu.org." >&5
6896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6897 whose name does not start with the host triplet.  If you think this
6898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901     OBJDUMP=$ac_ct_OBJDUMP
6902   fi
6903 else
6904   OBJDUMP="$ac_cv_prog_OBJDUMP"
6905 fi
6906
6907   ;;
6908
6909 esac
6910
6911 need_locks="$enable_libtool_lock"
6912
6913
6914 ac_ext=c
6915 ac_cpp='$CPP $CPPFLAGS'
6916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6919 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6920 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6921 # On Suns, sometimes $CPP names a directory.
6922 if test -n "$CPP" && test -d "$CPP"; then
6923   CPP=
6924 fi
6925 if test -z "$CPP"; then
6926   if test "${ac_cv_prog_CPP+set}" = set; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929       # Double quotes because CPP needs to be expanded
6930     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6931     do
6932       ac_preproc_ok=false
6933 for ac_c_preproc_warn_flag in '' yes
6934 do
6935   # Use a header file that comes with gcc, so configuring glibc
6936   # with a fresh cross-compiler works.
6937   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6938   # <limits.h> exists even on freestanding compilers.
6939   # On the NeXT, cc -E runs the code through the compiler's parser,
6940   # not just through cpp. "Syntax error" is here to catch this case.
6941   cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h.  */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h.  */
6947 #ifdef __STDC__
6948 # include <limits.h>
6949 #else
6950 # include <assert.h>
6951 #endif
6952                      Syntax error
6953 _ACEOF
6954 if { (ac_try="$ac_cpp conftest.$ac_ext"
6955 case "(($ac_try" in
6956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957   *) ac_try_echo=$ac_try;;
6958 esac
6959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6961   ac_status=$?
6962   grep -v '^ *+' conftest.er1 >conftest.err
6963   rm -f conftest.er1
6964   cat conftest.err >&5
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); } >/dev/null && {
6967          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6968          test ! -s conftest.err
6969        }; then
6970   :
6971 else
6972   echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6974
6975   # Broken: fails on valid input.
6976 continue
6977 fi
6978
6979 rm -f conftest.err conftest.$ac_ext
6980
6981   # OK, works on sane cases.  Now check whether nonexistent headers
6982   # can be detected and how.
6983   cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h.  */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h.  */
6989 #include <ac_nonexistent.h>
6990 _ACEOF
6991 if { (ac_try="$ac_cpp conftest.$ac_ext"
6992 case "(($ac_try" in
6993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994   *) ac_try_echo=$ac_try;;
6995 esac
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6998   ac_status=$?
6999   grep -v '^ *+' conftest.er1 >conftest.err
7000   rm -f conftest.er1
7001   cat conftest.err >&5
7002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003   (exit $ac_status); } >/dev/null && {
7004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7005          test ! -s conftest.err
7006        }; then
7007   # Broken: success on invalid input.
7008 continue
7009 else
7010   echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013   # Passes both tests.
7014 ac_preproc_ok=:
7015 break
7016 fi
7017
7018 rm -f conftest.err conftest.$ac_ext
7019
7020 done
7021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7022 rm -f conftest.err conftest.$ac_ext
7023 if $ac_preproc_ok; then
7024   break
7025 fi
7026
7027     done
7028     ac_cv_prog_CPP=$CPP
7029
7030 fi
7031   CPP=$ac_cv_prog_CPP
7032 else
7033   ac_cv_prog_CPP=$CPP
7034 fi
7035 { echo "$as_me:$LINENO: result: $CPP" >&5
7036 echo "${ECHO_T}$CPP" >&6; }
7037 ac_preproc_ok=false
7038 for ac_c_preproc_warn_flag in '' yes
7039 do
7040   # Use a header file that comes with gcc, so configuring glibc
7041   # with a fresh cross-compiler works.
7042   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7043   # <limits.h> exists even on freestanding compilers.
7044   # On the NeXT, cc -E runs the code through the compiler's parser,
7045   # not just through cpp. "Syntax error" is here to catch this case.
7046   cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h.  */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h.  */
7052 #ifdef __STDC__
7053 # include <limits.h>
7054 #else
7055 # include <assert.h>
7056 #endif
7057                      Syntax error
7058 _ACEOF
7059 if { (ac_try="$ac_cpp conftest.$ac_ext"
7060 case "(($ac_try" in
7061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062   *) ac_try_echo=$ac_try;;
7063 esac
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7066   ac_status=$?
7067   grep -v '^ *+' conftest.er1 >conftest.err
7068   rm -f conftest.er1
7069   cat conftest.err >&5
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } >/dev/null && {
7072          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7073          test ! -s conftest.err
7074        }; then
7075   :
7076 else
7077   echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080   # Broken: fails on valid input.
7081 continue
7082 fi
7083
7084 rm -f conftest.err conftest.$ac_ext
7085
7086   # OK, works on sane cases.  Now check whether nonexistent headers
7087   # can be detected and how.
7088   cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h.  */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h.  */
7094 #include <ac_nonexistent.h>
7095 _ACEOF
7096 if { (ac_try="$ac_cpp conftest.$ac_ext"
7097 case "(($ac_try" in
7098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099   *) ac_try_echo=$ac_try;;
7100 esac
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7103   ac_status=$?
7104   grep -v '^ *+' conftest.er1 >conftest.err
7105   rm -f conftest.er1
7106   cat conftest.err >&5
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); } >/dev/null && {
7109          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7110          test ! -s conftest.err
7111        }; then
7112   # Broken: success on invalid input.
7113 continue
7114 else
7115   echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7117
7118   # Passes both tests.
7119 ac_preproc_ok=:
7120 break
7121 fi
7122
7123 rm -f conftest.err conftest.$ac_ext
7124
7125 done
7126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7127 rm -f conftest.err conftest.$ac_ext
7128 if $ac_preproc_ok; then
7129   :
7130 else
7131   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7132 See \`config.log' for more details." >&5
7133 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7134 See \`config.log' for more details." >&2;}
7135    { (exit 1); exit 1; }; }
7136 fi
7137
7138 ac_ext=c
7139 ac_cpp='$CPP $CPPFLAGS'
7140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143
7144
7145 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7146 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7147 if test "${ac_cv_header_stdc+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h.  */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h.  */
7156 #include <stdlib.h>
7157 #include <stdarg.h>
7158 #include <string.h>
7159 #include <float.h>
7160
7161 int
7162 main ()
7163 {
7164
7165   ;
7166   return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (ac_try="$ac_compile"
7171 case "(($ac_try" in
7172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173   *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176   (eval "$ac_compile") 2>conftest.er1
7177   ac_status=$?
7178   grep -v '^ *+' conftest.er1 >conftest.err
7179   rm -f conftest.er1
7180   cat conftest.err >&5
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); } && {
7183          test -z "$ac_c_werror_flag" ||
7184          test ! -s conftest.err
7185        } && test -s conftest.$ac_objext; then
7186   ac_cv_header_stdc=yes
7187 else
7188   echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7190
7191         ac_cv_header_stdc=no
7192 fi
7193
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195
7196 if test $ac_cv_header_stdc = yes; then
7197   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7198   cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h.  */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h.  */
7204 #include <string.h>
7205
7206 _ACEOF
7207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208   $EGREP "memchr" >/dev/null 2>&1; then
7209   :
7210 else
7211   ac_cv_header_stdc=no
7212 fi
7213 rm -f conftest*
7214
7215 fi
7216
7217 if test $ac_cv_header_stdc = yes; then
7218   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7219   cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225 #include <stdlib.h>
7226
7227 _ACEOF
7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229   $EGREP "free" >/dev/null 2>&1; then
7230   :
7231 else
7232   ac_cv_header_stdc=no
7233 fi
7234 rm -f conftest*
7235
7236 fi
7237
7238 if test $ac_cv_header_stdc = yes; then
7239   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7240   if test "$cross_compiling" = yes; then
7241   :
7242 else
7243   cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h.  */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h.  */
7249 #include <ctype.h>
7250 #include <stdlib.h>
7251 #if ((' ' & 0x0FF) == 0x020)
7252 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7253 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7254 #else
7255 # define ISLOWER(c) \
7256                    (('a' <= (c) && (c) <= 'i') \
7257                      || ('j' <= (c) && (c) <= 'r') \
7258                      || ('s' <= (c) && (c) <= 'z'))
7259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7260 #endif
7261
7262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7263 int
7264 main ()
7265 {
7266   int i;
7267   for (i = 0; i < 256; i++)
7268     if (XOR (islower (i), ISLOWER (i))
7269         || toupper (i) != TOUPPER (i))
7270       return 2;
7271   return 0;
7272 }
7273 _ACEOF
7274 rm -f conftest$ac_exeext
7275 if { (ac_try="$ac_link"
7276 case "(($ac_try" in
7277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278   *) ac_try_echo=$ac_try;;
7279 esac
7280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7281   (eval "$ac_link") 2>&5
7282   ac_status=$?
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7285   { (case "(($ac_try" in
7286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287   *) ac_try_echo=$ac_try;;
7288 esac
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290   (eval "$ac_try") 2>&5
7291   ac_status=$?
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); }; }; then
7294   :
7295 else
7296   echo "$as_me: program exited with status $ac_status" >&5
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7299
7300 ( exit $ac_status )
7301 ac_cv_header_stdc=no
7302 fi
7303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7304 fi
7305
7306
7307 fi
7308 fi
7309 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7310 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7311 if test $ac_cv_header_stdc = yes; then
7312
7313 cat >>confdefs.h <<\_ACEOF
7314 #define STDC_HEADERS 1
7315 _ACEOF
7316
7317 fi
7318
7319 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7330                   inttypes.h stdint.h unistd.h
7331 do
7332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h.  */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h.  */
7344 $ac_includes_default
7345
7346 #include <$ac_header>
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352   *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355   (eval "$ac_compile") 2>conftest.er1
7356   ac_status=$?
7357   grep -v '^ *+' conftest.er1 >conftest.err
7358   rm -f conftest.er1
7359   cat conftest.err >&5
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); } && {
7362          test -z "$ac_c_werror_flag" ||
7363          test ! -s conftest.err
7364        } && test -s conftest.$ac_objext; then
7365   eval "$as_ac_Header=yes"
7366 else
7367   echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370         eval "$as_ac_Header=no"
7371 fi
7372
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 fi
7375 ac_res=`eval echo '${'$as_ac_Header'}'`
7376                { echo "$as_me:$LINENO: result: $ac_res" >&5
7377 echo "${ECHO_T}$ac_res" >&6; }
7378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7379   cat >>confdefs.h <<_ACEOF
7380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7381 _ACEOF
7382
7383 fi
7384
7385 done
7386
7387
7388
7389 for ac_header in dlfcn.h
7390 do
7391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7393   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 fi
7398 ac_res=`eval echo '${'$as_ac_Header'}'`
7399                { echo "$as_me:$LINENO: result: $ac_res" >&5
7400 echo "${ECHO_T}$ac_res" >&6; }
7401 else
7402   # Is the header compilable?
7403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h.  */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h.  */
7411 $ac_includes_default
7412 #include <$ac_header>
7413 _ACEOF
7414 rm -f conftest.$ac_objext
7415 if { (ac_try="$ac_compile"
7416 case "(($ac_try" in
7417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418   *) ac_try_echo=$ac_try;;
7419 esac
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421   (eval "$ac_compile") 2>conftest.er1
7422   ac_status=$?
7423   grep -v '^ *+' conftest.er1 >conftest.err
7424   rm -f conftest.er1
7425   cat conftest.err >&5
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } && {
7428          test -z "$ac_c_werror_flag" ||
7429          test ! -s conftest.err
7430        } && test -s conftest.$ac_objext; then
7431   ac_header_compiler=yes
7432 else
7433   echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436         ac_header_compiler=no
7437 fi
7438
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7441 echo "${ECHO_T}$ac_header_compiler" >&6; }
7442
7443 # Is the header present?
7444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7446 cat >conftest.$ac_ext <<_ACEOF
7447 /* confdefs.h.  */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h.  */
7452 #include <$ac_header>
7453 _ACEOF
7454 if { (ac_try="$ac_cpp conftest.$ac_ext"
7455 case "(($ac_try" in
7456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457   *) ac_try_echo=$ac_try;;
7458 esac
7459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7461   ac_status=$?
7462   grep -v '^ *+' conftest.er1 >conftest.err
7463   rm -f conftest.er1
7464   cat conftest.err >&5
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); } >/dev/null && {
7467          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7468          test ! -s conftest.err
7469        }; then
7470   ac_header_preproc=yes
7471 else
7472   echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7474
7475   ac_header_preproc=no
7476 fi
7477
7478 rm -f conftest.err conftest.$ac_ext
7479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7480 echo "${ECHO_T}$ac_header_preproc" >&6; }
7481
7482 # So?  What about this header?
7483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7484   yes:no: )
7485     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7489     ac_header_preproc=yes
7490     ;;
7491   no:yes:* )
7492     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7494     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7495 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7496     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7498     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7499 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7502     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7504     ( cat <<\_ASBOX
7505 ## --------------------------------------------- ##
7506 ## Report this to <http://www.openldap.org/its/> ##
7507 ## --------------------------------------------- ##
7508 _ASBOX
7509      ) | sed "s/^/$as_me: WARNING:     /" >&2
7510     ;;
7511 esac
7512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515   echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517   eval "$as_ac_Header=\$ac_header_preproc"
7518 fi
7519 ac_res=`eval echo '${'$as_ac_Header'}'`
7520                { echo "$as_me:$LINENO: result: $ac_res" >&5
7521 echo "${ECHO_T}$ac_res" >&6; }
7522
7523 fi
7524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7525   cat >>confdefs.h <<_ACEOF
7526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7527 _ACEOF
7528
7529 fi
7530
7531 done
7532
7533
7534 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7535
7536 # find the maximum length of command line arguments
7537 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7538 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7539 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542     i=0
7543   teststring="ABCD"
7544
7545   case $build_os in
7546   msdosdjgpp*)
7547     # On DJGPP, this test can blow up pretty badly due to problems in libc
7548     # (any single argument exceeding 2000 bytes causes a buffer overrun
7549     # during glob expansion).  Even if it were fixed, the result of this
7550     # check would be larger than it should be.
7551     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7552     ;;
7553
7554   gnu*)
7555     # Under GNU Hurd, this test is not required because there is
7556     # no limit to the length of command line arguments.
7557     # Libtool will interpret -1 as no limit whatsoever
7558     lt_cv_sys_max_cmd_len=-1;
7559     ;;
7560
7561   cygwin* | mingw*)
7562     # On Win9x/ME, this test blows up -- it succeeds, but takes
7563     # about 5 minutes as the teststring grows exponentially.
7564     # Worse, since 9x/ME are not pre-emptively multitasking,
7565     # you end up with a "frozen" computer, even though with patience
7566     # the test eventually succeeds (with a max line length of 256k).
7567     # Instead, let's just punt: use the minimum linelength reported by
7568     # all of the supported platforms: 8192 (on NT/2K/XP).
7569     lt_cv_sys_max_cmd_len=8192;
7570     ;;
7571
7572   amigaos*)
7573     # On AmigaOS with pdksh, this test takes hours, literally.
7574     # So we just punt and use a minimum line length of 8192.
7575     lt_cv_sys_max_cmd_len=8192;
7576     ;;
7577
7578   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7579     # This has been around since 386BSD, at least.  Likely further.
7580     if test -x /sbin/sysctl; then
7581       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7582     elif test -x /usr/sbin/sysctl; then
7583       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7584     else
7585       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7586     fi
7587     # And add a safety zone
7588     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7589     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7590     ;;
7591   osf*)
7592     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7593     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7594     # nice to cause kernel panics so lets avoid the loop below.
7595     # First set a reasonable default.
7596     lt_cv_sys_max_cmd_len=16384
7597     #
7598     if test -x /sbin/sysconfig; then
7599       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7600         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7601       esac
7602     fi
7603     ;;
7604   *)
7605     # If test is not a shell built-in, we'll probably end up computing a
7606     # maximum length that is only half of the actual maximum length, but
7607     # we can't tell.
7608     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7609     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7610                = "XX$teststring") >/dev/null 2>&1 &&
7611             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7612             lt_cv_sys_max_cmd_len=$new_result &&
7613             test $i != 17 # 1/2 MB should be enough
7614     do
7615       i=`expr $i + 1`
7616       teststring=$teststring$teststring
7617     done
7618     teststring=
7619     # Add a significant safety factor because C++ compilers can tack on massive
7620     # amounts of additional arguments before passing them to the linker.
7621     # It appears as though 1/2 is a usable value.
7622     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7623     ;;
7624   esac
7625
7626 fi
7627
7628 if test -n $lt_cv_sys_max_cmd_len ; then
7629   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7630 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7631 else
7632   { echo "$as_me:$LINENO: result: none" >&5
7633 echo "${ECHO_T}none" >&6; }
7634 fi
7635
7636
7637
7638
7639 # Check for command to grab the raw symbol name followed by C symbol from nm.
7640 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7641 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7642 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7643   echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645
7646 # These are sane defaults that work on at least a few old systems.
7647 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7648
7649 # Character class describing NM global symbol codes.
7650 symcode='[BCDEGRST]'
7651
7652 # Regexp to match symbols that can be accessed directly from C.
7653 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7654
7655 # Transform an extracted symbol line into a proper C declaration
7656 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7657
7658 # Transform an extracted symbol line into symbol name and symbol address
7659 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7660
7661 # Define system-specific variables.
7662 case $host_os in
7663 aix*)
7664   symcode='[BCDT]'
7665   ;;
7666 cygwin* | mingw* | pw32*)
7667   symcode='[ABCDGISTW]'
7668   ;;
7669 hpux*) # Its linker distinguishes data from code symbols
7670   if test "$host_cpu" = ia64; then
7671     symcode='[ABCDEGRST]'
7672   fi
7673   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7674   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7675   ;;
7676 linux*)
7677   if test "$host_cpu" = ia64; then
7678     symcode='[ABCDGIRSTW]'
7679     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7680     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7681   fi
7682   ;;
7683 irix* | nonstopux*)
7684   symcode='[BCDEGRST]'
7685   ;;
7686 osf*)
7687   symcode='[BCDEGQRST]'
7688   ;;
7689 solaris* | sysv5*)
7690   symcode='[BDRT]'
7691   ;;
7692 sysv4)
7693   symcode='[DFNSTU]'
7694   ;;
7695 esac
7696
7697 # Handle CRLF in mingw tool chain
7698 opt_cr=
7699 case $build_os in
7700 mingw*)
7701   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7702   ;;
7703 esac
7704
7705 # If we're using GNU nm, then use its standard symbol codes.
7706 case `$NM -V 2>&1` in
7707 *GNU* | *'with BFD'*)
7708   symcode='[ABCDGIRSTW]' ;;
7709 esac
7710
7711 # Try without a prefix undercore, then with it.
7712 for ac_symprfx in "" "_"; do
7713
7714   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7715   symxfrm="\\1 $ac_symprfx\\2 \\2"
7716
7717   # Write the raw and C identifiers.
7718   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7719
7720   # Check to see that the pipe works correctly.
7721   pipe_works=no
7722
7723   rm -f conftest*
7724   cat > conftest.$ac_ext <<EOF
7725 #ifdef __cplusplus
7726 extern "C" {
7727 #endif
7728 char nm_test_var;
7729 void nm_test_func(){}
7730 #ifdef __cplusplus
7731 }
7732 #endif
7733 int main(){nm_test_var='a';nm_test_func();return(0);}
7734 EOF
7735
7736   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737   (eval $ac_compile) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); }; then
7741     # Now try to grab the symbols.
7742     nlist=conftest.nm
7743     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7744   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7745   ac_status=$?
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); } && test -s "$nlist"; then
7748       # Try sorting and uniquifying the output.
7749       if sort "$nlist" | uniq > "$nlist"T; then
7750         mv -f "$nlist"T "$nlist"
7751       else
7752         rm -f "$nlist"T
7753       fi
7754
7755       # Make sure that we snagged all the symbols we need.
7756       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7757         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7758           cat <<EOF > conftest.$ac_ext
7759 #ifdef __cplusplus
7760 extern "C" {
7761 #endif
7762
7763 EOF
7764           # Now generate the symbol file.
7765           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7766
7767           cat <<EOF >> conftest.$ac_ext
7768 #if defined (__STDC__) && __STDC__
7769 # define lt_ptr_t void *
7770 #else
7771 # define lt_ptr_t char *
7772 # define const
7773 #endif
7774
7775 /* The mapping between symbol names and symbols. */
7776 const struct {
7777   const char *name;
7778   lt_ptr_t address;
7779 }
7780 lt_preloaded_symbols[] =
7781 {
7782 EOF
7783           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7784           cat <<\EOF >> conftest.$ac_ext
7785   {0, (lt_ptr_t) 0}
7786 };
7787
7788 #ifdef __cplusplus
7789 }
7790 #endif
7791 EOF
7792           # Now try linking the two files.
7793           mv conftest.$ac_objext conftstm.$ac_objext
7794           lt_save_LIBS="$LIBS"
7795           lt_save_CFLAGS="$CFLAGS"
7796           LIBS="conftstm.$ac_objext"
7797           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7798           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7799   (eval $ac_link) 2>&5
7800   ac_status=$?
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7803             pipe_works=yes
7804           fi
7805           LIBS="$lt_save_LIBS"
7806           CFLAGS="$lt_save_CFLAGS"
7807         else
7808           echo "cannot find nm_test_func in $nlist" >&5
7809         fi
7810       else
7811         echo "cannot find nm_test_var in $nlist" >&5
7812       fi
7813     else
7814       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7815     fi
7816   else
7817     echo "$progname: failed program was:" >&5
7818     cat conftest.$ac_ext >&5
7819   fi
7820   rm -f conftest* conftst*
7821
7822   # Do not use the global_symbol_pipe unless it works.
7823   if test "$pipe_works" = yes; then
7824     break
7825   else
7826     lt_cv_sys_global_symbol_pipe=
7827   fi
7828 done
7829
7830 fi
7831
7832 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7833   lt_cv_sys_global_symbol_to_cdecl=
7834 fi
7835 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7836   { echo "$as_me:$LINENO: result: failed" >&5
7837 echo "${ECHO_T}failed" >&6; }
7838 else
7839   { echo "$as_me:$LINENO: result: ok" >&5
7840 echo "${ECHO_T}ok" >&6; }
7841 fi
7842
7843 { echo "$as_me:$LINENO: checking for objdir" >&5
7844 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7845 if test "${lt_cv_objdir+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   rm -f .libs 2>/dev/null
7849 mkdir .libs 2>/dev/null
7850 if test -d .libs; then
7851   lt_cv_objdir=.libs
7852 else
7853   # MS-DOS does not allow filenames that begin with a dot.
7854   lt_cv_objdir=_libs
7855 fi
7856 rmdir .libs 2>/dev/null
7857 fi
7858 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7859 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7860 objdir=$lt_cv_objdir
7861
7862
7863
7864
7865
7866 case $host_os in
7867 aix3*)
7868   # AIX sometimes has problems with the GCC collect2 program.  For some
7869   # reason, if we set the COLLECT_NAMES environment variable, the problems
7870   # vanish in a puff of smoke.
7871   if test "X${COLLECT_NAMES+set}" != Xset; then
7872     COLLECT_NAMES=
7873     export COLLECT_NAMES
7874   fi
7875   ;;
7876 esac
7877
7878 # Sed substitution that helps us do robust quoting.  It backslashifies
7879 # metacharacters that are still active within double-quoted strings.
7880 Xsed='sed -e 1s/^X//'
7881 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7882
7883 # Same as above, but do not quote variable references.
7884 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7885
7886 # Sed substitution to delay expansion of an escaped shell variable in a
7887 # double_quote_subst'ed string.
7888 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7889
7890 # Sed substitution to avoid accidental globbing in evaled expressions
7891 no_glob_subst='s/\*/\\\*/g'
7892
7893 # Constants:
7894 rm="rm -f"
7895
7896 # Global variables:
7897 default_ofile=libtool
7898 can_build_shared=yes
7899
7900 # All known linkers require a `.a' archive for static linking (except MSVC,
7901 # which needs '.lib').
7902 libext=a
7903 ltmain="$ac_aux_dir/ltmain.sh"
7904 ofile="$default_ofile"
7905 with_gnu_ld="$lt_cv_prog_gnu_ld"
7906
7907 if test -n "$ac_tool_prefix"; then
7908   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7909 set dummy ${ac_tool_prefix}ar; ac_word=$2
7910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7912 if test "${ac_cv_prog_AR+set}" = set; then
7913   echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915   if test -n "$AR"; then
7916   ac_cv_prog_AR="$AR" # Let the user override the test.
7917 else
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7920 do
7921   IFS=$as_save_IFS
7922   test -z "$as_dir" && as_dir=.
7923   for ac_exec_ext in '' $ac_executable_extensions; do
7924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925     ac_cv_prog_AR="${ac_tool_prefix}ar"
7926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927     break 2
7928   fi
7929 done
7930 done
7931 IFS=$as_save_IFS
7932
7933 fi
7934 fi
7935 AR=$ac_cv_prog_AR
7936 if test -n "$AR"; then
7937   { echo "$as_me:$LINENO: result: $AR" >&5
7938 echo "${ECHO_T}$AR" >&6; }
7939 else
7940   { echo "$as_me:$LINENO: result: no" >&5
7941 echo "${ECHO_T}no" >&6; }
7942 fi
7943
7944
7945 fi
7946 if test -z "$ac_cv_prog_AR"; then
7947   ac_ct_AR=$AR
7948   # Extract the first word of "ar", so it can be a program name with args.
7949 set dummy ar; ac_word=$2
7950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7952 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7953   echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955   if test -n "$ac_ct_AR"; then
7956   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961   IFS=$as_save_IFS
7962   test -z "$as_dir" && as_dir=.
7963   for ac_exec_ext in '' $ac_executable_extensions; do
7964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965     ac_cv_prog_ac_ct_AR="ar"
7966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967     break 2
7968   fi
7969 done
7970 done
7971 IFS=$as_save_IFS
7972
7973 fi
7974 fi
7975 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7976 if test -n "$ac_ct_AR"; then
7977   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7978 echo "${ECHO_T}$ac_ct_AR" >&6; }
7979 else
7980   { echo "$as_me:$LINENO: result: no" >&5
7981 echo "${ECHO_T}no" >&6; }
7982 fi
7983
7984   if test "x$ac_ct_AR" = x; then
7985     AR="false"
7986   else
7987     case $cross_compiling:$ac_tool_warned in
7988 yes:)
7989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7990 whose name does not start with the host triplet.  If you think this
7991 configuration is useful to you, please write to autoconf@gnu.org." >&5
7992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7993 whose name does not start with the host triplet.  If you think this
7994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7995 ac_tool_warned=yes ;;
7996 esac
7997     AR=$ac_ct_AR
7998   fi
7999 else
8000   AR="$ac_cv_prog_AR"
8001 fi
8002
8003 if test -n "$ac_tool_prefix"; then
8004   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8008 if test "${ac_cv_prog_RANLIB+set}" = set; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011   if test -n "$RANLIB"; then
8012   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8016 do
8017   IFS=$as_save_IFS
8018   test -z "$as_dir" && as_dir=.
8019   for ac_exec_ext in '' $ac_executable_extensions; do
8020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8021     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8023     break 2
8024   fi
8025 done
8026 done
8027 IFS=$as_save_IFS
8028
8029 fi
8030 fi
8031 RANLIB=$ac_cv_prog_RANLIB
8032 if test -n "$RANLIB"; then
8033   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8034 echo "${ECHO_T}$RANLIB" >&6; }
8035 else
8036   { echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6; }
8038 fi
8039
8040
8041 fi
8042 if test -z "$ac_cv_prog_RANLIB"; then
8043   ac_ct_RANLIB=$RANLIB
8044   # Extract the first word of "ranlib", so it can be a program name with args.
8045 set dummy ranlib; ac_word=$2
8046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8049   echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051   if test -n "$ac_ct_RANLIB"; then
8052   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8053 else
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH
8056 do
8057   IFS=$as_save_IFS
8058   test -z "$as_dir" && as_dir=.
8059   for ac_exec_ext in '' $ac_executable_extensions; do
8060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8061     ac_cv_prog_ac_ct_RANLIB="ranlib"
8062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063     break 2
8064   fi
8065 done
8066 done
8067 IFS=$as_save_IFS
8068
8069 fi
8070 fi
8071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8072 if test -n "$ac_ct_RANLIB"; then
8073   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8074 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8075 else
8076   { echo "$as_me:$LINENO: result: no" >&5
8077 echo "${ECHO_T}no" >&6; }
8078 fi
8079
8080   if test "x$ac_ct_RANLIB" = x; then
8081     RANLIB=":"
8082   else
8083     case $cross_compiling:$ac_tool_warned in
8084 yes:)
8085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8086 whose name does not start with the host triplet.  If you think this
8087 configuration is useful to you, please write to autoconf@gnu.org." >&5
8088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8089 whose name does not start with the host triplet.  If you think this
8090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8091 ac_tool_warned=yes ;;
8092 esac
8093     RANLIB=$ac_ct_RANLIB
8094   fi
8095 else
8096   RANLIB="$ac_cv_prog_RANLIB"
8097 fi
8098
8099 if test -n "$ac_tool_prefix"; then
8100   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8101 set dummy ${ac_tool_prefix}strip; ac_word=$2
8102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8104 if test "${ac_cv_prog_STRIP+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107   if test -n "$STRIP"; then
8108   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8112 do
8113   IFS=$as_save_IFS
8114   test -z "$as_dir" && as_dir=.
8115   for ac_exec_ext in '' $ac_executable_extensions; do
8116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119     break 2
8120   fi
8121 done
8122 done
8123 IFS=$as_save_IFS
8124
8125 fi
8126 fi
8127 STRIP=$ac_cv_prog_STRIP
8128 if test -n "$STRIP"; then
8129   { echo "$as_me:$LINENO: result: $STRIP" >&5
8130 echo "${ECHO_T}$STRIP" >&6; }
8131 else
8132   { echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6; }
8134 fi
8135
8136
8137 fi
8138 if test -z "$ac_cv_prog_STRIP"; then
8139   ac_ct_STRIP=$STRIP
8140   # Extract the first word of "strip", so it can be a program name with args.
8141 set dummy strip; ac_word=$2
8142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8144 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8145   echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147   if test -n "$ac_ct_STRIP"; then
8148   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8152 do
8153   IFS=$as_save_IFS
8154   test -z "$as_dir" && as_dir=.
8155   for ac_exec_ext in '' $ac_executable_extensions; do
8156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8157     ac_cv_prog_ac_ct_STRIP="strip"
8158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159     break 2
8160   fi
8161 done
8162 done
8163 IFS=$as_save_IFS
8164
8165 fi
8166 fi
8167 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8168 if test -n "$ac_ct_STRIP"; then
8169   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8170 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8171 else
8172   { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8174 fi
8175
8176   if test "x$ac_ct_STRIP" = x; then
8177     STRIP=":"
8178   else
8179     case $cross_compiling:$ac_tool_warned in
8180 yes:)
8181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8182 whose name does not start with the host triplet.  If you think this
8183 configuration is useful to you, please write to autoconf@gnu.org." >&5
8184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8185 whose name does not start with the host triplet.  If you think this
8186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8187 ac_tool_warned=yes ;;
8188 esac
8189     STRIP=$ac_ct_STRIP
8190   fi
8191 else
8192   STRIP="$ac_cv_prog_STRIP"
8193 fi
8194
8195
8196 old_CC="$CC"
8197 old_CFLAGS="$CFLAGS"
8198
8199 # Set sane defaults for various variables
8200 test -z "$AR" && AR=ar
8201 test -z "$AR_FLAGS" && AR_FLAGS=cru
8202 test -z "$AS" && AS=as
8203 test -z "$CC" && CC=cc
8204 test -z "$LTCC" && LTCC=$CC
8205 test -z "$DLLTOOL" && DLLTOOL=dlltool
8206 test -z "$LD" && LD=ld
8207 test -z "$LN_S" && LN_S="ln -s"
8208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8209 test -z "$NM" && NM=nm
8210 test -z "$SED" && SED=sed
8211 test -z "$OBJDUMP" && OBJDUMP=objdump
8212 test -z "$RANLIB" && RANLIB=:
8213 test -z "$STRIP" && STRIP=:
8214 test -z "$ac_objext" && ac_objext=o
8215
8216 # Determine commands to create old-style static archives.
8217 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8218 old_postinstall_cmds='chmod 644 $oldlib'
8219 old_postuninstall_cmds=
8220
8221 if test -n "$RANLIB"; then
8222   case $host_os in
8223   openbsd*)
8224     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8225     ;;
8226   *)
8227     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8228     ;;
8229   esac
8230   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8231 fi
8232
8233 for cc_temp in $compiler""; do
8234   case $cc_temp in
8235     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8236     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8237     \-*) ;;
8238     *) break;;
8239   esac
8240 done
8241 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8242
8243
8244 # Only perform the check for file, if the check method requires it
8245 case $deplibs_check_method in
8246 file_magic*)
8247   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8248     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8249 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8250 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   case $MAGIC_CMD in
8254 [\\/*] |  ?:[\\/]*)
8255   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8256   ;;
8257 *)
8258   lt_save_MAGIC_CMD="$MAGIC_CMD"
8259   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8260   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8261   for ac_dir in $ac_dummy; do
8262     IFS="$lt_save_ifs"
8263     test -z "$ac_dir" && ac_dir=.
8264     if test -f $ac_dir/${ac_tool_prefix}file; then
8265       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8266       if test -n "$file_magic_test_file"; then
8267         case $deplibs_check_method in
8268         "file_magic "*)
8269           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8270           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8271           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8272             $EGREP "$file_magic_regex" > /dev/null; then
8273             :
8274           else
8275             cat <<EOF 1>&2
8276
8277 *** Warning: the command libtool uses to detect shared libraries,
8278 *** $file_magic_cmd, produces output that libtool cannot recognize.
8279 *** The result is that libtool may fail to recognize shared libraries
8280 *** as such.  This will affect the creation of libtool libraries that
8281 *** depend on shared libraries, but programs linked with such libtool
8282 *** libraries will work regardless of this problem.  Nevertheless, you
8283 *** may want to report the problem to your system manager and/or to
8284 *** bug-libtool@gnu.org
8285
8286 EOF
8287           fi ;;
8288         esac
8289       fi
8290       break
8291     fi
8292   done
8293   IFS="$lt_save_ifs"
8294   MAGIC_CMD="$lt_save_MAGIC_CMD"
8295   ;;
8296 esac
8297 fi
8298
8299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8300 if test -n "$MAGIC_CMD"; then
8301   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8302 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8303 else
8304   { echo "$as_me:$LINENO: result: no" >&5
8305 echo "${ECHO_T}no" >&6; }
8306 fi
8307
8308 if test -z "$lt_cv_path_MAGIC_CMD"; then
8309   if test -n "$ac_tool_prefix"; then
8310     { echo "$as_me:$LINENO: checking for file" >&5
8311 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8312 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   case $MAGIC_CMD in
8316 [\\/*] |  ?:[\\/]*)
8317   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8318   ;;
8319 *)
8320   lt_save_MAGIC_CMD="$MAGIC_CMD"
8321   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8322   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8323   for ac_dir in $ac_dummy; do
8324     IFS="$lt_save_ifs"
8325     test -z "$ac_dir" && ac_dir=.
8326     if test -f $ac_dir/file; then
8327       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8328       if test -n "$file_magic_test_file"; then
8329         case $deplibs_check_method in
8330         "file_magic "*)
8331           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8332           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8333           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8334             $EGREP "$file_magic_regex" > /dev/null; then
8335             :
8336           else
8337             cat <<EOF 1>&2
8338
8339 *** Warning: the command libtool uses to detect shared libraries,
8340 *** $file_magic_cmd, produces output that libtool cannot recognize.
8341 *** The result is that libtool may fail to recognize shared libraries
8342 *** as such.  This will affect the creation of libtool libraries that
8343 *** depend on shared libraries, but programs linked with such libtool
8344 *** libraries will work regardless of this problem.  Nevertheless, you
8345 *** may want to report the problem to your system manager and/or to
8346 *** bug-libtool@gnu.org
8347
8348 EOF
8349           fi ;;
8350         esac
8351       fi
8352       break
8353     fi
8354   done
8355   IFS="$lt_save_ifs"
8356   MAGIC_CMD="$lt_save_MAGIC_CMD"
8357   ;;
8358 esac
8359 fi
8360
8361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8362 if test -n "$MAGIC_CMD"; then
8363   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8364 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8365 else
8366   { echo "$as_me:$LINENO: result: no" >&5
8367 echo "${ECHO_T}no" >&6; }
8368 fi
8369
8370   else
8371     MAGIC_CMD=:
8372   fi
8373 fi
8374
8375   fi
8376   ;;
8377 esac
8378
8379 enable_dlopen=yes
8380 enable_win32_dll=yes
8381
8382 # Check whether --enable-libtool-lock was given.
8383 if test "${enable_libtool_lock+set}" = set; then
8384   enableval=$enable_libtool_lock;
8385 fi
8386
8387 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8388
8389
8390 # Check whether --with-pic was given.
8391 if test "${with_pic+set}" = set; then
8392   withval=$with_pic; pic_mode="$withval"
8393 else
8394   pic_mode=default
8395 fi
8396
8397 test -z "$pic_mode" && pic_mode=default
8398
8399 # Use C for the default configuration in the libtool script
8400 tagname=
8401 lt_save_CC="$CC"
8402 ac_ext=c
8403 ac_cpp='$CPP $CPPFLAGS'
8404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8407
8408
8409 # Source file extension for C test sources.
8410 ac_ext=c
8411
8412 # Object file extension for compiled C test sources.
8413 objext=o
8414 objext=$objext
8415
8416 # Code to be used in simple compile tests
8417 lt_simple_compile_test_code="int some_variable = 0;\n"
8418
8419 # Code to be used in simple link tests
8420 lt_simple_link_test_code='int main(){return(0);}\n'
8421
8422
8423 # If no C compiler was specified, use CC.
8424 LTCC=${LTCC-"$CC"}
8425
8426 # Allow CC to be a program name with arguments.
8427 compiler=$CC
8428
8429
8430 # save warnings/boilerplate of simple test code
8431 ac_outfile=conftest.$ac_objext
8432 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8433 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8434 _lt_compiler_boilerplate=`cat conftest.err`
8435 $rm conftest*
8436
8437 ac_outfile=conftest.$ac_objext
8438 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8439 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8440 _lt_linker_boilerplate=`cat conftest.err`
8441 $rm conftest*
8442
8443
8444 #
8445 # Check for any special shared library compilation flags.
8446 #
8447 lt_prog_cc_shlib=
8448 if test "$GCC" = no; then
8449   case $host_os in
8450   sco3.2v5*)
8451     lt_prog_cc_shlib='-belf'
8452     ;;
8453   esac
8454 fi
8455 if test -n "$lt_prog_cc_shlib"; then
8456   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8457 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8458   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8459   else
8460     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8461 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8462     lt_cv_prog_cc_can_build_shared=no
8463   fi
8464 fi
8465
8466
8467 #
8468 # Check to make sure the static flag actually works.
8469 #
8470 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8471 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8472 if test "${lt_prog_compiler_static_works+set}" = set; then
8473   echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475   lt_prog_compiler_static_works=no
8476    save_LDFLAGS="$LDFLAGS"
8477    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8478    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8479    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8480      # The linker can only warn and ignore the option if not recognized
8481      # So say no if there are warnings
8482      if test -s conftest.err; then
8483        # Append any errors to the config.log.
8484        cat conftest.err 1>&5
8485        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8486        $SED '/^$/d' conftest.err >conftest.er2
8487        if diff conftest.exp conftest.er2 >/dev/null; then
8488          lt_prog_compiler_static_works=yes
8489        fi
8490      else
8491        lt_prog_compiler_static_works=yes
8492      fi
8493    fi
8494    $rm conftest*
8495    LDFLAGS="$save_LDFLAGS"
8496
8497 fi
8498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8499 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8500
8501 if test x"$lt_prog_compiler_static_works" = xyes; then
8502     :
8503 else
8504     lt_prog_compiler_static=
8505 fi
8506
8507
8508
8509
8510 lt_prog_compiler_no_builtin_flag=
8511
8512 if test "$GCC" = yes; then
8513   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8514
8515
8516 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8517 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8518 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8519   echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521   lt_cv_prog_compiler_rtti_exceptions=no
8522   ac_outfile=conftest.$ac_objext
8523    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8524    lt_compiler_flag="-fno-rtti -fno-exceptions"
8525    # Insert the option either (1) after the last *FLAGS variable, or
8526    # (2) before a word containing "conftest.", or (3) at the end.
8527    # Note that $ac_compile itself does not contain backslashes and begins
8528    # with a dollar sign (not a hyphen), so the echo should work correctly.
8529    # The option is referenced via a variable to avoid confusing sed.
8530    lt_compile=`echo "$ac_compile" | $SED \
8531    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8532    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8533    -e 's:$: $lt_compiler_flag:'`
8534    (eval echo "\"\$as_me:8534: $lt_compile\"" >&5)
8535    (eval "$lt_compile" 2>conftest.err)
8536    ac_status=$?
8537    cat conftest.err >&5
8538    echo "$as_me:8538: \$? = $ac_status" >&5
8539    if (exit $ac_status) && test -s "$ac_outfile"; then
8540      # The compiler can only warn and ignore the option if not recognized
8541      # So say no if there are warnings other than the usual output.
8542      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8543      $SED '/^$/d' conftest.err >conftest.er2
8544      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8545        lt_cv_prog_compiler_rtti_exceptions=yes
8546      fi
8547    fi
8548    $rm conftest*
8549
8550 fi
8551 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8552 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8553
8554 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8555     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8556 else
8557     :
8558 fi
8559
8560 fi
8561
8562 lt_prog_compiler_wl=
8563 lt_prog_compiler_pic=
8564 lt_prog_compiler_static=
8565
8566 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8567 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8568
8569   if test "$GCC" = yes; then
8570     lt_prog_compiler_wl='-Wl,'
8571     lt_prog_compiler_static='-static'
8572
8573     case $host_os in
8574       aix*)
8575       # All AIX code is PIC.
8576       if test "$host_cpu" = ia64; then
8577         # AIX 5 now supports IA64 processor
8578         lt_prog_compiler_static='-Bstatic'
8579       fi
8580       ;;
8581
8582     amigaos*)
8583       # FIXME: we need at least 68020 code to build shared libraries, but
8584       # adding the `-m68020' flag to GCC prevents building anything better,
8585       # like `-m68040'.
8586       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8587       ;;
8588
8589     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8590       # PIC is the default for these OSes.
8591       ;;
8592
8593     mingw* | pw32* | os2*)
8594       # This hack is so that the source file can tell whether it is being
8595       # built for inclusion in a dll (and should export symbols for example).
8596       lt_prog_compiler_pic='-DDLL_EXPORT'
8597       ;;
8598
8599     darwin* | rhapsody*)
8600       # PIC is the default on this platform
8601       # Common symbols not allowed in MH_DYLIB files
8602       lt_prog_compiler_pic='-fno-common'
8603       ;;
8604
8605     msdosdjgpp*)
8606       # Just because we use GCC doesn't mean we suddenly get shared libraries
8607       # on systems that don't support them.
8608       lt_prog_compiler_can_build_shared=no
8609       enable_shared=no
8610       ;;
8611
8612     sysv4*MP*)
8613       if test -d /usr/nec; then
8614         lt_prog_compiler_pic=-Kconform_pic
8615       fi
8616       ;;
8617
8618     hpux*)
8619       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8620       # not for PA HP-UX.
8621       case $host_cpu in
8622       hppa*64*|ia64*)
8623         # +Z the default
8624         ;;
8625       *)
8626         lt_prog_compiler_pic='-fPIC'
8627         ;;
8628       esac
8629       ;;
8630
8631     *)
8632       lt_prog_compiler_pic='-fPIC'
8633       ;;
8634     esac
8635   else
8636     # PORTME Check for flag to pass linker flags through the system compiler.
8637     case $host_os in
8638     aix*)
8639       lt_prog_compiler_wl='-Wl,'
8640       if test "$host_cpu" = ia64; then
8641         # AIX 5 now supports IA64 processor
8642         lt_prog_compiler_static='-Bstatic'
8643       else
8644         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8645       fi
8646       ;;
8647       darwin*)
8648         # PIC is the default on this platform
8649         # Common symbols not allowed in MH_DYLIB files
8650        case $cc_basename in
8651          xlc*)
8652          lt_prog_compiler_pic='-qnocommon'
8653          lt_prog_compiler_wl='-Wl,'
8654          ;;
8655        esac
8656        ;;
8657
8658     mingw* | pw32* | os2*)
8659       # This hack is so that the source file can tell whether it is being
8660       # built for inclusion in a dll (and should export symbols for example).
8661       lt_prog_compiler_pic='-DDLL_EXPORT'
8662       ;;
8663
8664     hpux9* | hpux10* | hpux11*)
8665       lt_prog_compiler_wl='-Wl,'
8666       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8667       # not for PA HP-UX.
8668       case $host_cpu in
8669       hppa*64*|ia64*)
8670         # +Z the default
8671         ;;
8672       *)
8673         lt_prog_compiler_pic='+Z'
8674         ;;
8675       esac
8676       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8677       lt_prog_compiler_static='${wl}-a ${wl}archive'
8678       ;;
8679
8680     irix5* | irix6* | nonstopux*)
8681       lt_prog_compiler_wl='-Wl,'
8682       # PIC (with -KPIC) is the default.
8683       lt_prog_compiler_static='-non_shared'
8684       ;;
8685
8686     newsos6)
8687       lt_prog_compiler_pic='-KPIC'
8688       lt_prog_compiler_static='-Bstatic'
8689       ;;
8690
8691     linux*)
8692       case $cc_basename in
8693       icc* | ecc*)
8694         lt_prog_compiler_wl='-Wl,'
8695         lt_prog_compiler_pic='-KPIC'
8696         lt_prog_compiler_static='-static'
8697         ;;
8698       pgcc* | pgf77* | pgf90* | pgf95*)
8699         # Portland Group compilers (*not* the Pentium gcc compiler,
8700         # which looks to be a dead project)
8701         lt_prog_compiler_wl='-Wl,'
8702         lt_prog_compiler_pic='-fpic'
8703         lt_prog_compiler_static='-Bstatic'
8704         ;;
8705       ccc*)
8706         lt_prog_compiler_wl='-Wl,'
8707         # All Alpha code is PIC.
8708         lt_prog_compiler_static='-non_shared'
8709         ;;
8710       esac
8711       ;;
8712
8713     osf3* | osf4* | osf5*)
8714       lt_prog_compiler_wl='-Wl,'
8715       # All OSF/1 code is PIC.
8716       lt_prog_compiler_static='-non_shared'
8717       ;;
8718
8719     sco3.2v5*)
8720       lt_prog_compiler_pic='-Kpic'
8721       lt_prog_compiler_static='-dn'
8722       ;;
8723
8724     solaris*)
8725       lt_prog_compiler_pic='-KPIC'
8726       lt_prog_compiler_static='-Bstatic'
8727       case $cc_basename in
8728       f77* | f90* | f95*)
8729         lt_prog_compiler_wl='-Qoption ld ';;
8730       *)
8731         lt_prog_compiler_wl='-Wl,';;
8732       esac
8733       ;;
8734
8735     sunos4*)
8736       lt_prog_compiler_wl='-Qoption ld '
8737       lt_prog_compiler_pic='-PIC'
8738       lt_prog_compiler_static='-Bstatic'
8739       ;;
8740
8741     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8742       lt_prog_compiler_wl='-Wl,'
8743       lt_prog_compiler_pic='-KPIC'
8744       lt_prog_compiler_static='-Bstatic'
8745       ;;
8746
8747     sysv4*MP*)
8748       if test -d /usr/nec ;then
8749         lt_prog_compiler_pic='-Kconform_pic'
8750         lt_prog_compiler_static='-Bstatic'
8751       fi
8752       ;;
8753
8754     unicos*)
8755       lt_prog_compiler_wl='-Wl,'
8756       lt_prog_compiler_can_build_shared=no
8757       ;;
8758
8759     uts4*)
8760       lt_prog_compiler_pic='-pic'
8761       lt_prog_compiler_static='-Bstatic'
8762       ;;
8763
8764     *)
8765       lt_prog_compiler_can_build_shared=no
8766       ;;
8767     esac
8768   fi
8769
8770 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8771 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8772
8773 #
8774 # Check to make sure the PIC flag actually works.
8775 #
8776 if test -n "$lt_prog_compiler_pic"; then
8777
8778 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8780 if test "${lt_prog_compiler_pic_works+set}" = set; then
8781   echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783   lt_prog_compiler_pic_works=no
8784   ac_outfile=conftest.$ac_objext
8785    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8786    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8787    # Insert the option either (1) after the last *FLAGS variable, or
8788    # (2) before a word containing "conftest.", or (3) at the end.
8789    # Note that $ac_compile itself does not contain backslashes and begins
8790    # with a dollar sign (not a hyphen), so the echo should work correctly.
8791    # The option is referenced via a variable to avoid confusing sed.
8792    lt_compile=`echo "$ac_compile" | $SED \
8793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8795    -e 's:$: $lt_compiler_flag:'`
8796    (eval echo "\"\$as_me:8796: $lt_compile\"" >&5)
8797    (eval "$lt_compile" 2>conftest.err)
8798    ac_status=$?
8799    cat conftest.err >&5
8800    echo "$as_me:8800: \$? = $ac_status" >&5
8801    if (exit $ac_status) && test -s "$ac_outfile"; then
8802      # The compiler can only warn and ignore the option if not recognized
8803      # So say no if there are warnings other than the usual output.
8804      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8805      $SED '/^$/d' conftest.err >conftest.er2
8806      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8807        lt_prog_compiler_pic_works=yes
8808      fi
8809    fi
8810    $rm conftest*
8811
8812 fi
8813 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8814 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8815
8816 if test x"$lt_prog_compiler_pic_works" = xyes; then
8817     case $lt_prog_compiler_pic in
8818      "" | " "*) ;;
8819      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8820      esac
8821 else
8822     lt_prog_compiler_pic=
8823      lt_prog_compiler_can_build_shared=no
8824 fi
8825
8826 fi
8827 case $host_os in
8828   # For platforms which do not support PIC, -DPIC is meaningless:
8829   *djgpp*)
8830     lt_prog_compiler_pic=
8831     ;;
8832   *)
8833     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8834     ;;
8835 esac
8836
8837 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8838 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8839 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8840   echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842   lt_cv_prog_compiler_c_o=no
8843    $rm -r conftest 2>/dev/null
8844    mkdir conftest
8845    cd conftest
8846    mkdir out
8847    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8848
8849    lt_compiler_flag="-o out/conftest2.$ac_objext"
8850    # Insert the option either (1) after the last *FLAGS variable, or
8851    # (2) before a word containing "conftest.", or (3) at the end.
8852    # Note that $ac_compile itself does not contain backslashes and begins
8853    # with a dollar sign (not a hyphen), so the echo should work correctly.
8854    lt_compile=`echo "$ac_compile" | $SED \
8855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857    -e 's:$: $lt_compiler_flag:'`
8858    (eval echo "\"\$as_me:8858: $lt_compile\"" >&5)
8859    (eval "$lt_compile" 2>out/conftest.err)
8860    ac_status=$?
8861    cat out/conftest.err >&5
8862    echo "$as_me:8862: \$? = $ac_status" >&5
8863    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8864    then
8865      # The compiler can only warn and ignore the option if not recognized
8866      # So say no if there are warnings
8867      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8868      $SED '/^$/d' out/conftest.err >out/conftest.er2
8869      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8870        lt_cv_prog_compiler_c_o=yes
8871      fi
8872    fi
8873    chmod u+w . 2>&5
8874    $rm conftest*
8875    # SGI C++ compiler will create directory out/ii_files/ for
8876    # template instantiation
8877    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8878    $rm out/* && rmdir out
8879    cd ..
8880    rmdir conftest
8881    $rm conftest*
8882
8883 fi
8884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8885 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8886
8887
8888 hard_links="nottested"
8889 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8890   # do not overwrite the value of need_locks provided by the user
8891   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8892 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8893   hard_links=yes
8894   $rm conftest*
8895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8896   touch conftest.a
8897   ln conftest.a conftest.b 2>&5 || hard_links=no
8898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899   { echo "$as_me:$LINENO: result: $hard_links" >&5
8900 echo "${ECHO_T}$hard_links" >&6; }
8901   if test "$hard_links" = no; then
8902     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8903 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8904     need_locks=warn
8905   fi
8906 else
8907   need_locks=no
8908 fi
8909
8910 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8911 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8912
8913   runpath_var=
8914   allow_undefined_flag=
8915   enable_shared_with_static_runtimes=no
8916   archive_cmds=
8917   archive_expsym_cmds=
8918   old_archive_From_new_cmds=
8919   old_archive_from_expsyms_cmds=
8920   export_dynamic_flag_spec=
8921   whole_archive_flag_spec=
8922   thread_safe_flag_spec=
8923   hardcode_libdir_flag_spec=
8924   hardcode_libdir_flag_spec_ld=
8925   hardcode_libdir_separator=
8926   hardcode_direct=no
8927   hardcode_minus_L=no
8928   hardcode_shlibpath_var=unsupported
8929   link_all_deplibs=unknown
8930   hardcode_automatic=no
8931   module_cmds=
8932   module_expsym_cmds=
8933   always_export_symbols=no
8934   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8935   # include_expsyms should be a list of space-separated symbols to be *always*
8936   # included in the symbol list
8937   include_expsyms=
8938   # exclude_expsyms can be an extended regexp of symbols to exclude
8939   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8940   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8941   # as well as any symbol that contains `d'.
8942   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8943   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8944   # platforms (ab)use it in PIC code, but their linkers get confused if
8945   # the symbol is explicitly referenced.  Since portable code cannot
8946   # rely on this symbol name, it's probably fine to never include it in
8947   # preloaded symbol tables.
8948   extract_expsyms_cmds=
8949   # Just being paranoid about ensuring that cc_basename is set.
8950   for cc_temp in $compiler""; do
8951   case $cc_temp in
8952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8954     \-*) ;;
8955     *) break;;
8956   esac
8957 done
8958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8959
8960   case $host_os in
8961   cygwin* | mingw* | pw32*)
8962     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8963     # When not using gcc, we currently assume that we are using
8964     # Microsoft Visual C++.
8965     if test "$GCC" != yes; then
8966       with_gnu_ld=no
8967     fi
8968     ;;
8969   openbsd*)
8970     with_gnu_ld=no
8971     ;;
8972   esac
8973
8974   ld_shlibs=yes
8975   if test "$with_gnu_ld" = yes; then
8976     # If archive_cmds runs LD, not CC, wlarc should be empty
8977     wlarc='${wl}'
8978
8979     # Set some defaults for GNU ld with shared library support. These
8980     # are reset later if shared libraries are not supported. Putting them
8981     # here allows them to be overridden if necessary.
8982     runpath_var=LD_RUN_PATH
8983     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8984     export_dynamic_flag_spec='${wl}--export-dynamic'
8985     # ancient GNU ld didn't support --whole-archive et. al.
8986     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8987         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8988       else
8989         whole_archive_flag_spec=
8990     fi
8991     supports_anon_versioning=no
8992     case `$LD -v 2>/dev/null` in
8993       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8994       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8995       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8996       *\ 2.11.*) ;; # other 2.11 versions
8997       *) supports_anon_versioning=yes ;;
8998     esac
8999
9000     # See if GNU ld supports shared libraries.
9001     case $host_os in
9002     aix3* | aix4* | aix5*)
9003       # On AIX/PPC, the GNU linker is very broken
9004       if test "$host_cpu" != ia64; then
9005         ld_shlibs=no
9006         cat <<EOF 1>&2
9007
9008 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9009 *** to be unable to reliably create shared libraries on AIX.
9010 *** Therefore, libtool is disabling shared libraries support.  If you
9011 *** really care for shared libraries, you may want to modify your PATH
9012 *** so that a non-GNU linker is found, and then restart.
9013
9014 EOF
9015       fi
9016       ;;
9017
9018     amigaos*)
9019       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9020       hardcode_libdir_flag_spec='-L$libdir'
9021       hardcode_minus_L=yes
9022
9023       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9024       # that the semantics of dynamic libraries on AmigaOS, at least up
9025       # to version 4, is to share data among multiple programs linked
9026       # with the same dynamic library.  Since this doesn't match the
9027       # behavior of shared libraries on other platforms, we can't use
9028       # them.
9029       ld_shlibs=no
9030       ;;
9031
9032     beos*)
9033       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9034         allow_undefined_flag=unsupported
9035         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9036         # support --undefined.  This deserves some investigation.  FIXME
9037         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038       else
9039         ld_shlibs=no
9040       fi
9041       ;;
9042
9043     cygwin* | mingw* | pw32*)
9044       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9045       # as there is no search path for DLLs.
9046       hardcode_libdir_flag_spec='-L$libdir'
9047       allow_undefined_flag=unsupported
9048       always_export_symbols=no
9049       enable_shared_with_static_runtimes=yes
9050       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9051
9052       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9053         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9054         # If the export-symbols file already is a .def file (1st line
9055         # is EXPORTS), use it as is; otherwise, prepend...
9056         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9057           cp $export_symbols $output_objdir/$soname.def;
9058         else
9059           echo EXPORTS > $output_objdir/$soname.def;
9060           cat $export_symbols >> $output_objdir/$soname.def;
9061         fi~
9062         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9063       else
9064         ld_shlibs=no
9065       fi
9066       ;;
9067
9068     linux*)
9069       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9070         tmp_addflag=
9071         case $cc_basename,$host_cpu in
9072         pgcc*)                          # Portland Group C compiler
9073           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9074           tmp_addflag=' $pic_flag'
9075           ;;
9076         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9077           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9078           tmp_addflag=' $pic_flag -Mnomain' ;;
9079         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9080           tmp_addflag=' -i_dynamic' ;;
9081         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9082           tmp_addflag=' -i_dynamic -nofor_main' ;;
9083         ifc* | ifort*)                  # Intel Fortran compiler
9084           tmp_addflag=' -nofor_main' ;;
9085         esac
9086         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087
9088         if test $supports_anon_versioning = yes; then
9089           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9090   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9091   $echo "local: *; };" >> $output_objdir/$libname.ver~
9092           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9093         fi
9094       else
9095         ld_shlibs=no
9096       fi
9097       ;;
9098
9099     netbsd*)
9100       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9101         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9102         wlarc=
9103       else
9104         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9106       fi
9107       ;;
9108
9109     solaris* | sysv5*)
9110       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9111         ld_shlibs=no
9112         cat <<EOF 1>&2
9113
9114 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9115 *** create shared libraries on Solaris systems.  Therefore, libtool
9116 *** is disabling shared libraries support.  We urge you to upgrade GNU
9117 *** binutils to release 2.9.1 or newer.  Another option is to modify
9118 *** your PATH or compiler configuration so that the native linker is
9119 *** used, and then restart.
9120
9121 EOF
9122       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9123         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9124         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9125       else
9126         ld_shlibs=no
9127       fi
9128       ;;
9129
9130     sunos4*)
9131       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9132       wlarc=
9133       hardcode_direct=yes
9134       hardcode_shlibpath_var=no
9135       ;;
9136
9137     *)
9138       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9141       else
9142         ld_shlibs=no
9143       fi
9144       ;;
9145     esac
9146
9147     if test "$ld_shlibs" = no; then
9148       runpath_var=
9149       hardcode_libdir_flag_spec=
9150       export_dynamic_flag_spec=
9151       whole_archive_flag_spec=
9152     fi
9153   else
9154     # PORTME fill in a description of your system's linker (not GNU ld)
9155     case $host_os in
9156     aix3*)
9157       allow_undefined_flag=unsupported
9158       always_export_symbols=yes
9159       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9160       # Note: this linker hardcodes the directories in LIBPATH if there
9161       # are no directories specified by -L.
9162       hardcode_minus_L=yes
9163       if test "$GCC" = yes && test -z "$link_static_flag"; then
9164         # Neither direct hardcoding nor static linking is supported with a
9165         # broken collect2.
9166         hardcode_direct=unsupported
9167       fi
9168       ;;
9169
9170     aix4* | aix5*)
9171       if test "$host_cpu" = ia64; then
9172         # On IA64, the linker does run time linking by default, so we don't
9173         # have to do anything special.
9174         aix_use_runtimelinking=no
9175         exp_sym_flag='-Bexport'
9176         no_entry_flag=""
9177       else
9178         # If we're using GNU nm, then we don't want the "-C" option.
9179         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9180         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9181           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9182         else
9183           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9184         fi
9185         aix_use_runtimelinking=no
9186
9187         # Test if we are trying to use run time linking or normal
9188         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9189         # need to do runtime linking.
9190         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9191           for ld_flag in $LDFLAGS; do
9192           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9193             aix_use_runtimelinking=yes
9194             break
9195           fi
9196           done
9197         esac
9198
9199         exp_sym_flag='-bexport'
9200         no_entry_flag='-bnoentry'
9201       fi
9202
9203       # When large executables or shared objects are built, AIX ld can
9204       # have problems creating the table of contents.  If linking a library
9205       # or program results in "error TOC overflow" add -mminimal-toc to
9206       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9207       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9208
9209       archive_cmds=''
9210       hardcode_direct=yes
9211       hardcode_libdir_separator=':'
9212       link_all_deplibs=yes
9213
9214       if test "$GCC" = yes; then
9215         case $host_os in aix4.[012]|aix4.[012].*)
9216         # We only want to do this on AIX 4.2 and lower, the check
9217         # below for broken collect2 doesn't work under 4.3+
9218           collect2name=`${CC} -print-prog-name=collect2`
9219           if test -f "$collect2name" && \
9220            strings "$collect2name" | grep resolve_lib_name >/dev/null
9221           then
9222           # We have reworked collect2
9223           hardcode_direct=yes
9224           else
9225           # We have old collect2
9226           hardcode_direct=unsupported
9227           # It fails to find uninstalled libraries when the uninstalled
9228           # path is not listed in the libpath.  Setting hardcode_minus_L
9229           # to unsupported forces relinking
9230           hardcode_minus_L=yes
9231           hardcode_libdir_flag_spec='-L$libdir'
9232           hardcode_libdir_separator=
9233           fi
9234         esac
9235         shared_flag='-shared'
9236         if test "$aix_use_runtimelinking" = yes; then
9237           shared_flag="$shared_flag "'${wl}-G'
9238         fi
9239       else
9240         # not using gcc
9241         if test "$host_cpu" = ia64; then
9242         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9243         # chokes on -Wl,-G. The following line is correct:
9244           shared_flag='-G'
9245         else
9246         if test "$aix_use_runtimelinking" = yes; then
9247             shared_flag='${wl}-G'
9248           else
9249             shared_flag='${wl}-bM:SRE'
9250         fi
9251         fi
9252       fi
9253
9254       # It seems that -bexpall does not export symbols beginning with
9255       # underscore (_), so it is better to generate a list of symbols to export.
9256       always_export_symbols=yes
9257       if test "$aix_use_runtimelinking" = yes; then
9258         # Warning - without using the other runtime loading flags (-brtl),
9259         # -berok will link without error, but may produce a broken library.
9260         allow_undefined_flag='-berok'
9261        # Determine the default libpath from the value encoded in an empty executable.
9262        cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h.  */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h.  */
9268
9269 int
9270 main ()
9271 {
9272
9273   ;
9274   return 0;
9275 }
9276 _ACEOF
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (ac_try="$ac_link"
9279 case "(($ac_try" in
9280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281   *) ac_try_echo=$ac_try;;
9282 esac
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284   (eval "$ac_link") 2>conftest.er1
9285   ac_status=$?
9286   grep -v '^ *+' conftest.er1 >conftest.err
9287   rm -f conftest.er1
9288   cat conftest.err >&5
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); } && {
9291          test -z "$ac_c_werror_flag" ||
9292          test ! -s conftest.err
9293        } && test -s conftest$ac_exeext &&
9294        $as_test_x conftest$ac_exeext; then
9295
9296 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9297 }'`
9298 # Check for a 64-bit object if we didn't find anything.
9299 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9300 }'`; fi
9301 else
9302   echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9304
9305
9306 fi
9307
9308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9309       conftest$ac_exeext conftest.$ac_ext
9310 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9311
9312        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9313         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9314        else
9315         if test "$host_cpu" = ia64; then
9316           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9317           allow_undefined_flag="-z nodefs"
9318           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9319         else
9320          # Determine the default libpath from the value encoded in an empty executable.
9321          cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327
9328 int
9329 main ()
9330 {
9331
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (ac_try="$ac_link"
9338 case "(($ac_try" in
9339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340   *) ac_try_echo=$ac_try;;
9341 esac
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343   (eval "$ac_link") 2>conftest.er1
9344   ac_status=$?
9345   grep -v '^ *+' conftest.er1 >conftest.err
9346   rm -f conftest.er1
9347   cat conftest.err >&5
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); } && {
9350          test -z "$ac_c_werror_flag" ||
9351          test ! -s conftest.err
9352        } && test -s conftest$ac_exeext &&
9353        $as_test_x conftest$ac_exeext; then
9354
9355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9356 }'`
9357 # Check for a 64-bit object if we didn't find anything.
9358 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9359 }'`; fi
9360 else
9361   echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364
9365 fi
9366
9367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9368       conftest$ac_exeext conftest.$ac_ext
9369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9370
9371          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9372           # Warning - without using the other run time loading flags,
9373           # -berok will link without error, but may produce a broken library.
9374           no_undefined_flag=' ${wl}-bernotok'
9375           allow_undefined_flag=' ${wl}-berok'
9376           # -bexpall does not export symbols beginning with underscore (_)
9377           always_export_symbols=yes
9378           # Exported symbols can be pulled into shared objects from archives
9379           whole_archive_flag_spec=' '
9380           archive_cmds_need_lc=yes
9381           # This is similar to how AIX traditionally builds its shared libraries.
9382           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9383         fi
9384       fi
9385       ;;
9386
9387     amigaos*)
9388       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9389       hardcode_libdir_flag_spec='-L$libdir'
9390       hardcode_minus_L=yes
9391       # see comment about different semantics on the GNU ld section
9392       ld_shlibs=no
9393       ;;
9394
9395     bsdi[45]*)
9396       export_dynamic_flag_spec=-rdynamic
9397       ;;
9398
9399     cygwin* | mingw* | pw32*)
9400       # When not using gcc, we currently assume that we are using
9401       # Microsoft Visual C++.
9402       # hardcode_libdir_flag_spec is actually meaningless, as there is
9403       # no search path for DLLs.
9404       hardcode_libdir_flag_spec=' '
9405       allow_undefined_flag=unsupported
9406       # Tell ltmain to make .lib files, not .a files.
9407       libext=lib
9408       # Tell ltmain to make .dll files, not .so files.
9409       shrext_cmds=".dll"
9410       # FIXME: Setting linknames here is a bad hack.
9411       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9412       # The linker will automatically build a .lib file if we build a DLL.
9413       old_archive_From_new_cmds='true'
9414       # FIXME: Should let the user specify the lib program.
9415       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9416       fix_srcfile_path='`cygpath -w "$srcfile"`'
9417       enable_shared_with_static_runtimes=yes
9418       ;;
9419
9420     darwin* | rhapsody*)
9421       case $host_os in
9422         rhapsody* | darwin1.[012])
9423          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9424          ;;
9425        *) # Darwin 1.3 on
9426          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9427            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9428          else
9429            case ${MACOSX_DEPLOYMENT_TARGET} in
9430              10.[012])
9431                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9432                ;;
9433              10.*)
9434                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9435                ;;
9436            esac
9437          fi
9438          ;;
9439       esac
9440       archive_cmds_need_lc=no
9441       hardcode_direct=no
9442       hardcode_automatic=yes
9443       hardcode_shlibpath_var=unsupported
9444       whole_archive_flag_spec=''
9445       link_all_deplibs=yes
9446     if test "$GCC" = yes ; then
9447         output_verbose_link_cmd='echo'
9448         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9449       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9450       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9451       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9452       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9453     else
9454       case $cc_basename in
9455         xlc*)
9456          output_verbose_link_cmd='echo'
9457          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9458          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9459           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9460          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9461           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9462           ;;
9463        *)
9464          ld_shlibs=no
9465           ;;
9466       esac
9467     fi
9468       ;;
9469
9470     dgux*)
9471       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472       hardcode_libdir_flag_spec='-L$libdir'
9473       hardcode_shlibpath_var=no
9474       ;;
9475
9476     freebsd1*)
9477       ld_shlibs=no
9478       ;;
9479
9480     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9481     # support.  Future versions do this automatically, but an explicit c++rt0.o
9482     # does not break anything, and helps significantly (at the cost of a little
9483     # extra space).
9484     freebsd2.2*)
9485       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9486       hardcode_libdir_flag_spec='-R$libdir'
9487       hardcode_direct=yes
9488       hardcode_shlibpath_var=no
9489       ;;
9490
9491     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9492     freebsd2*)
9493       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9494       hardcode_direct=yes
9495       hardcode_minus_L=yes
9496       hardcode_shlibpath_var=no
9497       ;;
9498
9499     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9500     freebsd* | kfreebsd*-gnu | dragonfly*)
9501       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9502       hardcode_libdir_flag_spec='-R$libdir'
9503       hardcode_direct=yes
9504       hardcode_shlibpath_var=no
9505       ;;
9506
9507     hpux9*)
9508       if test "$GCC" = yes; then
9509         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9510       else
9511         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9512       fi
9513       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514       hardcode_libdir_separator=:
9515       hardcode_direct=yes
9516
9517       # hardcode_minus_L: Not really in the search PATH,
9518       # but as the default location of the library.
9519       hardcode_minus_L=yes
9520       export_dynamic_flag_spec='${wl}-E'
9521       ;;
9522
9523     hpux10* | hpux11*)
9524       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9525         case $host_cpu in
9526         hppa*64*|ia64*)
9527           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9528           ;;
9529         *)
9530           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9531           ;;
9532         esac
9533       else
9534         case $host_cpu in
9535         hppa*64*|ia64*)
9536           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9537           ;;
9538         *)
9539           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9540           ;;
9541         esac
9542       fi
9543       if test "$with_gnu_ld" = no; then
9544         case $host_cpu in
9545         hppa*64*)
9546           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9547           hardcode_libdir_flag_spec_ld='+b $libdir'
9548           hardcode_libdir_separator=:
9549           hardcode_direct=no
9550           hardcode_shlibpath_var=no
9551           ;;
9552         ia64*)
9553           hardcode_libdir_flag_spec='-L$libdir'
9554           hardcode_direct=no
9555           hardcode_shlibpath_var=no
9556
9557           # hardcode_minus_L: Not really in the search PATH,
9558           # but as the default location of the library.
9559           hardcode_minus_L=yes
9560           ;;
9561         *)
9562           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9563           hardcode_libdir_separator=:
9564           hardcode_direct=yes
9565           export_dynamic_flag_spec='${wl}-E'
9566
9567           # hardcode_minus_L: Not really in the search PATH,
9568           # but as the default location of the library.
9569           hardcode_minus_L=yes
9570           ;;
9571         esac
9572       fi
9573       ;;
9574
9575     irix5* | irix6* | nonstopux*)
9576       if test "$GCC" = yes; then
9577         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9578       else
9579         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9580         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9581       fi
9582       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583       hardcode_libdir_separator=:
9584       link_all_deplibs=yes
9585       ;;
9586
9587     netbsd*)
9588       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9589         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9590       else
9591         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9592       fi
9593       hardcode_libdir_flag_spec='-R$libdir'
9594       hardcode_direct=yes
9595       hardcode_shlibpath_var=no
9596       ;;
9597
9598     newsos6)
9599       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9600       hardcode_direct=yes
9601       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9602       hardcode_libdir_separator=:
9603       hardcode_shlibpath_var=no
9604       ;;
9605
9606     openbsd*)
9607       hardcode_direct=yes
9608       hardcode_shlibpath_var=no
9609       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9610         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9611         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9612         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9613         export_dynamic_flag_spec='${wl}-E'
9614       else
9615        case $host_os in
9616          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9617            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9618            hardcode_libdir_flag_spec='-R$libdir'
9619            ;;
9620          *)
9621            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9622            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9623            ;;
9624        esac
9625       fi
9626       ;;
9627
9628     os2*)
9629       hardcode_libdir_flag_spec='-L$libdir'
9630       hardcode_minus_L=yes
9631       allow_undefined_flag=unsupported
9632       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9633       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9634       ;;
9635
9636     osf3*)
9637       if test "$GCC" = yes; then
9638         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9639         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9640       else
9641         allow_undefined_flag=' -expect_unresolved \*'
9642         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9643       fi
9644       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645       hardcode_libdir_separator=:
9646       ;;
9647
9648     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9649       if test "$GCC" = yes; then
9650         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9651         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9652         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9653       else
9654         allow_undefined_flag=' -expect_unresolved \*'
9655         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9656         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9657         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9658
9659         # Both c and cxx compiler support -rpath directly
9660         hardcode_libdir_flag_spec='-rpath $libdir'
9661       fi
9662       hardcode_libdir_separator=:
9663       ;;
9664
9665     sco3.2v5*)
9666       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667       hardcode_shlibpath_var=no
9668       export_dynamic_flag_spec='${wl}-Bexport'
9669       runpath_var=LD_RUN_PATH
9670       hardcode_runpath_var=yes
9671       ;;
9672
9673     solaris*)
9674       no_undefined_flag=' -z text'
9675       if test "$GCC" = yes; then
9676         wlarc='${wl}'
9677         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9678         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9679           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9680       else
9681         wlarc=''
9682         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9684         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9685       fi
9686       hardcode_libdir_flag_spec='-R$libdir'
9687       hardcode_shlibpath_var=no
9688       case $host_os in
9689       solaris2.[0-5] | solaris2.[0-5].*) ;;
9690       *)
9691         # The compiler driver will combine linker options so we
9692         # cannot just pass the convience library names through
9693         # without $wl, iff we do not link with $LD.
9694         # Luckily, gcc supports the same syntax we need for Sun Studio.
9695         # Supported since Solaris 2.6 (maybe 2.5.1?)
9696         case $wlarc in
9697         '')
9698           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9699         *)
9700           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9701         esac ;;
9702       esac
9703       link_all_deplibs=yes
9704       ;;
9705
9706     sunos4*)
9707       if test "x$host_vendor" = xsequent; then
9708         # Use $CC to link under sequent, because it throws in some extra .o
9709         # files that make .init and .fini sections work.
9710         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9711       else
9712         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9713       fi
9714       hardcode_libdir_flag_spec='-L$libdir'
9715       hardcode_direct=yes
9716       hardcode_minus_L=yes
9717       hardcode_shlibpath_var=no
9718       ;;
9719
9720     sysv4)
9721       case $host_vendor in
9722         sni)
9723           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724           hardcode_direct=yes # is this really true???
9725         ;;
9726         siemens)
9727           ## LD is ld it makes a PLAMLIB
9728           ## CC just makes a GrossModule.
9729           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9730           reload_cmds='$CC -r -o $output$reload_objs'
9731           hardcode_direct=no
9732         ;;
9733         motorola)
9734           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9736         ;;
9737       esac
9738       runpath_var='LD_RUN_PATH'
9739       hardcode_shlibpath_var=no
9740       ;;
9741
9742     sysv4.3*)
9743       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744       hardcode_shlibpath_var=no
9745       export_dynamic_flag_spec='-Bexport'
9746       ;;
9747
9748     sysv4*MP*)
9749       if test -d /usr/nec; then
9750         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751         hardcode_shlibpath_var=no
9752         runpath_var=LD_RUN_PATH
9753         hardcode_runpath_var=yes
9754         ld_shlibs=yes
9755       fi
9756       ;;
9757
9758     sysv4.2uw2*)
9759       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9760       hardcode_direct=yes
9761       hardcode_minus_L=no
9762       hardcode_shlibpath_var=no
9763       hardcode_runpath_var=yes
9764       runpath_var=LD_RUN_PATH
9765       ;;
9766
9767    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9768       no_undefined_flag='${wl}-z ${wl}text'
9769       if test "$GCC" = yes; then
9770         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9771       else
9772         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9773       fi
9774       runpath_var='LD_RUN_PATH'
9775       hardcode_shlibpath_var=no
9776       ;;
9777
9778     sysv5*)
9779       no_undefined_flag=' -z text'
9780       # $CC -shared without GNU ld will not create a library from C++
9781       # object files and a static libstdc++, better avoid it by now
9782       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9783       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9784                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9785       hardcode_libdir_flag_spec=
9786       hardcode_shlibpath_var=no
9787       runpath_var='LD_RUN_PATH'
9788       ;;
9789
9790     uts4*)
9791       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792       hardcode_libdir_flag_spec='-L$libdir'
9793       hardcode_shlibpath_var=no
9794       ;;
9795
9796     *)
9797       ld_shlibs=no
9798       ;;
9799     esac
9800   fi
9801
9802 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9803 echo "${ECHO_T}$ld_shlibs" >&6; }
9804 test "$ld_shlibs" = no && can_build_shared=no
9805
9806 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9807 if test "$GCC" = yes; then
9808   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9809 fi
9810
9811 #
9812 # Do we need to explicitly link libc?
9813 #
9814 case "x$archive_cmds_need_lc" in
9815 x|xyes)
9816   # Assume -lc should be added
9817   archive_cmds_need_lc=yes
9818
9819   if test "$enable_shared" = yes && test "$GCC" = yes; then
9820     case $archive_cmds in
9821     *'~'*)
9822       # FIXME: we may have to deal with multi-command sequences.
9823       ;;
9824     '$CC '*)
9825       # Test whether the compiler implicitly links with -lc since on some
9826       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9827       # to ld, don't add -lc before -lgcc.
9828       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9829 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9830       $rm conftest*
9831       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9832
9833       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834   (eval $ac_compile) 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } 2>conftest.err; then
9838         soname=conftest
9839         lib=conftest
9840         libobjs=conftest.$ac_objext
9841         deplibs=
9842         wl=$lt_prog_compiler_wl
9843         compiler_flags=-v
9844         linker_flags=-v
9845         verstring=
9846         output_objdir=.
9847         libname=conftest
9848         lt_save_allow_undefined_flag=$allow_undefined_flag
9849         allow_undefined_flag=
9850         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9851   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }
9855         then
9856           archive_cmds_need_lc=no
9857         else
9858           archive_cmds_need_lc=yes
9859         fi
9860         allow_undefined_flag=$lt_save_allow_undefined_flag
9861       else
9862         cat conftest.err 1>&5
9863       fi
9864       $rm conftest*
9865       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9866 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9867       ;;
9868     esac
9869   fi
9870   ;;
9871 esac
9872
9873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9875 library_names_spec=
9876 libname_spec='lib$name'
9877 soname_spec=
9878 shrext_cmds=".so"
9879 postinstall_cmds=
9880 postuninstall_cmds=
9881 finish_cmds=
9882 finish_eval=
9883 shlibpath_var=
9884 shlibpath_overrides_runpath=unknown
9885 version_type=none
9886 dynamic_linker="$host_os ld.so"
9887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9888 if test "$GCC" = yes; then
9889   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9890   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9891     # if the path contains ";" then we assume it to be the separator
9892     # otherwise default to the standard path separator (i.e. ":") - it is
9893     # assumed that no part of a normal pathname contains ";" but that should
9894     # okay in the real world where ";" in dirpaths is itself problematic.
9895     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9896   else
9897     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9898   fi
9899 else
9900   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9901 fi
9902 need_lib_prefix=unknown
9903 hardcode_into_libs=no
9904
9905 # when you set need_version to no, make sure it does not cause -set_version
9906 # flags to be left without arguments
9907 need_version=unknown
9908
9909 case $host_os in
9910 aix3*)
9911   version_type=linux
9912   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9913   shlibpath_var=LIBPATH
9914
9915   # AIX 3 has no versioning support, so we append a major version to the name.
9916   soname_spec='${libname}${release}${shared_ext}$major'
9917   ;;
9918
9919 aix4* | aix5*)
9920   version_type=linux
9921   need_lib_prefix=no
9922   need_version=no
9923   hardcode_into_libs=yes
9924   if test "$host_cpu" = ia64; then
9925     # AIX 5 supports IA64
9926     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9927     shlibpath_var=LD_LIBRARY_PATH
9928   else
9929     # With GCC up to 2.95.x, collect2 would create an import file
9930     # for dependence libraries.  The import file would start with
9931     # the line `#! .'.  This would cause the generated library to
9932     # depend on `.', always an invalid library.  This was fixed in
9933     # development snapshots of GCC prior to 3.0.
9934     case $host_os in
9935       aix4 | aix4.[01] | aix4.[01].*)
9936       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9937            echo ' yes '
9938            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9939         :
9940       else
9941         can_build_shared=no
9942       fi
9943       ;;
9944     esac
9945     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9946     # soname into executable. Probably we can add versioning support to
9947     # collect2, so additional links can be useful in future.
9948     if test "$aix_use_runtimelinking" = yes; then
9949       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9950       # instead of lib<name>.a to let people know that these are not
9951       # typical AIX shared libraries.
9952       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953     else
9954       # We preserve .a as extension for shared libraries through AIX4.2
9955       # and later when we are not doing run time linking.
9956       library_names_spec='${libname}${release}.a $libname.a'
9957       soname_spec='${libname}${release}${shared_ext}$major'
9958     fi
9959     shlibpath_var=LIBPATH
9960   fi
9961   ;;
9962
9963 amigaos*)
9964   library_names_spec='$libname.ixlibrary $libname.a'
9965   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9966   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9967   ;;
9968
9969 beos*)
9970   library_names_spec='${libname}${shared_ext}'
9971   dynamic_linker="$host_os ld.so"
9972   shlibpath_var=LIBRARY_PATH
9973   ;;
9974
9975 bsdi[45]*)
9976   version_type=linux
9977   need_version=no
9978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979   soname_spec='${libname}${release}${shared_ext}$major'
9980   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9981   shlibpath_var=LD_LIBRARY_PATH
9982   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9983   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9984   # the default ld.so.conf also contains /usr/contrib/lib and
9985   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9986   # libtool to hard-code these into programs
9987   ;;
9988
9989 cygwin* | mingw* | pw32*)
9990   version_type=windows
9991   shrext_cmds=".dll"
9992   need_version=no
9993   need_lib_prefix=no
9994
9995   case $GCC,$host_os in
9996   yes,cygwin* | yes,mingw* | yes,pw32*)
9997     library_names_spec='$libname.dll.a'
9998     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9999     postinstall_cmds='base_file=`basename \${file}`~
10000       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10001       dldir=$destdir/`dirname \$dlpath`~
10002       test -d \$dldir || mkdir -p \$dldir~
10003       $install_prog $dir/$dlname \$dldir/$dlname~
10004       chmod a+x \$dldir/$dlname'
10005     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10006       dlpath=$dir/\$dldll~
10007        $rm \$dlpath'
10008     shlibpath_overrides_runpath=yes
10009
10010     case $host_os in
10011     cygwin*)
10012       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10013       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10015       ;;
10016     mingw*)
10017       # MinGW DLLs use traditional 'lib' prefix
10018       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10019       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10020       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10021         # It is most probably a Windows format PATH printed by
10022         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10023         # path with ; separators, and with drive letters. We can handle the
10024         # drive letters (cygwin fileutils understands them), so leave them,
10025         # especially as we might pass files found there to a mingw objdump,
10026         # which wouldn't understand a cygwinified path. Ahh.
10027         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10028       else
10029         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10030       fi
10031       ;;
10032     pw32*)
10033       # pw32 DLLs use 'pw' prefix rather than 'lib'
10034       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10035       ;;
10036     esac
10037     ;;
10038
10039   *)
10040     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10041     ;;
10042   esac
10043   dynamic_linker='Win32 ld.exe'
10044   # FIXME: first we should search . and the directory the executable is in
10045   shlibpath_var=PATH
10046   ;;
10047
10048 darwin* | rhapsody*)
10049   dynamic_linker="$host_os dyld"
10050   version_type=darwin
10051   need_lib_prefix=no
10052   need_version=no
10053   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10054   soname_spec='${libname}${release}${major}$shared_ext'
10055   shlibpath_overrides_runpath=yes
10056   shlibpath_var=DYLD_LIBRARY_PATH
10057   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10058   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10059   if test "$GCC" = yes; then
10060     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10061   else
10062     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10063   fi
10064   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10065   ;;
10066
10067 dgux*)
10068   version_type=linux
10069   need_lib_prefix=no
10070   need_version=no
10071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10072   soname_spec='${libname}${release}${shared_ext}$major'
10073   shlibpath_var=LD_LIBRARY_PATH
10074   ;;
10075
10076 freebsd1*)
10077   dynamic_linker=no
10078   ;;
10079
10080 kfreebsd*-gnu)
10081   version_type=linux
10082   need_lib_prefix=no
10083   need_version=no
10084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10085   soname_spec='${libname}${release}${shared_ext}$major'
10086   shlibpath_var=LD_LIBRARY_PATH
10087   shlibpath_overrides_runpath=no
10088   hardcode_into_libs=yes
10089   dynamic_linker='GNU ld.so'
10090   ;;
10091
10092 freebsd* | dragonfly*)
10093   # DragonFly does not have aout.  When/if they implement a new
10094   # versioning mechanism, adjust this.
10095   if test -x /usr/bin/objformat; then
10096     objformat=`/usr/bin/objformat`
10097   else
10098     case $host_os in
10099     freebsd[123]*) objformat=aout ;;
10100     *) objformat=elf ;;
10101     esac
10102   fi
10103   version_type=freebsd-$objformat
10104   case $version_type in
10105     freebsd-elf*)
10106       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10107       need_version=no
10108       need_lib_prefix=no
10109       ;;
10110     freebsd-*)
10111       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10112       need_version=yes
10113       ;;
10114   esac
10115   shlibpath_var=LD_LIBRARY_PATH
10116   case $host_os in
10117   freebsd2*)
10118     shlibpath_overrides_runpath=yes
10119     ;;
10120   freebsd3.[01]* | freebsdelf3.[01]*)
10121     shlibpath_overrides_runpath=yes
10122     hardcode_into_libs=yes
10123     ;;
10124   *) # from 3.2 on
10125     shlibpath_overrides_runpath=no
10126     hardcode_into_libs=yes
10127     ;;
10128   esac
10129   ;;
10130
10131 gnu*)
10132   version_type=linux
10133   need_lib_prefix=no
10134   need_version=no
10135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10136   soname_spec='${libname}${release}${shared_ext}$major'
10137   shlibpath_var=LD_LIBRARY_PATH
10138   hardcode_into_libs=yes
10139   ;;
10140
10141 hpux9* | hpux10* | hpux11*)
10142   # Give a soname corresponding to the major version so that dld.sl refuses to
10143   # link against other versions.
10144   version_type=sunos
10145   need_lib_prefix=no
10146   need_version=no
10147   case $host_cpu in
10148   ia64*)
10149     shrext_cmds='.so'
10150     hardcode_into_libs=yes
10151     dynamic_linker="$host_os dld.so"
10152     shlibpath_var=LD_LIBRARY_PATH
10153     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155     soname_spec='${libname}${release}${shared_ext}$major'
10156     if test "X$HPUX_IA64_MODE" = X32; then
10157       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10158     else
10159       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10160     fi
10161     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10162     ;;
10163    hppa*64*)
10164      shrext_cmds='.sl'
10165      hardcode_into_libs=yes
10166      dynamic_linker="$host_os dld.sl"
10167      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10168      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10169      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170      soname_spec='${libname}${release}${shared_ext}$major'
10171      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10172      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10173      ;;
10174    *)
10175     shrext_cmds='.sl'
10176     dynamic_linker="$host_os dld.sl"
10177     shlibpath_var=SHLIB_PATH
10178     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180     soname_spec='${libname}${release}${shared_ext}$major'
10181     ;;
10182   esac
10183   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10184   postinstall_cmds='chmod 555 $lib'
10185   ;;
10186
10187 irix5* | irix6* | nonstopux*)
10188   case $host_os in
10189     nonstopux*) version_type=nonstopux ;;
10190     *)
10191         if test "$lt_cv_prog_gnu_ld" = yes; then
10192                 version_type=linux
10193         else
10194                 version_type=irix
10195         fi ;;
10196   esac
10197   need_lib_prefix=no
10198   need_version=no
10199   soname_spec='${libname}${release}${shared_ext}$major'
10200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10201   case $host_os in
10202   irix5* | nonstopux*)
10203     libsuff= shlibsuff=
10204     ;;
10205   *)
10206     case $LD in # libtool.m4 will add one of these switches to LD
10207     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10208       libsuff= shlibsuff= libmagic=32-bit;;
10209     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10210       libsuff=32 shlibsuff=N32 libmagic=N32;;
10211     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10212       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10213     *) libsuff= shlibsuff= libmagic=never-match;;
10214     esac
10215     ;;
10216   esac
10217   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10218   shlibpath_overrides_runpath=no
10219   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10220   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10221   hardcode_into_libs=yes
10222   ;;
10223
10224 # No shared lib support for Linux oldld, aout, or coff.
10225 linux*oldld* | linux*aout* | linux*coff*)
10226   dynamic_linker=no
10227   ;;
10228
10229 # This must be Linux ELF.
10230 linux*)
10231   version_type=linux
10232   need_lib_prefix=no
10233   need_version=no
10234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235   soname_spec='${libname}${release}${shared_ext}$major'
10236   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10237   shlibpath_var=LD_LIBRARY_PATH
10238   shlibpath_overrides_runpath=no
10239   # This implies no fast_install, which is unacceptable.
10240   # Some rework will be needed to allow for fast_install
10241   # before this can be enabled.
10242   hardcode_into_libs=yes
10243
10244   # Append ld.so.conf contents to the search path
10245   if test -f /etc/ld.so.conf; then
10246     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10247     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10248   fi
10249
10250   # We used to test for /lib/ld.so.1 and disable shared libraries on
10251   # powerpc, because MkLinux only supported shared libraries with the
10252   # GNU dynamic linker.  Since this was broken with cross compilers,
10253   # most powerpc-linux boxes support dynamic linking these days and
10254   # people can always --disable-shared, the test was removed, and we
10255   # assume the GNU/Linux dynamic linker is in use.
10256   dynamic_linker='GNU/Linux ld.so'
10257   ;;
10258
10259 knetbsd*-gnu)
10260   version_type=linux
10261   need_lib_prefix=no
10262   need_version=no
10263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10264   soname_spec='${libname}${release}${shared_ext}$major'
10265   shlibpath_var=LD_LIBRARY_PATH
10266   shlibpath_overrides_runpath=no
10267   hardcode_into_libs=yes
10268   dynamic_linker='GNU ld.so'
10269   ;;
10270
10271 netbsd*)
10272   version_type=sunos
10273   need_lib_prefix=no
10274   need_version=no
10275   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10277     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10278     dynamic_linker='NetBSD (a.out) ld.so'
10279   else
10280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10281     soname_spec='${libname}${release}${shared_ext}$major'
10282     dynamic_linker='NetBSD ld.elf_so'
10283   fi
10284   shlibpath_var=LD_LIBRARY_PATH
10285   shlibpath_overrides_runpath=yes
10286   hardcode_into_libs=yes
10287   ;;
10288
10289 newsos6)
10290   version_type=linux
10291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292   shlibpath_var=LD_LIBRARY_PATH
10293   shlibpath_overrides_runpath=yes
10294   ;;
10295
10296 nto-qnx*)
10297   version_type=linux
10298   need_lib_prefix=no
10299   need_version=no
10300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301   soname_spec='${libname}${release}${shared_ext}$major'
10302   shlibpath_var=LD_LIBRARY_PATH
10303   shlibpath_overrides_runpath=yes
10304   ;;
10305
10306 openbsd*)
10307   version_type=sunos
10308   need_lib_prefix=no
10309   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10310   case $host_os in
10311     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10312     *)                         need_version=no  ;;
10313   esac
10314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10315   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10316   shlibpath_var=LD_LIBRARY_PATH
10317   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10318     case $host_os in
10319       openbsd2.[89] | openbsd2.[89].*)
10320         shlibpath_overrides_runpath=no
10321         ;;
10322       *)
10323         shlibpath_overrides_runpath=yes
10324         ;;
10325       esac
10326   else
10327     shlibpath_overrides_runpath=yes
10328   fi
10329   ;;
10330
10331 os2*)
10332   libname_spec='$name'
10333   shrext_cmds=".dll"
10334   need_lib_prefix=no
10335   library_names_spec='$libname${shared_ext} $libname.a'
10336   dynamic_linker='OS/2 ld.exe'
10337   shlibpath_var=LIBPATH
10338   ;;
10339
10340 osf3* | osf4* | osf5*)
10341   version_type=osf
10342   need_lib_prefix=no
10343   need_version=no
10344   soname_spec='${libname}${release}${shared_ext}$major'
10345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346   shlibpath_var=LD_LIBRARY_PATH
10347   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10348   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10349   ;;
10350
10351 sco3.2v5*)
10352   version_type=osf
10353   soname_spec='${libname}${release}${shared_ext}$major'
10354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355   shlibpath_var=LD_LIBRARY_PATH
10356   ;;
10357
10358 solaris*)
10359   version_type=linux
10360   need_lib_prefix=no
10361   need_version=no
10362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363   soname_spec='${libname}${release}${shared_ext}$major'
10364   shlibpath_var=LD_LIBRARY_PATH
10365   shlibpath_overrides_runpath=yes
10366   hardcode_into_libs=yes
10367   # ldd complains unless libraries are executable
10368   postinstall_cmds='chmod +x $lib'
10369   ;;
10370
10371 sunos4*)
10372   version_type=sunos
10373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10374   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10375   shlibpath_var=LD_LIBRARY_PATH
10376   shlibpath_overrides_runpath=yes
10377   if test "$with_gnu_ld" = yes; then
10378     need_lib_prefix=no
10379   fi
10380   need_version=yes
10381   ;;
10382
10383 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10384   version_type=linux
10385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386   soname_spec='${libname}${release}${shared_ext}$major'
10387   shlibpath_var=LD_LIBRARY_PATH
10388   case $host_vendor in
10389     sni)
10390       shlibpath_overrides_runpath=no
10391       need_lib_prefix=no
10392       export_dynamic_flag_spec='${wl}-Blargedynsym'
10393       runpath_var=LD_RUN_PATH
10394       ;;
10395     siemens)
10396       need_lib_prefix=no
10397       ;;
10398     motorola)
10399       need_lib_prefix=no
10400       need_version=no
10401       shlibpath_overrides_runpath=no
10402       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10403       ;;
10404   esac
10405   ;;
10406
10407 sysv4*MP*)
10408   if test -d /usr/nec ;then
10409     version_type=linux
10410     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10411     soname_spec='$libname${shared_ext}.$major'
10412     shlibpath_var=LD_LIBRARY_PATH
10413   fi
10414   ;;
10415
10416 uts4*)
10417   version_type=linux
10418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419   soname_spec='${libname}${release}${shared_ext}$major'
10420   shlibpath_var=LD_LIBRARY_PATH
10421   ;;
10422
10423 *)
10424   dynamic_linker=no
10425   ;;
10426 esac
10427 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10428 echo "${ECHO_T}$dynamic_linker" >&6; }
10429 test "$dynamic_linker" = no && can_build_shared=no
10430
10431 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10432 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10433 hardcode_action=
10434 if test -n "$hardcode_libdir_flag_spec" || \
10435    test -n "$runpath_var" || \
10436    test "X$hardcode_automatic" = "Xyes" ; then
10437
10438   # We can hardcode non-existant directories.
10439   if test "$hardcode_direct" != no &&
10440      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10441      # have to relink, otherwise we might link with an installed library
10442      # when we should be linking with a yet-to-be-installed one
10443      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10444      test "$hardcode_minus_L" != no; then
10445     # Linking always hardcodes the temporary library directory.
10446     hardcode_action=relink
10447   else
10448     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10449     hardcode_action=immediate
10450   fi
10451 else
10452   # We cannot hardcode anything, or else we can only hardcode existing
10453   # directories.
10454   hardcode_action=unsupported
10455 fi
10456 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10457 echo "${ECHO_T}$hardcode_action" >&6; }
10458
10459 if test "$hardcode_action" = relink; then
10460   # Fast installation is not supported
10461   enable_fast_install=no
10462 elif test "$shlibpath_overrides_runpath" = yes ||
10463      test "$enable_shared" = no; then
10464   # Fast installation is not necessary
10465   enable_fast_install=needless
10466 fi
10467
10468 striplib=
10469 old_striplib=
10470 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10471 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10472 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10473   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10474   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10475   { echo "$as_me:$LINENO: result: yes" >&5
10476 echo "${ECHO_T}yes" >&6; }
10477 else
10478 # FIXME - insert some real tests, host_os isn't really good enough
10479   case $host_os in
10480    darwin*)
10481        if test -n "$STRIP" ; then
10482          striplib="$STRIP -x"
10483          { echo "$as_me:$LINENO: result: yes" >&5
10484 echo "${ECHO_T}yes" >&6; }
10485        else
10486   { echo "$as_me:$LINENO: result: no" >&5
10487 echo "${ECHO_T}no" >&6; }
10488 fi
10489        ;;
10490    *)
10491   { echo "$as_me:$LINENO: result: no" >&5
10492 echo "${ECHO_T}no" >&6; }
10493     ;;
10494   esac
10495 fi
10496
10497 if test "x$enable_dlopen" != xyes; then
10498   enable_dlopen=unknown
10499   enable_dlopen_self=unknown
10500   enable_dlopen_self_static=unknown
10501 else
10502   lt_cv_dlopen=no
10503   lt_cv_dlopen_libs=
10504
10505   case $host_os in
10506   beos*)
10507     lt_cv_dlopen="load_add_on"
10508     lt_cv_dlopen_libs=
10509     lt_cv_dlopen_self=yes
10510     ;;
10511
10512   mingw* | pw32*)
10513     lt_cv_dlopen="LoadLibrary"
10514     lt_cv_dlopen_libs=
10515    ;;
10516
10517   cygwin*)
10518     lt_cv_dlopen="dlopen"
10519     lt_cv_dlopen_libs=
10520    ;;
10521
10522   darwin*)
10523   # if libdl is installed we need to link against it
10524     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10525 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10526 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10527   echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529   ac_check_lib_save_LIBS=$LIBS
10530 LIBS="-ldl  $LIBS"
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h.  */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h.  */
10537
10538 /* Override any GCC internal prototype to avoid an error.
10539    Use char because int might match the return type of a GCC
10540    builtin and then its argument prototype would still apply.  */
10541 #ifdef __cplusplus
10542 extern "C"
10543 #endif
10544 char dlopen ();
10545 int
10546 main ()
10547 {
10548 return dlopen ();
10549   ;
10550   return 0;
10551 }
10552 _ACEOF
10553 rm -f conftest.$ac_objext conftest$ac_exeext
10554 if { (ac_try="$ac_link"
10555 case "(($ac_try" in
10556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557   *) ac_try_echo=$ac_try;;
10558 esac
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560   (eval "$ac_link") 2>conftest.er1
10561   ac_status=$?
10562   grep -v '^ *+' conftest.er1 >conftest.err
10563   rm -f conftest.er1
10564   cat conftest.err >&5
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); } && {
10567          test -z "$ac_c_werror_flag" ||
10568          test ! -s conftest.err
10569        } && test -s conftest$ac_exeext &&
10570        $as_test_x conftest$ac_exeext; then
10571   ac_cv_lib_dl_dlopen=yes
10572 else
10573   echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10575
10576         ac_cv_lib_dl_dlopen=no
10577 fi
10578
10579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10580       conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10582 fi
10583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10584 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10585 if test $ac_cv_lib_dl_dlopen = yes; then
10586   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10587 else
10588
10589     lt_cv_dlopen="dyld"
10590     lt_cv_dlopen_libs=
10591     lt_cv_dlopen_self=yes
10592
10593 fi
10594
10595    ;;
10596
10597   *)
10598     { echo "$as_me:$LINENO: checking for shl_load" >&5
10599 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10600 if test "${ac_cv_func_shl_load+set}" = set; then
10601   echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603   cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h.  */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h.  */
10609 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10611 #define shl_load innocuous_shl_load
10612
10613 /* System header to define __stub macros and hopefully few prototypes,
10614     which can conflict with char shl_load (); below.
10615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10616     <limits.h> exists even on freestanding compilers.  */
10617
10618 #ifdef __STDC__
10619 # include <limits.h>
10620 #else
10621 # include <assert.h>
10622 #endif
10623
10624 #undef shl_load
10625
10626 /* Override any GCC internal prototype to avoid an error.
10627    Use char because int might match the return type of a GCC
10628    builtin and then its argument prototype would still apply.  */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 char shl_load ();
10633 /* The GNU C library defines this for functions which it implements
10634     to always fail with ENOSYS.  Some functions are actually named
10635     something starting with __ and the normal name is an alias.  */
10636 #if defined __stub_shl_load || defined __stub___shl_load
10637 choke me
10638 #endif
10639
10640 int
10641 main ()
10642 {
10643 return shl_load ();
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (ac_try="$ac_link"
10650 case "(($ac_try" in
10651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652   *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655   (eval "$ac_link") 2>conftest.er1
10656   ac_status=$?
10657   grep -v '^ *+' conftest.er1 >conftest.err
10658   rm -f conftest.er1
10659   cat conftest.err >&5
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); } && {
10662          test -z "$ac_c_werror_flag" ||
10663          test ! -s conftest.err
10664        } && test -s conftest$ac_exeext &&
10665        $as_test_x conftest$ac_exeext; then
10666   ac_cv_func_shl_load=yes
10667 else
10668   echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10670
10671         ac_cv_func_shl_load=no
10672 fi
10673
10674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10675       conftest$ac_exeext conftest.$ac_ext
10676 fi
10677 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10678 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10679 if test $ac_cv_func_shl_load = yes; then
10680   lt_cv_dlopen="shl_load"
10681 else
10682   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10683 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10684 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10685   echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687   ac_check_lib_save_LIBS=$LIBS
10688 LIBS="-ldld  $LIBS"
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h.  */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h.  */
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697    Use char because int might match the return type of a GCC
10698    builtin and then its argument prototype would still apply.  */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char shl_load ();
10703 int
10704 main ()
10705 {
10706 return shl_load ();
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 rm -f conftest.$ac_objext conftest$ac_exeext
10712 if { (ac_try="$ac_link"
10713 case "(($ac_try" in
10714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715   *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718   (eval "$ac_link") 2>conftest.er1
10719   ac_status=$?
10720   grep -v '^ *+' conftest.er1 >conftest.err
10721   rm -f conftest.er1
10722   cat conftest.err >&5
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); } && {
10725          test -z "$ac_c_werror_flag" ||
10726          test ! -s conftest.err
10727        } && test -s conftest$ac_exeext &&
10728        $as_test_x conftest$ac_exeext; then
10729   ac_cv_lib_dld_shl_load=yes
10730 else
10731   echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10733
10734         ac_cv_lib_dld_shl_load=no
10735 fi
10736
10737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10738       conftest$ac_exeext conftest.$ac_ext
10739 LIBS=$ac_check_lib_save_LIBS
10740 fi
10741 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10742 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10743 if test $ac_cv_lib_dld_shl_load = yes; then
10744   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10745 else
10746   { echo "$as_me:$LINENO: checking for dlopen" >&5
10747 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10748 if test "${ac_cv_func_dlopen+set}" = set; then
10749   echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751   cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h.  */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h.  */
10757 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10759 #define dlopen innocuous_dlopen
10760
10761 /* System header to define __stub macros and hopefully few prototypes,
10762     which can conflict with char dlopen (); below.
10763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10764     <limits.h> exists even on freestanding compilers.  */
10765
10766 #ifdef __STDC__
10767 # include <limits.h>
10768 #else
10769 # include <assert.h>
10770 #endif
10771
10772 #undef dlopen
10773
10774 /* Override any GCC internal prototype to avoid an error.
10775    Use char because int might match the return type of a GCC
10776    builtin and then its argument prototype would still apply.  */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 char dlopen ();
10781 /* The GNU C library defines this for functions which it implements
10782     to always fail with ENOSYS.  Some functions are actually named
10783     something starting with __ and the normal name is an alias.  */
10784 #if defined __stub_dlopen || defined __stub___dlopen
10785 choke me
10786 #endif
10787
10788 int
10789 main ()
10790 {
10791 return dlopen ();
10792   ;
10793   return 0;
10794 }
10795 _ACEOF
10796 rm -f conftest.$ac_objext conftest$ac_exeext
10797 if { (ac_try="$ac_link"
10798 case "(($ac_try" in
10799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800   *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803   (eval "$ac_link") 2>conftest.er1
10804   ac_status=$?
10805   grep -v '^ *+' conftest.er1 >conftest.err
10806   rm -f conftest.er1
10807   cat conftest.err >&5
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); } && {
10810          test -z "$ac_c_werror_flag" ||
10811          test ! -s conftest.err
10812        } && test -s conftest$ac_exeext &&
10813        $as_test_x conftest$ac_exeext; then
10814   ac_cv_func_dlopen=yes
10815 else
10816   echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10818
10819         ac_cv_func_dlopen=no
10820 fi
10821
10822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10823       conftest$ac_exeext conftest.$ac_ext
10824 fi
10825 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10826 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10827 if test $ac_cv_func_dlopen = yes; then
10828   lt_cv_dlopen="dlopen"
10829 else
10830   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10831 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10832 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   ac_check_lib_save_LIBS=$LIBS
10836 LIBS="-ldl  $LIBS"
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h.  */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h.  */
10843
10844 /* Override any GCC internal prototype to avoid an error.
10845    Use char because int might match the return type of a GCC
10846    builtin and then its argument prototype would still apply.  */
10847 #ifdef __cplusplus
10848 extern "C"
10849 #endif
10850 char dlopen ();
10851 int
10852 main ()
10853 {
10854 return dlopen ();
10855   ;
10856   return 0;
10857 }
10858 _ACEOF
10859 rm -f conftest.$ac_objext conftest$ac_exeext
10860 if { (ac_try="$ac_link"
10861 case "(($ac_try" in
10862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863   *) ac_try_echo=$ac_try;;
10864 esac
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866   (eval "$ac_link") 2>conftest.er1
10867   ac_status=$?
10868   grep -v '^ *+' conftest.er1 >conftest.err
10869   rm -f conftest.er1
10870   cat conftest.err >&5
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); } && {
10873          test -z "$ac_c_werror_flag" ||
10874          test ! -s conftest.err
10875        } && test -s conftest$ac_exeext &&
10876        $as_test_x conftest$ac_exeext; then
10877   ac_cv_lib_dl_dlopen=yes
10878 else
10879   echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10881
10882         ac_cv_lib_dl_dlopen=no
10883 fi
10884
10885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10886       conftest$ac_exeext conftest.$ac_ext
10887 LIBS=$ac_check_lib_save_LIBS
10888 fi
10889 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10890 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10891 if test $ac_cv_lib_dl_dlopen = yes; then
10892   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10893 else
10894   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10895 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10896 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10897   echo $ECHO_N "(cached) $ECHO_C" >&6
10898 else
10899   ac_check_lib_save_LIBS=$LIBS
10900 LIBS="-lsvld  $LIBS"
10901 cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h.  */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h.  */
10907
10908 /* Override any GCC internal prototype to avoid an error.
10909    Use char because int might match the return type of a GCC
10910    builtin and then its argument prototype would still apply.  */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char dlopen ();
10915 int
10916 main ()
10917 {
10918 return dlopen ();
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (ac_try="$ac_link"
10925 case "(($ac_try" in
10926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927   *) ac_try_echo=$ac_try;;
10928 esac
10929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930   (eval "$ac_link") 2>conftest.er1
10931   ac_status=$?
10932   grep -v '^ *+' conftest.er1 >conftest.err
10933   rm -f conftest.er1
10934   cat conftest.err >&5
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); } && {
10937          test -z "$ac_c_werror_flag" ||
10938          test ! -s conftest.err
10939        } && test -s conftest$ac_exeext &&
10940        $as_test_x conftest$ac_exeext; then
10941   ac_cv_lib_svld_dlopen=yes
10942 else
10943   echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10945
10946         ac_cv_lib_svld_dlopen=no
10947 fi
10948
10949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10950       conftest$ac_exeext conftest.$ac_ext
10951 LIBS=$ac_check_lib_save_LIBS
10952 fi
10953 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10954 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10955 if test $ac_cv_lib_svld_dlopen = yes; then
10956   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10957 else
10958   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10959 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10960 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10961   echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963   ac_check_lib_save_LIBS=$LIBS
10964 LIBS="-ldld  $LIBS"
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h.  */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h.  */
10971
10972 /* Override any GCC internal prototype to avoid an error.
10973    Use char because int might match the return type of a GCC
10974    builtin and then its argument prototype would still apply.  */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 char dld_link ();
10979 int
10980 main ()
10981 {
10982 return dld_link ();
10983   ;
10984   return 0;
10985 }
10986 _ACEOF
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (ac_try="$ac_link"
10989 case "(($ac_try" in
10990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991   *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994   (eval "$ac_link") 2>conftest.er1
10995   ac_status=$?
10996   grep -v '^ *+' conftest.er1 >conftest.err
10997   rm -f conftest.er1
10998   cat conftest.err >&5
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } && {
11001          test -z "$ac_c_werror_flag" ||
11002          test ! -s conftest.err
11003        } && test -s conftest$ac_exeext &&
11004        $as_test_x conftest$ac_exeext; then
11005   ac_cv_lib_dld_dld_link=yes
11006 else
11007   echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010         ac_cv_lib_dld_dld_link=no
11011 fi
11012
11013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11014       conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11016 fi
11017 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11018 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11019 if test $ac_cv_lib_dld_dld_link = yes; then
11020   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11021 fi
11022
11023
11024 fi
11025
11026
11027 fi
11028
11029
11030 fi
11031
11032
11033 fi
11034
11035
11036 fi
11037
11038     ;;
11039   esac
11040
11041   if test "x$lt_cv_dlopen" != xno; then
11042     enable_dlopen=yes
11043   else
11044     enable_dlopen=no
11045   fi
11046
11047   case $lt_cv_dlopen in
11048   dlopen)
11049     save_CPPFLAGS="$CPPFLAGS"
11050     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11051
11052     save_LDFLAGS="$LDFLAGS"
11053     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11054
11055     save_LIBS="$LIBS"
11056     LIBS="$lt_cv_dlopen_libs $LIBS"
11057
11058     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11059 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11060 if test "${lt_cv_dlopen_self+set}" = set; then
11061   echo $ECHO_N "(cached) $ECHO_C" >&6
11062 else
11063           if test "$cross_compiling" = yes; then :
11064   lt_cv_dlopen_self=cross
11065 else
11066   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11067   lt_status=$lt_dlunknown
11068   cat > conftest.$ac_ext <<EOF
11069 #line 11069 "configure"
11070 #include "confdefs.h"
11071
11072 #if HAVE_DLFCN_H
11073 #include <dlfcn.h>
11074 #endif
11075
11076 #include <stdio.h>
11077
11078 #ifdef RTLD_GLOBAL
11079 #  define LT_DLGLOBAL           RTLD_GLOBAL
11080 #else
11081 #  ifdef DL_GLOBAL
11082 #    define LT_DLGLOBAL         DL_GLOBAL
11083 #  else
11084 #    define LT_DLGLOBAL         0
11085 #  endif
11086 #endif
11087
11088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11089    find out it does not work in some platform. */
11090 #ifndef LT_DLLAZY_OR_NOW
11091 #  ifdef RTLD_LAZY
11092 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11093 #  else
11094 #    ifdef DL_LAZY
11095 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11096 #    else
11097 #      ifdef RTLD_NOW
11098 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11099 #      else
11100 #        ifdef DL_NOW
11101 #          define LT_DLLAZY_OR_NOW      DL_NOW
11102 #        else
11103 #          define LT_DLLAZY_OR_NOW      0
11104 #        endif
11105 #      endif
11106 #    endif
11107 #  endif
11108 #endif
11109
11110 #ifdef __cplusplus
11111 extern "C" void exit (int);
11112 #endif
11113
11114 void fnord() { int i=42;}
11115 int main ()
11116 {
11117   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11118   int status = $lt_dlunknown;
11119
11120   if (self)
11121     {
11122       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11123       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11124       /* dlclose (self); */
11125     }
11126
11127     exit (status);
11128 }
11129 EOF
11130   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131   (eval $ac_link) 2>&5
11132   ac_status=$?
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11135     (./conftest; exit; ) >&5 2>/dev/null
11136     lt_status=$?
11137     case x$lt_status in
11138       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11139       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11140       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11141     esac
11142   else :
11143     # compilation failed
11144     lt_cv_dlopen_self=no
11145   fi
11146 fi
11147 rm -fr conftest*
11148
11149
11150 fi
11151 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11152 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11153
11154     if test "x$lt_cv_dlopen_self" = xyes; then
11155       LDFLAGS="$LDFLAGS $link_static_flag"
11156       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11157 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11158 if test "${lt_cv_dlopen_self_static+set}" = set; then
11159   echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161           if test "$cross_compiling" = yes; then :
11162   lt_cv_dlopen_self_static=cross
11163 else
11164   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11165   lt_status=$lt_dlunknown
11166   cat > conftest.$ac_ext <<EOF
11167 #line 11167 "configure"
11168 #include "confdefs.h"
11169
11170 #if HAVE_DLFCN_H
11171 #include <dlfcn.h>
11172 #endif
11173
11174 #include <stdio.h>
11175
11176 #ifdef RTLD_GLOBAL
11177 #  define LT_DLGLOBAL           RTLD_GLOBAL
11178 #else
11179 #  ifdef DL_GLOBAL
11180 #    define LT_DLGLOBAL         DL_GLOBAL
11181 #  else
11182 #    define LT_DLGLOBAL         0
11183 #  endif
11184 #endif
11185
11186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11187    find out it does not work in some platform. */
11188 #ifndef LT_DLLAZY_OR_NOW
11189 #  ifdef RTLD_LAZY
11190 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11191 #  else
11192 #    ifdef DL_LAZY
11193 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11194 #    else
11195 #      ifdef RTLD_NOW
11196 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11197 #      else
11198 #        ifdef DL_NOW
11199 #          define LT_DLLAZY_OR_NOW      DL_NOW
11200 #        else
11201 #          define LT_DLLAZY_OR_NOW      0
11202 #        endif
11203 #      endif
11204 #    endif
11205 #  endif
11206 #endif
11207
11208 #ifdef __cplusplus
11209 extern "C" void exit (int);
11210 #endif
11211
11212 void fnord() { int i=42;}
11213 int main ()
11214 {
11215   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11216   int status = $lt_dlunknown;
11217
11218   if (self)
11219     {
11220       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11221       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11222       /* dlclose (self); */
11223     }
11224
11225     exit (status);
11226 }
11227 EOF
11228   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229   (eval $ac_link) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11233     (./conftest; exit; ) >&5 2>/dev/null
11234     lt_status=$?
11235     case x$lt_status in
11236       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11237       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11238       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11239     esac
11240   else :
11241     # compilation failed
11242     lt_cv_dlopen_self_static=no
11243   fi
11244 fi
11245 rm -fr conftest*
11246
11247
11248 fi
11249 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11250 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11251     fi
11252
11253     CPPFLAGS="$save_CPPFLAGS"
11254     LDFLAGS="$save_LDFLAGS"
11255     LIBS="$save_LIBS"
11256     ;;
11257   esac
11258
11259   case $lt_cv_dlopen_self in
11260   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11261   *) enable_dlopen_self=unknown ;;
11262   esac
11263
11264   case $lt_cv_dlopen_self_static in
11265   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11266   *) enable_dlopen_self_static=unknown ;;
11267   esac
11268 fi
11269
11270
11271 # Report which librarie types wil actually be built
11272 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11273 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11274 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11275 echo "${ECHO_T}$can_build_shared" >&6; }
11276
11277 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11278 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11279 test "$can_build_shared" = "no" && enable_shared=no
11280
11281 # On AIX, shared libraries and static libraries use the same namespace, and
11282 # are all built from PIC.
11283 case $host_os in
11284 aix3*)
11285   test "$enable_shared" = yes && enable_static=no
11286   if test -n "$RANLIB"; then
11287     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11288     postinstall_cmds='$RANLIB $lib'
11289   fi
11290   ;;
11291
11292 aix4* | aix5*)
11293   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11294     test "$enable_shared" = yes && enable_static=no
11295   fi
11296     ;;
11297 esac
11298 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11299 echo "${ECHO_T}$enable_shared" >&6; }
11300
11301 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11302 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11303 # Make sure either enable_shared or enable_static is yes.
11304 test "$enable_shared" = yes || enable_static=yes
11305 { echo "$as_me:$LINENO: result: $enable_static" >&5
11306 echo "${ECHO_T}$enable_static" >&6; }
11307
11308 # The else clause should only fire when bootstrapping the
11309 # libtool distribution, otherwise you forgot to ship ltmain.sh
11310 # with your package, and you will get complaints that there are
11311 # no rules to generate ltmain.sh.
11312 if test -f "$ltmain"; then
11313   # See if we are running on zsh, and set the options which allow our commands through
11314   # without removal of \ escapes.
11315   if test -n "${ZSH_VERSION+set}" ; then
11316     setopt NO_GLOB_SUBST
11317   fi
11318   # Now quote all the things that may contain metacharacters while being
11319   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11320   # variables and quote the copies for generation of the libtool script.
11321   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11322     SED SHELL STRIP \
11323     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11324     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11325     deplibs_check_method reload_flag reload_cmds need_locks \
11326     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11327     lt_cv_sys_global_symbol_to_c_name_address \
11328     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11329     old_postinstall_cmds old_postuninstall_cmds \
11330     compiler \
11331     CC \
11332     LD \
11333     lt_prog_compiler_wl \
11334     lt_prog_compiler_pic \
11335     lt_prog_compiler_static \
11336     lt_prog_compiler_no_builtin_flag \
11337     export_dynamic_flag_spec \
11338     thread_safe_flag_spec \
11339     whole_archive_flag_spec \
11340     enable_shared_with_static_runtimes \
11341     old_archive_cmds \
11342     old_archive_from_new_cmds \
11343     predep_objects \
11344     postdep_objects \
11345     predeps \
11346     postdeps \
11347     compiler_lib_search_path \
11348     archive_cmds \
11349     archive_expsym_cmds \
11350     postinstall_cmds \
11351     postuninstall_cmds \
11352     old_archive_from_expsyms_cmds \
11353     allow_undefined_flag \
11354     no_undefined_flag \
11355     export_symbols_cmds \
11356     hardcode_libdir_flag_spec \
11357     hardcode_libdir_flag_spec_ld \
11358     hardcode_libdir_separator \
11359     hardcode_automatic \
11360     module_cmds \
11361     module_expsym_cmds \
11362     lt_cv_prog_compiler_c_o \
11363     exclude_expsyms \
11364     include_expsyms; do
11365
11366     case $var in
11367     old_archive_cmds | \
11368     old_archive_from_new_cmds | \
11369     archive_cmds | \
11370     archive_expsym_cmds | \
11371     module_cmds | \
11372     module_expsym_cmds | \
11373     old_archive_from_expsyms_cmds | \
11374     export_symbols_cmds | \
11375     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11376     postinstall_cmds | postuninstall_cmds | \
11377     old_postinstall_cmds | old_postuninstall_cmds | \
11378     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11379       # Double-quote double-evaled strings.
11380       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11381       ;;
11382     *)
11383       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11384       ;;
11385     esac
11386   done
11387
11388   case $lt_echo in
11389   *'\$0 --fallback-echo"')
11390     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11391     ;;
11392   esac
11393
11394 cfgfile="${ofile}T"
11395   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11396   $rm -f "$cfgfile"
11397   { echo "$as_me:$LINENO: creating $ofile" >&5
11398 echo "$as_me: creating $ofile" >&6;}
11399
11400   cat <<__EOF__ >> "$cfgfile"
11401 #! $SHELL
11402
11403 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11404 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11405 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11406 #
11407 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11408 # Free Software Foundation, Inc.
11409 #
11410 # This file is part of GNU Libtool:
11411 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11412 #
11413 # This program is free software; you can redistribute it and/or modify
11414 # it under the terms of the GNU General Public License as published by
11415 # the Free Software Foundation; either version 2 of the License, or
11416 # (at your option) any later version.
11417 #
11418 # This program is distributed in the hope that it will be useful, but
11419 # WITHOUT ANY WARRANTY; without even the implied warranty of
11420 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11421 # General Public License for more details.
11422 #
11423 # You should have received a copy of the GNU General Public License
11424 # along with this program; if not, write to the Free Software
11425 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11426 #
11427 # As a special exception to the GNU General Public License, if you
11428 # distribute this file as part of a program that contains a
11429 # configuration script generated by Autoconf, you may include it under
11430 # the same distribution terms that you use for the rest of that program.
11431
11432 # A sed program that does not truncate output.
11433 SED=$lt_SED
11434
11435 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11436 Xsed="$SED -e 1s/^X//"
11437
11438 # The HP-UX ksh and POSIX shell print the target directory to stdout
11439 # if CDPATH is set.
11440 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11441
11442 # The names of the tagged configurations supported by this script.
11443 available_tags=
11444
11445 # ### BEGIN LIBTOOL CONFIG
11446
11447 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11448
11449 # Shell to use when invoking shell scripts.
11450 SHELL=$lt_SHELL
11451
11452 # Whether or not to build shared libraries.
11453 build_libtool_libs=$enable_shared
11454
11455 # Whether or not to build static libraries.
11456 build_old_libs=$enable_static
11457
11458 # Whether or not to add -lc for building shared libraries.
11459 build_libtool_need_lc=$archive_cmds_need_lc
11460
11461 # Whether or not to disallow shared libs when runtime libs are static
11462 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11463
11464 # Whether or not to optimize for fast installation.
11465 fast_install=$enable_fast_install
11466
11467 # The host system.
11468 host_alias=$host_alias
11469 host=$host
11470 host_os=$host_os
11471
11472 # The build system.
11473 build_alias=$build_alias
11474 build=$build
11475 build_os=$build_os
11476
11477 # An echo program that does not interpret backslashes.
11478 echo=$lt_echo
11479
11480 # The archiver.
11481 AR=$lt_AR
11482 AR_FLAGS=$lt_AR_FLAGS
11483
11484 # A C compiler.
11485 LTCC=$lt_LTCC
11486
11487 # A language-specific compiler.
11488 CC=$lt_compiler
11489
11490 # Is the compiler the GNU C compiler?
11491 with_gcc=$GCC
11492
11493 # An ERE matcher.
11494 EGREP=$lt_EGREP
11495
11496 # The linker used to build libraries.
11497 LD=$lt_LD
11498
11499 # Whether we need hard or soft links.
11500 LN_S=$lt_LN_S
11501
11502 # A BSD-compatible nm program.
11503 NM=$lt_NM
11504
11505 # A symbol stripping program
11506 STRIP=$lt_STRIP
11507
11508 # Used to examine libraries when file_magic_cmd begins "file"
11509 MAGIC_CMD=$MAGIC_CMD
11510
11511 # Used on cygwin: DLL creation program.
11512 DLLTOOL="$DLLTOOL"
11513
11514 # Used on cygwin: object dumper.
11515 OBJDUMP="$OBJDUMP"
11516
11517 # Used on cygwin: assembler.
11518 AS="$AS"
11519
11520 # The name of the directory that contains temporary libtool files.
11521 objdir=$objdir
11522
11523 # How to create reloadable object files.
11524 reload_flag=$lt_reload_flag
11525 reload_cmds=$lt_reload_cmds
11526
11527 # How to pass a linker flag through the compiler.
11528 wl=$lt_lt_prog_compiler_wl
11529
11530 # Object file suffix (normally "o").
11531 objext="$ac_objext"
11532
11533 # Old archive suffix (normally "a").
11534 libext="$libext"
11535
11536 # Shared library suffix (normally ".so").
11537 shrext_cmds='$shrext_cmds'
11538
11539 # Executable file suffix (normally "").
11540 exeext="$exeext"
11541
11542 # Additional compiler flags for building library objects.
11543 pic_flag=$lt_lt_prog_compiler_pic
11544 pic_mode=$pic_mode
11545
11546 # What is the maximum length of a command?
11547 max_cmd_len=$lt_cv_sys_max_cmd_len
11548
11549 # Does compiler simultaneously support -c and -o options?
11550 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11551
11552 # Must we lock files when doing compilation?
11553 need_locks=$lt_need_locks
11554
11555 # Do we need the lib prefix for modules?
11556 need_lib_prefix=$need_lib_prefix
11557
11558 # Do we need a version for libraries?
11559 need_version=$need_version
11560
11561 # Whether dlopen is supported.
11562 dlopen_support=$enable_dlopen
11563
11564 # Whether dlopen of programs is supported.
11565 dlopen_self=$enable_dlopen_self
11566
11567 # Whether dlopen of statically linked programs is supported.
11568 dlopen_self_static=$enable_dlopen_self_static
11569
11570 # Compiler flag to prevent dynamic linking.
11571 link_static_flag=$lt_lt_prog_compiler_static
11572
11573 # Compiler flag to turn off builtin functions.
11574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11575
11576 # Compiler flag to allow reflexive dlopens.
11577 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11578
11579 # Compiler flag to generate shared objects directly from archives.
11580 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11581
11582 # Compiler flag to generate thread-safe objects.
11583 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11584
11585 # Library versioning type.
11586 version_type=$version_type
11587
11588 # Format of library name prefix.
11589 libname_spec=$lt_libname_spec
11590
11591 # List of archive names.  First name is the real one, the rest are links.
11592 # The last name is the one that the linker finds with -lNAME.
11593 library_names_spec=$lt_library_names_spec
11594
11595 # The coded name of the library, if different from the real name.
11596 soname_spec=$lt_soname_spec
11597
11598 # Commands used to build and install an old-style archive.
11599 RANLIB=$lt_RANLIB
11600 old_archive_cmds=$lt_old_archive_cmds
11601 old_postinstall_cmds=$lt_old_postinstall_cmds
11602 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11603
11604 # Create an old-style archive from a shared archive.
11605 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11606
11607 # Create a temporary old-style archive to link instead of a shared archive.
11608 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11609
11610 # Commands used to build and install a shared archive.
11611 archive_cmds=$lt_archive_cmds
11612 archive_expsym_cmds=$lt_archive_expsym_cmds
11613 postinstall_cmds=$lt_postinstall_cmds
11614 postuninstall_cmds=$lt_postuninstall_cmds
11615
11616 # Commands used to build a loadable module (assumed same as above if empty)
11617 module_cmds=$lt_module_cmds
11618 module_expsym_cmds=$lt_module_expsym_cmds
11619
11620 # Commands to strip libraries.
11621 old_striplib=$lt_old_striplib
11622 striplib=$lt_striplib
11623
11624 # Dependencies to place before the objects being linked to create a
11625 # shared library.
11626 predep_objects=$lt_predep_objects
11627
11628 # Dependencies to place after the objects being linked to create a
11629 # shared library.
11630 postdep_objects=$lt_postdep_objects
11631
11632 # Dependencies to place before the objects being linked to create a
11633 # shared library.
11634 predeps=$lt_predeps
11635
11636 # Dependencies to place after the objects being linked to create a
11637 # shared library.
11638 postdeps=$lt_postdeps
11639
11640 # The library search path used internally by the compiler when linking
11641 # a shared library.
11642 compiler_lib_search_path=$lt_compiler_lib_search_path
11643
11644 # Method to check whether dependent libraries are shared objects.
11645 deplibs_check_method=$lt_deplibs_check_method
11646
11647 # Command to use when deplibs_check_method == file_magic.
11648 file_magic_cmd=$lt_file_magic_cmd
11649
11650 # Flag that allows shared libraries with undefined symbols to be built.
11651 allow_undefined_flag=$lt_allow_undefined_flag
11652
11653 # Flag that forces no undefined symbols.
11654 no_undefined_flag=$lt_no_undefined_flag
11655
11656 # Commands used to finish a libtool library installation in a directory.
11657 finish_cmds=$lt_finish_cmds
11658
11659 # Same as above, but a single script fragment to be evaled but not shown.
11660 finish_eval=$lt_finish_eval
11661
11662 # Take the output of nm and produce a listing of raw symbols and C names.
11663 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11664
11665 # Transform the output of nm in a proper C declaration
11666 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11667
11668 # Transform the output of nm in a C name address pair
11669 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11670
11671 # This is the shared library runtime path variable.
11672 runpath_var=$runpath_var
11673
11674 # This is the shared library path variable.
11675 shlibpath_var=$shlibpath_var
11676
11677 # Is shlibpath searched before the hard-coded library search path?
11678 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11679
11680 # How to hardcode a shared library path into an executable.
11681 hardcode_action=$hardcode_action
11682
11683 # Whether we should hardcode library paths into libraries.
11684 hardcode_into_libs=$hardcode_into_libs
11685
11686 # Flag to hardcode \$libdir into a binary during linking.
11687 # This must work even if \$libdir does not exist.
11688 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11689
11690 # If ld is used when linking, flag to hardcode \$libdir into
11691 # a binary during linking. This must work even if \$libdir does
11692 # not exist.
11693 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11694
11695 # Whether we need a single -rpath flag with a separated argument.
11696 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11697
11698 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11699 # resulting binary.
11700 hardcode_direct=$hardcode_direct
11701
11702 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11703 # resulting binary.
11704 hardcode_minus_L=$hardcode_minus_L
11705
11706 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11707 # the resulting binary.
11708 hardcode_shlibpath_var=$hardcode_shlibpath_var
11709
11710 # Set to yes if building a shared library automatically hardcodes DIR into the library
11711 # and all subsequent libraries and executables linked against it.
11712 hardcode_automatic=$hardcode_automatic
11713
11714 # Variables whose values should be saved in libtool wrapper scripts and
11715 # restored at relink time.
11716 variables_saved_for_relink="$variables_saved_for_relink"
11717
11718 # Whether libtool must link a program against all its dependency libraries.
11719 link_all_deplibs=$link_all_deplibs
11720
11721 # Compile-time system search path for libraries
11722 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11723
11724 # Run-time system search path for libraries
11725 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11726
11727 # Fix the shell variable \$srcfile for the compiler.
11728 fix_srcfile_path="$fix_srcfile_path"
11729
11730 # Set to yes if exported symbols are required.
11731 always_export_symbols=$always_export_symbols
11732
11733 # The commands to list exported symbols.
11734 export_symbols_cmds=$lt_export_symbols_cmds
11735
11736 # The commands to extract the exported symbol list from a shared archive.
11737 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11738
11739 # Symbols that should not be listed in the preloaded symbols.
11740 exclude_expsyms=$lt_exclude_expsyms
11741
11742 # Symbols that must always be exported.
11743 include_expsyms=$lt_include_expsyms
11744
11745 # ### END LIBTOOL CONFIG
11746
11747 __EOF__
11748
11749
11750   case $host_os in
11751   aix3*)
11752     cat <<\EOF >> "$cfgfile"
11753
11754 # AIX sometimes has problems with the GCC collect2 program.  For some
11755 # reason, if we set the COLLECT_NAMES environment variable, the problems
11756 # vanish in a puff of smoke.
11757 if test "X${COLLECT_NAMES+set}" != Xset; then
11758   COLLECT_NAMES=
11759   export COLLECT_NAMES
11760 fi
11761 EOF
11762     ;;
11763   esac
11764
11765   # We use sed instead of cat because bash on DJGPP gets confused if
11766   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11767   # text mode, it properly converts lines to CR/LF.  This bash problem
11768   # is reportedly fixed, but why not run on old versions too?
11769   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11770
11771   mv -f "$cfgfile" "$ofile" || \
11772     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11773   chmod +x "$ofile"
11774
11775 else
11776   # If there is no Makefile yet, we rely on a make rule to execute
11777   # `config.status --recheck' to rerun these tests and create the
11778   # libtool script then.
11779   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11780   if test -f "$ltmain_in"; then
11781     test -f Makefile && make "$ltmain"
11782   fi
11783 fi
11784
11785
11786 ac_ext=c
11787 ac_cpp='$CPP $CPPFLAGS'
11788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11791
11792 CC="$lt_save_CC"
11793
11794
11795 # Check whether --with-tags was given.
11796 if test "${with_tags+set}" = set; then
11797   withval=$with_tags; tagnames="$withval"
11798 fi
11799
11800
11801 if test -f "$ltmain" && test -n "$tagnames"; then
11802   if test ! -f "${ofile}"; then
11803     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11804 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11805   fi
11806
11807   if test -z "$LTCC"; then
11808     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11809     if test -z "$LTCC"; then
11810       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11811 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11812     else
11813       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11814 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11815     fi
11816   fi
11817
11818   # Extract list of available tagged configurations in $ofile.
11819   # Note that this assumes the entire list is on one line.
11820   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11821
11822   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11823   for tagname in $tagnames; do
11824     IFS="$lt_save_ifs"
11825     # Check whether tagname contains only valid characters
11826     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11827     "") ;;
11828     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11829 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11830    { (exit 1); exit 1; }; }
11831         ;;
11832     esac
11833
11834     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11835     then
11836       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11837 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11838    { (exit 1); exit 1; }; }
11839     fi
11840
11841     # Update the list of available tags.
11842     if test -n "$tagname"; then
11843       echo appending configuration tag \"$tagname\" to $ofile
11844
11845       case $tagname in
11846       CXX)
11847         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11848             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11849             (test "X$CXX" != "Xg++"))) ; then
11850           :
11851         else
11852           tagname=""
11853         fi
11854         ;;
11855
11856       F77)
11857         if test -n "$F77" && test "X$F77" != "Xno"; then
11858           :
11859         else
11860           tagname=""
11861         fi
11862         ;;
11863
11864       GCJ)
11865         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11866           :
11867         else
11868           tagname=""
11869         fi
11870         ;;
11871
11872       RC)
11873
11874
11875 # Source file extension for RC test sources.
11876 ac_ext=rc
11877
11878 # Object file extension for compiled RC test sources.
11879 objext=o
11880 objext_RC=$objext
11881
11882 # Code to be used in simple compile tests
11883 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11884
11885 # Code to be used in simple link tests
11886 lt_simple_link_test_code="$lt_simple_compile_test_code"
11887
11888 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11889
11890 # If no C compiler was specified, use CC.
11891 LTCC=${LTCC-"$CC"}
11892
11893 # Allow CC to be a program name with arguments.
11894 compiler=$CC
11895
11896
11897 # save warnings/boilerplate of simple test code
11898 ac_outfile=conftest.$ac_objext
11899 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11901 _lt_compiler_boilerplate=`cat conftest.err`
11902 $rm conftest*
11903
11904 ac_outfile=conftest.$ac_objext
11905 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11906 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11907 _lt_linker_boilerplate=`cat conftest.err`
11908 $rm conftest*
11909
11910
11911 # Allow CC to be a program name with arguments.
11912 lt_save_CC="$CC"
11913 CC=${RC-"windres"}
11914 compiler=$CC
11915 compiler_RC=$CC
11916 for cc_temp in $compiler""; do
11917   case $cc_temp in
11918     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11919     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11920     \-*) ;;
11921     *) break;;
11922   esac
11923 done
11924 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11925
11926 lt_cv_prog_compiler_c_o_RC=yes
11927
11928 # The else clause should only fire when bootstrapping the
11929 # libtool distribution, otherwise you forgot to ship ltmain.sh
11930 # with your package, and you will get complaints that there are
11931 # no rules to generate ltmain.sh.
11932 if test -f "$ltmain"; then
11933   # See if we are running on zsh, and set the options which allow our commands through
11934   # without removal of \ escapes.
11935   if test -n "${ZSH_VERSION+set}" ; then
11936     setopt NO_GLOB_SUBST
11937   fi
11938   # Now quote all the things that may contain metacharacters while being
11939   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11940   # variables and quote the copies for generation of the libtool script.
11941   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11942     SED SHELL STRIP \
11943     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11944     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11945     deplibs_check_method reload_flag reload_cmds need_locks \
11946     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11947     lt_cv_sys_global_symbol_to_c_name_address \
11948     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11949     old_postinstall_cmds old_postuninstall_cmds \
11950     compiler_RC \
11951     CC_RC \
11952     LD_RC \
11953     lt_prog_compiler_wl_RC \
11954     lt_prog_compiler_pic_RC \
11955     lt_prog_compiler_static_RC \
11956     lt_prog_compiler_no_builtin_flag_RC \
11957     export_dynamic_flag_spec_RC \
11958     thread_safe_flag_spec_RC \
11959     whole_archive_flag_spec_RC \
11960     enable_shared_with_static_runtimes_RC \
11961     old_archive_cmds_RC \
11962     old_archive_from_new_cmds_RC \
11963     predep_objects_RC \
11964     postdep_objects_RC \
11965     predeps_RC \
11966     postdeps_RC \
11967     compiler_lib_search_path_RC \
11968     archive_cmds_RC \
11969     archive_expsym_cmds_RC \
11970     postinstall_cmds_RC \
11971     postuninstall_cmds_RC \
11972     old_archive_from_expsyms_cmds_RC \
11973     allow_undefined_flag_RC \
11974     no_undefined_flag_RC \
11975     export_symbols_cmds_RC \
11976     hardcode_libdir_flag_spec_RC \
11977     hardcode_libdir_flag_spec_ld_RC \
11978     hardcode_libdir_separator_RC \
11979     hardcode_automatic_RC \
11980     module_cmds_RC \
11981     module_expsym_cmds_RC \
11982     lt_cv_prog_compiler_c_o_RC \
11983     exclude_expsyms_RC \
11984     include_expsyms_RC; do
11985
11986     case $var in
11987     old_archive_cmds_RC | \
11988     old_archive_from_new_cmds_RC | \
11989     archive_cmds_RC | \
11990     archive_expsym_cmds_RC | \
11991     module_cmds_RC | \
11992     module_expsym_cmds_RC | \
11993     old_archive_from_expsyms_cmds_RC | \
11994     export_symbols_cmds_RC | \
11995     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11996     postinstall_cmds | postuninstall_cmds | \
11997     old_postinstall_cmds | old_postuninstall_cmds | \
11998     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11999       # Double-quote double-evaled strings.
12000       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12001       ;;
12002     *)
12003       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12004       ;;
12005     esac
12006   done
12007
12008   case $lt_echo in
12009   *'\$0 --fallback-echo"')
12010     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12011     ;;
12012   esac
12013
12014 cfgfile="$ofile"
12015
12016   cat <<__EOF__ >> "$cfgfile"
12017 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12018
12019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12020
12021 # Shell to use when invoking shell scripts.
12022 SHELL=$lt_SHELL
12023
12024 # Whether or not to build shared libraries.
12025 build_libtool_libs=$enable_shared
12026
12027 # Whether or not to build static libraries.
12028 build_old_libs=$enable_static
12029
12030 # Whether or not to add -lc for building shared libraries.
12031 build_libtool_need_lc=$archive_cmds_need_lc_RC
12032
12033 # Whether or not to disallow shared libs when runtime libs are static
12034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12035
12036 # Whether or not to optimize for fast installation.
12037 fast_install=$enable_fast_install
12038
12039 # The host system.
12040 host_alias=$host_alias
12041 host=$host
12042 host_os=$host_os
12043
12044 # The build system.
12045 build_alias=$build_alias
12046 build=$build
12047 build_os=$build_os
12048
12049 # An echo program that does not interpret backslashes.
12050 echo=$lt_echo
12051
12052 # The archiver.
12053 AR=$lt_AR
12054 AR_FLAGS=$lt_AR_FLAGS
12055
12056 # A C compiler.
12057 LTCC=$lt_LTCC
12058
12059 # A language-specific compiler.
12060 CC=$lt_compiler_RC
12061
12062 # Is the compiler the GNU C compiler?
12063 with_gcc=$GCC_RC
12064
12065 # An ERE matcher.
12066 EGREP=$lt_EGREP
12067
12068 # The linker used to build libraries.
12069 LD=$lt_LD_RC
12070
12071 # Whether we need hard or soft links.
12072 LN_S=$lt_LN_S
12073
12074 # A BSD-compatible nm program.
12075 NM=$lt_NM
12076
12077 # A symbol stripping program
12078 STRIP=$lt_STRIP
12079
12080 # Used to examine libraries when file_magic_cmd begins "file"
12081 MAGIC_CMD=$MAGIC_CMD
12082
12083 # Used on cygwin: DLL creation program.
12084 DLLTOOL="$DLLTOOL"
12085
12086 # Used on cygwin: object dumper.
12087 OBJDUMP="$OBJDUMP"
12088
12089 # Used on cygwin: assembler.
12090 AS="$AS"
12091
12092 # The name of the directory that contains temporary libtool files.
12093 objdir=$objdir
12094
12095 # How to create reloadable object files.
12096 reload_flag=$lt_reload_flag
12097 reload_cmds=$lt_reload_cmds
12098
12099 # How to pass a linker flag through the compiler.
12100 wl=$lt_lt_prog_compiler_wl_RC
12101
12102 # Object file suffix (normally "o").
12103 objext="$ac_objext"
12104
12105 # Old archive suffix (normally "a").
12106 libext="$libext"
12107
12108 # Shared library suffix (normally ".so").
12109 shrext_cmds='$shrext_cmds'
12110
12111 # Executable file suffix (normally "").
12112 exeext="$exeext"
12113
12114 # Additional compiler flags for building library objects.
12115 pic_flag=$lt_lt_prog_compiler_pic_RC
12116 pic_mode=$pic_mode
12117
12118 # What is the maximum length of a command?
12119 max_cmd_len=$lt_cv_sys_max_cmd_len
12120
12121 # Does compiler simultaneously support -c and -o options?
12122 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12123
12124 # Must we lock files when doing compilation?
12125 need_locks=$lt_need_locks
12126
12127 # Do we need the lib prefix for modules?
12128 need_lib_prefix=$need_lib_prefix
12129
12130 # Do we need a version for libraries?
12131 need_version=$need_version
12132
12133 # Whether dlopen is supported.
12134 dlopen_support=$enable_dlopen
12135
12136 # Whether dlopen of programs is supported.
12137 dlopen_self=$enable_dlopen_self
12138
12139 # Whether dlopen of statically linked programs is supported.
12140 dlopen_self_static=$enable_dlopen_self_static
12141
12142 # Compiler flag to prevent dynamic linking.
12143 link_static_flag=$lt_lt_prog_compiler_static_RC
12144
12145 # Compiler flag to turn off builtin functions.
12146 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12147
12148 # Compiler flag to allow reflexive dlopens.
12149 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12150
12151 # Compiler flag to generate shared objects directly from archives.
12152 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12153
12154 # Compiler flag to generate thread-safe objects.
12155 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12156
12157 # Library versioning type.
12158 version_type=$version_type
12159
12160 # Format of library name prefix.
12161 libname_spec=$lt_libname_spec
12162
12163 # List of archive names.  First name is the real one, the rest are links.
12164 # The last name is the one that the linker finds with -lNAME.
12165 library_names_spec=$lt_library_names_spec
12166
12167 # The coded name of the library, if different from the real name.
12168 soname_spec=$lt_soname_spec
12169
12170 # Commands used to build and install an old-style archive.
12171 RANLIB=$lt_RANLIB
12172 old_archive_cmds=$lt_old_archive_cmds_RC
12173 old_postinstall_cmds=$lt_old_postinstall_cmds
12174 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12175
12176 # Create an old-style archive from a shared archive.
12177 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12178
12179 # Create a temporary old-style archive to link instead of a shared archive.
12180 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12181
12182 # Commands used to build and install a shared archive.
12183 archive_cmds=$lt_archive_cmds_RC
12184 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12185 postinstall_cmds=$lt_postinstall_cmds
12186 postuninstall_cmds=$lt_postuninstall_cmds
12187
12188 # Commands used to build a loadable module (assumed same as above if empty)
12189 module_cmds=$lt_module_cmds_RC
12190 module_expsym_cmds=$lt_module_expsym_cmds_RC
12191
12192 # Commands to strip libraries.
12193 old_striplib=$lt_old_striplib
12194 striplib=$lt_striplib
12195
12196 # Dependencies to place before the objects being linked to create a
12197 # shared library.
12198 predep_objects=$lt_predep_objects_RC
12199
12200 # Dependencies to place after the objects being linked to create a
12201 # shared library.
12202 postdep_objects=$lt_postdep_objects_RC
12203
12204 # Dependencies to place before the objects being linked to create a
12205 # shared library.
12206 predeps=$lt_predeps_RC
12207
12208 # Dependencies to place after the objects being linked to create a
12209 # shared library.
12210 postdeps=$lt_postdeps_RC
12211
12212 # The library search path used internally by the compiler when linking
12213 # a shared library.
12214 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12215
12216 # Method to check whether dependent libraries are shared objects.
12217 deplibs_check_method=$lt_deplibs_check_method
12218
12219 # Command to use when deplibs_check_method == file_magic.
12220 file_magic_cmd=$lt_file_magic_cmd
12221
12222 # Flag that allows shared libraries with undefined symbols to be built.
12223 allow_undefined_flag=$lt_allow_undefined_flag_RC
12224
12225 # Flag that forces no undefined symbols.
12226 no_undefined_flag=$lt_no_undefined_flag_RC
12227
12228 # Commands used to finish a libtool library installation in a directory.
12229 finish_cmds=$lt_finish_cmds
12230
12231 # Same as above, but a single script fragment to be evaled but not shown.
12232 finish_eval=$lt_finish_eval
12233
12234 # Take the output of nm and produce a listing of raw symbols and C names.
12235 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12236
12237 # Transform the output of nm in a proper C declaration
12238 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12239
12240 # Transform the output of nm in a C name address pair
12241 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12242
12243 # This is the shared library runtime path variable.
12244 runpath_var=$runpath_var
12245
12246 # This is the shared library path variable.
12247 shlibpath_var=$shlibpath_var
12248
12249 # Is shlibpath searched before the hard-coded library search path?
12250 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12251
12252 # How to hardcode a shared library path into an executable.
12253 hardcode_action=$hardcode_action_RC
12254
12255 # Whether we should hardcode library paths into libraries.
12256 hardcode_into_libs=$hardcode_into_libs
12257
12258 # Flag to hardcode \$libdir into a binary during linking.
12259 # This must work even if \$libdir does not exist.
12260 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12261
12262 # If ld is used when linking, flag to hardcode \$libdir into
12263 # a binary during linking. This must work even if \$libdir does
12264 # not exist.
12265 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12266
12267 # Whether we need a single -rpath flag with a separated argument.
12268 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12269
12270 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12271 # resulting binary.
12272 hardcode_direct=$hardcode_direct_RC
12273
12274 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12275 # resulting binary.
12276 hardcode_minus_L=$hardcode_minus_L_RC
12277
12278 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12279 # the resulting binary.
12280 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12281
12282 # Set to yes if building a shared library automatically hardcodes DIR into the library
12283 # and all subsequent libraries and executables linked against it.
12284 hardcode_automatic=$hardcode_automatic_RC
12285
12286 # Variables whose values should be saved in libtool wrapper scripts and
12287 # restored at relink time.
12288 variables_saved_for_relink="$variables_saved_for_relink"
12289
12290 # Whether libtool must link a program against all its dependency libraries.
12291 link_all_deplibs=$link_all_deplibs_RC
12292
12293 # Compile-time system search path for libraries
12294 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12295
12296 # Run-time system search path for libraries
12297 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12298
12299 # Fix the shell variable \$srcfile for the compiler.
12300 fix_srcfile_path="$fix_srcfile_path_RC"
12301
12302 # Set to yes if exported symbols are required.
12303 always_export_symbols=$always_export_symbols_RC
12304
12305 # The commands to list exported symbols.
12306 export_symbols_cmds=$lt_export_symbols_cmds_RC
12307
12308 # The commands to extract the exported symbol list from a shared archive.
12309 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12310
12311 # Symbols that should not be listed in the preloaded symbols.
12312 exclude_expsyms=$lt_exclude_expsyms_RC
12313
12314 # Symbols that must always be exported.
12315 include_expsyms=$lt_include_expsyms_RC
12316
12317 # ### END LIBTOOL TAG CONFIG: $tagname
12318
12319 __EOF__
12320
12321
12322 else
12323   # If there is no Makefile yet, we rely on a make rule to execute
12324   # `config.status --recheck' to rerun these tests and create the
12325   # libtool script then.
12326   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12327   if test -f "$ltmain_in"; then
12328     test -f Makefile && make "$ltmain"
12329   fi
12330 fi
12331
12332
12333 ac_ext=c
12334 ac_cpp='$CPP $CPPFLAGS'
12335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12338
12339 CC="$lt_save_CC"
12340
12341         ;;
12342
12343       *)
12344         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12345 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12346    { (exit 1); exit 1; }; }
12347         ;;
12348       esac
12349
12350       # Append the new tag name to the list of available tags.
12351       if test -n "$tagname" ; then
12352       available_tags="$available_tags $tagname"
12353     fi
12354     fi
12355   done
12356   IFS="$lt_save_ifs"
12357
12358   # Now substitute the updated list of available tags.
12359   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12360     mv "${ofile}T" "$ofile"
12361     chmod +x "$ofile"
12362   else
12363     rm -f "${ofile}T"
12364     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12365 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12366    { (exit 1); exit 1; }; }
12367   fi
12368 fi
12369
12370
12371
12372 # This can be used to rebuild libtool when needed
12373 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12374
12375 # Always use our own libtool.
12376 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12377
12378 # Prevent multiple expansion
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389 { echo "$as_me:$LINENO: checking for Microsoft Visual C++" >&5
12390 echo $ECHO_N "checking for Microsoft Visual C++... $ECHO_C" >&6; }
12391 if test "${ol_cv_msvc+set}" = set; then
12392   echo $ECHO_N "(cached) $ECHO_C" >&6
12393 else
12394   cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h.  */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h.  */
12400
12401 #ifndef _MSC_VER
12402 #include <__FOO__/generate_error.h>
12403 #endif
12404
12405 _ACEOF
12406 if { (ac_try="$ac_cpp conftest.$ac_ext"
12407 case "(($ac_try" in
12408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409   *) ac_try_echo=$ac_try;;
12410 esac
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12413   ac_status=$?
12414   grep -v '^ *+' conftest.er1 >conftest.err
12415   rm -f conftest.er1
12416   cat conftest.err >&5
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); } >/dev/null && {
12419          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12420          test ! -s conftest.err
12421        }; then
12422   ol_cv_msvc=yes
12423 else
12424   echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12426
12427   ol_cv_msvc=no
12428 fi
12429
12430 rm -f conftest.err conftest.$ac_ext
12431 fi
12432 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12433 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12434
12435 ol_link_perl=no
12436 if test $ol_enable_perl != no ; then
12437         # Extract the first word of "perl", so it can be a program name with args.
12438 set dummy perl; ac_word=$2
12439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12441 if test "${ac_cv_path_PERLBIN+set}" = set; then
12442   echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444   case $PERLBIN in
12445   [\\/]* | ?:[\\/]*)
12446   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12447   ;;
12448   *)
12449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12451 do
12452   IFS=$as_save_IFS
12453   test -z "$as_dir" && as_dir=.
12454   for ac_exec_ext in '' $ac_executable_extensions; do
12455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12456     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12458     break 2
12459   fi
12460 done
12461 done
12462 IFS=$as_save_IFS
12463
12464   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12465   ;;
12466 esac
12467 fi
12468 PERLBIN=$ac_cv_path_PERLBIN
12469 if test -n "$PERLBIN"; then
12470   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12471 echo "${ECHO_T}$PERLBIN" >&6; }
12472 else
12473   { echo "$as_me:$LINENO: result: no" >&5
12474 echo "${ECHO_T}no" >&6; }
12475 fi
12476
12477
12478
12479         if test "no$PERLBIN" = "no" ; then
12480                 if test $ol_enable_perl = yes ; then
12481                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12482 echo "$as_me: error: could not locate perl" >&2;}
12483    { (exit 1); exit 1; }; }
12484                 fi
12485
12486         else
12487                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12488                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12489
12490                 if test x"$ol_enable_perl" = "xyes" ; then
12491                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12492                 else
12493                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12494                 fi
12495                                 ol_link_perl=yes
12496         fi
12497 fi
12498
12499 ac_ext=c
12500 ac_cpp='$CPP $CPPFLAGS'
12501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12504 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12505 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12506 # On Suns, sometimes $CPP names a directory.
12507 if test -n "$CPP" && test -d "$CPP"; then
12508   CPP=
12509 fi
12510 if test -z "$CPP"; then
12511   if test "${ac_cv_prog_CPP+set}" = set; then
12512   echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514       # Double quotes because CPP needs to be expanded
12515     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12516     do
12517       ac_preproc_ok=false
12518 for ac_c_preproc_warn_flag in '' yes
12519 do
12520   # Use a header file that comes with gcc, so configuring glibc
12521   # with a fresh cross-compiler works.
12522   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12523   # <limits.h> exists even on freestanding compilers.
12524   # On the NeXT, cc -E runs the code through the compiler's parser,
12525   # not just through cpp. "Syntax error" is here to catch this case.
12526   cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h.  */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h.  */
12532 #ifdef __STDC__
12533 # include <limits.h>
12534 #else
12535 # include <assert.h>
12536 #endif
12537                      Syntax error
12538 _ACEOF
12539 if { (ac_try="$ac_cpp conftest.$ac_ext"
12540 case "(($ac_try" in
12541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542   *) ac_try_echo=$ac_try;;
12543 esac
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12546   ac_status=$?
12547   grep -v '^ *+' conftest.er1 >conftest.err
12548   rm -f conftest.er1
12549   cat conftest.err >&5
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); } >/dev/null && {
12552          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12553          test ! -s conftest.err
12554        }; then
12555   :
12556 else
12557   echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12559
12560   # Broken: fails on valid input.
12561 continue
12562 fi
12563
12564 rm -f conftest.err conftest.$ac_ext
12565
12566   # OK, works on sane cases.  Now check whether nonexistent headers
12567   # can be detected and how.
12568   cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h.  */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h.  */
12574 #include <ac_nonexistent.h>
12575 _ACEOF
12576 if { (ac_try="$ac_cpp conftest.$ac_ext"
12577 case "(($ac_try" in
12578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12579   *) ac_try_echo=$ac_try;;
12580 esac
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12583   ac_status=$?
12584   grep -v '^ *+' conftest.er1 >conftest.err
12585   rm -f conftest.er1
12586   cat conftest.err >&5
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); } >/dev/null && {
12589          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12590          test ! -s conftest.err
12591        }; then
12592   # Broken: success on invalid input.
12593 continue
12594 else
12595   echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12597
12598   # Passes both tests.
12599 ac_preproc_ok=:
12600 break
12601 fi
12602
12603 rm -f conftest.err conftest.$ac_ext
12604
12605 done
12606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12607 rm -f conftest.err conftest.$ac_ext
12608 if $ac_preproc_ok; then
12609   break
12610 fi
12611
12612     done
12613     ac_cv_prog_CPP=$CPP
12614
12615 fi
12616   CPP=$ac_cv_prog_CPP
12617 else
12618   ac_cv_prog_CPP=$CPP
12619 fi
12620 { echo "$as_me:$LINENO: result: $CPP" >&5
12621 echo "${ECHO_T}$CPP" >&6; }
12622 ac_preproc_ok=false
12623 for ac_c_preproc_warn_flag in '' yes
12624 do
12625   # Use a header file that comes with gcc, so configuring glibc
12626   # with a fresh cross-compiler works.
12627   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12628   # <limits.h> exists even on freestanding compilers.
12629   # On the NeXT, cc -E runs the code through the compiler's parser,
12630   # not just through cpp. "Syntax error" is here to catch this case.
12631   cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h.  */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h.  */
12637 #ifdef __STDC__
12638 # include <limits.h>
12639 #else
12640 # include <assert.h>
12641 #endif
12642                      Syntax error
12643 _ACEOF
12644 if { (ac_try="$ac_cpp conftest.$ac_ext"
12645 case "(($ac_try" in
12646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647   *) ac_try_echo=$ac_try;;
12648 esac
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12651   ac_status=$?
12652   grep -v '^ *+' conftest.er1 >conftest.err
12653   rm -f conftest.er1
12654   cat conftest.err >&5
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); } >/dev/null && {
12657          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12658          test ! -s conftest.err
12659        }; then
12660   :
12661 else
12662   echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665   # Broken: fails on valid input.
12666 continue
12667 fi
12668
12669 rm -f conftest.err conftest.$ac_ext
12670
12671   # OK, works on sane cases.  Now check whether nonexistent headers
12672   # can be detected and how.
12673   cat >conftest.$ac_ext <<_ACEOF
12674 /* confdefs.h.  */
12675 _ACEOF
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h.  */
12679 #include <ac_nonexistent.h>
12680 _ACEOF
12681 if { (ac_try="$ac_cpp conftest.$ac_ext"
12682 case "(($ac_try" in
12683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684   *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12688   ac_status=$?
12689   grep -v '^ *+' conftest.er1 >conftest.err
12690   rm -f conftest.er1
12691   cat conftest.err >&5
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); } >/dev/null && {
12694          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12695          test ! -s conftest.err
12696        }; then
12697   # Broken: success on invalid input.
12698 continue
12699 else
12700   echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12702
12703   # Passes both tests.
12704 ac_preproc_ok=:
12705 break
12706 fi
12707
12708 rm -f conftest.err conftest.$ac_ext
12709
12710 done
12711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12712 rm -f conftest.err conftest.$ac_ext
12713 if $ac_preproc_ok; then
12714   :
12715 else
12716   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12717 See \`config.log' for more details." >&5
12718 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12719 See \`config.log' for more details." >&2;}
12720    { (exit 1); exit 1; }; }
12721 fi
12722
12723 ac_ext=c
12724 ac_cpp='$CPP $CPPFLAGS'
12725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12728
12729
12730 case $host_os in
12731   *mingw32* ) ac_cv_mingw32=yes ;;
12732   *cygwin* ) ac_cv_cygwin=yes ;;
12733 esac
12734
12735
12736
12737
12738 cat >>confdefs.h <<_ACEOF
12739 #define EXEEXT "${EXEEXT}"
12740 _ACEOF
12741
12742
12743 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12744 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12745 if test "${ac_cv_lib_be_be_app+set}" = set; then
12746   echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748   ac_check_lib_save_LIBS=$LIBS
12749 LIBS="-lbe -lroot -lnet $LIBS"
12750 cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h.  */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h.  */
12756
12757 /* Override any GCC internal prototype to avoid an error.
12758    Use char because int might match the return type of a GCC
12759    builtin and then its argument prototype would still apply.  */
12760 #ifdef __cplusplus
12761 extern "C"
12762 #endif
12763 char be_app ();
12764 int
12765 main ()
12766 {
12767 return be_app ();
12768   ;
12769   return 0;
12770 }
12771 _ACEOF
12772 rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (ac_try="$ac_link"
12774 case "(($ac_try" in
12775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776   *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779   (eval "$ac_link") 2>conftest.er1
12780   ac_status=$?
12781   grep -v '^ *+' conftest.er1 >conftest.err
12782   rm -f conftest.er1
12783   cat conftest.err >&5
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); } && {
12786          test -z "$ac_c_werror_flag" ||
12787          test ! -s conftest.err
12788        } && test -s conftest$ac_exeext &&
12789        $as_test_x conftest$ac_exeext; then
12790   ac_cv_lib_be_be_app=yes
12791 else
12792   echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12794
12795         ac_cv_lib_be_be_app=no
12796 fi
12797
12798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12799       conftest$ac_exeext conftest.$ac_ext
12800 LIBS=$ac_check_lib_save_LIBS
12801 fi
12802 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12803 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12804 if test $ac_cv_lib_be_be_app = yes; then
12805   LIBS="$LIBS -lbe -lroot -lnet"
12806 else
12807   :
12808 fi
12809
12810
12811 ac_ext=c
12812 ac_cpp='$CPP $CPPFLAGS'
12813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12816 if test -n "$ac_tool_prefix"; then
12817   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12821 if test "${ac_cv_prog_CC+set}" = set; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824   if test -n "$CC"; then
12825   ac_cv_prog_CC="$CC" # Let the user override the test.
12826 else
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12829 do
12830   IFS=$as_save_IFS
12831   test -z "$as_dir" && as_dir=.
12832   for ac_exec_ext in '' $ac_executable_extensions; do
12833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12834     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12836     break 2
12837   fi
12838 done
12839 done
12840 IFS=$as_save_IFS
12841
12842 fi
12843 fi
12844 CC=$ac_cv_prog_CC
12845 if test -n "$CC"; then
12846   { echo "$as_me:$LINENO: result: $CC" >&5
12847 echo "${ECHO_T}$CC" >&6; }
12848 else
12849   { echo "$as_me:$LINENO: result: no" >&5
12850 echo "${ECHO_T}no" >&6; }
12851 fi
12852
12853
12854 fi
12855 if test -z "$ac_cv_prog_CC"; then
12856   ac_ct_CC=$CC
12857   # Extract the first word of "gcc", so it can be a program name with args.
12858 set dummy gcc; ac_word=$2
12859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12862   echo $ECHO_N "(cached) $ECHO_C" >&6
12863 else
12864   if test -n "$ac_ct_CC"; then
12865   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12866 else
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12869 do
12870   IFS=$as_save_IFS
12871   test -z "$as_dir" && as_dir=.
12872   for ac_exec_ext in '' $ac_executable_extensions; do
12873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12874     ac_cv_prog_ac_ct_CC="gcc"
12875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12876     break 2
12877   fi
12878 done
12879 done
12880 IFS=$as_save_IFS
12881
12882 fi
12883 fi
12884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12885 if test -n "$ac_ct_CC"; then
12886   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12887 echo "${ECHO_T}$ac_ct_CC" >&6; }
12888 else
12889   { echo "$as_me:$LINENO: result: no" >&5
12890 echo "${ECHO_T}no" >&6; }
12891 fi
12892
12893   if test "x$ac_ct_CC" = x; then
12894     CC=""
12895   else
12896     case $cross_compiling:$ac_tool_warned in
12897 yes:)
12898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12899 whose name does not start with the host triplet.  If you think this
12900 configuration is useful to you, please write to autoconf@gnu.org." >&5
12901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12902 whose name does not start with the host triplet.  If you think this
12903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12904 ac_tool_warned=yes ;;
12905 esac
12906     CC=$ac_ct_CC
12907   fi
12908 else
12909   CC="$ac_cv_prog_CC"
12910 fi
12911
12912 if test -z "$CC"; then
12913           if test -n "$ac_tool_prefix"; then
12914     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12915 set dummy ${ac_tool_prefix}cc; ac_word=$2
12916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12918 if test "${ac_cv_prog_CC+set}" = set; then
12919   echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921   if test -n "$CC"; then
12922   ac_cv_prog_CC="$CC" # Let the user override the test.
12923 else
12924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925 for as_dir in $PATH
12926 do
12927   IFS=$as_save_IFS
12928   test -z "$as_dir" && as_dir=.
12929   for ac_exec_ext in '' $ac_executable_extensions; do
12930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12931     ac_cv_prog_CC="${ac_tool_prefix}cc"
12932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12933     break 2
12934   fi
12935 done
12936 done
12937 IFS=$as_save_IFS
12938
12939 fi
12940 fi
12941 CC=$ac_cv_prog_CC
12942 if test -n "$CC"; then
12943   { echo "$as_me:$LINENO: result: $CC" >&5
12944 echo "${ECHO_T}$CC" >&6; }
12945 else
12946   { echo "$as_me:$LINENO: result: no" >&5
12947 echo "${ECHO_T}no" >&6; }
12948 fi
12949
12950
12951   fi
12952 fi
12953 if test -z "$CC"; then
12954   # Extract the first word of "cc", so it can be a program name with args.
12955 set dummy cc; ac_word=$2
12956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12958 if test "${ac_cv_prog_CC+set}" = set; then
12959   echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961   if test -n "$CC"; then
12962   ac_cv_prog_CC="$CC" # Let the user override the test.
12963 else
12964   ac_prog_rejected=no
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12967 do
12968   IFS=$as_save_IFS
12969   test -z "$as_dir" && as_dir=.
12970   for ac_exec_ext in '' $ac_executable_extensions; do
12971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12972     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12973        ac_prog_rejected=yes
12974        continue
12975      fi
12976     ac_cv_prog_CC="cc"
12977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12978     break 2
12979   fi
12980 done
12981 done
12982 IFS=$as_save_IFS
12983
12984 if test $ac_prog_rejected = yes; then
12985   # We found a bogon in the path, so make sure we never use it.
12986   set dummy $ac_cv_prog_CC
12987   shift
12988   if test $# != 0; then
12989     # We chose a different compiler from the bogus one.
12990     # However, it has the same basename, so the bogon will be chosen
12991     # first if we set CC to just the basename; use the full file name.
12992     shift
12993     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12994   fi
12995 fi
12996 fi
12997 fi
12998 CC=$ac_cv_prog_CC
12999 if test -n "$CC"; then
13000   { echo "$as_me:$LINENO: result: $CC" >&5
13001 echo "${ECHO_T}$CC" >&6; }
13002 else
13003   { echo "$as_me:$LINENO: result: no" >&5
13004 echo "${ECHO_T}no" >&6; }
13005 fi
13006
13007
13008 fi
13009 if test -z "$CC"; then
13010   if test -n "$ac_tool_prefix"; then
13011   for ac_prog in cl.exe
13012   do
13013     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13017 if test "${ac_cv_prog_CC+set}" = set; then
13018   echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020   if test -n "$CC"; then
13021   ac_cv_prog_CC="$CC" # Let the user override the test.
13022 else
13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13025 do
13026   IFS=$as_save_IFS
13027   test -z "$as_dir" && as_dir=.
13028   for ac_exec_ext in '' $ac_executable_extensions; do
13029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13030     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13032     break 2
13033   fi
13034 done
13035 done
13036 IFS=$as_save_IFS
13037
13038 fi
13039 fi
13040 CC=$ac_cv_prog_CC
13041 if test -n "$CC"; then
13042   { echo "$as_me:$LINENO: result: $CC" >&5
13043 echo "${ECHO_T}$CC" >&6; }
13044 else
13045   { echo "$as_me:$LINENO: result: no" >&5
13046 echo "${ECHO_T}no" >&6; }
13047 fi
13048
13049
13050     test -n "$CC" && break
13051   done
13052 fi
13053 if test -z "$CC"; then
13054   ac_ct_CC=$CC
13055   for ac_prog in cl.exe
13056 do
13057   # Extract the first word of "$ac_prog", so it can be a program name with args.
13058 set dummy $ac_prog; ac_word=$2
13059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13062   echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064   if test -n "$ac_ct_CC"; then
13065   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13066 else
13067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068 for as_dir in $PATH
13069 do
13070   IFS=$as_save_IFS
13071   test -z "$as_dir" && as_dir=.
13072   for ac_exec_ext in '' $ac_executable_extensions; do
13073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13074     ac_cv_prog_ac_ct_CC="$ac_prog"
13075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13076     break 2
13077   fi
13078 done
13079 done
13080 IFS=$as_save_IFS
13081
13082 fi
13083 fi
13084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13085 if test -n "$ac_ct_CC"; then
13086   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13087 echo "${ECHO_T}$ac_ct_CC" >&6; }
13088 else
13089   { echo "$as_me:$LINENO: result: no" >&5
13090 echo "${ECHO_T}no" >&6; }
13091 fi
13092
13093
13094   test -n "$ac_ct_CC" && break
13095 done
13096
13097   if test "x$ac_ct_CC" = x; then
13098     CC=""
13099   else
13100     case $cross_compiling:$ac_tool_warned in
13101 yes:)
13102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13103 whose name does not start with the host triplet.  If you think this
13104 configuration is useful to you, please write to autoconf@gnu.org." >&5
13105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13106 whose name does not start with the host triplet.  If you think this
13107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13108 ac_tool_warned=yes ;;
13109 esac
13110     CC=$ac_ct_CC
13111   fi
13112 fi
13113
13114 fi
13115
13116
13117 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13118 See \`config.log' for more details." >&5
13119 echo "$as_me: error: no acceptable C compiler found in \$PATH
13120 See \`config.log' for more details." >&2;}
13121    { (exit 1); exit 1; }; }
13122
13123 # Provide some information about the compiler.
13124 echo "$as_me:$LINENO: checking for C compiler version" >&5
13125 ac_compiler=`set X $ac_compile; echo $2`
13126 { (ac_try="$ac_compiler --version >&5"
13127 case "(($ac_try" in
13128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129   *) ac_try_echo=$ac_try;;
13130 esac
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132   (eval "$ac_compiler --version >&5") 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }
13136 { (ac_try="$ac_compiler -v >&5"
13137 case "(($ac_try" in
13138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139   *) ac_try_echo=$ac_try;;
13140 esac
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142   (eval "$ac_compiler -v >&5") 2>&5
13143   ac_status=$?
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); }
13146 { (ac_try="$ac_compiler -V >&5"
13147 case "(($ac_try" in
13148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149   *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152   (eval "$ac_compiler -V >&5") 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }
13156
13157 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13158 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13159 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13160   echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162   cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h.  */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h.  */
13168
13169 int
13170 main ()
13171 {
13172 #ifndef __GNUC__
13173        choke me
13174 #endif
13175
13176   ;
13177   return 0;
13178 }
13179 _ACEOF
13180 rm -f conftest.$ac_objext
13181 if { (ac_try="$ac_compile"
13182 case "(($ac_try" in
13183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184   *) ac_try_echo=$ac_try;;
13185 esac
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187   (eval "$ac_compile") 2>conftest.er1
13188   ac_status=$?
13189   grep -v '^ *+' conftest.er1 >conftest.err
13190   rm -f conftest.er1
13191   cat conftest.err >&5
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); } && {
13194          test -z "$ac_c_werror_flag" ||
13195          test ! -s conftest.err
13196        } && test -s conftest.$ac_objext; then
13197   ac_compiler_gnu=yes
13198 else
13199   echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13201
13202         ac_compiler_gnu=no
13203 fi
13204
13205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13206 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13207
13208 fi
13209 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13210 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13211 GCC=`test $ac_compiler_gnu = yes && echo yes`
13212 ac_test_CFLAGS=${CFLAGS+set}
13213 ac_save_CFLAGS=$CFLAGS
13214 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13215 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13216 if test "${ac_cv_prog_cc_g+set}" = set; then
13217   echo $ECHO_N "(cached) $ECHO_C" >&6
13218 else
13219   ac_save_c_werror_flag=$ac_c_werror_flag
13220    ac_c_werror_flag=yes
13221    ac_cv_prog_cc_g=no
13222    CFLAGS="-g"
13223    cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h.  */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h.  */
13229
13230 int
13231 main ()
13232 {
13233
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext
13239 if { (ac_try="$ac_compile"
13240 case "(($ac_try" in
13241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242   *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245   (eval "$ac_compile") 2>conftest.er1
13246   ac_status=$?
13247   grep -v '^ *+' conftest.er1 >conftest.err
13248   rm -f conftest.er1
13249   cat conftest.err >&5
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); } && {
13252          test -z "$ac_c_werror_flag" ||
13253          test ! -s conftest.err
13254        } && test -s conftest.$ac_objext; then
13255   ac_cv_prog_cc_g=yes
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260         CFLAGS=""
13261       cat >conftest.$ac_ext <<_ACEOF
13262 /* confdefs.h.  */
13263 _ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h.  */
13267
13268 int
13269 main ()
13270 {
13271
13272   ;
13273   return 0;
13274 }
13275 _ACEOF
13276 rm -f conftest.$ac_objext
13277 if { (ac_try="$ac_compile"
13278 case "(($ac_try" in
13279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280   *) ac_try_echo=$ac_try;;
13281 esac
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283   (eval "$ac_compile") 2>conftest.er1
13284   ac_status=$?
13285   grep -v '^ *+' conftest.er1 >conftest.err
13286   rm -f conftest.er1
13287   cat conftest.err >&5
13288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289   (exit $ac_status); } && {
13290          test -z "$ac_c_werror_flag" ||
13291          test ! -s conftest.err
13292        } && test -s conftest.$ac_objext; then
13293   :
13294 else
13295   echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13297
13298         ac_c_werror_flag=$ac_save_c_werror_flag
13299          CFLAGS="-g"
13300          cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h.  */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h.  */
13306
13307 int
13308 main ()
13309 {
13310
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext
13316 if { (ac_try="$ac_compile"
13317 case "(($ac_try" in
13318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319   *) ac_try_echo=$ac_try;;
13320 esac
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322   (eval "$ac_compile") 2>conftest.er1
13323   ac_status=$?
13324   grep -v '^ *+' conftest.er1 >conftest.err
13325   rm -f conftest.er1
13326   cat conftest.err >&5
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); } && {
13329          test -z "$ac_c_werror_flag" ||
13330          test ! -s conftest.err
13331        } && test -s conftest.$ac_objext; then
13332   ac_cv_prog_cc_g=yes
13333 else
13334   echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13336
13337
13338 fi
13339
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341 fi
13342
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 fi
13345
13346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13347    ac_c_werror_flag=$ac_save_c_werror_flag
13348 fi
13349 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13350 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13351 if test "$ac_test_CFLAGS" = set; then
13352   CFLAGS=$ac_save_CFLAGS
13353 elif test $ac_cv_prog_cc_g = yes; then
13354   if test "$GCC" = yes; then
13355     CFLAGS="-g -O2"
13356   else
13357     CFLAGS="-g"
13358   fi
13359 else
13360   if test "$GCC" = yes; then
13361     CFLAGS="-O2"
13362   else
13363     CFLAGS=
13364   fi
13365 fi
13366 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13367 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13368 if test "${ac_cv_prog_cc_c89+set}" = set; then
13369   echo $ECHO_N "(cached) $ECHO_C" >&6
13370 else
13371   ac_cv_prog_cc_c89=no
13372 ac_save_CC=$CC
13373 cat >conftest.$ac_ext <<_ACEOF
13374 /* confdefs.h.  */
13375 _ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h.  */
13379 #include <stdarg.h>
13380 #include <stdio.h>
13381 #include <sys/types.h>
13382 #include <sys/stat.h>
13383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13384 struct buf { int x; };
13385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13386 static char *e (p, i)
13387      char **p;
13388      int i;
13389 {
13390   return p[i];
13391 }
13392 static char *f (char * (*g) (char **, int), char **p, ...)
13393 {
13394   char *s;
13395   va_list v;
13396   va_start (v,p);
13397   s = g (p, va_arg (v,int));
13398   va_end (v);
13399   return s;
13400 }
13401
13402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13403    function prototypes and stuff, but not '\xHH' hex character constants.
13404    These don't provoke an error unfortunately, instead are silently treated
13405    as 'x'.  The following induces an error, until -std is added to get
13406    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13407    array size at least.  It's necessary to write '\x00'==0 to get something
13408    that's true only with -std.  */
13409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13410
13411 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13412    inside strings and character constants.  */
13413 #define FOO(x) 'x'
13414 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13415
13416 int test (int i, double x);
13417 struct s1 {int (*f) (int a);};
13418 struct s2 {int (*f) (double a);};
13419 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13420 int argc;
13421 char **argv;
13422 int
13423 main ()
13424 {
13425 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13426   ;
13427   return 0;
13428 }
13429 _ACEOF
13430 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13431         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13432 do
13433   CC="$ac_save_CC $ac_arg"
13434   rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438   *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441   (eval "$ac_compile") 2>conftest.er1
13442   ac_status=$?
13443   grep -v '^ *+' conftest.er1 >conftest.err
13444   rm -f conftest.er1
13445   cat conftest.err >&5
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); } && {
13448          test -z "$ac_c_werror_flag" ||
13449          test ! -s conftest.err
13450        } && test -s conftest.$ac_objext; then
13451   ac_cv_prog_cc_c89=$ac_arg
13452 else
13453   echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13455
13456
13457 fi
13458
13459 rm -f core conftest.err conftest.$ac_objext
13460   test "x$ac_cv_prog_cc_c89" != "xno" && break
13461 done
13462 rm -f conftest.$ac_ext
13463 CC=$ac_save_CC
13464
13465 fi
13466 # AC_CACHE_VAL
13467 case "x$ac_cv_prog_cc_c89" in
13468   x)
13469     { echo "$as_me:$LINENO: result: none needed" >&5
13470 echo "${ECHO_T}none needed" >&6; } ;;
13471   xno)
13472     { echo "$as_me:$LINENO: result: unsupported" >&5
13473 echo "${ECHO_T}unsupported" >&6; } ;;
13474   *)
13475     CC="$CC $ac_cv_prog_cc_c89"
13476     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13477 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13478 esac
13479
13480
13481 ac_ext=c
13482 ac_cpp='$CPP $CPPFLAGS'
13483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13486
13487 depcc="$CC"   am_compiler_list=
13488
13489 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13490 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13491 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13492   echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13495   # We make a subdir and do the tests there.  Otherwise we can end up
13496   # making bogus files that we don't know about and never remove.  For
13497   # instance it was reported that on HP-UX the gcc test will end up
13498   # making a dummy file named `D' -- because `-MD' means `put the output
13499   # in D'.
13500   mkdir conftest.dir
13501   # Copy depcomp to subdir because otherwise we won't find it if we're
13502   # using a relative directory.
13503   cp "$am_depcomp" conftest.dir
13504   cd conftest.dir
13505   # We will build objects and dependencies in a subdirectory because
13506   # it helps to detect inapplicable dependency modes.  For instance
13507   # both Tru64's cc and ICC support -MD to output dependencies as a
13508   # side effect of compilation, but ICC will put the dependencies in
13509   # the current directory while Tru64 will put them in the object
13510   # directory.
13511   mkdir sub
13512
13513   am_cv_CC_dependencies_compiler_type=none
13514   if test "$am_compiler_list" = ""; then
13515      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13516   fi
13517   for depmode in $am_compiler_list; do
13518     # Setup a source with many dependencies, because some compilers
13519     # like to wrap large dependency lists on column 80 (with \), and
13520     # we should not choose a depcomp mode which is confused by this.
13521     #
13522     # We need to recreate these files for each test, as the compiler may
13523     # overwrite some of them when testing with obscure command lines.
13524     # This happens at least with the AIX C compiler.
13525     : > sub/conftest.c
13526     for i in 1 2 3 4 5 6; do
13527       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13528       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13529       # Solaris 8's {/usr,}/bin/sh.
13530       touch sub/conftst$i.h
13531     done
13532     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13533
13534     case $depmode in
13535     nosideeffect)
13536       # after this tag, mechanisms are not by side-effect, so they'll
13537       # only be used when explicitly requested
13538       if test "x$enable_dependency_tracking" = xyes; then
13539         continue
13540       else
13541         break
13542       fi
13543       ;;
13544     none) break ;;
13545     esac
13546     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13547     # mode.  It turns out that the SunPro C++ compiler does not properly
13548     # handle `-M -o', and we need to detect this.
13549     if depmode=$depmode \
13550        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13551        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13552        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13553          >/dev/null 2>conftest.err &&
13554        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13555        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13556        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13557       # icc doesn't choke on unknown options, it will just issue warnings
13558       # or remarks (even with -Werror).  So we grep stderr for any message
13559       # that says an option was ignored or not supported.
13560       # When given -MP, icc 7.0 and 7.1 complain thusly:
13561       #   icc: Command line warning: ignoring option '-M'; no argument required
13562       # The diagnosis changed in icc 8.0:
13563       #   icc: Command line remark: option '-MP' not supported
13564       if (grep 'ignoring option' conftest.err ||
13565           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13566         am_cv_CC_dependencies_compiler_type=$depmode
13567         break
13568       fi
13569     fi
13570   done
13571
13572   cd ..
13573   rm -rf conftest.dir
13574 else
13575   am_cv_CC_dependencies_compiler_type=none
13576 fi
13577
13578 fi
13579 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13580 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13581 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13582
13583
13584
13585 if
13586   test "x$enable_dependency_tracking" != xno \
13587   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13588   am__fastdepCC_TRUE=
13589   am__fastdepCC_FALSE='#'
13590 else
13591   am__fastdepCC_TRUE='#'
13592   am__fastdepCC_FALSE=
13593 fi
13594
13595
13596 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13597         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13598 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13599    { (exit 1); exit 1; }; }
13600 fi
13601
13602 # test for make depend flag
13603 OL_MKDEP=
13604 OL_MKDEP_FLAGS=
13605 if test -z "${MKDEP}"; then
13606         OL_MKDEP="${CC-cc}"
13607         if test -z "${MKDEP_FLAGS}"; then
13608                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13609 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13610 if test "${ol_cv_mkdep+set}" = set; then
13611   echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613
13614                         ol_cv_mkdep=no
13615                         for flag in "-M" "-xM"; do
13616                                 cat > conftest.c <<EOF
13617  noCode;
13618 EOF
13619                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621   (eval $ac_try) 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }; } \
13625                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13626                                 then
13627                                         if test ! -f conftest."${ac_object}" ; then
13628                                                 ol_cv_mkdep=$flag
13629                                                 OL_MKDEP_FLAGS="$flag"
13630                                                 break
13631                                         fi
13632                                 fi
13633                         done
13634                         rm -f conftest*
13635
13636 fi
13637 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13638 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13639                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13640         else
13641                 cc_cv_mkdep=yes
13642                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13643         fi
13644 else
13645         cc_cv_mkdep=yes
13646         OL_MKDEP="${MKDEP}"
13647         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13648 fi
13649
13650
13651
13652 if test "${ol_cv_mkdep}" = no ; then
13653         # this will soon become an error
13654         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13655 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13656 fi
13657
13658 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13659 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13660 if test "${ac_cv_lib_s_afopen+set}" = set; then
13661   echo $ECHO_N "(cached) $ECHO_C" >&6
13662 else
13663   ac_check_lib_save_LIBS=$LIBS
13664 LIBS="-ls  $LIBS"
13665 cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h.  */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h.  */
13671
13672 /* Override any GCC internal prototype to avoid an error.
13673    Use char because int might match the return type of a GCC
13674    builtin and then its argument prototype would still apply.  */
13675 #ifdef __cplusplus
13676 extern "C"
13677 #endif
13678 char afopen ();
13679 int
13680 main ()
13681 {
13682 return afopen ();
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 rm -f conftest.$ac_objext conftest$ac_exeext
13688 if { (ac_try="$ac_link"
13689 case "(($ac_try" in
13690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691   *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694   (eval "$ac_link") 2>conftest.er1
13695   ac_status=$?
13696   grep -v '^ *+' conftest.er1 >conftest.err
13697   rm -f conftest.er1
13698   cat conftest.err >&5
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); } && {
13701          test -z "$ac_c_werror_flag" ||
13702          test ! -s conftest.err
13703        } && test -s conftest$ac_exeext &&
13704        $as_test_x conftest$ac_exeext; then
13705   ac_cv_lib_s_afopen=yes
13706 else
13707   echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13709
13710         ac_cv_lib_s_afopen=no
13711 fi
13712
13713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13714       conftest$ac_exeext conftest.$ac_ext
13715 LIBS=$ac_check_lib_save_LIBS
13716 fi
13717 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13718 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13719 if test $ac_cv_lib_s_afopen = yes; then
13720
13721         AUTH_LIBS=-ls
13722
13723 cat >>confdefs.h <<\_ACEOF
13724 #define HAVE_AIX_SECURITY 1
13725 _ACEOF
13726
13727
13728 fi
13729
13730
13731 case "$target" in
13732 *-ibm-openedition)
13733         ac_cv_func_getopt=no
13734
13735 cat >>confdefs.h <<\_ACEOF
13736 #define BOTH_STRINGS_H 1
13737 _ACEOF
13738
13739         ;;
13740 esac
13741
13742 ol_link_modules=no
13743 WITH_MODULES_ENABLED=no
13744 if test $ol_enable_modules != no ; then
13745
13746 for ac_header in ltdl.h
13747 do
13748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13750   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13753   echo $ECHO_N "(cached) $ECHO_C" >&6
13754 fi
13755 ac_res=`eval echo '${'$as_ac_Header'}'`
13756                { echo "$as_me:$LINENO: result: $ac_res" >&5
13757 echo "${ECHO_T}$ac_res" >&6; }
13758 else
13759   # Is the header compilable?
13760 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13762 cat >conftest.$ac_ext <<_ACEOF
13763 /* confdefs.h.  */
13764 _ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h.  */
13768 $ac_includes_default
13769 #include <$ac_header>
13770 _ACEOF
13771 rm -f conftest.$ac_objext
13772 if { (ac_try="$ac_compile"
13773 case "(($ac_try" in
13774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775   *) ac_try_echo=$ac_try;;
13776 esac
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778   (eval "$ac_compile") 2>conftest.er1
13779   ac_status=$?
13780   grep -v '^ *+' conftest.er1 >conftest.err
13781   rm -f conftest.er1
13782   cat conftest.err >&5
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); } && {
13785          test -z "$ac_c_werror_flag" ||
13786          test ! -s conftest.err
13787        } && test -s conftest.$ac_objext; then
13788   ac_header_compiler=yes
13789 else
13790   echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13792
13793         ac_header_compiler=no
13794 fi
13795
13796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13798 echo "${ECHO_T}$ac_header_compiler" >&6; }
13799
13800 # Is the header present?
13801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13803 cat >conftest.$ac_ext <<_ACEOF
13804 /* confdefs.h.  */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h.  */
13809 #include <$ac_header>
13810 _ACEOF
13811 if { (ac_try="$ac_cpp conftest.$ac_ext"
13812 case "(($ac_try" in
13813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814   *) ac_try_echo=$ac_try;;
13815 esac
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13818   ac_status=$?
13819   grep -v '^ *+' conftest.er1 >conftest.err
13820   rm -f conftest.er1
13821   cat conftest.err >&5
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); } >/dev/null && {
13824          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13825          test ! -s conftest.err
13826        }; then
13827   ac_header_preproc=yes
13828 else
13829   echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13831
13832   ac_header_preproc=no
13833 fi
13834
13835 rm -f conftest.err conftest.$ac_ext
13836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13837 echo "${ECHO_T}$ac_header_preproc" >&6; }
13838
13839 # So?  What about this header?
13840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13841   yes:no: )
13842     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13846     ac_header_preproc=yes
13847     ;;
13848   no:yes:* )
13849     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13851     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13852 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13853     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13855     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13856 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13859     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13861     ( cat <<\_ASBOX
13862 ## --------------------------------------------- ##
13863 ## Report this to <http://www.openldap.org/its/> ##
13864 ## --------------------------------------------- ##
13865 _ASBOX
13866      ) | sed "s/^/$as_me: WARNING:     /" >&2
13867     ;;
13868 esac
13869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13872   echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874   eval "$as_ac_Header=\$ac_header_preproc"
13875 fi
13876 ac_res=`eval echo '${'$as_ac_Header'}'`
13877                { echo "$as_me:$LINENO: result: $ac_res" >&5
13878 echo "${ECHO_T}$ac_res" >&6; }
13879
13880 fi
13881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13882   cat >>confdefs.h <<_ACEOF
13883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13884 _ACEOF
13885
13886 fi
13887
13888 done
13889
13890
13891         if test $ac_cv_header_ltdl_h = no ; then
13892                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13893 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13894    { (exit 1); exit 1; }; }
13895         fi
13896
13897         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13898 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13899 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13900   echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902   ac_check_lib_save_LIBS=$LIBS
13903 LIBS="-lltdl  $LIBS"
13904 cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h.  */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h.  */
13910
13911 /* Override any GCC internal prototype to avoid an error.
13912    Use char because int might match the return type of a GCC
13913    builtin and then its argument prototype would still apply.  */
13914 #ifdef __cplusplus
13915 extern "C"
13916 #endif
13917 char lt_dlinit ();
13918 int
13919 main ()
13920 {
13921 return lt_dlinit ();
13922   ;
13923   return 0;
13924 }
13925 _ACEOF
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (ac_try="$ac_link"
13928 case "(($ac_try" in
13929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930   *) ac_try_echo=$ac_try;;
13931 esac
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933   (eval "$ac_link") 2>conftest.er1
13934   ac_status=$?
13935   grep -v '^ *+' conftest.er1 >conftest.err
13936   rm -f conftest.er1
13937   cat conftest.err >&5
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); } && {
13940          test -z "$ac_c_werror_flag" ||
13941          test ! -s conftest.err
13942        } && test -s conftest$ac_exeext &&
13943        $as_test_x conftest$ac_exeext; then
13944   ac_cv_lib_ltdl_lt_dlinit=yes
13945 else
13946   echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13948
13949         ac_cv_lib_ltdl_lt_dlinit=no
13950 fi
13951
13952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13953       conftest$ac_exeext conftest.$ac_ext
13954 LIBS=$ac_check_lib_save_LIBS
13955 fi
13956 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13957 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13958 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13959
13960                 MODULES_LIBS=-lltdl
13961
13962 cat >>confdefs.h <<\_ACEOF
13963 #define HAVE_LIBLTDL 1
13964 _ACEOF
13965
13966
13967 fi
13968
13969
13970         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13971                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13972 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13973    { (exit 1); exit 1; }; }
13974         fi
13975         ol_link_modules=yes
13976         WITH_MODULES_ENABLED=yes
13977
13978 else
13979         for i in $Backends; do
13980                 eval "ol_tmp=\$ol_enable_$i"
13981                 if test $ol_tmp = mod ; then
13982                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13983 echo "$as_me: WARNING: building static $i backend" >&2;}
13984                         eval "ol_enable_$i=yes"
13985                 fi
13986         done
13987         for i in $Overlays; do
13988                 eval "ol_tmp=\$ol_enable_$i"
13989                 if test $ol_tmp = mod ; then
13990                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13991 echo "$as_me: WARNING: building static $i overlay" >&2;}
13992                         eval "ol_enable_$i=yes"
13993                 fi
13994         done
13995 fi
13996
13997 # test for EBCDIC
13998 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
13999 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14000 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14001   echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003
14004         cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h.  */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h.  */
14010
14011 #if !('M' == 0xd4)
14012 #include <__ASCII__/generate_error.h>
14013 #endif
14014
14015 _ACEOF
14016 if { (ac_try="$ac_cpp conftest.$ac_ext"
14017 case "(($ac_try" in
14018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019   *) ac_try_echo=$ac_try;;
14020 esac
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14023   ac_status=$?
14024   grep -v '^ *+' conftest.er1 >conftest.err
14025   rm -f conftest.er1
14026   cat conftest.err >&5
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); } >/dev/null && {
14029          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14030          test ! -s conftest.err
14031        }; then
14032   ol_cv_cpp_ebcdic=yes
14033 else
14034   echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14036
14037   ol_cv_cpp_ebcdic=no
14038 fi
14039
14040 rm -f conftest.err conftest.$ac_ext
14041 fi
14042 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14043 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14044 if test $ol_cv_cpp_ebcdic = yes ; then
14045
14046 cat >>confdefs.h <<\_ACEOF
14047 #define HAVE_EBCDIC 1
14048 _ACEOF
14049
14050 fi
14051
14052 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14053 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14054 if test "${ol_cv_header_stdc+set}" = set; then
14055   echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057   cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063 #include <stdlib.h>
14064 #include <stdarg.h>
14065 #include <string.h>
14066 #include <float.h>
14067 _ACEOF
14068 if { (ac_try="$ac_cpp conftest.$ac_ext"
14069 case "(($ac_try" in
14070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071   *) ac_try_echo=$ac_try;;
14072 esac
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14075   ac_status=$?
14076   grep -v '^ *+' conftest.er1 >conftest.err
14077   rm -f conftest.er1
14078   cat conftest.err >&5
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); } >/dev/null && {
14081          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14082          test ! -s conftest.err
14083        }; then
14084   ol_cv_header_stdc=yes
14085 else
14086   echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14088
14089   ol_cv_header_stdc=no
14090 fi
14091
14092 rm -f conftest.err conftest.$ac_ext
14093
14094 if test $ol_cv_header_stdc = yes; then
14095   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14096 cat >conftest.$ac_ext <<_ACEOF
14097 /* confdefs.h.  */
14098 _ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h.  */
14102 #include <string.h>
14103
14104 _ACEOF
14105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14106   $EGREP "memchr" >/dev/null 2>&1; then
14107   :
14108 else
14109   ol_cv_header_stdc=no
14110 fi
14111 rm -f conftest*
14112
14113 fi
14114
14115 if test $ol_cv_header_stdc = yes; then
14116   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14117 cat >conftest.$ac_ext <<_ACEOF
14118 /* confdefs.h.  */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h.  */
14123 #include <stdlib.h>
14124
14125 _ACEOF
14126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14127   $EGREP "free" >/dev/null 2>&1; then
14128   :
14129 else
14130   ol_cv_header_stdc=no
14131 fi
14132 rm -f conftest*
14133
14134 fi
14135
14136 if test $ol_cv_header_stdc = yes; then
14137   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14138 if test "$cross_compiling" = yes; then
14139   :
14140 else
14141   cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h.  */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h.  */
14147 #include <ctype.h>
14148 #ifndef HAVE_EBCDIC
14149 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14150 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14151 #else
14152 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14153                 || ('j' <= (c) && (c) <= 'r') \
14154                 || ('s' <= (c) && (c) <= 'z'))
14155 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14156 #endif
14157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14158 int main () { int i; for (i = 0; i < 256; i++)
14159 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14160 exit (0); }
14161
14162 _ACEOF
14163 rm -f conftest$ac_exeext
14164 if { (ac_try="$ac_link"
14165 case "(($ac_try" in
14166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167   *) ac_try_echo=$ac_try;;
14168 esac
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170   (eval "$ac_link") 2>&5
14171   ac_status=$?
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14174   { (case "(($ac_try" in
14175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176   *) ac_try_echo=$ac_try;;
14177 esac
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179   (eval "$ac_try") 2>&5
14180   ac_status=$?
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); }; }; then
14183   :
14184 else
14185   echo "$as_me: program exited with status $ac_status" >&5
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14188
14189 ( exit $ac_status )
14190 ol_cv_header_stdc=no
14191 fi
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14193 fi
14194
14195
14196 fi
14197 fi
14198 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14199 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14200 if test $ol_cv_header_stdc = yes; then
14201   cat >>confdefs.h <<\_ACEOF
14202 #define STDC_HEADERS 1
14203 _ACEOF
14204
14205 fi
14206 ac_cv_header_stdc=disable
14207
14208
14209 if test $ol_cv_header_stdc != yes; then
14210         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14211 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14212 fi
14213
14214
14215
14216
14217
14218
14219 ac_header_dirent=no
14220 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14221   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14222 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14223 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14225   echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227   cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233 #include <sys/types.h>
14234 #include <$ac_hdr>
14235
14236 int
14237 main ()
14238 {
14239 if ((DIR *) 0)
14240 return 0;
14241   ;
14242   return 0;
14243 }
14244 _ACEOF
14245 rm -f conftest.$ac_objext
14246 if { (ac_try="$ac_compile"
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_compile") 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); } && {
14259          test -z "$ac_c_werror_flag" ||
14260          test ! -s conftest.err
14261        } && test -s conftest.$ac_objext; then
14262   eval "$as_ac_Header=yes"
14263 else
14264   echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14266
14267         eval "$as_ac_Header=no"
14268 fi
14269
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271 fi
14272 ac_res=`eval echo '${'$as_ac_Header'}'`
14273                { echo "$as_me:$LINENO: result: $ac_res" >&5
14274 echo "${ECHO_T}$ac_res" >&6; }
14275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14276   cat >>confdefs.h <<_ACEOF
14277 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14278 _ACEOF
14279
14280 ac_header_dirent=$ac_hdr; break
14281 fi
14282
14283 done
14284 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14285 if test $ac_header_dirent = dirent.h; then
14286   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14287 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14288 if test "${ac_cv_search_opendir+set}" = set; then
14289   echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291   ac_func_search_save_LIBS=$LIBS
14292 cat >conftest.$ac_ext <<_ACEOF
14293 /* confdefs.h.  */
14294 _ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h.  */
14298
14299 /* Override any GCC internal prototype to avoid an error.
14300    Use char because int might match the return type of a GCC
14301    builtin and then its argument prototype would still apply.  */
14302 #ifdef __cplusplus
14303 extern "C"
14304 #endif
14305 char opendir ();
14306 int
14307 main ()
14308 {
14309 return opendir ();
14310   ;
14311   return 0;
14312 }
14313 _ACEOF
14314 for ac_lib in '' dir; do
14315   if test -z "$ac_lib"; then
14316     ac_res="none required"
14317   else
14318     ac_res=-l$ac_lib
14319     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14320   fi
14321   rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325   *) ac_try_echo=$ac_try;;
14326 esac
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328   (eval "$ac_link") 2>conftest.er1
14329   ac_status=$?
14330   grep -v '^ *+' conftest.er1 >conftest.err
14331   rm -f conftest.er1
14332   cat conftest.err >&5
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); } && {
14335          test -z "$ac_c_werror_flag" ||
14336          test ! -s conftest.err
14337        } && test -s conftest$ac_exeext &&
14338        $as_test_x conftest$ac_exeext; then
14339   ac_cv_search_opendir=$ac_res
14340 else
14341   echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14343
14344
14345 fi
14346
14347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14348       conftest$ac_exeext
14349   if test "${ac_cv_search_opendir+set}" = set; then
14350   break
14351 fi
14352 done
14353 if test "${ac_cv_search_opendir+set}" = set; then
14354   :
14355 else
14356   ac_cv_search_opendir=no
14357 fi
14358 rm conftest.$ac_ext
14359 LIBS=$ac_func_search_save_LIBS
14360 fi
14361 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14362 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14363 ac_res=$ac_cv_search_opendir
14364 if test "$ac_res" != no; then
14365   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14366
14367 fi
14368
14369 else
14370   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14371 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14372 if test "${ac_cv_search_opendir+set}" = set; then
14373   echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375   ac_func_search_save_LIBS=$LIBS
14376 cat >conftest.$ac_ext <<_ACEOF
14377 /* confdefs.h.  */
14378 _ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h.  */
14382
14383 /* Override any GCC internal prototype to avoid an error.
14384    Use char because int might match the return type of a GCC
14385    builtin and then its argument prototype would still apply.  */
14386 #ifdef __cplusplus
14387 extern "C"
14388 #endif
14389 char opendir ();
14390 int
14391 main ()
14392 {
14393 return opendir ();
14394   ;
14395   return 0;
14396 }
14397 _ACEOF
14398 for ac_lib in '' x; do
14399   if test -z "$ac_lib"; then
14400     ac_res="none required"
14401   else
14402     ac_res=-l$ac_lib
14403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14404   fi
14405   rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409   *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412   (eval "$ac_link") 2>conftest.er1
14413   ac_status=$?
14414   grep -v '^ *+' conftest.er1 >conftest.err
14415   rm -f conftest.er1
14416   cat conftest.err >&5
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); } && {
14419          test -z "$ac_c_werror_flag" ||
14420          test ! -s conftest.err
14421        } && test -s conftest$ac_exeext &&
14422        $as_test_x conftest$ac_exeext; then
14423   ac_cv_search_opendir=$ac_res
14424 else
14425   echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14427
14428
14429 fi
14430
14431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14432       conftest$ac_exeext
14433   if test "${ac_cv_search_opendir+set}" = set; then
14434   break
14435 fi
14436 done
14437 if test "${ac_cv_search_opendir+set}" = set; then
14438   :
14439 else
14440   ac_cv_search_opendir=no
14441 fi
14442 rm conftest.$ac_ext
14443 LIBS=$ac_func_search_save_LIBS
14444 fi
14445 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14446 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14447 ac_res=$ac_cv_search_opendir
14448 if test "$ac_res" != no; then
14449   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14450
14451 fi
14452
14453 fi
14454
14455 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14456 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14457 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14458   echo $ECHO_N "(cached) $ECHO_C" >&6
14459 else
14460   cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14466 #include <sys/types.h>
14467 #include <sys/wait.h>
14468 #ifndef WEXITSTATUS
14469 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14470 #endif
14471 #ifndef WIFEXITED
14472 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14473 #endif
14474
14475 int
14476 main ()
14477 {
14478   int s;
14479   wait (&s);
14480   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14481   ;
14482   return 0;
14483 }
14484 _ACEOF
14485 rm -f conftest.$ac_objext
14486 if { (ac_try="$ac_compile"
14487 case "(($ac_try" in
14488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489   *) ac_try_echo=$ac_try;;
14490 esac
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492   (eval "$ac_compile") 2>conftest.er1
14493   ac_status=$?
14494   grep -v '^ *+' conftest.er1 >conftest.err
14495   rm -f conftest.er1
14496   cat conftest.err >&5
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); } && {
14499          test -z "$ac_c_werror_flag" ||
14500          test ! -s conftest.err
14501        } && test -s conftest.$ac_objext; then
14502   ac_cv_header_sys_wait_h=yes
14503 else
14504   echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507         ac_cv_header_sys_wait_h=no
14508 fi
14509
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 fi
14512 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14513 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14514 if test $ac_cv_header_sys_wait_h = yes; then
14515
14516 cat >>confdefs.h <<\_ACEOF
14517 #define HAVE_SYS_WAIT_H 1
14518 _ACEOF
14519
14520 fi
14521
14522 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14523 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14524 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14525   echo $ECHO_N "(cached) $ECHO_C" >&6
14526 else
14527   cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h.  */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h.  */
14533 #include <sys/types.h>
14534 #include <termios.h>
14535 #ifdef TIOCGWINSZ
14536   yes
14537 #endif
14538
14539 _ACEOF
14540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14541   $EGREP "yes" >/dev/null 2>&1; then
14542   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14543 else
14544   ac_cv_sys_tiocgwinsz_in_termios_h=no
14545 fi
14546 rm -f conftest*
14547
14548 fi
14549 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14550 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14551
14552 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14553   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14554 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14555 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14556   echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558   cat >conftest.$ac_ext <<_ACEOF
14559 /* confdefs.h.  */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h.  */
14564 #include <sys/types.h>
14565 #include <sys/ioctl.h>
14566 #ifdef TIOCGWINSZ
14567   yes
14568 #endif
14569
14570 _ACEOF
14571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14572   $EGREP "yes" >/dev/null 2>&1; then
14573   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14574 else
14575   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14576 fi
14577 rm -f conftest*
14578
14579 fi
14580 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14581 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14582
14583   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14584
14585 cat >>confdefs.h <<\_ACEOF
14586 #define GWINSZ_IN_SYS_IOCTL 1
14587 _ACEOF
14588
14589   fi
14590 fi
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640 for ac_header in \
14641         arpa/inet.h             \
14642         arpa/nameser.h  \
14643         assert.h                \
14644         bits/types.h    \
14645         conio.h                 \
14646         crypt.h                 \
14647         direct.h                \
14648         errno.h                 \
14649         fcntl.h                 \
14650         filio.h                 \
14651         getopt.h                \
14652         grp.h                   \
14653         io.h                    \
14654         libutil.h               \
14655         limits.h                \
14656         locale.h                \
14657         malloc.h                \
14658         memory.h                \
14659         psap.h                  \
14660         pwd.h                   \
14661         process.h               \
14662         sgtty.h                 \
14663         shadow.h                \
14664         stddef.h                \
14665         string.h                \
14666         strings.h               \
14667         sysexits.h              \
14668         sys/file.h              \
14669         sys/filio.h             \
14670         sys/fstyp.h             \
14671         sys/errno.h             \
14672         sys/ioctl.h             \
14673         sys/param.h             \
14674         sys/privgrp.h   \
14675         sys/resource.h  \
14676         sys/select.h    \
14677         sys/socket.h    \
14678         sys/stat.h              \
14679         sys/syslog.h    \
14680         sys/time.h              \
14681         sys/types.h             \
14682         sys/uio.h               \
14683         sys/vmount.h    \
14684         syslog.h                \
14685         termios.h               \
14686         unistd.h                \
14687         utime.h                 \
14688
14689 do
14690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14692   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14695   echo $ECHO_N "(cached) $ECHO_C" >&6
14696 fi
14697 ac_res=`eval echo '${'$as_ac_Header'}'`
14698                { echo "$as_me:$LINENO: result: $ac_res" >&5
14699 echo "${ECHO_T}$ac_res" >&6; }
14700 else
14701   # Is the header compilable?
14702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14704 cat >conftest.$ac_ext <<_ACEOF
14705 /* confdefs.h.  */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h.  */
14710 $ac_includes_default
14711 #include <$ac_header>
14712 _ACEOF
14713 rm -f conftest.$ac_objext
14714 if { (ac_try="$ac_compile"
14715 case "(($ac_try" in
14716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717   *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720   (eval "$ac_compile") 2>conftest.er1
14721   ac_status=$?
14722   grep -v '^ *+' conftest.er1 >conftest.err
14723   rm -f conftest.er1
14724   cat conftest.err >&5
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); } && {
14727          test -z "$ac_c_werror_flag" ||
14728          test ! -s conftest.err
14729        } && test -s conftest.$ac_objext; then
14730   ac_header_compiler=yes
14731 else
14732   echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14734
14735         ac_header_compiler=no
14736 fi
14737
14738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14740 echo "${ECHO_T}$ac_header_compiler" >&6; }
14741
14742 # Is the header present?
14743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14745 cat >conftest.$ac_ext <<_ACEOF
14746 /* confdefs.h.  */
14747 _ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h.  */
14751 #include <$ac_header>
14752 _ACEOF
14753 if { (ac_try="$ac_cpp conftest.$ac_ext"
14754 case "(($ac_try" in
14755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14756   *) ac_try_echo=$ac_try;;
14757 esac
14758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14759   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14760   ac_status=$?
14761   grep -v '^ *+' conftest.er1 >conftest.err
14762   rm -f conftest.er1
14763   cat conftest.err >&5
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); } >/dev/null && {
14766          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14767          test ! -s conftest.err
14768        }; then
14769   ac_header_preproc=yes
14770 else
14771   echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14773
14774   ac_header_preproc=no
14775 fi
14776
14777 rm -f conftest.err conftest.$ac_ext
14778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14779 echo "${ECHO_T}$ac_header_preproc" >&6; }
14780
14781 # So?  What about this header?
14782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14783   yes:no: )
14784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14788     ac_header_preproc=yes
14789     ;;
14790   no:yes:* )
14791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14803     ( cat <<\_ASBOX
14804 ## --------------------------------------------- ##
14805 ## Report this to <http://www.openldap.org/its/> ##
14806 ## --------------------------------------------- ##
14807 _ASBOX
14808      ) | sed "s/^/$as_me: WARNING:     /" >&2
14809     ;;
14810 esac
14811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14814   echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816   eval "$as_ac_Header=\$ac_header_preproc"
14817 fi
14818 ac_res=`eval echo '${'$as_ac_Header'}'`
14819                { echo "$as_me:$LINENO: result: $ac_res" >&5
14820 echo "${ECHO_T}$ac_res" >&6; }
14821
14822 fi
14823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14824   cat >>confdefs.h <<_ACEOF
14825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14826 _ACEOF
14827
14828 fi
14829
14830 done
14831
14832
14833 if test "$ac_cv_mingw32" = yes -o "$ol_cv_msvc" = yes ; then
14834
14835
14836 for ac_header in winsock.h winsock2.h
14837 do
14838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14840   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14843   echo $ECHO_N "(cached) $ECHO_C" >&6
14844 fi
14845 ac_res=`eval echo '${'$as_ac_Header'}'`
14846                { echo "$as_me:$LINENO: result: $ac_res" >&5
14847 echo "${ECHO_T}$ac_res" >&6; }
14848 else
14849   # Is the header compilable?
14850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14852 cat >conftest.$ac_ext <<_ACEOF
14853 /* confdefs.h.  */
14854 _ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h.  */
14858 $ac_includes_default
14859 #include <$ac_header>
14860 _ACEOF
14861 rm -f conftest.$ac_objext
14862 if { (ac_try="$ac_compile"
14863 case "(($ac_try" in
14864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14865   *) ac_try_echo=$ac_try;;
14866 esac
14867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14868   (eval "$ac_compile") 2>conftest.er1
14869   ac_status=$?
14870   grep -v '^ *+' conftest.er1 >conftest.err
14871   rm -f conftest.er1
14872   cat conftest.err >&5
14873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874   (exit $ac_status); } && {
14875          test -z "$ac_c_werror_flag" ||
14876          test ! -s conftest.err
14877        } && test -s conftest.$ac_objext; then
14878   ac_header_compiler=yes
14879 else
14880   echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14882
14883         ac_header_compiler=no
14884 fi
14885
14886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14888 echo "${ECHO_T}$ac_header_compiler" >&6; }
14889
14890 # Is the header present?
14891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14893 cat >conftest.$ac_ext <<_ACEOF
14894 /* confdefs.h.  */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h.  */
14899 #include <$ac_header>
14900 _ACEOF
14901 if { (ac_try="$ac_cpp conftest.$ac_ext"
14902 case "(($ac_try" in
14903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904   *) ac_try_echo=$ac_try;;
14905 esac
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14908   ac_status=$?
14909   grep -v '^ *+' conftest.er1 >conftest.err
14910   rm -f conftest.er1
14911   cat conftest.err >&5
14912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913   (exit $ac_status); } >/dev/null && {
14914          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14915          test ! -s conftest.err
14916        }; then
14917   ac_header_preproc=yes
14918 else
14919   echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14921
14922   ac_header_preproc=no
14923 fi
14924
14925 rm -f conftest.err conftest.$ac_ext
14926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14927 echo "${ECHO_T}$ac_header_preproc" >&6; }
14928
14929 # So?  What about this header?
14930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14931   yes:no: )
14932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14936     ac_header_preproc=yes
14937     ;;
14938   no:yes:* )
14939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14951     ( cat <<\_ASBOX
14952 ## --------------------------------------------- ##
14953 ## Report this to <http://www.openldap.org/its/> ##
14954 ## --------------------------------------------- ##
14955 _ASBOX
14956      ) | sed "s/^/$as_me: WARNING:     /" >&2
14957     ;;
14958 esac
14959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14962   echo $ECHO_N "(cached) $ECHO_C" >&6
14963 else
14964   eval "$as_ac_Header=\$ac_header_preproc"
14965 fi
14966 ac_res=`eval echo '${'$as_ac_Header'}'`
14967                { echo "$as_me:$LINENO: result: $ac_res" >&5
14968 echo "${ECHO_T}$ac_res" >&6; }
14969
14970 fi
14971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14972   cat >>confdefs.h <<_ACEOF
14973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14974 _ACEOF
14975
14976 fi
14977
14978 done
14979
14980 fi
14981
14982
14983 for ac_header in resolv.h
14984 do
14985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14989   echo $ECHO_N "(cached) $ECHO_C" >&6
14990 else
14991   cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h.  */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h.  */
14997 $ac_includes_default
14998 #include <netinet/in.h>
14999
15000
15001 #include <$ac_header>
15002 _ACEOF
15003 rm -f conftest.$ac_objext
15004 if { (ac_try="$ac_compile"
15005 case "(($ac_try" in
15006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007   *) ac_try_echo=$ac_try;;
15008 esac
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010   (eval "$ac_compile") 2>conftest.er1
15011   ac_status=$?
15012   grep -v '^ *+' conftest.er1 >conftest.err
15013   rm -f conftest.er1
15014   cat conftest.err >&5
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); } && {
15017          test -z "$ac_c_werror_flag" ||
15018          test ! -s conftest.err
15019        } && test -s conftest.$ac_objext; then
15020   eval "$as_ac_Header=yes"
15021 else
15022   echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15024
15025         eval "$as_ac_Header=no"
15026 fi
15027
15028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029 fi
15030 ac_res=`eval echo '${'$as_ac_Header'}'`
15031                { echo "$as_me:$LINENO: result: $ac_res" >&5
15032 echo "${ECHO_T}$ac_res" >&6; }
15033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15034   cat >>confdefs.h <<_ACEOF
15035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15036 _ACEOF
15037
15038 fi
15039
15040 done
15041
15042
15043
15044 for ac_header in netinet/tcp.h
15045 do
15046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052   cat >conftest.$ac_ext <<_ACEOF
15053 /* confdefs.h.  */
15054 _ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h.  */
15058 $ac_includes_default
15059 #include <netinet/in.h>
15060
15061
15062 #include <$ac_header>
15063 _ACEOF
15064 rm -f conftest.$ac_objext
15065 if { (ac_try="$ac_compile"
15066 case "(($ac_try" in
15067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068   *) ac_try_echo=$ac_try;;
15069 esac
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071   (eval "$ac_compile") 2>conftest.er1
15072   ac_status=$?
15073   grep -v '^ *+' conftest.er1 >conftest.err
15074   rm -f conftest.er1
15075   cat conftest.err >&5
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); } && {
15078          test -z "$ac_c_werror_flag" ||
15079          test ! -s conftest.err
15080        } && test -s conftest.$ac_objext; then
15081   eval "$as_ac_Header=yes"
15082 else
15083   echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15085
15086         eval "$as_ac_Header=no"
15087 fi
15088
15089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15090 fi
15091 ac_res=`eval echo '${'$as_ac_Header'}'`
15092                { echo "$as_me:$LINENO: result: $ac_res" >&5
15093 echo "${ECHO_T}$ac_res" >&6; }
15094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15095   cat >>confdefs.h <<_ACEOF
15096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15097 _ACEOF
15098
15099 fi
15100
15101 done
15102
15103
15104
15105 for ac_header in sys/ucred.h
15106 do
15107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15111   echo $ECHO_N "(cached) $ECHO_C" >&6
15112 else
15113   cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h.  */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h.  */
15119 $ac_includes_default
15120 #ifdef HAVE_SYS_PARAM_H
15121 #include <sys/param.h>
15122 #endif
15123
15124
15125 #include <$ac_header>
15126 _ACEOF
15127 rm -f conftest.$ac_objext
15128 if { (ac_try="$ac_compile"
15129 case "(($ac_try" in
15130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131   *) ac_try_echo=$ac_try;;
15132 esac
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134   (eval "$ac_compile") 2>conftest.er1
15135   ac_status=$?
15136   grep -v '^ *+' conftest.er1 >conftest.err
15137   rm -f conftest.er1
15138   cat conftest.err >&5
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); } && {
15141          test -z "$ac_c_werror_flag" ||
15142          test ! -s conftest.err
15143        } && test -s conftest.$ac_objext; then
15144   eval "$as_ac_Header=yes"
15145 else
15146   echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15148
15149         eval "$as_ac_Header=no"
15150 fi
15151
15152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15153 fi
15154 ac_res=`eval echo '${'$as_ac_Header'}'`
15155                { echo "$as_me:$LINENO: result: $ac_res" >&5
15156 echo "${ECHO_T}$ac_res" >&6; }
15157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15158   cat >>confdefs.h <<_ACEOF
15159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15160 _ACEOF
15161
15162 fi
15163
15164 done
15165
15166
15167
15168
15169
15170 for ac_func in sigaction sigset
15171 do
15172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15176   echo $ECHO_N "(cached) $ECHO_C" >&6
15177 else
15178   cat >conftest.$ac_ext <<_ACEOF
15179 /* confdefs.h.  */
15180 _ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h.  */
15184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15186 #define $ac_func innocuous_$ac_func
15187
15188 /* System header to define __stub macros and hopefully few prototypes,
15189     which can conflict with char $ac_func (); below.
15190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15191     <limits.h> exists even on freestanding compilers.  */
15192
15193 #ifdef __STDC__
15194 # include <limits.h>
15195 #else
15196 # include <assert.h>
15197 #endif
15198
15199 #undef $ac_func
15200
15201 /* Override any GCC internal prototype to avoid an error.
15202    Use char because int might match the return type of a GCC
15203    builtin and then its argument prototype would still apply.  */
15204 #ifdef __cplusplus
15205 extern "C"
15206 #endif
15207 char $ac_func ();
15208 /* The GNU C library defines this for functions which it implements
15209     to always fail with ENOSYS.  Some functions are actually named
15210     something starting with __ and the normal name is an alias.  */
15211 #if defined __stub_$ac_func || defined __stub___$ac_func
15212 choke me
15213 #endif
15214
15215 int
15216 main ()
15217 {
15218 return $ac_func ();
15219   ;
15220   return 0;
15221 }
15222 _ACEOF
15223 rm -f conftest.$ac_objext conftest$ac_exeext
15224 if { (ac_try="$ac_link"
15225 case "(($ac_try" in
15226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227   *) ac_try_echo=$ac_try;;
15228 esac
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230   (eval "$ac_link") 2>conftest.er1
15231   ac_status=$?
15232   grep -v '^ *+' conftest.er1 >conftest.err
15233   rm -f conftest.er1
15234   cat conftest.err >&5
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); } && {
15237          test -z "$ac_c_werror_flag" ||
15238          test ! -s conftest.err
15239        } && test -s conftest$ac_exeext &&
15240        $as_test_x conftest$ac_exeext; then
15241   eval "$as_ac_var=yes"
15242 else
15243   echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15245
15246         eval "$as_ac_var=no"
15247 fi
15248
15249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15250       conftest$ac_exeext conftest.$ac_ext
15251 fi
15252 ac_res=`eval echo '${'$as_ac_var'}'`
15253                { echo "$as_me:$LINENO: result: $ac_res" >&5
15254 echo "${ECHO_T}$ac_res" >&6; }
15255 if test `eval echo '${'$as_ac_var'}'` = yes; then
15256   cat >>confdefs.h <<_ACEOF
15257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15258 _ACEOF
15259
15260 fi
15261 done
15262
15263
15264 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15265
15266 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15267 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15268 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15269   echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271   ac_check_lib_save_LIBS=$LIBS
15272 LIBS="-lV3  $LIBS"
15273 cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h.  */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h.  */
15279
15280 /* Override any GCC internal prototype to avoid an error.
15281    Use char because int might match the return type of a GCC
15282    builtin and then its argument prototype would still apply.  */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char sigset ();
15287 int
15288 main ()
15289 {
15290 return sigset ();
15291   ;
15292   return 0;
15293 }
15294 _ACEOF
15295 rm -f conftest.$ac_objext conftest$ac_exeext
15296 if { (ac_try="$ac_link"
15297 case "(($ac_try" in
15298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299   *) ac_try_echo=$ac_try;;
15300 esac
15301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15302   (eval "$ac_link") 2>conftest.er1
15303   ac_status=$?
15304   grep -v '^ *+' conftest.er1 >conftest.err
15305   rm -f conftest.er1
15306   cat conftest.err >&5
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); } && {
15309          test -z "$ac_c_werror_flag" ||
15310          test ! -s conftest.err
15311        } && test -s conftest$ac_exeext &&
15312        $as_test_x conftest$ac_exeext; then
15313   ac_cv_lib_V3_sigset=yes
15314 else
15315   echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318         ac_cv_lib_V3_sigset=no
15319 fi
15320
15321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15322       conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15324 fi
15325 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15326 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15327 if test $ac_cv_lib_V3_sigset = yes; then
15328   cat >>confdefs.h <<_ACEOF
15329 #define HAVE_LIBV3 1
15330 _ACEOF
15331
15332   LIBS="-lV3 $LIBS"
15333
15334 fi
15335
15336 fi
15337
15338 if test $ol_cv_msvc ; then
15339    ol_cv_winsock=yes
15340 fi
15341
15342 if test "$ac_cv_header_winsock_h" = yes; then
15343 { echo "$as_me:$LINENO: checking for winsock" >&5
15344 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15345 if test "${ol_cv_winsock+set}" = set; then
15346   echo $ECHO_N "(cached) $ECHO_C" >&6
15347 else
15348
15349 save_LIBS="$LIBS"
15350 for curlib in none ws2_32 wsock32; do
15351         if test curlib != none ; then
15352             LIBS="$save_LIBS -l$curlib"
15353         fi
15354         cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h.  */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h.  */
15360 #include <winsock.h>
15361
15362 int
15363 main ()
15364 {
15365
15366                         socket(0,0,0);
15367                         select(0,NULL,NULL,NULL,NULL);
15368                         closesocket(0);
15369                         gethostname(NULL,0);
15370
15371   ;
15372   return 0;
15373 }
15374 _ACEOF
15375 rm -f conftest.$ac_objext conftest$ac_exeext
15376 if { (ac_try="$ac_link"
15377 case "(($ac_try" in
15378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379   *) ac_try_echo=$ac_try;;
15380 esac
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382   (eval "$ac_link") 2>conftest.er1
15383   ac_status=$?
15384   grep -v '^ *+' conftest.er1 >conftest.err
15385   rm -f conftest.er1
15386   cat conftest.err >&5
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); } && {
15389          test -z "$ac_c_werror_flag" ||
15390          test ! -s conftest.err
15391        } && test -s conftest$ac_exeext &&
15392        $as_test_x conftest$ac_exeext; then
15393   ol_cv_winsock=$curlib
15394 else
15395   echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15397
15398         ol_cv_winsock=no
15399 fi
15400
15401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15402       conftest$ac_exeext conftest.$ac_ext
15403
15404         test "$ol_cv_winsock" != no && break
15405 done
15406 LIBS="$save_LIBS"
15407
15408 fi
15409 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15410 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15411
15412 if test $ol_cv_winsock != no ; then
15413
15414 cat >>confdefs.h <<\_ACEOF
15415 #define HAVE_WINSOCK 1
15416 _ACEOF
15417
15418     ac_cv_func_socket=yes
15419     ac_cv_func_select=yes
15420     ac_cv_func_closesocket=yes
15421     ac_cv_func_gethostname=yes
15422
15423         if test $ol_cv_winsock != none -a $ol_cv_winsock != yes; then
15424         LIBS="$LIBS -l$ol_cv_winsock"
15425         fi
15426
15427     if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15428
15429 cat >>confdefs.h <<\_ACEOF
15430 #define HAVE_WINSOCK2 1
15431 _ACEOF
15432
15433     fi
15434 fi
15435
15436
15437 { echo "$as_me:$LINENO: checking for socket" >&5
15438 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15439 if test "${ac_cv_func_socket+set}" = set; then
15440   echo $ECHO_N "(cached) $ECHO_C" >&6
15441 else
15442   cat >conftest.$ac_ext <<_ACEOF
15443 /* confdefs.h.  */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h.  */
15448 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15450 #define socket innocuous_socket
15451
15452 /* System header to define __stub macros and hopefully few prototypes,
15453     which can conflict with char socket (); below.
15454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15455     <limits.h> exists even on freestanding compilers.  */
15456
15457 #ifdef __STDC__
15458 # include <limits.h>
15459 #else
15460 # include <assert.h>
15461 #endif
15462
15463 #undef socket
15464
15465 /* Override any GCC internal prototype to avoid an error.
15466    Use char because int might match the return type of a GCC
15467    builtin and then its argument prototype would still apply.  */
15468 #ifdef __cplusplus
15469 extern "C"
15470 #endif
15471 char socket ();
15472 /* The GNU C library defines this for functions which it implements
15473     to always fail with ENOSYS.  Some functions are actually named
15474     something starting with __ and the normal name is an alias.  */
15475 #if defined __stub_socket || defined __stub___socket
15476 choke me
15477 #endif
15478
15479 int
15480 main ()
15481 {
15482 return socket ();
15483   ;
15484   return 0;
15485 }
15486 _ACEOF
15487 rm -f conftest.$ac_objext conftest$ac_exeext
15488 if { (ac_try="$ac_link"
15489 case "(($ac_try" in
15490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491   *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494   (eval "$ac_link") 2>conftest.er1
15495   ac_status=$?
15496   grep -v '^ *+' conftest.er1 >conftest.err
15497   rm -f conftest.er1
15498   cat conftest.err >&5
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); } && {
15501          test -z "$ac_c_werror_flag" ||
15502          test ! -s conftest.err
15503        } && test -s conftest$ac_exeext &&
15504        $as_test_x conftest$ac_exeext; then
15505   ac_cv_func_socket=yes
15506 else
15507   echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510         ac_cv_func_socket=no
15511 fi
15512
15513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15514       conftest$ac_exeext conftest.$ac_ext
15515 fi
15516 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15517 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15518 if test $ac_cv_func_socket = yes; then
15519   :
15520 else
15521
15522
15523 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15524 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15525 if test "${ac_cv_lib_socket_main+set}" = set; then
15526   echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528   ac_check_lib_save_LIBS=$LIBS
15529 LIBS="-lsocket  $LIBS"
15530 cat >conftest.$ac_ext <<_ACEOF
15531 /* confdefs.h.  */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h.  */
15536
15537
15538 int
15539 main ()
15540 {
15541 return main ();
15542   ;
15543   return 0;
15544 }
15545 _ACEOF
15546 rm -f conftest.$ac_objext conftest$ac_exeext
15547 if { (ac_try="$ac_link"
15548 case "(($ac_try" in
15549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550   *) ac_try_echo=$ac_try;;
15551 esac
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553   (eval "$ac_link") 2>conftest.er1
15554   ac_status=$?
15555   grep -v '^ *+' conftest.er1 >conftest.err
15556   rm -f conftest.er1
15557   cat conftest.err >&5
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); } && {
15560          test -z "$ac_c_werror_flag" ||
15561          test ! -s conftest.err
15562        } && test -s conftest$ac_exeext &&
15563        $as_test_x conftest$ac_exeext; then
15564   ac_cv_lib_socket_main=yes
15565 else
15566   echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15568
15569         ac_cv_lib_socket_main=no
15570 fi
15571
15572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15573       conftest$ac_exeext conftest.$ac_ext
15574 LIBS=$ac_check_lib_save_LIBS
15575 fi
15576 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15577 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15578 if test $ac_cv_lib_socket_main = yes; then
15579   cat >>confdefs.h <<_ACEOF
15580 #define HAVE_LIBSOCKET 1
15581 _ACEOF
15582
15583   LIBS="-lsocket $LIBS"
15584
15585 fi
15586
15587
15588 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15589 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15590 if test "${ac_cv_lib_net_main+set}" = set; then
15591   echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593   ac_check_lib_save_LIBS=$LIBS
15594 LIBS="-lnet  $LIBS"
15595 cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h.  */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h.  */
15601
15602
15603 int
15604 main ()
15605 {
15606 return main ();
15607   ;
15608   return 0;
15609 }
15610 _ACEOF
15611 rm -f conftest.$ac_objext conftest$ac_exeext
15612 if { (ac_try="$ac_link"
15613 case "(($ac_try" in
15614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615   *) ac_try_echo=$ac_try;;
15616 esac
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618   (eval "$ac_link") 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } && {
15625          test -z "$ac_c_werror_flag" ||
15626          test ! -s conftest.err
15627        } && test -s conftest$ac_exeext &&
15628        $as_test_x conftest$ac_exeext; then
15629   ac_cv_lib_net_main=yes
15630 else
15631   echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15633
15634         ac_cv_lib_net_main=no
15635 fi
15636
15637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15638       conftest$ac_exeext conftest.$ac_ext
15639 LIBS=$ac_check_lib_save_LIBS
15640 fi
15641 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15642 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15643 if test $ac_cv_lib_net_main = yes; then
15644   cat >>confdefs.h <<_ACEOF
15645 #define HAVE_LIBNET 1
15646 _ACEOF
15647
15648   LIBS="-lnet $LIBS"
15649
15650 fi
15651
15652
15653 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15654 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15655 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15656   echo $ECHO_N "(cached) $ECHO_C" >&6
15657 else
15658   ac_check_lib_save_LIBS=$LIBS
15659 LIBS="-lnsl_s  $LIBS"
15660 cat >conftest.$ac_ext <<_ACEOF
15661 /* confdefs.h.  */
15662 _ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h.  */
15666
15667
15668 int
15669 main ()
15670 {
15671 return main ();
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (ac_try="$ac_link"
15678 case "(($ac_try" in
15679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680   *) ac_try_echo=$ac_try;;
15681 esac
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683   (eval "$ac_link") 2>conftest.er1
15684   ac_status=$?
15685   grep -v '^ *+' conftest.er1 >conftest.err
15686   rm -f conftest.er1
15687   cat conftest.err >&5
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); } && {
15690          test -z "$ac_c_werror_flag" ||
15691          test ! -s conftest.err
15692        } && test -s conftest$ac_exeext &&
15693        $as_test_x conftest$ac_exeext; then
15694   ac_cv_lib_nsl_s_main=yes
15695 else
15696   echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15698
15699         ac_cv_lib_nsl_s_main=no
15700 fi
15701
15702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15703       conftest$ac_exeext conftest.$ac_ext
15704 LIBS=$ac_check_lib_save_LIBS
15705 fi
15706 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15707 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15708 if test $ac_cv_lib_nsl_s_main = yes; then
15709   cat >>confdefs.h <<_ACEOF
15710 #define HAVE_LIBNSL_S 1
15711 _ACEOF
15712
15713   LIBS="-lnsl_s $LIBS"
15714
15715 fi
15716
15717
15718 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15719 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15720 if test "${ac_cv_lib_nsl_main+set}" = set; then
15721   echo $ECHO_N "(cached) $ECHO_C" >&6
15722 else
15723   ac_check_lib_save_LIBS=$LIBS
15724 LIBS="-lnsl  $LIBS"
15725 cat >conftest.$ac_ext <<_ACEOF
15726 /* confdefs.h.  */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h.  */
15731
15732
15733 int
15734 main ()
15735 {
15736 return main ();
15737   ;
15738   return 0;
15739 }
15740 _ACEOF
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (ac_try="$ac_link"
15743 case "(($ac_try" in
15744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745   *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748   (eval "$ac_link") 2>conftest.er1
15749   ac_status=$?
15750   grep -v '^ *+' conftest.er1 >conftest.err
15751   rm -f conftest.er1
15752   cat conftest.err >&5
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); } && {
15755          test -z "$ac_c_werror_flag" ||
15756          test ! -s conftest.err
15757        } && test -s conftest$ac_exeext &&
15758        $as_test_x conftest$ac_exeext; then
15759   ac_cv_lib_nsl_main=yes
15760 else
15761   echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15763
15764         ac_cv_lib_nsl_main=no
15765 fi
15766
15767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15768       conftest$ac_exeext conftest.$ac_ext
15769 LIBS=$ac_check_lib_save_LIBS
15770 fi
15771 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15772 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15773 if test $ac_cv_lib_nsl_main = yes; then
15774   cat >>confdefs.h <<_ACEOF
15775 #define HAVE_LIBNSL 1
15776 _ACEOF
15777
15778   LIBS="-lnsl $LIBS"
15779
15780 fi
15781
15782
15783 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15784 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15785 if test "${ac_cv_lib_inet_socket+set}" = set; then
15786   echo $ECHO_N "(cached) $ECHO_C" >&6
15787 else
15788   ac_check_lib_save_LIBS=$LIBS
15789 LIBS="-linet  $LIBS"
15790 cat >conftest.$ac_ext <<_ACEOF
15791 /* confdefs.h.  */
15792 _ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h.  */
15796
15797 /* Override any GCC internal prototype to avoid an error.
15798    Use char because int might match the return type of a GCC
15799    builtin and then its argument prototype would still apply.  */
15800 #ifdef __cplusplus
15801 extern "C"
15802 #endif
15803 char socket ();
15804 int
15805 main ()
15806 {
15807 return socket ();
15808   ;
15809   return 0;
15810 }
15811 _ACEOF
15812 rm -f conftest.$ac_objext conftest$ac_exeext
15813 if { (ac_try="$ac_link"
15814 case "(($ac_try" in
15815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816   *) ac_try_echo=$ac_try;;
15817 esac
15818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819   (eval "$ac_link") 2>conftest.er1
15820   ac_status=$?
15821   grep -v '^ *+' conftest.er1 >conftest.err
15822   rm -f conftest.er1
15823   cat conftest.err >&5
15824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); } && {
15826          test -z "$ac_c_werror_flag" ||
15827          test ! -s conftest.err
15828        } && test -s conftest$ac_exeext &&
15829        $as_test_x conftest$ac_exeext; then
15830   ac_cv_lib_inet_socket=yes
15831 else
15832   echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15834
15835         ac_cv_lib_inet_socket=no
15836 fi
15837
15838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15839       conftest$ac_exeext conftest.$ac_ext
15840 LIBS=$ac_check_lib_save_LIBS
15841 fi
15842 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15843 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15844 if test $ac_cv_lib_inet_socket = yes; then
15845   cat >>confdefs.h <<_ACEOF
15846 #define HAVE_LIBINET 1
15847 _ACEOF
15848
15849   LIBS="-linet $LIBS"
15850
15851 fi
15852
15853
15854 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15855 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15856 if test "${ac_cv_lib_gen_main+set}" = set; then
15857   echo $ECHO_N "(cached) $ECHO_C" >&6
15858 else
15859   ac_check_lib_save_LIBS=$LIBS
15860 LIBS="-lgen  $LIBS"
15861 cat >conftest.$ac_ext <<_ACEOF
15862 /* confdefs.h.  */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h.  */
15867
15868
15869 int
15870 main ()
15871 {
15872 return main ();
15873   ;
15874   return 0;
15875 }
15876 _ACEOF
15877 rm -f conftest.$ac_objext conftest$ac_exeext
15878 if { (ac_try="$ac_link"
15879 case "(($ac_try" in
15880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881   *) ac_try_echo=$ac_try;;
15882 esac
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884   (eval "$ac_link") 2>conftest.er1
15885   ac_status=$?
15886   grep -v '^ *+' conftest.er1 >conftest.err
15887   rm -f conftest.er1
15888   cat conftest.err >&5
15889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890   (exit $ac_status); } && {
15891          test -z "$ac_c_werror_flag" ||
15892          test ! -s conftest.err
15893        } && test -s conftest$ac_exeext &&
15894        $as_test_x conftest$ac_exeext; then
15895   ac_cv_lib_gen_main=yes
15896 else
15897   echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900         ac_cv_lib_gen_main=no
15901 fi
15902
15903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15904       conftest$ac_exeext conftest.$ac_ext
15905 LIBS=$ac_check_lib_save_LIBS
15906 fi
15907 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15908 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15909 if test $ac_cv_lib_gen_main = yes; then
15910   cat >>confdefs.h <<_ACEOF
15911 #define HAVE_LIBGEN 1
15912 _ACEOF
15913
15914   LIBS="-lgen $LIBS"
15915
15916 fi
15917
15918
15919 fi
15920
15921
15922 { echo "$as_me:$LINENO: checking for select" >&5
15923 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15924 if test "${ac_cv_func_select+set}" = set; then
15925   echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15927   cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h.  */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h.  */
15933 /* Define select to an innocuous variant, in case <limits.h> declares select.
15934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15935 #define select innocuous_select
15936
15937 /* System header to define __stub macros and hopefully few prototypes,
15938     which can conflict with char select (); below.
15939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15940     <limits.h> exists even on freestanding compilers.  */
15941
15942 #ifdef __STDC__
15943 # include <limits.h>
15944 #else
15945 # include <assert.h>
15946 #endif
15947
15948 #undef select
15949
15950 /* Override any GCC internal prototype to avoid an error.
15951    Use char because int might match the return type of a GCC
15952    builtin and then its argument prototype would still apply.  */
15953 #ifdef __cplusplus
15954 extern "C"
15955 #endif
15956 char select ();
15957 /* The GNU C library defines this for functions which it implements
15958     to always fail with ENOSYS.  Some functions are actually named
15959     something starting with __ and the normal name is an alias.  */
15960 #if defined __stub_select || defined __stub___select
15961 choke me
15962 #endif
15963
15964 int
15965 main ()
15966 {
15967 return select ();
15968   ;
15969   return 0;
15970 }
15971 _ACEOF
15972 rm -f conftest.$ac_objext conftest$ac_exeext
15973 if { (ac_try="$ac_link"
15974 case "(($ac_try" in
15975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976   *) ac_try_echo=$ac_try;;
15977 esac
15978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15979   (eval "$ac_link") 2>conftest.er1
15980   ac_status=$?
15981   grep -v '^ *+' conftest.er1 >conftest.err
15982   rm -f conftest.er1
15983   cat conftest.err >&5
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); } && {
15986          test -z "$ac_c_werror_flag" ||
15987          test ! -s conftest.err
15988        } && test -s conftest$ac_exeext &&
15989        $as_test_x conftest$ac_exeext; then
15990   ac_cv_func_select=yes
15991 else
15992   echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.$ac_ext >&5
15994
15995         ac_cv_func_select=no
15996 fi
15997
15998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15999       conftest$ac_exeext conftest.$ac_ext
16000 fi
16001 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16002 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16003 if test $ac_cv_func_select = yes; then
16004   :
16005 else
16006   { { echo "$as_me:$LINENO: error: select() required." >&5
16007 echo "$as_me: error: select() required." >&2;}
16008    { (exit 1); exit 1; }; }
16009 fi
16010
16011
16012 if test "${ac_cv_header_winsock_h}" != yes; then
16013
16014
16015 for ac_header in sys/select.h sys/socket.h
16016 do
16017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16019   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16022   echo $ECHO_N "(cached) $ECHO_C" >&6
16023 fi
16024 ac_res=`eval echo '${'$as_ac_Header'}'`
16025                { echo "$as_me:$LINENO: result: $ac_res" >&5
16026 echo "${ECHO_T}$ac_res" >&6; }
16027 else
16028   # Is the header compilable?
16029 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16031 cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h.  */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h.  */
16037 $ac_includes_default
16038 #include <$ac_header>
16039 _ACEOF
16040 rm -f conftest.$ac_objext
16041 if { (ac_try="$ac_compile"
16042 case "(($ac_try" in
16043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044   *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047   (eval "$ac_compile") 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } && {
16054          test -z "$ac_c_werror_flag" ||
16055          test ! -s conftest.err
16056        } && test -s conftest.$ac_objext; then
16057   ac_header_compiler=yes
16058 else
16059   echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062         ac_header_compiler=no
16063 fi
16064
16065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16067 echo "${ECHO_T}$ac_header_compiler" >&6; }
16068
16069 # Is the header present?
16070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16072 cat >conftest.$ac_ext <<_ACEOF
16073 /* confdefs.h.  */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h.  */
16078 #include <$ac_header>
16079 _ACEOF
16080 if { (ac_try="$ac_cpp conftest.$ac_ext"
16081 case "(($ac_try" in
16082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083   *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16087   ac_status=$?
16088   grep -v '^ *+' conftest.er1 >conftest.err
16089   rm -f conftest.er1
16090   cat conftest.err >&5
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } >/dev/null && {
16093          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16094          test ! -s conftest.err
16095        }; then
16096   ac_header_preproc=yes
16097 else
16098   echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.$ac_ext >&5
16100
16101   ac_header_preproc=no
16102 fi
16103
16104 rm -f conftest.err conftest.$ac_ext
16105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16106 echo "${ECHO_T}$ac_header_preproc" >&6; }
16107
16108 # So?  What about this header?
16109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16110   yes:no: )
16111     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16115     ac_header_preproc=yes
16116     ;;
16117   no:yes:* )
16118     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16120     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16121 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16122     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16124     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16125 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16128     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16130     ( cat <<\_ASBOX
16131 ## --------------------------------------------- ##
16132 ## Report this to <http://www.openldap.org/its/> ##
16133 ## --------------------------------------------- ##
16134 _ASBOX
16135      ) | sed "s/^/$as_me: WARNING:     /" >&2
16136     ;;
16137 esac
16138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16141   echo $ECHO_N "(cached) $ECHO_C" >&6
16142 else
16143   eval "$as_ac_Header=\$ac_header_preproc"
16144 fi
16145 ac_res=`eval echo '${'$as_ac_Header'}'`
16146                { echo "$as_me:$LINENO: result: $ac_res" >&5
16147 echo "${ECHO_T}$ac_res" >&6; }
16148
16149 fi
16150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16151   cat >>confdefs.h <<_ACEOF
16152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16153 _ACEOF
16154
16155 fi
16156
16157 done
16158
16159 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16160 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16161 if test "${ac_cv_func_select_args+set}" = set; then
16162   echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16165  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16166   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16167    cat >conftest.$ac_ext <<_ACEOF
16168 /* confdefs.h.  */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h.  */
16173 $ac_includes_default
16174 #ifdef HAVE_SYS_SELECT_H
16175 # include <sys/select.h>
16176 #endif
16177 #ifdef HAVE_SYS_SOCKET_H
16178 # include <sys/socket.h>
16179 #endif
16180
16181 int
16182 main ()
16183 {
16184 extern int select ($ac_arg1,
16185                                             $ac_arg234, $ac_arg234, $ac_arg234,
16186                                             $ac_arg5);
16187   ;
16188   return 0;
16189 }
16190 _ACEOF
16191 rm -f conftest.$ac_objext
16192 if { (ac_try="$ac_compile"
16193 case "(($ac_try" in
16194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195   *) ac_try_echo=$ac_try;;
16196 esac
16197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16198   (eval "$ac_compile") 2>conftest.er1
16199   ac_status=$?
16200   grep -v '^ *+' conftest.er1 >conftest.err
16201   rm -f conftest.er1
16202   cat conftest.err >&5
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); } && {
16205          test -z "$ac_c_werror_flag" ||
16206          test ! -s conftest.err
16207        } && test -s conftest.$ac_objext; then
16208   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16209 else
16210   echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16212
16213
16214 fi
16215
16216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16217   done
16218  done
16219 done
16220 # Provide a safe default value.
16221 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16222
16223 fi
16224 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16225 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16226 ac_save_IFS=$IFS; IFS=','
16227 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16228 IFS=$ac_save_IFS
16229 shift
16230
16231 cat >>confdefs.h <<_ACEOF
16232 #define SELECT_TYPE_ARG1 $1
16233 _ACEOF
16234
16235
16236 cat >>confdefs.h <<_ACEOF
16237 #define SELECT_TYPE_ARG234 ($2)
16238 _ACEOF
16239
16240
16241 cat >>confdefs.h <<_ACEOF
16242 #define SELECT_TYPE_ARG5 ($3)
16243 _ACEOF
16244
16245 rm -f conftest*
16246
16247 fi
16248
16249
16250
16251 for ac_func in poll
16252 do
16253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16257   echo $ECHO_N "(cached) $ECHO_C" >&6
16258 else
16259   cat >conftest.$ac_ext <<_ACEOF
16260 /* confdefs.h.  */
16261 _ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h.  */
16265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16267 #define $ac_func innocuous_$ac_func
16268
16269 /* System header to define __stub macros and hopefully few prototypes,
16270     which can conflict with char $ac_func (); below.
16271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16272     <limits.h> exists even on freestanding compilers.  */
16273
16274 #ifdef __STDC__
16275 # include <limits.h>
16276 #else
16277 # include <assert.h>
16278 #endif
16279
16280 #undef $ac_func
16281
16282 /* Override any GCC internal prototype to avoid an error.
16283    Use char because int might match the return type of a GCC
16284    builtin and then its argument prototype would still apply.  */
16285 #ifdef __cplusplus
16286 extern "C"
16287 #endif
16288 char $ac_func ();
16289 /* The GNU C library defines this for functions which it implements
16290     to always fail with ENOSYS.  Some functions are actually named
16291     something starting with __ and the normal name is an alias.  */
16292 #if defined __stub_$ac_func || defined __stub___$ac_func
16293 choke me
16294 #endif
16295
16296 int
16297 main ()
16298 {
16299 return $ac_func ();
16300   ;
16301   return 0;
16302 }
16303 _ACEOF
16304 rm -f conftest.$ac_objext conftest$ac_exeext
16305 if { (ac_try="$ac_link"
16306 case "(($ac_try" in
16307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16308   *) ac_try_echo=$ac_try;;
16309 esac
16310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16311   (eval "$ac_link") 2>conftest.er1
16312   ac_status=$?
16313   grep -v '^ *+' conftest.er1 >conftest.err
16314   rm -f conftest.er1
16315   cat conftest.err >&5
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); } && {
16318          test -z "$ac_c_werror_flag" ||
16319          test ! -s conftest.err
16320        } && test -s conftest$ac_exeext &&
16321        $as_test_x conftest$ac_exeext; then
16322   eval "$as_ac_var=yes"
16323 else
16324   echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16326
16327         eval "$as_ac_var=no"
16328 fi
16329
16330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16331       conftest$ac_exeext conftest.$ac_ext
16332 fi
16333 ac_res=`eval echo '${'$as_ac_var'}'`
16334                { echo "$as_me:$LINENO: result: $ac_res" >&5
16335 echo "${ECHO_T}$ac_res" >&6; }
16336 if test `eval echo '${'$as_ac_var'}'` = yes; then
16337   cat >>confdefs.h <<_ACEOF
16338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16339 _ACEOF
16340
16341 fi
16342 done
16343
16344 if test $ac_cv_func_poll = yes; then
16345
16346
16347 for ac_header in poll.h sys/poll.h
16348 do
16349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16351   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16354   echo $ECHO_N "(cached) $ECHO_C" >&6
16355 fi
16356 ac_res=`eval echo '${'$as_ac_Header'}'`
16357                { echo "$as_me:$LINENO: result: $ac_res" >&5
16358 echo "${ECHO_T}$ac_res" >&6; }
16359 else
16360   # Is the header compilable?
16361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h.  */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h.  */
16369 $ac_includes_default
16370 #include <$ac_header>
16371 _ACEOF
16372 rm -f conftest.$ac_objext
16373 if { (ac_try="$ac_compile"
16374 case "(($ac_try" in
16375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376   *) ac_try_echo=$ac_try;;
16377 esac
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379   (eval "$ac_compile") 2>conftest.er1
16380   ac_status=$?
16381   grep -v '^ *+' conftest.er1 >conftest.err
16382   rm -f conftest.er1
16383   cat conftest.err >&5
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); } && {
16386          test -z "$ac_c_werror_flag" ||
16387          test ! -s conftest.err
16388        } && test -s conftest.$ac_objext; then
16389   ac_header_compiler=yes
16390 else
16391   echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16393
16394         ac_header_compiler=no
16395 fi
16396
16397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16399 echo "${ECHO_T}$ac_header_compiler" >&6; }
16400
16401 # Is the header present?
16402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h.  */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h.  */
16410 #include <$ac_header>
16411 _ACEOF
16412 if { (ac_try="$ac_cpp conftest.$ac_ext"
16413 case "(($ac_try" in
16414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415   *) ac_try_echo=$ac_try;;
16416 esac
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16419   ac_status=$?
16420   grep -v '^ *+' conftest.er1 >conftest.err
16421   rm -f conftest.er1
16422   cat conftest.err >&5
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); } >/dev/null && {
16425          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16426          test ! -s conftest.err
16427        }; then
16428   ac_header_preproc=yes
16429 else
16430   echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16432
16433   ac_header_preproc=no
16434 fi
16435
16436 rm -f conftest.err conftest.$ac_ext
16437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438 echo "${ECHO_T}$ac_header_preproc" >&6; }
16439
16440 # So?  What about this header?
16441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16442   yes:no: )
16443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16447     ac_header_preproc=yes
16448     ;;
16449   no:yes:* )
16450     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16452     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16453 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16454     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16456     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16457 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16460     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16462     ( cat <<\_ASBOX
16463 ## --------------------------------------------- ##
16464 ## Report this to <http://www.openldap.org/its/> ##
16465 ## --------------------------------------------- ##
16466 _ASBOX
16467      ) | sed "s/^/$as_me: WARNING:     /" >&2
16468     ;;
16469 esac
16470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16473   echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475   eval "$as_ac_Header=\$ac_header_preproc"
16476 fi
16477 ac_res=`eval echo '${'$as_ac_Header'}'`
16478                { echo "$as_me:$LINENO: result: $ac_res" >&5
16479 echo "${ECHO_T}$ac_res" >&6; }
16480
16481 fi
16482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16483   cat >>confdefs.h <<_ACEOF
16484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16485 _ACEOF
16486
16487 fi
16488
16489 done
16490
16491 fi
16492
16493
16494 for ac_header in sys/epoll.h
16495 do
16496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16498   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16501   echo $ECHO_N "(cached) $ECHO_C" >&6
16502 fi
16503 ac_res=`eval echo '${'$as_ac_Header'}'`
16504                { echo "$as_me:$LINENO: result: $ac_res" >&5
16505 echo "${ECHO_T}$ac_res" >&6; }
16506 else
16507   # Is the header compilable?
16508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h.  */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h.  */
16516 $ac_includes_default
16517 #include <$ac_header>
16518 _ACEOF
16519 rm -f conftest.$ac_objext
16520 if { (ac_try="$ac_compile"
16521 case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526   (eval "$ac_compile") 2>conftest.er1
16527   ac_status=$?
16528   grep -v '^ *+' conftest.er1 >conftest.err
16529   rm -f conftest.er1
16530   cat conftest.err >&5
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); } && {
16533          test -z "$ac_c_werror_flag" ||
16534          test ! -s conftest.err
16535        } && test -s conftest.$ac_objext; then
16536   ac_header_compiler=yes
16537 else
16538   echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541         ac_header_compiler=no
16542 fi
16543
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16546 echo "${ECHO_T}$ac_header_compiler" >&6; }
16547
16548 # Is the header present?
16549 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16551 cat >conftest.$ac_ext <<_ACEOF
16552 /* confdefs.h.  */
16553 _ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h.  */
16557 #include <$ac_header>
16558 _ACEOF
16559 if { (ac_try="$ac_cpp conftest.$ac_ext"
16560 case "(($ac_try" in
16561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562   *) ac_try_echo=$ac_try;;
16563 esac
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16566   ac_status=$?
16567   grep -v '^ *+' conftest.er1 >conftest.err
16568   rm -f conftest.er1
16569   cat conftest.err >&5
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); } >/dev/null && {
16572          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16573          test ! -s conftest.err
16574        }; then
16575   ac_header_preproc=yes
16576 else
16577   echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16579
16580   ac_header_preproc=no
16581 fi
16582
16583 rm -f conftest.err conftest.$ac_ext
16584 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16585 echo "${ECHO_T}$ac_header_preproc" >&6; }
16586
16587 # So?  What about this header?
16588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16589   yes:no: )
16590     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16594     ac_header_preproc=yes
16595     ;;
16596   no:yes:* )
16597     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16599     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16600 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16601     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16603     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16604 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16607     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16609     ( cat <<\_ASBOX
16610 ## --------------------------------------------- ##
16611 ## Report this to <http://www.openldap.org/its/> ##
16612 ## --------------------------------------------- ##
16613 _ASBOX
16614      ) | sed "s/^/$as_me: WARNING:     /" >&2
16615     ;;
16616 esac
16617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16620   echo $ECHO_N "(cached) $ECHO_C" >&6
16621 else
16622   eval "$as_ac_Header=\$ac_header_preproc"
16623 fi
16624 ac_res=`eval echo '${'$as_ac_Header'}'`
16625                { echo "$as_me:$LINENO: result: $ac_res" >&5
16626 echo "${ECHO_T}$ac_res" >&6; }
16627
16628 fi
16629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16630   cat >>confdefs.h <<_ACEOF
16631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16632 _ACEOF
16633
16634 fi
16635
16636 done
16637
16638 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16639         { echo "$as_me:$LINENO: checking for epoll system call" >&5
16640 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16641         if test "$cross_compiling" = yes; then
16642   { echo "$as_me:$LINENO: result: no" >&5
16643 echo "${ECHO_T}no" >&6; }
16644 else
16645   cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h.  */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h.  */
16651 int main(int argc, char **argv)
16652 {
16653         int epfd = epoll_create(256);
16654         exit (epfd == -1 ? 1 : 0);
16655 }
16656 _ACEOF
16657 rm -f conftest$ac_exeext
16658 if { (ac_try="$ac_link"
16659 case "(($ac_try" in
16660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661   *) ac_try_echo=$ac_try;;
16662 esac
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664   (eval "$ac_link") 2>&5
16665   ac_status=$?
16666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16668   { (case "(($ac_try" in
16669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670   *) ac_try_echo=$ac_try;;
16671 esac
16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673   (eval "$ac_try") 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); }; }; then
16677   { echo "$as_me:$LINENO: result: yes" >&5
16678 echo "${ECHO_T}yes" >&6; }
16679
16680 cat >>confdefs.h <<\_ACEOF
16681 #define HAVE_EPOLL 1
16682 _ACEOF
16683
16684 else
16685   echo "$as_me: program exited with status $ac_status" >&5
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16688
16689 ( exit $ac_status )
16690 { echo "$as_me:$LINENO: result: no" >&5
16691 echo "${ECHO_T}no" >&6; }
16692 fi
16693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16694 fi
16695
16696
16697 fi
16698
16699
16700 for ac_header in sys/devpoll.h
16701 do
16702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16704   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16707   echo $ECHO_N "(cached) $ECHO_C" >&6
16708 fi
16709 ac_res=`eval echo '${'$as_ac_Header'}'`
16710                { echo "$as_me:$LINENO: result: $ac_res" >&5
16711 echo "${ECHO_T}$ac_res" >&6; }
16712 else
16713   # Is the header compilable?
16714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16716 cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h.  */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h.  */
16722 $ac_includes_default
16723 #include <$ac_header>
16724 _ACEOF
16725 rm -f conftest.$ac_objext
16726 if { (ac_try="$ac_compile"
16727 case "(($ac_try" in
16728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729   *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732   (eval "$ac_compile") 2>conftest.er1
16733   ac_status=$?
16734   grep -v '^ *+' conftest.er1 >conftest.err
16735   rm -f conftest.er1
16736   cat conftest.err >&5
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); } && {
16739          test -z "$ac_c_werror_flag" ||
16740          test ! -s conftest.err
16741        } && test -s conftest.$ac_objext; then
16742   ac_header_compiler=yes
16743 else
16744   echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16746
16747         ac_header_compiler=no
16748 fi
16749
16750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16752 echo "${ECHO_T}$ac_header_compiler" >&6; }
16753
16754 # Is the header present?
16755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16757 cat >conftest.$ac_ext <<_ACEOF
16758 /* confdefs.h.  */
16759 _ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h.  */
16763 #include <$ac_header>
16764 _ACEOF
16765 if { (ac_try="$ac_cpp conftest.$ac_ext"
16766 case "(($ac_try" in
16767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768   *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16772   ac_status=$?
16773   grep -v '^ *+' conftest.er1 >conftest.err
16774   rm -f conftest.er1
16775   cat conftest.err >&5
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); } >/dev/null && {
16778          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16779          test ! -s conftest.err
16780        }; then
16781   ac_header_preproc=yes
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786   ac_header_preproc=no
16787 fi
16788
16789 rm -f conftest.err conftest.$ac_ext
16790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16791 echo "${ECHO_T}$ac_header_preproc" >&6; }
16792
16793 # So?  What about this header?
16794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16795   yes:no: )
16796     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16800     ac_header_preproc=yes
16801     ;;
16802   no:yes:* )
16803     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16805     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16806 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16807     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16809     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16810 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16813     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16815     ( cat <<\_ASBOX
16816 ## --------------------------------------------- ##
16817 ## Report this to <http://www.openldap.org/its/> ##
16818 ## --------------------------------------------- ##
16819 _ASBOX
16820      ) | sed "s/^/$as_me: WARNING:     /" >&2
16821     ;;
16822 esac
16823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16826   echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828   eval "$as_ac_Header=\$ac_header_preproc"
16829 fi
16830 ac_res=`eval echo '${'$as_ac_Header'}'`
16831                { echo "$as_me:$LINENO: result: $ac_res" >&5
16832 echo "${ECHO_T}$ac_res" >&6; }
16833
16834 fi
16835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16836   cat >>confdefs.h <<_ACEOF
16837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16838 _ACEOF
16839
16840 fi
16841
16842 done
16843
16844 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16845                 -a "${ac_cv_header_poll_h}" = yes ; \
16846 then
16847         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16848 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16849         if test "$cross_compiling" = yes; then
16850   { echo "$as_me:$LINENO: result: no" >&5
16851 echo "${ECHO_T}no" >&6; }
16852 else
16853   cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h.  */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h.  */
16859 int main(int argc, char **argv)
16860 {
16861         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16862         exit (devpollfd == -1 ? 1 : 0);
16863 }
16864 _ACEOF
16865 rm -f conftest$ac_exeext
16866 if { (ac_try="$ac_link"
16867 case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_link") 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16876   { (case "(($ac_try" in
16877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878   *) ac_try_echo=$ac_try;;
16879 esac
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881   (eval "$ac_try") 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); }; }; then
16885   { echo "$as_me:$LINENO: result: yes" >&5
16886 echo "${ECHO_T}yes" >&6; }
16887
16888 cat >>confdefs.h <<\_ACEOF
16889 #define HAVE_DEVPOLL 1
16890 _ACEOF
16891
16892 else
16893   echo "$as_me: program exited with status $ac_status" >&5
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16896
16897 ( exit $ac_status )
16898 { echo "$as_me:$LINENO: result: no" >&5
16899 echo "${ECHO_T}no" >&6; }
16900 fi
16901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16902 fi
16903
16904
16905 fi
16906
16907 # strerror checks
16908 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16909 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16910 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16911   echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913
16914         cat >conftest.$ac_ext <<_ACEOF
16915 /* confdefs.h.  */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h.  */
16920
16921 #include <stdio.h>
16922 #include <sys/types.h>
16923 #include <errno.h>
16924 #ifdef _WIN32
16925 #include <stdlib.h>
16926 #endif
16927 int
16928 main ()
16929 {
16930 char *c = (char *) *sys_errlist
16931   ;
16932   return 0;
16933 }
16934 _ACEOF
16935 rm -f conftest.$ac_objext
16936 if { (ac_try="$ac_compile"
16937 case "(($ac_try" in
16938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939   *) ac_try_echo=$ac_try;;
16940 esac
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942   (eval "$ac_compile") 2>conftest.er1
16943   ac_status=$?
16944   grep -v '^ *+' conftest.er1 >conftest.err
16945   rm -f conftest.er1
16946   cat conftest.err >&5
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); } && {
16949          test -z "$ac_c_werror_flag" ||
16950          test ! -s conftest.err
16951        } && test -s conftest.$ac_objext; then
16952   ol_cv_dcl_sys_errlist=yes
16953         ol_cv_have_sys_errlist=yes
16954 else
16955   echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16957
16958         ol_cv_dcl_sys_errlist=no
16959 fi
16960
16961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962 fi
16963 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16964 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16965 #
16966 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16967 if test $ol_cv_dcl_sys_errlist = no ; then
16968
16969 cat >>confdefs.h <<\_ACEOF
16970 #define DECL_SYS_ERRLIST 1
16971 _ACEOF
16972
16973
16974         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16975 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16976 if test "${ol_cv_have_sys_errlist+set}" = set; then
16977   echo $ECHO_N "(cached) $ECHO_C" >&6
16978 else
16979
16980                 cat >conftest.$ac_ext <<_ACEOF
16981 /* confdefs.h.  */
16982 _ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h.  */
16986 #include <errno.h>
16987 int
16988 main ()
16989 {
16990 char *c = (char *) *sys_errlist
16991   ;
16992   return 0;
16993 }
16994 _ACEOF
16995 rm -f conftest.$ac_objext conftest$ac_exeext
16996 if { (ac_try="$ac_link"
16997 case "(($ac_try" in
16998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999   *) ac_try_echo=$ac_try;;
17000 esac
17001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17002   (eval "$ac_link") 2>conftest.er1
17003   ac_status=$?
17004   grep -v '^ *+' conftest.er1 >conftest.err
17005   rm -f conftest.er1
17006   cat conftest.err >&5
17007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008   (exit $ac_status); } && {
17009          test -z "$ac_c_werror_flag" ||
17010          test ! -s conftest.err
17011        } && test -s conftest$ac_exeext &&
17012        $as_test_x conftest$ac_exeext; then
17013   ol_cv_have_sys_errlist=yes
17014 else
17015   echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17017
17018         ol_cv_have_sys_errlist=no
17019 fi
17020
17021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17022       conftest$ac_exeext conftest.$ac_ext
17023 fi
17024 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17025 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17026 fi
17027 if test $ol_cv_have_sys_errlist = yes ; then
17028
17029 cat >>confdefs.h <<\_ACEOF
17030 #define HAVE_SYS_ERRLIST 1
17031 _ACEOF
17032
17033 fi
17034
17035
17036 for ac_func in strerror strerror_r
17037 do
17038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17042   echo $ECHO_N "(cached) $ECHO_C" >&6
17043 else
17044   cat >conftest.$ac_ext <<_ACEOF
17045 /* confdefs.h.  */
17046 _ACEOF
17047 cat confdefs.h >>conftest.$ac_ext
17048 cat >>conftest.$ac_ext <<_ACEOF
17049 /* end confdefs.h.  */
17050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17052 #define $ac_func innocuous_$ac_func
17053
17054 /* System header to define __stub macros and hopefully few prototypes,
17055     which can conflict with char $ac_func (); below.
17056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17057     <limits.h> exists even on freestanding compilers.  */
17058
17059 #ifdef __STDC__
17060 # include <limits.h>
17061 #else
17062 # include <assert.h>
17063 #endif
17064
17065 #undef $ac_func
17066
17067 /* Override any GCC internal prototype to avoid an error.
17068    Use char because int might match the return type of a GCC
17069    builtin and then its argument prototype would still apply.  */
17070 #ifdef __cplusplus
17071 extern "C"
17072 #endif
17073 char $ac_func ();
17074 /* The GNU C library defines this for functions which it implements
17075     to always fail with ENOSYS.  Some functions are actually named
17076     something starting with __ and the normal name is an alias.  */
17077 #if defined __stub_$ac_func || defined __stub___$ac_func
17078 choke me
17079 #endif
17080
17081 int
17082 main ()
17083 {
17084 return $ac_func ();
17085   ;
17086   return 0;
17087 }
17088 _ACEOF
17089 rm -f conftest.$ac_objext conftest$ac_exeext
17090 if { (ac_try="$ac_link"
17091 case "(($ac_try" in
17092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093   *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096   (eval "$ac_link") 2>conftest.er1
17097   ac_status=$?
17098   grep -v '^ *+' conftest.er1 >conftest.err
17099   rm -f conftest.er1
17100   cat conftest.err >&5
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); } && {
17103          test -z "$ac_c_werror_flag" ||
17104          test ! -s conftest.err
17105        } && test -s conftest$ac_exeext &&
17106        $as_test_x conftest$ac_exeext; then
17107   eval "$as_ac_var=yes"
17108 else
17109   echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112         eval "$as_ac_var=no"
17113 fi
17114
17115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17116       conftest$ac_exeext conftest.$ac_ext
17117 fi
17118 ac_res=`eval echo '${'$as_ac_var'}'`
17119                { echo "$as_me:$LINENO: result: $ac_res" >&5
17120 echo "${ECHO_T}$ac_res" >&6; }
17121 if test `eval echo '${'$as_ac_var'}'` = yes; then
17122   cat >>confdefs.h <<_ACEOF
17123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17124 _ACEOF
17125
17126 fi
17127 done
17128
17129 ol_cv_func_strerror_r=no
17130 if test "${ac_cv_func_strerror_r}" = yes ; then
17131         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17132 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17133 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17134   echo $ECHO_N "(cached) $ECHO_C" >&6
17135 else
17136
17137         cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h.  */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h.  */
17143 #include <string.h>
17144 _ACEOF
17145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17146   $EGREP "strerror_r" >/dev/null 2>&1; then
17147   ol_decl_strerror_r=yes
17148 else
17149   ol_decl_strerror_r=no
17150 fi
17151 rm -f conftest*
17152
17153         if test $ol_decl_strerror_r = yes ; then
17154                 cat >conftest.$ac_ext <<_ACEOF
17155 /* confdefs.h.  */
17156 _ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h.  */
17160 #include <string.h>
17161 int
17162 main ()
17163 {
17164    /* from autoconf 2.59 */
17165                                 char buf[100];
17166                                 char x = *strerror_r (0, buf, sizeof buf);
17167                                 char *p = strerror_r (0, buf, sizeof buf);
17168
17169   ;
17170   return 0;
17171 }
17172 _ACEOF
17173 rm -f conftest.$ac_objext
17174 if { (ac_try="$ac_compile"
17175 case "(($ac_try" in
17176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177   *) ac_try_echo=$ac_try;;
17178 esac
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180   (eval "$ac_compile") 2>conftest.er1
17181   ac_status=$?
17182   grep -v '^ *+' conftest.er1 >conftest.err
17183   rm -f conftest.er1
17184   cat conftest.err >&5
17185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186   (exit $ac_status); } && {
17187          test -z "$ac_c_werror_flag" ||
17188          test ! -s conftest.err
17189        } && test -s conftest.$ac_objext; then
17190   ol_cv_nonposix_strerror_r=yes
17191 else
17192   echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17194
17195         ol_cv_nonposix_strerror_r=no
17196 fi
17197
17198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17199         else
17200                 if test "$cross_compiling" = yes; then
17201   ol_cv_nonposix_strerror=no
17202 else
17203   cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h.  */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h.  */
17209
17210                         main() {
17211                                 char buf[100];
17212                                 buf[0] = 0;
17213                                 strerror_r( 1, buf, sizeof buf );
17214                                 exit( buf[0] == 0 );
17215                         }
17216
17217 _ACEOF
17218 rm -f conftest$ac_exeext
17219 if { (ac_try="$ac_link"
17220 case "(($ac_try" in
17221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222   *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225   (eval "$ac_link") 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17229   { (case "(($ac_try" in
17230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231   *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234   (eval "$ac_try") 2>&5
17235   ac_status=$?
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); }; }; then
17238   ol_cv_nonposix_strerror_r=yes
17239 else
17240   echo "$as_me: program exited with status $ac_status" >&5
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17243
17244 ( exit $ac_status )
17245 ol_cv_nonposix_strerror=no
17246 fi
17247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17248 fi
17249
17250
17251         fi
17252
17253 fi
17254 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17255 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17256 if test $ol_cv_nonposix_strerror_r = yes ; then
17257
17258 cat >>confdefs.h <<\_ACEOF
17259 #define HAVE_NONPOSIX_STRERROR_R 1
17260 _ACEOF
17261
17262 fi
17263
17264 elif test "${ac_cv_func_strerror}" = no ; then
17265         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17266 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17267 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17268   echo $ECHO_N "(cached) $ECHO_C" >&6
17269 else
17270
17271         cat >conftest.$ac_ext <<_ACEOF
17272 /* confdefs.h.  */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h.  */
17277
17278 #include <stdio.h>
17279 #include <sys/types.h>
17280 #include <errno.h>
17281 #ifdef _WIN32
17282 #include <stdlib.h>
17283 #endif
17284 int
17285 main ()
17286 {
17287 char *c = (char *) *sys_errlist
17288   ;
17289   return 0;
17290 }
17291 _ACEOF
17292 rm -f conftest.$ac_objext
17293 if { (ac_try="$ac_compile"
17294 case "(($ac_try" in
17295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296   *) ac_try_echo=$ac_try;;
17297 esac
17298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299   (eval "$ac_compile") 2>conftest.er1
17300   ac_status=$?
17301   grep -v '^ *+' conftest.er1 >conftest.err
17302   rm -f conftest.er1
17303   cat conftest.err >&5
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); } && {
17306          test -z "$ac_c_werror_flag" ||
17307          test ! -s conftest.err
17308        } && test -s conftest.$ac_objext; then
17309   ol_cv_dcl_sys_errlist=yes
17310         ol_cv_have_sys_errlist=yes
17311 else
17312   echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17314
17315         ol_cv_dcl_sys_errlist=no
17316 fi
17317
17318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17319 fi
17320 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17321 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17322 #
17323 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17324 if test $ol_cv_dcl_sys_errlist = no ; then
17325
17326 cat >>confdefs.h <<\_ACEOF
17327 #define DECL_SYS_ERRLIST 1
17328 _ACEOF
17329
17330
17331         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17332 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17333 if test "${ol_cv_have_sys_errlist+set}" = set; then
17334   echo $ECHO_N "(cached) $ECHO_C" >&6
17335 else
17336
17337                 cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343 #include <errno.h>
17344 int
17345 main ()
17346 {
17347 char *c = (char *) *sys_errlist
17348   ;
17349   return 0;
17350 }
17351 _ACEOF
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356   *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359   (eval "$ac_link") 2>conftest.er1
17360   ac_status=$?
17361   grep -v '^ *+' conftest.er1 >conftest.err
17362   rm -f conftest.er1
17363   cat conftest.err >&5
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); } && {
17366          test -z "$ac_c_werror_flag" ||
17367          test ! -s conftest.err
17368        } && test -s conftest$ac_exeext &&
17369        $as_test_x conftest$ac_exeext; then
17370   ol_cv_have_sys_errlist=yes
17371 else
17372   echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375         ol_cv_have_sys_errlist=no
17376 fi
17377
17378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17379       conftest$ac_exeext conftest.$ac_ext
17380 fi
17381 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17382 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17383 fi
17384 if test $ol_cv_have_sys_errlist = yes ; then
17385
17386 cat >>confdefs.h <<\_ACEOF
17387 #define HAVE_SYS_ERRLIST 1
17388 _ACEOF
17389
17390 fi
17391
17392 fi
17393
17394
17395
17396 for ac_header in regex.h
17397 do
17398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17402   echo $ECHO_N "(cached) $ECHO_C" >&6
17403 else
17404   cat >conftest.$ac_ext <<_ACEOF
17405 /* confdefs.h.  */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h.  */
17410 $ac_includes_default
17411 #ifdef HAVE_SYS_TYPES_H
17412 #include <sys/types.h>
17413 #endif
17414
17415
17416 #include <$ac_header>
17417 _ACEOF
17418 rm -f conftest.$ac_objext
17419 if { (ac_try="$ac_compile"
17420 case "(($ac_try" in
17421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422   *) ac_try_echo=$ac_try;;
17423 esac
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425   (eval "$ac_compile") 2>conftest.er1
17426   ac_status=$?
17427   grep -v '^ *+' conftest.er1 >conftest.err
17428   rm -f conftest.er1
17429   cat conftest.err >&5
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); } && {
17432          test -z "$ac_c_werror_flag" ||
17433          test ! -s conftest.err
17434        } && test -s conftest.$ac_objext; then
17435   eval "$as_ac_Header=yes"
17436 else
17437   echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17439
17440         eval "$as_ac_Header=no"
17441 fi
17442
17443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17444 fi
17445 ac_res=`eval echo '${'$as_ac_Header'}'`
17446                { echo "$as_me:$LINENO: result: $ac_res" >&5
17447 echo "${ECHO_T}$ac_res" >&6; }
17448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17449   cat >>confdefs.h <<_ACEOF
17450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17451 _ACEOF
17452
17453 fi
17454
17455 done
17456
17457
17458 if test "$ac_cv_header_regex_h" != yes ; then
17459         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17460 echo "$as_me: error: POSIX regex.h required." >&2;}
17461    { (exit 1); exit 1; }; }
17462 fi
17463 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17464 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17465 if test "${ac_cv_search_regfree+set}" = set; then
17466   echo $ECHO_N "(cached) $ECHO_C" >&6
17467 else
17468   ac_func_search_save_LIBS=$LIBS
17469 cat >conftest.$ac_ext <<_ACEOF
17470 /* confdefs.h.  */
17471 _ACEOF
17472 cat confdefs.h >>conftest.$ac_ext
17473 cat >>conftest.$ac_ext <<_ACEOF
17474 /* end confdefs.h.  */
17475
17476 /* Override any GCC internal prototype to avoid an error.
17477    Use char because int might match the return type of a GCC
17478    builtin and then its argument prototype would still apply.  */
17479 #ifdef __cplusplus
17480 extern "C"
17481 #endif
17482 char regfree ();
17483 int
17484 main ()
17485 {
17486 return regfree ();
17487   ;
17488   return 0;
17489 }
17490 _ACEOF
17491 for ac_lib in '' regex gnuregex; do
17492   if test -z "$ac_lib"; then
17493     ac_res="none required"
17494   else
17495     ac_res=-l$ac_lib
17496     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17497   fi
17498   rm -f conftest.$ac_objext conftest$ac_exeext
17499 if { (ac_try="$ac_link"
17500 case "(($ac_try" in
17501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502   *) ac_try_echo=$ac_try;;
17503 esac
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505   (eval "$ac_link") 2>conftest.er1
17506   ac_status=$?
17507   grep -v '^ *+' conftest.er1 >conftest.err
17508   rm -f conftest.er1
17509   cat conftest.err >&5
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); } && {
17512          test -z "$ac_c_werror_flag" ||
17513          test ! -s conftest.err
17514        } && test -s conftest$ac_exeext &&
17515        $as_test_x conftest$ac_exeext; then
17516   ac_cv_search_regfree=$ac_res
17517 else
17518   echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17520
17521
17522 fi
17523
17524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17525       conftest$ac_exeext
17526   if test "${ac_cv_search_regfree+set}" = set; then
17527   break
17528 fi
17529 done
17530 if test "${ac_cv_search_regfree+set}" = set; then
17531   :
17532 else
17533   ac_cv_search_regfree=no
17534 fi
17535 rm conftest.$ac_ext
17536 LIBS=$ac_func_search_save_LIBS
17537 fi
17538 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17539 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17540 ac_res=$ac_cv_search_regfree
17541 if test "$ac_res" != no; then
17542   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17543   :
17544 else
17545   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17546 echo "$as_me: error: POSIX regex required." >&2;}
17547    { (exit 1); exit 1; }; }
17548 fi
17549
17550
17551
17552 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17553 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17554 if test "${ol_cv_c_posix_regex+set}" = set; then
17555   echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17557
17558         if test "$cross_compiling" = yes; then
17559   ol_cv_c_posix_regex=cross
17560 else
17561   cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h.  */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h.  */
17567
17568 #include <sys/types.h>
17569 #include <regex.h>
17570 static char *pattern, *string;
17571 main()
17572 {
17573         int rc;
17574         regex_t re;
17575
17576         pattern = "^A";
17577
17578         if(regcomp(&re, pattern, 0)) {
17579                 return -1;
17580         }
17581
17582         string = "ALL MATCH";
17583
17584         rc = regexec(&re, string, 0, (void*)0, 0);
17585
17586         regfree(&re);
17587
17588         return rc;
17589 }
17590 _ACEOF
17591 rm -f conftest$ac_exeext
17592 if { (ac_try="$ac_link"
17593 case "(($ac_try" in
17594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595   *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598   (eval "$ac_link") 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17602   { (case "(($ac_try" in
17603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604   *) ac_try_echo=$ac_try;;
17605 esac
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607   (eval "$ac_try") 2>&5
17608   ac_status=$?
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); }; }; then
17611   ol_cv_c_posix_regex=yes
17612 else
17613   echo "$as_me: program exited with status $ac_status" >&5
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617 ( exit $ac_status )
17618 ol_cv_c_posix_regex=no
17619 fi
17620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17621 fi
17622
17623
17624 fi
17625 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17626 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17627
17628 if test "$ol_cv_c_posix_regex" = no ; then
17629         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17630 echo "$as_me: error: broken POSIX regex!" >&2;}
17631    { (exit 1); exit 1; }; }
17632 fi
17633
17634
17635 have_uuid=no
17636
17637 for ac_header in sys/uuid.h
17638 do
17639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17641   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17644   echo $ECHO_N "(cached) $ECHO_C" >&6
17645 fi
17646 ac_res=`eval echo '${'$as_ac_Header'}'`
17647                { echo "$as_me:$LINENO: result: $ac_res" >&5
17648 echo "${ECHO_T}$ac_res" >&6; }
17649 else
17650   # Is the header compilable?
17651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17653 cat >conftest.$ac_ext <<_ACEOF
17654 /* confdefs.h.  */
17655 _ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h.  */
17659 $ac_includes_default
17660 #include <$ac_header>
17661 _ACEOF
17662 rm -f conftest.$ac_objext
17663 if { (ac_try="$ac_compile"
17664 case "(($ac_try" in
17665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666   *) ac_try_echo=$ac_try;;
17667 esac
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669   (eval "$ac_compile") 2>conftest.er1
17670   ac_status=$?
17671   grep -v '^ *+' conftest.er1 >conftest.err
17672   rm -f conftest.er1
17673   cat conftest.err >&5
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); } && {
17676          test -z "$ac_c_werror_flag" ||
17677          test ! -s conftest.err
17678        } && test -s conftest.$ac_objext; then
17679   ac_header_compiler=yes
17680 else
17681   echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684         ac_header_compiler=no
17685 fi
17686
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17689 echo "${ECHO_T}$ac_header_compiler" >&6; }
17690
17691 # Is the header present?
17692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17694 cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h.  */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h.  */
17700 #include <$ac_header>
17701 _ACEOF
17702 if { (ac_try="$ac_cpp conftest.$ac_ext"
17703 case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } >/dev/null && {
17715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17716          test ! -s conftest.err
17717        }; then
17718   ac_header_preproc=yes
17719 else
17720   echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17722
17723   ac_header_preproc=no
17724 fi
17725
17726 rm -f conftest.err conftest.$ac_ext
17727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17728 echo "${ECHO_T}$ac_header_preproc" >&6; }
17729
17730 # So?  What about this header?
17731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17732   yes:no: )
17733     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17737     ac_header_preproc=yes
17738     ;;
17739   no:yes:* )
17740     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17742     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17743 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17744     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17746     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17747 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17750     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17752     ( cat <<\_ASBOX
17753 ## --------------------------------------------- ##
17754 ## Report this to <http://www.openldap.org/its/> ##
17755 ## --------------------------------------------- ##
17756 _ASBOX
17757      ) | sed "s/^/$as_me: WARNING:     /" >&2
17758     ;;
17759 esac
17760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17763   echo $ECHO_N "(cached) $ECHO_C" >&6
17764 else
17765   eval "$as_ac_Header=\$ac_header_preproc"
17766 fi
17767 ac_res=`eval echo '${'$as_ac_Header'}'`
17768                { echo "$as_me:$LINENO: result: $ac_res" >&5
17769 echo "${ECHO_T}$ac_res" >&6; }
17770
17771 fi
17772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17773   cat >>confdefs.h <<_ACEOF
17774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17775 _ACEOF
17776
17777 fi
17778
17779 done
17780
17781 if test $ac_cv_header_sys_uuid_h = yes ; then
17782         save_LIBS="$LIBS"
17783         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17784 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17785 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17786   echo $ECHO_N "(cached) $ECHO_C" >&6
17787 else
17788   ac_func_search_save_LIBS=$LIBS
17789 cat >conftest.$ac_ext <<_ACEOF
17790 /* confdefs.h.  */
17791 _ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h.  */
17795
17796 /* Override any GCC internal prototype to avoid an error.
17797    Use char because int might match the return type of a GCC
17798    builtin and then its argument prototype would still apply.  */
17799 #ifdef __cplusplus
17800 extern "C"
17801 #endif
17802 char uuid_to_str ();
17803 int
17804 main ()
17805 {
17806 return uuid_to_str ();
17807   ;
17808   return 0;
17809 }
17810 _ACEOF
17811 for ac_lib in '' uuid; do
17812   if test -z "$ac_lib"; then
17813     ac_res="none required"
17814   else
17815     ac_res=-l$ac_lib
17816     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17817   fi
17818   rm -f conftest.$ac_objext conftest$ac_exeext
17819 if { (ac_try="$ac_link"
17820 case "(($ac_try" in
17821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822   *) ac_try_echo=$ac_try;;
17823 esac
17824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825   (eval "$ac_link") 2>conftest.er1
17826   ac_status=$?
17827   grep -v '^ *+' conftest.er1 >conftest.err
17828   rm -f conftest.er1
17829   cat conftest.err >&5
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); } && {
17832          test -z "$ac_c_werror_flag" ||
17833          test ! -s conftest.err
17834        } && test -s conftest$ac_exeext &&
17835        $as_test_x conftest$ac_exeext; then
17836   ac_cv_search_uuid_to_str=$ac_res
17837 else
17838   echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841
17842 fi
17843
17844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17845       conftest$ac_exeext
17846   if test "${ac_cv_search_uuid_to_str+set}" = set; then
17847   break
17848 fi
17849 done
17850 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17851   :
17852 else
17853   ac_cv_search_uuid_to_str=no
17854 fi
17855 rm conftest.$ac_ext
17856 LIBS=$ac_func_search_save_LIBS
17857 fi
17858 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17859 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17860 ac_res=$ac_cv_search_uuid_to_str
17861 if test "$ac_res" != no; then
17862   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17863   have_uuid=yes
17864 else
17865   :
17866 fi
17867
17868         LIBS="$save_LIBS"
17869
17870         if test have_uuid = yes ; then
17871
17872 cat >>confdefs.h <<\_ACEOF
17873 #define HAVE_UUID_TO_STR 1
17874 _ACEOF
17875
17876
17877                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17878                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17879         fi
17880 fi
17881
17882 if test $have_uuid = no ; then
17883
17884 for ac_header in uuid/uuid.h
17885 do
17886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17888   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17891   echo $ECHO_N "(cached) $ECHO_C" >&6
17892 fi
17893 ac_res=`eval echo '${'$as_ac_Header'}'`
17894                { echo "$as_me:$LINENO: result: $ac_res" >&5
17895 echo "${ECHO_T}$ac_res" >&6; }
17896 else
17897   # Is the header compilable?
17898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17900 cat >conftest.$ac_ext <<_ACEOF
17901 /* confdefs.h.  */
17902 _ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h.  */
17906 $ac_includes_default
17907 #include <$ac_header>
17908 _ACEOF
17909 rm -f conftest.$ac_objext
17910 if { (ac_try="$ac_compile"
17911 case "(($ac_try" in
17912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913   *) ac_try_echo=$ac_try;;
17914 esac
17915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916   (eval "$ac_compile") 2>conftest.er1
17917   ac_status=$?
17918   grep -v '^ *+' conftest.er1 >conftest.err
17919   rm -f conftest.er1
17920   cat conftest.err >&5
17921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922   (exit $ac_status); } && {
17923          test -z "$ac_c_werror_flag" ||
17924          test ! -s conftest.err
17925        } && test -s conftest.$ac_objext; then
17926   ac_header_compiler=yes
17927 else
17928   echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931         ac_header_compiler=no
17932 fi
17933
17934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17936 echo "${ECHO_T}$ac_header_compiler" >&6; }
17937
17938 # Is the header present?
17939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17941 cat >conftest.$ac_ext <<_ACEOF
17942 /* confdefs.h.  */
17943 _ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h.  */
17947 #include <$ac_header>
17948 _ACEOF
17949 if { (ac_try="$ac_cpp conftest.$ac_ext"
17950 case "(($ac_try" in
17951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952   *) ac_try_echo=$ac_try;;
17953 esac
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17956   ac_status=$?
17957   grep -v '^ *+' conftest.er1 >conftest.err
17958   rm -f conftest.er1
17959   cat conftest.err >&5
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); } >/dev/null && {
17962          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17963          test ! -s conftest.err
17964        }; then
17965   ac_header_preproc=yes
17966 else
17967   echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17969
17970   ac_header_preproc=no
17971 fi
17972
17973 rm -f conftest.err conftest.$ac_ext
17974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17975 echo "${ECHO_T}$ac_header_preproc" >&6; }
17976
17977 # So?  What about this header?
17978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17979   yes:no: )
17980     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17984     ac_header_preproc=yes
17985     ;;
17986   no:yes:* )
17987     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17989     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17990 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17991     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17993     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17994 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17997     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17999     ( cat <<\_ASBOX
18000 ## --------------------------------------------- ##
18001 ## Report this to <http://www.openldap.org/its/> ##
18002 ## --------------------------------------------- ##
18003 _ASBOX
18004      ) | sed "s/^/$as_me: WARNING:     /" >&2
18005     ;;
18006 esac
18007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18010   echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012   eval "$as_ac_Header=\$ac_header_preproc"
18013 fi
18014 ac_res=`eval echo '${'$as_ac_Header'}'`
18015                { echo "$as_me:$LINENO: result: $ac_res" >&5
18016 echo "${ECHO_T}$ac_res" >&6; }
18017
18018 fi
18019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18020   cat >>confdefs.h <<_ACEOF
18021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18022 _ACEOF
18023
18024 fi
18025
18026 done
18027
18028         if test $ac_cv_header_uuid_uuid_h = yes ; then
18029                 save_LIBS="$LIBS"
18030                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18031 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18032 if test "${ac_cv_search_uuid_generate+set}" = set; then
18033   echo $ECHO_N "(cached) $ECHO_C" >&6
18034 else
18035   ac_func_search_save_LIBS=$LIBS
18036 cat >conftest.$ac_ext <<_ACEOF
18037 /* confdefs.h.  */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h.  */
18042
18043 /* Override any GCC internal prototype to avoid an error.
18044    Use char because int might match the return type of a GCC
18045    builtin and then its argument prototype would still apply.  */
18046 #ifdef __cplusplus
18047 extern "C"
18048 #endif
18049 char uuid_generate ();
18050 int
18051 main ()
18052 {
18053 return uuid_generate ();
18054   ;
18055   return 0;
18056 }
18057 _ACEOF
18058 for ac_lib in '' uuid; do
18059   if test -z "$ac_lib"; then
18060     ac_res="none required"
18061   else
18062     ac_res=-l$ac_lib
18063     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18064   fi
18065   rm -f conftest.$ac_objext conftest$ac_exeext
18066 if { (ac_try="$ac_link"
18067 case "(($ac_try" in
18068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069   *) ac_try_echo=$ac_try;;
18070 esac
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072   (eval "$ac_link") 2>conftest.er1
18073   ac_status=$?
18074   grep -v '^ *+' conftest.er1 >conftest.err
18075   rm -f conftest.er1
18076   cat conftest.err >&5
18077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078   (exit $ac_status); } && {
18079          test -z "$ac_c_werror_flag" ||
18080          test ! -s conftest.err
18081        } && test -s conftest$ac_exeext &&
18082        $as_test_x conftest$ac_exeext; then
18083   ac_cv_search_uuid_generate=$ac_res
18084 else
18085   echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18087
18088
18089 fi
18090
18091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18092       conftest$ac_exeext
18093   if test "${ac_cv_search_uuid_generate+set}" = set; then
18094   break
18095 fi
18096 done
18097 if test "${ac_cv_search_uuid_generate+set}" = set; then
18098   :
18099 else
18100   ac_cv_search_uuid_generate=no
18101 fi
18102 rm conftest.$ac_ext
18103 LIBS=$ac_func_search_save_LIBS
18104 fi
18105 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18106 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18107 ac_res=$ac_cv_search_uuid_generate
18108 if test "$ac_res" != no; then
18109   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18110   have_uuid=yes
18111 else
18112   :
18113 fi
18114
18115                 LIBS="$save_LIBS"
18116
18117                 if test have_uuid = yes ; then
18118
18119 cat >>confdefs.h <<\_ACEOF
18120 #define HAVE_UUID_GENERATE 1
18121 _ACEOF
18122
18123
18124                         test "$ac_cv_search_uuid_generate" = "none required" || \
18125                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18126                 fi
18127         fi
18128 fi
18129
18130 if test $have_uuid = no ; then
18131         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18132 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18133         save_LIBS="$LIBS"
18134         LIBS="$LIBS -lrpcrt4"
18135         cat >conftest.$ac_ext <<_ACEOF
18136 /* confdefs.h.  */
18137 _ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h.  */
18141
18142                 int __stdcall UuidCreate(void *);
18143                 int __stdcall UuidToStringA(void *,void **);
18144
18145 int
18146 main ()
18147 {
18148
18149                 UuidCreate(0);
18150                 UuidToStringA(0,0);
18151
18152   ;
18153   return 0;
18154 }
18155 _ACEOF
18156 rm -f conftest.$ac_objext conftest$ac_exeext
18157 if { (ac_try="$ac_link"
18158 case "(($ac_try" in
18159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18160   *) ac_try_echo=$ac_try;;
18161 esac
18162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18163   (eval "$ac_link") 2>conftest.er1
18164   ac_status=$?
18165   grep -v '^ *+' conftest.er1 >conftest.err
18166   rm -f conftest.er1
18167   cat conftest.err >&5
18168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169   (exit $ac_status); } && {
18170          test -z "$ac_c_werror_flag" ||
18171          test ! -s conftest.err
18172        } && test -s conftest$ac_exeext &&
18173        $as_test_x conftest$ac_exeext; then
18174   need_rpcrt=yes
18175 else
18176   echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.$ac_ext >&5
18178
18179         need_rpcrt=no
18180 fi
18181
18182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18183       conftest$ac_exeext conftest.$ac_ext
18184         if test $need_rpcrt = yes; then
18185                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18186         fi
18187         LIBS="$save_LIBS"
18188         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18189 echo "${ECHO_T}$need_rpcrt" >&6; }
18190 fi
18191
18192 ol_cv_lib_resolver=no
18193 if test $ol_cv_lib_resolver = no ; then
18194         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18195 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18196 if test "${ol_cv_resolver_none+set}" = set; then
18197   echo $ECHO_N "(cached) $ECHO_C" >&6
18198 else
18199
18200         ol_RESOLVER_LIB=
18201         ol_LIBS=$LIBS
18202         LIBS="$ol_RESOLVER_LIB $LIBS"
18203
18204         cat >conftest.$ac_ext <<_ACEOF
18205 /* confdefs.h.  */
18206 _ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h.  */
18210
18211 #ifdef HAVE_SYS_TYPES_H
18212 #       include <sys/types.h>
18213 #endif
18214 #include <netinet/in.h>
18215 #ifdef HAVE_ARPA_NAMESER_H
18216 #       include <arpa/nameser.h>
18217 #endif
18218 #ifdef HAVE_RESOLV_H
18219 #       include <resolv.h>
18220 #endif
18221
18222 int
18223 main ()
18224 {
18225 {
18226         int len, status;
18227         char *request = NULL;
18228         unsigned char reply[64*1024];
18229         unsigned char host[64*1024];
18230         unsigned char *p;
18231
18232 #ifdef NS_HFIXEDSZ
18233         /* Bind 8/9 interface */
18234         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18235 #else
18236         /* Bind 4 interface */
18237 # ifndef T_SRV
18238 #  define T_SRV 33
18239 # endif
18240         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18241 #endif
18242         p = reply;
18243 #ifdef NS_HFIXEDSZ
18244         /* Bind 8/9 interface */
18245         p += NS_HFIXEDSZ;
18246 #elif defined(HFIXEDSZ)
18247         /* Bind 4 interface w/ HFIXEDSZ */
18248         p += HFIXEDSZ;
18249 #else
18250         /* Bind 4 interface w/o HFIXEDSZ */
18251         p += sizeof(HEADER);
18252 #endif
18253         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18254 }
18255   ;
18256   return 0;
18257 }
18258 _ACEOF
18259 rm -f conftest.$ac_objext conftest$ac_exeext
18260 if { (ac_try="$ac_link"
18261 case "(($ac_try" in
18262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263   *) ac_try_echo=$ac_try;;
18264 esac
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266   (eval "$ac_link") 2>conftest.er1
18267   ac_status=$?
18268   grep -v '^ *+' conftest.er1 >conftest.err
18269   rm -f conftest.er1
18270   cat conftest.err >&5
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); } && {
18273          test -z "$ac_c_werror_flag" ||
18274          test ! -s conftest.err
18275        } && test -s conftest$ac_exeext &&
18276        $as_test_x conftest$ac_exeext; then
18277   ol_cv_resolver_none=yes
18278 else
18279   echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18281
18282         ol_cv_resolver_none=no
18283 fi
18284
18285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18286       conftest$ac_exeext conftest.$ac_ext
18287
18288         LIBS="$ol_LIBS"
18289
18290 fi
18291 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18292 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18293
18294         if test $ol_cv_resolver_none = yes ; then
18295                 ol_cv_lib_resolver=yes
18296         fi
18297 fi
18298
18299 if test $ol_cv_lib_resolver = no ; then
18300         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18301 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18302 if test "${ol_cv_resolver_resolv+set}" = set; then
18303   echo $ECHO_N "(cached) $ECHO_C" >&6
18304 else
18305
18306         ol_RESOLVER_LIB=-lresolv
18307         ol_LIBS=$LIBS
18308         LIBS="$ol_RESOLVER_LIB $LIBS"
18309
18310         cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h.  */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h.  */
18316
18317 #ifdef HAVE_SYS_TYPES_H
18318 #       include <sys/types.h>
18319 #endif
18320 #include <netinet/in.h>
18321 #ifdef HAVE_ARPA_NAMESER_H
18322 #       include <arpa/nameser.h>
18323 #endif
18324 #ifdef HAVE_RESOLV_H
18325 #       include <resolv.h>
18326 #endif
18327
18328 int
18329 main ()
18330 {
18331 {
18332         int len, status;
18333         char *request = NULL;
18334         unsigned char reply[64*1024];
18335         unsigned char host[64*1024];
18336         unsigned char *p;
18337
18338 #ifdef NS_HFIXEDSZ
18339         /* Bind 8/9 interface */
18340         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18341 #else
18342         /* Bind 4 interface */
18343 # ifndef T_SRV
18344 #  define T_SRV 33
18345 # endif
18346         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18347 #endif
18348         p = reply;
18349 #ifdef NS_HFIXEDSZ
18350         /* Bind 8/9 interface */
18351         p += NS_HFIXEDSZ;
18352 #elif defined(HFIXEDSZ)
18353         /* Bind 4 interface w/ HFIXEDSZ */
18354         p += HFIXEDSZ;
18355 #else
18356         /* Bind 4 interface w/o HFIXEDSZ */
18357         p += sizeof(HEADER);
18358 #endif
18359         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18360 }
18361   ;
18362   return 0;
18363 }
18364 _ACEOF
18365 rm -f conftest.$ac_objext conftest$ac_exeext
18366 if { (ac_try="$ac_link"
18367 case "(($ac_try" in
18368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369   *) ac_try_echo=$ac_try;;
18370 esac
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372   (eval "$ac_link") 2>conftest.er1
18373   ac_status=$?
18374   grep -v '^ *+' conftest.er1 >conftest.err
18375   rm -f conftest.er1
18376   cat conftest.err >&5
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); } && {
18379          test -z "$ac_c_werror_flag" ||
18380          test ! -s conftest.err
18381        } && test -s conftest$ac_exeext &&
18382        $as_test_x conftest$ac_exeext; then
18383   ol_cv_resolver_resolv=yes
18384 else
18385   echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18387
18388         ol_cv_resolver_resolv=no
18389 fi
18390
18391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18392       conftest$ac_exeext conftest.$ac_ext
18393
18394         LIBS="$ol_LIBS"
18395
18396 fi
18397 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18398 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18399
18400         if test $ol_cv_resolver_resolv = yes ; then
18401                 ol_cv_lib_resolver=-lresolv
18402         fi
18403 fi
18404
18405 if test $ol_cv_lib_resolver = no ; then
18406         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18407 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18408 if test "${ol_cv_resolver_bind+set}" = set; then
18409   echo $ECHO_N "(cached) $ECHO_C" >&6
18410 else
18411
18412         ol_RESOLVER_LIB=-lbind
18413         ol_LIBS=$LIBS
18414         LIBS="$ol_RESOLVER_LIB $LIBS"
18415
18416         cat >conftest.$ac_ext <<_ACEOF
18417 /* confdefs.h.  */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h.  */
18422
18423 #ifdef HAVE_SYS_TYPES_H
18424 #       include <sys/types.h>
18425 #endif
18426 #include <netinet/in.h>
18427 #ifdef HAVE_ARPA_NAMESER_H
18428 #       include <arpa/nameser.h>
18429 #endif
18430 #ifdef HAVE_RESOLV_H
18431 #       include <resolv.h>
18432 #endif
18433
18434 int
18435 main ()
18436 {
18437 {
18438         int len, status;
18439         char *request = NULL;
18440         unsigned char reply[64*1024];
18441         unsigned char host[64*1024];
18442         unsigned char *p;
18443
18444 #ifdef NS_HFIXEDSZ
18445         /* Bind 8/9 interface */
18446         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18447 #else
18448         /* Bind 4 interface */
18449 # ifndef T_SRV
18450 #  define T_SRV 33
18451 # endif
18452         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18453 #endif
18454         p = reply;
18455 #ifdef NS_HFIXEDSZ
18456         /* Bind 8/9 interface */
18457         p += NS_HFIXEDSZ;
18458 #elif defined(HFIXEDSZ)
18459         /* Bind 4 interface w/ HFIXEDSZ */
18460         p += HFIXEDSZ;
18461 #else
18462         /* Bind 4 interface w/o HFIXEDSZ */
18463         p += sizeof(HEADER);
18464 #endif
18465         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18466 }
18467   ;
18468   return 0;
18469 }
18470 _ACEOF
18471 rm -f conftest.$ac_objext conftest$ac_exeext
18472 if { (ac_try="$ac_link"
18473 case "(($ac_try" in
18474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475   *) ac_try_echo=$ac_try;;
18476 esac
18477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478   (eval "$ac_link") 2>conftest.er1
18479   ac_status=$?
18480   grep -v '^ *+' conftest.er1 >conftest.err
18481   rm -f conftest.er1
18482   cat conftest.err >&5
18483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484   (exit $ac_status); } && {
18485          test -z "$ac_c_werror_flag" ||
18486          test ! -s conftest.err
18487        } && test -s conftest$ac_exeext &&
18488        $as_test_x conftest$ac_exeext; then
18489   ol_cv_resolver_bind=yes
18490 else
18491   echo "$as_me: failed program was:" >&5
18492 sed 's/^/| /' conftest.$ac_ext >&5
18493
18494         ol_cv_resolver_bind=no
18495 fi
18496
18497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18498       conftest$ac_exeext conftest.$ac_ext
18499
18500         LIBS="$ol_LIBS"
18501
18502 fi
18503 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18504 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18505
18506         if test $ol_cv_resolver_bind = yes ; then
18507                 ol_cv_lib_resolver=-lbind
18508         fi
18509 fi
18510
18511
18512
18513 ol_link_dnssrv=no
18514 if test "$ol_cv_lib_resolver" != no ; then
18515
18516 cat >>confdefs.h <<\_ACEOF
18517 #define HAVE_RES_QUERY 1
18518 _ACEOF
18519
18520
18521         if test "$ol_enable_dnssrv" != no ; then
18522                 ol_link_dnssrv=yes
18523         fi
18524
18525         if test "$ol_cv_lib_resolver" != yes ; then
18526                 LIBS="$ol_cv_lib_resolver $LIBS"
18527         fi
18528 fi
18529
18530 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18531         if test "$ol_link_dnssrv" = no ; then
18532                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18533 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18534    { (exit 1); exit 1; }; }
18535         fi
18536 else
18537         ol_enable_dnssrv=no
18538 fi
18539
18540
18541 for ac_func in hstrerror
18542 do
18543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18547   echo $ECHO_N "(cached) $ECHO_C" >&6
18548 else
18549   cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h.  */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h.  */
18555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18557 #define $ac_func innocuous_$ac_func
18558
18559 /* System header to define __stub macros and hopefully few prototypes,
18560     which can conflict with char $ac_func (); below.
18561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18562     <limits.h> exists even on freestanding compilers.  */
18563
18564 #ifdef __STDC__
18565 # include <limits.h>
18566 #else
18567 # include <assert.h>
18568 #endif
18569
18570 #undef $ac_func
18571
18572 /* Override any GCC internal prototype to avoid an error.
18573    Use char because int might match the return type of a GCC
18574    builtin and then its argument prototype would still apply.  */
18575 #ifdef __cplusplus
18576 extern "C"
18577 #endif
18578 char $ac_func ();
18579 /* The GNU C library defines this for functions which it implements
18580     to always fail with ENOSYS.  Some functions are actually named
18581     something starting with __ and the normal name is an alias.  */
18582 #if defined __stub_$ac_func || defined __stub___$ac_func
18583 choke me
18584 #endif
18585
18586 int
18587 main ()
18588 {
18589 return $ac_func ();
18590   ;
18591   return 0;
18592 }
18593 _ACEOF
18594 rm -f conftest.$ac_objext conftest$ac_exeext
18595 if { (ac_try="$ac_link"
18596 case "(($ac_try" in
18597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598   *) ac_try_echo=$ac_try;;
18599 esac
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601   (eval "$ac_link") 2>conftest.er1
18602   ac_status=$?
18603   grep -v '^ *+' conftest.er1 >conftest.err
18604   rm -f conftest.er1
18605   cat conftest.err >&5
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); } && {
18608          test -z "$ac_c_werror_flag" ||
18609          test ! -s conftest.err
18610        } && test -s conftest$ac_exeext &&
18611        $as_test_x conftest$ac_exeext; then
18612   eval "$as_ac_var=yes"
18613 else
18614   echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18616
18617         eval "$as_ac_var=no"
18618 fi
18619
18620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18621       conftest$ac_exeext conftest.$ac_ext
18622 fi
18623 ac_res=`eval echo '${'$as_ac_var'}'`
18624                { echo "$as_me:$LINENO: result: $ac_res" >&5
18625 echo "${ECHO_T}$ac_res" >&6; }
18626 if test `eval echo '${'$as_ac_var'}'` = yes; then
18627   cat >>confdefs.h <<_ACEOF
18628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18629 _ACEOF
18630
18631 fi
18632 done
18633
18634
18635
18636
18637
18638
18639 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18640 do
18641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18645   echo $ECHO_N "(cached) $ECHO_C" >&6
18646 else
18647   cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h.  */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h.  */
18653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18655 #define $ac_func innocuous_$ac_func
18656
18657 /* System header to define __stub macros and hopefully few prototypes,
18658     which can conflict with char $ac_func (); below.
18659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18660     <limits.h> exists even on freestanding compilers.  */
18661
18662 #ifdef __STDC__
18663 # include <limits.h>
18664 #else
18665 # include <assert.h>
18666 #endif
18667
18668 #undef $ac_func
18669
18670 /* Override any GCC internal prototype to avoid an error.
18671    Use char because int might match the return type of a GCC
18672    builtin and then its argument prototype would still apply.  */
18673 #ifdef __cplusplus
18674 extern "C"
18675 #endif
18676 char $ac_func ();
18677 /* The GNU C library defines this for functions which it implements
18678     to always fail with ENOSYS.  Some functions are actually named
18679     something starting with __ and the normal name is an alias.  */
18680 #if defined __stub_$ac_func || defined __stub___$ac_func
18681 choke me
18682 #endif
18683
18684 int
18685 main ()
18686 {
18687 return $ac_func ();
18688   ;
18689   return 0;
18690 }
18691 _ACEOF
18692 rm -f conftest.$ac_objext conftest$ac_exeext
18693 if { (ac_try="$ac_link"
18694 case "(($ac_try" in
18695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696   *) ac_try_echo=$ac_try;;
18697 esac
18698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699   (eval "$ac_link") 2>conftest.er1
18700   ac_status=$?
18701   grep -v '^ *+' conftest.er1 >conftest.err
18702   rm -f conftest.er1
18703   cat conftest.err >&5
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); } && {
18706          test -z "$ac_c_werror_flag" ||
18707          test ! -s conftest.err
18708        } && test -s conftest$ac_exeext &&
18709        $as_test_x conftest$ac_exeext; then
18710   eval "$as_ac_var=yes"
18711 else
18712   echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715         eval "$as_ac_var=no"
18716 fi
18717
18718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18719       conftest$ac_exeext conftest.$ac_ext
18720 fi
18721 ac_res=`eval echo '${'$as_ac_var'}'`
18722                { echo "$as_me:$LINENO: result: $ac_res" >&5
18723 echo "${ECHO_T}$ac_res" >&6; }
18724 if test `eval echo '${'$as_ac_var'}'` = yes; then
18725   cat >>confdefs.h <<_ACEOF
18726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18727 _ACEOF
18728
18729 fi
18730 done
18731
18732
18733 ol_link_ipv6=no
18734 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18735         if test $ol_enable_ipv6 = yes ; then
18736                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18737 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18738    { (exit 1); exit 1; }; }
18739         fi
18740 elif test $ol_enable_ipv6 != no ; then
18741         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18742 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18743 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18744   echo $ECHO_N "(cached) $ECHO_C" >&6
18745 else
18746
18747                 cat >conftest.$ac_ext <<_ACEOF
18748 /* confdefs.h.  */
18749 _ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h.  */
18753
18754 #                       include <netinet/in.h>
18755 #                       ifdef INET6_ADDRSTRLEN
18756                                 __has_inet6_addrstrlen__;
18757 #                       endif
18758
18759 _ACEOF
18760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18761   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18762   ol_cv_inet6_addrstrlen=yes
18763 else
18764   ol_cv_inet6_addrstrlen=no
18765 fi
18766 rm -f conftest*
18767
18768 fi
18769 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18770 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18771
18772
18773         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18774 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18775 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18776   echo $ECHO_N "(cached) $ECHO_C" >&6
18777 else
18778
18779                 cat >conftest.$ac_ext <<_ACEOF
18780 /* confdefs.h.  */
18781 _ACEOF
18782 cat confdefs.h >>conftest.$ac_ext
18783 cat >>conftest.$ac_ext <<_ACEOF
18784 /* end confdefs.h.  */
18785
18786 #include <sys/types.h>
18787 #include <sys/socket.h>
18788
18789 int
18790 main ()
18791 {
18792
18793                         struct sockaddr_storage ss;
18794
18795   ;
18796   return 0;
18797 }
18798 _ACEOF
18799 rm -f conftest.$ac_objext
18800 if { (ac_try="$ac_compile"
18801 case "(($ac_try" in
18802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803   *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806   (eval "$ac_compile") 2>conftest.er1
18807   ac_status=$?
18808   grep -v '^ *+' conftest.er1 >conftest.err
18809   rm -f conftest.er1
18810   cat conftest.err >&5
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); } && {
18813          test -z "$ac_c_werror_flag" ||
18814          test ! -s conftest.err
18815        } && test -s conftest.$ac_objext; then
18816   ol_cv_struct_sockaddr_storage=yes
18817 else
18818   echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18820
18821         ol_cv_struct_sockaddr_storage=no
18822 fi
18823
18824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18825 fi
18826 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18827 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
18828
18829         if test $ol_cv_inet6_addrstrlen = yes &&
18830            test $ol_cv_struct_sockaddr_storage = yes ; then
18831                 ol_link_ipv6=yes
18832         elif test $ol_enable_ipv6 = yes &&
18833              test $ol_cv_inet6_addrstrlen = no ; then
18834                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18835 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18836    { (exit 1); exit 1; }; }
18837         elif test $ol_enable_ipv6 = yes &&
18838              test $ol_cv_struct_sockaddr_storage = no ; then
18839                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18840 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18841    { (exit 1); exit 1; }; }
18842         fi
18843 fi
18844
18845 if test $ol_enable_local != no ; then
18846
18847 for ac_header in sys/un.h
18848 do
18849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18851   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18854   echo $ECHO_N "(cached) $ECHO_C" >&6
18855 fi
18856 ac_res=`eval echo '${'$as_ac_Header'}'`
18857                { echo "$as_me:$LINENO: result: $ac_res" >&5
18858 echo "${ECHO_T}$ac_res" >&6; }
18859 else
18860   # Is the header compilable?
18861 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18863 cat >conftest.$ac_ext <<_ACEOF
18864 /* confdefs.h.  */
18865 _ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h.  */
18869 $ac_includes_default
18870 #include <$ac_header>
18871 _ACEOF
18872 rm -f conftest.$ac_objext
18873 if { (ac_try="$ac_compile"
18874 case "(($ac_try" in
18875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876   *) ac_try_echo=$ac_try;;
18877 esac
18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879   (eval "$ac_compile") 2>conftest.er1
18880   ac_status=$?
18881   grep -v '^ *+' conftest.er1 >conftest.err
18882   rm -f conftest.er1
18883   cat conftest.err >&5
18884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); } && {
18886          test -z "$ac_c_werror_flag" ||
18887          test ! -s conftest.err
18888        } && test -s conftest.$ac_objext; then
18889   ac_header_compiler=yes
18890 else
18891   echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18893
18894         ac_header_compiler=no
18895 fi
18896
18897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18899 echo "${ECHO_T}$ac_header_compiler" >&6; }
18900
18901 # Is the header present?
18902 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18904 cat >conftest.$ac_ext <<_ACEOF
18905 /* confdefs.h.  */
18906 _ACEOF
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h.  */
18910 #include <$ac_header>
18911 _ACEOF
18912 if { (ac_try="$ac_cpp conftest.$ac_ext"
18913 case "(($ac_try" in
18914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915   *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18919   ac_status=$?
18920   grep -v '^ *+' conftest.er1 >conftest.err
18921   rm -f conftest.er1
18922   cat conftest.err >&5
18923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924   (exit $ac_status); } >/dev/null && {
18925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18926          test ! -s conftest.err
18927        }; then
18928   ac_header_preproc=yes
18929 else
18930   echo "$as_me: failed program was:" >&5
18931 sed 's/^/| /' conftest.$ac_ext >&5
18932
18933   ac_header_preproc=no
18934 fi
18935
18936 rm -f conftest.err conftest.$ac_ext
18937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18938 echo "${ECHO_T}$ac_header_preproc" >&6; }
18939
18940 # So?  What about this header?
18941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18942   yes:no: )
18943     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18947     ac_header_preproc=yes
18948     ;;
18949   no:yes:* )
18950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18952     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18953 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18954     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18956     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18957 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18960     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18962     ( cat <<\_ASBOX
18963 ## --------------------------------------------- ##
18964 ## Report this to <http://www.openldap.org/its/> ##
18965 ## --------------------------------------------- ##
18966 _ASBOX
18967      ) | sed "s/^/$as_me: WARNING:     /" >&2
18968     ;;
18969 esac
18970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18973   echo $ECHO_N "(cached) $ECHO_C" >&6
18974 else
18975   eval "$as_ac_Header=\$ac_header_preproc"
18976 fi
18977 ac_res=`eval echo '${'$as_ac_Header'}'`
18978                { echo "$as_me:$LINENO: result: $ac_res" >&5
18979 echo "${ECHO_T}$ac_res" >&6; }
18980
18981 fi
18982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18983   cat >>confdefs.h <<_ACEOF
18984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18985 _ACEOF
18986
18987 fi
18988
18989 done
18990
18991
18992         if test $ol_enable_local = auto ; then
18993                 ol_enable_local=$ac_cv_header_sys_un_h
18994         elif test $ac_cv_header_sys_un_h = no ; then
18995                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18996 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18997    { (exit 1); exit 1; }; }
18998         fi
18999 fi
19000
19001 ol_link_gssapi=no
19002
19003 case $ol_with_gssapi in yes | auto)
19004
19005         ol_header_gssapi=no
19006
19007 for ac_header in gssapi/gssapi.h
19008 do
19009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19011   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19014   echo $ECHO_N "(cached) $ECHO_C" >&6
19015 fi
19016 ac_res=`eval echo '${'$as_ac_Header'}'`
19017                { echo "$as_me:$LINENO: result: $ac_res" >&5
19018 echo "${ECHO_T}$ac_res" >&6; }
19019 else
19020   # Is the header compilable?
19021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h.  */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h.  */
19029 $ac_includes_default
19030 #include <$ac_header>
19031 _ACEOF
19032 rm -f conftest.$ac_objext
19033 if { (ac_try="$ac_compile"
19034 case "(($ac_try" in
19035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036   *) ac_try_echo=$ac_try;;
19037 esac
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039   (eval "$ac_compile") 2>conftest.er1
19040   ac_status=$?
19041   grep -v '^ *+' conftest.er1 >conftest.err
19042   rm -f conftest.er1
19043   cat conftest.err >&5
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); } && {
19046          test -z "$ac_c_werror_flag" ||
19047          test ! -s conftest.err
19048        } && test -s conftest.$ac_objext; then
19049   ac_header_compiler=yes
19050 else
19051   echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19053
19054         ac_header_compiler=no
19055 fi
19056
19057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19059 echo "${ECHO_T}$ac_header_compiler" >&6; }
19060
19061 # Is the header present?
19062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19064 cat >conftest.$ac_ext <<_ACEOF
19065 /* confdefs.h.  */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h.  */
19070 #include <$ac_header>
19071 _ACEOF
19072 if { (ac_try="$ac_cpp conftest.$ac_ext"
19073 case "(($ac_try" in
19074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075   *) ac_try_echo=$ac_try;;
19076 esac
19077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19079   ac_status=$?
19080   grep -v '^ *+' conftest.er1 >conftest.err
19081   rm -f conftest.er1
19082   cat conftest.err >&5
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); } >/dev/null && {
19085          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19086          test ! -s conftest.err
19087        }; then
19088   ac_header_preproc=yes
19089 else
19090   echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19092
19093   ac_header_preproc=no
19094 fi
19095
19096 rm -f conftest.err conftest.$ac_ext
19097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19098 echo "${ECHO_T}$ac_header_preproc" >&6; }
19099
19100 # So?  What about this header?
19101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19102   yes:no: )
19103     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19107     ac_header_preproc=yes
19108     ;;
19109   no:yes:* )
19110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19112     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19113 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19114     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19116     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19117 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19120     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19122     ( cat <<\_ASBOX
19123 ## --------------------------------------------- ##
19124 ## Report this to <http://www.openldap.org/its/> ##
19125 ## --------------------------------------------- ##
19126 _ASBOX
19127      ) | sed "s/^/$as_me: WARNING:     /" >&2
19128     ;;
19129 esac
19130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19133   echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135   eval "$as_ac_Header=\$ac_header_preproc"
19136 fi
19137 ac_res=`eval echo '${'$as_ac_Header'}'`
19138                { echo "$as_me:$LINENO: result: $ac_res" >&5
19139 echo "${ECHO_T}$ac_res" >&6; }
19140
19141 fi
19142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19143   cat >>confdefs.h <<_ACEOF
19144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19145 _ACEOF
19146
19147 fi
19148
19149 done
19150
19151         if test $ac_cv_header_gssapi_gssapi_h = yes ; then
19152                 ol_header_gssapi=yes
19153         else
19154
19155 for ac_header in gssapi.h
19156 do
19157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19159   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19162   echo $ECHO_N "(cached) $ECHO_C" >&6
19163 fi
19164 ac_res=`eval echo '${'$as_ac_Header'}'`
19165                { echo "$as_me:$LINENO: result: $ac_res" >&5
19166 echo "${ECHO_T}$ac_res" >&6; }
19167 else
19168   # Is the header compilable?
19169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19171 cat >conftest.$ac_ext <<_ACEOF
19172 /* confdefs.h.  */
19173 _ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h.  */
19177 $ac_includes_default
19178 #include <$ac_header>
19179 _ACEOF
19180 rm -f conftest.$ac_objext
19181 if { (ac_try="$ac_compile"
19182 case "(($ac_try" in
19183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184   *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187   (eval "$ac_compile") 2>conftest.er1
19188   ac_status=$?
19189   grep -v '^ *+' conftest.er1 >conftest.err
19190   rm -f conftest.er1
19191   cat conftest.err >&5
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); } && {
19194          test -z "$ac_c_werror_flag" ||
19195          test ! -s conftest.err
19196        } && test -s conftest.$ac_objext; then
19197   ac_header_compiler=yes
19198 else
19199   echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19201
19202         ac_header_compiler=no
19203 fi
19204
19205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19207 echo "${ECHO_T}$ac_header_compiler" >&6; }
19208
19209 # Is the header present?
19210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19212 cat >conftest.$ac_ext <<_ACEOF
19213 /* confdefs.h.  */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h.  */
19218 #include <$ac_header>
19219 _ACEOF
19220 if { (ac_try="$ac_cpp conftest.$ac_ext"
19221 case "(($ac_try" in
19222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223   *) ac_try_echo=$ac_try;;
19224 esac
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19227   ac_status=$?
19228   grep -v '^ *+' conftest.er1 >conftest.err
19229   rm -f conftest.er1
19230   cat conftest.err >&5
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); } >/dev/null && {
19233          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19234          test ! -s conftest.err
19235        }; then
19236   ac_header_preproc=yes
19237 else
19238   echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19240
19241   ac_header_preproc=no
19242 fi
19243
19244 rm -f conftest.err conftest.$ac_ext
19245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19246 echo "${ECHO_T}$ac_header_preproc" >&6; }
19247
19248 # So?  What about this header?
19249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19250   yes:no: )
19251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19255     ac_header_preproc=yes
19256     ;;
19257   no:yes:* )
19258     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19260     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19261 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19262     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19264     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19265 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19268     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19270     ( cat <<\_ASBOX
19271 ## --------------------------------------------- ##
19272 ## Report this to <http://www.openldap.org/its/> ##
19273 ## --------------------------------------------- ##
19274 _ASBOX
19275      ) | sed "s/^/$as_me: WARNING:     /" >&2
19276     ;;
19277 esac
19278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19281   echo $ECHO_N "(cached) $ECHO_C" >&6
19282 else
19283   eval "$as_ac_Header=\$ac_header_preproc"
19284 fi
19285 ac_res=`eval echo '${'$as_ac_Header'}'`
19286                { echo "$as_me:$LINENO: result: $ac_res" >&5
19287 echo "${ECHO_T}$ac_res" >&6; }
19288
19289 fi
19290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19291   cat >>confdefs.h <<_ACEOF
19292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19293 _ACEOF
19294
19295 fi
19296
19297 done
19298
19299                 if test $ac_cv_header_gssapi_h = yes ; then
19300                         ol_header_gssapi=yes
19301                 fi
19302
19303                                                                 saveLIBS="$LIBS"
19304                 LIBS="$LIBS $GSSAPI_LIBS"
19305
19306 for ac_func in gss_oid_to_str
19307 do
19308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19312   echo $ECHO_N "(cached) $ECHO_C" >&6
19313 else
19314   cat >conftest.$ac_ext <<_ACEOF
19315 /* confdefs.h.  */
19316 _ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h.  */
19320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19322 #define $ac_func innocuous_$ac_func
19323
19324 /* System header to define __stub macros and hopefully few prototypes,
19325     which can conflict with char $ac_func (); below.
19326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19327     <limits.h> exists even on freestanding compilers.  */
19328
19329 #ifdef __STDC__
19330 # include <limits.h>
19331 #else
19332 # include <assert.h>
19333 #endif
19334
19335 #undef $ac_func
19336
19337 /* Override any GCC internal prototype to avoid an error.
19338    Use char because int might match the return type of a GCC
19339    builtin and then its argument prototype would still apply.  */
19340 #ifdef __cplusplus
19341 extern "C"
19342 #endif
19343 char $ac_func ();
19344 /* The GNU C library defines this for functions which it implements
19345     to always fail with ENOSYS.  Some functions are actually named
19346     something starting with __ and the normal name is an alias.  */
19347 #if defined __stub_$ac_func || defined __stub___$ac_func
19348 choke me
19349 #endif
19350
19351 int
19352 main ()
19353 {
19354 return $ac_func ();
19355   ;
19356   return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (ac_try="$ac_link"
19361 case "(($ac_try" in
19362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363   *) ac_try_echo=$ac_try;;
19364 esac
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366   (eval "$ac_link") 2>conftest.er1
19367   ac_status=$?
19368   grep -v '^ *+' conftest.er1 >conftest.err
19369   rm -f conftest.er1
19370   cat conftest.err >&5
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } && {
19373          test -z "$ac_c_werror_flag" ||
19374          test ! -s conftest.err
19375        } && test -s conftest$ac_exeext &&
19376        $as_test_x conftest$ac_exeext; then
19377   eval "$as_ac_var=yes"
19378 else
19379   echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382         eval "$as_ac_var=no"
19383 fi
19384
19385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19386       conftest$ac_exeext conftest.$ac_ext
19387 fi
19388 ac_res=`eval echo '${'$as_ac_var'}'`
19389                { echo "$as_me:$LINENO: result: $ac_res" >&5
19390 echo "${ECHO_T}$ac_res" >&6; }
19391 if test `eval echo '${'$as_ac_var'}'` = yes; then
19392   cat >>confdefs.h <<_ACEOF
19393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19394 _ACEOF
19395
19396 fi
19397 done
19398
19399                 LIBS="$saveLIBS"
19400         fi
19401
19402         if test $ol_header_gssapi = yes ; then
19403                                                 { echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi" >&5
19404 echo $ECHO_N "checking for gss_wrap in -lgssapi... $ECHO_C" >&6; }
19405 if test "${ac_cv_lib_gssapi_gss_wrap+set}" = set; then
19406   echo $ECHO_N "(cached) $ECHO_C" >&6
19407 else
19408   ac_check_lib_save_LIBS=$LIBS
19409 LIBS="-lgssapi  $LIBS"
19410 cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h.  */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h.  */
19416
19417 /* Override any GCC internal prototype to avoid an error.
19418    Use char because int might match the return type of a GCC
19419    builtin and then its argument prototype would still apply.  */
19420 #ifdef __cplusplus
19421 extern "C"
19422 #endif
19423 char gss_wrap ();
19424 int
19425 main ()
19426 {
19427 return gss_wrap ();
19428   ;
19429   return 0;
19430 }
19431 _ACEOF
19432 rm -f conftest.$ac_objext conftest$ac_exeext
19433 if { (ac_try="$ac_link"
19434 case "(($ac_try" in
19435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436   *) ac_try_echo=$ac_try;;
19437 esac
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439   (eval "$ac_link") 2>conftest.er1
19440   ac_status=$?
19441   grep -v '^ *+' conftest.er1 >conftest.err
19442   rm -f conftest.er1
19443   cat conftest.err >&5
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); } && {
19446          test -z "$ac_c_werror_flag" ||
19447          test ! -s conftest.err
19448        } && test -s conftest$ac_exeext &&
19449        $as_test_x conftest$ac_exeext; then
19450   ac_cv_lib_gssapi_gss_wrap=yes
19451 else
19452   echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19454
19455         ac_cv_lib_gssapi_gss_wrap=no
19456 fi
19457
19458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19459       conftest$ac_exeext conftest.$ac_ext
19460 LIBS=$ac_check_lib_save_LIBS
19461 fi
19462 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_wrap" >&5
19463 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_wrap" >&6; }
19464 if test $ac_cv_lib_gssapi_gss_wrap = yes; then
19465   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi"
19466 else
19467   ol_link_gssapi=no
19468 fi
19469
19470                 if test $ol_link_gssapi != yes ; then
19471                         { echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi_krb5" >&5
19472 echo $ECHO_N "checking for gss_wrap in -lgssapi_krb5... $ECHO_C" >&6; }
19473 if test "${ac_cv_lib_gssapi_krb5_gss_wrap+set}" = set; then
19474   echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476   ac_check_lib_save_LIBS=$LIBS
19477 LIBS="-lgssapi_krb5  $LIBS"
19478 cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h.  */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h.  */
19484
19485 /* Override any GCC internal prototype to avoid an error.
19486    Use char because int might match the return type of a GCC
19487    builtin and then its argument prototype would still apply.  */
19488 #ifdef __cplusplus
19489 extern "C"
19490 #endif
19491 char gss_wrap ();
19492 int
19493 main ()
19494 {
19495 return gss_wrap ();
19496   ;
19497   return 0;
19498 }
19499 _ACEOF
19500 rm -f conftest.$ac_objext conftest$ac_exeext
19501 if { (ac_try="$ac_link"
19502 case "(($ac_try" in
19503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504   *) ac_try_echo=$ac_try;;
19505 esac
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507   (eval "$ac_link") 2>conftest.er1
19508   ac_status=$?
19509   grep -v '^ *+' conftest.er1 >conftest.err
19510   rm -f conftest.er1
19511   cat conftest.err >&5
19512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513   (exit $ac_status); } && {
19514          test -z "$ac_c_werror_flag" ||
19515          test ! -s conftest.err
19516        } && test -s conftest$ac_exeext &&
19517        $as_test_x conftest$ac_exeext; then
19518   ac_cv_lib_gssapi_krb5_gss_wrap=yes
19519 else
19520   echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19522
19523         ac_cv_lib_gssapi_krb5_gss_wrap=no
19524 fi
19525
19526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19527       conftest$ac_exeext conftest.$ac_ext
19528 LIBS=$ac_check_lib_save_LIBS
19529 fi
19530 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_wrap" >&5
19531 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_wrap" >&6; }
19532 if test $ac_cv_lib_gssapi_krb5_gss_wrap = yes; then
19533   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi_krb5"
19534 else
19535   ol_link_gssapi=no
19536 fi
19537
19538                 fi
19539         fi
19540
19541         ;;
19542 esac
19543
19544 WITH_GSSAPI=no
19545 if test $ol_link_gssapi = yes; then
19546
19547 cat >>confdefs.h <<\_ACEOF
19548 #define HAVE_GSSAPI 1
19549 _ACEOF
19550
19551         WITH_GSSAPI=yes
19552 elif test $ol_with_gssapi = auto ; then
19553         { echo "$as_me:$LINENO: WARNING: Could not locate GSSAPI package" >&5
19554 echo "$as_me: WARNING: Could not locate GSSAPI package" >&2;}
19555         { echo "$as_me:$LINENO: WARNING: GSSAPI authentication not supported!" >&5
19556 echo "$as_me: WARNING: GSSAPI authentication not supported!" >&2;}
19557 elif test $ol_with_gssapi = yes ; then
19558         { { echo "$as_me:$LINENO: error: GSSAPI detection failed" >&5
19559 echo "$as_me: error: GSSAPI detection failed" >&2;}
19560    { (exit 1); exit 1; }; }
19561 fi
19562
19563
19564 if test $ol_with_tls = yes ; then
19565         ol_with_tls=auto
19566 fi
19567
19568 ol_link_tls=no
19569 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19570
19571 for ac_header in openssl/ssl.h
19572 do
19573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19575   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19578   echo $ECHO_N "(cached) $ECHO_C" >&6
19579 fi
19580 ac_res=`eval echo '${'$as_ac_Header'}'`
19581                { echo "$as_me:$LINENO: result: $ac_res" >&5
19582 echo "${ECHO_T}$ac_res" >&6; }
19583 else
19584   # Is the header compilable?
19585 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19587 cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h.  */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h.  */
19593 $ac_includes_default
19594 #include <$ac_header>
19595 _ACEOF
19596 rm -f conftest.$ac_objext
19597 if { (ac_try="$ac_compile"
19598 case "(($ac_try" in
19599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600   *) ac_try_echo=$ac_try;;
19601 esac
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603   (eval "$ac_compile") 2>conftest.er1
19604   ac_status=$?
19605   grep -v '^ *+' conftest.er1 >conftest.err
19606   rm -f conftest.er1
19607   cat conftest.err >&5
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); } && {
19610          test -z "$ac_c_werror_flag" ||
19611          test ! -s conftest.err
19612        } && test -s conftest.$ac_objext; then
19613   ac_header_compiler=yes
19614 else
19615   echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19617
19618         ac_header_compiler=no
19619 fi
19620
19621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19623 echo "${ECHO_T}$ac_header_compiler" >&6; }
19624
19625 # Is the header present?
19626 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h.  */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h.  */
19634 #include <$ac_header>
19635 _ACEOF
19636 if { (ac_try="$ac_cpp conftest.$ac_ext"
19637 case "(($ac_try" in
19638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639   *) ac_try_echo=$ac_try;;
19640 esac
19641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19643   ac_status=$?
19644   grep -v '^ *+' conftest.er1 >conftest.err
19645   rm -f conftest.er1
19646   cat conftest.err >&5
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); } >/dev/null && {
19649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19650          test ! -s conftest.err
19651        }; then
19652   ac_header_preproc=yes
19653 else
19654   echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657   ac_header_preproc=no
19658 fi
19659
19660 rm -f conftest.err conftest.$ac_ext
19661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19662 echo "${ECHO_T}$ac_header_preproc" >&6; }
19663
19664 # So?  What about this header?
19665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19666   yes:no: )
19667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19671     ac_header_preproc=yes
19672     ;;
19673   no:yes:* )
19674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19686     ( cat <<\_ASBOX
19687 ## --------------------------------------------- ##
19688 ## Report this to <http://www.openldap.org/its/> ##
19689 ## --------------------------------------------- ##
19690 _ASBOX
19691      ) | sed "s/^/$as_me: WARNING:     /" >&2
19692     ;;
19693 esac
19694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19697   echo $ECHO_N "(cached) $ECHO_C" >&6
19698 else
19699   eval "$as_ac_Header=\$ac_header_preproc"
19700 fi
19701 ac_res=`eval echo '${'$as_ac_Header'}'`
19702                { echo "$as_me:$LINENO: result: $ac_res" >&5
19703 echo "${ECHO_T}$ac_res" >&6; }
19704
19705 fi
19706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19707   cat >>confdefs.h <<_ACEOF
19708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19709 _ACEOF
19710
19711 fi
19712
19713 done
19714
19715
19716         if test $ac_cv_header_openssl_ssl_h = yes ; then
19717                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19718 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19719 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19720   echo $ECHO_N "(cached) $ECHO_C" >&6
19721 else
19722   ac_check_lib_save_LIBS=$LIBS
19723 LIBS="-lssl -lcrypto $LIBS"
19724 cat >conftest.$ac_ext <<_ACEOF
19725 /* confdefs.h.  */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h.  */
19730
19731 /* Override any GCC internal prototype to avoid an error.
19732    Use char because int might match the return type of a GCC
19733    builtin and then its argument prototype would still apply.  */
19734 #ifdef __cplusplus
19735 extern "C"
19736 #endif
19737 char SSL_library_init ();
19738 int
19739 main ()
19740 {
19741 return SSL_library_init ();
19742   ;
19743   return 0;
19744 }
19745 _ACEOF
19746 rm -f conftest.$ac_objext conftest$ac_exeext
19747 if { (ac_try="$ac_link"
19748 case "(($ac_try" in
19749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750   *) ac_try_echo=$ac_try;;
19751 esac
19752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753   (eval "$ac_link") 2>conftest.er1
19754   ac_status=$?
19755   grep -v '^ *+' conftest.er1 >conftest.err
19756   rm -f conftest.er1
19757   cat conftest.err >&5
19758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759   (exit $ac_status); } && {
19760          test -z "$ac_c_werror_flag" ||
19761          test ! -s conftest.err
19762        } && test -s conftest$ac_exeext &&
19763        $as_test_x conftest$ac_exeext; then
19764   ac_cv_lib_ssl_SSL_library_init=yes
19765 else
19766   echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19768
19769         ac_cv_lib_ssl_SSL_library_init=no
19770 fi
19771
19772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19773       conftest$ac_exeext conftest.$ac_ext
19774 LIBS=$ac_check_lib_save_LIBS
19775 fi
19776 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19777 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19778 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19779   have_openssl=yes
19780                         need_rsaref=no
19781 else
19782   have_openssl=no
19783 fi
19784
19785
19786                 if test $have_openssl = no ; then
19787                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19788 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19789 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19790   echo $ECHO_N "(cached) $ECHO_C" >&6
19791 else
19792   ac_check_lib_save_LIBS=$LIBS
19793 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19794 cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h.  */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h.  */
19800
19801 /* Override any GCC internal prototype to avoid an error.
19802    Use char because int might match the return type of a GCC
19803    builtin and then its argument prototype would still apply.  */
19804 #ifdef __cplusplus
19805 extern "C"
19806 #endif
19807 char ssl3_accept ();
19808 int
19809 main ()
19810 {
19811 return ssl3_accept ();
19812   ;
19813   return 0;
19814 }
19815 _ACEOF
19816 rm -f conftest.$ac_objext conftest$ac_exeext
19817 if { (ac_try="$ac_link"
19818 case "(($ac_try" in
19819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820   *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823   (eval "$ac_link") 2>conftest.er1
19824   ac_status=$?
19825   grep -v '^ *+' conftest.er1 >conftest.err
19826   rm -f conftest.er1
19827   cat conftest.err >&5
19828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); } && {
19830          test -z "$ac_c_werror_flag" ||
19831          test ! -s conftest.err
19832        } && test -s conftest$ac_exeext &&
19833        $as_test_x conftest$ac_exeext; then
19834   ac_cv_lib_ssl_ssl3_accept=yes
19835 else
19836   echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19838
19839         ac_cv_lib_ssl_ssl3_accept=no
19840 fi
19841
19842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19843       conftest$ac_exeext conftest.$ac_ext
19844 LIBS=$ac_check_lib_save_LIBS
19845 fi
19846 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19847 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19848 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19849   have_openssl=yes
19850                                 need_rsaref=yes
19851 else
19852   have_openssl=no
19853 fi
19854
19855                 fi
19856
19857                 if test $have_openssl = yes ; then
19858                         ol_with_tls=openssl
19859                         ol_link_tls=yes
19860
19861
19862 cat >>confdefs.h <<\_ACEOF
19863 #define HAVE_OPENSSL 1
19864 _ACEOF
19865
19866
19867                         if test $need_rsaref = yes; then
19868
19869 cat >>confdefs.h <<\_ACEOF
19870 #define HAVE_RSAREF 1
19871 _ACEOF
19872
19873
19874                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19875                         else
19876                                 TLS_LIBS="-lssl -lcrypto"
19877                         fi
19878
19879                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19880 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19881 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19882   echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884
19885                 cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h.  */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h.  */
19891
19892 #ifdef HAVE_OPENSSL_SSL_H
19893 #include <openssl/ssl.h>
19894 #endif
19895
19896 /* Require 0.9.7d+ */
19897 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19898         char *__ssl_compat = "0.9.7d";
19899 #endif
19900
19901 _ACEOF
19902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19903   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19904   ol_cv_ssl_crl_compat=yes
19905 else
19906   ol_cv_ssl_crl_compat=no
19907 fi
19908 rm -f conftest*
19909
19910 fi
19911 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19912 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19913
19914                         if test $ol_cv_ssl_crl_compat = yes ; then
19915
19916 cat >>confdefs.h <<\_ACEOF
19917 #define HAVE_OPENSSL_CRL 1
19918 _ACEOF
19919
19920                         fi
19921                 fi
19922         fi
19923 fi
19924
19925 if test $ol_link_tls = no ; then
19926         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19927
19928 for ac_header in gnutls/gnutls.h
19929 do
19930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19932   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19935   echo $ECHO_N "(cached) $ECHO_C" >&6
19936 fi
19937 ac_res=`eval echo '${'$as_ac_Header'}'`
19938                { echo "$as_me:$LINENO: result: $ac_res" >&5
19939 echo "${ECHO_T}$ac_res" >&6; }
19940 else
19941   # Is the header compilable?
19942 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19944 cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950 $ac_includes_default
19951 #include <$ac_header>
19952 _ACEOF
19953 rm -f conftest.$ac_objext
19954 if { (ac_try="$ac_compile"
19955 case "(($ac_try" in
19956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957   *) ac_try_echo=$ac_try;;
19958 esac
19959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960   (eval "$ac_compile") 2>conftest.er1
19961   ac_status=$?
19962   grep -v '^ *+' conftest.er1 >conftest.err
19963   rm -f conftest.er1
19964   cat conftest.err >&5
19965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966   (exit $ac_status); } && {
19967          test -z "$ac_c_werror_flag" ||
19968          test ! -s conftest.err
19969        } && test -s conftest.$ac_objext; then
19970   ac_header_compiler=yes
19971 else
19972   echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19974
19975         ac_header_compiler=no
19976 fi
19977
19978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19980 echo "${ECHO_T}$ac_header_compiler" >&6; }
19981
19982 # Is the header present?
19983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19985 cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h.  */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h.  */
19991 #include <$ac_header>
19992 _ACEOF
19993 if { (ac_try="$ac_cpp conftest.$ac_ext"
19994 case "(($ac_try" in
19995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996   *) ac_try_echo=$ac_try;;
19997 esac
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20000   ac_status=$?
20001   grep -v '^ *+' conftest.er1 >conftest.err
20002   rm -f conftest.er1
20003   cat conftest.err >&5
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); } >/dev/null && {
20006          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20007          test ! -s conftest.err
20008        }; then
20009   ac_header_preproc=yes
20010 else
20011   echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013
20014   ac_header_preproc=no
20015 fi
20016
20017 rm -f conftest.err conftest.$ac_ext
20018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20019 echo "${ECHO_T}$ac_header_preproc" >&6; }
20020
20021 # So?  What about this header?
20022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20023   yes:no: )
20024     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20028     ac_header_preproc=yes
20029     ;;
20030   no:yes:* )
20031     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20033     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20034 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20035     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20037     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20038 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20041     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20043     ( cat <<\_ASBOX
20044 ## --------------------------------------------- ##
20045 ## Report this to <http://www.openldap.org/its/> ##
20046 ## --------------------------------------------- ##
20047 _ASBOX
20048      ) | sed "s/^/$as_me: WARNING:     /" >&2
20049     ;;
20050 esac
20051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20054   echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056   eval "$as_ac_Header=\$ac_header_preproc"
20057 fi
20058 ac_res=`eval echo '${'$as_ac_Header'}'`
20059                { echo "$as_me:$LINENO: result: $ac_res" >&5
20060 echo "${ECHO_T}$ac_res" >&6; }
20061
20062 fi
20063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20064   cat >>confdefs.h <<_ACEOF
20065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20066 _ACEOF
20067
20068 fi
20069
20070 done
20071
20072
20073                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
20074                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
20075 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
20076 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
20077   echo $ECHO_N "(cached) $ECHO_C" >&6
20078 else
20079   ac_check_lib_save_LIBS=$LIBS
20080 LIBS="-lgnutls  $LIBS"
20081 cat >conftest.$ac_ext <<_ACEOF
20082 /* confdefs.h.  */
20083 _ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h.  */
20087
20088 /* Override any GCC internal prototype to avoid an error.
20089    Use char because int might match the return type of a GCC
20090    builtin and then its argument prototype would still apply.  */
20091 #ifdef __cplusplus
20092 extern "C"
20093 #endif
20094 char gnutls_init ();
20095 int
20096 main ()
20097 {
20098 return gnutls_init ();
20099   ;
20100   return 0;
20101 }
20102 _ACEOF
20103 rm -f conftest.$ac_objext conftest$ac_exeext
20104 if { (ac_try="$ac_link"
20105 case "(($ac_try" in
20106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107   *) ac_try_echo=$ac_try;;
20108 esac
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110   (eval "$ac_link") 2>conftest.er1
20111   ac_status=$?
20112   grep -v '^ *+' conftest.er1 >conftest.err
20113   rm -f conftest.er1
20114   cat conftest.err >&5
20115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116   (exit $ac_status); } && {
20117          test -z "$ac_c_werror_flag" ||
20118          test ! -s conftest.err
20119        } && test -s conftest$ac_exeext &&
20120        $as_test_x conftest$ac_exeext; then
20121   ac_cv_lib_gnutls_gnutls_init=yes
20122 else
20123   echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20125
20126         ac_cv_lib_gnutls_gnutls_init=no
20127 fi
20128
20129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20130       conftest$ac_exeext conftest.$ac_ext
20131 LIBS=$ac_check_lib_save_LIBS
20132 fi
20133 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
20134 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
20135 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
20136   have_gnutls=yes
20137 else
20138   have_gnutls=no
20139 fi
20140
20141
20142                         if test $have_gnutls = yes ; then
20143                                 ol_with_tls=gnutls
20144                                 ol_link_tls=yes
20145
20146                                 TLS_LIBS="-lgnutls"
20147
20148
20149 cat >>confdefs.h <<\_ACEOF
20150 #define HAVE_GNUTLS 1
20151 _ACEOF
20152
20153                         fi
20154                 fi
20155         fi
20156 fi
20157
20158 WITH_TLS=no
20159 if test $ol_link_tls = yes ; then
20160
20161 cat >>confdefs.h <<\_ACEOF
20162 #define HAVE_TLS 1
20163 _ACEOF
20164
20165         WITH_TLS=yes
20166 elif test $ol_with_tls = auto ; then
20167         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20168 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20169         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20170 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20171 elif test $ol_with_tls != no ; then
20172         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20173 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20174    { (exit 1); exit 1; }; }
20175 else
20176         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20177 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20178 fi
20179
20180 if test $ol_enable_lmpasswd != no; then
20181         if test $ol_link_tls != yes ; then
20182                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20183 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20184    { (exit 1); exit 1; }; }
20185         fi
20186
20187
20188 cat >>confdefs.h <<\_ACEOF
20189 #define SLAPD_LMHASH 1
20190 _ACEOF
20191
20192 fi
20193
20194 ol_link_threads=no
20195
20196 case $ol_with_threads in auto | yes | nt)
20197
20198
20199         { echo "$as_me:$LINENO: checking for _beginthread" >&5
20200 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20201 if test "${ac_cv_func__beginthread+set}" = set; then
20202   echo $ECHO_N "(cached) $ECHO_C" >&6
20203 else
20204   cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h.  */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h.  */
20210 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20212 #define _beginthread innocuous__beginthread
20213
20214 /* System header to define __stub macros and hopefully few prototypes,
20215     which can conflict with char _beginthread (); below.
20216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20217     <limits.h> exists even on freestanding compilers.  */
20218
20219 #ifdef __STDC__
20220 # include <limits.h>
20221 #else
20222 # include <assert.h>
20223 #endif
20224
20225 #undef _beginthread
20226
20227 /* Override any GCC internal prototype to avoid an error.
20228    Use char because int might match the return type of a GCC
20229    builtin and then its argument prototype would still apply.  */
20230 #ifdef __cplusplus
20231 extern "C"
20232 #endif
20233 char _beginthread ();
20234 /* The GNU C library defines this for functions which it implements
20235     to always fail with ENOSYS.  Some functions are actually named
20236     something starting with __ and the normal name is an alias.  */
20237 #if defined __stub__beginthread || defined __stub____beginthread
20238 choke me
20239 #endif
20240
20241 int
20242 main ()
20243 {
20244 return _beginthread ();
20245   ;
20246   return 0;
20247 }
20248 _ACEOF
20249 rm -f conftest.$ac_objext conftest$ac_exeext
20250 if { (ac_try="$ac_link"
20251 case "(($ac_try" in
20252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253   *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256   (eval "$ac_link") 2>conftest.er1
20257   ac_status=$?
20258   grep -v '^ *+' conftest.er1 >conftest.err
20259   rm -f conftest.er1
20260   cat conftest.err >&5
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); } && {
20263          test -z "$ac_c_werror_flag" ||
20264          test ! -s conftest.err
20265        } && test -s conftest$ac_exeext &&
20266        $as_test_x conftest$ac_exeext; then
20267   ac_cv_func__beginthread=yes
20268 else
20269   echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272         ac_cv_func__beginthread=no
20273 fi
20274
20275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20276       conftest$ac_exeext conftest.$ac_ext
20277 fi
20278 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20279 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20280
20281
20282         if test $ac_cv_func__beginthread = yes ; then
20283
20284 cat >>confdefs.h <<\_ACEOF
20285 #define HAVE_NT_THREADS 1
20286 _ACEOF
20287
20288                 ol_cv_nt_threads=yes
20289         fi
20290
20291
20292         if test "$ol_cv_nt_threads" = yes ; then
20293                 ol_link_threads=nt
20294                 ol_with_threads=found
20295                 ol_with_yielding_select=yes
20296
20297
20298 cat >>confdefs.h <<\_ACEOF
20299 #define HAVE_NT_SERVICE_MANAGER 1
20300 _ACEOF
20301
20302
20303 cat >>confdefs.h <<\_ACEOF
20304 #define HAVE_NT_EVENT_LOG 1
20305 _ACEOF
20306
20307         fi
20308
20309         if test $ol_with_threads = nt ; then
20310                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20311 echo "$as_me: error: could not locate NT Threads" >&2;}
20312    { (exit 1); exit 1; }; }
20313         fi
20314         ;;
20315 esac
20316
20317 case $ol_with_threads in auto | yes | posix)
20318
20319
20320 for ac_header in pthread.h
20321 do
20322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20324   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20327   echo $ECHO_N "(cached) $ECHO_C" >&6
20328 fi
20329 ac_res=`eval echo '${'$as_ac_Header'}'`
20330                { echo "$as_me:$LINENO: result: $ac_res" >&5
20331 echo "${ECHO_T}$ac_res" >&6; }
20332 else
20333   # Is the header compilable?
20334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20336 cat >conftest.$ac_ext <<_ACEOF
20337 /* confdefs.h.  */
20338 _ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h.  */
20342 $ac_includes_default
20343 #include <$ac_header>
20344 _ACEOF
20345 rm -f conftest.$ac_objext
20346 if { (ac_try="$ac_compile"
20347 case "(($ac_try" in
20348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349   *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352   (eval "$ac_compile") 2>conftest.er1
20353   ac_status=$?
20354   grep -v '^ *+' conftest.er1 >conftest.err
20355   rm -f conftest.er1
20356   cat conftest.err >&5
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); } && {
20359          test -z "$ac_c_werror_flag" ||
20360          test ! -s conftest.err
20361        } && test -s conftest.$ac_objext; then
20362   ac_header_compiler=yes
20363 else
20364   echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20366
20367         ac_header_compiler=no
20368 fi
20369
20370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20372 echo "${ECHO_T}$ac_header_compiler" >&6; }
20373
20374 # Is the header present?
20375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20377 cat >conftest.$ac_ext <<_ACEOF
20378 /* confdefs.h.  */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h.  */
20383 #include <$ac_header>
20384 _ACEOF
20385 if { (ac_try="$ac_cpp conftest.$ac_ext"
20386 case "(($ac_try" in
20387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388   *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20392   ac_status=$?
20393   grep -v '^ *+' conftest.er1 >conftest.err
20394   rm -f conftest.er1
20395   cat conftest.err >&5
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); } >/dev/null && {
20398          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20399          test ! -s conftest.err
20400        }; then
20401   ac_header_preproc=yes
20402 else
20403   echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20405
20406   ac_header_preproc=no
20407 fi
20408
20409 rm -f conftest.err conftest.$ac_ext
20410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20411 echo "${ECHO_T}$ac_header_preproc" >&6; }
20412
20413 # So?  What about this header?
20414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20415   yes:no: )
20416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20420     ac_header_preproc=yes
20421     ;;
20422   no:yes:* )
20423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20425     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20426 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20427     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20429     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20430 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20433     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20435     ( cat <<\_ASBOX
20436 ## --------------------------------------------- ##
20437 ## Report this to <http://www.openldap.org/its/> ##
20438 ## --------------------------------------------- ##
20439 _ASBOX
20440      ) | sed "s/^/$as_me: WARNING:     /" >&2
20441     ;;
20442 esac
20443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20446   echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448   eval "$as_ac_Header=\$ac_header_preproc"
20449 fi
20450 ac_res=`eval echo '${'$as_ac_Header'}'`
20451                { echo "$as_me:$LINENO: result: $ac_res" >&5
20452 echo "${ECHO_T}$ac_res" >&6; }
20453
20454 fi
20455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20456   cat >>confdefs.h <<_ACEOF
20457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20458 _ACEOF
20459
20460 fi
20461
20462 done
20463
20464
20465         if test $ac_cv_header_pthread_h = yes ; then
20466                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20467 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20468 if test "${ol_cv_pthread_version+set}" = set; then
20469   echo $ECHO_N "(cached) $ECHO_C" >&6
20470 else
20471
20472         cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h.  */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h.  */
20478
20479 #               include <pthread.h>
20480
20481 int
20482 main ()
20483 {
20484
20485                 int i = PTHREAD_CREATE_JOINABLE;
20486
20487   ;
20488   return 0;
20489 }
20490 _ACEOF
20491 rm -f conftest.$ac_objext
20492 if { (ac_try="$ac_compile"
20493 case "(($ac_try" in
20494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495   *) ac_try_echo=$ac_try;;
20496 esac
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498   (eval "$ac_compile") 2>conftest.er1
20499   ac_status=$?
20500   grep -v '^ *+' conftest.er1 >conftest.err
20501   rm -f conftest.er1
20502   cat conftest.err >&5
20503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504   (exit $ac_status); } && {
20505          test -z "$ac_c_werror_flag" ||
20506          test ! -s conftest.err
20507        } && test -s conftest.$ac_objext; then
20508
20509         cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h.  */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h.  */
20515 #include <pthread.h>
20516
20517 _ACEOF
20518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20519   $EGREP "pthread_detach" >/dev/null 2>&1; then
20520   ol_cv_pthread_version=10
20521 else
20522   ol_cv_pthread_version=8
20523 fi
20524 rm -f conftest*
20525
20526 else
20527   echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530
20531         cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537
20538 #               include <pthread.h>
20539 #               ifdef PTHREAD_CREATE_UNDETACHED
20540                 draft7
20541 #               endif
20542
20543 _ACEOF
20544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20545   $EGREP "draft7" >/dev/null 2>&1; then
20546   ol_cv_pthread_version=7
20547 else
20548
20549         cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h.  */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h.  */
20555 #include <pthread.h>
20556
20557 _ACEOF
20558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20559   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20560   ol_cv_pthread_version=6
20561 else
20562
20563         cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h.  */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h.  */
20569
20570 #               include <pthread.h>
20571 #ifdef          PTHREAD_MUTEX_INITIALIZER
20572                 draft5
20573 #endif
20574
20575 _ACEOF
20576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20577   $EGREP "draft5" >/dev/null 2>&1; then
20578   ol_cv_pthread_version=5
20579 else
20580   ol_cv_pthread_version=4
20581 fi
20582 rm -f conftest*
20583
20584 fi
20585 rm -f conftest*
20586
20587 fi
20588 rm -f conftest*
20589
20590 fi
20591
20592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593
20594 fi
20595 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20596 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20597
20598
20599                 if test $ol_cv_pthread_version != 0 ; then
20600
20601 cat >>confdefs.h <<_ACEOF
20602 #define HAVE_PTHREADS $ol_cv_pthread_version
20603 _ACEOF
20604
20605                 else
20606                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20607 echo "$as_me: error: unknown pthread version" >&2;}
20608    { (exit 1); exit 1; }; }
20609                 fi
20610
20611                 # consider threads found
20612                 ol_with_threads=found
20613
20614
20615         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20616 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20617 if test "${ol_cv_header_linux_threads+set}" = set; then
20618   echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620   cat >conftest.$ac_ext <<_ACEOF
20621 /* confdefs.h.  */
20622 _ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h.  */
20626 #include <pthread.h>
20627 _ACEOF
20628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20629   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20630   ol_cv_header_linux_threads=yes
20631 else
20632   ol_cv_header_linux_threads=no
20633 fi
20634 rm -f conftest*
20635
20636
20637 fi
20638 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20639 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20640         if test $ol_cv_header_linux_threads = yes; then
20641
20642 cat >>confdefs.h <<\_ACEOF
20643 #define HAVE_LINUX_THREADS 1
20644 _ACEOF
20645
20646         fi
20647
20648
20649         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20650 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20651 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20652   echo $ECHO_N "(cached) $ECHO_C" >&6
20653 else
20654   cat >conftest.$ac_ext <<_ACEOF
20655 /* confdefs.h.  */
20656 _ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h.  */
20660 #include <pthread.h>
20661 #ifdef _POSIX_THREAD_IS_GNU_PTH
20662         __gnu_pth__;
20663 #endif
20664
20665 _ACEOF
20666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20667   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20668   ol_cv_header_gnu_pth_pthread_h=yes
20669 else
20670   ol_cv_header_gnu_pth_pthread_h=no
20671 fi
20672 rm -f conftest*
20673
20674
20675 fi
20676 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20677 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20678
20679
20680                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20681
20682 for ac_header in sched.h
20683 do
20684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20686   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20689   echo $ECHO_N "(cached) $ECHO_C" >&6
20690 fi
20691 ac_res=`eval echo '${'$as_ac_Header'}'`
20692                { echo "$as_me:$LINENO: result: $ac_res" >&5
20693 echo "${ECHO_T}$ac_res" >&6; }
20694 else
20695   # Is the header compilable?
20696 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h.  */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h.  */
20704 $ac_includes_default
20705 #include <$ac_header>
20706 _ACEOF
20707 rm -f conftest.$ac_objext
20708 if { (ac_try="$ac_compile"
20709 case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_compile") 2>conftest.er1
20715   ac_status=$?
20716   grep -v '^ *+' conftest.er1 >conftest.err
20717   rm -f conftest.er1
20718   cat conftest.err >&5
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); } && {
20721          test -z "$ac_c_werror_flag" ||
20722          test ! -s conftest.err
20723        } && test -s conftest.$ac_objext; then
20724   ac_header_compiler=yes
20725 else
20726   echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20728
20729         ac_header_compiler=no
20730 fi
20731
20732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20734 echo "${ECHO_T}$ac_header_compiler" >&6; }
20735
20736 # Is the header present?
20737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20739 cat >conftest.$ac_ext <<_ACEOF
20740 /* confdefs.h.  */
20741 _ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h.  */
20745 #include <$ac_header>
20746 _ACEOF
20747 if { (ac_try="$ac_cpp conftest.$ac_ext"
20748 case "(($ac_try" in
20749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750   *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20754   ac_status=$?
20755   grep -v '^ *+' conftest.er1 >conftest.err
20756   rm -f conftest.er1
20757   cat conftest.err >&5
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); } >/dev/null && {
20760          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20761          test ! -s conftest.err
20762        }; then
20763   ac_header_preproc=yes
20764 else
20765   echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20767
20768   ac_header_preproc=no
20769 fi
20770
20771 rm -f conftest.err conftest.$ac_ext
20772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20773 echo "${ECHO_T}$ac_header_preproc" >&6; }
20774
20775 # So?  What about this header?
20776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20777   yes:no: )
20778     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20782     ac_header_preproc=yes
20783     ;;
20784   no:yes:* )
20785     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20787     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20788 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20789     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20791     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20792 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20795     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20797     ( cat <<\_ASBOX
20798 ## --------------------------------------------- ##
20799 ## Report this to <http://www.openldap.org/its/> ##
20800 ## --------------------------------------------- ##
20801 _ASBOX
20802      ) | sed "s/^/$as_me: WARNING:     /" >&2
20803     ;;
20804 esac
20805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20808   echo $ECHO_N "(cached) $ECHO_C" >&6
20809 else
20810   eval "$as_ac_Header=\$ac_header_preproc"
20811 fi
20812 ac_res=`eval echo '${'$as_ac_Header'}'`
20813                { echo "$as_me:$LINENO: result: $ac_res" >&5
20814 echo "${ECHO_T}$ac_res" >&6; }
20815
20816 fi
20817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20818   cat >>confdefs.h <<_ACEOF
20819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20820 _ACEOF
20821
20822 fi
20823
20824 done
20825
20826                 fi
20827
20828
20829                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20830 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20831 if test "${ol_cv_pthread_create+set}" = set; then
20832   echo $ECHO_N "(cached) $ECHO_C" >&6
20833 else
20834
20835                         if test "$cross_compiling" = yes; then
20836   cat >conftest.$ac_ext <<_ACEOF
20837 /* confdefs.h.  */
20838 _ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h.  */
20842
20843 /* pthread test headers */
20844 #include <pthread.h>
20845 #if HAVE_PTHREADS < 7
20846 #include <errno.h>
20847 #endif
20848 #ifndef NULL
20849 #define NULL (void*)0
20850 #endif
20851
20852 static void *task(p)
20853         void *p;
20854 {
20855         return (void *) (p == NULL);
20856 }
20857
20858 int
20859 main ()
20860 {
20861
20862         /* pthread test function */
20863 #ifndef PTHREAD_CREATE_DETACHED
20864 #define PTHREAD_CREATE_DETACHED 1
20865 #endif
20866         pthread_t t;
20867         int status;
20868         int detach = PTHREAD_CREATE_DETACHED;
20869
20870 #if HAVE_PTHREADS > 4
20871         /* Final pthreads */
20872         pthread_attr_t attr;
20873
20874         status = pthread_attr_init(&attr);
20875         if( status ) return status;
20876
20877 #if HAVE_PTHREADS < 7
20878         status = pthread_attr_setdetachstate(&attr, &detach);
20879         if( status < 0 ) status = errno;
20880 #else
20881         status = pthread_attr_setdetachstate(&attr, detach);
20882 #endif
20883         if( status ) return status;
20884         status = pthread_create( &t, &attr, task, NULL );
20885 #if HAVE_PTHREADS < 7
20886         if( status < 0 ) status = errno;
20887 #endif
20888         if( status ) return status;
20889 #else
20890         /* Draft 4 pthreads */
20891         status = pthread_create( &t, pthread_attr_default, task, NULL );
20892         if( status ) return errno;
20893
20894         /* give thread a chance to complete */
20895         /* it should remain joinable and hence detachable */
20896         sleep( 1 );
20897
20898         status = pthread_detach( &t );
20899         if( status ) return errno;
20900 #endif
20901
20902 #ifdef HAVE_LINUX_THREADS
20903         pthread_kill_other_threads_np();
20904 #endif
20905
20906         return 0;
20907
20908   ;
20909   return 0;
20910 }
20911 _ACEOF
20912 rm -f conftest.$ac_objext conftest$ac_exeext
20913 if { (ac_try="$ac_link"
20914 case "(($ac_try" in
20915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916   *) ac_try_echo=$ac_try;;
20917 esac
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919   (eval "$ac_link") 2>conftest.er1
20920   ac_status=$?
20921   grep -v '^ *+' conftest.er1 >conftest.err
20922   rm -f conftest.er1
20923   cat conftest.err >&5
20924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925   (exit $ac_status); } && {
20926          test -z "$ac_c_werror_flag" ||
20927          test ! -s conftest.err
20928        } && test -s conftest$ac_exeext &&
20929        $as_test_x conftest$ac_exeext; then
20930   ol_cv_pthread_create=yes
20931 else
20932   echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20934
20935         ol_cv_pthread_create=no
20936 fi
20937
20938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20939       conftest$ac_exeext conftest.$ac_ext
20940 else
20941   cat >conftest.$ac_ext <<_ACEOF
20942 /* confdefs.h.  */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h.  */
20947
20948 /* pthread test headers */
20949 #include <pthread.h>
20950 #if HAVE_PTHREADS < 7
20951 #include <errno.h>
20952 #endif
20953 #ifndef NULL
20954 #define NULL (void*)0
20955 #endif
20956
20957 static void *task(p)
20958         void *p;
20959 {
20960         return (void *) (p == NULL);
20961 }
20962
20963
20964 int main(argc, argv)
20965         int argc;
20966         char **argv;
20967 {
20968
20969         /* pthread test function */
20970 #ifndef PTHREAD_CREATE_DETACHED
20971 #define PTHREAD_CREATE_DETACHED 1
20972 #endif
20973         pthread_t t;
20974         int status;
20975         int detach = PTHREAD_CREATE_DETACHED;
20976
20977 #if HAVE_PTHREADS > 4
20978         /* Final pthreads */
20979         pthread_attr_t attr;
20980
20981         status = pthread_attr_init(&attr);
20982         if( status ) return status;
20983
20984 #if HAVE_PTHREADS < 7
20985         status = pthread_attr_setdetachstate(&attr, &detach);
20986         if( status < 0 ) status = errno;
20987 #else
20988         status = pthread_attr_setdetachstate(&attr, detach);
20989 #endif
20990         if( status ) return status;
20991         status = pthread_create( &t, &attr, task, NULL );
20992 #if HAVE_PTHREADS < 7
20993         if( status < 0 ) status = errno;
20994 #endif
20995         if( status ) return status;
20996 #else
20997         /* Draft 4 pthreads */
20998         status = pthread_create( &t, pthread_attr_default, task, NULL );
20999         if( status ) return errno;
21000
21001         /* give thread a chance to complete */
21002         /* it should remain joinable and hence detachable */
21003         sleep( 1 );
21004
21005         status = pthread_detach( &t );
21006         if( status ) return errno;
21007 #endif
21008
21009 #ifdef HAVE_LINUX_THREADS
21010         pthread_kill_other_threads_np();
21011 #endif
21012
21013         return 0;
21014
21015 }
21016
21017 _ACEOF
21018 rm -f conftest$ac_exeext
21019 if { (ac_try="$ac_link"
21020 case "(($ac_try" in
21021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022   *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025   (eval "$ac_link") 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21029   { (case "(($ac_try" in
21030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031   *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034   (eval "$ac_try") 2>&5
21035   ac_status=$?
21036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037   (exit $ac_status); }; }; then
21038   ol_cv_pthread_create=yes
21039 else
21040   echo "$as_me: program exited with status $ac_status" >&5
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044 ( exit $ac_status )
21045 ol_cv_pthread_create=no
21046 fi
21047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21048 fi
21049
21050
21051 fi
21052 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
21053 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
21054
21055                 if test $ol_cv_pthread_create != no ; then
21056                         ol_link_threads=posix
21057                         ol_link_pthreads=""
21058                 fi
21059
21060                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
21061 if test "$ol_link_threads" = no ; then
21062         # try -kthread
21063         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21064 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
21065 if test "${ol_cv_pthread_kthread+set}" = set; then
21066   echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068
21069                 # save the flags
21070                 ol_LIBS="$LIBS"
21071                 LIBS="-kthread $LIBS"
21072
21073                 if test "$cross_compiling" = yes; then
21074   cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h.  */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h.  */
21080
21081 /* pthread test headers */
21082 #include <pthread.h>
21083 #if HAVE_PTHREADS < 7
21084 #include <errno.h>
21085 #endif
21086 #ifndef NULL
21087 #define NULL (void*)0
21088 #endif
21089
21090 static void *task(p)
21091         void *p;
21092 {
21093         return (void *) (p == NULL);
21094 }
21095
21096 int
21097 main ()
21098 {
21099
21100         /* pthread test function */
21101 #ifndef PTHREAD_CREATE_DETACHED
21102 #define PTHREAD_CREATE_DETACHED 1
21103 #endif
21104         pthread_t t;
21105         int status;
21106         int detach = PTHREAD_CREATE_DETACHED;
21107
21108 #if HAVE_PTHREADS > 4
21109         /* Final pthreads */
21110         pthread_attr_t attr;
21111
21112         status = pthread_attr_init(&attr);
21113         if( status ) return status;
21114
21115 #if HAVE_PTHREADS < 7
21116         status = pthread_attr_setdetachstate(&attr, &detach);
21117         if( status < 0 ) status = errno;
21118 #else
21119         status = pthread_attr_setdetachstate(&attr, detach);
21120 #endif
21121         if( status ) return status;
21122         status = pthread_create( &t, &attr, task, NULL );
21123 #if HAVE_PTHREADS < 7
21124         if( status < 0 ) status = errno;
21125 #endif
21126         if( status ) return status;
21127 #else
21128         /* Draft 4 pthreads */
21129         status = pthread_create( &t, pthread_attr_default, task, NULL );
21130         if( status ) return errno;
21131
21132         /* give thread a chance to complete */
21133         /* it should remain joinable and hence detachable */
21134         sleep( 1 );
21135
21136         status = pthread_detach( &t );
21137         if( status ) return errno;
21138 #endif
21139
21140 #ifdef HAVE_LINUX_THREADS
21141         pthread_kill_other_threads_np();
21142 #endif
21143
21144         return 0;
21145
21146   ;
21147   return 0;
21148 }
21149 _ACEOF
21150 rm -f conftest.$ac_objext conftest$ac_exeext
21151 if { (ac_try="$ac_link"
21152 case "(($ac_try" in
21153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154   *) ac_try_echo=$ac_try;;
21155 esac
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157   (eval "$ac_link") 2>conftest.er1
21158   ac_status=$?
21159   grep -v '^ *+' conftest.er1 >conftest.err
21160   rm -f conftest.er1
21161   cat conftest.err >&5
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); } && {
21164          test -z "$ac_c_werror_flag" ||
21165          test ! -s conftest.err
21166        } && test -s conftest$ac_exeext &&
21167        $as_test_x conftest$ac_exeext; then
21168   ol_cv_pthread_kthread=yes
21169 else
21170   echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21172
21173         ol_cv_pthread_kthread=no
21174 fi
21175
21176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21177       conftest$ac_exeext conftest.$ac_ext
21178 else
21179   cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h.  */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h.  */
21185
21186 /* pthread test headers */
21187 #include <pthread.h>
21188 #if HAVE_PTHREADS < 7
21189 #include <errno.h>
21190 #endif
21191 #ifndef NULL
21192 #define NULL (void*)0
21193 #endif
21194
21195 static void *task(p)
21196         void *p;
21197 {
21198         return (void *) (p == NULL);
21199 }
21200
21201
21202 int main(argc, argv)
21203         int argc;
21204         char **argv;
21205 {
21206
21207         /* pthread test function */
21208 #ifndef PTHREAD_CREATE_DETACHED
21209 #define PTHREAD_CREATE_DETACHED 1
21210 #endif
21211         pthread_t t;
21212         int status;
21213         int detach = PTHREAD_CREATE_DETACHED;
21214
21215 #if HAVE_PTHREADS > 4
21216         /* Final pthreads */
21217         pthread_attr_t attr;
21218
21219         status = pthread_attr_init(&attr);
21220         if( status ) return status;
21221
21222 #if HAVE_PTHREADS < 7
21223         status = pthread_attr_setdetachstate(&attr, &detach);
21224         if( status < 0 ) status = errno;
21225 #else
21226         status = pthread_attr_setdetachstate(&attr, detach);
21227 #endif
21228         if( status ) return status;
21229         status = pthread_create( &t, &attr, task, NULL );
21230 #if HAVE_PTHREADS < 7
21231         if( status < 0 ) status = errno;
21232 #endif
21233         if( status ) return status;
21234 #else
21235         /* Draft 4 pthreads */
21236         status = pthread_create( &t, pthread_attr_default, task, NULL );
21237         if( status ) return errno;
21238
21239         /* give thread a chance to complete */
21240         /* it should remain joinable and hence detachable */
21241         sleep( 1 );
21242
21243         status = pthread_detach( &t );
21244         if( status ) return errno;
21245 #endif
21246
21247 #ifdef HAVE_LINUX_THREADS
21248         pthread_kill_other_threads_np();
21249 #endif
21250
21251         return 0;
21252
21253 }
21254
21255 _ACEOF
21256 rm -f conftest$ac_exeext
21257 if { (ac_try="$ac_link"
21258 case "(($ac_try" in
21259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260   *) ac_try_echo=$ac_try;;
21261 esac
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263   (eval "$ac_link") 2>&5
21264   ac_status=$?
21265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21267   { (case "(($ac_try" in
21268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269   *) ac_try_echo=$ac_try;;
21270 esac
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272   (eval "$ac_try") 2>&5
21273   ac_status=$?
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); }; }; then
21276   ol_cv_pthread_kthread=yes
21277 else
21278   echo "$as_me: program exited with status $ac_status" >&5
21279 echo "$as_me: failed program was:" >&5
21280 sed 's/^/| /' conftest.$ac_ext >&5
21281
21282 ( exit $ac_status )
21283 ol_cv_pthread_kthread=no
21284 fi
21285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21286 fi
21287
21288
21289
21290                 # restore the LIBS
21291                 LIBS="$ol_LIBS"
21292
21293 fi
21294 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21295 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21296
21297         if test $ol_cv_pthread_kthread = yes ; then
21298                 ol_link_pthreads="-kthread"
21299                 ol_link_threads=posix
21300         fi
21301 fi
21302
21303                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21304 if test "$ol_link_threads" = no ; then
21305         # try -pthread
21306         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21307 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21308 if test "${ol_cv_pthread_pthread+set}" = set; then
21309   echo $ECHO_N "(cached) $ECHO_C" >&6
21310 else
21311
21312                 # save the flags
21313                 ol_LIBS="$LIBS"
21314                 LIBS="-pthread $LIBS"
21315
21316                 if test "$cross_compiling" = yes; then
21317   cat >conftest.$ac_ext <<_ACEOF
21318 /* confdefs.h.  */
21319 _ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h.  */
21323
21324 /* pthread test headers */
21325 #include <pthread.h>
21326 #if HAVE_PTHREADS < 7
21327 #include <errno.h>
21328 #endif
21329 #ifndef NULL
21330 #define NULL (void*)0
21331 #endif
21332
21333 static void *task(p)
21334         void *p;
21335 {
21336         return (void *) (p == NULL);
21337 }
21338
21339 int
21340 main ()
21341 {
21342
21343         /* pthread test function */
21344 #ifndef PTHREAD_CREATE_DETACHED
21345 #define PTHREAD_CREATE_DETACHED 1
21346 #endif
21347         pthread_t t;
21348         int status;
21349         int detach = PTHREAD_CREATE_DETACHED;
21350
21351 #if HAVE_PTHREADS > 4
21352         /* Final pthreads */
21353         pthread_attr_t attr;
21354
21355         status = pthread_attr_init(&attr);
21356         if( status ) return status;
21357
21358 #if HAVE_PTHREADS < 7
21359         status = pthread_attr_setdetachstate(&attr, &detach);
21360         if( status < 0 ) status = errno;
21361 #else
21362         status = pthread_attr_setdetachstate(&attr, detach);
21363 #endif
21364         if( status ) return status;
21365         status = pthread_create( &t, &attr, task, NULL );
21366 #if HAVE_PTHREADS < 7
21367         if( status < 0 ) status = errno;
21368 #endif
21369         if( status ) return status;
21370 #else
21371         /* Draft 4 pthreads */
21372         status = pthread_create( &t, pthread_attr_default, task, NULL );
21373         if( status ) return errno;
21374
21375         /* give thread a chance to complete */
21376         /* it should remain joinable and hence detachable */
21377         sleep( 1 );
21378
21379         status = pthread_detach( &t );
21380         if( status ) return errno;
21381 #endif
21382
21383 #ifdef HAVE_LINUX_THREADS
21384         pthread_kill_other_threads_np();
21385 #endif
21386
21387         return 0;
21388
21389   ;
21390   return 0;
21391 }
21392 _ACEOF
21393 rm -f conftest.$ac_objext conftest$ac_exeext
21394 if { (ac_try="$ac_link"
21395 case "(($ac_try" in
21396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21397   *) ac_try_echo=$ac_try;;
21398 esac
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400   (eval "$ac_link") 2>conftest.er1
21401   ac_status=$?
21402   grep -v '^ *+' conftest.er1 >conftest.err
21403   rm -f conftest.er1
21404   cat conftest.err >&5
21405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406   (exit $ac_status); } && {
21407          test -z "$ac_c_werror_flag" ||
21408          test ! -s conftest.err
21409        } && test -s conftest$ac_exeext &&
21410        $as_test_x conftest$ac_exeext; then
21411   ol_cv_pthread_pthread=yes
21412 else
21413   echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21415
21416         ol_cv_pthread_pthread=no
21417 fi
21418
21419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21420       conftest$ac_exeext conftest.$ac_ext
21421 else
21422   cat >conftest.$ac_ext <<_ACEOF
21423 /* confdefs.h.  */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h.  */
21428
21429 /* pthread test headers */
21430 #include <pthread.h>
21431 #if HAVE_PTHREADS < 7
21432 #include <errno.h>
21433 #endif
21434 #ifndef NULL
21435 #define NULL (void*)0
21436 #endif
21437
21438 static void *task(p)
21439         void *p;
21440 {
21441         return (void *) (p == NULL);
21442 }
21443
21444
21445 int main(argc, argv)
21446         int argc;
21447         char **argv;
21448 {
21449
21450         /* pthread test function */
21451 #ifndef PTHREAD_CREATE_DETACHED
21452 #define PTHREAD_CREATE_DETACHED 1
21453 #endif
21454         pthread_t t;
21455         int status;
21456         int detach = PTHREAD_CREATE_DETACHED;
21457
21458 #if HAVE_PTHREADS > 4
21459         /* Final pthreads */
21460         pthread_attr_t attr;
21461
21462         status = pthread_attr_init(&attr);
21463         if( status ) return status;
21464
21465 #if HAVE_PTHREADS < 7
21466         status = pthread_attr_setdetachstate(&attr, &detach);
21467         if( status < 0 ) status = errno;
21468 #else
21469         status = pthread_attr_setdetachstate(&attr, detach);
21470 #endif
21471         if( status ) return status;
21472         status = pthread_create( &t, &attr, task, NULL );
21473 #if HAVE_PTHREADS < 7
21474         if( status < 0 ) status = errno;
21475 #endif
21476         if( status ) return status;
21477 #else
21478         /* Draft 4 pthreads */
21479         status = pthread_create( &t, pthread_attr_default, task, NULL );
21480         if( status ) return errno;
21481
21482         /* give thread a chance to complete */
21483         /* it should remain joinable and hence detachable */
21484         sleep( 1 );
21485
21486         status = pthread_detach( &t );
21487         if( status ) return errno;
21488 #endif
21489
21490 #ifdef HAVE_LINUX_THREADS
21491         pthread_kill_other_threads_np();
21492 #endif
21493
21494         return 0;
21495
21496 }
21497
21498 _ACEOF
21499 rm -f conftest$ac_exeext
21500 if { (ac_try="$ac_link"
21501 case "(($ac_try" in
21502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503   *) ac_try_echo=$ac_try;;
21504 esac
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506   (eval "$ac_link") 2>&5
21507   ac_status=$?
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21510   { (case "(($ac_try" in
21511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512   *) ac_try_echo=$ac_try;;
21513 esac
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515   (eval "$ac_try") 2>&5
21516   ac_status=$?
21517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518   (exit $ac_status); }; }; then
21519   ol_cv_pthread_pthread=yes
21520 else
21521   echo "$as_me: program exited with status $ac_status" >&5
21522 echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21524
21525 ( exit $ac_status )
21526 ol_cv_pthread_pthread=no
21527 fi
21528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21529 fi
21530
21531
21532
21533                 # restore the LIBS
21534                 LIBS="$ol_LIBS"
21535
21536 fi
21537 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21538 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21539
21540         if test $ol_cv_pthread_pthread = yes ; then
21541                 ol_link_pthreads="-pthread"
21542                 ol_link_threads=posix
21543         fi
21544 fi
21545
21546                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21547 if test "$ol_link_threads" = no ; then
21548         # try -pthreads
21549         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21550 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21551 if test "${ol_cv_pthread_pthreads+set}" = set; then
21552   echo $ECHO_N "(cached) $ECHO_C" >&6
21553 else
21554
21555                 # save the flags
21556                 ol_LIBS="$LIBS"
21557                 LIBS="-pthreads $LIBS"
21558
21559                 if test "$cross_compiling" = yes; then
21560   cat >conftest.$ac_ext <<_ACEOF
21561 /* confdefs.h.  */
21562 _ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h.  */
21566
21567 /* pthread test headers */
21568 #include <pthread.h>
21569 #if HAVE_PTHREADS < 7
21570 #include <errno.h>
21571 #endif
21572 #ifndef NULL
21573 #define NULL (void*)0
21574 #endif
21575
21576 static void *task(p)
21577         void *p;
21578 {
21579         return (void *) (p == NULL);
21580 }
21581
21582 int
21583 main ()
21584 {
21585
21586         /* pthread test function */
21587 #ifndef PTHREAD_CREATE_DETACHED
21588 #define PTHREAD_CREATE_DETACHED 1
21589 #endif
21590         pthread_t t;
21591         int status;
21592         int detach = PTHREAD_CREATE_DETACHED;
21593
21594 #if HAVE_PTHREADS > 4
21595         /* Final pthreads */
21596         pthread_attr_t attr;
21597
21598         status = pthread_attr_init(&attr);
21599         if( status ) return status;
21600
21601 #if HAVE_PTHREADS < 7
21602         status = pthread_attr_setdetachstate(&attr, &detach);
21603         if( status < 0 ) status = errno;
21604 #else
21605         status = pthread_attr_setdetachstate(&attr, detach);
21606 #endif
21607         if( status ) return status;
21608         status = pthread_create( &t, &attr, task, NULL );
21609 #if HAVE_PTHREADS < 7
21610         if( status < 0 ) status = errno;
21611 #endif
21612         if( status ) return status;
21613 #else
21614         /* Draft 4 pthreads */
21615         status = pthread_create( &t, pthread_attr_default, task, NULL );
21616         if( status ) return errno;
21617
21618         /* give thread a chance to complete */
21619         /* it should remain joinable and hence detachable */
21620         sleep( 1 );
21621
21622         status = pthread_detach( &t );
21623         if( status ) return errno;
21624 #endif
21625
21626 #ifdef HAVE_LINUX_THREADS
21627         pthread_kill_other_threads_np();
21628 #endif
21629
21630         return 0;
21631
21632   ;
21633   return 0;
21634 }
21635 _ACEOF
21636 rm -f conftest.$ac_objext conftest$ac_exeext
21637 if { (ac_try="$ac_link"
21638 case "(($ac_try" in
21639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640   *) ac_try_echo=$ac_try;;
21641 esac
21642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643   (eval "$ac_link") 2>conftest.er1
21644   ac_status=$?
21645   grep -v '^ *+' conftest.er1 >conftest.err
21646   rm -f conftest.er1
21647   cat conftest.err >&5
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); } && {
21650          test -z "$ac_c_werror_flag" ||
21651          test ! -s conftest.err
21652        } && test -s conftest$ac_exeext &&
21653        $as_test_x conftest$ac_exeext; then
21654   ol_cv_pthread_pthreads=yes
21655 else
21656   echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.$ac_ext >&5
21658
21659         ol_cv_pthread_pthreads=no
21660 fi
21661
21662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21663       conftest$ac_exeext conftest.$ac_ext
21664 else
21665   cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h.  */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h.  */
21671
21672 /* pthread test headers */
21673 #include <pthread.h>
21674 #if HAVE_PTHREADS < 7
21675 #include <errno.h>
21676 #endif
21677 #ifndef NULL
21678 #define NULL (void*)0
21679 #endif
21680
21681 static void *task(p)
21682         void *p;
21683 {
21684         return (void *) (p == NULL);
21685 }
21686
21687
21688 int main(argc, argv)
21689         int argc;
21690         char **argv;
21691 {
21692
21693         /* pthread test function */
21694 #ifndef PTHREAD_CREATE_DETACHED
21695 #define PTHREAD_CREATE_DETACHED 1
21696 #endif
21697         pthread_t t;
21698         int status;
21699         int detach = PTHREAD_CREATE_DETACHED;
21700
21701 #if HAVE_PTHREADS > 4
21702         /* Final pthreads */
21703         pthread_attr_t attr;
21704
21705         status = pthread_attr_init(&attr);
21706         if( status ) return status;
21707
21708 #if HAVE_PTHREADS < 7
21709         status = pthread_attr_setdetachstate(&attr, &detach);
21710         if( status < 0 ) status = errno;
21711 #else
21712         status = pthread_attr_setdetachstate(&attr, detach);
21713 #endif
21714         if( status ) return status;
21715         status = pthread_create( &t, &attr, task, NULL );
21716 #if HAVE_PTHREADS < 7
21717         if( status < 0 ) status = errno;
21718 #endif
21719         if( status ) return status;
21720 #else
21721         /* Draft 4 pthreads */
21722         status = pthread_create( &t, pthread_attr_default, task, NULL );
21723         if( status ) return errno;
21724
21725         /* give thread a chance to complete */
21726         /* it should remain joinable and hence detachable */
21727         sleep( 1 );
21728
21729         status = pthread_detach( &t );
21730         if( status ) return errno;
21731 #endif
21732
21733 #ifdef HAVE_LINUX_THREADS
21734         pthread_kill_other_threads_np();
21735 #endif
21736
21737         return 0;
21738
21739 }
21740
21741 _ACEOF
21742 rm -f conftest$ac_exeext
21743 if { (ac_try="$ac_link"
21744 case "(($ac_try" in
21745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746   *) ac_try_echo=$ac_try;;
21747 esac
21748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21749   (eval "$ac_link") 2>&5
21750   ac_status=$?
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21753   { (case "(($ac_try" in
21754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755   *) ac_try_echo=$ac_try;;
21756 esac
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758   (eval "$ac_try") 2>&5
21759   ac_status=$?
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); }; }; then
21762   ol_cv_pthread_pthreads=yes
21763 else
21764   echo "$as_me: program exited with status $ac_status" >&5
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21767
21768 ( exit $ac_status )
21769 ol_cv_pthread_pthreads=no
21770 fi
21771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21772 fi
21773
21774
21775
21776                 # restore the LIBS
21777                 LIBS="$ol_LIBS"
21778
21779 fi
21780 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21781 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21782
21783         if test $ol_cv_pthread_pthreads = yes ; then
21784                 ol_link_pthreads="-pthreads"
21785                 ol_link_threads=posix
21786         fi
21787 fi
21788
21789                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21790 if test "$ol_link_threads" = no ; then
21791         # try -mthreads
21792         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21793 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21794 if test "${ol_cv_pthread_mthreads+set}" = set; then
21795   echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797
21798                 # save the flags
21799                 ol_LIBS="$LIBS"
21800                 LIBS="-mthreads $LIBS"
21801
21802                 if test "$cross_compiling" = yes; then
21803   cat >conftest.$ac_ext <<_ACEOF
21804 /* confdefs.h.  */
21805 _ACEOF
21806 cat confdefs.h >>conftest.$ac_ext
21807 cat >>conftest.$ac_ext <<_ACEOF
21808 /* end confdefs.h.  */
21809
21810 /* pthread test headers */
21811 #include <pthread.h>
21812 #if HAVE_PTHREADS < 7
21813 #include <errno.h>
21814 #endif
21815 #ifndef NULL
21816 #define NULL (void*)0
21817 #endif
21818
21819 static void *task(p)
21820         void *p;
21821 {
21822         return (void *) (p == NULL);
21823 }
21824
21825 int
21826 main ()
21827 {
21828
21829         /* pthread test function */
21830 #ifndef PTHREAD_CREATE_DETACHED
21831 #define PTHREAD_CREATE_DETACHED 1
21832 #endif
21833         pthread_t t;
21834         int status;
21835         int detach = PTHREAD_CREATE_DETACHED;
21836
21837 #if HAVE_PTHREADS > 4
21838         /* Final pthreads */
21839         pthread_attr_t attr;
21840
21841         status = pthread_attr_init(&attr);
21842         if( status ) return status;
21843
21844 #if HAVE_PTHREADS < 7
21845         status = pthread_attr_setdetachstate(&attr, &detach);
21846         if( status < 0 ) status = errno;
21847 #else
21848         status = pthread_attr_setdetachstate(&attr, detach);
21849 #endif
21850         if( status ) return status;
21851         status = pthread_create( &t, &attr, task, NULL );
21852 #if HAVE_PTHREADS < 7
21853         if( status < 0 ) status = errno;
21854 #endif
21855         if( status ) return status;
21856 #else
21857         /* Draft 4 pthreads */
21858         status = pthread_create( &t, pthread_attr_default, task, NULL );
21859         if( status ) return errno;
21860
21861         /* give thread a chance to complete */
21862         /* it should remain joinable and hence detachable */
21863         sleep( 1 );
21864
21865         status = pthread_detach( &t );
21866         if( status ) return errno;
21867 #endif
21868
21869 #ifdef HAVE_LINUX_THREADS
21870         pthread_kill_other_threads_np();
21871 #endif
21872
21873         return 0;
21874
21875   ;
21876   return 0;
21877 }
21878 _ACEOF
21879 rm -f conftest.$ac_objext conftest$ac_exeext
21880 if { (ac_try="$ac_link"
21881 case "(($ac_try" in
21882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883   *) ac_try_echo=$ac_try;;
21884 esac
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886   (eval "$ac_link") 2>conftest.er1
21887   ac_status=$?
21888   grep -v '^ *+' conftest.er1 >conftest.err
21889   rm -f conftest.er1
21890   cat conftest.err >&5
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); } && {
21893          test -z "$ac_c_werror_flag" ||
21894          test ! -s conftest.err
21895        } && test -s conftest$ac_exeext &&
21896        $as_test_x conftest$ac_exeext; then
21897   ol_cv_pthread_mthreads=yes
21898 else
21899   echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21901
21902         ol_cv_pthread_mthreads=no
21903 fi
21904
21905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21906       conftest$ac_exeext conftest.$ac_ext
21907 else
21908   cat >conftest.$ac_ext <<_ACEOF
21909 /* confdefs.h.  */
21910 _ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h.  */
21914
21915 /* pthread test headers */
21916 #include <pthread.h>
21917 #if HAVE_PTHREADS < 7
21918 #include <errno.h>
21919 #endif
21920 #ifndef NULL
21921 #define NULL (void*)0
21922 #endif
21923
21924 static void *task(p)
21925         void *p;
21926 {
21927         return (void *) (p == NULL);
21928 }
21929
21930
21931 int main(argc, argv)
21932         int argc;
21933         char **argv;
21934 {
21935
21936         /* pthread test function */
21937 #ifndef PTHREAD_CREATE_DETACHED
21938 #define PTHREAD_CREATE_DETACHED 1
21939 #endif
21940         pthread_t t;
21941         int status;
21942         int detach = PTHREAD_CREATE_DETACHED;
21943
21944 #if HAVE_PTHREADS > 4
21945         /* Final pthreads */
21946         pthread_attr_t attr;
21947
21948         status = pthread_attr_init(&attr);
21949         if( status ) return status;
21950
21951 #if HAVE_PTHREADS < 7
21952         status = pthread_attr_setdetachstate(&attr, &detach);
21953         if( status < 0 ) status = errno;
21954 #else
21955         status = pthread_attr_setdetachstate(&attr, detach);
21956 #endif
21957         if( status ) return status;
21958         status = pthread_create( &t, &attr, task, NULL );
21959 #if HAVE_PTHREADS < 7
21960         if( status < 0 ) status = errno;
21961 #endif
21962         if( status ) return status;
21963 #else
21964         /* Draft 4 pthreads */
21965         status = pthread_create( &t, pthread_attr_default, task, NULL );
21966         if( status ) return errno;
21967
21968         /* give thread a chance to complete */
21969         /* it should remain joinable and hence detachable */
21970         sleep( 1 );
21971
21972         status = pthread_detach( &t );
21973         if( status ) return errno;
21974 #endif
21975
21976 #ifdef HAVE_LINUX_THREADS
21977         pthread_kill_other_threads_np();
21978 #endif
21979
21980         return 0;
21981
21982 }
21983
21984 _ACEOF
21985 rm -f conftest$ac_exeext
21986 if { (ac_try="$ac_link"
21987 case "(($ac_try" in
21988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989   *) ac_try_echo=$ac_try;;
21990 esac
21991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992   (eval "$ac_link") 2>&5
21993   ac_status=$?
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21996   { (case "(($ac_try" in
21997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21998   *) ac_try_echo=$ac_try;;
21999 esac
22000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22001   (eval "$ac_try") 2>&5
22002   ac_status=$?
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); }; }; then
22005   ol_cv_pthread_mthreads=yes
22006 else
22007   echo "$as_me: program exited with status $ac_status" >&5
22008 echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22010
22011 ( exit $ac_status )
22012 ol_cv_pthread_mthreads=no
22013 fi
22014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22015 fi
22016
22017
22018
22019                 # restore the LIBS
22020                 LIBS="$ol_LIBS"
22021
22022 fi
22023 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
22024 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
22025
22026         if test $ol_cv_pthread_mthreads = yes ; then
22027                 ol_link_pthreads="-mthreads"
22028                 ol_link_threads=posix
22029         fi
22030 fi
22031
22032                 # Pthread try link: -thread (ol_cv_pthread_thread)
22033 if test "$ol_link_threads" = no ; then
22034         # try -thread
22035         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
22036 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
22037 if test "${ol_cv_pthread_thread+set}" = set; then
22038   echo $ECHO_N "(cached) $ECHO_C" >&6
22039 else
22040
22041                 # save the flags
22042                 ol_LIBS="$LIBS"
22043                 LIBS="-thread $LIBS"
22044
22045                 if test "$cross_compiling" = yes; then
22046   cat >conftest.$ac_ext <<_ACEOF
22047 /* confdefs.h.  */
22048 _ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h.  */
22052
22053 /* pthread test headers */
22054 #include <pthread.h>
22055 #if HAVE_PTHREADS < 7
22056 #include <errno.h>
22057 #endif
22058 #ifndef NULL
22059 #define NULL (void*)0
22060 #endif
22061
22062 static void *task(p)
22063         void *p;
22064 {
22065         return (void *) (p == NULL);
22066 }
22067
22068 int
22069 main ()
22070 {
22071
22072         /* pthread test function */
22073 #ifndef PTHREAD_CREATE_DETACHED
22074 #define PTHREAD_CREATE_DETACHED 1
22075 #endif
22076         pthread_t t;
22077         int status;
22078         int detach = PTHREAD_CREATE_DETACHED;
22079
22080 #if HAVE_PTHREADS > 4
22081         /* Final pthreads */
22082         pthread_attr_t attr;
22083
22084         status = pthread_attr_init(&attr);
22085         if( status ) return status;
22086
22087 #if HAVE_PTHREADS < 7
22088         status = pthread_attr_setdetachstate(&attr, &detach);
22089         if( status < 0 ) status = errno;
22090 #else
22091         status = pthread_attr_setdetachstate(&attr, detach);
22092 #endif
22093         if( status ) return status;
22094         status = pthread_create( &t, &attr, task, NULL );
22095 #if HAVE_PTHREADS < 7
22096         if( status < 0 ) status = errno;
22097 #endif
22098         if( status ) return status;
22099 #else
22100         /* Draft 4 pthreads */
22101         status = pthread_create( &t, pthread_attr_default, task, NULL );
22102         if( status ) return errno;
22103
22104         /* give thread a chance to complete */
22105         /* it should remain joinable and hence detachable */
22106         sleep( 1 );
22107
22108         status = pthread_detach( &t );
22109         if( status ) return errno;
22110 #endif
22111
22112 #ifdef HAVE_LINUX_THREADS
22113         pthread_kill_other_threads_np();
22114 #endif
22115
22116         return 0;
22117
22118   ;
22119   return 0;
22120 }
22121 _ACEOF
22122 rm -f conftest.$ac_objext conftest$ac_exeext
22123 if { (ac_try="$ac_link"
22124 case "(($ac_try" in
22125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126   *) ac_try_echo=$ac_try;;
22127 esac
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129   (eval "$ac_link") 2>conftest.er1
22130   ac_status=$?
22131   grep -v '^ *+' conftest.er1 >conftest.err
22132   rm -f conftest.er1
22133   cat conftest.err >&5
22134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135   (exit $ac_status); } && {
22136          test -z "$ac_c_werror_flag" ||
22137          test ! -s conftest.err
22138        } && test -s conftest$ac_exeext &&
22139        $as_test_x conftest$ac_exeext; then
22140   ol_cv_pthread_thread=yes
22141 else
22142   echo "$as_me: failed program was:" >&5
22143 sed 's/^/| /' conftest.$ac_ext >&5
22144
22145         ol_cv_pthread_thread=no
22146 fi
22147
22148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22149       conftest$ac_exeext conftest.$ac_ext
22150 else
22151   cat >conftest.$ac_ext <<_ACEOF
22152 /* confdefs.h.  */
22153 _ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h.  */
22157
22158 /* pthread test headers */
22159 #include <pthread.h>
22160 #if HAVE_PTHREADS < 7
22161 #include <errno.h>
22162 #endif
22163 #ifndef NULL
22164 #define NULL (void*)0
22165 #endif
22166
22167 static void *task(p)
22168         void *p;
22169 {
22170         return (void *) (p == NULL);
22171 }
22172
22173
22174 int main(argc, argv)
22175         int argc;
22176         char **argv;
22177 {
22178
22179         /* pthread test function */
22180 #ifndef PTHREAD_CREATE_DETACHED
22181 #define PTHREAD_CREATE_DETACHED 1
22182 #endif
22183         pthread_t t;
22184         int status;
22185         int detach = PTHREAD_CREATE_DETACHED;
22186
22187 #if HAVE_PTHREADS > 4
22188         /* Final pthreads */
22189         pthread_attr_t attr;
22190
22191         status = pthread_attr_init(&attr);
22192         if( status ) return status;
22193
22194 #if HAVE_PTHREADS < 7
22195         status = pthread_attr_setdetachstate(&attr, &detach);
22196         if( status < 0 ) status = errno;
22197 #else
22198         status = pthread_attr_setdetachstate(&attr, detach);
22199 #endif
22200         if( status ) return status;
22201         status = pthread_create( &t, &attr, task, NULL );
22202 #if HAVE_PTHREADS < 7
22203         if( status < 0 ) status = errno;
22204 #endif
22205         if( status ) return status;
22206 #else
22207         /* Draft 4 pthreads */
22208         status = pthread_create( &t, pthread_attr_default, task, NULL );
22209         if( status ) return errno;
22210
22211         /* give thread a chance to complete */
22212         /* it should remain joinable and hence detachable */
22213         sleep( 1 );
22214
22215         status = pthread_detach( &t );
22216         if( status ) return errno;
22217 #endif
22218
22219 #ifdef HAVE_LINUX_THREADS
22220         pthread_kill_other_threads_np();
22221 #endif
22222
22223         return 0;
22224
22225 }
22226
22227 _ACEOF
22228 rm -f conftest$ac_exeext
22229 if { (ac_try="$ac_link"
22230 case "(($ac_try" in
22231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232   *) ac_try_echo=$ac_try;;
22233 esac
22234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22235   (eval "$ac_link") 2>&5
22236   ac_status=$?
22237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22239   { (case "(($ac_try" in
22240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241   *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244   (eval "$ac_try") 2>&5
22245   ac_status=$?
22246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247   (exit $ac_status); }; }; then
22248   ol_cv_pthread_thread=yes
22249 else
22250   echo "$as_me: program exited with status $ac_status" >&5
22251 echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22253
22254 ( exit $ac_status )
22255 ol_cv_pthread_thread=no
22256 fi
22257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22258 fi
22259
22260
22261
22262                 # restore the LIBS
22263                 LIBS="$ol_LIBS"
22264
22265 fi
22266 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22267 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22268
22269         if test $ol_cv_pthread_thread = yes ; then
22270                 ol_link_pthreads="-thread"
22271                 ol_link_threads=posix
22272         fi
22273 fi
22274
22275
22276                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22277 if test "$ol_link_threads" = no ; then
22278         # try -lpthread -lmach -lexc -lc_r
22279         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22280 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22281 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22282   echo $ECHO_N "(cached) $ECHO_C" >&6
22283 else
22284
22285                 # save the flags
22286                 ol_LIBS="$LIBS"
22287                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22288
22289                 if test "$cross_compiling" = yes; then
22290   cat >conftest.$ac_ext <<_ACEOF
22291 /* confdefs.h.  */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h.  */
22296
22297 /* pthread test headers */
22298 #include <pthread.h>
22299 #if HAVE_PTHREADS < 7
22300 #include <errno.h>
22301 #endif
22302 #ifndef NULL
22303 #define NULL (void*)0
22304 #endif
22305
22306 static void *task(p)
22307         void *p;
22308 {
22309         return (void *) (p == NULL);
22310 }
22311
22312 int
22313 main ()
22314 {
22315
22316         /* pthread test function */
22317 #ifndef PTHREAD_CREATE_DETACHED
22318 #define PTHREAD_CREATE_DETACHED 1
22319 #endif
22320         pthread_t t;
22321         int status;
22322         int detach = PTHREAD_CREATE_DETACHED;
22323
22324 #if HAVE_PTHREADS > 4
22325         /* Final pthreads */
22326         pthread_attr_t attr;
22327
22328         status = pthread_attr_init(&attr);
22329         if( status ) return status;
22330
22331 #if HAVE_PTHREADS < 7
22332         status = pthread_attr_setdetachstate(&attr, &detach);
22333         if( status < 0 ) status = errno;
22334 #else
22335         status = pthread_attr_setdetachstate(&attr, detach);
22336 #endif
22337         if( status ) return status;
22338         status = pthread_create( &t, &attr, task, NULL );
22339 #if HAVE_PTHREADS < 7
22340         if( status < 0 ) status = errno;
22341 #endif
22342         if( status ) return status;
22343 #else
22344         /* Draft 4 pthreads */
22345         status = pthread_create( &t, pthread_attr_default, task, NULL );
22346         if( status ) return errno;
22347
22348         /* give thread a chance to complete */
22349         /* it should remain joinable and hence detachable */
22350         sleep( 1 );
22351
22352         status = pthread_detach( &t );
22353         if( status ) return errno;
22354 #endif
22355
22356 #ifdef HAVE_LINUX_THREADS
22357         pthread_kill_other_threads_np();
22358 #endif
22359
22360         return 0;
22361
22362   ;
22363   return 0;
22364 }
22365 _ACEOF
22366 rm -f conftest.$ac_objext conftest$ac_exeext
22367 if { (ac_try="$ac_link"
22368 case "(($ac_try" in
22369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370   *) ac_try_echo=$ac_try;;
22371 esac
22372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22373   (eval "$ac_link") 2>conftest.er1
22374   ac_status=$?
22375   grep -v '^ *+' conftest.er1 >conftest.err
22376   rm -f conftest.er1
22377   cat conftest.err >&5
22378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379   (exit $ac_status); } && {
22380          test -z "$ac_c_werror_flag" ||
22381          test ! -s conftest.err
22382        } && test -s conftest$ac_exeext &&
22383        $as_test_x conftest$ac_exeext; then
22384   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22385 else
22386   echo "$as_me: failed program was:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22388
22389         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22390 fi
22391
22392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22393       conftest$ac_exeext conftest.$ac_ext
22394 else
22395   cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h.  */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h.  */
22401
22402 /* pthread test headers */
22403 #include <pthread.h>
22404 #if HAVE_PTHREADS < 7
22405 #include <errno.h>
22406 #endif
22407 #ifndef NULL
22408 #define NULL (void*)0
22409 #endif
22410
22411 static void *task(p)
22412         void *p;
22413 {
22414         return (void *) (p == NULL);
22415 }
22416
22417
22418 int main(argc, argv)
22419         int argc;
22420         char **argv;
22421 {
22422
22423         /* pthread test function */
22424 #ifndef PTHREAD_CREATE_DETACHED
22425 #define PTHREAD_CREATE_DETACHED 1
22426 #endif
22427         pthread_t t;
22428         int status;
22429         int detach = PTHREAD_CREATE_DETACHED;
22430
22431 #if HAVE_PTHREADS > 4
22432         /* Final pthreads */
22433         pthread_attr_t attr;
22434
22435         status = pthread_attr_init(&attr);
22436         if( status ) return status;
22437
22438 #if HAVE_PTHREADS < 7
22439         status = pthread_attr_setdetachstate(&attr, &detach);
22440         if( status < 0 ) status = errno;
22441 #else
22442         status = pthread_attr_setdetachstate(&attr, detach);
22443 #endif
22444         if( status ) return status;
22445         status = pthread_create( &t, &attr, task, NULL );
22446 #if HAVE_PTHREADS < 7
22447         if( status < 0 ) status = errno;
22448 #endif
22449         if( status ) return status;
22450 #else
22451         /* Draft 4 pthreads */
22452         status = pthread_create( &t, pthread_attr_default, task, NULL );
22453         if( status ) return errno;
22454
22455         /* give thread a chance to complete */
22456         /* it should remain joinable and hence detachable */
22457         sleep( 1 );
22458
22459         status = pthread_detach( &t );
22460         if( status ) return errno;
22461 #endif
22462
22463 #ifdef HAVE_LINUX_THREADS
22464         pthread_kill_other_threads_np();
22465 #endif
22466
22467         return 0;
22468
22469 }
22470
22471 _ACEOF
22472 rm -f conftest$ac_exeext
22473 if { (ac_try="$ac_link"
22474 case "(($ac_try" in
22475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476   *) ac_try_echo=$ac_try;;
22477 esac
22478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22479   (eval "$ac_link") 2>&5
22480   ac_status=$?
22481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22483   { (case "(($ac_try" in
22484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485   *) ac_try_echo=$ac_try;;
22486 esac
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488   (eval "$ac_try") 2>&5
22489   ac_status=$?
22490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491   (exit $ac_status); }; }; then
22492   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22493 else
22494   echo "$as_me: program exited with status $ac_status" >&5
22495 echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22497
22498 ( exit $ac_status )
22499 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22500 fi
22501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22502 fi
22503
22504
22505
22506                 # restore the LIBS
22507                 LIBS="$ol_LIBS"
22508
22509 fi
22510 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22511 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22512
22513         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22514                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22515                 ol_link_threads=posix
22516         fi
22517 fi
22518
22519                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22520 if test "$ol_link_threads" = no ; then
22521         # try -lpthread -lmach -lexc
22522         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22523 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22524 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22525   echo $ECHO_N "(cached) $ECHO_C" >&6
22526 else
22527
22528                 # save the flags
22529                 ol_LIBS="$LIBS"
22530                 LIBS="-lpthread -lmach -lexc $LIBS"
22531
22532                 if test "$cross_compiling" = yes; then
22533   cat >conftest.$ac_ext <<_ACEOF
22534 /* confdefs.h.  */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h.  */
22539
22540 /* pthread test headers */
22541 #include <pthread.h>
22542 #if HAVE_PTHREADS < 7
22543 #include <errno.h>
22544 #endif
22545 #ifndef NULL
22546 #define NULL (void*)0
22547 #endif
22548
22549 static void *task(p)
22550         void *p;
22551 {
22552         return (void *) (p == NULL);
22553 }
22554
22555 int
22556 main ()
22557 {
22558
22559         /* pthread test function */
22560 #ifndef PTHREAD_CREATE_DETACHED
22561 #define PTHREAD_CREATE_DETACHED 1
22562 #endif
22563         pthread_t t;
22564         int status;
22565         int detach = PTHREAD_CREATE_DETACHED;
22566
22567 #if HAVE_PTHREADS > 4
22568         /* Final pthreads */
22569         pthread_attr_t attr;
22570
22571         status = pthread_attr_init(&attr);
22572         if( status ) return status;
22573
22574 #if HAVE_PTHREADS < 7
22575         status = pthread_attr_setdetachstate(&attr, &detach);
22576         if( status < 0 ) status = errno;
22577 #else
22578         status = pthread_attr_setdetachstate(&attr, detach);
22579 #endif
22580         if( status ) return status;
22581         status = pthread_create( &t, &attr, task, NULL );
22582 #if HAVE_PTHREADS < 7
22583         if( status < 0 ) status = errno;
22584 #endif
22585         if( status ) return status;
22586 #else
22587         /* Draft 4 pthreads */
22588         status = pthread_create( &t, pthread_attr_default, task, NULL );
22589         if( status ) return errno;
22590
22591         /* give thread a chance to complete */
22592         /* it should remain joinable and hence detachable */
22593         sleep( 1 );
22594
22595         status = pthread_detach( &t );
22596         if( status ) return errno;
22597 #endif
22598
22599 #ifdef HAVE_LINUX_THREADS
22600         pthread_kill_other_threads_np();
22601 #endif
22602
22603         return 0;
22604
22605   ;
22606   return 0;
22607 }
22608 _ACEOF
22609 rm -f conftest.$ac_objext conftest$ac_exeext
22610 if { (ac_try="$ac_link"
22611 case "(($ac_try" in
22612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22613   *) ac_try_echo=$ac_try;;
22614 esac
22615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22616   (eval "$ac_link") 2>conftest.er1
22617   ac_status=$?
22618   grep -v '^ *+' conftest.er1 >conftest.err
22619   rm -f conftest.er1
22620   cat conftest.err >&5
22621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622   (exit $ac_status); } && {
22623          test -z "$ac_c_werror_flag" ||
22624          test ! -s conftest.err
22625        } && test -s conftest$ac_exeext &&
22626        $as_test_x conftest$ac_exeext; then
22627   ol_cv_pthread_lpthread_lmach_lexc=yes
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632         ol_cv_pthread_lpthread_lmach_lexc=no
22633 fi
22634
22635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22636       conftest$ac_exeext conftest.$ac_ext
22637 else
22638   cat >conftest.$ac_ext <<_ACEOF
22639 /* confdefs.h.  */
22640 _ACEOF
22641 cat confdefs.h >>conftest.$ac_ext
22642 cat >>conftest.$ac_ext <<_ACEOF
22643 /* end confdefs.h.  */
22644
22645 /* pthread test headers */
22646 #include <pthread.h>
22647 #if HAVE_PTHREADS < 7
22648 #include <errno.h>
22649 #endif
22650 #ifndef NULL
22651 #define NULL (void*)0
22652 #endif
22653
22654 static void *task(p)
22655         void *p;
22656 {
22657         return (void *) (p == NULL);
22658 }
22659
22660
22661 int main(argc, argv)
22662         int argc;
22663         char **argv;
22664 {
22665
22666         /* pthread test function */
22667 #ifndef PTHREAD_CREATE_DETACHED
22668 #define PTHREAD_CREATE_DETACHED 1
22669 #endif
22670         pthread_t t;
22671         int status;
22672         int detach = PTHREAD_CREATE_DETACHED;
22673
22674 #if HAVE_PTHREADS > 4
22675         /* Final pthreads */
22676         pthread_attr_t attr;
22677
22678         status = pthread_attr_init(&attr);
22679         if( status ) return status;
22680
22681 #if HAVE_PTHREADS < 7
22682         status = pthread_attr_setdetachstate(&attr, &detach);
22683         if( status < 0 ) status = errno;
22684 #else
22685         status = pthread_attr_setdetachstate(&attr, detach);
22686 #endif
22687         if( status ) return status;
22688         status = pthread_create( &t, &attr, task, NULL );
22689 #if HAVE_PTHREADS < 7
22690         if( status < 0 ) status = errno;
22691 #endif
22692         if( status ) return status;
22693 #else
22694         /* Draft 4 pthreads */
22695         status = pthread_create( &t, pthread_attr_default, task, NULL );
22696         if( status ) return errno;
22697
22698         /* give thread a chance to complete */
22699         /* it should remain joinable and hence detachable */
22700         sleep( 1 );
22701
22702         status = pthread_detach( &t );
22703         if( status ) return errno;
22704 #endif
22705
22706 #ifdef HAVE_LINUX_THREADS
22707         pthread_kill_other_threads_np();
22708 #endif
22709
22710         return 0;
22711
22712 }
22713
22714 _ACEOF
22715 rm -f conftest$ac_exeext
22716 if { (ac_try="$ac_link"
22717 case "(($ac_try" in
22718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22719   *) ac_try_echo=$ac_try;;
22720 esac
22721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22722   (eval "$ac_link") 2>&5
22723   ac_status=$?
22724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22726   { (case "(($ac_try" in
22727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728   *) ac_try_echo=$ac_try;;
22729 esac
22730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731   (eval "$ac_try") 2>&5
22732   ac_status=$?
22733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734   (exit $ac_status); }; }; then
22735   ol_cv_pthread_lpthread_lmach_lexc=yes
22736 else
22737   echo "$as_me: program exited with status $ac_status" >&5
22738 echo "$as_me: failed program was:" >&5
22739 sed 's/^/| /' conftest.$ac_ext >&5
22740
22741 ( exit $ac_status )
22742 ol_cv_pthread_lpthread_lmach_lexc=no
22743 fi
22744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22745 fi
22746
22747
22748
22749                 # restore the LIBS
22750                 LIBS="$ol_LIBS"
22751
22752 fi
22753 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22754 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22755
22756         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22757                 ol_link_pthreads="-lpthread -lmach -lexc"
22758                 ol_link_threads=posix
22759         fi
22760 fi
22761
22762
22763                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22764 if test "$ol_link_threads" = no ; then
22765         # try -lpthread -Wl,-woff,85
22766         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22767 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22768 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22769   echo $ECHO_N "(cached) $ECHO_C" >&6
22770 else
22771
22772                 # save the flags
22773                 ol_LIBS="$LIBS"
22774                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22775
22776                 if test "$cross_compiling" = yes; then
22777   cat >conftest.$ac_ext <<_ACEOF
22778 /* confdefs.h.  */
22779 _ACEOF
22780 cat confdefs.h >>conftest.$ac_ext
22781 cat >>conftest.$ac_ext <<_ACEOF
22782 /* end confdefs.h.  */
22783
22784 /* pthread test headers */
22785 #include <pthread.h>
22786 #if HAVE_PTHREADS < 7
22787 #include <errno.h>
22788 #endif
22789 #ifndef NULL
22790 #define NULL (void*)0
22791 #endif
22792
22793 static void *task(p)
22794         void *p;
22795 {
22796         return (void *) (p == NULL);
22797 }
22798
22799 int
22800 main ()
22801 {
22802
22803         /* pthread test function */
22804 #ifndef PTHREAD_CREATE_DETACHED
22805 #define PTHREAD_CREATE_DETACHED 1
22806 #endif
22807         pthread_t t;
22808         int status;
22809         int detach = PTHREAD_CREATE_DETACHED;
22810
22811 #if HAVE_PTHREADS > 4
22812         /* Final pthreads */
22813         pthread_attr_t attr;
22814
22815         status = pthread_attr_init(&attr);
22816         if( status ) return status;
22817
22818 #if HAVE_PTHREADS < 7
22819         status = pthread_attr_setdetachstate(&attr, &detach);
22820         if( status < 0 ) status = errno;
22821 #else
22822         status = pthread_attr_setdetachstate(&attr, detach);
22823 #endif
22824         if( status ) return status;
22825         status = pthread_create( &t, &attr, task, NULL );
22826 #if HAVE_PTHREADS < 7
22827         if( status < 0 ) status = errno;
22828 #endif
22829         if( status ) return status;
22830 #else
22831         /* Draft 4 pthreads */
22832         status = pthread_create( &t, pthread_attr_default, task, NULL );
22833         if( status ) return errno;
22834
22835         /* give thread a chance to complete */
22836         /* it should remain joinable and hence detachable */
22837         sleep( 1 );
22838
22839         status = pthread_detach( &t );
22840         if( status ) return errno;
22841 #endif
22842
22843 #ifdef HAVE_LINUX_THREADS
22844         pthread_kill_other_threads_np();
22845 #endif
22846
22847         return 0;
22848
22849   ;
22850   return 0;
22851 }
22852 _ACEOF
22853 rm -f conftest.$ac_objext conftest$ac_exeext
22854 if { (ac_try="$ac_link"
22855 case "(($ac_try" in
22856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857   *) ac_try_echo=$ac_try;;
22858 esac
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860   (eval "$ac_link") 2>conftest.er1
22861   ac_status=$?
22862   grep -v '^ *+' conftest.er1 >conftest.err
22863   rm -f conftest.er1
22864   cat conftest.err >&5
22865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866   (exit $ac_status); } && {
22867          test -z "$ac_c_werror_flag" ||
22868          test ! -s conftest.err
22869        } && test -s conftest$ac_exeext &&
22870        $as_test_x conftest$ac_exeext; then
22871   ol_cv_pthread_lib_lpthread_woff=yes
22872 else
22873   echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22875
22876         ol_cv_pthread_lib_lpthread_woff=no
22877 fi
22878
22879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22880       conftest$ac_exeext conftest.$ac_ext
22881 else
22882   cat >conftest.$ac_ext <<_ACEOF
22883 /* confdefs.h.  */
22884 _ACEOF
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h.  */
22888
22889 /* pthread test headers */
22890 #include <pthread.h>
22891 #if HAVE_PTHREADS < 7
22892 #include <errno.h>
22893 #endif
22894 #ifndef NULL
22895 #define NULL (void*)0
22896 #endif
22897
22898 static void *task(p)
22899         void *p;
22900 {
22901         return (void *) (p == NULL);
22902 }
22903
22904
22905 int main(argc, argv)
22906         int argc;
22907         char **argv;
22908 {
22909
22910         /* pthread test function */
22911 #ifndef PTHREAD_CREATE_DETACHED
22912 #define PTHREAD_CREATE_DETACHED 1
22913 #endif
22914         pthread_t t;
22915         int status;
22916         int detach = PTHREAD_CREATE_DETACHED;
22917
22918 #if HAVE_PTHREADS > 4
22919         /* Final pthreads */
22920         pthread_attr_t attr;
22921
22922         status = pthread_attr_init(&attr);
22923         if( status ) return status;
22924
22925 #if HAVE_PTHREADS < 7
22926         status = pthread_attr_setdetachstate(&attr, &detach);
22927         if( status < 0 ) status = errno;
22928 #else
22929         status = pthread_attr_setdetachstate(&attr, detach);
22930 #endif
22931         if( status ) return status;
22932         status = pthread_create( &t, &attr, task, NULL );
22933 #if HAVE_PTHREADS < 7
22934         if( status < 0 ) status = errno;
22935 #endif
22936         if( status ) return status;
22937 #else
22938         /* Draft 4 pthreads */
22939         status = pthread_create( &t, pthread_attr_default, task, NULL );
22940         if( status ) return errno;
22941
22942         /* give thread a chance to complete */
22943         /* it should remain joinable and hence detachable */
22944         sleep( 1 );
22945
22946         status = pthread_detach( &t );
22947         if( status ) return errno;
22948 #endif
22949
22950 #ifdef HAVE_LINUX_THREADS
22951         pthread_kill_other_threads_np();
22952 #endif
22953
22954         return 0;
22955
22956 }
22957
22958 _ACEOF
22959 rm -f conftest$ac_exeext
22960 if { (ac_try="$ac_link"
22961 case "(($ac_try" in
22962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22963   *) ac_try_echo=$ac_try;;
22964 esac
22965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22966   (eval "$ac_link") 2>&5
22967   ac_status=$?
22968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22970   { (case "(($ac_try" in
22971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972   *) ac_try_echo=$ac_try;;
22973 esac
22974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22975   (eval "$ac_try") 2>&5
22976   ac_status=$?
22977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978   (exit $ac_status); }; }; then
22979   ol_cv_pthread_lib_lpthread_woff=yes
22980 else
22981   echo "$as_me: program exited with status $ac_status" >&5
22982 echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22984
22985 ( exit $ac_status )
22986 ol_cv_pthread_lib_lpthread_woff=no
22987 fi
22988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22989 fi
22990
22991
22992
22993                 # restore the LIBS
22994                 LIBS="$ol_LIBS"
22995
22996 fi
22997 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22998 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22999
23000         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
23001                 ol_link_pthreads="-lpthread -Wl,-woff,85"
23002                 ol_link_threads=posix
23003         fi
23004 fi
23005
23006
23007                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
23008 if test "$ol_link_threads" = no ; then
23009         # try -lpthread
23010         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
23011 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
23012 if test "${ol_cv_pthread_lpthread+set}" = set; then
23013   echo $ECHO_N "(cached) $ECHO_C" >&6
23014 else
23015
23016                 # save the flags
23017                 ol_LIBS="$LIBS"
23018                 LIBS="-lpthread $LIBS"
23019
23020                 if test "$cross_compiling" = yes; then
23021   cat >conftest.$ac_ext <<_ACEOF
23022 /* confdefs.h.  */
23023 _ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h.  */
23027
23028 /* pthread test headers */
23029 #include <pthread.h>
23030 #if HAVE_PTHREADS < 7
23031 #include <errno.h>
23032 #endif
23033 #ifndef NULL
23034 #define NULL (void*)0
23035 #endif
23036
23037 static void *task(p)
23038         void *p;
23039 {
23040         return (void *) (p == NULL);
23041 }
23042
23043 int
23044 main ()
23045 {
23046
23047         /* pthread test function */
23048 #ifndef PTHREAD_CREATE_DETACHED
23049 #define PTHREAD_CREATE_DETACHED 1
23050 #endif
23051         pthread_t t;
23052         int status;
23053         int detach = PTHREAD_CREATE_DETACHED;
23054
23055 #if HAVE_PTHREADS > 4
23056         /* Final pthreads */
23057         pthread_attr_t attr;
23058
23059         status = pthread_attr_init(&attr);
23060         if( status ) return status;
23061
23062 #if HAVE_PTHREADS < 7
23063         status = pthread_attr_setdetachstate(&attr, &detach);
23064         if( status < 0 ) status = errno;
23065 #else
23066         status = pthread_attr_setdetachstate(&attr, detach);
23067 #endif
23068         if( status ) return status;
23069         status = pthread_create( &t, &attr, task, NULL );
23070 #if HAVE_PTHREADS < 7
23071         if( status < 0 ) status = errno;
23072 #endif
23073         if( status ) return status;
23074 #else
23075         /* Draft 4 pthreads */
23076         status = pthread_create( &t, pthread_attr_default, task, NULL );
23077         if( status ) return errno;
23078
23079         /* give thread a chance to complete */
23080         /* it should remain joinable and hence detachable */
23081         sleep( 1 );
23082
23083         status = pthread_detach( &t );
23084         if( status ) return errno;
23085 #endif
23086
23087 #ifdef HAVE_LINUX_THREADS
23088         pthread_kill_other_threads_np();
23089 #endif
23090
23091         return 0;
23092
23093   ;
23094   return 0;
23095 }
23096 _ACEOF
23097 rm -f conftest.$ac_objext conftest$ac_exeext
23098 if { (ac_try="$ac_link"
23099 case "(($ac_try" in
23100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23101   *) ac_try_echo=$ac_try;;
23102 esac
23103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23104   (eval "$ac_link") 2>conftest.er1
23105   ac_status=$?
23106   grep -v '^ *+' conftest.er1 >conftest.err
23107   rm -f conftest.er1
23108   cat conftest.err >&5
23109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110   (exit $ac_status); } && {
23111          test -z "$ac_c_werror_flag" ||
23112          test ! -s conftest.err
23113        } && test -s conftest$ac_exeext &&
23114        $as_test_x conftest$ac_exeext; then
23115   ol_cv_pthread_lpthread=yes
23116 else
23117   echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23119
23120         ol_cv_pthread_lpthread=no
23121 fi
23122
23123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23124       conftest$ac_exeext conftest.$ac_ext
23125 else
23126   cat >conftest.$ac_ext <<_ACEOF
23127 /* confdefs.h.  */
23128 _ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h.  */
23132
23133 /* pthread test headers */
23134 #include <pthread.h>
23135 #if HAVE_PTHREADS < 7
23136 #include <errno.h>
23137 #endif
23138 #ifndef NULL
23139 #define NULL (void*)0
23140 #endif
23141
23142 static void *task(p)
23143         void *p;
23144 {
23145         return (void *) (p == NULL);
23146 }
23147
23148
23149 int main(argc, argv)
23150         int argc;
23151         char **argv;
23152 {
23153
23154         /* pthread test function */
23155 #ifndef PTHREAD_CREATE_DETACHED
23156 #define PTHREAD_CREATE_DETACHED 1
23157 #endif
23158         pthread_t t;
23159         int status;
23160         int detach = PTHREAD_CREATE_DETACHED;
23161
23162 #if HAVE_PTHREADS > 4
23163         /* Final pthreads */
23164         pthread_attr_t attr;
23165
23166         status = pthread_attr_init(&attr);
23167         if( status ) return status;
23168
23169 #if HAVE_PTHREADS < 7
23170         status = pthread_attr_setdetachstate(&attr, &detach);
23171         if( status < 0 ) status = errno;
23172 #else
23173         status = pthread_attr_setdetachstate(&attr, detach);
23174 #endif
23175         if( status ) return status;
23176         status = pthread_create( &t, &attr, task, NULL );
23177 #if HAVE_PTHREADS < 7
23178         if( status < 0 ) status = errno;
23179 #endif
23180         if( status ) return status;
23181 #else
23182         /* Draft 4 pthreads */
23183         status = pthread_create( &t, pthread_attr_default, task, NULL );
23184         if( status ) return errno;
23185
23186         /* give thread a chance to complete */
23187         /* it should remain joinable and hence detachable */
23188         sleep( 1 );
23189
23190         status = pthread_detach( &t );
23191         if( status ) return errno;
23192 #endif
23193
23194 #ifdef HAVE_LINUX_THREADS
23195         pthread_kill_other_threads_np();
23196 #endif
23197
23198         return 0;
23199
23200 }
23201
23202 _ACEOF
23203 rm -f conftest$ac_exeext
23204 if { (ac_try="$ac_link"
23205 case "(($ac_try" in
23206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207   *) ac_try_echo=$ac_try;;
23208 esac
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210   (eval "$ac_link") 2>&5
23211   ac_status=$?
23212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23214   { (case "(($ac_try" in
23215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216   *) ac_try_echo=$ac_try;;
23217 esac
23218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23219   (eval "$ac_try") 2>&5
23220   ac_status=$?
23221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222   (exit $ac_status); }; }; then
23223   ol_cv_pthread_lpthread=yes
23224 else
23225   echo "$as_me: program exited with status $ac_status" >&5
23226 echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23228
23229 ( exit $ac_status )
23230 ol_cv_pthread_lpthread=no
23231 fi
23232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23233 fi
23234
23235
23236
23237                 # restore the LIBS
23238                 LIBS="$ol_LIBS"
23239
23240 fi
23241 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23242 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23243
23244         if test $ol_cv_pthread_lpthread = yes ; then
23245                 ol_link_pthreads="-lpthread"
23246                 ol_link_threads=posix
23247         fi
23248 fi
23249
23250                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23251 if test "$ol_link_threads" = no ; then
23252         # try -lc_r
23253         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23254 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23255 if test "${ol_cv_pthread_lc_r+set}" = set; then
23256   echo $ECHO_N "(cached) $ECHO_C" >&6
23257 else
23258
23259                 # save the flags
23260                 ol_LIBS="$LIBS"
23261                 LIBS="-lc_r $LIBS"
23262
23263                 if test "$cross_compiling" = yes; then
23264   cat >conftest.$ac_ext <<_ACEOF
23265 /* confdefs.h.  */
23266 _ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h.  */
23270
23271 /* pthread test headers */
23272 #include <pthread.h>
23273 #if HAVE_PTHREADS < 7
23274 #include <errno.h>
23275 #endif
23276 #ifndef NULL
23277 #define NULL (void*)0
23278 #endif
23279
23280 static void *task(p)
23281         void *p;
23282 {
23283         return (void *) (p == NULL);
23284 }
23285
23286 int
23287 main ()
23288 {
23289
23290         /* pthread test function */
23291 #ifndef PTHREAD_CREATE_DETACHED
23292 #define PTHREAD_CREATE_DETACHED 1
23293 #endif
23294         pthread_t t;
23295         int status;
23296         int detach = PTHREAD_CREATE_DETACHED;
23297
23298 #if HAVE_PTHREADS > 4
23299         /* Final pthreads */
23300         pthread_attr_t attr;
23301
23302         status = pthread_attr_init(&attr);
23303         if( status ) return status;
23304
23305 #if HAVE_PTHREADS < 7
23306         status = pthread_attr_setdetachstate(&attr, &detach);
23307         if( status < 0 ) status = errno;
23308 #else
23309         status = pthread_attr_setdetachstate(&attr, detach);
23310 #endif
23311         if( status ) return status;
23312         status = pthread_create( &t, &attr, task, NULL );
23313 #if HAVE_PTHREADS < 7
23314         if( status < 0 ) status = errno;
23315 #endif
23316         if( status ) return status;
23317 #else
23318         /* Draft 4 pthreads */
23319         status = pthread_create( &t, pthread_attr_default, task, NULL );
23320         if( status ) return errno;
23321
23322         /* give thread a chance to complete */
23323         /* it should remain joinable and hence detachable */
23324         sleep( 1 );
23325
23326         status = pthread_detach( &t );
23327         if( status ) return errno;
23328 #endif
23329
23330 #ifdef HAVE_LINUX_THREADS
23331         pthread_kill_other_threads_np();
23332 #endif
23333
23334         return 0;
23335
23336   ;
23337   return 0;
23338 }
23339 _ACEOF
23340 rm -f conftest.$ac_objext conftest$ac_exeext
23341 if { (ac_try="$ac_link"
23342 case "(($ac_try" in
23343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344   *) ac_try_echo=$ac_try;;
23345 esac
23346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23347   (eval "$ac_link") 2>conftest.er1
23348   ac_status=$?
23349   grep -v '^ *+' conftest.er1 >conftest.err
23350   rm -f conftest.er1
23351   cat conftest.err >&5
23352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353   (exit $ac_status); } && {
23354          test -z "$ac_c_werror_flag" ||
23355          test ! -s conftest.err
23356        } && test -s conftest$ac_exeext &&
23357        $as_test_x conftest$ac_exeext; then
23358   ol_cv_pthread_lc_r=yes
23359 else
23360   echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23362
23363         ol_cv_pthread_lc_r=no
23364 fi
23365
23366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23367       conftest$ac_exeext conftest.$ac_ext
23368 else
23369   cat >conftest.$ac_ext <<_ACEOF
23370 /* confdefs.h.  */
23371 _ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h.  */
23375
23376 /* pthread test headers */
23377 #include <pthread.h>
23378 #if HAVE_PTHREADS < 7
23379 #include <errno.h>
23380 #endif
23381 #ifndef NULL
23382 #define NULL (void*)0
23383 #endif
23384
23385 static void *task(p)
23386         void *p;
23387 {
23388         return (void *) (p == NULL);
23389 }
23390
23391
23392 int main(argc, argv)
23393         int argc;
23394         char **argv;
23395 {
23396
23397         /* pthread test function */
23398 #ifndef PTHREAD_CREATE_DETACHED
23399 #define PTHREAD_CREATE_DETACHED 1
23400 #endif
23401         pthread_t t;
23402         int status;
23403         int detach = PTHREAD_CREATE_DETACHED;
23404
23405 #if HAVE_PTHREADS > 4
23406         /* Final pthreads */
23407         pthread_attr_t attr;
23408
23409         status = pthread_attr_init(&attr);
23410         if( status ) return status;
23411
23412 #if HAVE_PTHREADS < 7
23413         status = pthread_attr_setdetachstate(&attr, &detach);
23414         if( status < 0 ) status = errno;
23415 #else
23416         status = pthread_attr_setdetachstate(&attr, detach);
23417 #endif
23418         if( status ) return status;
23419         status = pthread_create( &t, &attr, task, NULL );
23420 #if HAVE_PTHREADS < 7
23421         if( status < 0 ) status = errno;
23422 #endif
23423         if( status ) return status;
23424 #else
23425         /* Draft 4 pthreads */
23426         status = pthread_create( &t, pthread_attr_default, task, NULL );
23427         if( status ) return errno;
23428
23429         /* give thread a chance to complete */
23430         /* it should remain joinable and hence detachable */
23431         sleep( 1 );
23432
23433         status = pthread_detach( &t );
23434         if( status ) return errno;
23435 #endif
23436
23437 #ifdef HAVE_LINUX_THREADS
23438         pthread_kill_other_threads_np();
23439 #endif
23440
23441         return 0;
23442
23443 }
23444
23445 _ACEOF
23446 rm -f conftest$ac_exeext
23447 if { (ac_try="$ac_link"
23448 case "(($ac_try" in
23449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450   *) ac_try_echo=$ac_try;;
23451 esac
23452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23453   (eval "$ac_link") 2>&5
23454   ac_status=$?
23455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23457   { (case "(($ac_try" in
23458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23459   *) ac_try_echo=$ac_try;;
23460 esac
23461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23462   (eval "$ac_try") 2>&5
23463   ac_status=$?
23464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465   (exit $ac_status); }; }; then
23466   ol_cv_pthread_lc_r=yes
23467 else
23468   echo "$as_me: program exited with status $ac_status" >&5
23469 echo "$as_me: failed program was:" >&5
23470 sed 's/^/| /' conftest.$ac_ext >&5
23471
23472 ( exit $ac_status )
23473 ol_cv_pthread_lc_r=no
23474 fi
23475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23476 fi
23477
23478
23479
23480                 # restore the LIBS
23481                 LIBS="$ol_LIBS"
23482
23483 fi
23484 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23485 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23486
23487         if test $ol_cv_pthread_lc_r = yes ; then
23488                 ol_link_pthreads="-lc_r"
23489                 ol_link_threads=posix
23490         fi
23491 fi
23492
23493
23494                 # Pthread try link: -threads (ol_cv_pthread_threads)
23495 if test "$ol_link_threads" = no ; then
23496         # try -threads
23497         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23498 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23499 if test "${ol_cv_pthread_threads+set}" = set; then
23500   echo $ECHO_N "(cached) $ECHO_C" >&6
23501 else
23502
23503                 # save the flags
23504                 ol_LIBS="$LIBS"
23505                 LIBS="-threads $LIBS"
23506
23507                 if test "$cross_compiling" = yes; then
23508   cat >conftest.$ac_ext <<_ACEOF
23509 /* confdefs.h.  */
23510 _ACEOF
23511 cat confdefs.h >>conftest.$ac_ext
23512 cat >>conftest.$ac_ext <<_ACEOF
23513 /* end confdefs.h.  */
23514
23515 /* pthread test headers */
23516 #include <pthread.h>
23517 #if HAVE_PTHREADS < 7
23518 #include <errno.h>
23519 #endif
23520 #ifndef NULL
23521 #define NULL (void*)0
23522 #endif
23523
23524 static void *task(p)
23525         void *p;
23526 {
23527         return (void *) (p == NULL);
23528 }
23529
23530 int
23531 main ()
23532 {
23533
23534         /* pthread test function */
23535 #ifndef PTHREAD_CREATE_DETACHED
23536 #define PTHREAD_CREATE_DETACHED 1
23537 #endif
23538         pthread_t t;
23539         int status;
23540         int detach = PTHREAD_CREATE_DETACHED;
23541
23542 #if HAVE_PTHREADS > 4
23543         /* Final pthreads */
23544         pthread_attr_t attr;
23545
23546         status = pthread_attr_init(&attr);
23547         if( status ) return status;
23548
23549 #if HAVE_PTHREADS < 7
23550         status = pthread_attr_setdetachstate(&attr, &detach);
23551         if( status < 0 ) status = errno;
23552 #else
23553         status = pthread_attr_setdetachstate(&attr, detach);
23554 #endif
23555         if( status ) return status;
23556         status = pthread_create( &t, &attr, task, NULL );
23557 #if HAVE_PTHREADS < 7
23558         if( status < 0 ) status = errno;
23559 #endif
23560         if( status ) return status;
23561 #else
23562         /* Draft 4 pthreads */
23563         status = pthread_create( &t, pthread_attr_default, task, NULL );
23564         if( status ) return errno;
23565
23566         /* give thread a chance to complete */
23567         /* it should remain joinable and hence detachable */
23568         sleep( 1 );
23569
23570         status = pthread_detach( &t );
23571         if( status ) return errno;
23572 #endif
23573
23574 #ifdef HAVE_LINUX_THREADS
23575         pthread_kill_other_threads_np();
23576 #endif
23577
23578         return 0;
23579
23580   ;
23581   return 0;
23582 }
23583 _ACEOF
23584 rm -f conftest.$ac_objext conftest$ac_exeext
23585 if { (ac_try="$ac_link"
23586 case "(($ac_try" in
23587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588   *) ac_try_echo=$ac_try;;
23589 esac
23590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591   (eval "$ac_link") 2>conftest.er1
23592   ac_status=$?
23593   grep -v '^ *+' conftest.er1 >conftest.err
23594   rm -f conftest.er1
23595   cat conftest.err >&5
23596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597   (exit $ac_status); } && {
23598          test -z "$ac_c_werror_flag" ||
23599          test ! -s conftest.err
23600        } && test -s conftest$ac_exeext &&
23601        $as_test_x conftest$ac_exeext; then
23602   ol_cv_pthread_threads=yes
23603 else
23604   echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23606
23607         ol_cv_pthread_threads=no
23608 fi
23609
23610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23611       conftest$ac_exeext conftest.$ac_ext
23612 else
23613   cat >conftest.$ac_ext <<_ACEOF
23614 /* confdefs.h.  */
23615 _ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h.  */
23619
23620 /* pthread test headers */
23621 #include <pthread.h>
23622 #if HAVE_PTHREADS < 7
23623 #include <errno.h>
23624 #endif
23625 #ifndef NULL
23626 #define NULL (void*)0
23627 #endif
23628
23629 static void *task(p)
23630         void *p;
23631 {
23632         return (void *) (p == NULL);
23633 }
23634
23635
23636 int main(argc, argv)
23637         int argc;
23638         char **argv;
23639 {
23640
23641         /* pthread test function */
23642 #ifndef PTHREAD_CREATE_DETACHED
23643 #define PTHREAD_CREATE_DETACHED 1
23644 #endif
23645         pthread_t t;
23646         int status;
23647         int detach = PTHREAD_CREATE_DETACHED;
23648
23649 #if HAVE_PTHREADS > 4
23650         /* Final pthreads */
23651         pthread_attr_t attr;
23652
23653         status = pthread_attr_init(&attr);
23654         if( status ) return status;
23655
23656 #if HAVE_PTHREADS < 7
23657         status = pthread_attr_setdetachstate(&attr, &detach);
23658         if( status < 0 ) status = errno;
23659 #else
23660         status = pthread_attr_setdetachstate(&attr, detach);
23661 #endif
23662         if( status ) return status;
23663         status = pthread_create( &t, &attr, task, NULL );
23664 #if HAVE_PTHREADS < 7
23665         if( status < 0 ) status = errno;
23666 #endif
23667         if( status ) return status;
23668 #else
23669         /* Draft 4 pthreads */
23670         status = pthread_create( &t, pthread_attr_default, task, NULL );
23671         if( status ) return errno;
23672
23673         /* give thread a chance to complete */
23674         /* it should remain joinable and hence detachable */
23675         sleep( 1 );
23676
23677         status = pthread_detach( &t );
23678         if( status ) return errno;
23679 #endif
23680
23681 #ifdef HAVE_LINUX_THREADS
23682         pthread_kill_other_threads_np();
23683 #endif
23684
23685         return 0;
23686
23687 }
23688
23689 _ACEOF
23690 rm -f conftest$ac_exeext
23691 if { (ac_try="$ac_link"
23692 case "(($ac_try" in
23693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694   *) ac_try_echo=$ac_try;;
23695 esac
23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697   (eval "$ac_link") 2>&5
23698   ac_status=$?
23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23701   { (case "(($ac_try" in
23702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23703   *) ac_try_echo=$ac_try;;
23704 esac
23705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23706   (eval "$ac_try") 2>&5
23707   ac_status=$?
23708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709   (exit $ac_status); }; }; then
23710   ol_cv_pthread_threads=yes
23711 else
23712   echo "$as_me: program exited with status $ac_status" >&5
23713 echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23715
23716 ( exit $ac_status )
23717 ol_cv_pthread_threads=no
23718 fi
23719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23720 fi
23721
23722
23723
23724                 # restore the LIBS
23725                 LIBS="$ol_LIBS"
23726
23727 fi
23728 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23729 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23730
23731         if test $ol_cv_pthread_threads = yes ; then
23732                 ol_link_pthreads="-threads"
23733                 ol_link_threads=posix
23734         fi
23735 fi
23736
23737
23738                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23739 if test "$ol_link_threads" = no ; then
23740         # try -lpthreads -lmach -lexc -lc_r
23741         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23742 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23743 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23744   echo $ECHO_N "(cached) $ECHO_C" >&6
23745 else
23746
23747                 # save the flags
23748                 ol_LIBS="$LIBS"
23749                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23750
23751                 if test "$cross_compiling" = yes; then
23752   cat >conftest.$ac_ext <<_ACEOF
23753 /* confdefs.h.  */
23754 _ACEOF
23755 cat confdefs.h >>conftest.$ac_ext
23756 cat >>conftest.$ac_ext <<_ACEOF
23757 /* end confdefs.h.  */
23758
23759 /* pthread test headers */
23760 #include <pthread.h>
23761 #if HAVE_PTHREADS < 7
23762 #include <errno.h>
23763 #endif
23764 #ifndef NULL
23765 #define NULL (void*)0
23766 #endif
23767
23768 static void *task(p)
23769         void *p;
23770 {
23771         return (void *) (p == NULL);
23772 }
23773
23774 int
23775 main ()
23776 {
23777
23778         /* pthread test function */
23779 #ifndef PTHREAD_CREATE_DETACHED
23780 #define PTHREAD_CREATE_DETACHED 1
23781 #endif
23782         pthread_t t;
23783         int status;
23784         int detach = PTHREAD_CREATE_DETACHED;
23785
23786 #if HAVE_PTHREADS > 4
23787         /* Final pthreads */
23788         pthread_attr_t attr;
23789
23790         status = pthread_attr_init(&attr);
23791         if( status ) return status;
23792
23793 #if HAVE_PTHREADS < 7
23794         status = pthread_attr_setdetachstate(&attr, &detach);
23795         if( status < 0 ) status = errno;
23796 #else
23797         status = pthread_attr_setdetachstate(&attr, detach);
23798 #endif
23799         if( status ) return status;
23800         status = pthread_create( &t, &attr, task, NULL );
23801 #if HAVE_PTHREADS < 7
23802         if( status < 0 ) status = errno;
23803 #endif
23804         if( status ) return status;
23805 #else
23806         /* Draft 4 pthreads */
23807         status = pthread_create( &t, pthread_attr_default, task, NULL );
23808         if( status ) return errno;
23809
23810         /* give thread a chance to complete */
23811         /* it should remain joinable and hence detachable */
23812         sleep( 1 );
23813
23814         status = pthread_detach( &t );
23815         if( status ) return errno;
23816 #endif
23817
23818 #ifdef HAVE_LINUX_THREADS
23819         pthread_kill_other_threads_np();
23820 #endif
23821
23822         return 0;
23823
23824   ;
23825   return 0;
23826 }
23827 _ACEOF
23828 rm -f conftest.$ac_objext conftest$ac_exeext
23829 if { (ac_try="$ac_link"
23830 case "(($ac_try" in
23831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23832   *) ac_try_echo=$ac_try;;
23833 esac
23834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23835   (eval "$ac_link") 2>conftest.er1
23836   ac_status=$?
23837   grep -v '^ *+' conftest.er1 >conftest.err
23838   rm -f conftest.er1
23839   cat conftest.err >&5
23840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841   (exit $ac_status); } && {
23842          test -z "$ac_c_werror_flag" ||
23843          test ! -s conftest.err
23844        } && test -s conftest$ac_exeext &&
23845        $as_test_x conftest$ac_exeext; then
23846   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23847 else
23848   echo "$as_me: failed program was:" >&5
23849 sed 's/^/| /' conftest.$ac_ext >&5
23850
23851         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23852 fi
23853
23854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23855       conftest$ac_exeext conftest.$ac_ext
23856 else
23857   cat >conftest.$ac_ext <<_ACEOF
23858 /* confdefs.h.  */
23859 _ACEOF
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h.  */
23863
23864 /* pthread test headers */
23865 #include <pthread.h>
23866 #if HAVE_PTHREADS < 7
23867 #include <errno.h>
23868 #endif
23869 #ifndef NULL
23870 #define NULL (void*)0
23871 #endif
23872
23873 static void *task(p)
23874         void *p;
23875 {
23876         return (void *) (p == NULL);
23877 }
23878
23879
23880 int main(argc, argv)
23881         int argc;
23882         char **argv;
23883 {
23884
23885         /* pthread test function */
23886 #ifndef PTHREAD_CREATE_DETACHED
23887 #define PTHREAD_CREATE_DETACHED 1
23888 #endif
23889         pthread_t t;
23890         int status;
23891         int detach = PTHREAD_CREATE_DETACHED;
23892
23893 #if HAVE_PTHREADS > 4
23894         /* Final pthreads */
23895         pthread_attr_t attr;
23896
23897         status = pthread_attr_init(&attr);
23898         if( status ) return status;
23899
23900 #if HAVE_PTHREADS < 7
23901         status = pthread_attr_setdetachstate(&attr, &detach);
23902         if( status < 0 ) status = errno;
23903 #else
23904         status = pthread_attr_setdetachstate(&attr, detach);
23905 #endif
23906         if( status ) return status;
23907         status = pthread_create( &t, &attr, task, NULL );
23908 #if HAVE_PTHREADS < 7
23909         if( status < 0 ) status = errno;
23910 #endif
23911         if( status ) return status;
23912 #else
23913         /* Draft 4 pthreads */
23914         status = pthread_create( &t, pthread_attr_default, task, NULL );
23915         if( status ) return errno;
23916
23917         /* give thread a chance to complete */
23918         /* it should remain joinable and hence detachable */
23919         sleep( 1 );
23920
23921         status = pthread_detach( &t );
23922         if( status ) return errno;
23923 #endif
23924
23925 #ifdef HAVE_LINUX_THREADS
23926         pthread_kill_other_threads_np();
23927 #endif
23928
23929         return 0;
23930
23931 }
23932
23933 _ACEOF
23934 rm -f conftest$ac_exeext
23935 if { (ac_try="$ac_link"
23936 case "(($ac_try" in
23937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23938   *) ac_try_echo=$ac_try;;
23939 esac
23940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23941   (eval "$ac_link") 2>&5
23942   ac_status=$?
23943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23945   { (case "(($ac_try" in
23946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23947   *) ac_try_echo=$ac_try;;
23948 esac
23949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23950   (eval "$ac_try") 2>&5
23951   ac_status=$?
23952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953   (exit $ac_status); }; }; then
23954   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23955 else
23956   echo "$as_me: program exited with status $ac_status" >&5
23957 echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23959
23960 ( exit $ac_status )
23961 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23962 fi
23963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23964 fi
23965
23966
23967
23968                 # restore the LIBS
23969                 LIBS="$ol_LIBS"
23970
23971 fi
23972 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23973 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23974
23975         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23976                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23977                 ol_link_threads=posix
23978         fi
23979 fi
23980
23981                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23982 if test "$ol_link_threads" = no ; then
23983         # try -lpthreads -lmach -lexc
23984         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23985 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23986 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23987   echo $ECHO_N "(cached) $ECHO_C" >&6
23988 else
23989
23990                 # save the flags
23991                 ol_LIBS="$LIBS"
23992                 LIBS="-lpthreads -lmach -lexc $LIBS"
23993
23994                 if test "$cross_compiling" = yes; then
23995   cat >conftest.$ac_ext <<_ACEOF
23996 /* confdefs.h.  */
23997 _ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h.  */
24001
24002 /* pthread test headers */
24003 #include <pthread.h>
24004 #if HAVE_PTHREADS < 7
24005 #include <errno.h>
24006 #endif
24007 #ifndef NULL
24008 #define NULL (void*)0
24009 #endif
24010
24011 static void *task(p)
24012         void *p;
24013 {
24014         return (void *) (p == NULL);
24015 }
24016
24017 int
24018 main ()
24019 {
24020
24021         /* pthread test function */
24022 #ifndef PTHREAD_CREATE_DETACHED
24023 #define PTHREAD_CREATE_DETACHED 1
24024 #endif
24025         pthread_t t;
24026         int status;
24027         int detach = PTHREAD_CREATE_DETACHED;
24028
24029 #if HAVE_PTHREADS > 4
24030         /* Final pthreads */
24031         pthread_attr_t attr;
24032
24033         status = pthread_attr_init(&attr);
24034         if( status ) return status;
24035
24036 #if HAVE_PTHREADS < 7
24037         status = pthread_attr_setdetachstate(&attr, &detach);
24038         if( status < 0 ) status = errno;
24039 #else
24040         status = pthread_attr_setdetachstate(&attr, detach);
24041 #endif
24042         if( status ) return status;
24043         status = pthread_create( &t, &attr, task, NULL );
24044 #if HAVE_PTHREADS < 7
24045         if( status < 0 ) status = errno;
24046 #endif
24047         if( status ) return status;
24048 #else
24049         /* Draft 4 pthreads */
24050         status = pthread_create( &t, pthread_attr_default, task, NULL );
24051         if( status ) return errno;
24052
24053         /* give thread a chance to complete */
24054         /* it should remain joinable and hence detachable */
24055         sleep( 1 );
24056
24057         status = pthread_detach( &t );
24058         if( status ) return errno;
24059 #endif
24060
24061 #ifdef HAVE_LINUX_THREADS
24062         pthread_kill_other_threads_np();
24063 #endif
24064
24065         return 0;
24066
24067   ;
24068   return 0;
24069 }
24070 _ACEOF
24071 rm -f conftest.$ac_objext conftest$ac_exeext
24072 if { (ac_try="$ac_link"
24073 case "(($ac_try" in
24074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24075   *) ac_try_echo=$ac_try;;
24076 esac
24077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24078   (eval "$ac_link") 2>conftest.er1
24079   ac_status=$?
24080   grep -v '^ *+' conftest.er1 >conftest.err
24081   rm -f conftest.er1
24082   cat conftest.err >&5
24083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084   (exit $ac_status); } && {
24085          test -z "$ac_c_werror_flag" ||
24086          test ! -s conftest.err
24087        } && test -s conftest$ac_exeext &&
24088        $as_test_x conftest$ac_exeext; then
24089   ol_cv_pthread_lpthreads_lmach_lexc=yes
24090 else
24091   echo "$as_me: failed program was:" >&5
24092 sed 's/^/| /' conftest.$ac_ext >&5
24093
24094         ol_cv_pthread_lpthreads_lmach_lexc=no
24095 fi
24096
24097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24098       conftest$ac_exeext conftest.$ac_ext
24099 else
24100   cat >conftest.$ac_ext <<_ACEOF
24101 /* confdefs.h.  */
24102 _ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h.  */
24106
24107 /* pthread test headers */
24108 #include <pthread.h>
24109 #if HAVE_PTHREADS < 7
24110 #include <errno.h>
24111 #endif
24112 #ifndef NULL
24113 #define NULL (void*)0
24114 #endif
24115
24116 static void *task(p)
24117         void *p;
24118 {
24119         return (void *) (p == NULL);
24120 }
24121
24122
24123 int main(argc, argv)
24124         int argc;
24125         char **argv;
24126 {
24127
24128         /* pthread test function */
24129 #ifndef PTHREAD_CREATE_DETACHED
24130 #define PTHREAD_CREATE_DETACHED 1
24131 #endif
24132         pthread_t t;
24133         int status;
24134         int detach = PTHREAD_CREATE_DETACHED;
24135
24136 #if HAVE_PTHREADS > 4
24137         /* Final pthreads */
24138         pthread_attr_t attr;
24139
24140         status = pthread_attr_init(&attr);
24141         if( status ) return status;
24142
24143 #if HAVE_PTHREADS < 7
24144         status = pthread_attr_setdetachstate(&attr, &detach);
24145         if( status < 0 ) status = errno;
24146 #else
24147         status = pthread_attr_setdetachstate(&attr, detach);
24148 #endif
24149         if( status ) return status;
24150         status = pthread_create( &t, &attr, task, NULL );
24151 #if HAVE_PTHREADS < 7
24152         if( status < 0 ) status = errno;
24153 #endif
24154         if( status ) return status;
24155 #else
24156         /* Draft 4 pthreads */
24157         status = pthread_create( &t, pthread_attr_default, task, NULL );
24158         if( status ) return errno;
24159
24160         /* give thread a chance to complete */
24161         /* it should remain joinable and hence detachable */
24162         sleep( 1 );
24163
24164         status = pthread_detach( &t );
24165         if( status ) return errno;
24166 #endif
24167
24168 #ifdef HAVE_LINUX_THREADS
24169         pthread_kill_other_threads_np();
24170 #endif
24171
24172         return 0;
24173
24174 }
24175
24176 _ACEOF
24177 rm -f conftest$ac_exeext
24178 if { (ac_try="$ac_link"
24179 case "(($ac_try" in
24180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24181   *) ac_try_echo=$ac_try;;
24182 esac
24183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24184   (eval "$ac_link") 2>&5
24185   ac_status=$?
24186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24188   { (case "(($ac_try" in
24189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24190   *) ac_try_echo=$ac_try;;
24191 esac
24192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24193   (eval "$ac_try") 2>&5
24194   ac_status=$?
24195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196   (exit $ac_status); }; }; then
24197   ol_cv_pthread_lpthreads_lmach_lexc=yes
24198 else
24199   echo "$as_me: program exited with status $ac_status" >&5
24200 echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24202
24203 ( exit $ac_status )
24204 ol_cv_pthread_lpthreads_lmach_lexc=no
24205 fi
24206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24207 fi
24208
24209
24210
24211                 # restore the LIBS
24212                 LIBS="$ol_LIBS"
24213
24214 fi
24215 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24216 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24217
24218         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24219                 ol_link_pthreads="-lpthreads -lmach -lexc"
24220                 ol_link_threads=posix
24221         fi
24222 fi
24223
24224                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24225 if test "$ol_link_threads" = no ; then
24226         # try -lpthreads -lexc
24227         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24228 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24229 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24230   echo $ECHO_N "(cached) $ECHO_C" >&6
24231 else
24232
24233                 # save the flags
24234                 ol_LIBS="$LIBS"
24235                 LIBS="-lpthreads -lexc $LIBS"
24236
24237                 if test "$cross_compiling" = yes; then
24238   cat >conftest.$ac_ext <<_ACEOF
24239 /* confdefs.h.  */
24240 _ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h.  */
24244
24245 /* pthread test headers */
24246 #include <pthread.h>
24247 #if HAVE_PTHREADS < 7
24248 #include <errno.h>
24249 #endif
24250 #ifndef NULL
24251 #define NULL (void*)0
24252 #endif
24253
24254 static void *task(p)
24255         void *p;
24256 {
24257         return (void *) (p == NULL);
24258 }
24259
24260 int
24261 main ()
24262 {
24263
24264         /* pthread test function */
24265 #ifndef PTHREAD_CREATE_DETACHED
24266 #define PTHREAD_CREATE_DETACHED 1
24267 #endif
24268         pthread_t t;
24269         int status;
24270         int detach = PTHREAD_CREATE_DETACHED;
24271
24272 #if HAVE_PTHREADS > 4
24273         /* Final pthreads */
24274         pthread_attr_t attr;
24275
24276         status = pthread_attr_init(&attr);
24277         if( status ) return status;
24278
24279 #if HAVE_PTHREADS < 7
24280         status = pthread_attr_setdetachstate(&attr, &detach);
24281         if( status < 0 ) status = errno;
24282 #else
24283         status = pthread_attr_setdetachstate(&attr, detach);
24284 #endif
24285         if( status ) return status;
24286         status = pthread_create( &t, &attr, task, NULL );
24287 #if HAVE_PTHREADS < 7
24288         if( status < 0 ) status = errno;
24289 #endif
24290         if( status ) return status;
24291 #else
24292         /* Draft 4 pthreads */
24293         status = pthread_create( &t, pthread_attr_default, task, NULL );
24294         if( status ) return errno;
24295
24296         /* give thread a chance to complete */
24297         /* it should remain joinable and hence detachable */
24298         sleep( 1 );
24299
24300         status = pthread_detach( &t );
24301         if( status ) return errno;
24302 #endif
24303
24304 #ifdef HAVE_LINUX_THREADS
24305         pthread_kill_other_threads_np();
24306 #endif
24307
24308         return 0;
24309
24310   ;
24311   return 0;
24312 }
24313 _ACEOF
24314 rm -f conftest.$ac_objext conftest$ac_exeext
24315 if { (ac_try="$ac_link"
24316 case "(($ac_try" in
24317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318   *) ac_try_echo=$ac_try;;
24319 esac
24320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321   (eval "$ac_link") 2>conftest.er1
24322   ac_status=$?
24323   grep -v '^ *+' conftest.er1 >conftest.err
24324   rm -f conftest.er1
24325   cat conftest.err >&5
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); } && {
24328          test -z "$ac_c_werror_flag" ||
24329          test ! -s conftest.err
24330        } && test -s conftest$ac_exeext &&
24331        $as_test_x conftest$ac_exeext; then
24332   ol_cv_pthread_lpthreads_lexc=yes
24333 else
24334   echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24336
24337         ol_cv_pthread_lpthreads_lexc=no
24338 fi
24339
24340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24341       conftest$ac_exeext conftest.$ac_ext
24342 else
24343   cat >conftest.$ac_ext <<_ACEOF
24344 /* confdefs.h.  */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h.  */
24349
24350 /* pthread test headers */
24351 #include <pthread.h>
24352 #if HAVE_PTHREADS < 7
24353 #include <errno.h>
24354 #endif
24355 #ifndef NULL
24356 #define NULL (void*)0
24357 #endif
24358
24359 static void *task(p)
24360         void *p;
24361 {
24362         return (void *) (p == NULL);
24363 }
24364
24365
24366 int main(argc, argv)
24367         int argc;
24368         char **argv;
24369 {
24370
24371         /* pthread test function */
24372 #ifndef PTHREAD_CREATE_DETACHED
24373 #define PTHREAD_CREATE_DETACHED 1
24374 #endif
24375         pthread_t t;
24376         int status;
24377         int detach = PTHREAD_CREATE_DETACHED;
24378
24379 #if HAVE_PTHREADS > 4
24380         /* Final pthreads */
24381         pthread_attr_t attr;
24382
24383         status = pthread_attr_init(&attr);
24384         if( status ) return status;
24385
24386 #if HAVE_PTHREADS < 7
24387         status = pthread_attr_setdetachstate(&attr, &detach);
24388         if( status < 0 ) status = errno;
24389 #else
24390         status = pthread_attr_setdetachstate(&attr, detach);
24391 #endif
24392         if( status ) return status;
24393         status = pthread_create( &t, &attr, task, NULL );
24394 #if HAVE_PTHREADS < 7
24395         if( status < 0 ) status = errno;
24396 #endif
24397         if( status ) return status;
24398 #else
24399         /* Draft 4 pthreads */
24400         status = pthread_create( &t, pthread_attr_default, task, NULL );
24401         if( status ) return errno;
24402
24403         /* give thread a chance to complete */
24404         /* it should remain joinable and hence detachable */
24405         sleep( 1 );
24406
24407         status = pthread_detach( &t );
24408         if( status ) return errno;
24409 #endif
24410
24411 #ifdef HAVE_LINUX_THREADS
24412         pthread_kill_other_threads_np();
24413 #endif
24414
24415         return 0;
24416
24417 }
24418
24419 _ACEOF
24420 rm -f conftest$ac_exeext
24421 if { (ac_try="$ac_link"
24422 case "(($ac_try" in
24423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24424   *) ac_try_echo=$ac_try;;
24425 esac
24426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24427   (eval "$ac_link") 2>&5
24428   ac_status=$?
24429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24431   { (case "(($ac_try" in
24432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24433   *) ac_try_echo=$ac_try;;
24434 esac
24435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24436   (eval "$ac_try") 2>&5
24437   ac_status=$?
24438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439   (exit $ac_status); }; }; then
24440   ol_cv_pthread_lpthreads_lexc=yes
24441 else
24442   echo "$as_me: program exited with status $ac_status" >&5
24443 echo "$as_me: failed program was:" >&5
24444 sed 's/^/| /' conftest.$ac_ext >&5
24445
24446 ( exit $ac_status )
24447 ol_cv_pthread_lpthreads_lexc=no
24448 fi
24449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24450 fi
24451
24452
24453
24454                 # restore the LIBS
24455                 LIBS="$ol_LIBS"
24456
24457 fi
24458 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24459 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24460
24461         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24462                 ol_link_pthreads="-lpthreads -lexc"
24463                 ol_link_threads=posix
24464         fi
24465 fi
24466
24467
24468                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24469 if test "$ol_link_threads" = no ; then
24470         # try -lpthreads
24471         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24472 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24473 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24474   echo $ECHO_N "(cached) $ECHO_C" >&6
24475 else
24476
24477                 # save the flags
24478                 ol_LIBS="$LIBS"
24479                 LIBS="-lpthreads $LIBS"
24480
24481                 if test "$cross_compiling" = yes; then
24482   cat >conftest.$ac_ext <<_ACEOF
24483 /* confdefs.h.  */
24484 _ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h.  */
24488
24489 /* pthread test headers */
24490 #include <pthread.h>
24491 #if HAVE_PTHREADS < 7
24492 #include <errno.h>
24493 #endif
24494 #ifndef NULL
24495 #define NULL (void*)0
24496 #endif
24497
24498 static void *task(p)
24499         void *p;
24500 {
24501         return (void *) (p == NULL);
24502 }
24503
24504 int
24505 main ()
24506 {
24507
24508         /* pthread test function */
24509 #ifndef PTHREAD_CREATE_DETACHED
24510 #define PTHREAD_CREATE_DETACHED 1
24511 #endif
24512         pthread_t t;
24513         int status;
24514         int detach = PTHREAD_CREATE_DETACHED;
24515
24516 #if HAVE_PTHREADS > 4
24517         /* Final pthreads */
24518         pthread_attr_t attr;
24519
24520         status = pthread_attr_init(&attr);
24521         if( status ) return status;
24522
24523 #if HAVE_PTHREADS < 7
24524         status = pthread_attr_setdetachstate(&attr, &detach);
24525         if( status < 0 ) status = errno;
24526 #else
24527         status = pthread_attr_setdetachstate(&attr, detach);
24528 #endif
24529         if( status ) return status;
24530         status = pthread_create( &t, &attr, task, NULL );
24531 #if HAVE_PTHREADS < 7
24532         if( status < 0 ) status = errno;
24533 #endif
24534         if( status ) return status;
24535 #else
24536         /* Draft 4 pthreads */
24537         status = pthread_create( &t, pthread_attr_default, task, NULL );
24538         if( status ) return errno;
24539
24540         /* give thread a chance to complete */
24541         /* it should remain joinable and hence detachable */
24542         sleep( 1 );
24543
24544         status = pthread_detach( &t );
24545         if( status ) return errno;
24546 #endif
24547
24548 #ifdef HAVE_LINUX_THREADS
24549         pthread_kill_other_threads_np();
24550 #endif
24551
24552         return 0;
24553
24554   ;
24555   return 0;
24556 }
24557 _ACEOF
24558 rm -f conftest.$ac_objext conftest$ac_exeext
24559 if { (ac_try="$ac_link"
24560 case "(($ac_try" in
24561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562   *) ac_try_echo=$ac_try;;
24563 esac
24564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24565   (eval "$ac_link") 2>conftest.er1
24566   ac_status=$?
24567   grep -v '^ *+' conftest.er1 >conftest.err
24568   rm -f conftest.er1
24569   cat conftest.err >&5
24570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571   (exit $ac_status); } && {
24572          test -z "$ac_c_werror_flag" ||
24573          test ! -s conftest.err
24574        } && test -s conftest$ac_exeext &&
24575        $as_test_x conftest$ac_exeext; then
24576   ol_cv_pthread_lib_lpthreads=yes
24577 else
24578   echo "$as_me: failed program was:" >&5
24579 sed 's/^/| /' conftest.$ac_ext >&5
24580
24581         ol_cv_pthread_lib_lpthreads=no
24582 fi
24583
24584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24585       conftest$ac_exeext conftest.$ac_ext
24586 else
24587   cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h.  */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h.  */
24593
24594 /* pthread test headers */
24595 #include <pthread.h>
24596 #if HAVE_PTHREADS < 7
24597 #include <errno.h>
24598 #endif
24599 #ifndef NULL
24600 #define NULL (void*)0
24601 #endif
24602
24603 static void *task(p)
24604         void *p;
24605 {
24606         return (void *) (p == NULL);
24607 }
24608
24609
24610 int main(argc, argv)
24611         int argc;
24612         char **argv;
24613 {
24614
24615         /* pthread test function */
24616 #ifndef PTHREAD_CREATE_DETACHED
24617 #define PTHREAD_CREATE_DETACHED 1
24618 #endif
24619         pthread_t t;
24620         int status;
24621         int detach = PTHREAD_CREATE_DETACHED;
24622
24623 #if HAVE_PTHREADS > 4
24624         /* Final pthreads */
24625         pthread_attr_t attr;
24626
24627         status = pthread_attr_init(&attr);
24628         if( status ) return status;
24629
24630 #if HAVE_PTHREADS < 7
24631         status = pthread_attr_setdetachstate(&attr, &detach);
24632         if( status < 0 ) status = errno;
24633 #else
24634         status = pthread_attr_setdetachstate(&attr, detach);
24635 #endif
24636         if( status ) return status;
24637         status = pthread_create( &t, &attr, task, NULL );
24638 #if HAVE_PTHREADS < 7
24639         if( status < 0 ) status = errno;
24640 #endif
24641         if( status ) return status;
24642 #else
24643         /* Draft 4 pthreads */
24644         status = pthread_create( &t, pthread_attr_default, task, NULL );
24645         if( status ) return errno;
24646
24647         /* give thread a chance to complete */
24648         /* it should remain joinable and hence detachable */
24649         sleep( 1 );
24650
24651         status = pthread_detach( &t );
24652         if( status ) return errno;
24653 #endif
24654
24655 #ifdef HAVE_LINUX_THREADS
24656         pthread_kill_other_threads_np();
24657 #endif
24658
24659         return 0;
24660
24661 }
24662
24663 _ACEOF
24664 rm -f conftest$ac_exeext
24665 if { (ac_try="$ac_link"
24666 case "(($ac_try" in
24667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24668   *) ac_try_echo=$ac_try;;
24669 esac
24670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24671   (eval "$ac_link") 2>&5
24672   ac_status=$?
24673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24675   { (case "(($ac_try" in
24676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677   *) ac_try_echo=$ac_try;;
24678 esac
24679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680   (eval "$ac_try") 2>&5
24681   ac_status=$?
24682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); }; }; then
24684   ol_cv_pthread_lib_lpthreads=yes
24685 else
24686   echo "$as_me: program exited with status $ac_status" >&5
24687 echo "$as_me: failed program was:" >&5
24688 sed 's/^/| /' conftest.$ac_ext >&5
24689
24690 ( exit $ac_status )
24691 ol_cv_pthread_lib_lpthreads=no
24692 fi
24693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24694 fi
24695
24696
24697
24698                 # restore the LIBS
24699                 LIBS="$ol_LIBS"
24700
24701 fi
24702 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24703 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24704
24705         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24706                 ol_link_pthreads="-lpthreads"
24707                 ol_link_threads=posix
24708         fi
24709 fi
24710
24711
24712                 if test $ol_link_threads != no ; then
24713                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24714
24715                                                 save_CPPFLAGS="$CPPFLAGS"
24716                         save_LIBS="$LIBS"
24717                         LIBS="$LTHREAD_LIBS $LIBS"
24718
24719
24720
24721
24722 for ac_func in sched_yield pthread_yield thr_yield
24723 do
24724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24728   echo $ECHO_N "(cached) $ECHO_C" >&6
24729 else
24730   cat >conftest.$ac_ext <<_ACEOF
24731 /* confdefs.h.  */
24732 _ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h.  */
24736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24738 #define $ac_func innocuous_$ac_func
24739
24740 /* System header to define __stub macros and hopefully few prototypes,
24741     which can conflict with char $ac_func (); below.
24742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24743     <limits.h> exists even on freestanding compilers.  */
24744
24745 #ifdef __STDC__
24746 # include <limits.h>
24747 #else
24748 # include <assert.h>
24749 #endif
24750
24751 #undef $ac_func
24752
24753 /* Override any GCC internal prototype to avoid an error.
24754    Use char because int might match the return type of a GCC
24755    builtin and then its argument prototype would still apply.  */
24756 #ifdef __cplusplus
24757 extern "C"
24758 #endif
24759 char $ac_func ();
24760 /* The GNU C library defines this for functions which it implements
24761     to always fail with ENOSYS.  Some functions are actually named
24762     something starting with __ and the normal name is an alias.  */
24763 #if defined __stub_$ac_func || defined __stub___$ac_func
24764 choke me
24765 #endif
24766
24767 int
24768 main ()
24769 {
24770 return $ac_func ();
24771   ;
24772   return 0;
24773 }
24774 _ACEOF
24775 rm -f conftest.$ac_objext conftest$ac_exeext
24776 if { (ac_try="$ac_link"
24777 case "(($ac_try" in
24778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779   *) ac_try_echo=$ac_try;;
24780 esac
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782   (eval "$ac_link") 2>conftest.er1
24783   ac_status=$?
24784   grep -v '^ *+' conftest.er1 >conftest.err
24785   rm -f conftest.er1
24786   cat conftest.err >&5
24787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788   (exit $ac_status); } && {
24789          test -z "$ac_c_werror_flag" ||
24790          test ! -s conftest.err
24791        } && test -s conftest$ac_exeext &&
24792        $as_test_x conftest$ac_exeext; then
24793   eval "$as_ac_var=yes"
24794 else
24795   echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24797
24798         eval "$as_ac_var=no"
24799 fi
24800
24801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24802       conftest$ac_exeext conftest.$ac_ext
24803 fi
24804 ac_res=`eval echo '${'$as_ac_var'}'`
24805                { echo "$as_me:$LINENO: result: $ac_res" >&5
24806 echo "${ECHO_T}$ac_res" >&6; }
24807 if test `eval echo '${'$as_ac_var'}'` = yes; then
24808   cat >>confdefs.h <<_ACEOF
24809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24810 _ACEOF
24811
24812 fi
24813 done
24814
24815
24816                         if test $ac_cv_func_sched_yield = no &&
24817                            test $ac_cv_func_pthread_yield = no &&
24818                            test $ac_cv_func_thr_yield = no ; then
24819                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24820 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24821 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24822   echo $ECHO_N "(cached) $ECHO_C" >&6
24823 else
24824   ac_check_lib_save_LIBS=$LIBS
24825 LIBS="-lrt  $LIBS"
24826 cat >conftest.$ac_ext <<_ACEOF
24827 /* confdefs.h.  */
24828 _ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h.  */
24832
24833 /* Override any GCC internal prototype to avoid an error.
24834    Use char because int might match the return type of a GCC
24835    builtin and then its argument prototype would still apply.  */
24836 #ifdef __cplusplus
24837 extern "C"
24838 #endif
24839 char sched_yield ();
24840 int
24841 main ()
24842 {
24843 return sched_yield ();
24844   ;
24845   return 0;
24846 }
24847 _ACEOF
24848 rm -f conftest.$ac_objext conftest$ac_exeext
24849 if { (ac_try="$ac_link"
24850 case "(($ac_try" in
24851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852   *) ac_try_echo=$ac_try;;
24853 esac
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855   (eval "$ac_link") 2>conftest.er1
24856   ac_status=$?
24857   grep -v '^ *+' conftest.er1 >conftest.err
24858   rm -f conftest.er1
24859   cat conftest.err >&5
24860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861   (exit $ac_status); } && {
24862          test -z "$ac_c_werror_flag" ||
24863          test ! -s conftest.err
24864        } && test -s conftest$ac_exeext &&
24865        $as_test_x conftest$ac_exeext; then
24866   ac_cv_lib_rt_sched_yield=yes
24867 else
24868   echo "$as_me: failed program was:" >&5
24869 sed 's/^/| /' conftest.$ac_ext >&5
24870
24871         ac_cv_lib_rt_sched_yield=no
24872 fi
24873
24874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24875       conftest$ac_exeext conftest.$ac_ext
24876 LIBS=$ac_check_lib_save_LIBS
24877 fi
24878 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24879 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24880 if test $ac_cv_lib_rt_sched_yield = yes; then
24881   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24882
24883 cat >>confdefs.h <<\_ACEOF
24884 #define HAVE_SCHED_YIELD 1
24885 _ACEOF
24886
24887                                         ac_cv_func_sched_yield=yes
24888 else
24889   ac_cv_func_sched_yield=no
24890 fi
24891
24892                         fi
24893                         if test $ac_cv_func_sched_yield = no &&
24894                            test $ac_cv_func_pthread_yield = no &&
24895                            test "$ac_cv_func_thr_yield" = no ; then
24896                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24897 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24898                         fi
24899
24900
24901 for ac_func in pthread_kill
24902 do
24903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24907   echo $ECHO_N "(cached) $ECHO_C" >&6
24908 else
24909   cat >conftest.$ac_ext <<_ACEOF
24910 /* confdefs.h.  */
24911 _ACEOF
24912 cat confdefs.h >>conftest.$ac_ext
24913 cat >>conftest.$ac_ext <<_ACEOF
24914 /* end confdefs.h.  */
24915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24917 #define $ac_func innocuous_$ac_func
24918
24919 /* System header to define __stub macros and hopefully few prototypes,
24920     which can conflict with char $ac_func (); below.
24921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24922     <limits.h> exists even on freestanding compilers.  */
24923
24924 #ifdef __STDC__
24925 # include <limits.h>
24926 #else
24927 # include <assert.h>
24928 #endif
24929
24930 #undef $ac_func
24931
24932 /* Override any GCC internal prototype to avoid an error.
24933    Use char because int might match the return type of a GCC
24934    builtin and then its argument prototype would still apply.  */
24935 #ifdef __cplusplus
24936 extern "C"
24937 #endif
24938 char $ac_func ();
24939 /* The GNU C library defines this for functions which it implements
24940     to always fail with ENOSYS.  Some functions are actually named
24941     something starting with __ and the normal name is an alias.  */
24942 #if defined __stub_$ac_func || defined __stub___$ac_func
24943 choke me
24944 #endif
24945
24946 int
24947 main ()
24948 {
24949 return $ac_func ();
24950   ;
24951   return 0;
24952 }
24953 _ACEOF
24954 rm -f conftest.$ac_objext conftest$ac_exeext
24955 if { (ac_try="$ac_link"
24956 case "(($ac_try" in
24957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24958   *) ac_try_echo=$ac_try;;
24959 esac
24960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24961   (eval "$ac_link") 2>conftest.er1
24962   ac_status=$?
24963   grep -v '^ *+' conftest.er1 >conftest.err
24964   rm -f conftest.er1
24965   cat conftest.err >&5
24966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967   (exit $ac_status); } && {
24968          test -z "$ac_c_werror_flag" ||
24969          test ! -s conftest.err
24970        } && test -s conftest$ac_exeext &&
24971        $as_test_x conftest$ac_exeext; then
24972   eval "$as_ac_var=yes"
24973 else
24974   echo "$as_me: failed program was:" >&5
24975 sed 's/^/| /' conftest.$ac_ext >&5
24976
24977         eval "$as_ac_var=no"
24978 fi
24979
24980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24981       conftest$ac_exeext conftest.$ac_ext
24982 fi
24983 ac_res=`eval echo '${'$as_ac_var'}'`
24984                { echo "$as_me:$LINENO: result: $ac_res" >&5
24985 echo "${ECHO_T}$ac_res" >&6; }
24986 if test `eval echo '${'$as_ac_var'}'` = yes; then
24987   cat >>confdefs.h <<_ACEOF
24988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24989 _ACEOF
24990
24991 fi
24992 done
24993
24994
24995                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24996 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24997 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24998   echo $ECHO_N "(cached) $ECHO_C" >&6
24999 else
25000
25001                                                                 cat >conftest.$ac_ext <<_ACEOF
25002 /* confdefs.h.  */
25003 _ACEOF
25004 cat confdefs.h >>conftest.$ac_ext
25005 cat >>conftest.$ac_ext <<_ACEOF
25006 /* end confdefs.h.  */
25007
25008 #include <pthread.h>
25009 pthread_rwlock_t rwlock;
25010
25011 int
25012 main ()
25013 {
25014 pthread_rwlock_destroy(&rwlock);
25015   ;
25016   return 0;
25017 }
25018 _ACEOF
25019 rm -f conftest.$ac_objext conftest$ac_exeext
25020 if { (ac_try="$ac_link"
25021 case "(($ac_try" in
25022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25023   *) ac_try_echo=$ac_try;;
25024 esac
25025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25026   (eval "$ac_link") 2>conftest.er1
25027   ac_status=$?
25028   grep -v '^ *+' conftest.er1 >conftest.err
25029   rm -f conftest.er1
25030   cat conftest.err >&5
25031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032   (exit $ac_status); } && {
25033          test -z "$ac_c_werror_flag" ||
25034          test ! -s conftest.err
25035        } && test -s conftest$ac_exeext &&
25036        $as_test_x conftest$ac_exeext; then
25037   ol_cv_func_pthread_rwlock_destroy=yes
25038 else
25039   echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.$ac_ext >&5
25041
25042         ol_cv_func_pthread_rwlock_destroy=no
25043 fi
25044
25045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25046       conftest$ac_exeext conftest.$ac_ext
25047
25048 fi
25049 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
25050 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
25051                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
25052
25053 cat >>confdefs.h <<\_ACEOF
25054 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
25055 _ACEOF
25056
25057                         fi
25058
25059                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
25060 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
25061 if test "${ol_cv_func_pthread_detach+set}" = set; then
25062   echo $ECHO_N "(cached) $ECHO_C" >&6
25063 else
25064
25065                                                                 cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h.  */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h.  */
25071
25072 #include <pthread.h>
25073 #ifndef NULL
25074 #define NULL (void*)0
25075 #endif
25076
25077 int
25078 main ()
25079 {
25080 pthread_detach(NULL);
25081   ;
25082   return 0;
25083 }
25084 _ACEOF
25085 rm -f conftest.$ac_objext conftest$ac_exeext
25086 if { (ac_try="$ac_link"
25087 case "(($ac_try" in
25088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25089   *) ac_try_echo=$ac_try;;
25090 esac
25091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25092   (eval "$ac_link") 2>conftest.er1
25093   ac_status=$?
25094   grep -v '^ *+' conftest.er1 >conftest.err
25095   rm -f conftest.er1
25096   cat conftest.err >&5
25097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098   (exit $ac_status); } && {
25099          test -z "$ac_c_werror_flag" ||
25100          test ! -s conftest.err
25101        } && test -s conftest$ac_exeext &&
25102        $as_test_x conftest$ac_exeext; then
25103   ol_cv_func_pthread_detach=yes
25104 else
25105   echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25107
25108         ol_cv_func_pthread_detach=no
25109 fi
25110
25111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25112       conftest$ac_exeext conftest.$ac_ext
25113
25114 fi
25115 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
25116 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
25117
25118                         if test $ol_cv_func_pthread_detach = no ; then
25119                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
25120 echo "$as_me: error: could not locate pthread_detach()" >&2;}
25121    { (exit 1); exit 1; }; }
25122                         fi
25123
25124
25125 cat >>confdefs.h <<\_ACEOF
25126 #define HAVE_PTHREAD_DETACH 1
25127 _ACEOF
25128
25129
25130
25131
25132
25133
25134 for ac_func in \
25135                                 pthread_setconcurrency \
25136                                 pthread_getconcurrency \
25137                                 thr_setconcurrency \
25138                                 thr_getconcurrency \
25139
25140 do
25141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25145   echo $ECHO_N "(cached) $ECHO_C" >&6
25146 else
25147   cat >conftest.$ac_ext <<_ACEOF
25148 /* confdefs.h.  */
25149 _ACEOF
25150 cat confdefs.h >>conftest.$ac_ext
25151 cat >>conftest.$ac_ext <<_ACEOF
25152 /* end confdefs.h.  */
25153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25155 #define $ac_func innocuous_$ac_func
25156
25157 /* System header to define __stub macros and hopefully few prototypes,
25158     which can conflict with char $ac_func (); below.
25159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25160     <limits.h> exists even on freestanding compilers.  */
25161
25162 #ifdef __STDC__
25163 # include <limits.h>
25164 #else
25165 # include <assert.h>
25166 #endif
25167
25168 #undef $ac_func
25169
25170 /* Override any GCC internal prototype to avoid an error.
25171    Use char because int might match the return type of a GCC
25172    builtin and then its argument prototype would still apply.  */
25173 #ifdef __cplusplus
25174 extern "C"
25175 #endif
25176 char $ac_func ();
25177 /* The GNU C library defines this for functions which it implements
25178     to always fail with ENOSYS.  Some functions are actually named
25179     something starting with __ and the normal name is an alias.  */
25180 #if defined __stub_$ac_func || defined __stub___$ac_func
25181 choke me
25182 #endif
25183
25184 int
25185 main ()
25186 {
25187 return $ac_func ();
25188   ;
25189   return 0;
25190 }
25191 _ACEOF
25192 rm -f conftest.$ac_objext conftest$ac_exeext
25193 if { (ac_try="$ac_link"
25194 case "(($ac_try" in
25195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25196   *) ac_try_echo=$ac_try;;
25197 esac
25198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25199   (eval "$ac_link") 2>conftest.er1
25200   ac_status=$?
25201   grep -v '^ *+' conftest.er1 >conftest.err
25202   rm -f conftest.er1
25203   cat conftest.err >&5
25204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205   (exit $ac_status); } && {
25206          test -z "$ac_c_werror_flag" ||
25207          test ! -s conftest.err
25208        } && test -s conftest$ac_exeext &&
25209        $as_test_x conftest$ac_exeext; then
25210   eval "$as_ac_var=yes"
25211 else
25212   echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25214
25215         eval "$as_ac_var=no"
25216 fi
25217
25218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25219       conftest$ac_exeext conftest.$ac_ext
25220 fi
25221 ac_res=`eval echo '${'$as_ac_var'}'`
25222                { echo "$as_me:$LINENO: result: $ac_res" >&5
25223 echo "${ECHO_T}$ac_res" >&6; }
25224 if test `eval echo '${'$as_ac_var'}'` = yes; then
25225   cat >>confdefs.h <<_ACEOF
25226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25227 _ACEOF
25228
25229 fi
25230 done
25231
25232
25233
25234
25235 for ac_func in pthread_kill_other_threads_np
25236 do
25237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25241   echo $ECHO_N "(cached) $ECHO_C" >&6
25242 else
25243   cat >conftest.$ac_ext <<_ACEOF
25244 /* confdefs.h.  */
25245 _ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h.  */
25249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25251 #define $ac_func innocuous_$ac_func
25252
25253 /* System header to define __stub macros and hopefully few prototypes,
25254     which can conflict with char $ac_func (); below.
25255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25256     <limits.h> exists even on freestanding compilers.  */
25257
25258 #ifdef __STDC__
25259 # include <limits.h>
25260 #else
25261 # include <assert.h>
25262 #endif
25263
25264 #undef $ac_func
25265
25266 /* Override any GCC internal prototype to avoid an error.
25267    Use char because int might match the return type of a GCC
25268    builtin and then its argument prototype would still apply.  */
25269 #ifdef __cplusplus
25270 extern "C"
25271 #endif
25272 char $ac_func ();
25273 /* The GNU C library defines this for functions which it implements
25274     to always fail with ENOSYS.  Some functions are actually named
25275     something starting with __ and the normal name is an alias.  */
25276 #if defined __stub_$ac_func || defined __stub___$ac_func
25277 choke me
25278 #endif
25279
25280 int
25281 main ()
25282 {
25283 return $ac_func ();
25284   ;
25285   return 0;
25286 }
25287 _ACEOF
25288 rm -f conftest.$ac_objext conftest$ac_exeext
25289 if { (ac_try="$ac_link"
25290 case "(($ac_try" in
25291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25292   *) ac_try_echo=$ac_try;;
25293 esac
25294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25295   (eval "$ac_link") 2>conftest.er1
25296   ac_status=$?
25297   grep -v '^ *+' conftest.er1 >conftest.err
25298   rm -f conftest.er1
25299   cat conftest.err >&5
25300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301   (exit $ac_status); } && {
25302          test -z "$ac_c_werror_flag" ||
25303          test ! -s conftest.err
25304        } && test -s conftest$ac_exeext &&
25305        $as_test_x conftest$ac_exeext; then
25306   eval "$as_ac_var=yes"
25307 else
25308   echo "$as_me: failed program was:" >&5
25309 sed 's/^/| /' conftest.$ac_ext >&5
25310
25311         eval "$as_ac_var=no"
25312 fi
25313
25314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25315       conftest$ac_exeext conftest.$ac_ext
25316 fi
25317 ac_res=`eval echo '${'$as_ac_var'}'`
25318                { echo "$as_me:$LINENO: result: $ac_res" >&5
25319 echo "${ECHO_T}$ac_res" >&6; }
25320 if test `eval echo '${'$as_ac_var'}'` = yes; then
25321   cat >>confdefs.h <<_ACEOF
25322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25323 _ACEOF
25324
25325 fi
25326 done
25327
25328         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25329 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25330 if test "${ol_cv_sys_linux_threads+set}" = set; then
25331   echo $ECHO_N "(cached) $ECHO_C" >&6
25332 else
25333   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25334 fi
25335 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25336 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25337
25338
25339
25340
25341         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25342 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25343 if test "${ol_cv_linux_threads+set}" = set; then
25344   echo $ECHO_N "(cached) $ECHO_C" >&6
25345 else
25346
25347                 if test $ol_cv_header_linux_threads = yes &&
25348                    test $ol_cv_sys_linux_threads = yes; then
25349                         ol_cv_linux_threads=yes
25350                 elif test $ol_cv_header_linux_threads = no &&
25351                      test $ol_cv_sys_linux_threads = no; then
25352                         ol_cv_linux_threads=no
25353                 else
25354                         ol_cv_linux_threads=error
25355                 fi
25356
25357 fi
25358 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25359 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25360
25361
25362                         if test $ol_cv_linux_threads = error; then
25363                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25364 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25365    { (exit 1); exit 1; }; };
25366                         fi
25367
25368                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25369 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25370 if test "${ol_cv_pthread_create_works+set}" = set; then
25371   echo $ECHO_N "(cached) $ECHO_C" >&6
25372 else
25373
25374                         if test "$cross_compiling" = yes; then
25375                                 ol_cv_pthread_create_works=yes
25376 else
25377   cat >conftest.$ac_ext <<_ACEOF
25378 /* confdefs.h.  */
25379 _ACEOF
25380 cat confdefs.h >>conftest.$ac_ext
25381 cat >>conftest.$ac_ext <<_ACEOF
25382 /* end confdefs.h.  */
25383
25384 /* pthread test headers */
25385 #include <pthread.h>
25386 #if HAVE_PTHREADS < 7
25387 #include <errno.h>
25388 #endif
25389 #ifndef NULL
25390 #define NULL (void*)0
25391 #endif
25392
25393 static void *task(p)
25394         void *p;
25395 {
25396         return (void *) (p == NULL);
25397 }
25398
25399
25400 int main(argc, argv)
25401         int argc;
25402         char **argv;
25403 {
25404
25405         /* pthread test function */
25406 #ifndef PTHREAD_CREATE_DETACHED
25407 #define PTHREAD_CREATE_DETACHED 1
25408 #endif
25409         pthread_t t;
25410         int status;
25411         int detach = PTHREAD_CREATE_DETACHED;
25412
25413 #if HAVE_PTHREADS > 4
25414         /* Final pthreads */
25415         pthread_attr_t attr;
25416
25417         status = pthread_attr_init(&attr);
25418         if( status ) return status;
25419
25420 #if HAVE_PTHREADS < 7
25421         status = pthread_attr_setdetachstate(&attr, &detach);
25422         if( status < 0 ) status = errno;
25423 #else
25424         status = pthread_attr_setdetachstate(&attr, detach);
25425 #endif
25426         if( status ) return status;
25427         status = pthread_create( &t, &attr, task, NULL );
25428 #if HAVE_PTHREADS < 7
25429         if( status < 0 ) status = errno;
25430 #endif
25431         if( status ) return status;
25432 #else
25433         /* Draft 4 pthreads */
25434         status = pthread_create( &t, pthread_attr_default, task, NULL );
25435         if( status ) return errno;
25436
25437         /* give thread a chance to complete */
25438         /* it should remain joinable and hence detachable */
25439         sleep( 1 );
25440
25441         status = pthread_detach( &t );
25442         if( status ) return errno;
25443 #endif
25444
25445 #ifdef HAVE_LINUX_THREADS
25446         pthread_kill_other_threads_np();
25447 #endif
25448
25449         return 0;
25450
25451 }
25452
25453 _ACEOF
25454 rm -f conftest$ac_exeext
25455 if { (ac_try="$ac_link"
25456 case "(($ac_try" in
25457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458   *) ac_try_echo=$ac_try;;
25459 esac
25460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461   (eval "$ac_link") 2>&5
25462   ac_status=$?
25463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25465   { (case "(($ac_try" in
25466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25467   *) ac_try_echo=$ac_try;;
25468 esac
25469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25470   (eval "$ac_try") 2>&5
25471   ac_status=$?
25472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473   (exit $ac_status); }; }; then
25474   ol_cv_pthread_create_works=yes
25475 else
25476   echo "$as_me: program exited with status $ac_status" >&5
25477 echo "$as_me: failed program was:" >&5
25478 sed 's/^/| /' conftest.$ac_ext >&5
25479
25480 ( exit $ac_status )
25481 ol_cv_pthread_create_works=no
25482 fi
25483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25484 fi
25485
25486
25487 fi
25488 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25489 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25490
25491                         if test $ol_cv_pthread_create_works = no ; then
25492                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25493 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25494    { (exit 1); exit 1; }; }
25495                         fi
25496
25497                         ol_replace_broken_yield=no
25498
25499                         if test $ol_replace_broken_yield = yes ; then
25500
25501 cat >>confdefs.h <<\_ACEOF
25502 #define REPLACE_BROKEN_YIELD 1
25503 _ACEOF
25504
25505                         fi
25506
25507                                                 if test $ol_with_yielding_select = auto ; then
25508                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25509 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25510 if test "${ol_cv_pthread_select_yields+set}" = set; then
25511   echo $ECHO_N "(cached) $ECHO_C" >&6
25512 else
25513
25514                                 if test "$cross_compiling" = yes; then
25515   ol_cv_pthread_select_yields=cross
25516 else
25517   cat >conftest.$ac_ext <<_ACEOF
25518 /* confdefs.h.  */
25519 _ACEOF
25520 cat confdefs.h >>conftest.$ac_ext
25521 cat >>conftest.$ac_ext <<_ACEOF
25522 /* end confdefs.h.  */
25523
25524 #include <sys/types.h>
25525 #include <sys/time.h>
25526 #include <unistd.h>
25527 #include <pthread.h>
25528 #ifndef NULL
25529 #define NULL (void*) 0
25530 #endif
25531
25532 static int fildes[2];
25533
25534 static void *task(p)
25535         void *p;
25536 {
25537         int i;
25538         struct timeval tv;
25539
25540         fd_set rfds;
25541
25542         tv.tv_sec=10;
25543         tv.tv_usec=0;
25544
25545         FD_ZERO(&rfds);
25546         FD_SET(fildes[0], &rfds);
25547
25548         /* we're not interested in any fds */
25549         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25550
25551         if(i < 0) {
25552                 perror("select");
25553                 exit(10);
25554         }
25555
25556         exit(0); /* if we exit here, the select blocked the whole process */
25557 }
25558
25559 int main(argc, argv)
25560         int argc;
25561         char **argv;
25562 {
25563         pthread_t t;
25564
25565         /* create a pipe to select */
25566         if(pipe(&fildes[0])) {
25567                 perror("select");
25568                 exit(1);
25569         }
25570
25571 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25572         (void) pthread_setconcurrency(2);
25573 #else
25574 #ifdef HAVE_THR_SETCONCURRENCY
25575         /* Set Solaris LWP concurrency to 2 */
25576         thr_setconcurrency(2);
25577 #endif
25578 #endif
25579
25580 #if HAVE_PTHREADS < 6
25581         pthread_create(&t, pthread_attr_default, task, NULL);
25582 #else
25583         pthread_create(&t, NULL, task, NULL);
25584 #endif
25585
25586         /* make sure task runs first */
25587 #ifdef HAVE_THR_YIELD
25588         thr_yield();
25589 #elif defined( HAVE_SCHED_YIELD )
25590         sched_yield();
25591 #elif defined( HAVE_PTHREAD_YIELD )
25592         pthread_yield();
25593 #endif
25594
25595         exit(2);
25596 }
25597 _ACEOF
25598 rm -f conftest$ac_exeext
25599 if { (ac_try="$ac_link"
25600 case "(($ac_try" in
25601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25602   *) ac_try_echo=$ac_try;;
25603 esac
25604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25605   (eval "$ac_link") 2>&5
25606   ac_status=$?
25607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25609   { (case "(($ac_try" in
25610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25611   *) ac_try_echo=$ac_try;;
25612 esac
25613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25614   (eval "$ac_try") 2>&5
25615   ac_status=$?
25616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617   (exit $ac_status); }; }; then
25618   ol_cv_pthread_select_yields=no
25619 else
25620   echo "$as_me: program exited with status $ac_status" >&5
25621 echo "$as_me: failed program was:" >&5
25622 sed 's/^/| /' conftest.$ac_ext >&5
25623
25624 ( exit $ac_status )
25625 ol_cv_pthread_select_yields=yes
25626 fi
25627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25628 fi
25629
25630
25631 fi
25632 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25633 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25634
25635                                 if test $ol_cv_pthread_select_yields = cross ; then
25636                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25637 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25638    { (exit 1); exit 1; }; }
25639                                 fi
25640
25641                                 if test $ol_cv_pthread_select_yields = yes ; then
25642                                         ol_with_yielding_select=yes
25643                                 fi
25644                         fi
25645
25646                                                 CPPFLAGS="$save_CPPFLAGS"
25647                         LIBS="$save_LIBS"
25648                 else
25649                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25650 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25651    { (exit 1); exit 1; }; }
25652                 fi
25653         fi
25654
25655         if test $ol_with_threads = posix ; then
25656                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25657 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25658    { (exit 1); exit 1; }; }
25659         fi
25660         ;;
25661 esac
25662
25663 case $ol_with_threads in auto | yes | mach)
25664
25665
25666
25667 for ac_header in mach/cthreads.h cthreads.h
25668 do
25669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25671   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25674   echo $ECHO_N "(cached) $ECHO_C" >&6
25675 fi
25676 ac_res=`eval echo '${'$as_ac_Header'}'`
25677                { echo "$as_me:$LINENO: result: $ac_res" >&5
25678 echo "${ECHO_T}$ac_res" >&6; }
25679 else
25680   # Is the header compilable?
25681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25683 cat >conftest.$ac_ext <<_ACEOF
25684 /* confdefs.h.  */
25685 _ACEOF
25686 cat confdefs.h >>conftest.$ac_ext
25687 cat >>conftest.$ac_ext <<_ACEOF
25688 /* end confdefs.h.  */
25689 $ac_includes_default
25690 #include <$ac_header>
25691 _ACEOF
25692 rm -f conftest.$ac_objext
25693 if { (ac_try="$ac_compile"
25694 case "(($ac_try" in
25695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696   *) ac_try_echo=$ac_try;;
25697 esac
25698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25699   (eval "$ac_compile") 2>conftest.er1
25700   ac_status=$?
25701   grep -v '^ *+' conftest.er1 >conftest.err
25702   rm -f conftest.er1
25703   cat conftest.err >&5
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); } && {
25706          test -z "$ac_c_werror_flag" ||
25707          test ! -s conftest.err
25708        } && test -s conftest.$ac_objext; then
25709   ac_header_compiler=yes
25710 else
25711   echo "$as_me: failed program was:" >&5
25712 sed 's/^/| /' conftest.$ac_ext >&5
25713
25714         ac_header_compiler=no
25715 fi
25716
25717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25719 echo "${ECHO_T}$ac_header_compiler" >&6; }
25720
25721 # Is the header present?
25722 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25724 cat >conftest.$ac_ext <<_ACEOF
25725 /* confdefs.h.  */
25726 _ACEOF
25727 cat confdefs.h >>conftest.$ac_ext
25728 cat >>conftest.$ac_ext <<_ACEOF
25729 /* end confdefs.h.  */
25730 #include <$ac_header>
25731 _ACEOF
25732 if { (ac_try="$ac_cpp conftest.$ac_ext"
25733 case "(($ac_try" in
25734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25735   *) ac_try_echo=$ac_try;;
25736 esac
25737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25739   ac_status=$?
25740   grep -v '^ *+' conftest.er1 >conftest.err
25741   rm -f conftest.er1
25742   cat conftest.err >&5
25743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744   (exit $ac_status); } >/dev/null && {
25745          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25746          test ! -s conftest.err
25747        }; then
25748   ac_header_preproc=yes
25749 else
25750   echo "$as_me: failed program was:" >&5
25751 sed 's/^/| /' conftest.$ac_ext >&5
25752
25753   ac_header_preproc=no
25754 fi
25755
25756 rm -f conftest.err conftest.$ac_ext
25757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25758 echo "${ECHO_T}$ac_header_preproc" >&6; }
25759
25760 # So?  What about this header?
25761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25762   yes:no: )
25763     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25767     ac_header_preproc=yes
25768     ;;
25769   no:yes:* )
25770     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25772     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25773 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25774     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25776     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25777 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25780     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25782     ( cat <<\_ASBOX
25783 ## --------------------------------------------- ##
25784 ## Report this to <http://www.openldap.org/its/> ##
25785 ## --------------------------------------------- ##
25786 _ASBOX
25787      ) | sed "s/^/$as_me: WARNING:     /" >&2
25788     ;;
25789 esac
25790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25793   echo $ECHO_N "(cached) $ECHO_C" >&6
25794 else
25795   eval "$as_ac_Header=\$ac_header_preproc"
25796 fi
25797 ac_res=`eval echo '${'$as_ac_Header'}'`
25798                { echo "$as_me:$LINENO: result: $ac_res" >&5
25799 echo "${ECHO_T}$ac_res" >&6; }
25800
25801 fi
25802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25803   cat >>confdefs.h <<_ACEOF
25804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25805 _ACEOF
25806
25807 fi
25808
25809 done
25810
25811         if test $ac_cv_header_mach_cthreads_h = yes ; then
25812                 ol_with_threads=found
25813
25814                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25815 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25816 if test "${ac_cv_func_cthread_fork+set}" = set; then
25817   echo $ECHO_N "(cached) $ECHO_C" >&6
25818 else
25819   cat >conftest.$ac_ext <<_ACEOF
25820 /* confdefs.h.  */
25821 _ACEOF
25822 cat confdefs.h >>conftest.$ac_ext
25823 cat >>conftest.$ac_ext <<_ACEOF
25824 /* end confdefs.h.  */
25825 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25827 #define cthread_fork innocuous_cthread_fork
25828
25829 /* System header to define __stub macros and hopefully few prototypes,
25830     which can conflict with char cthread_fork (); below.
25831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25832     <limits.h> exists even on freestanding compilers.  */
25833
25834 #ifdef __STDC__
25835 # include <limits.h>
25836 #else
25837 # include <assert.h>
25838 #endif
25839
25840 #undef cthread_fork
25841
25842 /* Override any GCC internal prototype to avoid an error.
25843    Use char because int might match the return type of a GCC
25844    builtin and then its argument prototype would still apply.  */
25845 #ifdef __cplusplus
25846 extern "C"
25847 #endif
25848 char cthread_fork ();
25849 /* The GNU C library defines this for functions which it implements
25850     to always fail with ENOSYS.  Some functions are actually named
25851     something starting with __ and the normal name is an alias.  */
25852 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25853 choke me
25854 #endif
25855
25856 int
25857 main ()
25858 {
25859 return cthread_fork ();
25860   ;
25861   return 0;
25862 }
25863 _ACEOF
25864 rm -f conftest.$ac_objext conftest$ac_exeext
25865 if { (ac_try="$ac_link"
25866 case "(($ac_try" in
25867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868   *) ac_try_echo=$ac_try;;
25869 esac
25870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871   (eval "$ac_link") 2>conftest.er1
25872   ac_status=$?
25873   grep -v '^ *+' conftest.er1 >conftest.err
25874   rm -f conftest.er1
25875   cat conftest.err >&5
25876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877   (exit $ac_status); } && {
25878          test -z "$ac_c_werror_flag" ||
25879          test ! -s conftest.err
25880        } && test -s conftest$ac_exeext &&
25881        $as_test_x conftest$ac_exeext; then
25882   ac_cv_func_cthread_fork=yes
25883 else
25884   echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25886
25887         ac_cv_func_cthread_fork=no
25888 fi
25889
25890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25891       conftest$ac_exeext conftest.$ac_ext
25892 fi
25893 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25894 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25895 if test $ac_cv_func_cthread_fork = yes; then
25896   ol_link_threads=yes
25897 fi
25898
25899
25900                 if test $ol_link_threads = no ; then
25901                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25902 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25903 if test "${ol_cv_cthread_all_load+set}" = set; then
25904   echo $ECHO_N "(cached) $ECHO_C" >&6
25905 else
25906
25907                                                                 save_LIBS="$LIBS"
25908                                 LIBS="-all_load $LIBS"
25909                                 cat >conftest.$ac_ext <<_ACEOF
25910 /* confdefs.h.  */
25911 _ACEOF
25912 cat confdefs.h >>conftest.$ac_ext
25913 cat >>conftest.$ac_ext <<_ACEOF
25914 /* end confdefs.h.  */
25915 #include <mach/cthreads.h>
25916 int
25917 main ()
25918 {
25919
25920                                         cthread_fork((void *)0, (void *)0);
25921
25922   ;
25923   return 0;
25924 }
25925 _ACEOF
25926 rm -f conftest.$ac_objext conftest$ac_exeext
25927 if { (ac_try="$ac_link"
25928 case "(($ac_try" in
25929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25930   *) ac_try_echo=$ac_try;;
25931 esac
25932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25933   (eval "$ac_link") 2>conftest.er1
25934   ac_status=$?
25935   grep -v '^ *+' conftest.er1 >conftest.err
25936   rm -f conftest.er1
25937   cat conftest.err >&5
25938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939   (exit $ac_status); } && {
25940          test -z "$ac_c_werror_flag" ||
25941          test ! -s conftest.err
25942        } && test -s conftest$ac_exeext &&
25943        $as_test_x conftest$ac_exeext; then
25944   ol_cv_cthread_all_load=yes
25945 else
25946   echo "$as_me: failed program was:" >&5
25947 sed 's/^/| /' conftest.$ac_ext >&5
25948
25949         ol_cv_cthread_all_load=no
25950 fi
25951
25952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25953       conftest$ac_exeext conftest.$ac_ext
25954                                                                 LIBS="$save_LIBS"
25955
25956 fi
25957 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25958 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25959
25960                         if test $ol_cv_cthread_all_load = yes ; then
25961                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25962                                 ol_link_threads=mach
25963                                 ol_with_threads=found
25964                         fi
25965                 fi
25966
25967         elif test $ac_cv_header_cthreads_h = yes ; then
25968
25969                 ol_with_threads=found
25970
25971                                 save_LIBS="$LIBS"
25972                 LIBS="$LIBS -lthreads"
25973                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25974 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25975 if test "${ac_cv_func_cthread_fork+set}" = set; then
25976   echo $ECHO_N "(cached) $ECHO_C" >&6
25977 else
25978   cat >conftest.$ac_ext <<_ACEOF
25979 /* confdefs.h.  */
25980 _ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h.  */
25984 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25986 #define cthread_fork innocuous_cthread_fork
25987
25988 /* System header to define __stub macros and hopefully few prototypes,
25989     which can conflict with char cthread_fork (); below.
25990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25991     <limits.h> exists even on freestanding compilers.  */
25992
25993 #ifdef __STDC__
25994 # include <limits.h>
25995 #else
25996 # include <assert.h>
25997 #endif
25998
25999 #undef cthread_fork
26000
26001 /* Override any GCC internal prototype to avoid an error.
26002    Use char because int might match the return type of a GCC
26003    builtin and then its argument prototype would still apply.  */
26004 #ifdef __cplusplus
26005 extern "C"
26006 #endif
26007 char cthread_fork ();
26008 /* The GNU C library defines this for functions which it implements
26009     to always fail with ENOSYS.  Some functions are actually named
26010     something starting with __ and the normal name is an alias.  */
26011 #if defined __stub_cthread_fork || defined __stub___cthread_fork
26012 choke me
26013 #endif
26014
26015 int
26016 main ()
26017 {
26018 return cthread_fork ();
26019   ;
26020   return 0;
26021 }
26022 _ACEOF
26023 rm -f conftest.$ac_objext conftest$ac_exeext
26024 if { (ac_try="$ac_link"
26025 case "(($ac_try" in
26026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26027   *) ac_try_echo=$ac_try;;
26028 esac
26029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26030   (eval "$ac_link") 2>conftest.er1
26031   ac_status=$?
26032   grep -v '^ *+' conftest.er1 >conftest.err
26033   rm -f conftest.er1
26034   cat conftest.err >&5
26035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036   (exit $ac_status); } && {
26037          test -z "$ac_c_werror_flag" ||
26038          test ! -s conftest.err
26039        } && test -s conftest$ac_exeext &&
26040        $as_test_x conftest$ac_exeext; then
26041   ac_cv_func_cthread_fork=yes
26042 else
26043   echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26045
26046         ac_cv_func_cthread_fork=no
26047 fi
26048
26049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26050       conftest$ac_exeext conftest.$ac_ext
26051 fi
26052 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
26053 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
26054 if test $ac_cv_func_cthread_fork = yes; then
26055   ol_link_threads=yes
26056 fi
26057
26058                 LIBS="$save_LIBS"
26059
26060                 if test $ol_link_threads = yes ; then
26061                         LTHREAD_LIBS="-lthreads"
26062                         ol_link_threads=mach
26063                         ol_with_threads=found
26064                 else
26065                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26066 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26067    { (exit 1); exit 1; }; }
26068                 fi
26069
26070         elif test $ol_with_threads = mach ; then
26071                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
26072 echo "$as_me: error: could not locate Mach CThreads" >&2;}
26073    { (exit 1); exit 1; }; }
26074         fi
26075
26076         if test $ol_link_threads = mach ; then
26077
26078 cat >>confdefs.h <<\_ACEOF
26079 #define HAVE_MACH_CTHREADS 1
26080 _ACEOF
26081
26082         elif test $ol_with_threads = found ; then
26083                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26084 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26085    { (exit 1); exit 1; }; }
26086         fi
26087         ;;
26088 esac
26089
26090 case $ol_with_threads in auto | yes | pth)
26091
26092
26093 for ac_header in pth.h
26094 do
26095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26097   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26100   echo $ECHO_N "(cached) $ECHO_C" >&6
26101 fi
26102 ac_res=`eval echo '${'$as_ac_Header'}'`
26103                { echo "$as_me:$LINENO: result: $ac_res" >&5
26104 echo "${ECHO_T}$ac_res" >&6; }
26105 else
26106   # Is the header compilable?
26107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26109 cat >conftest.$ac_ext <<_ACEOF
26110 /* confdefs.h.  */
26111 _ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h.  */
26115 $ac_includes_default
26116 #include <$ac_header>
26117 _ACEOF
26118 rm -f conftest.$ac_objext
26119 if { (ac_try="$ac_compile"
26120 case "(($ac_try" in
26121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122   *) ac_try_echo=$ac_try;;
26123 esac
26124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26125   (eval "$ac_compile") 2>conftest.er1
26126   ac_status=$?
26127   grep -v '^ *+' conftest.er1 >conftest.err
26128   rm -f conftest.er1
26129   cat conftest.err >&5
26130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131   (exit $ac_status); } && {
26132          test -z "$ac_c_werror_flag" ||
26133          test ! -s conftest.err
26134        } && test -s conftest.$ac_objext; then
26135   ac_header_compiler=yes
26136 else
26137   echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26139
26140         ac_header_compiler=no
26141 fi
26142
26143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26145 echo "${ECHO_T}$ac_header_compiler" >&6; }
26146
26147 # Is the header present?
26148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26150 cat >conftest.$ac_ext <<_ACEOF
26151 /* confdefs.h.  */
26152 _ACEOF
26153 cat confdefs.h >>conftest.$ac_ext
26154 cat >>conftest.$ac_ext <<_ACEOF
26155 /* end confdefs.h.  */
26156 #include <$ac_header>
26157 _ACEOF
26158 if { (ac_try="$ac_cpp conftest.$ac_ext"
26159 case "(($ac_try" in
26160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26161   *) ac_try_echo=$ac_try;;
26162 esac
26163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26164   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26165   ac_status=$?
26166   grep -v '^ *+' conftest.er1 >conftest.err
26167   rm -f conftest.er1
26168   cat conftest.err >&5
26169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170   (exit $ac_status); } >/dev/null && {
26171          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26172          test ! -s conftest.err
26173        }; then
26174   ac_header_preproc=yes
26175 else
26176   echo "$as_me: failed program was:" >&5
26177 sed 's/^/| /' conftest.$ac_ext >&5
26178
26179   ac_header_preproc=no
26180 fi
26181
26182 rm -f conftest.err conftest.$ac_ext
26183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26184 echo "${ECHO_T}$ac_header_preproc" >&6; }
26185
26186 # So?  What about this header?
26187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26188   yes:no: )
26189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26193     ac_header_preproc=yes
26194     ;;
26195   no:yes:* )
26196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26198     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26199 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26200     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26202     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26203 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26206     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26208     ( cat <<\_ASBOX
26209 ## --------------------------------------------- ##
26210 ## Report this to <http://www.openldap.org/its/> ##
26211 ## --------------------------------------------- ##
26212 _ASBOX
26213      ) | sed "s/^/$as_me: WARNING:     /" >&2
26214     ;;
26215 esac
26216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26219   echo $ECHO_N "(cached) $ECHO_C" >&6
26220 else
26221   eval "$as_ac_Header=\$ac_header_preproc"
26222 fi
26223 ac_res=`eval echo '${'$as_ac_Header'}'`
26224                { echo "$as_me:$LINENO: result: $ac_res" >&5
26225 echo "${ECHO_T}$ac_res" >&6; }
26226
26227 fi
26228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26229   cat >>confdefs.h <<_ACEOF
26230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26231 _ACEOF
26232
26233 fi
26234
26235 done
26236
26237
26238         if test $ac_cv_header_pth_h = yes ; then
26239                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26240 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26241 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26242   echo $ECHO_N "(cached) $ECHO_C" >&6
26243 else
26244   ac_check_lib_save_LIBS=$LIBS
26245 LIBS="-lpth  $LIBS"
26246 cat >conftest.$ac_ext <<_ACEOF
26247 /* confdefs.h.  */
26248 _ACEOF
26249 cat confdefs.h >>conftest.$ac_ext
26250 cat >>conftest.$ac_ext <<_ACEOF
26251 /* end confdefs.h.  */
26252
26253 /* Override any GCC internal prototype to avoid an error.
26254    Use char because int might match the return type of a GCC
26255    builtin and then its argument prototype would still apply.  */
26256 #ifdef __cplusplus
26257 extern "C"
26258 #endif
26259 char pth_version ();
26260 int
26261 main ()
26262 {
26263 return pth_version ();
26264   ;
26265   return 0;
26266 }
26267 _ACEOF
26268 rm -f conftest.$ac_objext conftest$ac_exeext
26269 if { (ac_try="$ac_link"
26270 case "(($ac_try" in
26271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26272   *) ac_try_echo=$ac_try;;
26273 esac
26274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26275   (eval "$ac_link") 2>conftest.er1
26276   ac_status=$?
26277   grep -v '^ *+' conftest.er1 >conftest.err
26278   rm -f conftest.er1
26279   cat conftest.err >&5
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); } && {
26282          test -z "$ac_c_werror_flag" ||
26283          test ! -s conftest.err
26284        } && test -s conftest$ac_exeext &&
26285        $as_test_x conftest$ac_exeext; then
26286   ac_cv_lib_pth_pth_version=yes
26287 else
26288   echo "$as_me: failed program was:" >&5
26289 sed 's/^/| /' conftest.$ac_ext >&5
26290
26291         ac_cv_lib_pth_pth_version=no
26292 fi
26293
26294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26295       conftest$ac_exeext conftest.$ac_ext
26296 LIBS=$ac_check_lib_save_LIBS
26297 fi
26298 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26299 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26300 if test $ac_cv_lib_pth_pth_version = yes; then
26301   have_pth=yes
26302 else
26303   have_pth=no
26304 fi
26305
26306
26307                 if test $have_pth = yes ; then
26308
26309 cat >>confdefs.h <<\_ACEOF
26310 #define HAVE_GNU_PTH 1
26311 _ACEOF
26312
26313                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26314                         ol_link_threads=pth
26315                         ol_with_threads=found
26316
26317                         if test $ol_with_yielding_select = auto ; then
26318                                 ol_with_yielding_select=yes
26319                         fi
26320                 fi
26321         fi
26322         ;;
26323 esac
26324
26325 case $ol_with_threads in auto | yes | lwp)
26326
26327
26328
26329 for ac_header in thread.h synch.h
26330 do
26331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26333   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26336   echo $ECHO_N "(cached) $ECHO_C" >&6
26337 fi
26338 ac_res=`eval echo '${'$as_ac_Header'}'`
26339                { echo "$as_me:$LINENO: result: $ac_res" >&5
26340 echo "${ECHO_T}$ac_res" >&6; }
26341 else
26342   # Is the header compilable?
26343 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26345 cat >conftest.$ac_ext <<_ACEOF
26346 /* confdefs.h.  */
26347 _ACEOF
26348 cat confdefs.h >>conftest.$ac_ext
26349 cat >>conftest.$ac_ext <<_ACEOF
26350 /* end confdefs.h.  */
26351 $ac_includes_default
26352 #include <$ac_header>
26353 _ACEOF
26354 rm -f conftest.$ac_objext
26355 if { (ac_try="$ac_compile"
26356 case "(($ac_try" in
26357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26358   *) ac_try_echo=$ac_try;;
26359 esac
26360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26361   (eval "$ac_compile") 2>conftest.er1
26362   ac_status=$?
26363   grep -v '^ *+' conftest.er1 >conftest.err
26364   rm -f conftest.er1
26365   cat conftest.err >&5
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); } && {
26368          test -z "$ac_c_werror_flag" ||
26369          test ! -s conftest.err
26370        } && test -s conftest.$ac_objext; then
26371   ac_header_compiler=yes
26372 else
26373   echo "$as_me: failed program was:" >&5
26374 sed 's/^/| /' conftest.$ac_ext >&5
26375
26376         ac_header_compiler=no
26377 fi
26378
26379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26381 echo "${ECHO_T}$ac_header_compiler" >&6; }
26382
26383 # Is the header present?
26384 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26386 cat >conftest.$ac_ext <<_ACEOF
26387 /* confdefs.h.  */
26388 _ACEOF
26389 cat confdefs.h >>conftest.$ac_ext
26390 cat >>conftest.$ac_ext <<_ACEOF
26391 /* end confdefs.h.  */
26392 #include <$ac_header>
26393 _ACEOF
26394 if { (ac_try="$ac_cpp conftest.$ac_ext"
26395 case "(($ac_try" in
26396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26397   *) ac_try_echo=$ac_try;;
26398 esac
26399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26400   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26401   ac_status=$?
26402   grep -v '^ *+' conftest.er1 >conftest.err
26403   rm -f conftest.er1
26404   cat conftest.err >&5
26405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406   (exit $ac_status); } >/dev/null && {
26407          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26408          test ! -s conftest.err
26409        }; then
26410   ac_header_preproc=yes
26411 else
26412   echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26414
26415   ac_header_preproc=no
26416 fi
26417
26418 rm -f conftest.err conftest.$ac_ext
26419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26420 echo "${ECHO_T}$ac_header_preproc" >&6; }
26421
26422 # So?  What about this header?
26423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26424   yes:no: )
26425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26429     ac_header_preproc=yes
26430     ;;
26431   no:yes:* )
26432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26434     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26435 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26436     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26438     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26439 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26442     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26444     ( cat <<\_ASBOX
26445 ## --------------------------------------------- ##
26446 ## Report this to <http://www.openldap.org/its/> ##
26447 ## --------------------------------------------- ##
26448 _ASBOX
26449      ) | sed "s/^/$as_me: WARNING:     /" >&2
26450     ;;
26451 esac
26452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26455   echo $ECHO_N "(cached) $ECHO_C" >&6
26456 else
26457   eval "$as_ac_Header=\$ac_header_preproc"
26458 fi
26459 ac_res=`eval echo '${'$as_ac_Header'}'`
26460                { echo "$as_me:$LINENO: result: $ac_res" >&5
26461 echo "${ECHO_T}$ac_res" >&6; }
26462
26463 fi
26464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26465   cat >>confdefs.h <<_ACEOF
26466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26467 _ACEOF
26468
26469 fi
26470
26471 done
26472
26473         if test $ac_cv_header_thread_h = yes &&
26474            test $ac_cv_header_synch_h = yes ; then
26475                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26476 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26477 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26478   echo $ECHO_N "(cached) $ECHO_C" >&6
26479 else
26480   ac_check_lib_save_LIBS=$LIBS
26481 LIBS="-lthread  $LIBS"
26482 cat >conftest.$ac_ext <<_ACEOF
26483 /* confdefs.h.  */
26484 _ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h.  */
26488
26489 /* Override any GCC internal prototype to avoid an error.
26490    Use char because int might match the return type of a GCC
26491    builtin and then its argument prototype would still apply.  */
26492 #ifdef __cplusplus
26493 extern "C"
26494 #endif
26495 char thr_create ();
26496 int
26497 main ()
26498 {
26499 return thr_create ();
26500   ;
26501   return 0;
26502 }
26503 _ACEOF
26504 rm -f conftest.$ac_objext conftest$ac_exeext
26505 if { (ac_try="$ac_link"
26506 case "(($ac_try" in
26507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26508   *) ac_try_echo=$ac_try;;
26509 esac
26510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26511   (eval "$ac_link") 2>conftest.er1
26512   ac_status=$?
26513   grep -v '^ *+' conftest.er1 >conftest.err
26514   rm -f conftest.er1
26515   cat conftest.err >&5
26516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517   (exit $ac_status); } && {
26518          test -z "$ac_c_werror_flag" ||
26519          test ! -s conftest.err
26520        } && test -s conftest$ac_exeext &&
26521        $as_test_x conftest$ac_exeext; then
26522   ac_cv_lib_thread_thr_create=yes
26523 else
26524   echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26526
26527         ac_cv_lib_thread_thr_create=no
26528 fi
26529
26530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26531       conftest$ac_exeext conftest.$ac_ext
26532 LIBS=$ac_check_lib_save_LIBS
26533 fi
26534 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26535 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26536 if test $ac_cv_lib_thread_thr_create = yes; then
26537   have_thr=yes
26538 else
26539   have_thr=no
26540 fi
26541
26542
26543                 if test $have_thr = yes ; then
26544
26545 cat >>confdefs.h <<\_ACEOF
26546 #define HAVE_THR 1
26547 _ACEOF
26548
26549                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26550                         ol_link_threads=thr
26551
26552                         if test $ol_with_yielding_select = auto ; then
26553                                 ol_with_yielding_select=yes
26554                         fi
26555
26556
26557
26558 for ac_func in \
26559                                 thr_setconcurrency \
26560                                 thr_getconcurrency \
26561
26562 do
26563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26567   echo $ECHO_N "(cached) $ECHO_C" >&6
26568 else
26569   cat >conftest.$ac_ext <<_ACEOF
26570 /* confdefs.h.  */
26571 _ACEOF
26572 cat confdefs.h >>conftest.$ac_ext
26573 cat >>conftest.$ac_ext <<_ACEOF
26574 /* end confdefs.h.  */
26575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26577 #define $ac_func innocuous_$ac_func
26578
26579 /* System header to define __stub macros and hopefully few prototypes,
26580     which can conflict with char $ac_func (); below.
26581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26582     <limits.h> exists even on freestanding compilers.  */
26583
26584 #ifdef __STDC__
26585 # include <limits.h>
26586 #else
26587 # include <assert.h>
26588 #endif
26589
26590 #undef $ac_func
26591
26592 /* Override any GCC internal prototype to avoid an error.
26593    Use char because int might match the return type of a GCC
26594    builtin and then its argument prototype would still apply.  */
26595 #ifdef __cplusplus
26596 extern "C"
26597 #endif
26598 char $ac_func ();
26599 /* The GNU C library defines this for functions which it implements
26600     to always fail with ENOSYS.  Some functions are actually named
26601     something starting with __ and the normal name is an alias.  */
26602 #if defined __stub_$ac_func || defined __stub___$ac_func
26603 choke me
26604 #endif
26605
26606 int
26607 main ()
26608 {
26609 return $ac_func ();
26610   ;
26611   return 0;
26612 }
26613 _ACEOF
26614 rm -f conftest.$ac_objext conftest$ac_exeext
26615 if { (ac_try="$ac_link"
26616 case "(($ac_try" in
26617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26618   *) ac_try_echo=$ac_try;;
26619 esac
26620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26621   (eval "$ac_link") 2>conftest.er1
26622   ac_status=$?
26623   grep -v '^ *+' conftest.er1 >conftest.err
26624   rm -f conftest.er1
26625   cat conftest.err >&5
26626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627   (exit $ac_status); } && {
26628          test -z "$ac_c_werror_flag" ||
26629          test ! -s conftest.err
26630        } && test -s conftest$ac_exeext &&
26631        $as_test_x conftest$ac_exeext; then
26632   eval "$as_ac_var=yes"
26633 else
26634   echo "$as_me: failed program was:" >&5
26635 sed 's/^/| /' conftest.$ac_ext >&5
26636
26637         eval "$as_ac_var=no"
26638 fi
26639
26640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26641       conftest$ac_exeext conftest.$ac_ext
26642 fi
26643 ac_res=`eval echo '${'$as_ac_var'}'`
26644                { echo "$as_me:$LINENO: result: $ac_res" >&5
26645 echo "${ECHO_T}$ac_res" >&6; }
26646 if test `eval echo '${'$as_ac_var'}'` = yes; then
26647   cat >>confdefs.h <<_ACEOF
26648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26649 _ACEOF
26650
26651 fi
26652 done
26653
26654                 fi
26655         fi
26656
26657
26658 for ac_header in lwp/lwp.h
26659 do
26660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26662   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26665   echo $ECHO_N "(cached) $ECHO_C" >&6
26666 fi
26667 ac_res=`eval echo '${'$as_ac_Header'}'`
26668                { echo "$as_me:$LINENO: result: $ac_res" >&5
26669 echo "${ECHO_T}$ac_res" >&6; }
26670 else
26671   # Is the header compilable?
26672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26674 cat >conftest.$ac_ext <<_ACEOF
26675 /* confdefs.h.  */
26676 _ACEOF
26677 cat confdefs.h >>conftest.$ac_ext
26678 cat >>conftest.$ac_ext <<_ACEOF
26679 /* end confdefs.h.  */
26680 $ac_includes_default
26681 #include <$ac_header>
26682 _ACEOF
26683 rm -f conftest.$ac_objext
26684 if { (ac_try="$ac_compile"
26685 case "(($ac_try" in
26686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26687   *) ac_try_echo=$ac_try;;
26688 esac
26689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26690   (eval "$ac_compile") 2>conftest.er1
26691   ac_status=$?
26692   grep -v '^ *+' conftest.er1 >conftest.err
26693   rm -f conftest.er1
26694   cat conftest.err >&5
26695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696   (exit $ac_status); } && {
26697          test -z "$ac_c_werror_flag" ||
26698          test ! -s conftest.err
26699        } && test -s conftest.$ac_objext; then
26700   ac_header_compiler=yes
26701 else
26702   echo "$as_me: failed program was:" >&5
26703 sed 's/^/| /' conftest.$ac_ext >&5
26704
26705         ac_header_compiler=no
26706 fi
26707
26708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26710 echo "${ECHO_T}$ac_header_compiler" >&6; }
26711
26712 # Is the header present?
26713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26714 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
26722 _ACEOF
26723 if { (ac_try="$ac_cpp conftest.$ac_ext"
26724 case "(($ac_try" in
26725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26726   *) ac_try_echo=$ac_try;;
26727 esac
26728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26730   ac_status=$?
26731   grep -v '^ *+' conftest.er1 >conftest.err
26732   rm -f conftest.er1
26733   cat conftest.err >&5
26734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735   (exit $ac_status); } >/dev/null && {
26736          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26737          test ! -s conftest.err
26738        }; then
26739   ac_header_preproc=yes
26740 else
26741   echo "$as_me: failed program was:" >&5
26742 sed 's/^/| /' conftest.$ac_ext >&5
26743
26744   ac_header_preproc=no
26745 fi
26746
26747 rm -f conftest.err conftest.$ac_ext
26748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26749 echo "${ECHO_T}$ac_header_preproc" >&6; }
26750
26751 # So?  What about this header?
26752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26753   yes:no: )
26754     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26758     ac_header_preproc=yes
26759     ;;
26760   no:yes:* )
26761     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26763     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26764 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26765     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26767     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26768 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26771     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26773     ( cat <<\_ASBOX
26774 ## --------------------------------------------- ##
26775 ## Report this to <http://www.openldap.org/its/> ##
26776 ## --------------------------------------------- ##
26777 _ASBOX
26778      ) | sed "s/^/$as_me: WARNING:     /" >&2
26779     ;;
26780 esac
26781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26784   echo $ECHO_N "(cached) $ECHO_C" >&6
26785 else
26786   eval "$as_ac_Header=\$ac_header_preproc"
26787 fi
26788 ac_res=`eval echo '${'$as_ac_Header'}'`
26789                { echo "$as_me:$LINENO: result: $ac_res" >&5
26790 echo "${ECHO_T}$ac_res" >&6; }
26791
26792 fi
26793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26794   cat >>confdefs.h <<_ACEOF
26795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26796 _ACEOF
26797
26798 fi
26799
26800 done
26801
26802         if test $ac_cv_header_lwp_lwp_h = yes ; then
26803                 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26804 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26805 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26806   echo $ECHO_N "(cached) $ECHO_C" >&6
26807 else
26808   ac_check_lib_save_LIBS=$LIBS
26809 LIBS="-llwp  $LIBS"
26810 cat >conftest.$ac_ext <<_ACEOF
26811 /* confdefs.h.  */
26812 _ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h.  */
26816
26817 /* Override any GCC internal prototype to avoid an error.
26818    Use char because int might match the return type of a GCC
26819    builtin and then its argument prototype would still apply.  */
26820 #ifdef __cplusplus
26821 extern "C"
26822 #endif
26823 char lwp_create ();
26824 int
26825 main ()
26826 {
26827 return lwp_create ();
26828   ;
26829   return 0;
26830 }
26831 _ACEOF
26832 rm -f conftest.$ac_objext conftest$ac_exeext
26833 if { (ac_try="$ac_link"
26834 case "(($ac_try" in
26835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26836   *) ac_try_echo=$ac_try;;
26837 esac
26838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26839   (eval "$ac_link") 2>conftest.er1
26840   ac_status=$?
26841   grep -v '^ *+' conftest.er1 >conftest.err
26842   rm -f conftest.er1
26843   cat conftest.err >&5
26844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845   (exit $ac_status); } && {
26846          test -z "$ac_c_werror_flag" ||
26847          test ! -s conftest.err
26848        } && test -s conftest$ac_exeext &&
26849        $as_test_x conftest$ac_exeext; then
26850   ac_cv_lib_lwp_lwp_create=yes
26851 else
26852   echo "$as_me: failed program was:" >&5
26853 sed 's/^/| /' conftest.$ac_ext >&5
26854
26855         ac_cv_lib_lwp_lwp_create=no
26856 fi
26857
26858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26859       conftest$ac_exeext conftest.$ac_ext
26860 LIBS=$ac_check_lib_save_LIBS
26861 fi
26862 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26863 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26864 if test $ac_cv_lib_lwp_lwp_create = yes; then
26865   have_lwp=yes
26866 else
26867   have_lwp=no
26868 fi
26869
26870
26871                 if test $have_lwp = yes ; then
26872
26873 cat >>confdefs.h <<\_ACEOF
26874 #define HAVE_LWP 1
26875 _ACEOF
26876
26877                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26878                         ol_link_threads=lwp
26879
26880                         if test $ol_with_yielding_select = auto ; then
26881                                 ol_with_yielding_select=no
26882                         fi
26883                 fi
26884         fi
26885         ;;
26886 esac
26887
26888 if test $ol_with_yielding_select = yes ; then
26889
26890 cat >>confdefs.h <<\_ACEOF
26891 #define HAVE_YIELDING_SELECT 1
26892 _ACEOF
26893
26894 fi
26895
26896 if test $ol_with_threads = manual ; then
26897                 ol_link_threads=yes
26898
26899         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26900 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26901
26902
26903
26904 for ac_header in pthread.h sched.h
26905 do
26906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26908   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26911   echo $ECHO_N "(cached) $ECHO_C" >&6
26912 fi
26913 ac_res=`eval echo '${'$as_ac_Header'}'`
26914                { echo "$as_me:$LINENO: result: $ac_res" >&5
26915 echo "${ECHO_T}$ac_res" >&6; }
26916 else
26917   # Is the header compilable?
26918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26920 cat >conftest.$ac_ext <<_ACEOF
26921 /* confdefs.h.  */
26922 _ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h.  */
26926 $ac_includes_default
26927 #include <$ac_header>
26928 _ACEOF
26929 rm -f conftest.$ac_objext
26930 if { (ac_try="$ac_compile"
26931 case "(($ac_try" in
26932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26933   *) ac_try_echo=$ac_try;;
26934 esac
26935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26936   (eval "$ac_compile") 2>conftest.er1
26937   ac_status=$?
26938   grep -v '^ *+' conftest.er1 >conftest.err
26939   rm -f conftest.er1
26940   cat conftest.err >&5
26941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942   (exit $ac_status); } && {
26943          test -z "$ac_c_werror_flag" ||
26944          test ! -s conftest.err
26945        } && test -s conftest.$ac_objext; then
26946   ac_header_compiler=yes
26947 else
26948   echo "$as_me: failed program was:" >&5
26949 sed 's/^/| /' conftest.$ac_ext >&5
26950
26951         ac_header_compiler=no
26952 fi
26953
26954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26955 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26956 echo "${ECHO_T}$ac_header_compiler" >&6; }
26957
26958 # Is the header present?
26959 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26961 cat >conftest.$ac_ext <<_ACEOF
26962 /* confdefs.h.  */
26963 _ACEOF
26964 cat confdefs.h >>conftest.$ac_ext
26965 cat >>conftest.$ac_ext <<_ACEOF
26966 /* end confdefs.h.  */
26967 #include <$ac_header>
26968 _ACEOF
26969 if { (ac_try="$ac_cpp conftest.$ac_ext"
26970 case "(($ac_try" in
26971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26972   *) ac_try_echo=$ac_try;;
26973 esac
26974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26975   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26976   ac_status=$?
26977   grep -v '^ *+' conftest.er1 >conftest.err
26978   rm -f conftest.er1
26979   cat conftest.err >&5
26980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981   (exit $ac_status); } >/dev/null && {
26982          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26983          test ! -s conftest.err
26984        }; then
26985   ac_header_preproc=yes
26986 else
26987   echo "$as_me: failed program was:" >&5
26988 sed 's/^/| /' conftest.$ac_ext >&5
26989
26990   ac_header_preproc=no
26991 fi
26992
26993 rm -f conftest.err conftest.$ac_ext
26994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26995 echo "${ECHO_T}$ac_header_preproc" >&6; }
26996
26997 # So?  What about this header?
26998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26999   yes:no: )
27000     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27004     ac_header_preproc=yes
27005     ;;
27006   no:yes:* )
27007     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27009     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27010 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27011     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27013     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27014 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27017     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27019     ( cat <<\_ASBOX
27020 ## --------------------------------------------- ##
27021 ## Report this to <http://www.openldap.org/its/> ##
27022 ## --------------------------------------------- ##
27023 _ASBOX
27024      ) | sed "s/^/$as_me: WARNING:     /" >&2
27025     ;;
27026 esac
27027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27030   echo $ECHO_N "(cached) $ECHO_C" >&6
27031 else
27032   eval "$as_ac_Header=\$ac_header_preproc"
27033 fi
27034 ac_res=`eval echo '${'$as_ac_Header'}'`
27035                { echo "$as_me:$LINENO: result: $ac_res" >&5
27036 echo "${ECHO_T}$ac_res" >&6; }
27037
27038 fi
27039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27040   cat >>confdefs.h <<_ACEOF
27041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27042 _ACEOF
27043
27044 fi
27045
27046 done
27047
27048
27049
27050 for ac_func in sched_yield pthread_yield
27051 do
27052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27056   echo $ECHO_N "(cached) $ECHO_C" >&6
27057 else
27058   cat >conftest.$ac_ext <<_ACEOF
27059 /* confdefs.h.  */
27060 _ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h.  */
27064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27066 #define $ac_func innocuous_$ac_func
27067
27068 /* System header to define __stub macros and hopefully few prototypes,
27069     which can conflict with char $ac_func (); below.
27070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27071     <limits.h> exists even on freestanding compilers.  */
27072
27073 #ifdef __STDC__
27074 # include <limits.h>
27075 #else
27076 # include <assert.h>
27077 #endif
27078
27079 #undef $ac_func
27080
27081 /* Override any GCC internal prototype to avoid an error.
27082    Use char because int might match the return type of a GCC
27083    builtin and then its argument prototype would still apply.  */
27084 #ifdef __cplusplus
27085 extern "C"
27086 #endif
27087 char $ac_func ();
27088 /* The GNU C library defines this for functions which it implements
27089     to always fail with ENOSYS.  Some functions are actually named
27090     something starting with __ and the normal name is an alias.  */
27091 #if defined __stub_$ac_func || defined __stub___$ac_func
27092 choke me
27093 #endif
27094
27095 int
27096 main ()
27097 {
27098 return $ac_func ();
27099   ;
27100   return 0;
27101 }
27102 _ACEOF
27103 rm -f conftest.$ac_objext conftest$ac_exeext
27104 if { (ac_try="$ac_link"
27105 case "(($ac_try" in
27106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107   *) ac_try_echo=$ac_try;;
27108 esac
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110   (eval "$ac_link") 2>conftest.er1
27111   ac_status=$?
27112   grep -v '^ *+' conftest.er1 >conftest.err
27113   rm -f conftest.er1
27114   cat conftest.err >&5
27115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116   (exit $ac_status); } && {
27117          test -z "$ac_c_werror_flag" ||
27118          test ! -s conftest.err
27119        } && test -s conftest$ac_exeext &&
27120        $as_test_x conftest$ac_exeext; then
27121   eval "$as_ac_var=yes"
27122 else
27123   echo "$as_me: failed program was:" >&5
27124 sed 's/^/| /' conftest.$ac_ext >&5
27125
27126         eval "$as_ac_var=no"
27127 fi
27128
27129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27130       conftest$ac_exeext conftest.$ac_ext
27131 fi
27132 ac_res=`eval echo '${'$as_ac_var'}'`
27133                { echo "$as_me:$LINENO: result: $ac_res" >&5
27134 echo "${ECHO_T}$ac_res" >&6; }
27135 if test `eval echo '${'$as_ac_var'}'` = yes; then
27136   cat >>confdefs.h <<_ACEOF
27137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27138 _ACEOF
27139
27140 fi
27141 done
27142
27143
27144         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
27145 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
27146 if test "${ol_cv_header_linux_threads+set}" = set; then
27147   echo $ECHO_N "(cached) $ECHO_C" >&6
27148 else
27149   cat >conftest.$ac_ext <<_ACEOF
27150 /* confdefs.h.  */
27151 _ACEOF
27152 cat confdefs.h >>conftest.$ac_ext
27153 cat >>conftest.$ac_ext <<_ACEOF
27154 /* end confdefs.h.  */
27155 #include <pthread.h>
27156 _ACEOF
27157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27158   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
27159   ol_cv_header_linux_threads=yes
27160 else
27161   ol_cv_header_linux_threads=no
27162 fi
27163 rm -f conftest*
27164
27165
27166 fi
27167 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
27168 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
27169         if test $ol_cv_header_linux_threads = yes; then
27170
27171 cat >>confdefs.h <<\_ACEOF
27172 #define HAVE_LINUX_THREADS 1
27173 _ACEOF
27174
27175         fi
27176
27177
27178
27179 for ac_header in mach/cthreads.h
27180 do
27181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27183   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27186   echo $ECHO_N "(cached) $ECHO_C" >&6
27187 fi
27188 ac_res=`eval echo '${'$as_ac_Header'}'`
27189                { echo "$as_me:$LINENO: result: $ac_res" >&5
27190 echo "${ECHO_T}$ac_res" >&6; }
27191 else
27192   # Is the header compilable?
27193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27195 cat >conftest.$ac_ext <<_ACEOF
27196 /* confdefs.h.  */
27197 _ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h.  */
27201 $ac_includes_default
27202 #include <$ac_header>
27203 _ACEOF
27204 rm -f conftest.$ac_objext
27205 if { (ac_try="$ac_compile"
27206 case "(($ac_try" in
27207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208   *) ac_try_echo=$ac_try;;
27209 esac
27210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27211   (eval "$ac_compile") 2>conftest.er1
27212   ac_status=$?
27213   grep -v '^ *+' conftest.er1 >conftest.err
27214   rm -f conftest.er1
27215   cat conftest.err >&5
27216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217   (exit $ac_status); } && {
27218          test -z "$ac_c_werror_flag" ||
27219          test ! -s conftest.err
27220        } && test -s conftest.$ac_objext; then
27221   ac_header_compiler=yes
27222 else
27223   echo "$as_me: failed program was:" >&5
27224 sed 's/^/| /' conftest.$ac_ext >&5
27225
27226         ac_header_compiler=no
27227 fi
27228
27229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27231 echo "${ECHO_T}$ac_header_compiler" >&6; }
27232
27233 # Is the header present?
27234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27236 cat >conftest.$ac_ext <<_ACEOF
27237 /* confdefs.h.  */
27238 _ACEOF
27239 cat confdefs.h >>conftest.$ac_ext
27240 cat >>conftest.$ac_ext <<_ACEOF
27241 /* end confdefs.h.  */
27242 #include <$ac_header>
27243 _ACEOF
27244 if { (ac_try="$ac_cpp conftest.$ac_ext"
27245 case "(($ac_try" in
27246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27247   *) ac_try_echo=$ac_try;;
27248 esac
27249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27251   ac_status=$?
27252   grep -v '^ *+' conftest.er1 >conftest.err
27253   rm -f conftest.er1
27254   cat conftest.err >&5
27255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256   (exit $ac_status); } >/dev/null && {
27257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27258          test ! -s conftest.err
27259        }; then
27260   ac_header_preproc=yes
27261 else
27262   echo "$as_me: failed program was:" >&5
27263 sed 's/^/| /' conftest.$ac_ext >&5
27264
27265   ac_header_preproc=no
27266 fi
27267
27268 rm -f conftest.err conftest.$ac_ext
27269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27270 echo "${ECHO_T}$ac_header_preproc" >&6; }
27271
27272 # So?  What about this header?
27273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27274   yes:no: )
27275     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27279     ac_header_preproc=yes
27280     ;;
27281   no:yes:* )
27282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27284     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27285 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27286     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27288     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27289 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27292     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27294     ( cat <<\_ASBOX
27295 ## --------------------------------------------- ##
27296 ## Report this to <http://www.openldap.org/its/> ##
27297 ## --------------------------------------------- ##
27298 _ASBOX
27299      ) | sed "s/^/$as_me: WARNING:     /" >&2
27300     ;;
27301 esac
27302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27305   echo $ECHO_N "(cached) $ECHO_C" >&6
27306 else
27307   eval "$as_ac_Header=\$ac_header_preproc"
27308 fi
27309 ac_res=`eval echo '${'$as_ac_Header'}'`
27310                { echo "$as_me:$LINENO: result: $ac_res" >&5
27311 echo "${ECHO_T}$ac_res" >&6; }
27312
27313 fi
27314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27315   cat >>confdefs.h <<_ACEOF
27316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27317 _ACEOF
27318
27319 fi
27320
27321 done
27322
27323
27324 for ac_header in lwp/lwp.h
27325 do
27326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27328   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27331   echo $ECHO_N "(cached) $ECHO_C" >&6
27332 fi
27333 ac_res=`eval echo '${'$as_ac_Header'}'`
27334                { echo "$as_me:$LINENO: result: $ac_res" >&5
27335 echo "${ECHO_T}$ac_res" >&6; }
27336 else
27337   # Is the header compilable?
27338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27340 cat >conftest.$ac_ext <<_ACEOF
27341 /* confdefs.h.  */
27342 _ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h.  */
27346 $ac_includes_default
27347 #include <$ac_header>
27348 _ACEOF
27349 rm -f conftest.$ac_objext
27350 if { (ac_try="$ac_compile"
27351 case "(($ac_try" in
27352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27353   *) ac_try_echo=$ac_try;;
27354 esac
27355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27356   (eval "$ac_compile") 2>conftest.er1
27357   ac_status=$?
27358   grep -v '^ *+' conftest.er1 >conftest.err
27359   rm -f conftest.er1
27360   cat conftest.err >&5
27361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362   (exit $ac_status); } && {
27363          test -z "$ac_c_werror_flag" ||
27364          test ! -s conftest.err
27365        } && test -s conftest.$ac_objext; then
27366   ac_header_compiler=yes
27367 else
27368   echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27370
27371         ac_header_compiler=no
27372 fi
27373
27374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27376 echo "${ECHO_T}$ac_header_compiler" >&6; }
27377
27378 # Is the header present?
27379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27381 cat >conftest.$ac_ext <<_ACEOF
27382 /* confdefs.h.  */
27383 _ACEOF
27384 cat confdefs.h >>conftest.$ac_ext
27385 cat >>conftest.$ac_ext <<_ACEOF
27386 /* end confdefs.h.  */
27387 #include <$ac_header>
27388 _ACEOF
27389 if { (ac_try="$ac_cpp conftest.$ac_ext"
27390 case "(($ac_try" in
27391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27392   *) ac_try_echo=$ac_try;;
27393 esac
27394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27396   ac_status=$?
27397   grep -v '^ *+' conftest.er1 >conftest.err
27398   rm -f conftest.er1
27399   cat conftest.err >&5
27400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401   (exit $ac_status); } >/dev/null && {
27402          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27403          test ! -s conftest.err
27404        }; then
27405   ac_header_preproc=yes
27406 else
27407   echo "$as_me: failed program was:" >&5
27408 sed 's/^/| /' conftest.$ac_ext >&5
27409
27410   ac_header_preproc=no
27411 fi
27412
27413 rm -f conftest.err conftest.$ac_ext
27414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27415 echo "${ECHO_T}$ac_header_preproc" >&6; }
27416
27417 # So?  What about this header?
27418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27419   yes:no: )
27420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27424     ac_header_preproc=yes
27425     ;;
27426   no:yes:* )
27427     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27429     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27430 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27431     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27433     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27434 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27437     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27439     ( cat <<\_ASBOX
27440 ## --------------------------------------------- ##
27441 ## Report this to <http://www.openldap.org/its/> ##
27442 ## --------------------------------------------- ##
27443 _ASBOX
27444      ) | sed "s/^/$as_me: WARNING:     /" >&2
27445     ;;
27446 esac
27447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27450   echo $ECHO_N "(cached) $ECHO_C" >&6
27451 else
27452   eval "$as_ac_Header=\$ac_header_preproc"
27453 fi
27454 ac_res=`eval echo '${'$as_ac_Header'}'`
27455                { echo "$as_me:$LINENO: result: $ac_res" >&5
27456 echo "${ECHO_T}$ac_res" >&6; }
27457
27458 fi
27459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27460   cat >>confdefs.h <<_ACEOF
27461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27462 _ACEOF
27463
27464 fi
27465
27466 done
27467
27468
27469
27470 for ac_header in thread.h synch.h
27471 do
27472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27474   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27477   echo $ECHO_N "(cached) $ECHO_C" >&6
27478 fi
27479 ac_res=`eval echo '${'$as_ac_Header'}'`
27480                { echo "$as_me:$LINENO: result: $ac_res" >&5
27481 echo "${ECHO_T}$ac_res" >&6; }
27482 else
27483   # Is the header compilable?
27484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27486 cat >conftest.$ac_ext <<_ACEOF
27487 /* confdefs.h.  */
27488 _ACEOF
27489 cat confdefs.h >>conftest.$ac_ext
27490 cat >>conftest.$ac_ext <<_ACEOF
27491 /* end confdefs.h.  */
27492 $ac_includes_default
27493 #include <$ac_header>
27494 _ACEOF
27495 rm -f conftest.$ac_objext
27496 if { (ac_try="$ac_compile"
27497 case "(($ac_try" in
27498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499   *) ac_try_echo=$ac_try;;
27500 esac
27501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27502   (eval "$ac_compile") 2>conftest.er1
27503   ac_status=$?
27504   grep -v '^ *+' conftest.er1 >conftest.err
27505   rm -f conftest.er1
27506   cat conftest.err >&5
27507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508   (exit $ac_status); } && {
27509          test -z "$ac_c_werror_flag" ||
27510          test ! -s conftest.err
27511        } && test -s conftest.$ac_objext; then
27512   ac_header_compiler=yes
27513 else
27514   echo "$as_me: failed program was:" >&5
27515 sed 's/^/| /' conftest.$ac_ext >&5
27516
27517         ac_header_compiler=no
27518 fi
27519
27520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27522 echo "${ECHO_T}$ac_header_compiler" >&6; }
27523
27524 # Is the header present?
27525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27527 cat >conftest.$ac_ext <<_ACEOF
27528 /* confdefs.h.  */
27529 _ACEOF
27530 cat confdefs.h >>conftest.$ac_ext
27531 cat >>conftest.$ac_ext <<_ACEOF
27532 /* end confdefs.h.  */
27533 #include <$ac_header>
27534 _ACEOF
27535 if { (ac_try="$ac_cpp conftest.$ac_ext"
27536 case "(($ac_try" in
27537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27538   *) ac_try_echo=$ac_try;;
27539 esac
27540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27541   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27542   ac_status=$?
27543   grep -v '^ *+' conftest.er1 >conftest.err
27544   rm -f conftest.er1
27545   cat conftest.err >&5
27546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547   (exit $ac_status); } >/dev/null && {
27548          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27549          test ! -s conftest.err
27550        }; then
27551   ac_header_preproc=yes
27552 else
27553   echo "$as_me: failed program was:" >&5
27554 sed 's/^/| /' conftest.$ac_ext >&5
27555
27556   ac_header_preproc=no
27557 fi
27558
27559 rm -f conftest.err conftest.$ac_ext
27560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27561 echo "${ECHO_T}$ac_header_preproc" >&6; }
27562
27563 # So?  What about this header?
27564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27565   yes:no: )
27566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27570     ac_header_preproc=yes
27571     ;;
27572   no:yes:* )
27573     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27575     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27576 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27577     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27579     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27580 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27583     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27585     ( cat <<\_ASBOX
27586 ## --------------------------------------------- ##
27587 ## Report this to <http://www.openldap.org/its/> ##
27588 ## --------------------------------------------- ##
27589 _ASBOX
27590      ) | sed "s/^/$as_me: WARNING:     /" >&2
27591     ;;
27592 esac
27593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27596   echo $ECHO_N "(cached) $ECHO_C" >&6
27597 else
27598   eval "$as_ac_Header=\$ac_header_preproc"
27599 fi
27600 ac_res=`eval echo '${'$as_ac_Header'}'`
27601                { echo "$as_me:$LINENO: result: $ac_res" >&5
27602 echo "${ECHO_T}$ac_res" >&6; }
27603
27604 fi
27605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27606   cat >>confdefs.h <<_ACEOF
27607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27608 _ACEOF
27609
27610 fi
27611
27612 done
27613
27614 fi
27615
27616 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27617                         cat >>confdefs.h <<\_ACEOF
27618 #define REENTRANT 1
27619 _ACEOF
27620
27621         cat >>confdefs.h <<\_ACEOF
27622 #define _REENTRANT 1
27623 _ACEOF
27624
27625         cat >>confdefs.h <<\_ACEOF
27626 #define THREAD_SAFE 1
27627 _ACEOF
27628
27629         cat >>confdefs.h <<\_ACEOF
27630 #define _THREAD_SAFE 1
27631 _ACEOF
27632
27633         cat >>confdefs.h <<\_ACEOF
27634 #define THREADSAFE 1
27635 _ACEOF
27636
27637         cat >>confdefs.h <<\_ACEOF
27638 #define _THREADSAFE 1
27639 _ACEOF
27640
27641         cat >>confdefs.h <<\_ACEOF
27642 #define _SGI_MP_SOURCE 1
27643 _ACEOF
27644
27645
27646                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27647 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27648 if test "${ol_cv_errno_thread_specific+set}" = set; then
27649   echo $ECHO_N "(cached) $ECHO_C" >&6
27650 else
27651
27652                 cat >conftest.$ac_ext <<_ACEOF
27653 /* confdefs.h.  */
27654 _ACEOF
27655 cat confdefs.h >>conftest.$ac_ext
27656 cat >>conftest.$ac_ext <<_ACEOF
27657 /* end confdefs.h.  */
27658 #include <errno.h>
27659 int
27660 main ()
27661 {
27662 errno = 0;
27663   ;
27664   return 0;
27665 }
27666 _ACEOF
27667 rm -f conftest.$ac_objext conftest$ac_exeext
27668 if { (ac_try="$ac_link"
27669 case "(($ac_try" in
27670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671   *) ac_try_echo=$ac_try;;
27672 esac
27673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674   (eval "$ac_link") 2>conftest.er1
27675   ac_status=$?
27676   grep -v '^ *+' conftest.er1 >conftest.err
27677   rm -f conftest.er1
27678   cat conftest.err >&5
27679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680   (exit $ac_status); } && {
27681          test -z "$ac_c_werror_flag" ||
27682          test ! -s conftest.err
27683        } && test -s conftest$ac_exeext &&
27684        $as_test_x conftest$ac_exeext; then
27685   ol_cv_errno_thread_specific=yes
27686 else
27687   echo "$as_me: failed program was:" >&5
27688 sed 's/^/| /' conftest.$ac_ext >&5
27689
27690         ol_cv_errno_thread_specific=no
27691 fi
27692
27693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27694       conftest$ac_exeext conftest.$ac_ext
27695
27696 fi
27697 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27698 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27699
27700                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27701 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27702 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27703   echo $ECHO_N "(cached) $ECHO_C" >&6
27704 else
27705
27706                 cat >conftest.$ac_ext <<_ACEOF
27707 /* confdefs.h.  */
27708 _ACEOF
27709 cat confdefs.h >>conftest.$ac_ext
27710 cat >>conftest.$ac_ext <<_ACEOF
27711 /* end confdefs.h.  */
27712 #include <netdb.h>
27713 int
27714 main ()
27715 {
27716 h_errno = 0;
27717   ;
27718   return 0;
27719 }
27720 _ACEOF
27721 rm -f conftest.$ac_objext conftest$ac_exeext
27722 if { (ac_try="$ac_link"
27723 case "(($ac_try" in
27724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27725   *) ac_try_echo=$ac_try;;
27726 esac
27727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27728   (eval "$ac_link") 2>conftest.er1
27729   ac_status=$?
27730   grep -v '^ *+' conftest.er1 >conftest.err
27731   rm -f conftest.er1
27732   cat conftest.err >&5
27733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734   (exit $ac_status); } && {
27735          test -z "$ac_c_werror_flag" ||
27736          test ! -s conftest.err
27737        } && test -s conftest$ac_exeext &&
27738        $as_test_x conftest$ac_exeext; then
27739   ol_cv_h_errno_thread_specific=yes
27740 else
27741   echo "$as_me: failed program was:" >&5
27742 sed 's/^/| /' conftest.$ac_ext >&5
27743
27744         ol_cv_h_errno_thread_specific=no
27745 fi
27746
27747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27748       conftest$ac_exeext conftest.$ac_ext
27749
27750 fi
27751 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27752 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27753
27754         if test $ol_cv_errno_thread_specific != yes ||
27755            test $ol_cv_h_errno_thread_specific != yes ; then
27756                 LIBS="$LTHREAD_LIBS $LIBS"
27757                 LTHREAD_LIBS=""
27758         fi
27759
27760 fi
27761
27762 if test $ol_link_threads = no ; then
27763         if test $ol_with_threads = yes ; then
27764                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27765 echo "$as_me: error: no suitable thread support" >&2;}
27766    { (exit 1); exit 1; }; }
27767         fi
27768
27769         if test $ol_with_threads = auto ; then
27770                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27771 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27772                 ol_with_threads=no
27773         fi
27774
27775
27776 cat >>confdefs.h <<\_ACEOF
27777 #define NO_THREADS 1
27778 _ACEOF
27779
27780         LTHREAD_LIBS=""
27781         BUILD_THREAD=no
27782 else
27783         BUILD_THREAD=yes
27784 fi
27785
27786 if test $ol_link_threads != no ; then
27787
27788 cat >>confdefs.h <<\_ACEOF
27789 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27790 _ACEOF
27791
27792 fi
27793
27794
27795
27796
27797 for ac_func in \
27798         ctime_r                 \
27799         gethostbyname_r gethostbyaddr_r \
27800
27801 do
27802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27806   echo $ECHO_N "(cached) $ECHO_C" >&6
27807 else
27808   cat >conftest.$ac_ext <<_ACEOF
27809 /* confdefs.h.  */
27810 _ACEOF
27811 cat confdefs.h >>conftest.$ac_ext
27812 cat >>conftest.$ac_ext <<_ACEOF
27813 /* end confdefs.h.  */
27814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27816 #define $ac_func innocuous_$ac_func
27817
27818 /* System header to define __stub macros and hopefully few prototypes,
27819     which can conflict with char $ac_func (); below.
27820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27821     <limits.h> exists even on freestanding compilers.  */
27822
27823 #ifdef __STDC__
27824 # include <limits.h>
27825 #else
27826 # include <assert.h>
27827 #endif
27828
27829 #undef $ac_func
27830
27831 /* Override any GCC internal prototype to avoid an error.
27832    Use char because int might match the return type of a GCC
27833    builtin and then its argument prototype would still apply.  */
27834 #ifdef __cplusplus
27835 extern "C"
27836 #endif
27837 char $ac_func ();
27838 /* The GNU C library defines this for functions which it implements
27839     to always fail with ENOSYS.  Some functions are actually named
27840     something starting with __ and the normal name is an alias.  */
27841 #if defined __stub_$ac_func || defined __stub___$ac_func
27842 choke me
27843 #endif
27844
27845 int
27846 main ()
27847 {
27848 return $ac_func ();
27849   ;
27850   return 0;
27851 }
27852 _ACEOF
27853 rm -f conftest.$ac_objext conftest$ac_exeext
27854 if { (ac_try="$ac_link"
27855 case "(($ac_try" in
27856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857   *) ac_try_echo=$ac_try;;
27858 esac
27859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860   (eval "$ac_link") 2>conftest.er1
27861   ac_status=$?
27862   grep -v '^ *+' conftest.er1 >conftest.err
27863   rm -f conftest.er1
27864   cat conftest.err >&5
27865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866   (exit $ac_status); } && {
27867          test -z "$ac_c_werror_flag" ||
27868          test ! -s conftest.err
27869        } && test -s conftest$ac_exeext &&
27870        $as_test_x conftest$ac_exeext; then
27871   eval "$as_ac_var=yes"
27872 else
27873   echo "$as_me: failed program was:" >&5
27874 sed 's/^/| /' conftest.$ac_ext >&5
27875
27876         eval "$as_ac_var=no"
27877 fi
27878
27879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27880       conftest$ac_exeext conftest.$ac_ext
27881 fi
27882 ac_res=`eval echo '${'$as_ac_var'}'`
27883                { echo "$as_me:$LINENO: result: $ac_res" >&5
27884 echo "${ECHO_T}$ac_res" >&6; }
27885 if test `eval echo '${'$as_ac_var'}'` = yes; then
27886   cat >>confdefs.h <<_ACEOF
27887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27888 _ACEOF
27889
27890 fi
27891 done
27892
27893
27894 if test "$ac_cv_func_ctime_r" = no ; then
27895         ol_cv_func_ctime_r_nargs=0
27896 else
27897         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27898 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27899 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27900   echo $ECHO_N "(cached) $ECHO_C" >&6
27901 else
27902   cat >conftest.$ac_ext <<_ACEOF
27903 /* confdefs.h.  */
27904 _ACEOF
27905 cat confdefs.h >>conftest.$ac_ext
27906 cat >>conftest.$ac_ext <<_ACEOF
27907 /* end confdefs.h.  */
27908 #include <time.h>
27909 int
27910 main ()
27911 {
27912 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27913   ;
27914   return 0;
27915 }
27916 _ACEOF
27917 rm -f conftest.$ac_objext
27918 if { (ac_try="$ac_compile"
27919 case "(($ac_try" in
27920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921   *) ac_try_echo=$ac_try;;
27922 esac
27923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924   (eval "$ac_compile") 2>conftest.er1
27925   ac_status=$?
27926   grep -v '^ *+' conftest.er1 >conftest.err
27927   rm -f conftest.er1
27928   cat conftest.err >&5
27929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930   (exit $ac_status); } && {
27931          test -z "$ac_c_werror_flag" ||
27932          test ! -s conftest.err
27933        } && test -s conftest.$ac_objext; then
27934   ol_cv_func_ctime_r_nargs3=yes
27935 else
27936   echo "$as_me: failed program was:" >&5
27937 sed 's/^/| /' conftest.$ac_ext >&5
27938
27939         ol_cv_func_ctime_r_nargs3=no
27940 fi
27941
27942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27943
27944         cat >conftest.$ac_ext <<_ACEOF
27945 /* confdefs.h.  */
27946 _ACEOF
27947 cat confdefs.h >>conftest.$ac_ext
27948 cat >>conftest.$ac_ext <<_ACEOF
27949 /* end confdefs.h.  */
27950 #include <time.h>
27951 int
27952 main ()
27953 {
27954 time_t ti; char *buffer; ctime_r(&ti,buffer);
27955   ;
27956   return 0;
27957 }
27958 _ACEOF
27959 rm -f conftest.$ac_objext
27960 if { (ac_try="$ac_compile"
27961 case "(($ac_try" in
27962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963   *) ac_try_echo=$ac_try;;
27964 esac
27965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966   (eval "$ac_compile") 2>conftest.er1
27967   ac_status=$?
27968   grep -v '^ *+' conftest.er1 >conftest.err
27969   rm -f conftest.er1
27970   cat conftest.err >&5
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); } && {
27973          test -z "$ac_c_werror_flag" ||
27974          test ! -s conftest.err
27975        } && test -s conftest.$ac_objext; then
27976   ol_cv_func_ctime_r_nargs2=yes
27977 else
27978   echo "$as_me: failed program was:" >&5
27979 sed 's/^/| /' conftest.$ac_ext >&5
27980
27981         ol_cv_func_ctime_r_nargs2=no
27982 fi
27983
27984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27985
27986         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27987            test $ol_cv_func_ctime_r_nargs2 = no ; then
27988
27989                 ol_cv_func_ctime_r_nargs=3
27990
27991         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27992              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27993
27994                 ol_cv_func_ctime_r_nargs=2
27995
27996         else
27997                 ol_cv_func_ctime_r_nargs=0
27998         fi
27999
28000 fi
28001 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
28002 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
28003
28004   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
28005
28006 cat >>confdefs.h <<_ACEOF
28007 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
28008 _ACEOF
28009
28010   fi
28011
28012 fi
28013
28014 if test "$ac_cv_func_gethostbyname_r" = yes ; then
28015         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
28016 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
28017 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
28018   echo $ECHO_N "(cached) $ECHO_C" >&6
28019 else
28020   cat >conftest.$ac_ext <<_ACEOF
28021 /* confdefs.h.  */
28022 _ACEOF
28023 cat confdefs.h >>conftest.$ac_ext
28024 cat >>conftest.$ac_ext <<_ACEOF
28025 /* end confdefs.h.  */
28026 #include <sys/types.h>
28027 #include <sys/socket.h>
28028 #include <netinet/in.h>
28029 #include <netdb.h>
28030 #define BUFSIZE (sizeof(struct hostent)+10)
28031 int
28032 main ()
28033 {
28034 struct hostent hent; char buffer[BUFSIZE];
28035                 int bufsize=BUFSIZE;int h_errno;
28036                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
28037                         buffer, bufsize, &h_errno);
28038   ;
28039   return 0;
28040 }
28041 _ACEOF
28042 rm -f conftest.$ac_objext
28043 if { (ac_try="$ac_compile"
28044 case "(($ac_try" in
28045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046   *) ac_try_echo=$ac_try;;
28047 esac
28048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049   (eval "$ac_compile") 2>conftest.er1
28050   ac_status=$?
28051   grep -v '^ *+' conftest.er1 >conftest.err
28052   rm -f conftest.er1
28053   cat conftest.err >&5
28054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055   (exit $ac_status); } && {
28056          test -z "$ac_c_werror_flag" ||
28057          test ! -s conftest.err
28058        } && test -s conftest.$ac_objext; then
28059   ol_cv_func_gethostbyname_r_nargs5=yes
28060 else
28061   echo "$as_me: failed program was:" >&5
28062 sed 's/^/| /' conftest.$ac_ext >&5
28063
28064         ol_cv_func_gethostbyname_r_nargs5=no
28065 fi
28066
28067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28068
28069         cat >conftest.$ac_ext <<_ACEOF
28070 /* confdefs.h.  */
28071 _ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h.  */
28075 #include <sys/types.h>
28076 #include <sys/socket.h>
28077 #include <netinet/in.h>
28078 #include <netdb.h>
28079 #define BUFSIZE (sizeof(struct hostent)+10)
28080 int
28081 main ()
28082 {
28083 struct hostent hent;struct hostent *rhent;
28084                 char buffer[BUFSIZE];
28085                 int bufsize=BUFSIZE;int h_errno;
28086                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
28087                         &rhent, &h_errno);
28088   ;
28089   return 0;
28090 }
28091 _ACEOF
28092 rm -f conftest.$ac_objext
28093 if { (ac_try="$ac_compile"
28094 case "(($ac_try" in
28095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096   *) ac_try_echo=$ac_try;;
28097 esac
28098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099   (eval "$ac_compile") 2>conftest.er1
28100   ac_status=$?
28101   grep -v '^ *+' conftest.er1 >conftest.err
28102   rm -f conftest.er1
28103   cat conftest.err >&5
28104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105   (exit $ac_status); } && {
28106          test -z "$ac_c_werror_flag" ||
28107          test ! -s conftest.err
28108        } && test -s conftest.$ac_objext; then
28109   ol_cv_func_gethostbyname_r_nargs6=yes
28110 else
28111   echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28113
28114         ol_cv_func_gethostbyname_r_nargs6=no
28115 fi
28116
28117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28118
28119         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
28120            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
28121
28122                 ol_cv_func_gethostbyname_r_nargs=5
28123
28124         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
28125              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
28126
28127                 ol_cv_func_gethostbyname_r_nargs=6
28128
28129         else
28130                 ol_cv_func_gethostbyname_r_nargs=0
28131         fi
28132
28133 fi
28134 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
28135 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
28136   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
28137
28138 cat >>confdefs.h <<_ACEOF
28139 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
28140 _ACEOF
28141
28142   fi
28143
28144 else
28145         ol_cv_func_gethostbyname_r_nargs=0
28146 fi
28147
28148 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
28149         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
28150 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
28151 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
28152   echo $ECHO_N "(cached) $ECHO_C" >&6
28153 else
28154   cat >conftest.$ac_ext <<_ACEOF
28155 /* confdefs.h.  */
28156 _ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h.  */
28160 #include <sys/types.h>
28161 #include <sys/socket.h>
28162 #include <netinet/in.h>
28163 #include <netdb.h>
28164 #define BUFSIZE (sizeof(struct hostent)+10)
28165 int
28166 main ()
28167 {
28168 struct hostent hent; char buffer[BUFSIZE];
28169             struct in_addr add;
28170             size_t alen=sizeof(struct in_addr);
28171             int bufsize=BUFSIZE;int h_errno;
28172                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28173                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
28174   ;
28175   return 0;
28176 }
28177 _ACEOF
28178 rm -f conftest.$ac_objext
28179 if { (ac_try="$ac_compile"
28180 case "(($ac_try" in
28181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182   *) ac_try_echo=$ac_try;;
28183 esac
28184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28185   (eval "$ac_compile") 2>conftest.er1
28186   ac_status=$?
28187   grep -v '^ *+' conftest.er1 >conftest.err
28188   rm -f conftest.er1
28189   cat conftest.err >&5
28190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191   (exit $ac_status); } && {
28192          test -z "$ac_c_werror_flag" ||
28193          test ! -s conftest.err
28194        } && test -s conftest.$ac_objext; then
28195   ol_cv_func_gethostbyaddr_r_nargs7=yes
28196 else
28197   echo "$as_me: failed program was:" >&5
28198 sed 's/^/| /' conftest.$ac_ext >&5
28199
28200         ol_cv_func_gethostbyaddr_r_nargs7=no
28201 fi
28202
28203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28204
28205         cat >conftest.$ac_ext <<_ACEOF
28206 /* confdefs.h.  */
28207 _ACEOF
28208 cat confdefs.h >>conftest.$ac_ext
28209 cat >>conftest.$ac_ext <<_ACEOF
28210 /* end confdefs.h.  */
28211 #include <sys/types.h>
28212 #include <sys/socket.h>
28213 #include <netinet/in.h>
28214 #include <netdb.h>
28215 #define BUFSIZE (sizeof(struct hostent)+10)
28216 int
28217 main ()
28218 {
28219 struct hostent hent;
28220                 struct hostent *rhent; char buffer[BUFSIZE];
28221                 struct in_addr add;
28222                 size_t alen=sizeof(struct in_addr);
28223                 int bufsize=BUFSIZE;int h_errno;
28224                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28225                         alen, AF_INET, &hent, buffer, bufsize,
28226                         &rhent, &h_errno);
28227   ;
28228   return 0;
28229 }
28230 _ACEOF
28231 rm -f conftest.$ac_objext
28232 if { (ac_try="$ac_compile"
28233 case "(($ac_try" in
28234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28235   *) ac_try_echo=$ac_try;;
28236 esac
28237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28238   (eval "$ac_compile") 2>conftest.er1
28239   ac_status=$?
28240   grep -v '^ *+' conftest.er1 >conftest.err
28241   rm -f conftest.er1
28242   cat conftest.err >&5
28243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244   (exit $ac_status); } && {
28245          test -z "$ac_c_werror_flag" ||
28246          test ! -s conftest.err
28247        } && test -s conftest.$ac_objext; then
28248   ol_cv_func_gethostbyaddr_r_nargs8=yes
28249 else
28250   echo "$as_me: failed program was:" >&5
28251 sed 's/^/| /' conftest.$ac_ext >&5
28252
28253         ol_cv_func_gethostbyaddr_r_nargs8=no
28254 fi
28255
28256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28257
28258         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28259            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28260
28261                 ol_cv_func_gethostbyaddr_r_nargs=7
28262
28263         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28264              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28265
28266                 ol_cv_func_gethostbyaddr_r_nargs=8
28267
28268         else
28269                 ol_cv_func_gethostbyaddr_r_nargs=0
28270         fi
28271
28272 fi
28273 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28274 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
28275   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28276
28277 cat >>confdefs.h <<_ACEOF
28278 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28279 _ACEOF
28280
28281   fi
28282
28283 else
28284         ol_cv_func_gethostbyaddr_r_nargs=0
28285 fi
28286
28287 ol_link_bdb=no
28288
28289 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28290         ol_cv_berkeley_db=no
28291
28292 for ac_header in db.h
28293 do
28294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28296   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28299   echo $ECHO_N "(cached) $ECHO_C" >&6
28300 fi
28301 ac_res=`eval echo '${'$as_ac_Header'}'`
28302                { echo "$as_me:$LINENO: result: $ac_res" >&5
28303 echo "${ECHO_T}$ac_res" >&6; }
28304 else
28305   # Is the header compilable?
28306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28308 cat >conftest.$ac_ext <<_ACEOF
28309 /* confdefs.h.  */
28310 _ACEOF
28311 cat confdefs.h >>conftest.$ac_ext
28312 cat >>conftest.$ac_ext <<_ACEOF
28313 /* end confdefs.h.  */
28314 $ac_includes_default
28315 #include <$ac_header>
28316 _ACEOF
28317 rm -f conftest.$ac_objext
28318 if { (ac_try="$ac_compile"
28319 case "(($ac_try" in
28320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321   *) ac_try_echo=$ac_try;;
28322 esac
28323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324   (eval "$ac_compile") 2>conftest.er1
28325   ac_status=$?
28326   grep -v '^ *+' conftest.er1 >conftest.err
28327   rm -f conftest.er1
28328   cat conftest.err >&5
28329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330   (exit $ac_status); } && {
28331          test -z "$ac_c_werror_flag" ||
28332          test ! -s conftest.err
28333        } && test -s conftest.$ac_objext; then
28334   ac_header_compiler=yes
28335 else
28336   echo "$as_me: failed program was:" >&5
28337 sed 's/^/| /' conftest.$ac_ext >&5
28338
28339         ac_header_compiler=no
28340 fi
28341
28342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28344 echo "${ECHO_T}$ac_header_compiler" >&6; }
28345
28346 # Is the header present?
28347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28349 cat >conftest.$ac_ext <<_ACEOF
28350 /* confdefs.h.  */
28351 _ACEOF
28352 cat confdefs.h >>conftest.$ac_ext
28353 cat >>conftest.$ac_ext <<_ACEOF
28354 /* end confdefs.h.  */
28355 #include <$ac_header>
28356 _ACEOF
28357 if { (ac_try="$ac_cpp conftest.$ac_ext"
28358 case "(($ac_try" in
28359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360   *) ac_try_echo=$ac_try;;
28361 esac
28362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28364   ac_status=$?
28365   grep -v '^ *+' conftest.er1 >conftest.err
28366   rm -f conftest.er1
28367   cat conftest.err >&5
28368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369   (exit $ac_status); } >/dev/null && {
28370          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28371          test ! -s conftest.err
28372        }; then
28373   ac_header_preproc=yes
28374 else
28375   echo "$as_me: failed program was:" >&5
28376 sed 's/^/| /' conftest.$ac_ext >&5
28377
28378   ac_header_preproc=no
28379 fi
28380
28381 rm -f conftest.err conftest.$ac_ext
28382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28383 echo "${ECHO_T}$ac_header_preproc" >&6; }
28384
28385 # So?  What about this header?
28386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28387   yes:no: )
28388     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28392     ac_header_preproc=yes
28393     ;;
28394   no:yes:* )
28395     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28397     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28398 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28399     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28401     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28402 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28405     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28407     ( cat <<\_ASBOX
28408 ## --------------------------------------------- ##
28409 ## Report this to <http://www.openldap.org/its/> ##
28410 ## --------------------------------------------- ##
28411 _ASBOX
28412      ) | sed "s/^/$as_me: WARNING:     /" >&2
28413     ;;
28414 esac
28415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28418   echo $ECHO_N "(cached) $ECHO_C" >&6
28419 else
28420   eval "$as_ac_Header=\$ac_header_preproc"
28421 fi
28422 ac_res=`eval echo '${'$as_ac_Header'}'`
28423                { echo "$as_me:$LINENO: result: $ac_res" >&5
28424 echo "${ECHO_T}$ac_res" >&6; }
28425
28426 fi
28427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28428   cat >>confdefs.h <<_ACEOF
28429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28430 _ACEOF
28431
28432 fi
28433
28434 done
28435
28436 if test $ac_cv_header_db_h = yes; then
28437         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28438 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28439 if test "${ol_cv_bdb_major+set}" = set; then
28440   echo $ECHO_N "(cached) $ECHO_C" >&6
28441 else
28442
28443         cat >conftest.$ac_ext <<_ACEOF
28444
28445 #include <db.h>
28446 #ifndef DB_VERSION_MAJOR
28447 #       define DB_VERSION_MAJOR 1
28448 #endif
28449 __db_version DB_VERSION_MAJOR
28450
28451 _ACEOF
28452         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28453         ol_cv_bdb_major=${3}
28454
28455 fi
28456 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28457 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28458 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28459         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28460 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28461    { (exit 1); exit 1; }; } ;;
28462 esac
28463
28464 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28465 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28466 if test "${ol_cv_bdb_minor+set}" = set; then
28467   echo $ECHO_N "(cached) $ECHO_C" >&6
28468 else
28469
28470         cat >conftest.$ac_ext <<_ACEOF
28471
28472 #include <db.h>
28473 #ifndef DB_VERSION_MINOR
28474 #       define DB_VERSION_MINOR 0
28475 #endif
28476 __db_version DB_VERSION_MINOR
28477
28478 _ACEOF
28479         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28480         ol_cv_bdb_minor=${3}
28481
28482 fi
28483 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28484 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28485 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28486         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28487 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28488    { (exit 1); exit 1; }; } ;;
28489 esac
28490
28491         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28492 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28493 if test "${ol_cv_bdb_compat+set}" = set; then
28494   echo $ECHO_N "(cached) $ECHO_C" >&6
28495 else
28496
28497         cat >conftest.$ac_ext <<_ACEOF
28498 /* confdefs.h.  */
28499 _ACEOF
28500 cat confdefs.h >>conftest.$ac_ext
28501 cat >>conftest.$ac_ext <<_ACEOF
28502 /* end confdefs.h.  */
28503
28504 #include <db.h>
28505
28506  /* this check could be improved */
28507 #ifndef DB_VERSION_MAJOR
28508 #       define DB_VERSION_MAJOR 1
28509 #endif
28510 #ifndef DB_VERSION_MINOR
28511 #       define DB_VERSION_MINOR 0
28512 #endif
28513
28514 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28515
28516 /* require 4.4 or later */
28517 #if DB_VERSION_MM >= 0x0404
28518         __db_version_compat
28519 #endif
28520
28521 _ACEOF
28522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28523   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28524   ol_cv_bdb_compat=yes
28525 else
28526   ol_cv_bdb_compat=no
28527 fi
28528 rm -f conftest*
28529
28530 fi
28531 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28532 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28533
28534
28535         if test $ol_cv_bdb_compat != yes ; then
28536                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28537 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28538    { (exit 1); exit 1; }; }
28539         fi
28540
28541         ol_cv_lib_db=no
28542
28543 if test $ol_cv_bdb_major = 4 ; then
28544         if test $ol_cv_lib_db = no ; then
28545         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28546 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28547 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28548   echo $ECHO_N "(cached) $ECHO_C" >&6
28549 else
28550
28551         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28552         ol_LIBS=$LIBS
28553         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28554
28555         cat >conftest.$ac_ext <<_ACEOF
28556 /* confdefs.h.  */
28557 _ACEOF
28558 cat confdefs.h >>conftest.$ac_ext
28559 cat >>conftest.$ac_ext <<_ACEOF
28560 /* end confdefs.h.  */
28561
28562 #ifdef HAVE_DB_185_H
28563 # include <db_185.h>
28564 #else
28565 # include <db.h>
28566 #endif
28567
28568 #ifndef DB_VERSION_MAJOR
28569 # define DB_VERSION_MAJOR 1
28570 #endif
28571
28572 #ifndef NULL
28573 #define NULL ((void*)0)
28574 #endif
28575
28576 int
28577 main ()
28578 {
28579
28580 #if DB_VERSION_MAJOR > 2
28581         db_env_create( NULL, 0 );
28582 #elif DB_VERSION_MAJOR > 1
28583         db_appexit( NULL );
28584 #else
28585         (void) dbopen( NULL, 0, 0, 0, NULL);
28586 #endif
28587
28588   ;
28589   return 0;
28590 }
28591 _ACEOF
28592 rm -f conftest.$ac_objext conftest$ac_exeext
28593 if { (ac_try="$ac_link"
28594 case "(($ac_try" in
28595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28596   *) ac_try_echo=$ac_try;;
28597 esac
28598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28599   (eval "$ac_link") 2>conftest.er1
28600   ac_status=$?
28601   grep -v '^ *+' conftest.er1 >conftest.err
28602   rm -f conftest.er1
28603   cat conftest.err >&5
28604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605   (exit $ac_status); } && {
28606          test -z "$ac_c_werror_flag" ||
28607          test ! -s conftest.err
28608        } && test -s conftest$ac_exeext &&
28609        $as_test_x conftest$ac_exeext; then
28610   ol_cv_db_db_4_dot_m=yes
28611 else
28612   echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28614
28615         ol_cv_db_db_4_dot_m=no
28616 fi
28617
28618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28619       conftest$ac_exeext conftest.$ac_ext
28620
28621         LIBS="$ol_LIBS"
28622
28623 fi
28624 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28625 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28626
28627         if test $ol_cv_db_db_4_dot_m = yes ; then
28628                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28629         fi
28630 fi
28631
28632         if test $ol_cv_lib_db = no ; then
28633         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28634 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28635 if test "${ol_cv_db_db4m+set}" = set; then
28636   echo $ECHO_N "(cached) $ECHO_C" >&6
28637 else
28638
28639         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28640         ol_LIBS=$LIBS
28641         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28642
28643         cat >conftest.$ac_ext <<_ACEOF
28644 /* confdefs.h.  */
28645 _ACEOF
28646 cat confdefs.h >>conftest.$ac_ext
28647 cat >>conftest.$ac_ext <<_ACEOF
28648 /* end confdefs.h.  */
28649
28650 #ifdef HAVE_DB_185_H
28651 # include <db_185.h>
28652 #else
28653 # include <db.h>
28654 #endif
28655
28656 #ifndef DB_VERSION_MAJOR
28657 # define DB_VERSION_MAJOR 1
28658 #endif
28659
28660 #ifndef NULL
28661 #define NULL ((void*)0)
28662 #endif
28663
28664 int
28665 main ()
28666 {
28667
28668 #if DB_VERSION_MAJOR > 2
28669         db_env_create( NULL, 0 );
28670 #elif DB_VERSION_MAJOR > 1
28671         db_appexit( NULL );
28672 #else
28673         (void) dbopen( NULL, 0, 0, 0, NULL);
28674 #endif
28675
28676   ;
28677   return 0;
28678 }
28679 _ACEOF
28680 rm -f conftest.$ac_objext conftest$ac_exeext
28681 if { (ac_try="$ac_link"
28682 case "(($ac_try" in
28683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28684   *) ac_try_echo=$ac_try;;
28685 esac
28686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28687   (eval "$ac_link") 2>conftest.er1
28688   ac_status=$?
28689   grep -v '^ *+' conftest.er1 >conftest.err
28690   rm -f conftest.er1
28691   cat conftest.err >&5
28692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); } && {
28694          test -z "$ac_c_werror_flag" ||
28695          test ! -s conftest.err
28696        } && test -s conftest$ac_exeext &&
28697        $as_test_x conftest$ac_exeext; then
28698   ol_cv_db_db4m=yes
28699 else
28700   echo "$as_me: failed program was:" >&5
28701 sed 's/^/| /' conftest.$ac_ext >&5
28702
28703         ol_cv_db_db4m=no
28704 fi
28705
28706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28707       conftest$ac_exeext conftest.$ac_ext
28708
28709         LIBS="$ol_LIBS"
28710
28711 fi
28712 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28713 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28714
28715         if test $ol_cv_db_db4m = yes ; then
28716                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28717         fi
28718 fi
28719
28720         if test $ol_cv_lib_db = no ; then
28721         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28722 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28723 if test "${ol_cv_db_db_4m+set}" = set; then
28724   echo $ECHO_N "(cached) $ECHO_C" >&6
28725 else
28726
28727         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28728         ol_LIBS=$LIBS
28729         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28730
28731         cat >conftest.$ac_ext <<_ACEOF
28732 /* confdefs.h.  */
28733 _ACEOF
28734 cat confdefs.h >>conftest.$ac_ext
28735 cat >>conftest.$ac_ext <<_ACEOF
28736 /* end confdefs.h.  */
28737
28738 #ifdef HAVE_DB_185_H
28739 # include <db_185.h>
28740 #else
28741 # include <db.h>
28742 #endif
28743
28744 #ifndef DB_VERSION_MAJOR
28745 # define DB_VERSION_MAJOR 1
28746 #endif
28747
28748 #ifndef NULL
28749 #define NULL ((void*)0)
28750 #endif
28751
28752 int
28753 main ()
28754 {
28755
28756 #if DB_VERSION_MAJOR > 2
28757         db_env_create( NULL, 0 );
28758 #elif DB_VERSION_MAJOR > 1
28759         db_appexit( NULL );
28760 #else
28761         (void) dbopen( NULL, 0, 0, 0, NULL);
28762 #endif
28763
28764   ;
28765   return 0;
28766 }
28767 _ACEOF
28768 rm -f conftest.$ac_objext conftest$ac_exeext
28769 if { (ac_try="$ac_link"
28770 case "(($ac_try" in
28771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28772   *) ac_try_echo=$ac_try;;
28773 esac
28774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28775   (eval "$ac_link") 2>conftest.er1
28776   ac_status=$?
28777   grep -v '^ *+' conftest.er1 >conftest.err
28778   rm -f conftest.er1
28779   cat conftest.err >&5
28780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781   (exit $ac_status); } && {
28782          test -z "$ac_c_werror_flag" ||
28783          test ! -s conftest.err
28784        } && test -s conftest$ac_exeext &&
28785        $as_test_x conftest$ac_exeext; then
28786   ol_cv_db_db_4m=yes
28787 else
28788   echo "$as_me: failed program was:" >&5
28789 sed 's/^/| /' conftest.$ac_ext >&5
28790
28791         ol_cv_db_db_4m=no
28792 fi
28793
28794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28795       conftest$ac_exeext conftest.$ac_ext
28796
28797         LIBS="$ol_LIBS"
28798
28799 fi
28800 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28801 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28802
28803         if test $ol_cv_db_db_4m = yes ; then
28804                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28805         fi
28806 fi
28807
28808         if test $ol_cv_lib_db = no ; then
28809         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28810 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28811 if test "${ol_cv_db_db_4_m+set}" = set; then
28812   echo $ECHO_N "(cached) $ECHO_C" >&6
28813 else
28814
28815         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28816         ol_LIBS=$LIBS
28817         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28818
28819         cat >conftest.$ac_ext <<_ACEOF
28820 /* confdefs.h.  */
28821 _ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h.  */
28825
28826 #ifdef HAVE_DB_185_H
28827 # include <db_185.h>
28828 #else
28829 # include <db.h>
28830 #endif
28831
28832 #ifndef DB_VERSION_MAJOR
28833 # define DB_VERSION_MAJOR 1
28834 #endif
28835
28836 #ifndef NULL
28837 #define NULL ((void*)0)
28838 #endif
28839
28840 int
28841 main ()
28842 {
28843
28844 #if DB_VERSION_MAJOR > 2
28845         db_env_create( NULL, 0 );
28846 #elif DB_VERSION_MAJOR > 1
28847         db_appexit( NULL );
28848 #else
28849         (void) dbopen( NULL, 0, 0, 0, NULL);
28850 #endif
28851
28852   ;
28853   return 0;
28854 }
28855 _ACEOF
28856 rm -f conftest.$ac_objext conftest$ac_exeext
28857 if { (ac_try="$ac_link"
28858 case "(($ac_try" in
28859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28860   *) ac_try_echo=$ac_try;;
28861 esac
28862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28863   (eval "$ac_link") 2>conftest.er1
28864   ac_status=$?
28865   grep -v '^ *+' conftest.er1 >conftest.err
28866   rm -f conftest.er1
28867   cat conftest.err >&5
28868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869   (exit $ac_status); } && {
28870          test -z "$ac_c_werror_flag" ||
28871          test ! -s conftest.err
28872        } && test -s conftest$ac_exeext &&
28873        $as_test_x conftest$ac_exeext; then
28874   ol_cv_db_db_4_m=yes
28875 else
28876   echo "$as_me: failed program was:" >&5
28877 sed 's/^/| /' conftest.$ac_ext >&5
28878
28879         ol_cv_db_db_4_m=no
28880 fi
28881
28882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28883       conftest$ac_exeext conftest.$ac_ext
28884
28885         LIBS="$ol_LIBS"
28886
28887 fi
28888 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28889 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28890
28891         if test $ol_cv_db_db_4_m = yes ; then
28892                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28893         fi
28894 fi
28895
28896         if test $ol_cv_lib_db = no ; then
28897         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28898 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28899 if test "${ol_cv_db_db_4+set}" = set; then
28900   echo $ECHO_N "(cached) $ECHO_C" >&6
28901 else
28902
28903         ol_DB_LIB=-ldb-4
28904         ol_LIBS=$LIBS
28905         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28906
28907         cat >conftest.$ac_ext <<_ACEOF
28908 /* confdefs.h.  */
28909 _ACEOF
28910 cat confdefs.h >>conftest.$ac_ext
28911 cat >>conftest.$ac_ext <<_ACEOF
28912 /* end confdefs.h.  */
28913
28914 #ifdef HAVE_DB_185_H
28915 # include <db_185.h>
28916 #else
28917 # include <db.h>
28918 #endif
28919
28920 #ifndef DB_VERSION_MAJOR
28921 # define DB_VERSION_MAJOR 1
28922 #endif
28923
28924 #ifndef NULL
28925 #define NULL ((void*)0)
28926 #endif
28927
28928 int
28929 main ()
28930 {
28931
28932 #if DB_VERSION_MAJOR > 2
28933         db_env_create( NULL, 0 );
28934 #elif DB_VERSION_MAJOR > 1
28935         db_appexit( NULL );
28936 #else
28937         (void) dbopen( NULL, 0, 0, 0, NULL);
28938 #endif
28939
28940   ;
28941   return 0;
28942 }
28943 _ACEOF
28944 rm -f conftest.$ac_objext conftest$ac_exeext
28945 if { (ac_try="$ac_link"
28946 case "(($ac_try" in
28947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948   *) ac_try_echo=$ac_try;;
28949 esac
28950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951   (eval "$ac_link") 2>conftest.er1
28952   ac_status=$?
28953   grep -v '^ *+' conftest.er1 >conftest.err
28954   rm -f conftest.er1
28955   cat conftest.err >&5
28956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957   (exit $ac_status); } && {
28958          test -z "$ac_c_werror_flag" ||
28959          test ! -s conftest.err
28960        } && test -s conftest$ac_exeext &&
28961        $as_test_x conftest$ac_exeext; then
28962   ol_cv_db_db_4=yes
28963 else
28964   echo "$as_me: failed program was:" >&5
28965 sed 's/^/| /' conftest.$ac_ext >&5
28966
28967         ol_cv_db_db_4=no
28968 fi
28969
28970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28971       conftest$ac_exeext conftest.$ac_ext
28972
28973         LIBS="$ol_LIBS"
28974
28975 fi
28976 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28977 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28978
28979         if test $ol_cv_db_db_4 = yes ; then
28980                 ol_cv_lib_db=-ldb-4
28981         fi
28982 fi
28983
28984         if test $ol_cv_lib_db = no ; then
28985         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28986 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28987 if test "${ol_cv_db_db4+set}" = set; then
28988   echo $ECHO_N "(cached) $ECHO_C" >&6
28989 else
28990
28991         ol_DB_LIB=-ldb4
28992         ol_LIBS=$LIBS
28993         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28994
28995         cat >conftest.$ac_ext <<_ACEOF
28996 /* confdefs.h.  */
28997 _ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h.  */
29001
29002 #ifdef HAVE_DB_185_H
29003 # include <db_185.h>
29004 #else
29005 # include <db.h>
29006 #endif
29007
29008 #ifndef DB_VERSION_MAJOR
29009 # define DB_VERSION_MAJOR 1
29010 #endif
29011
29012 #ifndef NULL
29013 #define NULL ((void*)0)
29014 #endif
29015
29016 int
29017 main ()
29018 {
29019
29020 #if DB_VERSION_MAJOR > 2
29021         db_env_create( NULL, 0 );
29022 #elif DB_VERSION_MAJOR > 1
29023         db_appexit( NULL );
29024 #else
29025         (void) dbopen( NULL, 0, 0, 0, NULL);
29026 #endif
29027
29028   ;
29029   return 0;
29030 }
29031 _ACEOF
29032 rm -f conftest.$ac_objext conftest$ac_exeext
29033 if { (ac_try="$ac_link"
29034 case "(($ac_try" in
29035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29036   *) ac_try_echo=$ac_try;;
29037 esac
29038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29039   (eval "$ac_link") 2>conftest.er1
29040   ac_status=$?
29041   grep -v '^ *+' conftest.er1 >conftest.err
29042   rm -f conftest.er1
29043   cat conftest.err >&5
29044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045   (exit $ac_status); } && {
29046          test -z "$ac_c_werror_flag" ||
29047          test ! -s conftest.err
29048        } && test -s conftest$ac_exeext &&
29049        $as_test_x conftest$ac_exeext; then
29050   ol_cv_db_db4=yes
29051 else
29052   echo "$as_me: failed program was:" >&5
29053 sed 's/^/| /' conftest.$ac_ext >&5
29054
29055         ol_cv_db_db4=no
29056 fi
29057
29058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29059       conftest$ac_exeext conftest.$ac_ext
29060
29061         LIBS="$ol_LIBS"
29062
29063 fi
29064 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29065 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
29066
29067         if test $ol_cv_db_db4 = yes ; then
29068                 ol_cv_lib_db=-ldb4
29069         fi
29070 fi
29071
29072         if test $ol_cv_lib_db = no ; then
29073         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29074 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
29075 if test "${ol_cv_db_db+set}" = set; then
29076   echo $ECHO_N "(cached) $ECHO_C" >&6
29077 else
29078
29079         ol_DB_LIB=-ldb
29080         ol_LIBS=$LIBS
29081         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29082
29083         cat >conftest.$ac_ext <<_ACEOF
29084 /* confdefs.h.  */
29085 _ACEOF
29086 cat confdefs.h >>conftest.$ac_ext
29087 cat >>conftest.$ac_ext <<_ACEOF
29088 /* end confdefs.h.  */
29089
29090 #ifdef HAVE_DB_185_H
29091 # include <db_185.h>
29092 #else
29093 # include <db.h>
29094 #endif
29095
29096 #ifndef DB_VERSION_MAJOR
29097 # define DB_VERSION_MAJOR 1
29098 #endif
29099
29100 #ifndef NULL
29101 #define NULL ((void*)0)
29102 #endif
29103
29104 int
29105 main ()
29106 {
29107
29108 #if DB_VERSION_MAJOR > 2
29109         db_env_create( NULL, 0 );
29110 #elif DB_VERSION_MAJOR > 1
29111         db_appexit( NULL );
29112 #else
29113         (void) dbopen( NULL, 0, 0, 0, NULL);
29114 #endif
29115
29116   ;
29117   return 0;
29118 }
29119 _ACEOF
29120 rm -f conftest.$ac_objext conftest$ac_exeext
29121 if { (ac_try="$ac_link"
29122 case "(($ac_try" in
29123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29124   *) ac_try_echo=$ac_try;;
29125 esac
29126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29127   (eval "$ac_link") 2>conftest.er1
29128   ac_status=$?
29129   grep -v '^ *+' conftest.er1 >conftest.err
29130   rm -f conftest.er1
29131   cat conftest.err >&5
29132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133   (exit $ac_status); } && {
29134          test -z "$ac_c_werror_flag" ||
29135          test ! -s conftest.err
29136        } && test -s conftest$ac_exeext &&
29137        $as_test_x conftest$ac_exeext; then
29138   ol_cv_db_db=yes
29139 else
29140   echo "$as_me: failed program was:" >&5
29141 sed 's/^/| /' conftest.$ac_ext >&5
29142
29143         ol_cv_db_db=no
29144 fi
29145
29146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29147       conftest$ac_exeext conftest.$ac_ext
29148
29149         LIBS="$ol_LIBS"
29150
29151 fi
29152 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29153 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29154
29155         if test $ol_cv_db_db = yes ; then
29156                 ol_cv_lib_db=-ldb
29157         fi
29158 fi
29159
29160 fi
29161 if test $ol_cv_lib_db = no ; then
29162         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29163 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29164 if test "${ol_cv_db_none+set}" = set; then
29165   echo $ECHO_N "(cached) $ECHO_C" >&6
29166 else
29167
29168         ol_DB_LIB=
29169         ol_LIBS=$LIBS
29170         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29171
29172         cat >conftest.$ac_ext <<_ACEOF
29173 /* confdefs.h.  */
29174 _ACEOF
29175 cat confdefs.h >>conftest.$ac_ext
29176 cat >>conftest.$ac_ext <<_ACEOF
29177 /* end confdefs.h.  */
29178
29179 #ifdef HAVE_DB_185_H
29180 # include <db_185.h>
29181 #else
29182 # include <db.h>
29183 #endif
29184
29185 #ifndef DB_VERSION_MAJOR
29186 # define DB_VERSION_MAJOR 1
29187 #endif
29188
29189 #ifndef NULL
29190 #define NULL ((void*)0)
29191 #endif
29192
29193 int
29194 main ()
29195 {
29196
29197 #if DB_VERSION_MAJOR > 2
29198         db_env_create( NULL, 0 );
29199 #elif DB_VERSION_MAJOR > 1
29200         db_appexit( NULL );
29201 #else
29202         (void) dbopen( NULL, 0, 0, 0, NULL);
29203 #endif
29204
29205   ;
29206   return 0;
29207 }
29208 _ACEOF
29209 rm -f conftest.$ac_objext conftest$ac_exeext
29210 if { (ac_try="$ac_link"
29211 case "(($ac_try" in
29212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29213   *) ac_try_echo=$ac_try;;
29214 esac
29215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29216   (eval "$ac_link") 2>conftest.er1
29217   ac_status=$?
29218   grep -v '^ *+' conftest.er1 >conftest.err
29219   rm -f conftest.er1
29220   cat conftest.err >&5
29221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29222   (exit $ac_status); } && {
29223          test -z "$ac_c_werror_flag" ||
29224          test ! -s conftest.err
29225        } && test -s conftest$ac_exeext &&
29226        $as_test_x conftest$ac_exeext; then
29227   ol_cv_db_none=yes
29228 else
29229   echo "$as_me: failed program was:" >&5
29230 sed 's/^/| /' conftest.$ac_ext >&5
29231
29232         ol_cv_db_none=no
29233 fi
29234
29235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29236       conftest$ac_exeext conftest.$ac_ext
29237
29238         LIBS="$ol_LIBS"
29239
29240 fi
29241 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29242 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29243
29244         if test $ol_cv_db_none = yes ; then
29245                 ol_cv_lib_db=yes
29246         fi
29247 fi
29248
29249
29250         if test "$ol_cv_lib_db" != no ; then
29251                 ol_cv_berkeley_db=yes
29252                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29253 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29254 if test "${ol_cv_berkeley_db_version+set}" = set; then
29255   echo $ECHO_N "(cached) $ECHO_C" >&6
29256 else
29257
29258         ol_LIBS="$LIBS"
29259         LIBS="$LTHREAD_LIBS $LIBS"
29260         if test $ol_cv_lib_db != yes ; then
29261                 LIBS="$ol_cv_lib_db $LIBS"
29262         fi
29263
29264         if test "$cross_compiling" = yes; then
29265   ol_cv_berkeley_db_version=cross
29266 else
29267   cat >conftest.$ac_ext <<_ACEOF
29268 /* confdefs.h.  */
29269 _ACEOF
29270 cat confdefs.h >>conftest.$ac_ext
29271 cat >>conftest.$ac_ext <<_ACEOF
29272 /* end confdefs.h.  */
29273
29274 #ifdef HAVE_DB_185_H
29275         choke me;
29276 #else
29277 #include <db.h>
29278 #endif
29279 #ifndef DB_VERSION_MAJOR
29280 # define DB_VERSION_MAJOR 1
29281 #endif
29282 #ifndef NULL
29283 #define NULL ((void *)0)
29284 #endif
29285 main()
29286 {
29287 #if DB_VERSION_MAJOR > 1
29288         char *version;
29289         int major, minor, patch;
29290
29291         version = db_version( &major, &minor, &patch );
29292
29293         if( major != DB_VERSION_MAJOR ||
29294                 minor != DB_VERSION_MINOR ||
29295                 patch != DB_VERSION_PATCH )
29296         {
29297                 printf("Berkeley DB version mismatch\n"
29298                         "\theader: %s\n\tlibrary: %s\n",
29299                         DB_VERSION_STRING, version);
29300                 return 1;
29301         }
29302 #endif
29303
29304         return 0;
29305 }
29306 _ACEOF
29307 rm -f conftest$ac_exeext
29308 if { (ac_try="$ac_link"
29309 case "(($ac_try" in
29310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29311   *) ac_try_echo=$ac_try;;
29312 esac
29313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29314   (eval "$ac_link") 2>&5
29315   ac_status=$?
29316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29318   { (case "(($ac_try" in
29319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29320   *) ac_try_echo=$ac_try;;
29321 esac
29322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29323   (eval "$ac_try") 2>&5
29324   ac_status=$?
29325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326   (exit $ac_status); }; }; then
29327   ol_cv_berkeley_db_version=yes
29328 else
29329   echo "$as_me: program exited with status $ac_status" >&5
29330 echo "$as_me: failed program was:" >&5
29331 sed 's/^/| /' conftest.$ac_ext >&5
29332
29333 ( exit $ac_status )
29334 ol_cv_berkeley_db_version=no
29335 fi
29336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29337 fi
29338
29339
29340
29341         LIBS="$ol_LIBS"
29342
29343 fi
29344 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29345 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29346
29347         if test $ol_cv_berkeley_db_version = no ; then
29348                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29349 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29350    { (exit 1); exit 1; }; }
29351         fi
29352
29353                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29354 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29355 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29356   echo $ECHO_N "(cached) $ECHO_C" >&6
29357 else
29358
29359         ol_LIBS="$LIBS"
29360         LIBS="$LTHREAD_LIBS $LIBS"
29361         if test $ol_cv_lib_db != yes ; then
29362                 LIBS="$ol_cv_lib_db $LIBS"
29363         fi
29364
29365         if test "$cross_compiling" = yes; then
29366   ol_cv_berkeley_db_thread=cross
29367 else
29368   cat >conftest.$ac_ext <<_ACEOF
29369 /* confdefs.h.  */
29370 _ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h.  */
29374
29375 #ifdef HAVE_DB_185_H
29376         choke me;
29377 #else
29378 #include <db.h>
29379 #endif
29380 #ifndef NULL
29381 #define NULL ((void *)0)
29382 #endif
29383 main()
29384 {
29385         int rc;
29386         u_int32_t flags = DB_CREATE |
29387 #ifdef DB_PRIVATE
29388                 DB_PRIVATE |
29389 #endif
29390                 DB_THREAD;
29391
29392 #if DB_VERSION_MAJOR > 2
29393         DB_ENV *env = NULL;
29394
29395         rc = db_env_create( &env, 0 );
29396
29397         flags |= DB_INIT_MPOOL;
29398 #ifdef DB_MPOOL_PRIVATE
29399         flags |= DB_MPOOL_PRIVATE;
29400 #endif
29401
29402         if( rc ) {
29403                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29404                 return rc;
29405         }
29406
29407 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29408         rc = (env->open)( env, NULL, flags, 0 );
29409 #else
29410         rc = (env->open)( env, NULL, NULL, flags, 0 );
29411 #endif
29412
29413         if ( rc == 0 ) {
29414                 rc = env->close( env, 0 );
29415         }
29416
29417         if( rc ) {
29418                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29419                 return rc;
29420         }
29421
29422 #else
29423         DB_ENV env;
29424         memset( &env, '\0', sizeof(env) );
29425
29426         rc = db_appinit( NULL, NULL, &env, flags );
29427
29428         if( rc == 0 ) {
29429                 db_appexit( &env );
29430         }
29431
29432         unlink("__db_mpool.share");
29433         unlink("__db_lock.share");
29434 #endif
29435
29436         return rc;
29437 }
29438 _ACEOF
29439 rm -f conftest$ac_exeext
29440 if { (ac_try="$ac_link"
29441 case "(($ac_try" in
29442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443   *) ac_try_echo=$ac_try;;
29444 esac
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446   (eval "$ac_link") 2>&5
29447   ac_status=$?
29448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29450   { (case "(($ac_try" in
29451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452   *) ac_try_echo=$ac_try;;
29453 esac
29454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455   (eval "$ac_try") 2>&5
29456   ac_status=$?
29457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458   (exit $ac_status); }; }; then
29459   ol_cv_berkeley_db_thread=yes
29460 else
29461   echo "$as_me: program exited with status $ac_status" >&5
29462 echo "$as_me: failed program was:" >&5
29463 sed 's/^/| /' conftest.$ac_ext >&5
29464
29465 ( exit $ac_status )
29466 ol_cv_berkeley_db_thread=no
29467 fi
29468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29469 fi
29470
29471
29472
29473         LIBS="$ol_LIBS"
29474
29475 fi
29476 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29477 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29478
29479         if test $ol_cv_berkeley_db_thread != no ; then
29480
29481 cat >>confdefs.h <<\_ACEOF
29482 #define HAVE_BERKELEY_DB_THREAD 1
29483 _ACEOF
29484
29485         fi
29486
29487         fi
29488 fi
29489
29490
29491         if test $ol_cv_berkeley_db = no ; then
29492                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29493 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29494    { (exit 1); exit 1; }; }
29495         fi
29496
29497
29498 cat >>confdefs.h <<\_ACEOF
29499 #define HAVE_BERKELEY_DB 1
29500 _ACEOF
29501
29502
29503                         if test $ol_cv_lib_db != yes ; then
29504                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29505         fi
29506
29507         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29508
29509         ol_link_bdb=yes
29510 fi
29511
29512
29513 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29514         BUILD_LIBS_DYNAMIC=shared
29515
29516 cat >>confdefs.h <<\_ACEOF
29517 #define LDAP_LIBS_DYNAMIC 1
29518 _ACEOF
29519
29520         LTSTATIC=""
29521 else
29522         BUILD_LIBS_DYNAMIC=static
29523         LTSTATIC="-static"
29524 fi
29525
29526 if test $ol_enable_wrappers != no ; then
29527
29528 for ac_header in tcpd.h
29529 do
29530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29532   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29535   echo $ECHO_N "(cached) $ECHO_C" >&6
29536 fi
29537 ac_res=`eval echo '${'$as_ac_Header'}'`
29538                { echo "$as_me:$LINENO: result: $ac_res" >&5
29539 echo "${ECHO_T}$ac_res" >&6; }
29540 else
29541   # Is the header compilable?
29542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29544 cat >conftest.$ac_ext <<_ACEOF
29545 /* confdefs.h.  */
29546 _ACEOF
29547 cat confdefs.h >>conftest.$ac_ext
29548 cat >>conftest.$ac_ext <<_ACEOF
29549 /* end confdefs.h.  */
29550 $ac_includes_default
29551 #include <$ac_header>
29552 _ACEOF
29553 rm -f conftest.$ac_objext
29554 if { (ac_try="$ac_compile"
29555 case "(($ac_try" in
29556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557   *) ac_try_echo=$ac_try;;
29558 esac
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560   (eval "$ac_compile") 2>conftest.er1
29561   ac_status=$?
29562   grep -v '^ *+' conftest.er1 >conftest.err
29563   rm -f conftest.er1
29564   cat conftest.err >&5
29565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566   (exit $ac_status); } && {
29567          test -z "$ac_c_werror_flag" ||
29568          test ! -s conftest.err
29569        } && test -s conftest.$ac_objext; then
29570   ac_header_compiler=yes
29571 else
29572   echo "$as_me: failed program was:" >&5
29573 sed 's/^/| /' conftest.$ac_ext >&5
29574
29575         ac_header_compiler=no
29576 fi
29577
29578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29580 echo "${ECHO_T}$ac_header_compiler" >&6; }
29581
29582 # Is the header present?
29583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29585 cat >conftest.$ac_ext <<_ACEOF
29586 /* confdefs.h.  */
29587 _ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h.  */
29591 #include <$ac_header>
29592 _ACEOF
29593 if { (ac_try="$ac_cpp conftest.$ac_ext"
29594 case "(($ac_try" in
29595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596   *) ac_try_echo=$ac_try;;
29597 esac
29598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29600   ac_status=$?
29601   grep -v '^ *+' conftest.er1 >conftest.err
29602   rm -f conftest.er1
29603   cat conftest.err >&5
29604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605   (exit $ac_status); } >/dev/null && {
29606          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29607          test ! -s conftest.err
29608        }; then
29609   ac_header_preproc=yes
29610 else
29611   echo "$as_me: failed program was:" >&5
29612 sed 's/^/| /' conftest.$ac_ext >&5
29613
29614   ac_header_preproc=no
29615 fi
29616
29617 rm -f conftest.err conftest.$ac_ext
29618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29619 echo "${ECHO_T}$ac_header_preproc" >&6; }
29620
29621 # So?  What about this header?
29622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29623   yes:no: )
29624     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29628     ac_header_preproc=yes
29629     ;;
29630   no:yes:* )
29631     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29633     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29634 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29635     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29637     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29638 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29641     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29643     ( cat <<\_ASBOX
29644 ## --------------------------------------------- ##
29645 ## Report this to <http://www.openldap.org/its/> ##
29646 ## --------------------------------------------- ##
29647 _ASBOX
29648      ) | sed "s/^/$as_me: WARNING:     /" >&2
29649     ;;
29650 esac
29651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29654   echo $ECHO_N "(cached) $ECHO_C" >&6
29655 else
29656   eval "$as_ac_Header=\$ac_header_preproc"
29657 fi
29658 ac_res=`eval echo '${'$as_ac_Header'}'`
29659                { echo "$as_me:$LINENO: result: $ac_res" >&5
29660 echo "${ECHO_T}$ac_res" >&6; }
29661
29662 fi
29663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29664   cat >>confdefs.h <<_ACEOF
29665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29666 _ACEOF
29667
29668                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29669 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29670                 save_LIBS="$LIBS"
29671                 LIBS="$LIBS -lwrap"
29672                 cat >conftest.$ac_ext <<_ACEOF
29673 /* confdefs.h.  */
29674 _ACEOF
29675 cat confdefs.h >>conftest.$ac_ext
29676 cat >>conftest.$ac_ext <<_ACEOF
29677 /* end confdefs.h.  */
29678
29679 #include <tcpd.h>
29680 int allow_severity = 0;
29681 int deny_severity  = 0;
29682
29683 struct request_info *req;
29684
29685 int
29686 main ()
29687 {
29688
29689 hosts_access(req)
29690
29691   ;
29692   return 0;
29693 }
29694 _ACEOF
29695 rm -f conftest.$ac_objext conftest$ac_exeext
29696 if { (ac_try="$ac_link"
29697 case "(($ac_try" in
29698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699   *) ac_try_echo=$ac_try;;
29700 esac
29701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702   (eval "$ac_link") 2>conftest.er1
29703   ac_status=$?
29704   grep -v '^ *+' conftest.er1 >conftest.err
29705   rm -f conftest.er1
29706   cat conftest.err >&5
29707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708   (exit $ac_status); } && {
29709          test -z "$ac_c_werror_flag" ||
29710          test ! -s conftest.err
29711        } && test -s conftest$ac_exeext &&
29712        $as_test_x conftest$ac_exeext; then
29713   { echo "$as_me:$LINENO: result: -lwrap" >&5
29714 echo "${ECHO_T}-lwrap" >&6; }
29715                 have_wrappers=yes
29716                 LIBS="$save_LIBS"
29717 else
29718   echo "$as_me: failed program was:" >&5
29719 sed 's/^/| /' conftest.$ac_ext >&5
29720
29721
29722                                 LIBS="$LIBS -lnsl"
29723                 cat >conftest.$ac_ext <<_ACEOF
29724 /* confdefs.h.  */
29725 _ACEOF
29726 cat confdefs.h >>conftest.$ac_ext
29727 cat >>conftest.$ac_ext <<_ACEOF
29728 /* end confdefs.h.  */
29729
29730 #include <tcpd.h>
29731 int allow_severity = 0;
29732 int deny_severity  = 0;
29733
29734 struct request_info *req;
29735
29736 int
29737 main ()
29738 {
29739
29740 hosts_access(req)
29741
29742   ;
29743   return 0;
29744 }
29745 _ACEOF
29746 rm -f conftest.$ac_objext conftest$ac_exeext
29747 if { (ac_try="$ac_link"
29748 case "(($ac_try" in
29749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29750   *) ac_try_echo=$ac_try;;
29751 esac
29752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29753   (eval "$ac_link") 2>conftest.er1
29754   ac_status=$?
29755   grep -v '^ *+' conftest.er1 >conftest.err
29756   rm -f conftest.er1
29757   cat conftest.err >&5
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); } && {
29760          test -z "$ac_c_werror_flag" ||
29761          test ! -s conftest.err
29762        } && test -s conftest$ac_exeext &&
29763        $as_test_x conftest$ac_exeext; then
29764   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29765 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29766                 have_wrappers=yes
29767                 LIBS="$save_LIBS -lnsl"
29768 else
29769   echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29771
29772
29773                 { echo "$as_me:$LINENO: result: no" >&5
29774 echo "${ECHO_T}no" >&6; }
29775                 have_wrappers=no
29776                 LIBS=$save_LIBS
29777 fi
29778
29779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29780       conftest$ac_exeext conftest.$ac_ext
29781 fi
29782
29783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29784       conftest$ac_exeext conftest.$ac_ext
29785 else
29786   have_wrappers=no
29787 fi
29788
29789 done
29790
29791
29792         if test $have_wrappers = yes ; then
29793
29794 cat >>confdefs.h <<\_ACEOF
29795 #define HAVE_TCPD 1
29796 _ACEOF
29797
29798                 WRAP_LIBS="-lwrap"
29799         elif test $ol_enable_wrappers = yes ; then
29800                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29801 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29802    { (exit 1); exit 1; }; }
29803         else
29804                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29805 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29806                 WRAP_LIBS=""
29807         fi
29808 fi
29809
29810 if test $ol_enable_syslog != no ; then
29811         { echo "$as_me:$LINENO: checking for openlog" >&5
29812 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29813 if test "${ac_cv_func_openlog+set}" = set; then
29814   echo $ECHO_N "(cached) $ECHO_C" >&6
29815 else
29816   cat >conftest.$ac_ext <<_ACEOF
29817 /* confdefs.h.  */
29818 _ACEOF
29819 cat confdefs.h >>conftest.$ac_ext
29820 cat >>conftest.$ac_ext <<_ACEOF
29821 /* end confdefs.h.  */
29822 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29824 #define openlog innocuous_openlog
29825
29826 /* System header to define __stub macros and hopefully few prototypes,
29827     which can conflict with char openlog (); below.
29828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29829     <limits.h> exists even on freestanding compilers.  */
29830
29831 #ifdef __STDC__
29832 # include <limits.h>
29833 #else
29834 # include <assert.h>
29835 #endif
29836
29837 #undef openlog
29838
29839 /* Override any GCC internal prototype to avoid an error.
29840    Use char because int might match the return type of a GCC
29841    builtin and then its argument prototype would still apply.  */
29842 #ifdef __cplusplus
29843 extern "C"
29844 #endif
29845 char openlog ();
29846 /* The GNU C library defines this for functions which it implements
29847     to always fail with ENOSYS.  Some functions are actually named
29848     something starting with __ and the normal name is an alias.  */
29849 #if defined __stub_openlog || defined __stub___openlog
29850 choke me
29851 #endif
29852
29853 int
29854 main ()
29855 {
29856 return openlog ();
29857   ;
29858   return 0;
29859 }
29860 _ACEOF
29861 rm -f conftest.$ac_objext conftest$ac_exeext
29862 if { (ac_try="$ac_link"
29863 case "(($ac_try" in
29864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29865   *) ac_try_echo=$ac_try;;
29866 esac
29867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29868   (eval "$ac_link") 2>conftest.er1
29869   ac_status=$?
29870   grep -v '^ *+' conftest.er1 >conftest.err
29871   rm -f conftest.er1
29872   cat conftest.err >&5
29873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874   (exit $ac_status); } && {
29875          test -z "$ac_c_werror_flag" ||
29876          test ! -s conftest.err
29877        } && test -s conftest$ac_exeext &&
29878        $as_test_x conftest$ac_exeext; then
29879   ac_cv_func_openlog=yes
29880 else
29881   echo "$as_me: failed program was:" >&5
29882 sed 's/^/| /' conftest.$ac_ext >&5
29883
29884         ac_cv_func_openlog=no
29885 fi
29886
29887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29888       conftest$ac_exeext conftest.$ac_ext
29889 fi
29890 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29891 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29892
29893         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29894                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29895 echo "$as_me: error: could not find syslog" >&2;}
29896    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29897         fi
29898         ol_enable_syslog=$ac_cv_func_openlog
29899 fi
29900
29901 ol_link_sql=no
29902 if test $ol_enable_sql != no ; then
29903
29904
29905 for ac_header in sql.h sqlext.h
29906 do
29907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29909   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29912   echo $ECHO_N "(cached) $ECHO_C" >&6
29913 fi
29914 ac_res=`eval echo '${'$as_ac_Header'}'`
29915                { echo "$as_me:$LINENO: result: $ac_res" >&5
29916 echo "${ECHO_T}$ac_res" >&6; }
29917 else
29918   # Is the header compilable?
29919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29921 cat >conftest.$ac_ext <<_ACEOF
29922 /* confdefs.h.  */
29923 _ACEOF
29924 cat confdefs.h >>conftest.$ac_ext
29925 cat >>conftest.$ac_ext <<_ACEOF
29926 /* end confdefs.h.  */
29927 $ac_includes_default
29928 #include <$ac_header>
29929 _ACEOF
29930 rm -f conftest.$ac_objext
29931 if { (ac_try="$ac_compile"
29932 case "(($ac_try" in
29933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934   *) ac_try_echo=$ac_try;;
29935 esac
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937   (eval "$ac_compile") 2>conftest.er1
29938   ac_status=$?
29939   grep -v '^ *+' conftest.er1 >conftest.err
29940   rm -f conftest.er1
29941   cat conftest.err >&5
29942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943   (exit $ac_status); } && {
29944          test -z "$ac_c_werror_flag" ||
29945          test ! -s conftest.err
29946        } && test -s conftest.$ac_objext; then
29947   ac_header_compiler=yes
29948 else
29949   echo "$as_me: failed program was:" >&5
29950 sed 's/^/| /' conftest.$ac_ext >&5
29951
29952         ac_header_compiler=no
29953 fi
29954
29955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29957 echo "${ECHO_T}$ac_header_compiler" >&6; }
29958
29959 # Is the header present?
29960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29962 cat >conftest.$ac_ext <<_ACEOF
29963 /* confdefs.h.  */
29964 _ACEOF
29965 cat confdefs.h >>conftest.$ac_ext
29966 cat >>conftest.$ac_ext <<_ACEOF
29967 /* end confdefs.h.  */
29968 #include <$ac_header>
29969 _ACEOF
29970 if { (ac_try="$ac_cpp conftest.$ac_ext"
29971 case "(($ac_try" in
29972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29973   *) ac_try_echo=$ac_try;;
29974 esac
29975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29976   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29977   ac_status=$?
29978   grep -v '^ *+' conftest.er1 >conftest.err
29979   rm -f conftest.er1
29980   cat conftest.err >&5
29981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982   (exit $ac_status); } >/dev/null && {
29983          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29984          test ! -s conftest.err
29985        }; then
29986   ac_header_preproc=yes
29987 else
29988   echo "$as_me: failed program was:" >&5
29989 sed 's/^/| /' conftest.$ac_ext >&5
29990
29991   ac_header_preproc=no
29992 fi
29993
29994 rm -f conftest.err conftest.$ac_ext
29995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29996 echo "${ECHO_T}$ac_header_preproc" >&6; }
29997
29998 # So?  What about this header?
29999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30000   yes:no: )
30001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30005     ac_header_preproc=yes
30006     ;;
30007   no:yes:* )
30008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30020     ( cat <<\_ASBOX
30021 ## --------------------------------------------- ##
30022 ## Report this to <http://www.openldap.org/its/> ##
30023 ## --------------------------------------------- ##
30024 _ASBOX
30025      ) | sed "s/^/$as_me: WARNING:     /" >&2
30026     ;;
30027 esac
30028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30031   echo $ECHO_N "(cached) $ECHO_C" >&6
30032 else
30033   eval "$as_ac_Header=\$ac_header_preproc"
30034 fi
30035 ac_res=`eval echo '${'$as_ac_Header'}'`
30036                { echo "$as_me:$LINENO: result: $ac_res" >&5
30037 echo "${ECHO_T}$ac_res" >&6; }
30038
30039 fi
30040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30041   cat >>confdefs.h <<_ACEOF
30042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30043 _ACEOF
30044
30045 else
30046
30047                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30048 echo "$as_me: error: could not locate SQL headers" >&2;}
30049    { (exit 1); exit 1; }; }
30050
30051 fi
30052
30053 done
30054
30055
30056         sql_LIBS="$LIBS"
30057         LIBS="$LTHREAD_LIBS"
30058
30059         if test $ol_with_odbc = auto ; then
30060                 ol_with_odbc="iodbc unixodbc odbc32"
30061         fi
30062
30063         for odbc in $ol_with_odbc ; do
30064                 if test $ol_link_sql = no ; then
30065                         case $odbc in
30066                         iodbc)
30067                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30068 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
30069 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30070   echo $ECHO_N "(cached) $ECHO_C" >&6
30071 else
30072   ac_check_lib_save_LIBS=$LIBS
30073 LIBS="-liodbc  $LIBS"
30074 cat >conftest.$ac_ext <<_ACEOF
30075 /* confdefs.h.  */
30076 _ACEOF
30077 cat confdefs.h >>conftest.$ac_ext
30078 cat >>conftest.$ac_ext <<_ACEOF
30079 /* end confdefs.h.  */
30080
30081 /* Override any GCC internal prototype to avoid an error.
30082    Use char because int might match the return type of a GCC
30083    builtin and then its argument prototype would still apply.  */
30084 #ifdef __cplusplus
30085 extern "C"
30086 #endif
30087 char SQLDriverConnect ();
30088 int
30089 main ()
30090 {
30091 return SQLDriverConnect ();
30092   ;
30093   return 0;
30094 }
30095 _ACEOF
30096 rm -f conftest.$ac_objext conftest$ac_exeext
30097 if { (ac_try="$ac_link"
30098 case "(($ac_try" in
30099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30100   *) ac_try_echo=$ac_try;;
30101 esac
30102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30103   (eval "$ac_link") 2>conftest.er1
30104   ac_status=$?
30105   grep -v '^ *+' conftest.er1 >conftest.err
30106   rm -f conftest.er1
30107   cat conftest.err >&5
30108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109   (exit $ac_status); } && {
30110          test -z "$ac_c_werror_flag" ||
30111          test ! -s conftest.err
30112        } && test -s conftest$ac_exeext &&
30113        $as_test_x conftest$ac_exeext; then
30114   ac_cv_lib_iodbc_SQLDriverConnect=yes
30115 else
30116   echo "$as_me: failed program was:" >&5
30117 sed 's/^/| /' conftest.$ac_ext >&5
30118
30119         ac_cv_lib_iodbc_SQLDriverConnect=no
30120 fi
30121
30122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30123       conftest$ac_exeext conftest.$ac_ext
30124 LIBS=$ac_check_lib_save_LIBS
30125 fi
30126 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30127 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
30128 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30129   have_iodbc=yes
30130 else
30131   have_iodbc=no
30132 fi
30133
30134                                 if test $have_iodbc = yes ; then
30135                                         ol_link_sql="-liodbc"
30136                                 fi
30137                                 ;;
30138
30139                         unixodbc)
30140                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30141 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
30142 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30143   echo $ECHO_N "(cached) $ECHO_C" >&6
30144 else
30145   ac_check_lib_save_LIBS=$LIBS
30146 LIBS="-lodbc  $LIBS"
30147 cat >conftest.$ac_ext <<_ACEOF
30148 /* confdefs.h.  */
30149 _ACEOF
30150 cat confdefs.h >>conftest.$ac_ext
30151 cat >>conftest.$ac_ext <<_ACEOF
30152 /* end confdefs.h.  */
30153
30154 /* Override any GCC internal prototype to avoid an error.
30155    Use char because int might match the return type of a GCC
30156    builtin and then its argument prototype would still apply.  */
30157 #ifdef __cplusplus
30158 extern "C"
30159 #endif
30160 char SQLDriverConnect ();
30161 int
30162 main ()
30163 {
30164 return SQLDriverConnect ();
30165   ;
30166   return 0;
30167 }
30168 _ACEOF
30169 rm -f conftest.$ac_objext conftest$ac_exeext
30170 if { (ac_try="$ac_link"
30171 case "(($ac_try" in
30172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30173   *) ac_try_echo=$ac_try;;
30174 esac
30175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30176   (eval "$ac_link") 2>conftest.er1
30177   ac_status=$?
30178   grep -v '^ *+' conftest.er1 >conftest.err
30179   rm -f conftest.er1
30180   cat conftest.err >&5
30181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182   (exit $ac_status); } && {
30183          test -z "$ac_c_werror_flag" ||
30184          test ! -s conftest.err
30185        } && test -s conftest$ac_exeext &&
30186        $as_test_x conftest$ac_exeext; then
30187   ac_cv_lib_odbc_SQLDriverConnect=yes
30188 else
30189   echo "$as_me: failed program was:" >&5
30190 sed 's/^/| /' conftest.$ac_ext >&5
30191
30192         ac_cv_lib_odbc_SQLDriverConnect=no
30193 fi
30194
30195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30196       conftest$ac_exeext conftest.$ac_ext
30197 LIBS=$ac_check_lib_save_LIBS
30198 fi
30199 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30200 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30201 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30202   have_odbc=yes
30203 else
30204   have_odbc=no
30205 fi
30206
30207                                 if test $have_odbc = yes ; then
30208                                         ol_link_sql="-lodbc"
30209                                 fi
30210                                 ;;
30211
30212                         odbc32)
30213                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30214 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30215 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30216   echo $ECHO_N "(cached) $ECHO_C" >&6
30217 else
30218   ac_check_lib_save_LIBS=$LIBS
30219 LIBS="-lodbc32  $LIBS"
30220 cat >conftest.$ac_ext <<_ACEOF
30221 /* confdefs.h.  */
30222 _ACEOF
30223 cat confdefs.h >>conftest.$ac_ext
30224 cat >>conftest.$ac_ext <<_ACEOF
30225 /* end confdefs.h.  */
30226
30227 /* Override any GCC internal prototype to avoid an error.
30228    Use char because int might match the return type of a GCC
30229    builtin and then its argument prototype would still apply.  */
30230 #ifdef __cplusplus
30231 extern "C"
30232 #endif
30233 char SQLDriverConnect ();
30234 int
30235 main ()
30236 {
30237 return SQLDriverConnect ();
30238   ;
30239   return 0;
30240 }
30241 _ACEOF
30242 rm -f conftest.$ac_objext conftest$ac_exeext
30243 if { (ac_try="$ac_link"
30244 case "(($ac_try" in
30245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246   *) ac_try_echo=$ac_try;;
30247 esac
30248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249   (eval "$ac_link") 2>conftest.er1
30250   ac_status=$?
30251   grep -v '^ *+' conftest.er1 >conftest.err
30252   rm -f conftest.er1
30253   cat conftest.err >&5
30254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255   (exit $ac_status); } && {
30256          test -z "$ac_c_werror_flag" ||
30257          test ! -s conftest.err
30258        } && test -s conftest$ac_exeext &&
30259        $as_test_x conftest$ac_exeext; then
30260   ac_cv_lib_odbc32_SQLDriverConnect=yes
30261 else
30262   echo "$as_me: failed program was:" >&5
30263 sed 's/^/| /' conftest.$ac_ext >&5
30264
30265         ac_cv_lib_odbc32_SQLDriverConnect=no
30266 fi
30267
30268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30269       conftest$ac_exeext conftest.$ac_ext
30270 LIBS=$ac_check_lib_save_LIBS
30271 fi
30272 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30273 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30274 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30275   have_odbc32=yes
30276 else
30277   have_odbc32=no
30278 fi
30279
30280                                 if test $have_odbc32 = yes ; then
30281                                         ol_link_sql="-lodbc32"
30282                                 fi
30283                                 ;;
30284
30285                         *)
30286                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30287 echo "$as_me: error: unknown ODBC library" >&2;}
30288    { (exit 1); exit 1; }; }
30289                                 ;;
30290                         esac
30291                 fi
30292         done
30293
30294         LIBS="$sql_LIBS"
30295
30296         if test $ol_link_sql != no ; then
30297                 SLAPD_SQL_LIBS="$ol_link_sql"
30298
30299         elif test $ol_enable_sql != auto ; then
30300                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30301 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30302    { (exit 1); exit 1; }; }
30303         fi
30304 fi
30305
30306 ol_link_ndb=no
30307 if test $ol_enable_ndb != no ; then
30308         # Extract the first word of "mysql_config", so it can be a program name with args.
30309 set dummy mysql_config; ac_word=$2
30310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30312 if test "${ac_cv_prog_MYSQL+set}" = set; then
30313   echo $ECHO_N "(cached) $ECHO_C" >&6
30314 else
30315   if test -n "$MYSQL"; then
30316   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30317 else
30318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30319 for as_dir in $PATH
30320 do
30321   IFS=$as_save_IFS
30322   test -z "$as_dir" && as_dir=.
30323   for ac_exec_ext in '' $ac_executable_extensions; do
30324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30325     ac_cv_prog_MYSQL="yes"
30326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30327     break 2
30328   fi
30329 done
30330 done
30331 IFS=$as_save_IFS
30332
30333 fi
30334 fi
30335 MYSQL=$ac_cv_prog_MYSQL
30336 if test -n "$MYSQL"; then
30337   { echo "$as_me:$LINENO: result: $MYSQL" >&5
30338 echo "${ECHO_T}$MYSQL" >&6; }
30339 else
30340   { echo "$as_me:$LINENO: result: no" >&5
30341 echo "${ECHO_T}no" >&6; }
30342 fi
30343
30344
30345         if test "$MYSQL" != yes ; then
30346                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30347 echo "$as_me: error: could not locate mysql_config" >&2;}
30348    { (exit 1); exit 1; }; }
30349         fi
30350
30351         SQL_INC=`mysql_config --include`
30352         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30353
30354         save_CPPFLAGS="$CPPFLAGS"
30355         CPPFLAGS="$SLAPD_NDB_INCS"
30356         { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30357 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30358         cat >conftest.$ac_ext <<_ACEOF
30359 /* confdefs.h.  */
30360 _ACEOF
30361 cat confdefs.h >>conftest.$ac_ext
30362 cat >>conftest.$ac_ext <<_ACEOF
30363 /* end confdefs.h.  */
30364 #include <NdbApi.hpp>
30365 _ACEOF
30366 if { (ac_try="$ac_cpp conftest.$ac_ext"
30367 case "(($ac_try" in
30368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369   *) ac_try_echo=$ac_try;;
30370 esac
30371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30373   ac_status=$?
30374   grep -v '^ *+' conftest.er1 >conftest.err
30375   rm -f conftest.er1
30376   cat conftest.err >&5
30377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378   (exit $ac_status); } >/dev/null && {
30379          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30380          test ! -s conftest.err
30381        }; then
30382   { echo "$as_me:$LINENO: result: yes" >&5
30383 echo "${ECHO_T}yes" >&6; }
30384 else
30385   echo "$as_me: failed program was:" >&5
30386 sed 's/^/| /' conftest.$ac_ext >&5
30387
30388   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30389 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30390    { (exit 1); exit 1; }; }
30391
30392 fi
30393
30394 rm -f conftest.err conftest.$ac_ext
30395         CPPFLAGS="$save_CPPFLAGS"
30396
30397         SQL_LIB=`mysql_config --libs_r`
30398         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30399
30400         save_LDFLAGS="$LDFLAGS"
30401         save_LIBS="$LIBS"
30402         LDFLAGS="$SQL_LIB"
30403         { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30404 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30405 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30406   echo $ECHO_N "(cached) $ECHO_C" >&6
30407 else
30408   ac_check_lib_save_LIBS=$LIBS
30409 LIBS="-lndbclient -lstdc++ $LIBS"
30410 cat >conftest.$ac_ext <<_ACEOF
30411 /* confdefs.h.  */
30412 _ACEOF
30413 cat confdefs.h >>conftest.$ac_ext
30414 cat >>conftest.$ac_ext <<_ACEOF
30415 /* end confdefs.h.  */
30416
30417 /* Override any GCC internal prototype to avoid an error.
30418    Use char because int might match the return type of a GCC
30419    builtin and then its argument prototype would still apply.  */
30420 #ifdef __cplusplus
30421 extern "C"
30422 #endif
30423 char ndb_init ();
30424 int
30425 main ()
30426 {
30427 return ndb_init ();
30428   ;
30429   return 0;
30430 }
30431 _ACEOF
30432 rm -f conftest.$ac_objext conftest$ac_exeext
30433 if { (ac_try="$ac_link"
30434 case "(($ac_try" in
30435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436   *) ac_try_echo=$ac_try;;
30437 esac
30438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439   (eval "$ac_link") 2>conftest.er1
30440   ac_status=$?
30441   grep -v '^ *+' conftest.er1 >conftest.err
30442   rm -f conftest.er1
30443   cat conftest.err >&5
30444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445   (exit $ac_status); } && {
30446          test -z "$ac_c_werror_flag" ||
30447          test ! -s conftest.err
30448        } && test -s conftest$ac_exeext &&
30449        $as_test_x conftest$ac_exeext; then
30450   ac_cv_lib_ndbclient_ndb_init=yes
30451 else
30452   echo "$as_me: failed program was:" >&5
30453 sed 's/^/| /' conftest.$ac_ext >&5
30454
30455         ac_cv_lib_ndbclient_ndb_init=no
30456 fi
30457
30458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30459       conftest$ac_exeext conftest.$ac_ext
30460 LIBS=$ac_check_lib_save_LIBS
30461 fi
30462 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30463 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30464 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30465   : ok
30466 else
30467
30468                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30469 echo "$as_me: error: could not locate ndbclient library" >&2;}
30470    { (exit 1); exit 1; }; }
30471
30472 fi
30473
30474         LIBS="$save_LIBS"
30475         LDFLAGS="$save_LDFLAGS"
30476
30477         if test "$ol_enable_ndb" = yes ; then
30478                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30479         fi
30480 fi
30481
30482 ol_icu=no
30483
30484 for ac_header in unicode/utypes.h
30485 do
30486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30488   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30491   echo $ECHO_N "(cached) $ECHO_C" >&6
30492 fi
30493 ac_res=`eval echo '${'$as_ac_Header'}'`
30494                { echo "$as_me:$LINENO: result: $ac_res" >&5
30495 echo "${ECHO_T}$ac_res" >&6; }
30496 else
30497   # Is the header compilable?
30498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30500 cat >conftest.$ac_ext <<_ACEOF
30501 /* confdefs.h.  */
30502 _ACEOF
30503 cat confdefs.h >>conftest.$ac_ext
30504 cat >>conftest.$ac_ext <<_ACEOF
30505 /* end confdefs.h.  */
30506 $ac_includes_default
30507 #include <$ac_header>
30508 _ACEOF
30509 rm -f conftest.$ac_objext
30510 if { (ac_try="$ac_compile"
30511 case "(($ac_try" in
30512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30513   *) ac_try_echo=$ac_try;;
30514 esac
30515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30516   (eval "$ac_compile") 2>conftest.er1
30517   ac_status=$?
30518   grep -v '^ *+' conftest.er1 >conftest.err
30519   rm -f conftest.er1
30520   cat conftest.err >&5
30521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522   (exit $ac_status); } && {
30523          test -z "$ac_c_werror_flag" ||
30524          test ! -s conftest.err
30525        } && test -s conftest.$ac_objext; then
30526   ac_header_compiler=yes
30527 else
30528   echo "$as_me: failed program was:" >&5
30529 sed 's/^/| /' conftest.$ac_ext >&5
30530
30531         ac_header_compiler=no
30532 fi
30533
30534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30536 echo "${ECHO_T}$ac_header_compiler" >&6; }
30537
30538 # Is the header present?
30539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30541 cat >conftest.$ac_ext <<_ACEOF
30542 /* confdefs.h.  */
30543 _ACEOF
30544 cat confdefs.h >>conftest.$ac_ext
30545 cat >>conftest.$ac_ext <<_ACEOF
30546 /* end confdefs.h.  */
30547 #include <$ac_header>
30548 _ACEOF
30549 if { (ac_try="$ac_cpp conftest.$ac_ext"
30550 case "(($ac_try" in
30551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30552   *) ac_try_echo=$ac_try;;
30553 esac
30554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30555   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30556   ac_status=$?
30557   grep -v '^ *+' conftest.er1 >conftest.err
30558   rm -f conftest.er1
30559   cat conftest.err >&5
30560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561   (exit $ac_status); } >/dev/null && {
30562          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30563          test ! -s conftest.err
30564        }; then
30565   ac_header_preproc=yes
30566 else
30567   echo "$as_me: failed program was:" >&5
30568 sed 's/^/| /' conftest.$ac_ext >&5
30569
30570   ac_header_preproc=no
30571 fi
30572
30573 rm -f conftest.err conftest.$ac_ext
30574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30575 echo "${ECHO_T}$ac_header_preproc" >&6; }
30576
30577 # So?  What about this header?
30578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30579   yes:no: )
30580     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30584     ac_header_preproc=yes
30585     ;;
30586   no:yes:* )
30587     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30589     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30590 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30591     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30593     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30594 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30597     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30599     ( cat <<\_ASBOX
30600 ## --------------------------------------------- ##
30601 ## Report this to <http://www.openldap.org/its/> ##
30602 ## --------------------------------------------- ##
30603 _ASBOX
30604      ) | sed "s/^/$as_me: WARNING:     /" >&2
30605     ;;
30606 esac
30607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30610   echo $ECHO_N "(cached) $ECHO_C" >&6
30611 else
30612   eval "$as_ac_Header=\$ac_header_preproc"
30613 fi
30614 ac_res=`eval echo '${'$as_ac_Header'}'`
30615                { echo "$as_me:$LINENO: result: $ac_res" >&5
30616 echo "${ECHO_T}$ac_res" >&6; }
30617
30618 fi
30619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30620   cat >>confdefs.h <<_ACEOF
30621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30622 _ACEOF
30623
30624 fi
30625
30626 done
30627
30628 if test $ac_cv_header_unicode_utypes_h = yes ; then
30629                 OL_ICULIBS="-licuuc -licudata"
30630
30631         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30632 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30633 if test "${ol_cv_lib_icu+set}" = set; then
30634   echo $ECHO_N "(cached) $ECHO_C" >&6
30635 else
30636
30637                 ol_LIBS="$LIBS"
30638                 LIBS="$OL_ICULIBS $LIBS"
30639                 cat >conftest.$ac_ext <<_ACEOF
30640 /* confdefs.h.  */
30641 _ACEOF
30642 cat confdefs.h >>conftest.$ac_ext
30643 cat >>conftest.$ac_ext <<_ACEOF
30644 /* end confdefs.h.  */
30645
30646 #include <unicode/utypes.h>
30647
30648 int
30649 main ()
30650 {
30651
30652 (void) u_errorName(0);
30653
30654   ;
30655   return 0;
30656 }
30657 _ACEOF
30658 rm -f conftest.$ac_objext conftest$ac_exeext
30659 if { (ac_try="$ac_link"
30660 case "(($ac_try" in
30661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662   *) ac_try_echo=$ac_try;;
30663 esac
30664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665   (eval "$ac_link") 2>conftest.er1
30666   ac_status=$?
30667   grep -v '^ *+' conftest.er1 >conftest.err
30668   rm -f conftest.er1
30669   cat conftest.err >&5
30670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671   (exit $ac_status); } && {
30672          test -z "$ac_c_werror_flag" ||
30673          test ! -s conftest.err
30674        } && test -s conftest$ac_exeext &&
30675        $as_test_x conftest$ac_exeext; then
30676   ol_cv_lib_icu=yes
30677 else
30678   echo "$as_me: failed program was:" >&5
30679 sed 's/^/| /' conftest.$ac_ext >&5
30680
30681         ol_cv_lib_icu=no
30682 fi
30683
30684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30685       conftest$ac_exeext conftest.$ac_ext
30686                 LIBS="$ol_LIBS"
30687
30688 fi
30689 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30690 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30691
30692         if test $ol_cv_lib_icu != no ; then
30693                 ol_icu="$OL_ICULIBS"
30694
30695 cat >>confdefs.h <<\_ACEOF
30696 #define HAVE_ICU 1
30697 _ACEOF
30698
30699         fi
30700 fi
30701
30702 if test "$ol_icu" = no ; then
30703         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30704 echo "$as_me: WARNING: ICU not available" >&2;}
30705 else
30706         ICU_LIBS="$ol_icu"
30707 fi
30708 WITH_SASL=no
30709 ol_link_sasl=no
30710 ol_link_spasswd=no
30711 if test $ol_with_cyrus_sasl != no ; then
30712
30713
30714 for ac_header in sasl/sasl.h sasl.h
30715 do
30716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30718   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30721   echo $ECHO_N "(cached) $ECHO_C" >&6
30722 fi
30723 ac_res=`eval echo '${'$as_ac_Header'}'`
30724                { echo "$as_me:$LINENO: result: $ac_res" >&5
30725 echo "${ECHO_T}$ac_res" >&6; }
30726 else
30727   # Is the header compilable?
30728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30730 cat >conftest.$ac_ext <<_ACEOF
30731 /* confdefs.h.  */
30732 _ACEOF
30733 cat confdefs.h >>conftest.$ac_ext
30734 cat >>conftest.$ac_ext <<_ACEOF
30735 /* end confdefs.h.  */
30736 $ac_includes_default
30737 #include <$ac_header>
30738 _ACEOF
30739 rm -f conftest.$ac_objext
30740 if { (ac_try="$ac_compile"
30741 case "(($ac_try" in
30742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30743   *) ac_try_echo=$ac_try;;
30744 esac
30745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30746   (eval "$ac_compile") 2>conftest.er1
30747   ac_status=$?
30748   grep -v '^ *+' conftest.er1 >conftest.err
30749   rm -f conftest.er1
30750   cat conftest.err >&5
30751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752   (exit $ac_status); } && {
30753          test -z "$ac_c_werror_flag" ||
30754          test ! -s conftest.err
30755        } && test -s conftest.$ac_objext; then
30756   ac_header_compiler=yes
30757 else
30758   echo "$as_me: failed program was:" >&5
30759 sed 's/^/| /' conftest.$ac_ext >&5
30760
30761         ac_header_compiler=no
30762 fi
30763
30764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30766 echo "${ECHO_T}$ac_header_compiler" >&6; }
30767
30768 # Is the header present?
30769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30771 cat >conftest.$ac_ext <<_ACEOF
30772 /* confdefs.h.  */
30773 _ACEOF
30774 cat confdefs.h >>conftest.$ac_ext
30775 cat >>conftest.$ac_ext <<_ACEOF
30776 /* end confdefs.h.  */
30777 #include <$ac_header>
30778 _ACEOF
30779 if { (ac_try="$ac_cpp conftest.$ac_ext"
30780 case "(($ac_try" in
30781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30782   *) ac_try_echo=$ac_try;;
30783 esac
30784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30785   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30786   ac_status=$?
30787   grep -v '^ *+' conftest.er1 >conftest.err
30788   rm -f conftest.er1
30789   cat conftest.err >&5
30790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791   (exit $ac_status); } >/dev/null && {
30792          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30793          test ! -s conftest.err
30794        }; then
30795   ac_header_preproc=yes
30796 else
30797   echo "$as_me: failed program was:" >&5
30798 sed 's/^/| /' conftest.$ac_ext >&5
30799
30800   ac_header_preproc=no
30801 fi
30802
30803 rm -f conftest.err conftest.$ac_ext
30804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30805 echo "${ECHO_T}$ac_header_preproc" >&6; }
30806
30807 # So?  What about this header?
30808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30809   yes:no: )
30810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30814     ac_header_preproc=yes
30815     ;;
30816   no:yes:* )
30817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30819     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30820 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30821     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30823     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30824 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30827     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30829     ( cat <<\_ASBOX
30830 ## --------------------------------------------- ##
30831 ## Report this to <http://www.openldap.org/its/> ##
30832 ## --------------------------------------------- ##
30833 _ASBOX
30834      ) | sed "s/^/$as_me: WARNING:     /" >&2
30835     ;;
30836 esac
30837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30840   echo $ECHO_N "(cached) $ECHO_C" >&6
30841 else
30842   eval "$as_ac_Header=\$ac_header_preproc"
30843 fi
30844 ac_res=`eval echo '${'$as_ac_Header'}'`
30845                { echo "$as_me:$LINENO: result: $ac_res" >&5
30846 echo "${ECHO_T}$ac_res" >&6; }
30847
30848 fi
30849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30850   cat >>confdefs.h <<_ACEOF
30851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30852 _ACEOF
30853
30854 fi
30855
30856 done
30857
30858
30859         if test $ac_cv_header_sasl_sasl_h = yes ||
30860            test $ac_cv_header_sasl_h = yes; then
30861                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30862 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30863 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30864   echo $ECHO_N "(cached) $ECHO_C" >&6
30865 else
30866   ac_check_lib_save_LIBS=$LIBS
30867 LIBS="-lsasl2  $LIBS"
30868 cat >conftest.$ac_ext <<_ACEOF
30869 /* confdefs.h.  */
30870 _ACEOF
30871 cat confdefs.h >>conftest.$ac_ext
30872 cat >>conftest.$ac_ext <<_ACEOF
30873 /* end confdefs.h.  */
30874
30875 /* Override any GCC internal prototype to avoid an error.
30876    Use char because int might match the return type of a GCC
30877    builtin and then its argument prototype would still apply.  */
30878 #ifdef __cplusplus
30879 extern "C"
30880 #endif
30881 char sasl_client_init ();
30882 int
30883 main ()
30884 {
30885 return sasl_client_init ();
30886   ;
30887   return 0;
30888 }
30889 _ACEOF
30890 rm -f conftest.$ac_objext conftest$ac_exeext
30891 if { (ac_try="$ac_link"
30892 case "(($ac_try" in
30893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894   *) ac_try_echo=$ac_try;;
30895 esac
30896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897   (eval "$ac_link") 2>conftest.er1
30898   ac_status=$?
30899   grep -v '^ *+' conftest.er1 >conftest.err
30900   rm -f conftest.er1
30901   cat conftest.err >&5
30902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903   (exit $ac_status); } && {
30904          test -z "$ac_c_werror_flag" ||
30905          test ! -s conftest.err
30906        } && test -s conftest$ac_exeext &&
30907        $as_test_x conftest$ac_exeext; then
30908   ac_cv_lib_sasl2_sasl_client_init=yes
30909 else
30910   echo "$as_me: failed program was:" >&5
30911 sed 's/^/| /' conftest.$ac_ext >&5
30912
30913         ac_cv_lib_sasl2_sasl_client_init=no
30914 fi
30915
30916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30917       conftest$ac_exeext conftest.$ac_ext
30918 LIBS=$ac_check_lib_save_LIBS
30919 fi
30920 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30921 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30922 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30923   ol_link_sasl="-lsasl2"
30924 else
30925   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30926 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30927 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30928   echo $ECHO_N "(cached) $ECHO_C" >&6
30929 else
30930   ac_check_lib_save_LIBS=$LIBS
30931 LIBS="-lsasl  $LIBS"
30932 cat >conftest.$ac_ext <<_ACEOF
30933 /* confdefs.h.  */
30934 _ACEOF
30935 cat confdefs.h >>conftest.$ac_ext
30936 cat >>conftest.$ac_ext <<_ACEOF
30937 /* end confdefs.h.  */
30938
30939 /* Override any GCC internal prototype to avoid an error.
30940    Use char because int might match the return type of a GCC
30941    builtin and then its argument prototype would still apply.  */
30942 #ifdef __cplusplus
30943 extern "C"
30944 #endif
30945 char sasl_client_init ();
30946 int
30947 main ()
30948 {
30949 return sasl_client_init ();
30950   ;
30951   return 0;
30952 }
30953 _ACEOF
30954 rm -f conftest.$ac_objext conftest$ac_exeext
30955 if { (ac_try="$ac_link"
30956 case "(($ac_try" in
30957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30958   *) ac_try_echo=$ac_try;;
30959 esac
30960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30961   (eval "$ac_link") 2>conftest.er1
30962   ac_status=$?
30963   grep -v '^ *+' conftest.er1 >conftest.err
30964   rm -f conftest.er1
30965   cat conftest.err >&5
30966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967   (exit $ac_status); } && {
30968          test -z "$ac_c_werror_flag" ||
30969          test ! -s conftest.err
30970        } && test -s conftest$ac_exeext &&
30971        $as_test_x conftest$ac_exeext; then
30972   ac_cv_lib_sasl_sasl_client_init=yes
30973 else
30974   echo "$as_me: failed program was:" >&5
30975 sed 's/^/| /' conftest.$ac_ext >&5
30976
30977         ac_cv_lib_sasl_sasl_client_init=no
30978 fi
30979
30980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30981       conftest$ac_exeext conftest.$ac_ext
30982 LIBS=$ac_check_lib_save_LIBS
30983 fi
30984 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30985 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30986 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30987   ol_link_sasl="-lsasl"
30988 fi
30989
30990 fi
30991
30992         fi
30993
30994         if test $ol_link_sasl = no ; then
30995                 if test $ol_with_cyrus_sasl != auto ; then
30996                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30997 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30998    { (exit 1); exit 1; }; }
30999                 else
31000                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
31001 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
31002                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31003 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31004                         if test $ol_link_tls = no ; then
31005                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31006 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31007                         fi
31008                 fi
31009         else
31010                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
31011 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
31012 if test "${ol_cv_sasl_compat+set}" = set; then
31013   echo $ECHO_N "(cached) $ECHO_C" >&6
31014 else
31015
31016         cat >conftest.$ac_ext <<_ACEOF
31017 /* confdefs.h.  */
31018 _ACEOF
31019 cat confdefs.h >>conftest.$ac_ext
31020 cat >>conftest.$ac_ext <<_ACEOF
31021 /* end confdefs.h.  */
31022
31023 #ifdef HAVE_SASL_SASL_H
31024 #include <sasl/sasl.h>
31025 #else
31026 #include <sasl.h>
31027 #endif
31028
31029 /* Require 2.1.15+ */
31030 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
31031         char *__sasl_compat = "2.2+ or better okay (we guess)";
31032 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
31033         && SASL_VERSION_STEP >=15
31034         char *__sasl_compat = "2.1.15+ or better okay";
31035 #endif
31036
31037 _ACEOF
31038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31039   $EGREP "__sasl_compat" >/dev/null 2>&1; then
31040   ol_cv_sasl_compat=yes
31041 else
31042   ol_cv_sasl_compat=no
31043 fi
31044 rm -f conftest*
31045
31046 fi
31047 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
31048 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
31049
31050                 if test $ol_cv_sasl_compat = no ; then
31051                         ol_link_sasl=no
31052                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
31053 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
31054    { (exit 1); exit 1; }; }
31055                 fi
31056
31057
31058 cat >>confdefs.h <<\_ACEOF
31059 #define HAVE_CYRUS_SASL 1
31060 _ACEOF
31061
31062                 SASL_LIBS="$ol_link_sasl"
31063                 if test $ol_enable_spasswd != no ; then
31064                         ol_link_spasswd=yes
31065                 fi
31066
31067                 ac_save_LIBS="$LIBS"
31068                 LIBS="$LIBS $ol_link_sasl"
31069                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
31070 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
31071 if test "${ac_cv_func_sasl_version+set}" = set; then
31072   echo $ECHO_N "(cached) $ECHO_C" >&6
31073 else
31074   cat >conftest.$ac_ext <<_ACEOF
31075 /* confdefs.h.  */
31076 _ACEOF
31077 cat confdefs.h >>conftest.$ac_ext
31078 cat >>conftest.$ac_ext <<_ACEOF
31079 /* end confdefs.h.  */
31080 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
31081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31082 #define sasl_version innocuous_sasl_version
31083
31084 /* System header to define __stub macros and hopefully few prototypes,
31085     which can conflict with char sasl_version (); below.
31086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31087     <limits.h> exists even on freestanding compilers.  */
31088
31089 #ifdef __STDC__
31090 # include <limits.h>
31091 #else
31092 # include <assert.h>
31093 #endif
31094
31095 #undef sasl_version
31096
31097 /* Override any GCC internal prototype to avoid an error.
31098    Use char because int might match the return type of a GCC
31099    builtin and then its argument prototype would still apply.  */
31100 #ifdef __cplusplus
31101 extern "C"
31102 #endif
31103 char sasl_version ();
31104 /* The GNU C library defines this for functions which it implements
31105     to always fail with ENOSYS.  Some functions are actually named
31106     something starting with __ and the normal name is an alias.  */
31107 #if defined __stub_sasl_version || defined __stub___sasl_version
31108 choke me
31109 #endif
31110
31111 int
31112 main ()
31113 {
31114 return sasl_version ();
31115   ;
31116   return 0;
31117 }
31118 _ACEOF
31119 rm -f conftest.$ac_objext conftest$ac_exeext
31120 if { (ac_try="$ac_link"
31121 case "(($ac_try" in
31122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31123   *) ac_try_echo=$ac_try;;
31124 esac
31125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31126   (eval "$ac_link") 2>conftest.er1
31127   ac_status=$?
31128   grep -v '^ *+' conftest.er1 >conftest.err
31129   rm -f conftest.er1
31130   cat conftest.err >&5
31131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132   (exit $ac_status); } && {
31133          test -z "$ac_c_werror_flag" ||
31134          test ! -s conftest.err
31135        } && test -s conftest$ac_exeext &&
31136        $as_test_x conftest$ac_exeext; then
31137   ac_cv_func_sasl_version=yes
31138 else
31139   echo "$as_me: failed program was:" >&5
31140 sed 's/^/| /' conftest.$ac_ext >&5
31141
31142         ac_cv_func_sasl_version=no
31143 fi
31144
31145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31146       conftest$ac_exeext conftest.$ac_ext
31147 fi
31148 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31149 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
31150 if test $ac_cv_func_sasl_version = yes; then
31151
31152 cat >>confdefs.h <<\_ACEOF
31153 #define HAVE_SASL_VERSION 1
31154 _ACEOF
31155
31156 fi
31157
31158                 LIBS="$ac_save_LIBS"
31159
31160                 WITH_SASL=yes
31161         fi
31162
31163 else
31164         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31165 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31166         if test $ol_link_tls = no ; then
31167                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31168 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31169         fi
31170 fi
31171
31172 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31173         dev=no
31174         if test -r /dev/urandom ; then
31175                 dev="/dev/urandom";
31176         elif test -r /idev/urandom ; then
31177                 dev="/idev/urandom";
31178         elif test -r /dev/srandom ; then
31179                 dev="/dev/srandom";
31180         elif test -r /dev/random ; then
31181                 dev="/dev/random";
31182         elif test -r /idev/random ; then
31183                 dev="/idev/random";
31184         fi
31185
31186         if test $dev != no ; then
31187
31188 cat >>confdefs.h <<_ACEOF
31189 #define URANDOM_DEVICE "$dev"
31190 _ACEOF
31191
31192         fi
31193 fi
31194
31195 ol_link_fetch=no
31196 if test $ol_with_fetch != no ; then
31197         ol_LIBS=$LIBS
31198 LIBS="-lfetch -lcom_err $LIBS"
31199 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31200 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31201 if test "${ol_cv_lib_fetch+set}" = set; then
31202   echo $ECHO_N "(cached) $ECHO_C" >&6
31203 else
31204
31205         cat >conftest.$ac_ext <<_ACEOF
31206 /* confdefs.h.  */
31207 _ACEOF
31208 cat confdefs.h >>conftest.$ac_ext
31209 cat >>conftest.$ac_ext <<_ACEOF
31210 /* end confdefs.h.  */
31211
31212 #include <sys/param.h>
31213 #include <stdio.h>
31214 #include <fetch.h>
31215 int
31216 main ()
31217 {
31218 struct url *u = fetchParseURL("file:///");
31219   ;
31220   return 0;
31221 }
31222 _ACEOF
31223 rm -f conftest.$ac_objext conftest$ac_exeext
31224 if { (ac_try="$ac_link"
31225 case "(($ac_try" in
31226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31227   *) ac_try_echo=$ac_try;;
31228 esac
31229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31230   (eval "$ac_link") 2>conftest.er1
31231   ac_status=$?
31232   grep -v '^ *+' conftest.er1 >conftest.err
31233   rm -f conftest.er1
31234   cat conftest.err >&5
31235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236   (exit $ac_status); } && {
31237          test -z "$ac_c_werror_flag" ||
31238          test ! -s conftest.err
31239        } && test -s conftest$ac_exeext &&
31240        $as_test_x conftest$ac_exeext; then
31241   ol_cv_lib_fetch=yes
31242 else
31243   echo "$as_me: failed program was:" >&5
31244 sed 's/^/| /' conftest.$ac_ext >&5
31245
31246         ol_cv_lib_fetch=no
31247 fi
31248
31249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31250       conftest$ac_exeext conftest.$ac_ext
31251 fi
31252 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31253 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31254 LIBS=$ol_LIBS
31255 if test $ol_cv_lib_fetch != no ; then
31256         ol_link_fetch="-lfetch -lcom_err"
31257
31258 cat >>confdefs.h <<\_ACEOF
31259 #define HAVE_FETCH 1
31260 _ACEOF
31261
31262 fi
31263
31264
31265         if test $ol_cv_lib_fetch != no ; then
31266                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31267                 ol_link_fetch=freebsd
31268
31269         elif test $ol_with_fetch != auto ; then
31270                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31271 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31272    { (exit 1); exit 1; }; }
31273         fi
31274 fi
31275
31276 if test $ol_enable_crypt != no ; then
31277         save_LIBS="$LIBS"
31278         LIBS="$TLS_LIBS $LIBS"
31279
31280         { echo "$as_me:$LINENO: checking for crypt" >&5
31281 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31282 if test "${ac_cv_func_crypt+set}" = set; then
31283   echo $ECHO_N "(cached) $ECHO_C" >&6
31284 else
31285   cat >conftest.$ac_ext <<_ACEOF
31286 /* confdefs.h.  */
31287 _ACEOF
31288 cat confdefs.h >>conftest.$ac_ext
31289 cat >>conftest.$ac_ext <<_ACEOF
31290 /* end confdefs.h.  */
31291 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31293 #define crypt innocuous_crypt
31294
31295 /* System header to define __stub macros and hopefully few prototypes,
31296     which can conflict with char crypt (); below.
31297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31298     <limits.h> exists even on freestanding compilers.  */
31299
31300 #ifdef __STDC__
31301 # include <limits.h>
31302 #else
31303 # include <assert.h>
31304 #endif
31305
31306 #undef crypt
31307
31308 /* Override any GCC internal prototype to avoid an error.
31309    Use char because int might match the return type of a GCC
31310    builtin and then its argument prototype would still apply.  */
31311 #ifdef __cplusplus
31312 extern "C"
31313 #endif
31314 char crypt ();
31315 /* The GNU C library defines this for functions which it implements
31316     to always fail with ENOSYS.  Some functions are actually named
31317     something starting with __ and the normal name is an alias.  */
31318 #if defined __stub_crypt || defined __stub___crypt
31319 choke me
31320 #endif
31321
31322 int
31323 main ()
31324 {
31325 return crypt ();
31326   ;
31327   return 0;
31328 }
31329 _ACEOF
31330 rm -f conftest.$ac_objext conftest$ac_exeext
31331 if { (ac_try="$ac_link"
31332 case "(($ac_try" in
31333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31334   *) ac_try_echo=$ac_try;;
31335 esac
31336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31337   (eval "$ac_link") 2>conftest.er1
31338   ac_status=$?
31339   grep -v '^ *+' conftest.er1 >conftest.err
31340   rm -f conftest.er1
31341   cat conftest.err >&5
31342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343   (exit $ac_status); } && {
31344          test -z "$ac_c_werror_flag" ||
31345          test ! -s conftest.err
31346        } && test -s conftest$ac_exeext &&
31347        $as_test_x conftest$ac_exeext; then
31348   ac_cv_func_crypt=yes
31349 else
31350   echo "$as_me: failed program was:" >&5
31351 sed 's/^/| /' conftest.$ac_ext >&5
31352
31353         ac_cv_func_crypt=no
31354 fi
31355
31356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31357       conftest$ac_exeext conftest.$ac_ext
31358 fi
31359 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31360 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31361 if test $ac_cv_func_crypt = yes; then
31362   have_crypt=yes
31363 else
31364
31365                 LIBS="$save_LIBS"
31366                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31367 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31368 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31369   echo $ECHO_N "(cached) $ECHO_C" >&6
31370 else
31371   ac_check_lib_save_LIBS=$LIBS
31372 LIBS="-lcrypt  $LIBS"
31373 cat >conftest.$ac_ext <<_ACEOF
31374 /* confdefs.h.  */
31375 _ACEOF
31376 cat confdefs.h >>conftest.$ac_ext
31377 cat >>conftest.$ac_ext <<_ACEOF
31378 /* end confdefs.h.  */
31379
31380 /* Override any GCC internal prototype to avoid an error.
31381    Use char because int might match the return type of a GCC
31382    builtin and then its argument prototype would still apply.  */
31383 #ifdef __cplusplus
31384 extern "C"
31385 #endif
31386 char crypt ();
31387 int
31388 main ()
31389 {
31390 return crypt ();
31391   ;
31392   return 0;
31393 }
31394 _ACEOF
31395 rm -f conftest.$ac_objext conftest$ac_exeext
31396 if { (ac_try="$ac_link"
31397 case "(($ac_try" in
31398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31399   *) ac_try_echo=$ac_try;;
31400 esac
31401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31402   (eval "$ac_link") 2>conftest.er1
31403   ac_status=$?
31404   grep -v '^ *+' conftest.er1 >conftest.err
31405   rm -f conftest.er1
31406   cat conftest.err >&5
31407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408   (exit $ac_status); } && {
31409          test -z "$ac_c_werror_flag" ||
31410          test ! -s conftest.err
31411        } && test -s conftest$ac_exeext &&
31412        $as_test_x conftest$ac_exeext; then
31413   ac_cv_lib_crypt_crypt=yes
31414 else
31415   echo "$as_me: failed program was:" >&5
31416 sed 's/^/| /' conftest.$ac_ext >&5
31417
31418         ac_cv_lib_crypt_crypt=no
31419 fi
31420
31421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31422       conftest$ac_exeext conftest.$ac_ext
31423 LIBS=$ac_check_lib_save_LIBS
31424 fi
31425 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31426 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31427 if test $ac_cv_lib_crypt_crypt = yes; then
31428   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31429                         have_crypt=yes
31430 else
31431   have_crypt=no
31432 fi
31433
31434 fi
31435
31436
31437         LIBS="$save_LIBS"
31438
31439         if test $have_crypt = yes ; then
31440
31441 cat >>confdefs.h <<\_ACEOF
31442 #define HAVE_CRYPT 1
31443 _ACEOF
31444
31445         else
31446                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31447 echo "$as_me: WARNING: could not find crypt" >&2;}
31448                 if test $ol_enable_crypt = yes ; then
31449                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31450 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31451    { (exit 1); exit 1; }; }
31452                 fi
31453
31454                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31455 echo "$as_me: WARNING: disabling crypt support" >&2;}
31456                 ol_enable_crypt=no
31457         fi
31458 fi
31459
31460 if test $ol_enable_proctitle != no ; then
31461         { echo "$as_me:$LINENO: checking for setproctitle" >&5
31462 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31463 if test "${ac_cv_func_setproctitle+set}" = set; then
31464   echo $ECHO_N "(cached) $ECHO_C" >&6
31465 else
31466   cat >conftest.$ac_ext <<_ACEOF
31467 /* confdefs.h.  */
31468 _ACEOF
31469 cat confdefs.h >>conftest.$ac_ext
31470 cat >>conftest.$ac_ext <<_ACEOF
31471 /* end confdefs.h.  */
31472 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31474 #define setproctitle innocuous_setproctitle
31475
31476 /* System header to define __stub macros and hopefully few prototypes,
31477     which can conflict with char setproctitle (); below.
31478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31479     <limits.h> exists even on freestanding compilers.  */
31480
31481 #ifdef __STDC__
31482 # include <limits.h>
31483 #else
31484 # include <assert.h>
31485 #endif
31486
31487 #undef setproctitle
31488
31489 /* Override any GCC internal prototype to avoid an error.
31490    Use char because int might match the return type of a GCC
31491    builtin and then its argument prototype would still apply.  */
31492 #ifdef __cplusplus
31493 extern "C"
31494 #endif
31495 char setproctitle ();
31496 /* The GNU C library defines this for functions which it implements
31497     to always fail with ENOSYS.  Some functions are actually named
31498     something starting with __ and the normal name is an alias.  */
31499 #if defined __stub_setproctitle || defined __stub___setproctitle
31500 choke me
31501 #endif
31502
31503 int
31504 main ()
31505 {
31506 return setproctitle ();
31507   ;
31508   return 0;
31509 }
31510 _ACEOF
31511 rm -f conftest.$ac_objext conftest$ac_exeext
31512 if { (ac_try="$ac_link"
31513 case "(($ac_try" in
31514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515   *) ac_try_echo=$ac_try;;
31516 esac
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518   (eval "$ac_link") 2>conftest.er1
31519   ac_status=$?
31520   grep -v '^ *+' conftest.er1 >conftest.err
31521   rm -f conftest.er1
31522   cat conftest.err >&5
31523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524   (exit $ac_status); } && {
31525          test -z "$ac_c_werror_flag" ||
31526          test ! -s conftest.err
31527        } && test -s conftest$ac_exeext &&
31528        $as_test_x conftest$ac_exeext; then
31529   ac_cv_func_setproctitle=yes
31530 else
31531   echo "$as_me: failed program was:" >&5
31532 sed 's/^/| /' conftest.$ac_ext >&5
31533
31534         ac_cv_func_setproctitle=no
31535 fi
31536
31537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31538       conftest$ac_exeext conftest.$ac_ext
31539 fi
31540 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31541 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31542 if test $ac_cv_func_setproctitle = yes; then
31543   have_setproctitle=yes
31544 else
31545
31546                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31547 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31548 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31549   echo $ECHO_N "(cached) $ECHO_C" >&6
31550 else
31551   ac_check_lib_save_LIBS=$LIBS
31552 LIBS="-lutil  $LIBS"
31553 cat >conftest.$ac_ext <<_ACEOF
31554 /* confdefs.h.  */
31555 _ACEOF
31556 cat confdefs.h >>conftest.$ac_ext
31557 cat >>conftest.$ac_ext <<_ACEOF
31558 /* end confdefs.h.  */
31559
31560 /* Override any GCC internal prototype to avoid an error.
31561    Use char because int might match the return type of a GCC
31562    builtin and then its argument prototype would still apply.  */
31563 #ifdef __cplusplus
31564 extern "C"
31565 #endif
31566 char setproctitle ();
31567 int
31568 main ()
31569 {
31570 return setproctitle ();
31571   ;
31572   return 0;
31573 }
31574 _ACEOF
31575 rm -f conftest.$ac_objext conftest$ac_exeext
31576 if { (ac_try="$ac_link"
31577 case "(($ac_try" in
31578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31579   *) ac_try_echo=$ac_try;;
31580 esac
31581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31582   (eval "$ac_link") 2>conftest.er1
31583   ac_status=$?
31584   grep -v '^ *+' conftest.er1 >conftest.err
31585   rm -f conftest.er1
31586   cat conftest.err >&5
31587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588   (exit $ac_status); } && {
31589          test -z "$ac_c_werror_flag" ||
31590          test ! -s conftest.err
31591        } && test -s conftest$ac_exeext &&
31592        $as_test_x conftest$ac_exeext; then
31593   ac_cv_lib_util_setproctitle=yes
31594 else
31595   echo "$as_me: failed program was:" >&5
31596 sed 's/^/| /' conftest.$ac_ext >&5
31597
31598         ac_cv_lib_util_setproctitle=no
31599 fi
31600
31601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31602       conftest$ac_exeext conftest.$ac_ext
31603 LIBS=$ac_check_lib_save_LIBS
31604 fi
31605 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31606 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31607 if test $ac_cv_lib_util_setproctitle = yes; then
31608   have_setproctitle=yes
31609                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31610 else
31611   have_setproctitle=no
31612                         case " $LIBOBJS " in
31613   *" setproctitle.$ac_objext "* ) ;;
31614   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31615  ;;
31616 esac
31617
31618                         LIBSRCS="$LIBSRCS setproctitle.c"
31619 fi
31620
31621 fi
31622
31623
31624         if test $have_setproctitle = yes ; then
31625
31626 cat >>confdefs.h <<\_ACEOF
31627 #define HAVE_SETPROCTITLE 1
31628 _ACEOF
31629
31630         fi
31631 fi
31632
31633 if test $ol_enable_slp != no ; then
31634
31635 for ac_header in slp.h
31636 do
31637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31639   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31642   echo $ECHO_N "(cached) $ECHO_C" >&6
31643 fi
31644 ac_res=`eval echo '${'$as_ac_Header'}'`
31645                { echo "$as_me:$LINENO: result: $ac_res" >&5
31646 echo "${ECHO_T}$ac_res" >&6; }
31647 else
31648   # Is the header compilable?
31649 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31651 cat >conftest.$ac_ext <<_ACEOF
31652 /* confdefs.h.  */
31653 _ACEOF
31654 cat confdefs.h >>conftest.$ac_ext
31655 cat >>conftest.$ac_ext <<_ACEOF
31656 /* end confdefs.h.  */
31657 $ac_includes_default
31658 #include <$ac_header>
31659 _ACEOF
31660 rm -f conftest.$ac_objext
31661 if { (ac_try="$ac_compile"
31662 case "(($ac_try" in
31663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664   *) ac_try_echo=$ac_try;;
31665 esac
31666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667   (eval "$ac_compile") 2>conftest.er1
31668   ac_status=$?
31669   grep -v '^ *+' conftest.er1 >conftest.err
31670   rm -f conftest.er1
31671   cat conftest.err >&5
31672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673   (exit $ac_status); } && {
31674          test -z "$ac_c_werror_flag" ||
31675          test ! -s conftest.err
31676        } && test -s conftest.$ac_objext; then
31677   ac_header_compiler=yes
31678 else
31679   echo "$as_me: failed program was:" >&5
31680 sed 's/^/| /' conftest.$ac_ext >&5
31681
31682         ac_header_compiler=no
31683 fi
31684
31685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31687 echo "${ECHO_T}$ac_header_compiler" >&6; }
31688
31689 # Is the header present?
31690 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31692 cat >conftest.$ac_ext <<_ACEOF
31693 /* confdefs.h.  */
31694 _ACEOF
31695 cat confdefs.h >>conftest.$ac_ext
31696 cat >>conftest.$ac_ext <<_ACEOF
31697 /* end confdefs.h.  */
31698 #include <$ac_header>
31699 _ACEOF
31700 if { (ac_try="$ac_cpp conftest.$ac_ext"
31701 case "(($ac_try" in
31702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31703   *) ac_try_echo=$ac_try;;
31704 esac
31705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31707   ac_status=$?
31708   grep -v '^ *+' conftest.er1 >conftest.err
31709   rm -f conftest.er1
31710   cat conftest.err >&5
31711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712   (exit $ac_status); } >/dev/null && {
31713          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31714          test ! -s conftest.err
31715        }; then
31716   ac_header_preproc=yes
31717 else
31718   echo "$as_me: failed program was:" >&5
31719 sed 's/^/| /' conftest.$ac_ext >&5
31720
31721   ac_header_preproc=no
31722 fi
31723
31724 rm -f conftest.err conftest.$ac_ext
31725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31726 echo "${ECHO_T}$ac_header_preproc" >&6; }
31727
31728 # So?  What about this header?
31729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31730   yes:no: )
31731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31735     ac_header_preproc=yes
31736     ;;
31737   no:yes:* )
31738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31750     ( cat <<\_ASBOX
31751 ## --------------------------------------------- ##
31752 ## Report this to <http://www.openldap.org/its/> ##
31753 ## --------------------------------------------- ##
31754 _ASBOX
31755      ) | sed "s/^/$as_me: WARNING:     /" >&2
31756     ;;
31757 esac
31758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31761   echo $ECHO_N "(cached) $ECHO_C" >&6
31762 else
31763   eval "$as_ac_Header=\$ac_header_preproc"
31764 fi
31765 ac_res=`eval echo '${'$as_ac_Header'}'`
31766                { echo "$as_me:$LINENO: result: $ac_res" >&5
31767 echo "${ECHO_T}$ac_res" >&6; }
31768
31769 fi
31770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31771   cat >>confdefs.h <<_ACEOF
31772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31773 _ACEOF
31774
31775 fi
31776
31777 done
31778
31779
31780         if test $ac_cv_header_slp_h = yes ; then
31781                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31782 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31783 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31784   echo $ECHO_N "(cached) $ECHO_C" >&6
31785 else
31786   ac_check_lib_save_LIBS=$LIBS
31787 LIBS="-lslp  $LIBS"
31788 cat >conftest.$ac_ext <<_ACEOF
31789 /* confdefs.h.  */
31790 _ACEOF
31791 cat confdefs.h >>conftest.$ac_ext
31792 cat >>conftest.$ac_ext <<_ACEOF
31793 /* end confdefs.h.  */
31794
31795 /* Override any GCC internal prototype to avoid an error.
31796    Use char because int might match the return type of a GCC
31797    builtin and then its argument prototype would still apply.  */
31798 #ifdef __cplusplus
31799 extern "C"
31800 #endif
31801 char SLPOpen ();
31802 int
31803 main ()
31804 {
31805 return SLPOpen ();
31806   ;
31807   return 0;
31808 }
31809 _ACEOF
31810 rm -f conftest.$ac_objext conftest$ac_exeext
31811 if { (ac_try="$ac_link"
31812 case "(($ac_try" in
31813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31814   *) ac_try_echo=$ac_try;;
31815 esac
31816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31817   (eval "$ac_link") 2>conftest.er1
31818   ac_status=$?
31819   grep -v '^ *+' conftest.er1 >conftest.err
31820   rm -f conftest.er1
31821   cat conftest.err >&5
31822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823   (exit $ac_status); } && {
31824          test -z "$ac_c_werror_flag" ||
31825          test ! -s conftest.err
31826        } && test -s conftest$ac_exeext &&
31827        $as_test_x conftest$ac_exeext; then
31828   ac_cv_lib_slp_SLPOpen=yes
31829 else
31830   echo "$as_me: failed program was:" >&5
31831 sed 's/^/| /' conftest.$ac_ext >&5
31832
31833         ac_cv_lib_slp_SLPOpen=no
31834 fi
31835
31836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31837       conftest$ac_exeext conftest.$ac_ext
31838 LIBS=$ac_check_lib_save_LIBS
31839 fi
31840 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31841 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31842 if test $ac_cv_lib_slp_SLPOpen = yes; then
31843   have_slp=yes
31844 else
31845   have_slp=no
31846 fi
31847
31848                 if test $have_slp = yes ; then
31849
31850 cat >>confdefs.h <<\_ACEOF
31851 #define HAVE_SLP 1
31852 _ACEOF
31853
31854                         SLAPD_SLP_LIBS=-lslp
31855                 fi
31856
31857         elif test $ol_enable_slp = yes ; then
31858                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31859 echo "$as_me: error: SLP not found" >&2;}
31860    { (exit 1); exit 1; }; }
31861         fi
31862 fi
31863
31864
31865 { echo "$as_me:$LINENO: checking for mode_t" >&5
31866 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31867 if test "${ac_cv_type_mode_t+set}" = set; then
31868   echo $ECHO_N "(cached) $ECHO_C" >&6
31869 else
31870   cat >conftest.$ac_ext <<_ACEOF
31871 /* confdefs.h.  */
31872 _ACEOF
31873 cat confdefs.h >>conftest.$ac_ext
31874 cat >>conftest.$ac_ext <<_ACEOF
31875 /* end confdefs.h.  */
31876 $ac_includes_default
31877 typedef mode_t ac__type_new_;
31878 int
31879 main ()
31880 {
31881 if ((ac__type_new_ *) 0)
31882   return 0;
31883 if (sizeof (ac__type_new_))
31884   return 0;
31885   ;
31886   return 0;
31887 }
31888 _ACEOF
31889 rm -f conftest.$ac_objext
31890 if { (ac_try="$ac_compile"
31891 case "(($ac_try" in
31892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31893   *) ac_try_echo=$ac_try;;
31894 esac
31895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31896   (eval "$ac_compile") 2>conftest.er1
31897   ac_status=$?
31898   grep -v '^ *+' conftest.er1 >conftest.err
31899   rm -f conftest.er1
31900   cat conftest.err >&5
31901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902   (exit $ac_status); } && {
31903          test -z "$ac_c_werror_flag" ||
31904          test ! -s conftest.err
31905        } && test -s conftest.$ac_objext; then
31906   ac_cv_type_mode_t=yes
31907 else
31908   echo "$as_me: failed program was:" >&5
31909 sed 's/^/| /' conftest.$ac_ext >&5
31910
31911         ac_cv_type_mode_t=no
31912 fi
31913
31914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31915 fi
31916 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31917 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31918 if test $ac_cv_type_mode_t = yes; then
31919   :
31920 else
31921
31922 cat >>confdefs.h <<_ACEOF
31923 #define mode_t int
31924 _ACEOF
31925
31926 fi
31927
31928 { echo "$as_me:$LINENO: checking for off_t" >&5
31929 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31930 if test "${ac_cv_type_off_t+set}" = set; then
31931   echo $ECHO_N "(cached) $ECHO_C" >&6
31932 else
31933   cat >conftest.$ac_ext <<_ACEOF
31934 /* confdefs.h.  */
31935 _ACEOF
31936 cat confdefs.h >>conftest.$ac_ext
31937 cat >>conftest.$ac_ext <<_ACEOF
31938 /* end confdefs.h.  */
31939 $ac_includes_default
31940 typedef off_t ac__type_new_;
31941 int
31942 main ()
31943 {
31944 if ((ac__type_new_ *) 0)
31945   return 0;
31946 if (sizeof (ac__type_new_))
31947   return 0;
31948   ;
31949   return 0;
31950 }
31951 _ACEOF
31952 rm -f conftest.$ac_objext
31953 if { (ac_try="$ac_compile"
31954 case "(($ac_try" in
31955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31956   *) ac_try_echo=$ac_try;;
31957 esac
31958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31959   (eval "$ac_compile") 2>conftest.er1
31960   ac_status=$?
31961   grep -v '^ *+' conftest.er1 >conftest.err
31962   rm -f conftest.er1
31963   cat conftest.err >&5
31964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965   (exit $ac_status); } && {
31966          test -z "$ac_c_werror_flag" ||
31967          test ! -s conftest.err
31968        } && test -s conftest.$ac_objext; then
31969   ac_cv_type_off_t=yes
31970 else
31971   echo "$as_me: failed program was:" >&5
31972 sed 's/^/| /' conftest.$ac_ext >&5
31973
31974         ac_cv_type_off_t=no
31975 fi
31976
31977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31978 fi
31979 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31980 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31981 if test $ac_cv_type_off_t = yes; then
31982   :
31983 else
31984
31985 cat >>confdefs.h <<_ACEOF
31986 #define off_t long
31987 _ACEOF
31988
31989 fi
31990
31991 { echo "$as_me:$LINENO: checking for pid_t" >&5
31992 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31993 if test "${ac_cv_type_pid_t+set}" = set; then
31994   echo $ECHO_N "(cached) $ECHO_C" >&6
31995 else
31996   cat >conftest.$ac_ext <<_ACEOF
31997 /* confdefs.h.  */
31998 _ACEOF
31999 cat confdefs.h >>conftest.$ac_ext
32000 cat >>conftest.$ac_ext <<_ACEOF
32001 /* end confdefs.h.  */
32002 $ac_includes_default
32003 typedef pid_t ac__type_new_;
32004 int
32005 main ()
32006 {
32007 if ((ac__type_new_ *) 0)
32008   return 0;
32009 if (sizeof (ac__type_new_))
32010   return 0;
32011   ;
32012   return 0;
32013 }
32014 _ACEOF
32015 rm -f conftest.$ac_objext
32016 if { (ac_try="$ac_compile"
32017 case "(($ac_try" in
32018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019   *) ac_try_echo=$ac_try;;
32020 esac
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022   (eval "$ac_compile") 2>conftest.er1
32023   ac_status=$?
32024   grep -v '^ *+' conftest.er1 >conftest.err
32025   rm -f conftest.er1
32026   cat conftest.err >&5
32027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028   (exit $ac_status); } && {
32029          test -z "$ac_c_werror_flag" ||
32030          test ! -s conftest.err
32031        } && test -s conftest.$ac_objext; then
32032   ac_cv_type_pid_t=yes
32033 else
32034   echo "$as_me: failed program was:" >&5
32035 sed 's/^/| /' conftest.$ac_ext >&5
32036
32037         ac_cv_type_pid_t=no
32038 fi
32039
32040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32041 fi
32042 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32043 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
32044 if test $ac_cv_type_pid_t = yes; then
32045   :
32046 else
32047
32048 cat >>confdefs.h <<_ACEOF
32049 #define pid_t int
32050 _ACEOF
32051
32052 fi
32053
32054 { echo "$as_me:$LINENO: checking for ssize_t" >&5
32055 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
32056 if test "${ac_cv_type_ssize_t+set}" = set; then
32057   echo $ECHO_N "(cached) $ECHO_C" >&6
32058 else
32059   cat >conftest.$ac_ext <<_ACEOF
32060 /* confdefs.h.  */
32061 _ACEOF
32062 cat confdefs.h >>conftest.$ac_ext
32063 cat >>conftest.$ac_ext <<_ACEOF
32064 /* end confdefs.h.  */
32065 $ac_includes_default
32066 typedef ssize_t ac__type_new_;
32067 int
32068 main ()
32069 {
32070 if ((ac__type_new_ *) 0)
32071   return 0;
32072 if (sizeof (ac__type_new_))
32073   return 0;
32074   ;
32075   return 0;
32076 }
32077 _ACEOF
32078 rm -f conftest.$ac_objext
32079 if { (ac_try="$ac_compile"
32080 case "(($ac_try" in
32081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32082   *) ac_try_echo=$ac_try;;
32083 esac
32084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32085   (eval "$ac_compile") 2>conftest.er1
32086   ac_status=$?
32087   grep -v '^ *+' conftest.er1 >conftest.err
32088   rm -f conftest.er1
32089   cat conftest.err >&5
32090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32091   (exit $ac_status); } && {
32092          test -z "$ac_c_werror_flag" ||
32093          test ! -s conftest.err
32094        } && test -s conftest.$ac_objext; then
32095   ac_cv_type_ssize_t=yes
32096 else
32097   echo "$as_me: failed program was:" >&5
32098 sed 's/^/| /' conftest.$ac_ext >&5
32099
32100         ac_cv_type_ssize_t=no
32101 fi
32102
32103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32104 fi
32105 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32106 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
32107 if test $ac_cv_type_ssize_t = yes; then
32108   :
32109 else
32110
32111 cat >>confdefs.h <<_ACEOF
32112 #define ssize_t signed int
32113 _ACEOF
32114
32115 fi
32116
32117 { echo "$as_me:$LINENO: checking for caddr_t" >&5
32118 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
32119 if test "${ac_cv_type_caddr_t+set}" = set; then
32120   echo $ECHO_N "(cached) $ECHO_C" >&6
32121 else
32122   cat >conftest.$ac_ext <<_ACEOF
32123 /* confdefs.h.  */
32124 _ACEOF
32125 cat confdefs.h >>conftest.$ac_ext
32126 cat >>conftest.$ac_ext <<_ACEOF
32127 /* end confdefs.h.  */
32128 $ac_includes_default
32129 typedef caddr_t ac__type_new_;
32130 int
32131 main ()
32132 {
32133 if ((ac__type_new_ *) 0)
32134   return 0;
32135 if (sizeof (ac__type_new_))
32136   return 0;
32137   ;
32138   return 0;
32139 }
32140 _ACEOF
32141 rm -f conftest.$ac_objext
32142 if { (ac_try="$ac_compile"
32143 case "(($ac_try" in
32144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32145   *) ac_try_echo=$ac_try;;
32146 esac
32147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32148   (eval "$ac_compile") 2>conftest.er1
32149   ac_status=$?
32150   grep -v '^ *+' conftest.er1 >conftest.err
32151   rm -f conftest.er1
32152   cat conftest.err >&5
32153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154   (exit $ac_status); } && {
32155          test -z "$ac_c_werror_flag" ||
32156          test ! -s conftest.err
32157        } && test -s conftest.$ac_objext; then
32158   ac_cv_type_caddr_t=yes
32159 else
32160   echo "$as_me: failed program was:" >&5
32161 sed 's/^/| /' conftest.$ac_ext >&5
32162
32163         ac_cv_type_caddr_t=no
32164 fi
32165
32166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32167 fi
32168 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32169 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32170 if test $ac_cv_type_caddr_t = yes; then
32171   :
32172 else
32173
32174 cat >>confdefs.h <<_ACEOF
32175 #define caddr_t char *
32176 _ACEOF
32177
32178 fi
32179
32180 { echo "$as_me:$LINENO: checking for size_t" >&5
32181 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32182 if test "${ac_cv_type_size_t+set}" = set; then
32183   echo $ECHO_N "(cached) $ECHO_C" >&6
32184 else
32185   cat >conftest.$ac_ext <<_ACEOF
32186 /* confdefs.h.  */
32187 _ACEOF
32188 cat confdefs.h >>conftest.$ac_ext
32189 cat >>conftest.$ac_ext <<_ACEOF
32190 /* end confdefs.h.  */
32191 $ac_includes_default
32192 typedef size_t ac__type_new_;
32193 int
32194 main ()
32195 {
32196 if ((ac__type_new_ *) 0)
32197   return 0;
32198 if (sizeof (ac__type_new_))
32199   return 0;
32200   ;
32201   return 0;
32202 }
32203 _ACEOF
32204 rm -f conftest.$ac_objext
32205 if { (ac_try="$ac_compile"
32206 case "(($ac_try" in
32207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208   *) ac_try_echo=$ac_try;;
32209 esac
32210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32211   (eval "$ac_compile") 2>conftest.er1
32212   ac_status=$?
32213   grep -v '^ *+' conftest.er1 >conftest.err
32214   rm -f conftest.er1
32215   cat conftest.err >&5
32216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217   (exit $ac_status); } && {
32218          test -z "$ac_c_werror_flag" ||
32219          test ! -s conftest.err
32220        } && test -s conftest.$ac_objext; then
32221   ac_cv_type_size_t=yes
32222 else
32223   echo "$as_me: failed program was:" >&5
32224 sed 's/^/| /' conftest.$ac_ext >&5
32225
32226         ac_cv_type_size_t=no
32227 fi
32228
32229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32230 fi
32231 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32232 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32233 if test $ac_cv_type_size_t = yes; then
32234   :
32235 else
32236
32237 cat >>confdefs.h <<_ACEOF
32238 #define size_t unsigned
32239 _ACEOF
32240
32241 fi
32242
32243
32244 { echo "$as_me:$LINENO: checking for long long" >&5
32245 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32246 if test "${ac_cv_type_long_long+set}" = set; then
32247   echo $ECHO_N "(cached) $ECHO_C" >&6
32248 else
32249   cat >conftest.$ac_ext <<_ACEOF
32250 /* confdefs.h.  */
32251 _ACEOF
32252 cat confdefs.h >>conftest.$ac_ext
32253 cat >>conftest.$ac_ext <<_ACEOF
32254 /* end confdefs.h.  */
32255 $ac_includes_default
32256 typedef long long ac__type_new_;
32257 int
32258 main ()
32259 {
32260 if ((ac__type_new_ *) 0)
32261   return 0;
32262 if (sizeof (ac__type_new_))
32263   return 0;
32264   ;
32265   return 0;
32266 }
32267 _ACEOF
32268 rm -f conftest.$ac_objext
32269 if { (ac_try="$ac_compile"
32270 case "(($ac_try" in
32271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32272   *) ac_try_echo=$ac_try;;
32273 esac
32274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32275   (eval "$ac_compile") 2>conftest.er1
32276   ac_status=$?
32277   grep -v '^ *+' conftest.er1 >conftest.err
32278   rm -f conftest.er1
32279   cat conftest.err >&5
32280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281   (exit $ac_status); } && {
32282          test -z "$ac_c_werror_flag" ||
32283          test ! -s conftest.err
32284        } && test -s conftest.$ac_objext; then
32285   ac_cv_type_long_long=yes
32286 else
32287   echo "$as_me: failed program was:" >&5
32288 sed 's/^/| /' conftest.$ac_ext >&5
32289
32290         ac_cv_type_long_long=no
32291 fi
32292
32293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32294 fi
32295 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32296 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32297 if test $ac_cv_type_long_long = yes; then
32298
32299 cat >>confdefs.h <<_ACEOF
32300 #define HAVE_LONG_LONG 1
32301 _ACEOF
32302
32303
32304 fi
32305
32306 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32307 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32308 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32309   echo $ECHO_N "(cached) $ECHO_C" >&6
32310 else
32311   cat >conftest.$ac_ext <<_ACEOF
32312 /* confdefs.h.  */
32313 _ACEOF
32314 cat confdefs.h >>conftest.$ac_ext
32315 cat >>conftest.$ac_ext <<_ACEOF
32316 /* end confdefs.h.  */
32317 $ac_includes_default
32318 typedef ptrdiff_t ac__type_new_;
32319 int
32320 main ()
32321 {
32322 if ((ac__type_new_ *) 0)
32323   return 0;
32324 if (sizeof (ac__type_new_))
32325   return 0;
32326   ;
32327   return 0;
32328 }
32329 _ACEOF
32330 rm -f conftest.$ac_objext
32331 if { (ac_try="$ac_compile"
32332 case "(($ac_try" in
32333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32334   *) ac_try_echo=$ac_try;;
32335 esac
32336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32337   (eval "$ac_compile") 2>conftest.er1
32338   ac_status=$?
32339   grep -v '^ *+' conftest.er1 >conftest.err
32340   rm -f conftest.er1
32341   cat conftest.err >&5
32342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343   (exit $ac_status); } && {
32344          test -z "$ac_c_werror_flag" ||
32345          test ! -s conftest.err
32346        } && test -s conftest.$ac_objext; then
32347   ac_cv_type_ptrdiff_t=yes
32348 else
32349   echo "$as_me: failed program was:" >&5
32350 sed 's/^/| /' conftest.$ac_ext >&5
32351
32352         ac_cv_type_ptrdiff_t=no
32353 fi
32354
32355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32356 fi
32357 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32358 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32359 if test $ac_cv_type_ptrdiff_t = yes; then
32360
32361 cat >>confdefs.h <<_ACEOF
32362 #define HAVE_PTRDIFF_T 1
32363 _ACEOF
32364
32365
32366 fi
32367
32368
32369
32370 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32371 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32372 if test "${ac_cv_type_socklen_t+set}" = set; then
32373   echo $ECHO_N "(cached) $ECHO_C" >&6
32374 else
32375   cat >conftest.$ac_ext <<_ACEOF
32376 /* confdefs.h.  */
32377 _ACEOF
32378 cat confdefs.h >>conftest.$ac_ext
32379 cat >>conftest.$ac_ext <<_ACEOF
32380 /* end confdefs.h.  */
32381 $ac_includes_default
32382 #ifdef HAVE_SYS_SOCKET_H
32383 #include <sys/socket.h>
32384 #endif
32385
32386 typedef socklen_t ac__type_new_;
32387 int
32388 main ()
32389 {
32390 if ((ac__type_new_ *) 0)
32391   return 0;
32392 if (sizeof (ac__type_new_))
32393   return 0;
32394   ;
32395   return 0;
32396 }
32397 _ACEOF
32398 rm -f conftest.$ac_objext
32399 if { (ac_try="$ac_compile"
32400 case "(($ac_try" in
32401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32402   *) ac_try_echo=$ac_try;;
32403 esac
32404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32405   (eval "$ac_compile") 2>conftest.er1
32406   ac_status=$?
32407   grep -v '^ *+' conftest.er1 >conftest.err
32408   rm -f conftest.er1
32409   cat conftest.err >&5
32410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411   (exit $ac_status); } && {
32412          test -z "$ac_c_werror_flag" ||
32413          test ! -s conftest.err
32414        } && test -s conftest.$ac_objext; then
32415   ac_cv_type_socklen_t=yes
32416 else
32417   echo "$as_me: failed program was:" >&5
32418 sed 's/^/| /' conftest.$ac_ext >&5
32419
32420         ac_cv_type_socklen_t=no
32421 fi
32422
32423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32424 fi
32425 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32426 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32427
32428
32429 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32430 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32431 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32432   echo $ECHO_N "(cached) $ECHO_C" >&6
32433 else
32434
32435         set socklen_t int unsigned "unsigned long" long size_t
32436         test "$ac_cv_type_socklen_t" = yes || shift
32437         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32438         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32439                 cat >conftest.$ac_ext <<_ACEOF
32440 /* confdefs.h.  */
32441 _ACEOF
32442 cat confdefs.h >>conftest.$ac_ext
32443 cat >>conftest.$ac_ext <<_ACEOF
32444 /* end confdefs.h.  */
32445 $ac_includes_default
32446 #ifdef HAVE_SYS_SOCKET_H
32447 #include <sys/socket.h>
32448 #endif
32449 extern int accept(int s, $addrtype *ap, $lentype *lp);
32450
32451 int
32452 main ()
32453 {
32454
32455 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32456
32457   ;
32458   return 0;
32459 }
32460 _ACEOF
32461 rm -f conftest.$ac_objext
32462 if { (ac_try="$ac_compile"
32463 case "(($ac_try" in
32464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32465   *) ac_try_echo=$ac_try;;
32466 esac
32467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32468   (eval "$ac_compile") 2>conftest.er1
32469   ac_status=$?
32470   grep -v '^ *+' conftest.er1 >conftest.err
32471   rm -f conftest.er1
32472   cat conftest.err >&5
32473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474   (exit $ac_status); } && {
32475          test -z "$ac_c_werror_flag" ||
32476          test ! -s conftest.err
32477        } && test -s conftest.$ac_objext; then
32478   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32479 else
32480   echo "$as_me: failed program was:" >&5
32481 sed 's/^/| /' conftest.$ac_ext >&5
32482
32483
32484 fi
32485
32486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32487         done ; done
32488 fi
32489
32490 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32491 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32492
32493 cat >>confdefs.h <<_ACEOF
32494 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32495 _ACEOF
32496
32497
32498 if test "$ac_cv_type_socklen_t" != yes; then
32499
32500 cat >>confdefs.h <<_ACEOF
32501 #define socklen_t $ol_cv_type_ber_socklen_t
32502 _ACEOF
32503
32504 fi
32505
32506
32507 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32508 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32509 if test "${ac_cv_type_signal+set}" = set; then
32510   echo $ECHO_N "(cached) $ECHO_C" >&6
32511 else
32512   cat >conftest.$ac_ext <<_ACEOF
32513 /* confdefs.h.  */
32514 _ACEOF
32515 cat confdefs.h >>conftest.$ac_ext
32516 cat >>conftest.$ac_ext <<_ACEOF
32517 /* end confdefs.h.  */
32518 #include <sys/types.h>
32519 #include <signal.h>
32520
32521 int
32522 main ()
32523 {
32524 return *(signal (0, 0)) (0) == 1;
32525   ;
32526   return 0;
32527 }
32528 _ACEOF
32529 rm -f conftest.$ac_objext
32530 if { (ac_try="$ac_compile"
32531 case "(($ac_try" in
32532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32533   *) ac_try_echo=$ac_try;;
32534 esac
32535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32536   (eval "$ac_compile") 2>conftest.er1
32537   ac_status=$?
32538   grep -v '^ *+' conftest.er1 >conftest.err
32539   rm -f conftest.er1
32540   cat conftest.err >&5
32541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32542   (exit $ac_status); } && {
32543          test -z "$ac_c_werror_flag" ||
32544          test ! -s conftest.err
32545        } && test -s conftest.$ac_objext; then
32546   ac_cv_type_signal=int
32547 else
32548   echo "$as_me: failed program was:" >&5
32549 sed 's/^/| /' conftest.$ac_ext >&5
32550
32551         ac_cv_type_signal=void
32552 fi
32553
32554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32555 fi
32556 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32557 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32558
32559 cat >>confdefs.h <<_ACEOF
32560 #define RETSIGTYPE $ac_cv_type_signal
32561 _ACEOF
32562
32563
32564
32565 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32566 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32567 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32568   echo $ECHO_N "(cached) $ECHO_C" >&6
32569 else
32570   cat >conftest.$ac_ext <<_ACEOF
32571 /* confdefs.h.  */
32572 _ACEOF
32573 cat confdefs.h >>conftest.$ac_ext
32574 cat >>conftest.$ac_ext <<_ACEOF
32575 /* end confdefs.h.  */
32576 $ac_includes_default
32577 #include <signal.h>
32578
32579
32580 typedef sig_atomic_t ac__type_new_;
32581 int
32582 main ()
32583 {
32584 if ((ac__type_new_ *) 0)
32585   return 0;
32586 if (sizeof (ac__type_new_))
32587   return 0;
32588   ;
32589   return 0;
32590 }
32591 _ACEOF
32592 rm -f conftest.$ac_objext
32593 if { (ac_try="$ac_compile"
32594 case "(($ac_try" in
32595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596   *) ac_try_echo=$ac_try;;
32597 esac
32598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599   (eval "$ac_compile") 2>conftest.er1
32600   ac_status=$?
32601   grep -v '^ *+' conftest.er1 >conftest.err
32602   rm -f conftest.er1
32603   cat conftest.err >&5
32604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605   (exit $ac_status); } && {
32606          test -z "$ac_c_werror_flag" ||
32607          test ! -s conftest.err
32608        } && test -s conftest.$ac_objext; then
32609   ac_cv_type_sig_atomic_t=yes
32610 else
32611   echo "$as_me: failed program was:" >&5
32612 sed 's/^/| /' conftest.$ac_ext >&5
32613
32614         ac_cv_type_sig_atomic_t=no
32615 fi
32616
32617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32618 fi
32619 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32620 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32621 if test $ac_cv_type_sig_atomic_t = yes; then
32622   :
32623 else
32624
32625 cat >>confdefs.h <<_ACEOF
32626 #define sig_atomic_t int
32627 _ACEOF
32628
32629 fi
32630
32631
32632 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32633 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32634 if test "${ac_cv_type_uid_t+set}" = set; then
32635   echo $ECHO_N "(cached) $ECHO_C" >&6
32636 else
32637   cat >conftest.$ac_ext <<_ACEOF
32638 /* confdefs.h.  */
32639 _ACEOF
32640 cat confdefs.h >>conftest.$ac_ext
32641 cat >>conftest.$ac_ext <<_ACEOF
32642 /* end confdefs.h.  */
32643 #include <sys/types.h>
32644
32645 _ACEOF
32646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32647   $EGREP "uid_t" >/dev/null 2>&1; then
32648   ac_cv_type_uid_t=yes
32649 else
32650   ac_cv_type_uid_t=no
32651 fi
32652 rm -f conftest*
32653
32654 fi
32655 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32656 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32657 if test $ac_cv_type_uid_t = no; then
32658
32659 cat >>confdefs.h <<\_ACEOF
32660 #define uid_t int
32661 _ACEOF
32662
32663
32664 cat >>confdefs.h <<\_ACEOF
32665 #define gid_t int
32666 _ACEOF
32667
32668 fi
32669
32670
32671 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32672 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32673 if test "${ac_cv_header_time+set}" = set; then
32674   echo $ECHO_N "(cached) $ECHO_C" >&6
32675 else
32676   cat >conftest.$ac_ext <<_ACEOF
32677 /* confdefs.h.  */
32678 _ACEOF
32679 cat confdefs.h >>conftest.$ac_ext
32680 cat >>conftest.$ac_ext <<_ACEOF
32681 /* end confdefs.h.  */
32682 #include <sys/types.h>
32683 #include <sys/time.h>
32684 #include <time.h>
32685
32686 int
32687 main ()
32688 {
32689 if ((struct tm *) 0)
32690 return 0;
32691   ;
32692   return 0;
32693 }
32694 _ACEOF
32695 rm -f conftest.$ac_objext
32696 if { (ac_try="$ac_compile"
32697 case "(($ac_try" in
32698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32699   *) ac_try_echo=$ac_try;;
32700 esac
32701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32702   (eval "$ac_compile") 2>conftest.er1
32703   ac_status=$?
32704   grep -v '^ *+' conftest.er1 >conftest.err
32705   rm -f conftest.er1
32706   cat conftest.err >&5
32707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708   (exit $ac_status); } && {
32709          test -z "$ac_c_werror_flag" ||
32710          test ! -s conftest.err
32711        } && test -s conftest.$ac_objext; then
32712   ac_cv_header_time=yes
32713 else
32714   echo "$as_me: failed program was:" >&5
32715 sed 's/^/| /' conftest.$ac_ext >&5
32716
32717         ac_cv_header_time=no
32718 fi
32719
32720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32721 fi
32722 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32723 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32724 if test $ac_cv_header_time = yes; then
32725
32726 cat >>confdefs.h <<\_ACEOF
32727 #define TIME_WITH_SYS_TIME 1
32728 _ACEOF
32729
32730 fi
32731
32732 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32733 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32734 if test "${ac_cv_struct_tm+set}" = set; then
32735   echo $ECHO_N "(cached) $ECHO_C" >&6
32736 else
32737   cat >conftest.$ac_ext <<_ACEOF
32738 /* confdefs.h.  */
32739 _ACEOF
32740 cat confdefs.h >>conftest.$ac_ext
32741 cat >>conftest.$ac_ext <<_ACEOF
32742 /* end confdefs.h.  */
32743 #include <sys/types.h>
32744 #include <time.h>
32745
32746 int
32747 main ()
32748 {
32749 struct tm tm;
32750                                      int *p = &tm.tm_sec;
32751                                      return !p;
32752   ;
32753   return 0;
32754 }
32755 _ACEOF
32756 rm -f conftest.$ac_objext
32757 if { (ac_try="$ac_compile"
32758 case "(($ac_try" in
32759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32760   *) ac_try_echo=$ac_try;;
32761 esac
32762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32763   (eval "$ac_compile") 2>conftest.er1
32764   ac_status=$?
32765   grep -v '^ *+' conftest.er1 >conftest.err
32766   rm -f conftest.er1
32767   cat conftest.err >&5
32768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769   (exit $ac_status); } && {
32770          test -z "$ac_c_werror_flag" ||
32771          test ! -s conftest.err
32772        } && test -s conftest.$ac_objext; then
32773   ac_cv_struct_tm=time.h
32774 else
32775   echo "$as_me: failed program was:" >&5
32776 sed 's/^/| /' conftest.$ac_ext >&5
32777
32778         ac_cv_struct_tm=sys/time.h
32779 fi
32780
32781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32782 fi
32783 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32784 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32785 if test $ac_cv_struct_tm = sys/time.h; then
32786
32787 cat >>confdefs.h <<\_ACEOF
32788 #define TM_IN_SYS_TIME 1
32789 _ACEOF
32790
32791 fi
32792
32793 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32794 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32795 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32796   echo $ECHO_N "(cached) $ECHO_C" >&6
32797 else
32798   cat >conftest.$ac_ext <<_ACEOF
32799 /* confdefs.h.  */
32800 _ACEOF
32801 cat confdefs.h >>conftest.$ac_ext
32802 cat >>conftest.$ac_ext <<_ACEOF
32803 /* end confdefs.h.  */
32804 $ac_includes_default
32805 int
32806 main ()
32807 {
32808 static struct stat ac_aggr;
32809 if (ac_aggr.st_blksize)
32810 return 0;
32811   ;
32812   return 0;
32813 }
32814 _ACEOF
32815 rm -f conftest.$ac_objext
32816 if { (ac_try="$ac_compile"
32817 case "(($ac_try" in
32818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819   *) ac_try_echo=$ac_try;;
32820 esac
32821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822   (eval "$ac_compile") 2>conftest.er1
32823   ac_status=$?
32824   grep -v '^ *+' conftest.er1 >conftest.err
32825   rm -f conftest.er1
32826   cat conftest.err >&5
32827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828   (exit $ac_status); } && {
32829          test -z "$ac_c_werror_flag" ||
32830          test ! -s conftest.err
32831        } && test -s conftest.$ac_objext; then
32832   ac_cv_member_struct_stat_st_blksize=yes
32833 else
32834   echo "$as_me: failed program was:" >&5
32835 sed 's/^/| /' conftest.$ac_ext >&5
32836
32837         cat >conftest.$ac_ext <<_ACEOF
32838 /* confdefs.h.  */
32839 _ACEOF
32840 cat confdefs.h >>conftest.$ac_ext
32841 cat >>conftest.$ac_ext <<_ACEOF
32842 /* end confdefs.h.  */
32843 $ac_includes_default
32844 int
32845 main ()
32846 {
32847 static struct stat ac_aggr;
32848 if (sizeof ac_aggr.st_blksize)
32849 return 0;
32850   ;
32851   return 0;
32852 }
32853 _ACEOF
32854 rm -f conftest.$ac_objext
32855 if { (ac_try="$ac_compile"
32856 case "(($ac_try" in
32857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858   *) ac_try_echo=$ac_try;;
32859 esac
32860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861   (eval "$ac_compile") 2>conftest.er1
32862   ac_status=$?
32863   grep -v '^ *+' conftest.er1 >conftest.err
32864   rm -f conftest.er1
32865   cat conftest.err >&5
32866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867   (exit $ac_status); } && {
32868          test -z "$ac_c_werror_flag" ||
32869          test ! -s conftest.err
32870        } && test -s conftest.$ac_objext; then
32871   ac_cv_member_struct_stat_st_blksize=yes
32872 else
32873   echo "$as_me: failed program was:" >&5
32874 sed 's/^/| /' conftest.$ac_ext >&5
32875
32876         ac_cv_member_struct_stat_st_blksize=no
32877 fi
32878
32879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32880 fi
32881
32882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32883 fi
32884 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32885 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32886 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32887
32888 cat >>confdefs.h <<_ACEOF
32889 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32890 _ACEOF
32891
32892
32893 fi
32894
32895 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32896 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32897 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32898   echo $ECHO_N "(cached) $ECHO_C" >&6
32899 else
32900   cat >conftest.$ac_ext <<_ACEOF
32901 /* confdefs.h.  */
32902 _ACEOF
32903 cat confdefs.h >>conftest.$ac_ext
32904 cat >>conftest.$ac_ext <<_ACEOF
32905 /* end confdefs.h.  */
32906 $ac_includes_default
32907 #include <pwd.h>
32908
32909 int
32910 main ()
32911 {
32912 static struct passwd ac_aggr;
32913 if (ac_aggr.pw_gecos)
32914 return 0;
32915   ;
32916   return 0;
32917 }
32918 _ACEOF
32919 rm -f conftest.$ac_objext
32920 if { (ac_try="$ac_compile"
32921 case "(($ac_try" in
32922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923   *) ac_try_echo=$ac_try;;
32924 esac
32925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926   (eval "$ac_compile") 2>conftest.er1
32927   ac_status=$?
32928   grep -v '^ *+' conftest.er1 >conftest.err
32929   rm -f conftest.er1
32930   cat conftest.err >&5
32931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932   (exit $ac_status); } && {
32933          test -z "$ac_c_werror_flag" ||
32934          test ! -s conftest.err
32935        } && test -s conftest.$ac_objext; then
32936   ac_cv_member_struct_passwd_pw_gecos=yes
32937 else
32938   echo "$as_me: failed program was:" >&5
32939 sed 's/^/| /' conftest.$ac_ext >&5
32940
32941         cat >conftest.$ac_ext <<_ACEOF
32942 /* confdefs.h.  */
32943 _ACEOF
32944 cat confdefs.h >>conftest.$ac_ext
32945 cat >>conftest.$ac_ext <<_ACEOF
32946 /* end confdefs.h.  */
32947 $ac_includes_default
32948 #include <pwd.h>
32949
32950 int
32951 main ()
32952 {
32953 static struct passwd ac_aggr;
32954 if (sizeof ac_aggr.pw_gecos)
32955 return 0;
32956   ;
32957   return 0;
32958 }
32959 _ACEOF
32960 rm -f conftest.$ac_objext
32961 if { (ac_try="$ac_compile"
32962 case "(($ac_try" in
32963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32964   *) ac_try_echo=$ac_try;;
32965 esac
32966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32967   (eval "$ac_compile") 2>conftest.er1
32968   ac_status=$?
32969   grep -v '^ *+' conftest.er1 >conftest.err
32970   rm -f conftest.er1
32971   cat conftest.err >&5
32972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973   (exit $ac_status); } && {
32974          test -z "$ac_c_werror_flag" ||
32975          test ! -s conftest.err
32976        } && test -s conftest.$ac_objext; then
32977   ac_cv_member_struct_passwd_pw_gecos=yes
32978 else
32979   echo "$as_me: failed program was:" >&5
32980 sed 's/^/| /' conftest.$ac_ext >&5
32981
32982         ac_cv_member_struct_passwd_pw_gecos=no
32983 fi
32984
32985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32986 fi
32987
32988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32989 fi
32990 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32991 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32992 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32993
32994 cat >>confdefs.h <<_ACEOF
32995 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32996 _ACEOF
32997
32998
32999 fi
33000
33001 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
33002 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
33003 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
33004   echo $ECHO_N "(cached) $ECHO_C" >&6
33005 else
33006   cat >conftest.$ac_ext <<_ACEOF
33007 /* confdefs.h.  */
33008 _ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h.  */
33012 $ac_includes_default
33013 #include <pwd.h>
33014
33015 int
33016 main ()
33017 {
33018 static struct passwd ac_aggr;
33019 if (ac_aggr.pw_passwd)
33020 return 0;
33021   ;
33022   return 0;
33023 }
33024 _ACEOF
33025 rm -f conftest.$ac_objext
33026 if { (ac_try="$ac_compile"
33027 case "(($ac_try" in
33028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33029   *) ac_try_echo=$ac_try;;
33030 esac
33031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33032   (eval "$ac_compile") 2>conftest.er1
33033   ac_status=$?
33034   grep -v '^ *+' conftest.er1 >conftest.err
33035   rm -f conftest.er1
33036   cat conftest.err >&5
33037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038   (exit $ac_status); } && {
33039          test -z "$ac_c_werror_flag" ||
33040          test ! -s conftest.err
33041        } && test -s conftest.$ac_objext; then
33042   ac_cv_member_struct_passwd_pw_passwd=yes
33043 else
33044   echo "$as_me: failed program was:" >&5
33045 sed 's/^/| /' conftest.$ac_ext >&5
33046
33047         cat >conftest.$ac_ext <<_ACEOF
33048 /* confdefs.h.  */
33049 _ACEOF
33050 cat confdefs.h >>conftest.$ac_ext
33051 cat >>conftest.$ac_ext <<_ACEOF
33052 /* end confdefs.h.  */
33053 $ac_includes_default
33054 #include <pwd.h>
33055
33056 int
33057 main ()
33058 {
33059 static struct passwd ac_aggr;
33060 if (sizeof ac_aggr.pw_passwd)
33061 return 0;
33062   ;
33063   return 0;
33064 }
33065 _ACEOF
33066 rm -f conftest.$ac_objext
33067 if { (ac_try="$ac_compile"
33068 case "(($ac_try" in
33069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33070   *) ac_try_echo=$ac_try;;
33071 esac
33072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33073   (eval "$ac_compile") 2>conftest.er1
33074   ac_status=$?
33075   grep -v '^ *+' conftest.er1 >conftest.err
33076   rm -f conftest.er1
33077   cat conftest.err >&5
33078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079   (exit $ac_status); } && {
33080          test -z "$ac_c_werror_flag" ||
33081          test ! -s conftest.err
33082        } && test -s conftest.$ac_objext; then
33083   ac_cv_member_struct_passwd_pw_passwd=yes
33084 else
33085   echo "$as_me: failed program was:" >&5
33086 sed 's/^/| /' conftest.$ac_ext >&5
33087
33088         ac_cv_member_struct_passwd_pw_passwd=no
33089 fi
33090
33091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33092 fi
33093
33094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33095 fi
33096 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33097 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
33098 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33099
33100 cat >>confdefs.h <<_ACEOF
33101 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33102 _ACEOF
33103
33104
33105 fi
33106
33107
33108 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33109 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
33110 if test "${ol_cv_c_upper_lower+set}" = set; then
33111   echo $ECHO_N "(cached) $ECHO_C" >&6
33112 else
33113
33114         if test "$cross_compiling" = yes; then
33115   ol_cv_c_upper_lower=safe
33116 else
33117   cat >conftest.$ac_ext <<_ACEOF
33118 /* confdefs.h.  */
33119 _ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h.  */
33123
33124 #include <ctype.h>
33125 main()
33126 {
33127         if ('C' == toupper('C'))
33128                 exit(0);
33129         else
33130                 exit(1);
33131 }
33132 _ACEOF
33133 rm -f conftest$ac_exeext
33134 if { (ac_try="$ac_link"
33135 case "(($ac_try" in
33136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33137   *) ac_try_echo=$ac_try;;
33138 esac
33139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33140   (eval "$ac_link") 2>&5
33141   ac_status=$?
33142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33144   { (case "(($ac_try" in
33145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146   *) ac_try_echo=$ac_try;;
33147 esac
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149   (eval "$ac_try") 2>&5
33150   ac_status=$?
33151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152   (exit $ac_status); }; }; then
33153   ol_cv_c_upper_lower=no
33154 else
33155   echo "$as_me: program exited with status $ac_status" >&5
33156 echo "$as_me: failed program was:" >&5
33157 sed 's/^/| /' conftest.$ac_ext >&5
33158
33159 ( exit $ac_status )
33160 ol_cv_c_upper_lower=yes
33161 fi
33162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33163 fi
33164
33165
33166 fi
33167 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33168 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33169 if test $ol_cv_c_upper_lower != no ; then
33170
33171 cat >>confdefs.h <<\_ACEOF
33172 #define C_UPPER_LOWER 1
33173 _ACEOF
33174
33175 fi
33176
33177 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33178 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33179 if test "${ac_cv_c_const+set}" = set; then
33180   echo $ECHO_N "(cached) $ECHO_C" >&6
33181 else
33182   cat >conftest.$ac_ext <<_ACEOF
33183 /* confdefs.h.  */
33184 _ACEOF
33185 cat confdefs.h >>conftest.$ac_ext
33186 cat >>conftest.$ac_ext <<_ACEOF
33187 /* end confdefs.h.  */
33188
33189 int
33190 main ()
33191 {
33192 /* FIXME: Include the comments suggested by Paul. */
33193 #ifndef __cplusplus
33194   /* Ultrix mips cc rejects this.  */
33195   typedef int charset[2];
33196   const charset cs;
33197   /* SunOS 4.1.1 cc rejects this.  */
33198   char const *const *pcpcc;
33199   char **ppc;
33200   /* NEC SVR4.0.2 mips cc rejects this.  */
33201   struct point {int x, y;};
33202   static struct point const zero = {0,0};
33203   /* AIX XL C 1.02.0.0 rejects this.
33204      It does not let you subtract one const X* pointer from another in
33205      an arm of an if-expression whose if-part is not a constant
33206      expression */
33207   const char *g = "string";
33208   pcpcc = &g + (g ? g-g : 0);
33209   /* HPUX 7.0 cc rejects these. */
33210   ++pcpcc;
33211   ppc = (char**) pcpcc;
33212   pcpcc = (char const *const *) ppc;
33213   { /* SCO 3.2v4 cc rejects this.  */
33214     char *t;
33215     char const *s = 0 ? (char *) 0 : (char const *) 0;
33216
33217     *t++ = 0;
33218     if (s) return 0;
33219   }
33220   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33221     int x[] = {25, 17};
33222     const int *foo = &x[0];
33223     ++foo;
33224   }
33225   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33226     typedef const int *iptr;
33227     iptr p = 0;
33228     ++p;
33229   }
33230   { /* AIX XL C 1.02.0.0 rejects this saying
33231        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33232     struct s { int j; const int *ap[3]; };
33233     struct s *b; b->j = 5;
33234   }
33235   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33236     const int foo = 10;
33237     if (!foo) return 0;
33238   }
33239   return !cs[0] && !zero.x;
33240 #endif
33241
33242   ;
33243   return 0;
33244 }
33245 _ACEOF
33246 rm -f conftest.$ac_objext
33247 if { (ac_try="$ac_compile"
33248 case "(($ac_try" in
33249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33250   *) ac_try_echo=$ac_try;;
33251 esac
33252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33253   (eval "$ac_compile") 2>conftest.er1
33254   ac_status=$?
33255   grep -v '^ *+' conftest.er1 >conftest.err
33256   rm -f conftest.er1
33257   cat conftest.err >&5
33258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33259   (exit $ac_status); } && {
33260          test -z "$ac_c_werror_flag" ||
33261          test ! -s conftest.err
33262        } && test -s conftest.$ac_objext; then
33263   ac_cv_c_const=yes
33264 else
33265   echo "$as_me: failed program was:" >&5
33266 sed 's/^/| /' conftest.$ac_ext >&5
33267
33268         ac_cv_c_const=no
33269 fi
33270
33271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33272 fi
33273 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33274 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33275 if test $ac_cv_c_const = no; then
33276
33277 cat >>confdefs.h <<\_ACEOF
33278 #define const
33279 _ACEOF
33280
33281 fi
33282
33283 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33284 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33285 if test "${ol_cv_c_volatile+set}" = set; then
33286   echo $ECHO_N "(cached) $ECHO_C" >&6
33287 else
33288   cat >conftest.$ac_ext <<_ACEOF
33289 /* confdefs.h.  */
33290 _ACEOF
33291 cat confdefs.h >>conftest.$ac_ext
33292 cat >>conftest.$ac_ext <<_ACEOF
33293 /* end confdefs.h.  */
33294 int x, y, z;
33295 int
33296 main ()
33297 {
33298 volatile int a; int * volatile b = x ? &y : &z;
33299       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33300       *b = 0;
33301   ;
33302   return 0;
33303 }
33304 _ACEOF
33305 rm -f conftest.$ac_objext
33306 if { (ac_try="$ac_compile"
33307 case "(($ac_try" in
33308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33309   *) ac_try_echo=$ac_try;;
33310 esac
33311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33312   (eval "$ac_compile") 2>conftest.er1
33313   ac_status=$?
33314   grep -v '^ *+' conftest.er1 >conftest.err
33315   rm -f conftest.er1
33316   cat conftest.err >&5
33317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318   (exit $ac_status); } && {
33319          test -z "$ac_c_werror_flag" ||
33320          test ! -s conftest.err
33321        } && test -s conftest.$ac_objext; then
33322   ol_cv_c_volatile=yes
33323 else
33324   echo "$as_me: failed program was:" >&5
33325 sed 's/^/| /' conftest.$ac_ext >&5
33326
33327         ol_cv_c_volatile=no
33328 fi
33329
33330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33331 fi
33332 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33333 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33334   if test $ol_cv_c_volatile = yes; then
33335     :
33336   else
33337
33338 cat >>confdefs.h <<\_ACEOF
33339 #define volatile
33340 _ACEOF
33341
33342   fi
33343
33344
33345 if test $cross_compiling = yes ; then
33346         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33347 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33348
33349 cat >>confdefs.h <<\_ACEOF
33350 #define CROSS_COMPILING 1
33351 _ACEOF
33352
33353 else
33354         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33355 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33356 if test "${ac_cv_c_bigendian+set}" = set; then
33357   echo $ECHO_N "(cached) $ECHO_C" >&6
33358 else
33359   # See if sys/param.h defines the BYTE_ORDER macro.
33360 cat >conftest.$ac_ext <<_ACEOF
33361 /* confdefs.h.  */
33362 _ACEOF
33363 cat confdefs.h >>conftest.$ac_ext
33364 cat >>conftest.$ac_ext <<_ACEOF
33365 /* end confdefs.h.  */
33366 #include <sys/types.h>
33367 #include <sys/param.h>
33368
33369 int
33370 main ()
33371 {
33372 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33373         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33374  bogus endian macros
33375 #endif
33376
33377   ;
33378   return 0;
33379 }
33380 _ACEOF
33381 rm -f conftest.$ac_objext
33382 if { (ac_try="$ac_compile"
33383 case "(($ac_try" in
33384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385   *) ac_try_echo=$ac_try;;
33386 esac
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388   (eval "$ac_compile") 2>conftest.er1
33389   ac_status=$?
33390   grep -v '^ *+' conftest.er1 >conftest.err
33391   rm -f conftest.er1
33392   cat conftest.err >&5
33393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394   (exit $ac_status); } && {
33395          test -z "$ac_c_werror_flag" ||
33396          test ! -s conftest.err
33397        } && test -s conftest.$ac_objext; then
33398   # It does; now see whether it defined to BIG_ENDIAN or not.
33399 cat >conftest.$ac_ext <<_ACEOF
33400 /* confdefs.h.  */
33401 _ACEOF
33402 cat confdefs.h >>conftest.$ac_ext
33403 cat >>conftest.$ac_ext <<_ACEOF
33404 /* end confdefs.h.  */
33405 #include <sys/types.h>
33406 #include <sys/param.h>
33407
33408 int
33409 main ()
33410 {
33411 #if BYTE_ORDER != BIG_ENDIAN
33412  not big endian
33413 #endif
33414
33415   ;
33416   return 0;
33417 }
33418 _ACEOF
33419 rm -f conftest.$ac_objext
33420 if { (ac_try="$ac_compile"
33421 case "(($ac_try" in
33422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33423   *) ac_try_echo=$ac_try;;
33424 esac
33425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33426   (eval "$ac_compile") 2>conftest.er1
33427   ac_status=$?
33428   grep -v '^ *+' conftest.er1 >conftest.err
33429   rm -f conftest.er1
33430   cat conftest.err >&5
33431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432   (exit $ac_status); } && {
33433          test -z "$ac_c_werror_flag" ||
33434          test ! -s conftest.err
33435        } && test -s conftest.$ac_objext; then
33436   ac_cv_c_bigendian=yes
33437 else
33438   echo "$as_me: failed program was:" >&5
33439 sed 's/^/| /' conftest.$ac_ext >&5
33440
33441         ac_cv_c_bigendian=no
33442 fi
33443
33444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33445 else
33446   echo "$as_me: failed program was:" >&5
33447 sed 's/^/| /' conftest.$ac_ext >&5
33448
33449         # It does not; compile a test program.
33450 if test "$cross_compiling" = yes; then
33451   # try to guess the endianness by grepping values into an object file
33452   ac_cv_c_bigendian=unknown
33453   cat >conftest.$ac_ext <<_ACEOF
33454 /* confdefs.h.  */
33455 _ACEOF
33456 cat confdefs.h >>conftest.$ac_ext
33457 cat >>conftest.$ac_ext <<_ACEOF
33458 /* end confdefs.h.  */
33459 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33460 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33461 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33462 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33463 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33464 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33465 int
33466 main ()
33467 {
33468  _ascii (); _ebcdic ();
33469   ;
33470   return 0;
33471 }
33472 _ACEOF
33473 rm -f conftest.$ac_objext
33474 if { (ac_try="$ac_compile"
33475 case "(($ac_try" in
33476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33477   *) ac_try_echo=$ac_try;;
33478 esac
33479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33480   (eval "$ac_compile") 2>conftest.er1
33481   ac_status=$?
33482   grep -v '^ *+' conftest.er1 >conftest.err
33483   rm -f conftest.er1
33484   cat conftest.err >&5
33485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486   (exit $ac_status); } && {
33487          test -z "$ac_c_werror_flag" ||
33488          test ! -s conftest.err
33489        } && test -s conftest.$ac_objext; then
33490   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33491   ac_cv_c_bigendian=yes
33492 fi
33493 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33494   if test "$ac_cv_c_bigendian" = unknown; then
33495     ac_cv_c_bigendian=no
33496   else
33497     # finding both strings is unlikely to happen, but who knows?
33498     ac_cv_c_bigendian=unknown
33499   fi
33500 fi
33501 else
33502   echo "$as_me: failed program was:" >&5
33503 sed 's/^/| /' conftest.$ac_ext >&5
33504
33505
33506 fi
33507
33508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33509 else
33510   cat >conftest.$ac_ext <<_ACEOF
33511 /* confdefs.h.  */
33512 _ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h.  */
33516 $ac_includes_default
33517 int
33518 main ()
33519 {
33520
33521   /* Are we little or big endian?  From Harbison&Steele.  */
33522   union
33523   {
33524     long int l;
33525     char c[sizeof (long int)];
33526   } u;
33527   u.l = 1;
33528   return u.c[sizeof (long int) - 1] == 1;
33529
33530   ;
33531   return 0;
33532 }
33533 _ACEOF
33534 rm -f conftest$ac_exeext
33535 if { (ac_try="$ac_link"
33536 case "(($ac_try" in
33537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538   *) ac_try_echo=$ac_try;;
33539 esac
33540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33541   (eval "$ac_link") 2>&5
33542   ac_status=$?
33543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33545   { (case "(($ac_try" in
33546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33547   *) ac_try_echo=$ac_try;;
33548 esac
33549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33550   (eval "$ac_try") 2>&5
33551   ac_status=$?
33552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553   (exit $ac_status); }; }; then
33554   ac_cv_c_bigendian=no
33555 else
33556   echo "$as_me: program exited with status $ac_status" >&5
33557 echo "$as_me: failed program was:" >&5
33558 sed 's/^/| /' conftest.$ac_ext >&5
33559
33560 ( exit $ac_status )
33561 ac_cv_c_bigendian=yes
33562 fi
33563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33564 fi
33565
33566
33567 fi
33568
33569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33570 fi
33571 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33572 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33573 case $ac_cv_c_bigendian in
33574   yes)
33575
33576 cat >>confdefs.h <<\_ACEOF
33577 #define WORDS_BIGENDIAN 1
33578 _ACEOF
33579  ;;
33580   no)
33581      ;;
33582   *)
33583     { { echo "$as_me:$LINENO: error: unknown endianness
33584 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33585 echo "$as_me: error: unknown endianness
33586 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33587    { (exit 1); exit 1; }; } ;;
33588 esac
33589
33590 fi
33591
33592 { echo "$as_me:$LINENO: checking for short" >&5
33593 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33594 if test "${ac_cv_type_short+set}" = set; then
33595   echo $ECHO_N "(cached) $ECHO_C" >&6
33596 else
33597   cat >conftest.$ac_ext <<_ACEOF
33598 /* confdefs.h.  */
33599 _ACEOF
33600 cat confdefs.h >>conftest.$ac_ext
33601 cat >>conftest.$ac_ext <<_ACEOF
33602 /* end confdefs.h.  */
33603 $ac_includes_default
33604 typedef short ac__type_new_;
33605 int
33606 main ()
33607 {
33608 if ((ac__type_new_ *) 0)
33609   return 0;
33610 if (sizeof (ac__type_new_))
33611   return 0;
33612   ;
33613   return 0;
33614 }
33615 _ACEOF
33616 rm -f conftest.$ac_objext
33617 if { (ac_try="$ac_compile"
33618 case "(($ac_try" in
33619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620   *) ac_try_echo=$ac_try;;
33621 esac
33622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623   (eval "$ac_compile") 2>conftest.er1
33624   ac_status=$?
33625   grep -v '^ *+' conftest.er1 >conftest.err
33626   rm -f conftest.er1
33627   cat conftest.err >&5
33628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629   (exit $ac_status); } && {
33630          test -z "$ac_c_werror_flag" ||
33631          test ! -s conftest.err
33632        } && test -s conftest.$ac_objext; then
33633   ac_cv_type_short=yes
33634 else
33635   echo "$as_me: failed program was:" >&5
33636 sed 's/^/| /' conftest.$ac_ext >&5
33637
33638         ac_cv_type_short=no
33639 fi
33640
33641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33642 fi
33643 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33644 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33645
33646 # The cast to long int works around a bug in the HP C Compiler
33647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33649 # This bug is HP SR number 8606223364.
33650 { echo "$as_me:$LINENO: checking size of short" >&5
33651 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33652 if test "${ac_cv_sizeof_short+set}" = set; then
33653   echo $ECHO_N "(cached) $ECHO_C" >&6
33654 else
33655   if test "$cross_compiling" = yes; then
33656   # Depending upon the size, compute the lo and hi bounds.
33657 cat >conftest.$ac_ext <<_ACEOF
33658 /* confdefs.h.  */
33659 _ACEOF
33660 cat confdefs.h >>conftest.$ac_ext
33661 cat >>conftest.$ac_ext <<_ACEOF
33662 /* end confdefs.h.  */
33663 $ac_includes_default
33664    typedef short ac__type_sizeof_;
33665 int
33666 main ()
33667 {
33668 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33669 test_array [0] = 0
33670
33671   ;
33672   return 0;
33673 }
33674 _ACEOF
33675 rm -f conftest.$ac_objext
33676 if { (ac_try="$ac_compile"
33677 case "(($ac_try" in
33678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33679   *) ac_try_echo=$ac_try;;
33680 esac
33681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33682   (eval "$ac_compile") 2>conftest.er1
33683   ac_status=$?
33684   grep -v '^ *+' conftest.er1 >conftest.err
33685   rm -f conftest.er1
33686   cat conftest.err >&5
33687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33688   (exit $ac_status); } && {
33689          test -z "$ac_c_werror_flag" ||
33690          test ! -s conftest.err
33691        } && test -s conftest.$ac_objext; then
33692   ac_lo=0 ac_mid=0
33693   while :; do
33694     cat >conftest.$ac_ext <<_ACEOF
33695 /* confdefs.h.  */
33696 _ACEOF
33697 cat confdefs.h >>conftest.$ac_ext
33698 cat >>conftest.$ac_ext <<_ACEOF
33699 /* end confdefs.h.  */
33700 $ac_includes_default
33701    typedef short ac__type_sizeof_;
33702 int
33703 main ()
33704 {
33705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33706 test_array [0] = 0
33707
33708   ;
33709   return 0;
33710 }
33711 _ACEOF
33712 rm -f conftest.$ac_objext
33713 if { (ac_try="$ac_compile"
33714 case "(($ac_try" in
33715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33716   *) ac_try_echo=$ac_try;;
33717 esac
33718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33719   (eval "$ac_compile") 2>conftest.er1
33720   ac_status=$?
33721   grep -v '^ *+' conftest.er1 >conftest.err
33722   rm -f conftest.er1
33723   cat conftest.err >&5
33724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725   (exit $ac_status); } && {
33726          test -z "$ac_c_werror_flag" ||
33727          test ! -s conftest.err
33728        } && test -s conftest.$ac_objext; then
33729   ac_hi=$ac_mid; break
33730 else
33731   echo "$as_me: failed program was:" >&5
33732 sed 's/^/| /' conftest.$ac_ext >&5
33733
33734         ac_lo=`expr $ac_mid + 1`
33735                         if test $ac_lo -le $ac_mid; then
33736                           ac_lo= ac_hi=
33737                           break
33738                         fi
33739                         ac_mid=`expr 2 '*' $ac_mid + 1`
33740 fi
33741
33742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33743   done
33744 else
33745   echo "$as_me: failed program was:" >&5
33746 sed 's/^/| /' conftest.$ac_ext >&5
33747
33748         cat >conftest.$ac_ext <<_ACEOF
33749 /* confdefs.h.  */
33750 _ACEOF
33751 cat confdefs.h >>conftest.$ac_ext
33752 cat >>conftest.$ac_ext <<_ACEOF
33753 /* end confdefs.h.  */
33754 $ac_includes_default
33755    typedef short ac__type_sizeof_;
33756 int
33757 main ()
33758 {
33759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33760 test_array [0] = 0
33761
33762   ;
33763   return 0;
33764 }
33765 _ACEOF
33766 rm -f conftest.$ac_objext
33767 if { (ac_try="$ac_compile"
33768 case "(($ac_try" in
33769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33770   *) ac_try_echo=$ac_try;;
33771 esac
33772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33773   (eval "$ac_compile") 2>conftest.er1
33774   ac_status=$?
33775   grep -v '^ *+' conftest.er1 >conftest.err
33776   rm -f conftest.er1
33777   cat conftest.err >&5
33778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779   (exit $ac_status); } && {
33780          test -z "$ac_c_werror_flag" ||
33781          test ! -s conftest.err
33782        } && test -s conftest.$ac_objext; then
33783   ac_hi=-1 ac_mid=-1
33784   while :; do
33785     cat >conftest.$ac_ext <<_ACEOF
33786 /* confdefs.h.  */
33787 _ACEOF
33788 cat confdefs.h >>conftest.$ac_ext
33789 cat >>conftest.$ac_ext <<_ACEOF
33790 /* end confdefs.h.  */
33791 $ac_includes_default
33792    typedef short ac__type_sizeof_;
33793 int
33794 main ()
33795 {
33796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33797 test_array [0] = 0
33798
33799   ;
33800   return 0;
33801 }
33802 _ACEOF
33803 rm -f conftest.$ac_objext
33804 if { (ac_try="$ac_compile"
33805 case "(($ac_try" in
33806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33807   *) ac_try_echo=$ac_try;;
33808 esac
33809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33810   (eval "$ac_compile") 2>conftest.er1
33811   ac_status=$?
33812   grep -v '^ *+' conftest.er1 >conftest.err
33813   rm -f conftest.er1
33814   cat conftest.err >&5
33815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816   (exit $ac_status); } && {
33817          test -z "$ac_c_werror_flag" ||
33818          test ! -s conftest.err
33819        } && test -s conftest.$ac_objext; then
33820   ac_lo=$ac_mid; break
33821 else
33822   echo "$as_me: failed program was:" >&5
33823 sed 's/^/| /' conftest.$ac_ext >&5
33824
33825         ac_hi=`expr '(' $ac_mid ')' - 1`
33826                         if test $ac_mid -le $ac_hi; then
33827                           ac_lo= ac_hi=
33828                           break
33829                         fi
33830                         ac_mid=`expr 2 '*' $ac_mid`
33831 fi
33832
33833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33834   done
33835 else
33836   echo "$as_me: failed program was:" >&5
33837 sed 's/^/| /' conftest.$ac_ext >&5
33838
33839         ac_lo= ac_hi=
33840 fi
33841
33842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33843 fi
33844
33845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33846 # Binary search between lo and hi bounds.
33847 while test "x$ac_lo" != "x$ac_hi"; do
33848   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33849   cat >conftest.$ac_ext <<_ACEOF
33850 /* confdefs.h.  */
33851 _ACEOF
33852 cat confdefs.h >>conftest.$ac_ext
33853 cat >>conftest.$ac_ext <<_ACEOF
33854 /* end confdefs.h.  */
33855 $ac_includes_default
33856    typedef short ac__type_sizeof_;
33857 int
33858 main ()
33859 {
33860 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33861 test_array [0] = 0
33862
33863   ;
33864   return 0;
33865 }
33866 _ACEOF
33867 rm -f conftest.$ac_objext
33868 if { (ac_try="$ac_compile"
33869 case "(($ac_try" in
33870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33871   *) ac_try_echo=$ac_try;;
33872 esac
33873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33874   (eval "$ac_compile") 2>conftest.er1
33875   ac_status=$?
33876   grep -v '^ *+' conftest.er1 >conftest.err
33877   rm -f conftest.er1
33878   cat conftest.err >&5
33879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880   (exit $ac_status); } && {
33881          test -z "$ac_c_werror_flag" ||
33882          test ! -s conftest.err
33883        } && test -s conftest.$ac_objext; then
33884   ac_hi=$ac_mid
33885 else
33886   echo "$as_me: failed program was:" >&5
33887 sed 's/^/| /' conftest.$ac_ext >&5
33888
33889         ac_lo=`expr '(' $ac_mid ')' + 1`
33890 fi
33891
33892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33893 done
33894 case $ac_lo in
33895 ?*) ac_cv_sizeof_short=$ac_lo;;
33896 '') if test "$ac_cv_type_short" = yes; then
33897      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33898 See \`config.log' for more details." >&5
33899 echo "$as_me: error: cannot compute sizeof (short)
33900 See \`config.log' for more details." >&2;}
33901    { (exit 77); exit 77; }; }
33902    else
33903      ac_cv_sizeof_short=0
33904    fi ;;
33905 esac
33906 else
33907   cat >conftest.$ac_ext <<_ACEOF
33908 /* confdefs.h.  */
33909 _ACEOF
33910 cat confdefs.h >>conftest.$ac_ext
33911 cat >>conftest.$ac_ext <<_ACEOF
33912 /* end confdefs.h.  */
33913 $ac_includes_default
33914    typedef short ac__type_sizeof_;
33915 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33916 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33917 #include <stdio.h>
33918 #include <stdlib.h>
33919 int
33920 main ()
33921 {
33922
33923   FILE *f = fopen ("conftest.val", "w");
33924   if (! f)
33925     return 1;
33926   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33927     {
33928       long int i = longval ();
33929       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33930         return 1;
33931       fprintf (f, "%ld\n", i);
33932     }
33933   else
33934     {
33935       unsigned long int i = ulongval ();
33936       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33937         return 1;
33938       fprintf (f, "%lu\n", i);
33939     }
33940   return ferror (f) || fclose (f) != 0;
33941
33942   ;
33943   return 0;
33944 }
33945 _ACEOF
33946 rm -f conftest$ac_exeext
33947 if { (ac_try="$ac_link"
33948 case "(($ac_try" in
33949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33950   *) ac_try_echo=$ac_try;;
33951 esac
33952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33953   (eval "$ac_link") 2>&5
33954   ac_status=$?
33955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33957   { (case "(($ac_try" in
33958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33959   *) ac_try_echo=$ac_try;;
33960 esac
33961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33962   (eval "$ac_try") 2>&5
33963   ac_status=$?
33964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965   (exit $ac_status); }; }; then
33966   ac_cv_sizeof_short=`cat conftest.val`
33967 else
33968   echo "$as_me: program exited with status $ac_status" >&5
33969 echo "$as_me: failed program was:" >&5
33970 sed 's/^/| /' conftest.$ac_ext >&5
33971
33972 ( exit $ac_status )
33973 if test "$ac_cv_type_short" = yes; then
33974      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33975 See \`config.log' for more details." >&5
33976 echo "$as_me: error: cannot compute sizeof (short)
33977 See \`config.log' for more details." >&2;}
33978    { (exit 77); exit 77; }; }
33979    else
33980      ac_cv_sizeof_short=0
33981    fi
33982 fi
33983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33984 fi
33985 rm -f conftest.val
33986 fi
33987 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33988 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33989
33990
33991
33992 cat >>confdefs.h <<_ACEOF
33993 #define SIZEOF_SHORT $ac_cv_sizeof_short
33994 _ACEOF
33995
33996
33997 { echo "$as_me:$LINENO: checking for int" >&5
33998 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33999 if test "${ac_cv_type_int+set}" = set; then
34000   echo $ECHO_N "(cached) $ECHO_C" >&6
34001 else
34002   cat >conftest.$ac_ext <<_ACEOF
34003 /* confdefs.h.  */
34004 _ACEOF
34005 cat confdefs.h >>conftest.$ac_ext
34006 cat >>conftest.$ac_ext <<_ACEOF
34007 /* end confdefs.h.  */
34008 $ac_includes_default
34009 typedef int ac__type_new_;
34010 int
34011 main ()
34012 {
34013 if ((ac__type_new_ *) 0)
34014   return 0;
34015 if (sizeof (ac__type_new_))
34016   return 0;
34017   ;
34018   return 0;
34019 }
34020 _ACEOF
34021 rm -f conftest.$ac_objext
34022 if { (ac_try="$ac_compile"
34023 case "(($ac_try" in
34024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34025   *) ac_try_echo=$ac_try;;
34026 esac
34027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34028   (eval "$ac_compile") 2>conftest.er1
34029   ac_status=$?
34030   grep -v '^ *+' conftest.er1 >conftest.err
34031   rm -f conftest.er1
34032   cat conftest.err >&5
34033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034   (exit $ac_status); } && {
34035          test -z "$ac_c_werror_flag" ||
34036          test ! -s conftest.err
34037        } && test -s conftest.$ac_objext; then
34038   ac_cv_type_int=yes
34039 else
34040   echo "$as_me: failed program was:" >&5
34041 sed 's/^/| /' conftest.$ac_ext >&5
34042
34043         ac_cv_type_int=no
34044 fi
34045
34046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34047 fi
34048 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
34049 echo "${ECHO_T}$ac_cv_type_int" >&6; }
34050
34051 # The cast to long int works around a bug in the HP C Compiler
34052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34054 # This bug is HP SR number 8606223364.
34055 { echo "$as_me:$LINENO: checking size of int" >&5
34056 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
34057 if test "${ac_cv_sizeof_int+set}" = set; then
34058   echo $ECHO_N "(cached) $ECHO_C" >&6
34059 else
34060   if test "$cross_compiling" = yes; then
34061   # Depending upon the size, compute the lo and hi bounds.
34062 cat >conftest.$ac_ext <<_ACEOF
34063 /* confdefs.h.  */
34064 _ACEOF
34065 cat confdefs.h >>conftest.$ac_ext
34066 cat >>conftest.$ac_ext <<_ACEOF
34067 /* end confdefs.h.  */
34068 $ac_includes_default
34069    typedef int ac__type_sizeof_;
34070 int
34071 main ()
34072 {
34073 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34074 test_array [0] = 0
34075
34076   ;
34077   return 0;
34078 }
34079 _ACEOF
34080 rm -f conftest.$ac_objext
34081 if { (ac_try="$ac_compile"
34082 case "(($ac_try" in
34083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34084   *) ac_try_echo=$ac_try;;
34085 esac
34086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34087   (eval "$ac_compile") 2>conftest.er1
34088   ac_status=$?
34089   grep -v '^ *+' conftest.er1 >conftest.err
34090   rm -f conftest.er1
34091   cat conftest.err >&5
34092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093   (exit $ac_status); } && {
34094          test -z "$ac_c_werror_flag" ||
34095          test ! -s conftest.err
34096        } && test -s conftest.$ac_objext; then
34097   ac_lo=0 ac_mid=0
34098   while :; do
34099     cat >conftest.$ac_ext <<_ACEOF
34100 /* confdefs.h.  */
34101 _ACEOF
34102 cat confdefs.h >>conftest.$ac_ext
34103 cat >>conftest.$ac_ext <<_ACEOF
34104 /* end confdefs.h.  */
34105 $ac_includes_default
34106    typedef int ac__type_sizeof_;
34107 int
34108 main ()
34109 {
34110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34111 test_array [0] = 0
34112
34113   ;
34114   return 0;
34115 }
34116 _ACEOF
34117 rm -f conftest.$ac_objext
34118 if { (ac_try="$ac_compile"
34119 case "(($ac_try" in
34120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34121   *) ac_try_echo=$ac_try;;
34122 esac
34123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34124   (eval "$ac_compile") 2>conftest.er1
34125   ac_status=$?
34126   grep -v '^ *+' conftest.er1 >conftest.err
34127   rm -f conftest.er1
34128   cat conftest.err >&5
34129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130   (exit $ac_status); } && {
34131          test -z "$ac_c_werror_flag" ||
34132          test ! -s conftest.err
34133        } && test -s conftest.$ac_objext; then
34134   ac_hi=$ac_mid; break
34135 else
34136   echo "$as_me: failed program was:" >&5
34137 sed 's/^/| /' conftest.$ac_ext >&5
34138
34139         ac_lo=`expr $ac_mid + 1`
34140                         if test $ac_lo -le $ac_mid; then
34141                           ac_lo= ac_hi=
34142                           break
34143                         fi
34144                         ac_mid=`expr 2 '*' $ac_mid + 1`
34145 fi
34146
34147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34148   done
34149 else
34150   echo "$as_me: failed program was:" >&5
34151 sed 's/^/| /' conftest.$ac_ext >&5
34152
34153         cat >conftest.$ac_ext <<_ACEOF
34154 /* confdefs.h.  */
34155 _ACEOF
34156 cat confdefs.h >>conftest.$ac_ext
34157 cat >>conftest.$ac_ext <<_ACEOF
34158 /* end confdefs.h.  */
34159 $ac_includes_default
34160    typedef int ac__type_sizeof_;
34161 int
34162 main ()
34163 {
34164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34165 test_array [0] = 0
34166
34167   ;
34168   return 0;
34169 }
34170 _ACEOF
34171 rm -f conftest.$ac_objext
34172 if { (ac_try="$ac_compile"
34173 case "(($ac_try" in
34174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34175   *) ac_try_echo=$ac_try;;
34176 esac
34177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34178   (eval "$ac_compile") 2>conftest.er1
34179   ac_status=$?
34180   grep -v '^ *+' conftest.er1 >conftest.err
34181   rm -f conftest.er1
34182   cat conftest.err >&5
34183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184   (exit $ac_status); } && {
34185          test -z "$ac_c_werror_flag" ||
34186          test ! -s conftest.err
34187        } && test -s conftest.$ac_objext; then
34188   ac_hi=-1 ac_mid=-1
34189   while :; do
34190     cat >conftest.$ac_ext <<_ACEOF
34191 /* confdefs.h.  */
34192 _ACEOF
34193 cat confdefs.h >>conftest.$ac_ext
34194 cat >>conftest.$ac_ext <<_ACEOF
34195 /* end confdefs.h.  */
34196 $ac_includes_default
34197    typedef int ac__type_sizeof_;
34198 int
34199 main ()
34200 {
34201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34202 test_array [0] = 0
34203
34204   ;
34205   return 0;
34206 }
34207 _ACEOF
34208 rm -f conftest.$ac_objext
34209 if { (ac_try="$ac_compile"
34210 case "(($ac_try" in
34211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34212   *) ac_try_echo=$ac_try;;
34213 esac
34214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34215   (eval "$ac_compile") 2>conftest.er1
34216   ac_status=$?
34217   grep -v '^ *+' conftest.er1 >conftest.err
34218   rm -f conftest.er1
34219   cat conftest.err >&5
34220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221   (exit $ac_status); } && {
34222          test -z "$ac_c_werror_flag" ||
34223          test ! -s conftest.err
34224        } && test -s conftest.$ac_objext; then
34225   ac_lo=$ac_mid; break
34226 else
34227   echo "$as_me: failed program was:" >&5
34228 sed 's/^/| /' conftest.$ac_ext >&5
34229
34230         ac_hi=`expr '(' $ac_mid ')' - 1`
34231                         if test $ac_mid -le $ac_hi; then
34232                           ac_lo= ac_hi=
34233                           break
34234                         fi
34235                         ac_mid=`expr 2 '*' $ac_mid`
34236 fi
34237
34238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34239   done
34240 else
34241   echo "$as_me: failed program was:" >&5
34242 sed 's/^/| /' conftest.$ac_ext >&5
34243
34244         ac_lo= ac_hi=
34245 fi
34246
34247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34248 fi
34249
34250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34251 # Binary search between lo and hi bounds.
34252 while test "x$ac_lo" != "x$ac_hi"; do
34253   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34254   cat >conftest.$ac_ext <<_ACEOF
34255 /* confdefs.h.  */
34256 _ACEOF
34257 cat confdefs.h >>conftest.$ac_ext
34258 cat >>conftest.$ac_ext <<_ACEOF
34259 /* end confdefs.h.  */
34260 $ac_includes_default
34261    typedef int ac__type_sizeof_;
34262 int
34263 main ()
34264 {
34265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34266 test_array [0] = 0
34267
34268   ;
34269   return 0;
34270 }
34271 _ACEOF
34272 rm -f conftest.$ac_objext
34273 if { (ac_try="$ac_compile"
34274 case "(($ac_try" in
34275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34276   *) ac_try_echo=$ac_try;;
34277 esac
34278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34279   (eval "$ac_compile") 2>conftest.er1
34280   ac_status=$?
34281   grep -v '^ *+' conftest.er1 >conftest.err
34282   rm -f conftest.er1
34283   cat conftest.err >&5
34284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34285   (exit $ac_status); } && {
34286          test -z "$ac_c_werror_flag" ||
34287          test ! -s conftest.err
34288        } && test -s conftest.$ac_objext; then
34289   ac_hi=$ac_mid
34290 else
34291   echo "$as_me: failed program was:" >&5
34292 sed 's/^/| /' conftest.$ac_ext >&5
34293
34294         ac_lo=`expr '(' $ac_mid ')' + 1`
34295 fi
34296
34297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34298 done
34299 case $ac_lo in
34300 ?*) ac_cv_sizeof_int=$ac_lo;;
34301 '') if test "$ac_cv_type_int" = yes; then
34302      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34303 See \`config.log' for more details." >&5
34304 echo "$as_me: error: cannot compute sizeof (int)
34305 See \`config.log' for more details." >&2;}
34306    { (exit 77); exit 77; }; }
34307    else
34308      ac_cv_sizeof_int=0
34309    fi ;;
34310 esac
34311 else
34312   cat >conftest.$ac_ext <<_ACEOF
34313 /* confdefs.h.  */
34314 _ACEOF
34315 cat confdefs.h >>conftest.$ac_ext
34316 cat >>conftest.$ac_ext <<_ACEOF
34317 /* end confdefs.h.  */
34318 $ac_includes_default
34319    typedef int ac__type_sizeof_;
34320 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34321 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34322 #include <stdio.h>
34323 #include <stdlib.h>
34324 int
34325 main ()
34326 {
34327
34328   FILE *f = fopen ("conftest.val", "w");
34329   if (! f)
34330     return 1;
34331   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34332     {
34333       long int i = longval ();
34334       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34335         return 1;
34336       fprintf (f, "%ld\n", i);
34337     }
34338   else
34339     {
34340       unsigned long int i = ulongval ();
34341       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34342         return 1;
34343       fprintf (f, "%lu\n", i);
34344     }
34345   return ferror (f) || fclose (f) != 0;
34346
34347   ;
34348   return 0;
34349 }
34350 _ACEOF
34351 rm -f conftest$ac_exeext
34352 if { (ac_try="$ac_link"
34353 case "(($ac_try" in
34354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34355   *) ac_try_echo=$ac_try;;
34356 esac
34357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34358   (eval "$ac_link") 2>&5
34359   ac_status=$?
34360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34362   { (case "(($ac_try" in
34363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34364   *) ac_try_echo=$ac_try;;
34365 esac
34366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34367   (eval "$ac_try") 2>&5
34368   ac_status=$?
34369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370   (exit $ac_status); }; }; then
34371   ac_cv_sizeof_int=`cat conftest.val`
34372 else
34373   echo "$as_me: program exited with status $ac_status" >&5
34374 echo "$as_me: failed program was:" >&5
34375 sed 's/^/| /' conftest.$ac_ext >&5
34376
34377 ( exit $ac_status )
34378 if test "$ac_cv_type_int" = yes; then
34379      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34380 See \`config.log' for more details." >&5
34381 echo "$as_me: error: cannot compute sizeof (int)
34382 See \`config.log' for more details." >&2;}
34383    { (exit 77); exit 77; }; }
34384    else
34385      ac_cv_sizeof_int=0
34386    fi
34387 fi
34388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34389 fi
34390 rm -f conftest.val
34391 fi
34392 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34393 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34394
34395
34396
34397 cat >>confdefs.h <<_ACEOF
34398 #define SIZEOF_INT $ac_cv_sizeof_int
34399 _ACEOF
34400
34401
34402 { echo "$as_me:$LINENO: checking for long" >&5
34403 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34404 if test "${ac_cv_type_long+set}" = set; then
34405   echo $ECHO_N "(cached) $ECHO_C" >&6
34406 else
34407   cat >conftest.$ac_ext <<_ACEOF
34408 /* confdefs.h.  */
34409 _ACEOF
34410 cat confdefs.h >>conftest.$ac_ext
34411 cat >>conftest.$ac_ext <<_ACEOF
34412 /* end confdefs.h.  */
34413 $ac_includes_default
34414 typedef long ac__type_new_;
34415 int
34416 main ()
34417 {
34418 if ((ac__type_new_ *) 0)
34419   return 0;
34420 if (sizeof (ac__type_new_))
34421   return 0;
34422   ;
34423   return 0;
34424 }
34425 _ACEOF
34426 rm -f conftest.$ac_objext
34427 if { (ac_try="$ac_compile"
34428 case "(($ac_try" in
34429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34430   *) ac_try_echo=$ac_try;;
34431 esac
34432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34433   (eval "$ac_compile") 2>conftest.er1
34434   ac_status=$?
34435   grep -v '^ *+' conftest.er1 >conftest.err
34436   rm -f conftest.er1
34437   cat conftest.err >&5
34438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439   (exit $ac_status); } && {
34440          test -z "$ac_c_werror_flag" ||
34441          test ! -s conftest.err
34442        } && test -s conftest.$ac_objext; then
34443   ac_cv_type_long=yes
34444 else
34445   echo "$as_me: failed program was:" >&5
34446 sed 's/^/| /' conftest.$ac_ext >&5
34447
34448         ac_cv_type_long=no
34449 fi
34450
34451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34452 fi
34453 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34454 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34455
34456 # The cast to long int works around a bug in the HP C Compiler
34457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34459 # This bug is HP SR number 8606223364.
34460 { echo "$as_me:$LINENO: checking size of long" >&5
34461 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34462 if test "${ac_cv_sizeof_long+set}" = set; then
34463   echo $ECHO_N "(cached) $ECHO_C" >&6
34464 else
34465   if test "$cross_compiling" = yes; then
34466   # Depending upon the size, compute the lo and hi bounds.
34467 cat >conftest.$ac_ext <<_ACEOF
34468 /* confdefs.h.  */
34469 _ACEOF
34470 cat confdefs.h >>conftest.$ac_ext
34471 cat >>conftest.$ac_ext <<_ACEOF
34472 /* end confdefs.h.  */
34473 $ac_includes_default
34474    typedef long ac__type_sizeof_;
34475 int
34476 main ()
34477 {
34478 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34479 test_array [0] = 0
34480
34481   ;
34482   return 0;
34483 }
34484 _ACEOF
34485 rm -f conftest.$ac_objext
34486 if { (ac_try="$ac_compile"
34487 case "(($ac_try" in
34488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34489   *) ac_try_echo=$ac_try;;
34490 esac
34491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34492   (eval "$ac_compile") 2>conftest.er1
34493   ac_status=$?
34494   grep -v '^ *+' conftest.er1 >conftest.err
34495   rm -f conftest.er1
34496   cat conftest.err >&5
34497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34498   (exit $ac_status); } && {
34499          test -z "$ac_c_werror_flag" ||
34500          test ! -s conftest.err
34501        } && test -s conftest.$ac_objext; then
34502   ac_lo=0 ac_mid=0
34503   while :; do
34504     cat >conftest.$ac_ext <<_ACEOF
34505 /* confdefs.h.  */
34506 _ACEOF
34507 cat confdefs.h >>conftest.$ac_ext
34508 cat >>conftest.$ac_ext <<_ACEOF
34509 /* end confdefs.h.  */
34510 $ac_includes_default
34511    typedef long ac__type_sizeof_;
34512 int
34513 main ()
34514 {
34515 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34516 test_array [0] = 0
34517
34518   ;
34519   return 0;
34520 }
34521 _ACEOF
34522 rm -f conftest.$ac_objext
34523 if { (ac_try="$ac_compile"
34524 case "(($ac_try" in
34525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34526   *) ac_try_echo=$ac_try;;
34527 esac
34528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34529   (eval "$ac_compile") 2>conftest.er1
34530   ac_status=$?
34531   grep -v '^ *+' conftest.er1 >conftest.err
34532   rm -f conftest.er1
34533   cat conftest.err >&5
34534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535   (exit $ac_status); } && {
34536          test -z "$ac_c_werror_flag" ||
34537          test ! -s conftest.err
34538        } && test -s conftest.$ac_objext; then
34539   ac_hi=$ac_mid; break
34540 else
34541   echo "$as_me: failed program was:" >&5
34542 sed 's/^/| /' conftest.$ac_ext >&5
34543
34544         ac_lo=`expr $ac_mid + 1`
34545                         if test $ac_lo -le $ac_mid; then
34546                           ac_lo= ac_hi=
34547                           break
34548                         fi
34549                         ac_mid=`expr 2 '*' $ac_mid + 1`
34550 fi
34551
34552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34553   done
34554 else
34555   echo "$as_me: failed program was:" >&5
34556 sed 's/^/| /' conftest.$ac_ext >&5
34557
34558         cat >conftest.$ac_ext <<_ACEOF
34559 /* confdefs.h.  */
34560 _ACEOF
34561 cat confdefs.h >>conftest.$ac_ext
34562 cat >>conftest.$ac_ext <<_ACEOF
34563 /* end confdefs.h.  */
34564 $ac_includes_default
34565    typedef long ac__type_sizeof_;
34566 int
34567 main ()
34568 {
34569 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34570 test_array [0] = 0
34571
34572   ;
34573   return 0;
34574 }
34575 _ACEOF
34576 rm -f conftest.$ac_objext
34577 if { (ac_try="$ac_compile"
34578 case "(($ac_try" in
34579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34580   *) ac_try_echo=$ac_try;;
34581 esac
34582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34583   (eval "$ac_compile") 2>conftest.er1
34584   ac_status=$?
34585   grep -v '^ *+' conftest.er1 >conftest.err
34586   rm -f conftest.er1
34587   cat conftest.err >&5
34588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34589   (exit $ac_status); } && {
34590          test -z "$ac_c_werror_flag" ||
34591          test ! -s conftest.err
34592        } && test -s conftest.$ac_objext; then
34593   ac_hi=-1 ac_mid=-1
34594   while :; do
34595     cat >conftest.$ac_ext <<_ACEOF
34596 /* confdefs.h.  */
34597 _ACEOF
34598 cat confdefs.h >>conftest.$ac_ext
34599 cat >>conftest.$ac_ext <<_ACEOF
34600 /* end confdefs.h.  */
34601 $ac_includes_default
34602    typedef long ac__type_sizeof_;
34603 int
34604 main ()
34605 {
34606 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34607 test_array [0] = 0
34608
34609   ;
34610   return 0;
34611 }
34612 _ACEOF
34613 rm -f conftest.$ac_objext
34614 if { (ac_try="$ac_compile"
34615 case "(($ac_try" in
34616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34617   *) ac_try_echo=$ac_try;;
34618 esac
34619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34620   (eval "$ac_compile") 2>conftest.er1
34621   ac_status=$?
34622   grep -v '^ *+' conftest.er1 >conftest.err
34623   rm -f conftest.er1
34624   cat conftest.err >&5
34625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34626   (exit $ac_status); } && {
34627          test -z "$ac_c_werror_flag" ||
34628          test ! -s conftest.err
34629        } && test -s conftest.$ac_objext; then
34630   ac_lo=$ac_mid; break
34631 else
34632   echo "$as_me: failed program was:" >&5
34633 sed 's/^/| /' conftest.$ac_ext >&5
34634
34635         ac_hi=`expr '(' $ac_mid ')' - 1`
34636                         if test $ac_mid -le $ac_hi; then
34637                           ac_lo= ac_hi=
34638                           break
34639                         fi
34640                         ac_mid=`expr 2 '*' $ac_mid`
34641 fi
34642
34643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34644   done
34645 else
34646   echo "$as_me: failed program was:" >&5
34647 sed 's/^/| /' conftest.$ac_ext >&5
34648
34649         ac_lo= ac_hi=
34650 fi
34651
34652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34653 fi
34654
34655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34656 # Binary search between lo and hi bounds.
34657 while test "x$ac_lo" != "x$ac_hi"; do
34658   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34659   cat >conftest.$ac_ext <<_ACEOF
34660 /* confdefs.h.  */
34661 _ACEOF
34662 cat confdefs.h >>conftest.$ac_ext
34663 cat >>conftest.$ac_ext <<_ACEOF
34664 /* end confdefs.h.  */
34665 $ac_includes_default
34666    typedef long ac__type_sizeof_;
34667 int
34668 main ()
34669 {
34670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34671 test_array [0] = 0
34672
34673   ;
34674   return 0;
34675 }
34676 _ACEOF
34677 rm -f conftest.$ac_objext
34678 if { (ac_try="$ac_compile"
34679 case "(($ac_try" in
34680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34681   *) ac_try_echo=$ac_try;;
34682 esac
34683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34684   (eval "$ac_compile") 2>conftest.er1
34685   ac_status=$?
34686   grep -v '^ *+' conftest.er1 >conftest.err
34687   rm -f conftest.er1
34688   cat conftest.err >&5
34689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34690   (exit $ac_status); } && {
34691          test -z "$ac_c_werror_flag" ||
34692          test ! -s conftest.err
34693        } && test -s conftest.$ac_objext; then
34694   ac_hi=$ac_mid
34695 else
34696   echo "$as_me: failed program was:" >&5
34697 sed 's/^/| /' conftest.$ac_ext >&5
34698
34699         ac_lo=`expr '(' $ac_mid ')' + 1`
34700 fi
34701
34702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34703 done
34704 case $ac_lo in
34705 ?*) ac_cv_sizeof_long=$ac_lo;;
34706 '') if test "$ac_cv_type_long" = yes; then
34707      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34708 See \`config.log' for more details." >&5
34709 echo "$as_me: error: cannot compute sizeof (long)
34710 See \`config.log' for more details." >&2;}
34711    { (exit 77); exit 77; }; }
34712    else
34713      ac_cv_sizeof_long=0
34714    fi ;;
34715 esac
34716 else
34717   cat >conftest.$ac_ext <<_ACEOF
34718 /* confdefs.h.  */
34719 _ACEOF
34720 cat confdefs.h >>conftest.$ac_ext
34721 cat >>conftest.$ac_ext <<_ACEOF
34722 /* end confdefs.h.  */
34723 $ac_includes_default
34724    typedef long ac__type_sizeof_;
34725 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34726 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34727 #include <stdio.h>
34728 #include <stdlib.h>
34729 int
34730 main ()
34731 {
34732
34733   FILE *f = fopen ("conftest.val", "w");
34734   if (! f)
34735     return 1;
34736   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34737     {
34738       long int i = longval ();
34739       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34740         return 1;
34741       fprintf (f, "%ld\n", i);
34742     }
34743   else
34744     {
34745       unsigned long int i = ulongval ();
34746       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34747         return 1;
34748       fprintf (f, "%lu\n", i);
34749     }
34750   return ferror (f) || fclose (f) != 0;
34751
34752   ;
34753   return 0;
34754 }
34755 _ACEOF
34756 rm -f conftest$ac_exeext
34757 if { (ac_try="$ac_link"
34758 case "(($ac_try" in
34759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34760   *) ac_try_echo=$ac_try;;
34761 esac
34762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34763   (eval "$ac_link") 2>&5
34764   ac_status=$?
34765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34767   { (case "(($ac_try" in
34768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34769   *) ac_try_echo=$ac_try;;
34770 esac
34771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34772   (eval "$ac_try") 2>&5
34773   ac_status=$?
34774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775   (exit $ac_status); }; }; then
34776   ac_cv_sizeof_long=`cat conftest.val`
34777 else
34778   echo "$as_me: program exited with status $ac_status" >&5
34779 echo "$as_me: failed program was:" >&5
34780 sed 's/^/| /' conftest.$ac_ext >&5
34781
34782 ( exit $ac_status )
34783 if test "$ac_cv_type_long" = yes; then
34784      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34785 See \`config.log' for more details." >&5
34786 echo "$as_me: error: cannot compute sizeof (long)
34787 See \`config.log' for more details." >&2;}
34788    { (exit 77); exit 77; }; }
34789    else
34790      ac_cv_sizeof_long=0
34791    fi
34792 fi
34793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34794 fi
34795 rm -f conftest.val
34796 fi
34797 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34798 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34799
34800
34801
34802 cat >>confdefs.h <<_ACEOF
34803 #define SIZEOF_LONG $ac_cv_sizeof_long
34804 _ACEOF
34805
34806
34807 { echo "$as_me:$LINENO: checking for long long" >&5
34808 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34809 if test "${ac_cv_type_long_long+set}" = set; then
34810   echo $ECHO_N "(cached) $ECHO_C" >&6
34811 else
34812   cat >conftest.$ac_ext <<_ACEOF
34813 /* confdefs.h.  */
34814 _ACEOF
34815 cat confdefs.h >>conftest.$ac_ext
34816 cat >>conftest.$ac_ext <<_ACEOF
34817 /* end confdefs.h.  */
34818 $ac_includes_default
34819 typedef long long ac__type_new_;
34820 int
34821 main ()
34822 {
34823 if ((ac__type_new_ *) 0)
34824   return 0;
34825 if (sizeof (ac__type_new_))
34826   return 0;
34827   ;
34828   return 0;
34829 }
34830 _ACEOF
34831 rm -f conftest.$ac_objext
34832 if { (ac_try="$ac_compile"
34833 case "(($ac_try" in
34834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34835   *) ac_try_echo=$ac_try;;
34836 esac
34837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34838   (eval "$ac_compile") 2>conftest.er1
34839   ac_status=$?
34840   grep -v '^ *+' conftest.er1 >conftest.err
34841   rm -f conftest.er1
34842   cat conftest.err >&5
34843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844   (exit $ac_status); } && {
34845          test -z "$ac_c_werror_flag" ||
34846          test ! -s conftest.err
34847        } && test -s conftest.$ac_objext; then
34848   ac_cv_type_long_long=yes
34849 else
34850   echo "$as_me: failed program was:" >&5
34851 sed 's/^/| /' conftest.$ac_ext >&5
34852
34853         ac_cv_type_long_long=no
34854 fi
34855
34856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34857 fi
34858 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34859 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34860
34861 # The cast to long int works around a bug in the HP C Compiler
34862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34864 # This bug is HP SR number 8606223364.
34865 { echo "$as_me:$LINENO: checking size of long long" >&5
34866 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34867 if test "${ac_cv_sizeof_long_long+set}" = set; then
34868   echo $ECHO_N "(cached) $ECHO_C" >&6
34869 else
34870   if test "$cross_compiling" = yes; then
34871   # Depending upon the size, compute the lo and hi bounds.
34872 cat >conftest.$ac_ext <<_ACEOF
34873 /* confdefs.h.  */
34874 _ACEOF
34875 cat confdefs.h >>conftest.$ac_ext
34876 cat >>conftest.$ac_ext <<_ACEOF
34877 /* end confdefs.h.  */
34878 $ac_includes_default
34879    typedef long long ac__type_sizeof_;
34880 int
34881 main ()
34882 {
34883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34884 test_array [0] = 0
34885
34886   ;
34887   return 0;
34888 }
34889 _ACEOF
34890 rm -f conftest.$ac_objext
34891 if { (ac_try="$ac_compile"
34892 case "(($ac_try" in
34893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34894   *) ac_try_echo=$ac_try;;
34895 esac
34896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34897   (eval "$ac_compile") 2>conftest.er1
34898   ac_status=$?
34899   grep -v '^ *+' conftest.er1 >conftest.err
34900   rm -f conftest.er1
34901   cat conftest.err >&5
34902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903   (exit $ac_status); } && {
34904          test -z "$ac_c_werror_flag" ||
34905          test ! -s conftest.err
34906        } && test -s conftest.$ac_objext; then
34907   ac_lo=0 ac_mid=0
34908   while :; do
34909     cat >conftest.$ac_ext <<_ACEOF
34910 /* confdefs.h.  */
34911 _ACEOF
34912 cat confdefs.h >>conftest.$ac_ext
34913 cat >>conftest.$ac_ext <<_ACEOF
34914 /* end confdefs.h.  */
34915 $ac_includes_default
34916    typedef long long ac__type_sizeof_;
34917 int
34918 main ()
34919 {
34920 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34921 test_array [0] = 0
34922
34923   ;
34924   return 0;
34925 }
34926 _ACEOF
34927 rm -f conftest.$ac_objext
34928 if { (ac_try="$ac_compile"
34929 case "(($ac_try" in
34930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34931   *) ac_try_echo=$ac_try;;
34932 esac
34933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34934   (eval "$ac_compile") 2>conftest.er1
34935   ac_status=$?
34936   grep -v '^ *+' conftest.er1 >conftest.err
34937   rm -f conftest.er1
34938   cat conftest.err >&5
34939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940   (exit $ac_status); } && {
34941          test -z "$ac_c_werror_flag" ||
34942          test ! -s conftest.err
34943        } && test -s conftest.$ac_objext; then
34944   ac_hi=$ac_mid; break
34945 else
34946   echo "$as_me: failed program was:" >&5
34947 sed 's/^/| /' conftest.$ac_ext >&5
34948
34949         ac_lo=`expr $ac_mid + 1`
34950                         if test $ac_lo -le $ac_mid; then
34951                           ac_lo= ac_hi=
34952                           break
34953                         fi
34954                         ac_mid=`expr 2 '*' $ac_mid + 1`
34955 fi
34956
34957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34958   done
34959 else
34960   echo "$as_me: failed program was:" >&5
34961 sed 's/^/| /' conftest.$ac_ext >&5
34962
34963         cat >conftest.$ac_ext <<_ACEOF
34964 /* confdefs.h.  */
34965 _ACEOF
34966 cat confdefs.h >>conftest.$ac_ext
34967 cat >>conftest.$ac_ext <<_ACEOF
34968 /* end confdefs.h.  */
34969 $ac_includes_default
34970    typedef long long ac__type_sizeof_;
34971 int
34972 main ()
34973 {
34974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34975 test_array [0] = 0
34976
34977   ;
34978   return 0;
34979 }
34980 _ACEOF
34981 rm -f conftest.$ac_objext
34982 if { (ac_try="$ac_compile"
34983 case "(($ac_try" in
34984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34985   *) ac_try_echo=$ac_try;;
34986 esac
34987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34988   (eval "$ac_compile") 2>conftest.er1
34989   ac_status=$?
34990   grep -v '^ *+' conftest.er1 >conftest.err
34991   rm -f conftest.er1
34992   cat conftest.err >&5
34993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994   (exit $ac_status); } && {
34995          test -z "$ac_c_werror_flag" ||
34996          test ! -s conftest.err
34997        } && test -s conftest.$ac_objext; then
34998   ac_hi=-1 ac_mid=-1
34999   while :; do
35000     cat >conftest.$ac_ext <<_ACEOF
35001 /* confdefs.h.  */
35002 _ACEOF
35003 cat confdefs.h >>conftest.$ac_ext
35004 cat >>conftest.$ac_ext <<_ACEOF
35005 /* end confdefs.h.  */
35006 $ac_includes_default
35007    typedef long long ac__type_sizeof_;
35008 int
35009 main ()
35010 {
35011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35012 test_array [0] = 0
35013
35014   ;
35015   return 0;
35016 }
35017 _ACEOF
35018 rm -f conftest.$ac_objext
35019 if { (ac_try="$ac_compile"
35020 case "(($ac_try" in
35021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35022   *) ac_try_echo=$ac_try;;
35023 esac
35024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35025   (eval "$ac_compile") 2>conftest.er1
35026   ac_status=$?
35027   grep -v '^ *+' conftest.er1 >conftest.err
35028   rm -f conftest.er1
35029   cat conftest.err >&5
35030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031   (exit $ac_status); } && {
35032          test -z "$ac_c_werror_flag" ||
35033          test ! -s conftest.err
35034        } && test -s conftest.$ac_objext; then
35035   ac_lo=$ac_mid; break
35036 else
35037   echo "$as_me: failed program was:" >&5
35038 sed 's/^/| /' conftest.$ac_ext >&5
35039
35040         ac_hi=`expr '(' $ac_mid ')' - 1`
35041                         if test $ac_mid -le $ac_hi; then
35042                           ac_lo= ac_hi=
35043                           break
35044                         fi
35045                         ac_mid=`expr 2 '*' $ac_mid`
35046 fi
35047
35048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35049   done
35050 else
35051   echo "$as_me: failed program was:" >&5
35052 sed 's/^/| /' conftest.$ac_ext >&5
35053
35054         ac_lo= ac_hi=
35055 fi
35056
35057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35058 fi
35059
35060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35061 # Binary search between lo and hi bounds.
35062 while test "x$ac_lo" != "x$ac_hi"; do
35063   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35064   cat >conftest.$ac_ext <<_ACEOF
35065 /* confdefs.h.  */
35066 _ACEOF
35067 cat confdefs.h >>conftest.$ac_ext
35068 cat >>conftest.$ac_ext <<_ACEOF
35069 /* end confdefs.h.  */
35070 $ac_includes_default
35071    typedef long long ac__type_sizeof_;
35072 int
35073 main ()
35074 {
35075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35076 test_array [0] = 0
35077
35078   ;
35079   return 0;
35080 }
35081 _ACEOF
35082 rm -f conftest.$ac_objext
35083 if { (ac_try="$ac_compile"
35084 case "(($ac_try" in
35085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35086   *) ac_try_echo=$ac_try;;
35087 esac
35088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35089   (eval "$ac_compile") 2>conftest.er1
35090   ac_status=$?
35091   grep -v '^ *+' conftest.er1 >conftest.err
35092   rm -f conftest.er1
35093   cat conftest.err >&5
35094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095   (exit $ac_status); } && {
35096          test -z "$ac_c_werror_flag" ||
35097          test ! -s conftest.err
35098        } && test -s conftest.$ac_objext; then
35099   ac_hi=$ac_mid
35100 else
35101   echo "$as_me: failed program was:" >&5
35102 sed 's/^/| /' conftest.$ac_ext >&5
35103
35104         ac_lo=`expr '(' $ac_mid ')' + 1`
35105 fi
35106
35107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35108 done
35109 case $ac_lo in
35110 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35111 '') if test "$ac_cv_type_long_long" = yes; then
35112      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35113 See \`config.log' for more details." >&5
35114 echo "$as_me: error: cannot compute sizeof (long long)
35115 See \`config.log' for more details." >&2;}
35116    { (exit 77); exit 77; }; }
35117    else
35118      ac_cv_sizeof_long_long=0
35119    fi ;;
35120 esac
35121 else
35122   cat >conftest.$ac_ext <<_ACEOF
35123 /* confdefs.h.  */
35124 _ACEOF
35125 cat confdefs.h >>conftest.$ac_ext
35126 cat >>conftest.$ac_ext <<_ACEOF
35127 /* end confdefs.h.  */
35128 $ac_includes_default
35129    typedef long long ac__type_sizeof_;
35130 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35131 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35132 #include <stdio.h>
35133 #include <stdlib.h>
35134 int
35135 main ()
35136 {
35137
35138   FILE *f = fopen ("conftest.val", "w");
35139   if (! f)
35140     return 1;
35141   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35142     {
35143       long int i = longval ();
35144       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35145         return 1;
35146       fprintf (f, "%ld\n", i);
35147     }
35148   else
35149     {
35150       unsigned long int i = ulongval ();
35151       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35152         return 1;
35153       fprintf (f, "%lu\n", i);
35154     }
35155   return ferror (f) || fclose (f) != 0;
35156
35157   ;
35158   return 0;
35159 }
35160 _ACEOF
35161 rm -f conftest$ac_exeext
35162 if { (ac_try="$ac_link"
35163 case "(($ac_try" in
35164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35165   *) ac_try_echo=$ac_try;;
35166 esac
35167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35168   (eval "$ac_link") 2>&5
35169   ac_status=$?
35170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35172   { (case "(($ac_try" in
35173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35174   *) ac_try_echo=$ac_try;;
35175 esac
35176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35177   (eval "$ac_try") 2>&5
35178   ac_status=$?
35179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180   (exit $ac_status); }; }; then
35181   ac_cv_sizeof_long_long=`cat conftest.val`
35182 else
35183   echo "$as_me: program exited with status $ac_status" >&5
35184 echo "$as_me: failed program was:" >&5
35185 sed 's/^/| /' conftest.$ac_ext >&5
35186
35187 ( exit $ac_status )
35188 if test "$ac_cv_type_long_long" = yes; then
35189      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35190 See \`config.log' for more details." >&5
35191 echo "$as_me: error: cannot compute sizeof (long long)
35192 See \`config.log' for more details." >&2;}
35193    { (exit 77); exit 77; }; }
35194    else
35195      ac_cv_sizeof_long_long=0
35196    fi
35197 fi
35198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35199 fi
35200 rm -f conftest.val
35201 fi
35202 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35203 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35204
35205
35206
35207 cat >>confdefs.h <<_ACEOF
35208 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35209 _ACEOF
35210
35211
35212 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35213 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35214 if test "${ac_cv_type_wchar_t+set}" = set; then
35215   echo $ECHO_N "(cached) $ECHO_C" >&6
35216 else
35217   cat >conftest.$ac_ext <<_ACEOF
35218 /* confdefs.h.  */
35219 _ACEOF
35220 cat confdefs.h >>conftest.$ac_ext
35221 cat >>conftest.$ac_ext <<_ACEOF
35222 /* end confdefs.h.  */
35223 $ac_includes_default
35224 typedef wchar_t ac__type_new_;
35225 int
35226 main ()
35227 {
35228 if ((ac__type_new_ *) 0)
35229   return 0;
35230 if (sizeof (ac__type_new_))
35231   return 0;
35232   ;
35233   return 0;
35234 }
35235 _ACEOF
35236 rm -f conftest.$ac_objext
35237 if { (ac_try="$ac_compile"
35238 case "(($ac_try" in
35239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35240   *) ac_try_echo=$ac_try;;
35241 esac
35242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35243   (eval "$ac_compile") 2>conftest.er1
35244   ac_status=$?
35245   grep -v '^ *+' conftest.er1 >conftest.err
35246   rm -f conftest.er1
35247   cat conftest.err >&5
35248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249   (exit $ac_status); } && {
35250          test -z "$ac_c_werror_flag" ||
35251          test ! -s conftest.err
35252        } && test -s conftest.$ac_objext; then
35253   ac_cv_type_wchar_t=yes
35254 else
35255   echo "$as_me: failed program was:" >&5
35256 sed 's/^/| /' conftest.$ac_ext >&5
35257
35258         ac_cv_type_wchar_t=no
35259 fi
35260
35261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35262 fi
35263 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35264 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35265
35266 # The cast to long int works around a bug in the HP C Compiler
35267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35269 # This bug is HP SR number 8606223364.
35270 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35271 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35272 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35273   echo $ECHO_N "(cached) $ECHO_C" >&6
35274 else
35275   if test "$cross_compiling" = yes; then
35276   # Depending upon the size, compute the lo and hi bounds.
35277 cat >conftest.$ac_ext <<_ACEOF
35278 /* confdefs.h.  */
35279 _ACEOF
35280 cat confdefs.h >>conftest.$ac_ext
35281 cat >>conftest.$ac_ext <<_ACEOF
35282 /* end confdefs.h.  */
35283 $ac_includes_default
35284    typedef wchar_t ac__type_sizeof_;
35285 int
35286 main ()
35287 {
35288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35289 test_array [0] = 0
35290
35291   ;
35292   return 0;
35293 }
35294 _ACEOF
35295 rm -f conftest.$ac_objext
35296 if { (ac_try="$ac_compile"
35297 case "(($ac_try" in
35298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35299   *) ac_try_echo=$ac_try;;
35300 esac
35301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35302   (eval "$ac_compile") 2>conftest.er1
35303   ac_status=$?
35304   grep -v '^ *+' conftest.er1 >conftest.err
35305   rm -f conftest.er1
35306   cat conftest.err >&5
35307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308   (exit $ac_status); } && {
35309          test -z "$ac_c_werror_flag" ||
35310          test ! -s conftest.err
35311        } && test -s conftest.$ac_objext; then
35312   ac_lo=0 ac_mid=0
35313   while :; do
35314     cat >conftest.$ac_ext <<_ACEOF
35315 /* confdefs.h.  */
35316 _ACEOF
35317 cat confdefs.h >>conftest.$ac_ext
35318 cat >>conftest.$ac_ext <<_ACEOF
35319 /* end confdefs.h.  */
35320 $ac_includes_default
35321    typedef wchar_t ac__type_sizeof_;
35322 int
35323 main ()
35324 {
35325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35326 test_array [0] = 0
35327
35328   ;
35329   return 0;
35330 }
35331 _ACEOF
35332 rm -f conftest.$ac_objext
35333 if { (ac_try="$ac_compile"
35334 case "(($ac_try" in
35335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35336   *) ac_try_echo=$ac_try;;
35337 esac
35338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35339   (eval "$ac_compile") 2>conftest.er1
35340   ac_status=$?
35341   grep -v '^ *+' conftest.er1 >conftest.err
35342   rm -f conftest.er1
35343   cat conftest.err >&5
35344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35345   (exit $ac_status); } && {
35346          test -z "$ac_c_werror_flag" ||
35347          test ! -s conftest.err
35348        } && test -s conftest.$ac_objext; then
35349   ac_hi=$ac_mid; break
35350 else
35351   echo "$as_me: failed program was:" >&5
35352 sed 's/^/| /' conftest.$ac_ext >&5
35353
35354         ac_lo=`expr $ac_mid + 1`
35355                         if test $ac_lo -le $ac_mid; then
35356                           ac_lo= ac_hi=
35357                           break
35358                         fi
35359                         ac_mid=`expr 2 '*' $ac_mid + 1`
35360 fi
35361
35362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35363   done
35364 else
35365   echo "$as_me: failed program was:" >&5
35366 sed 's/^/| /' conftest.$ac_ext >&5
35367
35368         cat >conftest.$ac_ext <<_ACEOF
35369 /* confdefs.h.  */
35370 _ACEOF
35371 cat confdefs.h >>conftest.$ac_ext
35372 cat >>conftest.$ac_ext <<_ACEOF
35373 /* end confdefs.h.  */
35374 $ac_includes_default
35375    typedef wchar_t ac__type_sizeof_;
35376 int
35377 main ()
35378 {
35379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35380 test_array [0] = 0
35381
35382   ;
35383   return 0;
35384 }
35385 _ACEOF
35386 rm -f conftest.$ac_objext
35387 if { (ac_try="$ac_compile"
35388 case "(($ac_try" in
35389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35390   *) ac_try_echo=$ac_try;;
35391 esac
35392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35393   (eval "$ac_compile") 2>conftest.er1
35394   ac_status=$?
35395   grep -v '^ *+' conftest.er1 >conftest.err
35396   rm -f conftest.er1
35397   cat conftest.err >&5
35398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399   (exit $ac_status); } && {
35400          test -z "$ac_c_werror_flag" ||
35401          test ! -s conftest.err
35402        } && test -s conftest.$ac_objext; then
35403   ac_hi=-1 ac_mid=-1
35404   while :; do
35405     cat >conftest.$ac_ext <<_ACEOF
35406 /* confdefs.h.  */
35407 _ACEOF
35408 cat confdefs.h >>conftest.$ac_ext
35409 cat >>conftest.$ac_ext <<_ACEOF
35410 /* end confdefs.h.  */
35411 $ac_includes_default
35412    typedef wchar_t ac__type_sizeof_;
35413 int
35414 main ()
35415 {
35416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35417 test_array [0] = 0
35418
35419   ;
35420   return 0;
35421 }
35422 _ACEOF
35423 rm -f conftest.$ac_objext
35424 if { (ac_try="$ac_compile"
35425 case "(($ac_try" in
35426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35427   *) ac_try_echo=$ac_try;;
35428 esac
35429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35430   (eval "$ac_compile") 2>conftest.er1
35431   ac_status=$?
35432   grep -v '^ *+' conftest.er1 >conftest.err
35433   rm -f conftest.er1
35434   cat conftest.err >&5
35435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436   (exit $ac_status); } && {
35437          test -z "$ac_c_werror_flag" ||
35438          test ! -s conftest.err
35439        } && test -s conftest.$ac_objext; then
35440   ac_lo=$ac_mid; break
35441 else
35442   echo "$as_me: failed program was:" >&5
35443 sed 's/^/| /' conftest.$ac_ext >&5
35444
35445         ac_hi=`expr '(' $ac_mid ')' - 1`
35446                         if test $ac_mid -le $ac_hi; then
35447                           ac_lo= ac_hi=
35448                           break
35449                         fi
35450                         ac_mid=`expr 2 '*' $ac_mid`
35451 fi
35452
35453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35454   done
35455 else
35456   echo "$as_me: failed program was:" >&5
35457 sed 's/^/| /' conftest.$ac_ext >&5
35458
35459         ac_lo= ac_hi=
35460 fi
35461
35462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35463 fi
35464
35465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35466 # Binary search between lo and hi bounds.
35467 while test "x$ac_lo" != "x$ac_hi"; do
35468   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35469   cat >conftest.$ac_ext <<_ACEOF
35470 /* confdefs.h.  */
35471 _ACEOF
35472 cat confdefs.h >>conftest.$ac_ext
35473 cat >>conftest.$ac_ext <<_ACEOF
35474 /* end confdefs.h.  */
35475 $ac_includes_default
35476    typedef wchar_t ac__type_sizeof_;
35477 int
35478 main ()
35479 {
35480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35481 test_array [0] = 0
35482
35483   ;
35484   return 0;
35485 }
35486 _ACEOF
35487 rm -f conftest.$ac_objext
35488 if { (ac_try="$ac_compile"
35489 case "(($ac_try" in
35490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35491   *) ac_try_echo=$ac_try;;
35492 esac
35493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35494   (eval "$ac_compile") 2>conftest.er1
35495   ac_status=$?
35496   grep -v '^ *+' conftest.er1 >conftest.err
35497   rm -f conftest.er1
35498   cat conftest.err >&5
35499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35500   (exit $ac_status); } && {
35501          test -z "$ac_c_werror_flag" ||
35502          test ! -s conftest.err
35503        } && test -s conftest.$ac_objext; then
35504   ac_hi=$ac_mid
35505 else
35506   echo "$as_me: failed program was:" >&5
35507 sed 's/^/| /' conftest.$ac_ext >&5
35508
35509         ac_lo=`expr '(' $ac_mid ')' + 1`
35510 fi
35511
35512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35513 done
35514 case $ac_lo in
35515 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35516 '') if test "$ac_cv_type_wchar_t" = yes; then
35517      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35518 See \`config.log' for more details." >&5
35519 echo "$as_me: error: cannot compute sizeof (wchar_t)
35520 See \`config.log' for more details." >&2;}
35521    { (exit 77); exit 77; }; }
35522    else
35523      ac_cv_sizeof_wchar_t=0
35524    fi ;;
35525 esac
35526 else
35527   cat >conftest.$ac_ext <<_ACEOF
35528 /* confdefs.h.  */
35529 _ACEOF
35530 cat confdefs.h >>conftest.$ac_ext
35531 cat >>conftest.$ac_ext <<_ACEOF
35532 /* end confdefs.h.  */
35533 $ac_includes_default
35534    typedef wchar_t ac__type_sizeof_;
35535 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35536 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35537 #include <stdio.h>
35538 #include <stdlib.h>
35539 int
35540 main ()
35541 {
35542
35543   FILE *f = fopen ("conftest.val", "w");
35544   if (! f)
35545     return 1;
35546   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35547     {
35548       long int i = longval ();
35549       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35550         return 1;
35551       fprintf (f, "%ld\n", i);
35552     }
35553   else
35554     {
35555       unsigned long int i = ulongval ();
35556       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35557         return 1;
35558       fprintf (f, "%lu\n", i);
35559     }
35560   return ferror (f) || fclose (f) != 0;
35561
35562   ;
35563   return 0;
35564 }
35565 _ACEOF
35566 rm -f conftest$ac_exeext
35567 if { (ac_try="$ac_link"
35568 case "(($ac_try" in
35569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35570   *) ac_try_echo=$ac_try;;
35571 esac
35572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35573   (eval "$ac_link") 2>&5
35574   ac_status=$?
35575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35577   { (case "(($ac_try" in
35578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35579   *) ac_try_echo=$ac_try;;
35580 esac
35581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35582   (eval "$ac_try") 2>&5
35583   ac_status=$?
35584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585   (exit $ac_status); }; }; then
35586   ac_cv_sizeof_wchar_t=`cat conftest.val`
35587 else
35588   echo "$as_me: program exited with status $ac_status" >&5
35589 echo "$as_me: failed program was:" >&5
35590 sed 's/^/| /' conftest.$ac_ext >&5
35591
35592 ( exit $ac_status )
35593 if test "$ac_cv_type_wchar_t" = yes; then
35594      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35595 See \`config.log' for more details." >&5
35596 echo "$as_me: error: cannot compute sizeof (wchar_t)
35597 See \`config.log' for more details." >&2;}
35598    { (exit 77); exit 77; }; }
35599    else
35600      ac_cv_sizeof_wchar_t=0
35601    fi
35602 fi
35603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35604 fi
35605 rm -f conftest.val
35606 fi
35607 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35608 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35609
35610
35611
35612 cat >>confdefs.h <<_ACEOF
35613 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35614 _ACEOF
35615
35616
35617
35618 if test "$ac_cv_sizeof_int" -lt 4 ; then
35619         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35620 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35621
35622
35623 cat >>confdefs.h <<\_ACEOF
35624 #define LBER_INT_T long
35625 _ACEOF
35626
35627 else
35628
35629 cat >>confdefs.h <<\_ACEOF
35630 #define LBER_INT_T int
35631 _ACEOF
35632
35633 fi
35634
35635
35636 cat >>confdefs.h <<\_ACEOF
35637 #define LBER_LEN_T long
35638 _ACEOF
35639
35640
35641 cat >>confdefs.h <<\_ACEOF
35642 #define LBER_SOCKET_T int
35643 _ACEOF
35644
35645
35646 cat >>confdefs.h <<\_ACEOF
35647 #define LBER_TAG_T long
35648 _ACEOF
35649
35650
35651 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35652         if test $ac_cv_sizeof_long_long -gt 4 ; then
35653                 ol_with_mp=longlong
35654
35655 cat >>confdefs.h <<\_ACEOF
35656 #define USE_MP_LONG_LONG 1
35657 _ACEOF
35658
35659         elif test $ol_with_mp = longlong ; then
35660                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35661 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35662    { (exit 1); exit 1; }; }
35663         fi
35664 fi
35665 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35666         if test $ac_cv_sizeof_long -gt 4 ; then
35667                 ol_with_mp=long
35668
35669 cat >>confdefs.h <<\_ACEOF
35670 #define USE_MP_LONG 1
35671 _ACEOF
35672
35673         elif test $ol_with_mp = long ; then
35674                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35675 echo "$as_me: error: long unusable for multiple precision" >&2;}
35676    { (exit 1); exit 1; }; }
35677         fi
35678 fi
35679 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35680
35681 for ac_header in openssl/bn.h
35682 do
35683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35685   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35688   echo $ECHO_N "(cached) $ECHO_C" >&6
35689 fi
35690 ac_res=`eval echo '${'$as_ac_Header'}'`
35691                { echo "$as_me:$LINENO: result: $ac_res" >&5
35692 echo "${ECHO_T}$ac_res" >&6; }
35693 else
35694   # Is the header compilable?
35695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35697 cat >conftest.$ac_ext <<_ACEOF
35698 /* confdefs.h.  */
35699 _ACEOF
35700 cat confdefs.h >>conftest.$ac_ext
35701 cat >>conftest.$ac_ext <<_ACEOF
35702 /* end confdefs.h.  */
35703 $ac_includes_default
35704 #include <$ac_header>
35705 _ACEOF
35706 rm -f conftest.$ac_objext
35707 if { (ac_try="$ac_compile"
35708 case "(($ac_try" in
35709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35710   *) ac_try_echo=$ac_try;;
35711 esac
35712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35713   (eval "$ac_compile") 2>conftest.er1
35714   ac_status=$?
35715   grep -v '^ *+' conftest.er1 >conftest.err
35716   rm -f conftest.er1
35717   cat conftest.err >&5
35718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719   (exit $ac_status); } && {
35720          test -z "$ac_c_werror_flag" ||
35721          test ! -s conftest.err
35722        } && test -s conftest.$ac_objext; then
35723   ac_header_compiler=yes
35724 else
35725   echo "$as_me: failed program was:" >&5
35726 sed 's/^/| /' conftest.$ac_ext >&5
35727
35728         ac_header_compiler=no
35729 fi
35730
35731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35733 echo "${ECHO_T}$ac_header_compiler" >&6; }
35734
35735 # Is the header present?
35736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35738 cat >conftest.$ac_ext <<_ACEOF
35739 /* confdefs.h.  */
35740 _ACEOF
35741 cat confdefs.h >>conftest.$ac_ext
35742 cat >>conftest.$ac_ext <<_ACEOF
35743 /* end confdefs.h.  */
35744 #include <$ac_header>
35745 _ACEOF
35746 if { (ac_try="$ac_cpp conftest.$ac_ext"
35747 case "(($ac_try" in
35748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35749   *) ac_try_echo=$ac_try;;
35750 esac
35751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35753   ac_status=$?
35754   grep -v '^ *+' conftest.er1 >conftest.err
35755   rm -f conftest.er1
35756   cat conftest.err >&5
35757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758   (exit $ac_status); } >/dev/null && {
35759          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35760          test ! -s conftest.err
35761        }; then
35762   ac_header_preproc=yes
35763 else
35764   echo "$as_me: failed program was:" >&5
35765 sed 's/^/| /' conftest.$ac_ext >&5
35766
35767   ac_header_preproc=no
35768 fi
35769
35770 rm -f conftest.err conftest.$ac_ext
35771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35772 echo "${ECHO_T}$ac_header_preproc" >&6; }
35773
35774 # So?  What about this header?
35775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35776   yes:no: )
35777     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35781     ac_header_preproc=yes
35782     ;;
35783   no:yes:* )
35784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35786     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35787 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35788     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35790     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35791 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35794     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35796     ( cat <<\_ASBOX
35797 ## --------------------------------------------- ##
35798 ## Report this to <http://www.openldap.org/its/> ##
35799 ## --------------------------------------------- ##
35800 _ASBOX
35801      ) | sed "s/^/$as_me: WARNING:     /" >&2
35802     ;;
35803 esac
35804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35807   echo $ECHO_N "(cached) $ECHO_C" >&6
35808 else
35809   eval "$as_ac_Header=\$ac_header_preproc"
35810 fi
35811 ac_res=`eval echo '${'$as_ac_Header'}'`
35812                { echo "$as_me:$LINENO: result: $ac_res" >&5
35813 echo "${ECHO_T}$ac_res" >&6; }
35814
35815 fi
35816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35817   cat >>confdefs.h <<_ACEOF
35818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35819 _ACEOF
35820
35821 fi
35822
35823 done
35824
35825
35826 for ac_header in openssl/crypto.h
35827 do
35828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35830   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35833   echo $ECHO_N "(cached) $ECHO_C" >&6
35834 fi
35835 ac_res=`eval echo '${'$as_ac_Header'}'`
35836                { echo "$as_me:$LINENO: result: $ac_res" >&5
35837 echo "${ECHO_T}$ac_res" >&6; }
35838 else
35839   # Is the header compilable?
35840 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35842 cat >conftest.$ac_ext <<_ACEOF
35843 /* confdefs.h.  */
35844 _ACEOF
35845 cat confdefs.h >>conftest.$ac_ext
35846 cat >>conftest.$ac_ext <<_ACEOF
35847 /* end confdefs.h.  */
35848 $ac_includes_default
35849 #include <$ac_header>
35850 _ACEOF
35851 rm -f conftest.$ac_objext
35852 if { (ac_try="$ac_compile"
35853 case "(($ac_try" in
35854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35855   *) ac_try_echo=$ac_try;;
35856 esac
35857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35858   (eval "$ac_compile") 2>conftest.er1
35859   ac_status=$?
35860   grep -v '^ *+' conftest.er1 >conftest.err
35861   rm -f conftest.er1
35862   cat conftest.err >&5
35863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864   (exit $ac_status); } && {
35865          test -z "$ac_c_werror_flag" ||
35866          test ! -s conftest.err
35867        } && test -s conftest.$ac_objext; then
35868   ac_header_compiler=yes
35869 else
35870   echo "$as_me: failed program was:" >&5
35871 sed 's/^/| /' conftest.$ac_ext >&5
35872
35873         ac_header_compiler=no
35874 fi
35875
35876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35878 echo "${ECHO_T}$ac_header_compiler" >&6; }
35879
35880 # Is the header present?
35881 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35883 cat >conftest.$ac_ext <<_ACEOF
35884 /* confdefs.h.  */
35885 _ACEOF
35886 cat confdefs.h >>conftest.$ac_ext
35887 cat >>conftest.$ac_ext <<_ACEOF
35888 /* end confdefs.h.  */
35889 #include <$ac_header>
35890 _ACEOF
35891 if { (ac_try="$ac_cpp conftest.$ac_ext"
35892 case "(($ac_try" in
35893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35894   *) ac_try_echo=$ac_try;;
35895 esac
35896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35898   ac_status=$?
35899   grep -v '^ *+' conftest.er1 >conftest.err
35900   rm -f conftest.er1
35901   cat conftest.err >&5
35902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35903   (exit $ac_status); } >/dev/null && {
35904          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35905          test ! -s conftest.err
35906        }; then
35907   ac_header_preproc=yes
35908 else
35909   echo "$as_me: failed program was:" >&5
35910 sed 's/^/| /' conftest.$ac_ext >&5
35911
35912   ac_header_preproc=no
35913 fi
35914
35915 rm -f conftest.err conftest.$ac_ext
35916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35917 echo "${ECHO_T}$ac_header_preproc" >&6; }
35918
35919 # So?  What about this header?
35920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35921   yes:no: )
35922     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35926     ac_header_preproc=yes
35927     ;;
35928   no:yes:* )
35929     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35931     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35932 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35933     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35935     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35936 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35939     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35941     ( cat <<\_ASBOX
35942 ## --------------------------------------------- ##
35943 ## Report this to <http://www.openldap.org/its/> ##
35944 ## --------------------------------------------- ##
35945 _ASBOX
35946      ) | sed "s/^/$as_me: WARNING:     /" >&2
35947     ;;
35948 esac
35949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35952   echo $ECHO_N "(cached) $ECHO_C" >&6
35953 else
35954   eval "$as_ac_Header=\$ac_header_preproc"
35955 fi
35956 ac_res=`eval echo '${'$as_ac_Header'}'`
35957                { echo "$as_me:$LINENO: result: $ac_res" >&5
35958 echo "${ECHO_T}$ac_res" >&6; }
35959
35960 fi
35961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35962   cat >>confdefs.h <<_ACEOF
35963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35964 _ACEOF
35965
35966 fi
35967
35968 done
35969
35970         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35971                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35972                 test "$ol_with_tls" = "found" ; then
35973                 ol_with_mp=bignum
35974
35975 cat >>confdefs.h <<\_ACEOF
35976 #define USE_MP_BIGNUM 1
35977 _ACEOF
35978
35979         elif test $ol_with_mp = bignum ; then
35980                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35981 echo "$as_me: error: bignum not available" >&2;}
35982    { (exit 1); exit 1; }; }
35983         fi
35984 fi
35985 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35986
35987 for ac_header in gmp.h
35988 do
35989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35991   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35994   echo $ECHO_N "(cached) $ECHO_C" >&6
35995 fi
35996 ac_res=`eval echo '${'$as_ac_Header'}'`
35997                { echo "$as_me:$LINENO: result: $ac_res" >&5
35998 echo "${ECHO_T}$ac_res" >&6; }
35999 else
36000   # Is the header compilable?
36001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36003 cat >conftest.$ac_ext <<_ACEOF
36004 /* confdefs.h.  */
36005 _ACEOF
36006 cat confdefs.h >>conftest.$ac_ext
36007 cat >>conftest.$ac_ext <<_ACEOF
36008 /* end confdefs.h.  */
36009 $ac_includes_default
36010 #include <$ac_header>
36011 _ACEOF
36012 rm -f conftest.$ac_objext
36013 if { (ac_try="$ac_compile"
36014 case "(($ac_try" in
36015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36016   *) ac_try_echo=$ac_try;;
36017 esac
36018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36019   (eval "$ac_compile") 2>conftest.er1
36020   ac_status=$?
36021   grep -v '^ *+' conftest.er1 >conftest.err
36022   rm -f conftest.er1
36023   cat conftest.err >&5
36024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36025   (exit $ac_status); } && {
36026          test -z "$ac_c_werror_flag" ||
36027          test ! -s conftest.err
36028        } && test -s conftest.$ac_objext; then
36029   ac_header_compiler=yes
36030 else
36031   echo "$as_me: failed program was:" >&5
36032 sed 's/^/| /' conftest.$ac_ext >&5
36033
36034         ac_header_compiler=no
36035 fi
36036
36037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36039 echo "${ECHO_T}$ac_header_compiler" >&6; }
36040
36041 # Is the header present?
36042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36044 cat >conftest.$ac_ext <<_ACEOF
36045 /* confdefs.h.  */
36046 _ACEOF
36047 cat confdefs.h >>conftest.$ac_ext
36048 cat >>conftest.$ac_ext <<_ACEOF
36049 /* end confdefs.h.  */
36050 #include <$ac_header>
36051 _ACEOF
36052 if { (ac_try="$ac_cpp conftest.$ac_ext"
36053 case "(($ac_try" in
36054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36055   *) ac_try_echo=$ac_try;;
36056 esac
36057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36059   ac_status=$?
36060   grep -v '^ *+' conftest.er1 >conftest.err
36061   rm -f conftest.er1
36062   cat conftest.err >&5
36063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064   (exit $ac_status); } >/dev/null && {
36065          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36066          test ! -s conftest.err
36067        }; then
36068   ac_header_preproc=yes
36069 else
36070   echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36072
36073   ac_header_preproc=no
36074 fi
36075
36076 rm -f conftest.err conftest.$ac_ext
36077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36078 echo "${ECHO_T}$ac_header_preproc" >&6; }
36079
36080 # So?  What about this header?
36081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36082   yes:no: )
36083     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36087     ac_header_preproc=yes
36088     ;;
36089   no:yes:* )
36090     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36092     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36093 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36094     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36096     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36097 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36100     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36102     ( cat <<\_ASBOX
36103 ## --------------------------------------------- ##
36104 ## Report this to <http://www.openldap.org/its/> ##
36105 ## --------------------------------------------- ##
36106 _ASBOX
36107      ) | sed "s/^/$as_me: WARNING:     /" >&2
36108     ;;
36109 esac
36110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36113   echo $ECHO_N "(cached) $ECHO_C" >&6
36114 else
36115   eval "$as_ac_Header=\$ac_header_preproc"
36116 fi
36117 ac_res=`eval echo '${'$as_ac_Header'}'`
36118                { echo "$as_me:$LINENO: result: $ac_res" >&5
36119 echo "${ECHO_T}$ac_res" >&6; }
36120
36121 fi
36122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36123   cat >>confdefs.h <<_ACEOF
36124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36125 _ACEOF
36126
36127 fi
36128
36129 done
36130
36131
36132 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36133 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
36134 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36135   echo $ECHO_N "(cached) $ECHO_C" >&6
36136 else
36137   ac_check_lib_save_LIBS=$LIBS
36138 LIBS="-lgmp  $LIBS"
36139 cat >conftest.$ac_ext <<_ACEOF
36140 /* confdefs.h.  */
36141 _ACEOF
36142 cat confdefs.h >>conftest.$ac_ext
36143 cat >>conftest.$ac_ext <<_ACEOF
36144 /* end confdefs.h.  */
36145
36146 /* Override any GCC internal prototype to avoid an error.
36147    Use char because int might match the return type of a GCC
36148    builtin and then its argument prototype would still apply.  */
36149 #ifdef __cplusplus
36150 extern "C"
36151 #endif
36152 char __gmpz_add_ui ();
36153 int
36154 main ()
36155 {
36156 return __gmpz_add_ui ();
36157   ;
36158   return 0;
36159 }
36160 _ACEOF
36161 rm -f conftest.$ac_objext conftest$ac_exeext
36162 if { (ac_try="$ac_link"
36163 case "(($ac_try" in
36164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36165   *) ac_try_echo=$ac_try;;
36166 esac
36167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36168   (eval "$ac_link") 2>conftest.er1
36169   ac_status=$?
36170   grep -v '^ *+' conftest.er1 >conftest.err
36171   rm -f conftest.er1
36172   cat conftest.err >&5
36173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36174   (exit $ac_status); } && {
36175          test -z "$ac_c_werror_flag" ||
36176          test ! -s conftest.err
36177        } && test -s conftest$ac_exeext &&
36178        $as_test_x conftest$ac_exeext; then
36179   ac_cv_lib_gmp___gmpz_add_ui=yes
36180 else
36181   echo "$as_me: failed program was:" >&5
36182 sed 's/^/| /' conftest.$ac_ext >&5
36183
36184         ac_cv_lib_gmp___gmpz_add_ui=no
36185 fi
36186
36187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36188       conftest$ac_exeext conftest.$ac_ext
36189 LIBS=$ac_check_lib_save_LIBS
36190 fi
36191 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36192 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36193 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36194   cat >>confdefs.h <<_ACEOF
36195 #define HAVE_LIBGMP 1
36196 _ACEOF
36197
36198   LIBS="-lgmp $LIBS"
36199
36200 fi
36201
36202         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36203
36204 cat >>confdefs.h <<\_ACEOF
36205 #define USE_MP_GMP 1
36206 _ACEOF
36207
36208                 ol_with_mp=gmp
36209         elif test $ol_with_mp = gmp ; then
36210                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36211 echo "$as_me: error: gmp not available" >&2;}
36212    { (exit 1); exit 1; }; }
36213         fi
36214 fi
36215 if test $ol_with_mp = auto ; then
36216         ol_with_mp=no
36217 fi
36218
36219 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36220 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36221 if test "${ac_cv_func_memcmp_working+set}" = set; then
36222   echo $ECHO_N "(cached) $ECHO_C" >&6
36223 else
36224   if test "$cross_compiling" = yes; then
36225   ac_cv_func_memcmp_working=no
36226 else
36227   cat >conftest.$ac_ext <<_ACEOF
36228 /* confdefs.h.  */
36229 _ACEOF
36230 cat confdefs.h >>conftest.$ac_ext
36231 cat >>conftest.$ac_ext <<_ACEOF
36232 /* end confdefs.h.  */
36233 $ac_includes_default
36234 int
36235 main ()
36236 {
36237
36238   /* Some versions of memcmp are not 8-bit clean.  */
36239   char c0 = '\100', c1 = '\200', c2 = '\201';
36240   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36241     return 1;
36242
36243   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36244      or more and with at least one buffer not starting on a 4-byte boundary.
36245      William Lewis provided this test program.   */
36246   {
36247     char foo[21];
36248     char bar[21];
36249     int i;
36250     for (i = 0; i < 4; i++)
36251       {
36252         char *a = foo + i;
36253         char *b = bar + i;
36254         strcpy (a, "--------01111111");
36255         strcpy (b, "--------10000000");
36256         if (memcmp (a, b, 16) >= 0)
36257           return 1;
36258       }
36259     return 0;
36260   }
36261
36262   ;
36263   return 0;
36264 }
36265 _ACEOF
36266 rm -f conftest$ac_exeext
36267 if { (ac_try="$ac_link"
36268 case "(($ac_try" in
36269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36270   *) ac_try_echo=$ac_try;;
36271 esac
36272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36273   (eval "$ac_link") 2>&5
36274   ac_status=$?
36275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36277   { (case "(($ac_try" in
36278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36279   *) ac_try_echo=$ac_try;;
36280 esac
36281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36282   (eval "$ac_try") 2>&5
36283   ac_status=$?
36284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36285   (exit $ac_status); }; }; then
36286   ac_cv_func_memcmp_working=yes
36287 else
36288   echo "$as_me: program exited with status $ac_status" >&5
36289 echo "$as_me: failed program was:" >&5
36290 sed 's/^/| /' conftest.$ac_ext >&5
36291
36292 ( exit $ac_status )
36293 ac_cv_func_memcmp_working=no
36294 fi
36295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36296 fi
36297
36298
36299 fi
36300 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36301 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36302 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36303   *" memcmp.$ac_objext "* ) ;;
36304   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36305  ;;
36306 esac
36307
36308
36309
36310 if test $ac_cv_func_memcmp_working = no ; then
36311
36312 cat >>confdefs.h <<\_ACEOF
36313 #define NEED_MEMCMP_REPLACEMENT 1
36314 _ACEOF
36315
36316 fi
36317
36318
36319 for ac_func in strftime
36320 do
36321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36325   echo $ECHO_N "(cached) $ECHO_C" >&6
36326 else
36327   cat >conftest.$ac_ext <<_ACEOF
36328 /* confdefs.h.  */
36329 _ACEOF
36330 cat confdefs.h >>conftest.$ac_ext
36331 cat >>conftest.$ac_ext <<_ACEOF
36332 /* end confdefs.h.  */
36333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36335 #define $ac_func innocuous_$ac_func
36336
36337 /* System header to define __stub macros and hopefully few prototypes,
36338     which can conflict with char $ac_func (); below.
36339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36340     <limits.h> exists even on freestanding compilers.  */
36341
36342 #ifdef __STDC__
36343 # include <limits.h>
36344 #else
36345 # include <assert.h>
36346 #endif
36347
36348 #undef $ac_func
36349
36350 /* Override any GCC internal prototype to avoid an error.
36351    Use char because int might match the return type of a GCC
36352    builtin and then its argument prototype would still apply.  */
36353 #ifdef __cplusplus
36354 extern "C"
36355 #endif
36356 char $ac_func ();
36357 /* The GNU C library defines this for functions which it implements
36358     to always fail with ENOSYS.  Some functions are actually named
36359     something starting with __ and the normal name is an alias.  */
36360 #if defined __stub_$ac_func || defined __stub___$ac_func
36361 choke me
36362 #endif
36363
36364 int
36365 main ()
36366 {
36367 return $ac_func ();
36368   ;
36369   return 0;
36370 }
36371 _ACEOF
36372 rm -f conftest.$ac_objext conftest$ac_exeext
36373 if { (ac_try="$ac_link"
36374 case "(($ac_try" in
36375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36376   *) ac_try_echo=$ac_try;;
36377 esac
36378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36379   (eval "$ac_link") 2>conftest.er1
36380   ac_status=$?
36381   grep -v '^ *+' conftest.er1 >conftest.err
36382   rm -f conftest.er1
36383   cat conftest.err >&5
36384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36385   (exit $ac_status); } && {
36386          test -z "$ac_c_werror_flag" ||
36387          test ! -s conftest.err
36388        } && test -s conftest$ac_exeext &&
36389        $as_test_x conftest$ac_exeext; then
36390   eval "$as_ac_var=yes"
36391 else
36392   echo "$as_me: failed program was:" >&5
36393 sed 's/^/| /' conftest.$ac_ext >&5
36394
36395         eval "$as_ac_var=no"
36396 fi
36397
36398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36399       conftest$ac_exeext conftest.$ac_ext
36400 fi
36401 ac_res=`eval echo '${'$as_ac_var'}'`
36402                { echo "$as_me:$LINENO: result: $ac_res" >&5
36403 echo "${ECHO_T}$ac_res" >&6; }
36404 if test `eval echo '${'$as_ac_var'}'` = yes; then
36405   cat >>confdefs.h <<_ACEOF
36406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36407 _ACEOF
36408
36409 else
36410   # strftime is in -lintl on SCO UNIX.
36411 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36412 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36413 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36414   echo $ECHO_N "(cached) $ECHO_C" >&6
36415 else
36416   ac_check_lib_save_LIBS=$LIBS
36417 LIBS="-lintl  $LIBS"
36418 cat >conftest.$ac_ext <<_ACEOF
36419 /* confdefs.h.  */
36420 _ACEOF
36421 cat confdefs.h >>conftest.$ac_ext
36422 cat >>conftest.$ac_ext <<_ACEOF
36423 /* end confdefs.h.  */
36424
36425 /* Override any GCC internal prototype to avoid an error.
36426    Use char because int might match the return type of a GCC
36427    builtin and then its argument prototype would still apply.  */
36428 #ifdef __cplusplus
36429 extern "C"
36430 #endif
36431 char strftime ();
36432 int
36433 main ()
36434 {
36435 return strftime ();
36436   ;
36437   return 0;
36438 }
36439 _ACEOF
36440 rm -f conftest.$ac_objext conftest$ac_exeext
36441 if { (ac_try="$ac_link"
36442 case "(($ac_try" in
36443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36444   *) ac_try_echo=$ac_try;;
36445 esac
36446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36447   (eval "$ac_link") 2>conftest.er1
36448   ac_status=$?
36449   grep -v '^ *+' conftest.er1 >conftest.err
36450   rm -f conftest.er1
36451   cat conftest.err >&5
36452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453   (exit $ac_status); } && {
36454          test -z "$ac_c_werror_flag" ||
36455          test ! -s conftest.err
36456        } && test -s conftest$ac_exeext &&
36457        $as_test_x conftest$ac_exeext; then
36458   ac_cv_lib_intl_strftime=yes
36459 else
36460   echo "$as_me: failed program was:" >&5
36461 sed 's/^/| /' conftest.$ac_ext >&5
36462
36463         ac_cv_lib_intl_strftime=no
36464 fi
36465
36466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36467       conftest$ac_exeext conftest.$ac_ext
36468 LIBS=$ac_check_lib_save_LIBS
36469 fi
36470 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36471 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36472 if test $ac_cv_lib_intl_strftime = yes; then
36473   cat >>confdefs.h <<\_ACEOF
36474 #define HAVE_STRFTIME 1
36475 _ACEOF
36476
36477 LIBS="-lintl $LIBS"
36478 fi
36479
36480 fi
36481 done
36482
36483
36484 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36485 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36486 if test "${ol_cv_func_inet_aton+set}" = set; then
36487   echo $ECHO_N "(cached) $ECHO_C" >&6
36488 else
36489   cat >conftest.$ac_ext <<_ACEOF
36490 /* confdefs.h.  */
36491 _ACEOF
36492 cat confdefs.h >>conftest.$ac_ext
36493 cat >>conftest.$ac_ext <<_ACEOF
36494 /* end confdefs.h.  */
36495
36496 #ifdef HAVE_SYS_TYPES_H
36497 #       include <sys/types.h>
36498 #endif
36499 #ifdef HAVE_SYS_SOCKET_H
36500 #       include <sys/socket.h>
36501 #       ifdef HAVE_SYS_SELECT_H
36502 #               include <sys/select.h>
36503 #       endif
36504 #       include <netinet/in.h>
36505 #       ifdef HAVE_ARPA_INET_H
36506 #               include <arpa/inet.h>
36507 #       endif
36508 #endif
36509
36510 int
36511 main ()
36512 {
36513 struct in_addr in;
36514 int rc = inet_aton( "255.255.255.255", &in );
36515   ;
36516   return 0;
36517 }
36518 _ACEOF
36519 rm -f conftest.$ac_objext conftest$ac_exeext
36520 if { (ac_try="$ac_link"
36521 case "(($ac_try" in
36522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36523   *) ac_try_echo=$ac_try;;
36524 esac
36525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36526   (eval "$ac_link") 2>conftest.er1
36527   ac_status=$?
36528   grep -v '^ *+' conftest.er1 >conftest.err
36529   rm -f conftest.er1
36530   cat conftest.err >&5
36531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532   (exit $ac_status); } && {
36533          test -z "$ac_c_werror_flag" ||
36534          test ! -s conftest.err
36535        } && test -s conftest$ac_exeext &&
36536        $as_test_x conftest$ac_exeext; then
36537   ol_cv_func_inet_aton=yes
36538 else
36539   echo "$as_me: failed program was:" >&5
36540 sed 's/^/| /' conftest.$ac_ext >&5
36541
36542         ol_cv_func_inet_aton=no
36543 fi
36544
36545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36546       conftest$ac_exeext conftest.$ac_ext
36547 fi
36548 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36549 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36550   if test $ol_cv_func_inet_aton != no; then
36551
36552 cat >>confdefs.h <<\_ACEOF
36553 #define HAVE_INET_ATON 1
36554 _ACEOF
36555
36556   fi
36557
36558
36559 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36560 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36561 if test "${ac_cv_func__spawnlp+set}" = set; then
36562   echo $ECHO_N "(cached) $ECHO_C" >&6
36563 else
36564   cat >conftest.$ac_ext <<_ACEOF
36565 /* confdefs.h.  */
36566 _ACEOF
36567 cat confdefs.h >>conftest.$ac_ext
36568 cat >>conftest.$ac_ext <<_ACEOF
36569 /* end confdefs.h.  */
36570 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36572 #define _spawnlp innocuous__spawnlp
36573
36574 /* System header to define __stub macros and hopefully few prototypes,
36575     which can conflict with char _spawnlp (); below.
36576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36577     <limits.h> exists even on freestanding compilers.  */
36578
36579 #ifdef __STDC__
36580 # include <limits.h>
36581 #else
36582 # include <assert.h>
36583 #endif
36584
36585 #undef _spawnlp
36586
36587 /* Override any GCC internal prototype to avoid an error.
36588    Use char because int might match the return type of a GCC
36589    builtin and then its argument prototype would still apply.  */
36590 #ifdef __cplusplus
36591 extern "C"
36592 #endif
36593 char _spawnlp ();
36594 /* The GNU C library defines this for functions which it implements
36595     to always fail with ENOSYS.  Some functions are actually named
36596     something starting with __ and the normal name is an alias.  */
36597 #if defined __stub__spawnlp || defined __stub____spawnlp
36598 choke me
36599 #endif
36600
36601 int
36602 main ()
36603 {
36604 return _spawnlp ();
36605   ;
36606   return 0;
36607 }
36608 _ACEOF
36609 rm -f conftest.$ac_objext conftest$ac_exeext
36610 if { (ac_try="$ac_link"
36611 case "(($ac_try" in
36612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36613   *) ac_try_echo=$ac_try;;
36614 esac
36615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36616   (eval "$ac_link") 2>conftest.er1
36617   ac_status=$?
36618   grep -v '^ *+' conftest.er1 >conftest.err
36619   rm -f conftest.er1
36620   cat conftest.err >&5
36621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622   (exit $ac_status); } && {
36623          test -z "$ac_c_werror_flag" ||
36624          test ! -s conftest.err
36625        } && test -s conftest$ac_exeext &&
36626        $as_test_x conftest$ac_exeext; then
36627   ac_cv_func__spawnlp=yes
36628 else
36629   echo "$as_me: failed program was:" >&5
36630 sed 's/^/| /' conftest.$ac_ext >&5
36631
36632         ac_cv_func__spawnlp=no
36633 fi
36634
36635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36636       conftest$ac_exeext conftest.$ac_ext
36637 fi
36638 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36639 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36640 if test $ac_cv_func__spawnlp = yes; then
36641
36642 cat >>confdefs.h <<\_ACEOF
36643 #define HAVE_SPAWNLP 1
36644 _ACEOF
36645
36646 fi
36647
36648
36649 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36650 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36651 if test "${ac_cv_func__snprintf+set}" = set; then
36652   echo $ECHO_N "(cached) $ECHO_C" >&6
36653 else
36654   cat >conftest.$ac_ext <<_ACEOF
36655 /* confdefs.h.  */
36656 _ACEOF
36657 cat confdefs.h >>conftest.$ac_ext
36658 cat >>conftest.$ac_ext <<_ACEOF
36659 /* end confdefs.h.  */
36660 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36662 #define _snprintf innocuous__snprintf
36663
36664 /* System header to define __stub macros and hopefully few prototypes,
36665     which can conflict with char _snprintf (); below.
36666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36667     <limits.h> exists even on freestanding compilers.  */
36668
36669 #ifdef __STDC__
36670 # include <limits.h>
36671 #else
36672 # include <assert.h>
36673 #endif
36674
36675 #undef _snprintf
36676
36677 /* Override any GCC internal prototype to avoid an error.
36678    Use char because int might match the return type of a GCC
36679    builtin and then its argument prototype would still apply.  */
36680 #ifdef __cplusplus
36681 extern "C"
36682 #endif
36683 char _snprintf ();
36684 /* The GNU C library defines this for functions which it implements
36685     to always fail with ENOSYS.  Some functions are actually named
36686     something starting with __ and the normal name is an alias.  */
36687 #if defined __stub__snprintf || defined __stub____snprintf
36688 choke me
36689 #endif
36690
36691 int
36692 main ()
36693 {
36694 return _snprintf ();
36695   ;
36696   return 0;
36697 }
36698 _ACEOF
36699 rm -f conftest.$ac_objext conftest$ac_exeext
36700 if { (ac_try="$ac_link"
36701 case "(($ac_try" in
36702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36703   *) ac_try_echo=$ac_try;;
36704 esac
36705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36706   (eval "$ac_link") 2>conftest.er1
36707   ac_status=$?
36708   grep -v '^ *+' conftest.er1 >conftest.err
36709   rm -f conftest.er1
36710   cat conftest.err >&5
36711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36712   (exit $ac_status); } && {
36713          test -z "$ac_c_werror_flag" ||
36714          test ! -s conftest.err
36715        } && test -s conftest$ac_exeext &&
36716        $as_test_x conftest$ac_exeext; then
36717   ac_cv_func__snprintf=yes
36718 else
36719   echo "$as_me: failed program was:" >&5
36720 sed 's/^/| /' conftest.$ac_ext >&5
36721
36722         ac_cv_func__snprintf=no
36723 fi
36724
36725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36726       conftest$ac_exeext conftest.$ac_ext
36727 fi
36728 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36729 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36730 if test $ac_cv_func__snprintf = yes; then
36731   ac_cv_func_snprintf=yes
36732
36733 cat >>confdefs.h <<\_ACEOF
36734 #define snprintf _snprintf
36735 _ACEOF
36736
36737
36738 fi
36739
36740
36741
36742
36743 for ac_func in vsnprintf _vsnprintf
36744 do
36745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36749   echo $ECHO_N "(cached) $ECHO_C" >&6
36750 else
36751   cat >conftest.$ac_ext <<_ACEOF
36752 /* confdefs.h.  */
36753 _ACEOF
36754 cat confdefs.h >>conftest.$ac_ext
36755 cat >>conftest.$ac_ext <<_ACEOF
36756 /* end confdefs.h.  */
36757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36759 #define $ac_func innocuous_$ac_func
36760
36761 /* System header to define __stub macros and hopefully few prototypes,
36762     which can conflict with char $ac_func (); below.
36763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36764     <limits.h> exists even on freestanding compilers.  */
36765
36766 #ifdef __STDC__
36767 # include <limits.h>
36768 #else
36769 # include <assert.h>
36770 #endif
36771
36772 #undef $ac_func
36773
36774 /* Override any GCC internal prototype to avoid an error.
36775    Use char because int might match the return type of a GCC
36776    builtin and then its argument prototype would still apply.  */
36777 #ifdef __cplusplus
36778 extern "C"
36779 #endif
36780 char $ac_func ();
36781 /* The GNU C library defines this for functions which it implements
36782     to always fail with ENOSYS.  Some functions are actually named
36783     something starting with __ and the normal name is an alias.  */
36784 #if defined __stub_$ac_func || defined __stub___$ac_func
36785 choke me
36786 #endif
36787
36788 int
36789 main ()
36790 {
36791 return $ac_func ();
36792   ;
36793   return 0;
36794 }
36795 _ACEOF
36796 rm -f conftest.$ac_objext conftest$ac_exeext
36797 if { (ac_try="$ac_link"
36798 case "(($ac_try" in
36799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36800   *) ac_try_echo=$ac_try;;
36801 esac
36802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36803   (eval "$ac_link") 2>conftest.er1
36804   ac_status=$?
36805   grep -v '^ *+' conftest.er1 >conftest.err
36806   rm -f conftest.er1
36807   cat conftest.err >&5
36808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809   (exit $ac_status); } && {
36810          test -z "$ac_c_werror_flag" ||
36811          test ! -s conftest.err
36812        } && test -s conftest$ac_exeext &&
36813        $as_test_x conftest$ac_exeext; then
36814   eval "$as_ac_var=yes"
36815 else
36816   echo "$as_me: failed program was:" >&5
36817 sed 's/^/| /' conftest.$ac_ext >&5
36818
36819         eval "$as_ac_var=no"
36820 fi
36821
36822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36823       conftest$ac_exeext conftest.$ac_ext
36824 fi
36825 ac_res=`eval echo '${'$as_ac_var'}'`
36826                { echo "$as_me:$LINENO: result: $ac_res" >&5
36827 echo "${ECHO_T}$ac_res" >&6; }
36828 if test `eval echo '${'$as_ac_var'}'` = yes; then
36829   cat >>confdefs.h <<_ACEOF
36830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36831 _ACEOF
36832
36833 fi
36834 done
36835
36836
36837 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36838         ac_cv_func_vsnprintf=yes
36839
36840 cat >>confdefs.h <<\_ACEOF
36841 #define vsnprintf _vsnprintf
36842 _ACEOF
36843
36844 fi
36845
36846
36847 for ac_func in vprintf
36848 do
36849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36850 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36852 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36853   echo $ECHO_N "(cached) $ECHO_C" >&6
36854 else
36855   cat >conftest.$ac_ext <<_ACEOF
36856 /* confdefs.h.  */
36857 _ACEOF
36858 cat confdefs.h >>conftest.$ac_ext
36859 cat >>conftest.$ac_ext <<_ACEOF
36860 /* end confdefs.h.  */
36861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36863 #define $ac_func innocuous_$ac_func
36864
36865 /* System header to define __stub macros and hopefully few prototypes,
36866     which can conflict with char $ac_func (); below.
36867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36868     <limits.h> exists even on freestanding compilers.  */
36869
36870 #ifdef __STDC__
36871 # include <limits.h>
36872 #else
36873 # include <assert.h>
36874 #endif
36875
36876 #undef $ac_func
36877
36878 /* Override any GCC internal prototype to avoid an error.
36879    Use char because int might match the return type of a GCC
36880    builtin and then its argument prototype would still apply.  */
36881 #ifdef __cplusplus
36882 extern "C"
36883 #endif
36884 char $ac_func ();
36885 /* The GNU C library defines this for functions which it implements
36886     to always fail with ENOSYS.  Some functions are actually named
36887     something starting with __ and the normal name is an alias.  */
36888 #if defined __stub_$ac_func || defined __stub___$ac_func
36889 choke me
36890 #endif
36891
36892 int
36893 main ()
36894 {
36895 return $ac_func ();
36896   ;
36897   return 0;
36898 }
36899 _ACEOF
36900 rm -f conftest.$ac_objext conftest$ac_exeext
36901 if { (ac_try="$ac_link"
36902 case "(($ac_try" in
36903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36904   *) ac_try_echo=$ac_try;;
36905 esac
36906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36907   (eval "$ac_link") 2>conftest.er1
36908   ac_status=$?
36909   grep -v '^ *+' conftest.er1 >conftest.err
36910   rm -f conftest.er1
36911   cat conftest.err >&5
36912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36913   (exit $ac_status); } && {
36914          test -z "$ac_c_werror_flag" ||
36915          test ! -s conftest.err
36916        } && test -s conftest$ac_exeext &&
36917        $as_test_x conftest$ac_exeext; then
36918   eval "$as_ac_var=yes"
36919 else
36920   echo "$as_me: failed program was:" >&5
36921 sed 's/^/| /' conftest.$ac_ext >&5
36922
36923         eval "$as_ac_var=no"
36924 fi
36925
36926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36927       conftest$ac_exeext conftest.$ac_ext
36928 fi
36929 ac_res=`eval echo '${'$as_ac_var'}'`
36930                { echo "$as_me:$LINENO: result: $ac_res" >&5
36931 echo "${ECHO_T}$ac_res" >&6; }
36932 if test `eval echo '${'$as_ac_var'}'` = yes; then
36933   cat >>confdefs.h <<_ACEOF
36934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36935 _ACEOF
36936
36937 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36938 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36939 if test "${ac_cv_func__doprnt+set}" = set; then
36940   echo $ECHO_N "(cached) $ECHO_C" >&6
36941 else
36942   cat >conftest.$ac_ext <<_ACEOF
36943 /* confdefs.h.  */
36944 _ACEOF
36945 cat confdefs.h >>conftest.$ac_ext
36946 cat >>conftest.$ac_ext <<_ACEOF
36947 /* end confdefs.h.  */
36948 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36950 #define _doprnt innocuous__doprnt
36951
36952 /* System header to define __stub macros and hopefully few prototypes,
36953     which can conflict with char _doprnt (); below.
36954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36955     <limits.h> exists even on freestanding compilers.  */
36956
36957 #ifdef __STDC__
36958 # include <limits.h>
36959 #else
36960 # include <assert.h>
36961 #endif
36962
36963 #undef _doprnt
36964
36965 /* Override any GCC internal prototype to avoid an error.
36966    Use char because int might match the return type of a GCC
36967    builtin and then its argument prototype would still apply.  */
36968 #ifdef __cplusplus
36969 extern "C"
36970 #endif
36971 char _doprnt ();
36972 /* The GNU C library defines this for functions which it implements
36973     to always fail with ENOSYS.  Some functions are actually named
36974     something starting with __ and the normal name is an alias.  */
36975 #if defined __stub__doprnt || defined __stub____doprnt
36976 choke me
36977 #endif
36978
36979 int
36980 main ()
36981 {
36982 return _doprnt ();
36983   ;
36984   return 0;
36985 }
36986 _ACEOF
36987 rm -f conftest.$ac_objext conftest$ac_exeext
36988 if { (ac_try="$ac_link"
36989 case "(($ac_try" in
36990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36991   *) ac_try_echo=$ac_try;;
36992 esac
36993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36994   (eval "$ac_link") 2>conftest.er1
36995   ac_status=$?
36996   grep -v '^ *+' conftest.er1 >conftest.err
36997   rm -f conftest.er1
36998   cat conftest.err >&5
36999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000   (exit $ac_status); } && {
37001          test -z "$ac_c_werror_flag" ||
37002          test ! -s conftest.err
37003        } && test -s conftest$ac_exeext &&
37004        $as_test_x conftest$ac_exeext; then
37005   ac_cv_func__doprnt=yes
37006 else
37007   echo "$as_me: failed program was:" >&5
37008 sed 's/^/| /' conftest.$ac_ext >&5
37009
37010         ac_cv_func__doprnt=no
37011 fi
37012
37013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37014       conftest$ac_exeext conftest.$ac_ext
37015 fi
37016 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37017 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
37018 if test $ac_cv_func__doprnt = yes; then
37019
37020 cat >>confdefs.h <<\_ACEOF
37021 #define HAVE_DOPRNT 1
37022 _ACEOF
37023
37024 fi
37025
37026 fi
37027 done
37028
37029
37030
37031 if test $ac_cv_func_vprintf = yes ; then
37032
37033
37034 for ac_func in snprintf vsnprintf
37035 do
37036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37040   echo $ECHO_N "(cached) $ECHO_C" >&6
37041 else
37042   cat >conftest.$ac_ext <<_ACEOF
37043 /* confdefs.h.  */
37044 _ACEOF
37045 cat confdefs.h >>conftest.$ac_ext
37046 cat >>conftest.$ac_ext <<_ACEOF
37047 /* end confdefs.h.  */
37048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37050 #define $ac_func innocuous_$ac_func
37051
37052 /* System header to define __stub macros and hopefully few prototypes,
37053     which can conflict with char $ac_func (); below.
37054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37055     <limits.h> exists even on freestanding compilers.  */
37056
37057 #ifdef __STDC__
37058 # include <limits.h>
37059 #else
37060 # include <assert.h>
37061 #endif
37062
37063 #undef $ac_func
37064
37065 /* Override any GCC internal prototype to avoid an error.
37066    Use char because int might match the return type of a GCC
37067    builtin and then its argument prototype would still apply.  */
37068 #ifdef __cplusplus
37069 extern "C"
37070 #endif
37071 char $ac_func ();
37072 /* The GNU C library defines this for functions which it implements
37073     to always fail with ENOSYS.  Some functions are actually named
37074     something starting with __ and the normal name is an alias.  */
37075 #if defined __stub_$ac_func || defined __stub___$ac_func
37076 choke me
37077 #endif
37078
37079 int
37080 main ()
37081 {
37082 return $ac_func ();
37083   ;
37084   return 0;
37085 }
37086 _ACEOF
37087 rm -f conftest.$ac_objext conftest$ac_exeext
37088 if { (ac_try="$ac_link"
37089 case "(($ac_try" in
37090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37091   *) ac_try_echo=$ac_try;;
37092 esac
37093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37094   (eval "$ac_link") 2>conftest.er1
37095   ac_status=$?
37096   grep -v '^ *+' conftest.er1 >conftest.err
37097   rm -f conftest.er1
37098   cat conftest.err >&5
37099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37100   (exit $ac_status); } && {
37101          test -z "$ac_c_werror_flag" ||
37102          test ! -s conftest.err
37103        } && test -s conftest$ac_exeext &&
37104        $as_test_x conftest$ac_exeext; then
37105   eval "$as_ac_var=yes"
37106 else
37107   echo "$as_me: failed program was:" >&5
37108 sed 's/^/| /' conftest.$ac_ext >&5
37109
37110         eval "$as_ac_var=no"
37111 fi
37112
37113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37114       conftest$ac_exeext conftest.$ac_ext
37115 fi
37116 ac_res=`eval echo '${'$as_ac_var'}'`
37117                { echo "$as_me:$LINENO: result: $ac_res" >&5
37118 echo "${ECHO_T}$ac_res" >&6; }
37119 if test `eval echo '${'$as_ac_var'}'` = yes; then
37120   cat >>confdefs.h <<_ACEOF
37121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37122 _ACEOF
37123
37124 fi
37125 done
37126
37127 fi
37128
37129
37130
37131
37132
37133
37134
37135
37136
37137
37138
37139
37140
37141
37142
37143
37144
37145
37146
37147
37148
37149
37150
37151
37152
37153
37154
37155
37156
37157
37158
37159
37160
37161
37162
37163
37164
37165
37166
37167
37168
37169
37170
37171
37172
37173
37174
37175
37176
37177
37178
37179
37180
37181
37182
37183
37184
37185 for ac_func in \
37186         bcopy                   \
37187         closesocket             \
37188         chroot                  \
37189         endgrent                \
37190         endpwent                \
37191         fcntl                   \
37192         flock                   \
37193         fstat                   \
37194         getdtablesize           \
37195         geteuid                 \
37196         getgrgid                \
37197         gethostname             \
37198         getpass                 \
37199         getpassphrase           \
37200         getpwuid                \
37201         getpwnam                \
37202         getspnam                \
37203         gettimeofday            \
37204         initgroups              \
37205         inet_ntoa_b             \
37206         ioctl                   \
37207         lockf                   \
37208         memcpy                  \
37209         memmove                 \
37210         memrchr                 \
37211         mkstemp                 \
37212         mktemp                  \
37213         pipe                    \
37214         read                    \
37215         recv                    \
37216         recvfrom                \
37217         setpwfile               \
37218         setgid                  \
37219         setegid                 \
37220         setsid                  \
37221         setuid                  \
37222         seteuid                 \
37223         signal                  \
37224         strdup                  \
37225         strpbrk                 \
37226         strrchr                 \
37227         strsep                  \
37228         strstr                  \
37229         strtol                  \
37230         strtoul                 \
37231         strtoq                  \
37232         strtouq                 \
37233         strtoll                 \
37234         strspn                  \
37235         sysconf                 \
37236         waitpid                 \
37237         wait4                   \
37238         write                   \
37239         send                    \
37240         sendmsg                 \
37241         sendto                  \
37242
37243 do
37244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37248   echo $ECHO_N "(cached) $ECHO_C" >&6
37249 else
37250   cat >conftest.$ac_ext <<_ACEOF
37251 /* confdefs.h.  */
37252 _ACEOF
37253 cat confdefs.h >>conftest.$ac_ext
37254 cat >>conftest.$ac_ext <<_ACEOF
37255 /* end confdefs.h.  */
37256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37258 #define $ac_func innocuous_$ac_func
37259
37260 /* System header to define __stub macros and hopefully few prototypes,
37261     which can conflict with char $ac_func (); below.
37262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37263     <limits.h> exists even on freestanding compilers.  */
37264
37265 #ifdef __STDC__
37266 # include <limits.h>
37267 #else
37268 # include <assert.h>
37269 #endif
37270
37271 #undef $ac_func
37272
37273 /* Override any GCC internal prototype to avoid an error.
37274    Use char because int might match the return type of a GCC
37275    builtin and then its argument prototype would still apply.  */
37276 #ifdef __cplusplus
37277 extern "C"
37278 #endif
37279 char $ac_func ();
37280 /* The GNU C library defines this for functions which it implements
37281     to always fail with ENOSYS.  Some functions are actually named
37282     something starting with __ and the normal name is an alias.  */
37283 #if defined __stub_$ac_func || defined __stub___$ac_func
37284 choke me
37285 #endif
37286
37287 int
37288 main ()
37289 {
37290 return $ac_func ();
37291   ;
37292   return 0;
37293 }
37294 _ACEOF
37295 rm -f conftest.$ac_objext conftest$ac_exeext
37296 if { (ac_try="$ac_link"
37297 case "(($ac_try" in
37298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37299   *) ac_try_echo=$ac_try;;
37300 esac
37301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37302   (eval "$ac_link") 2>conftest.er1
37303   ac_status=$?
37304   grep -v '^ *+' conftest.er1 >conftest.err
37305   rm -f conftest.er1
37306   cat conftest.err >&5
37307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37308   (exit $ac_status); } && {
37309          test -z "$ac_c_werror_flag" ||
37310          test ! -s conftest.err
37311        } && test -s conftest$ac_exeext &&
37312        $as_test_x conftest$ac_exeext; then
37313   eval "$as_ac_var=yes"
37314 else
37315   echo "$as_me: failed program was:" >&5
37316 sed 's/^/| /' conftest.$ac_ext >&5
37317
37318         eval "$as_ac_var=no"
37319 fi
37320
37321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37322       conftest$ac_exeext conftest.$ac_ext
37323 fi
37324 ac_res=`eval echo '${'$as_ac_var'}'`
37325                { echo "$as_me:$LINENO: result: $ac_res" >&5
37326 echo "${ECHO_T}$ac_res" >&6; }
37327 if test `eval echo '${'$as_ac_var'}'` = yes; then
37328   cat >>confdefs.h <<_ACEOF
37329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37330 _ACEOF
37331
37332 fi
37333 done
37334
37335
37336
37337
37338 for ac_func in getopt getpeereid
37339 do
37340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37344   echo $ECHO_N "(cached) $ECHO_C" >&6
37345 else
37346   cat >conftest.$ac_ext <<_ACEOF
37347 /* confdefs.h.  */
37348 _ACEOF
37349 cat confdefs.h >>conftest.$ac_ext
37350 cat >>conftest.$ac_ext <<_ACEOF
37351 /* end confdefs.h.  */
37352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37354 #define $ac_func innocuous_$ac_func
37355
37356 /* System header to define __stub macros and hopefully few prototypes,
37357     which can conflict with char $ac_func (); below.
37358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37359     <limits.h> exists even on freestanding compilers.  */
37360
37361 #ifdef __STDC__
37362 # include <limits.h>
37363 #else
37364 # include <assert.h>
37365 #endif
37366
37367 #undef $ac_func
37368
37369 /* Override any GCC internal prototype to avoid an error.
37370    Use char because int might match the return type of a GCC
37371    builtin and then its argument prototype would still apply.  */
37372 #ifdef __cplusplus
37373 extern "C"
37374 #endif
37375 char $ac_func ();
37376 /* The GNU C library defines this for functions which it implements
37377     to always fail with ENOSYS.  Some functions are actually named
37378     something starting with __ and the normal name is an alias.  */
37379 #if defined __stub_$ac_func || defined __stub___$ac_func
37380 choke me
37381 #endif
37382
37383 int
37384 main ()
37385 {
37386 return $ac_func ();
37387   ;
37388   return 0;
37389 }
37390 _ACEOF
37391 rm -f conftest.$ac_objext conftest$ac_exeext
37392 if { (ac_try="$ac_link"
37393 case "(($ac_try" in
37394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37395   *) ac_try_echo=$ac_try;;
37396 esac
37397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37398   (eval "$ac_link") 2>conftest.er1
37399   ac_status=$?
37400   grep -v '^ *+' conftest.er1 >conftest.err
37401   rm -f conftest.er1
37402   cat conftest.err >&5
37403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404   (exit $ac_status); } && {
37405          test -z "$ac_c_werror_flag" ||
37406          test ! -s conftest.err
37407        } && test -s conftest$ac_exeext &&
37408        $as_test_x conftest$ac_exeext; then
37409   eval "$as_ac_var=yes"
37410 else
37411   echo "$as_me: failed program was:" >&5
37412 sed 's/^/| /' conftest.$ac_ext >&5
37413
37414         eval "$as_ac_var=no"
37415 fi
37416
37417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37418       conftest$ac_exeext conftest.$ac_ext
37419 fi
37420 ac_res=`eval echo '${'$as_ac_var'}'`
37421                { echo "$as_me:$LINENO: result: $ac_res" >&5
37422 echo "${ECHO_T}$ac_res" >&6; }
37423 if test `eval echo '${'$as_ac_var'}'` = yes; then
37424   cat >>confdefs.h <<_ACEOF
37425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37426 _ACEOF
37427
37428 else
37429   case " $LIBOBJS " in
37430   *" $ac_func.$ac_objext "* ) ;;
37431   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37432  ;;
37433 esac
37434
37435 fi
37436 done
37437
37438
37439
37440 if test "$ac_cv_func_getopt" != yes; then
37441         LIBSRCS="$LIBSRCS getopt.c"
37442 fi
37443
37444 if test "$ac_cv_func_getpeereid" != yes; then
37445
37446 for ac_func in getpeerucred
37447 do
37448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37452   echo $ECHO_N "(cached) $ECHO_C" >&6
37453 else
37454   cat >conftest.$ac_ext <<_ACEOF
37455 /* confdefs.h.  */
37456 _ACEOF
37457 cat confdefs.h >>conftest.$ac_ext
37458 cat >>conftest.$ac_ext <<_ACEOF
37459 /* end confdefs.h.  */
37460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37462 #define $ac_func innocuous_$ac_func
37463
37464 /* System header to define __stub macros and hopefully few prototypes,
37465     which can conflict with char $ac_func (); below.
37466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37467     <limits.h> exists even on freestanding compilers.  */
37468
37469 #ifdef __STDC__
37470 # include <limits.h>
37471 #else
37472 # include <assert.h>
37473 #endif
37474
37475 #undef $ac_func
37476
37477 /* Override any GCC internal prototype to avoid an error.
37478    Use char because int might match the return type of a GCC
37479    builtin and then its argument prototype would still apply.  */
37480 #ifdef __cplusplus
37481 extern "C"
37482 #endif
37483 char $ac_func ();
37484 /* The GNU C library defines this for functions which it implements
37485     to always fail with ENOSYS.  Some functions are actually named
37486     something starting with __ and the normal name is an alias.  */
37487 #if defined __stub_$ac_func || defined __stub___$ac_func
37488 choke me
37489 #endif
37490
37491 int
37492 main ()
37493 {
37494 return $ac_func ();
37495   ;
37496   return 0;
37497 }
37498 _ACEOF
37499 rm -f conftest.$ac_objext conftest$ac_exeext
37500 if { (ac_try="$ac_link"
37501 case "(($ac_try" in
37502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37503   *) ac_try_echo=$ac_try;;
37504 esac
37505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37506   (eval "$ac_link") 2>conftest.er1
37507   ac_status=$?
37508   grep -v '^ *+' conftest.er1 >conftest.err
37509   rm -f conftest.er1
37510   cat conftest.err >&5
37511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512   (exit $ac_status); } && {
37513          test -z "$ac_c_werror_flag" ||
37514          test ! -s conftest.err
37515        } && test -s conftest$ac_exeext &&
37516        $as_test_x conftest$ac_exeext; then
37517   eval "$as_ac_var=yes"
37518 else
37519   echo "$as_me: failed program was:" >&5
37520 sed 's/^/| /' conftest.$ac_ext >&5
37521
37522         eval "$as_ac_var=no"
37523 fi
37524
37525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37526       conftest$ac_exeext conftest.$ac_ext
37527 fi
37528 ac_res=`eval echo '${'$as_ac_var'}'`
37529                { echo "$as_me:$LINENO: result: $ac_res" >&5
37530 echo "${ECHO_T}$ac_res" >&6; }
37531 if test `eval echo '${'$as_ac_var'}'` = yes; then
37532   cat >>confdefs.h <<_ACEOF
37533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37534 _ACEOF
37535
37536 fi
37537 done
37538
37539         if test "$ac_cv_func_getpeerucred" != yes ; then
37540                 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37541 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37542 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37543   echo $ECHO_N "(cached) $ECHO_C" >&6
37544 else
37545   cat >conftest.$ac_ext <<_ACEOF
37546 /* confdefs.h.  */
37547 _ACEOF
37548 cat confdefs.h >>conftest.$ac_ext
37549 cat >>conftest.$ac_ext <<_ACEOF
37550 /* end confdefs.h.  */
37551 $ac_includes_default
37552 #ifdef HAVE_SYS_SOCKET_H
37553 #include <sys/socket.h>
37554 #endif
37555
37556 int
37557 main ()
37558 {
37559 static struct msghdr ac_aggr;
37560 if (ac_aggr.msg_accrightslen)
37561 return 0;
37562   ;
37563   return 0;
37564 }
37565 _ACEOF
37566 rm -f conftest.$ac_objext
37567 if { (ac_try="$ac_compile"
37568 case "(($ac_try" in
37569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37570   *) ac_try_echo=$ac_try;;
37571 esac
37572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37573   (eval "$ac_compile") 2>conftest.er1
37574   ac_status=$?
37575   grep -v '^ *+' conftest.er1 >conftest.err
37576   rm -f conftest.er1
37577   cat conftest.err >&5
37578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37579   (exit $ac_status); } && {
37580          test -z "$ac_c_werror_flag" ||
37581          test ! -s conftest.err
37582        } && test -s conftest.$ac_objext; then
37583   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37584 else
37585   echo "$as_me: failed program was:" >&5
37586 sed 's/^/| /' conftest.$ac_ext >&5
37587
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 $ac_includes_default
37595 #ifdef HAVE_SYS_SOCKET_H
37596 #include <sys/socket.h>
37597 #endif
37598
37599 int
37600 main ()
37601 {
37602 static struct msghdr ac_aggr;
37603 if (sizeof ac_aggr.msg_accrightslen)
37604 return 0;
37605   ;
37606   return 0;
37607 }
37608 _ACEOF
37609 rm -f conftest.$ac_objext
37610 if { (ac_try="$ac_compile"
37611 case "(($ac_try" in
37612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37613   *) ac_try_echo=$ac_try;;
37614 esac
37615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37616   (eval "$ac_compile") 2>conftest.er1
37617   ac_status=$?
37618   grep -v '^ *+' conftest.er1 >conftest.err
37619   rm -f conftest.er1
37620   cat conftest.err >&5
37621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622   (exit $ac_status); } && {
37623          test -z "$ac_c_werror_flag" ||
37624          test ! -s conftest.err
37625        } && test -s conftest.$ac_objext; then
37626   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37627 else
37628   echo "$as_me: failed program was:" >&5
37629 sed 's/^/| /' conftest.$ac_ext >&5
37630
37631         ac_cv_member_struct_msghdr_msg_accrightslen=no
37632 fi
37633
37634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37635 fi
37636
37637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37638 fi
37639 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37640 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37641 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37642
37643 cat >>confdefs.h <<_ACEOF
37644 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37645 _ACEOF
37646
37647
37648 fi
37649
37650                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37651                         { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37652 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37653 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37654   echo $ECHO_N "(cached) $ECHO_C" >&6
37655 else
37656   cat >conftest.$ac_ext <<_ACEOF
37657 /* confdefs.h.  */
37658 _ACEOF
37659 cat confdefs.h >>conftest.$ac_ext
37660 cat >>conftest.$ac_ext <<_ACEOF
37661 /* end confdefs.h.  */
37662 $ac_includes_default
37663 #ifdef HAVE_SYS_SOCKET_H
37664 #include <sys/socket.h>
37665 #endif
37666
37667 int
37668 main ()
37669 {
37670 static struct msghdr ac_aggr;
37671 if (ac_aggr.msg_control)
37672 return 0;
37673   ;
37674   return 0;
37675 }
37676 _ACEOF
37677 rm -f conftest.$ac_objext
37678 if { (ac_try="$ac_compile"
37679 case "(($ac_try" in
37680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37681   *) ac_try_echo=$ac_try;;
37682 esac
37683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37684   (eval "$ac_compile") 2>conftest.er1
37685   ac_status=$?
37686   grep -v '^ *+' conftest.er1 >conftest.err
37687   rm -f conftest.er1
37688   cat conftest.err >&5
37689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37690   (exit $ac_status); } && {
37691          test -z "$ac_c_werror_flag" ||
37692          test ! -s conftest.err
37693        } && test -s conftest.$ac_objext; then
37694   ac_cv_member_struct_msghdr_msg_control=yes
37695 else
37696   echo "$as_me: failed program was:" >&5
37697 sed 's/^/| /' conftest.$ac_ext >&5
37698
37699         cat >conftest.$ac_ext <<_ACEOF
37700 /* confdefs.h.  */
37701 _ACEOF
37702 cat confdefs.h >>conftest.$ac_ext
37703 cat >>conftest.$ac_ext <<_ACEOF
37704 /* end confdefs.h.  */
37705 $ac_includes_default
37706 #ifdef HAVE_SYS_SOCKET_H
37707 #include <sys/socket.h>
37708 #endif
37709
37710 int
37711 main ()
37712 {
37713 static struct msghdr ac_aggr;
37714 if (sizeof ac_aggr.msg_control)
37715 return 0;
37716   ;
37717   return 0;
37718 }
37719 _ACEOF
37720 rm -f conftest.$ac_objext
37721 if { (ac_try="$ac_compile"
37722 case "(($ac_try" in
37723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37724   *) ac_try_echo=$ac_try;;
37725 esac
37726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37727   (eval "$ac_compile") 2>conftest.er1
37728   ac_status=$?
37729   grep -v '^ *+' conftest.er1 >conftest.err
37730   rm -f conftest.er1
37731   cat conftest.err >&5
37732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37733   (exit $ac_status); } && {
37734          test -z "$ac_c_werror_flag" ||
37735          test ! -s conftest.err
37736        } && test -s conftest.$ac_objext; then
37737   ac_cv_member_struct_msghdr_msg_control=yes
37738 else
37739   echo "$as_me: failed program was:" >&5
37740 sed 's/^/| /' conftest.$ac_ext >&5
37741
37742         ac_cv_member_struct_msghdr_msg_control=no
37743 fi
37744
37745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37746 fi
37747
37748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37749 fi
37750 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37751 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37752 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37753
37754 cat >>confdefs.h <<_ACEOF
37755 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37756 _ACEOF
37757
37758
37759 fi
37760
37761                 fi
37762                 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37763 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37764 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37765   echo $ECHO_N "(cached) $ECHO_C" >&6
37766 else
37767   cat >conftest.$ac_ext <<_ACEOF
37768 /* confdefs.h.  */
37769 _ACEOF
37770 cat confdefs.h >>conftest.$ac_ext
37771 cat >>conftest.$ac_ext <<_ACEOF
37772 /* end confdefs.h.  */
37773 $ac_includes_default
37774 int
37775 main ()
37776 {
37777 static struct stat ac_aggr;
37778 if (ac_aggr.st_fstype)
37779 return 0;
37780   ;
37781   return 0;
37782 }
37783 _ACEOF
37784 rm -f conftest.$ac_objext
37785 if { (ac_try="$ac_compile"
37786 case "(($ac_try" in
37787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37788   *) ac_try_echo=$ac_try;;
37789 esac
37790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37791   (eval "$ac_compile") 2>conftest.er1
37792   ac_status=$?
37793   grep -v '^ *+' conftest.er1 >conftest.err
37794   rm -f conftest.er1
37795   cat conftest.err >&5
37796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37797   (exit $ac_status); } && {
37798          test -z "$ac_c_werror_flag" ||
37799          test ! -s conftest.err
37800        } && test -s conftest.$ac_objext; then
37801   ac_cv_member_struct_stat_st_fstype=yes
37802 else
37803   echo "$as_me: failed program was:" >&5
37804 sed 's/^/| /' conftest.$ac_ext >&5
37805
37806         cat >conftest.$ac_ext <<_ACEOF
37807 /* confdefs.h.  */
37808 _ACEOF
37809 cat confdefs.h >>conftest.$ac_ext
37810 cat >>conftest.$ac_ext <<_ACEOF
37811 /* end confdefs.h.  */
37812 $ac_includes_default
37813 int
37814 main ()
37815 {
37816 static struct stat ac_aggr;
37817 if (sizeof ac_aggr.st_fstype)
37818 return 0;
37819   ;
37820   return 0;
37821 }
37822 _ACEOF
37823 rm -f conftest.$ac_objext
37824 if { (ac_try="$ac_compile"
37825 case "(($ac_try" in
37826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37827   *) ac_try_echo=$ac_try;;
37828 esac
37829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37830   (eval "$ac_compile") 2>conftest.er1
37831   ac_status=$?
37832   grep -v '^ *+' conftest.er1 >conftest.err
37833   rm -f conftest.er1
37834   cat conftest.err >&5
37835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836   (exit $ac_status); } && {
37837          test -z "$ac_c_werror_flag" ||
37838          test ! -s conftest.err
37839        } && test -s conftest.$ac_objext; then
37840   ac_cv_member_struct_stat_st_fstype=yes
37841 else
37842   echo "$as_me: failed program was:" >&5
37843 sed 's/^/| /' conftest.$ac_ext >&5
37844
37845         ac_cv_member_struct_stat_st_fstype=no
37846 fi
37847
37848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37849 fi
37850
37851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37852 fi
37853 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37854 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37855 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37856
37857 cat >>confdefs.h <<_ACEOF
37858 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37859 _ACEOF
37860
37861
37862 fi
37863 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37864 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37865 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37866   echo $ECHO_N "(cached) $ECHO_C" >&6
37867 else
37868   cat >conftest.$ac_ext <<_ACEOF
37869 /* confdefs.h.  */
37870 _ACEOF
37871 cat confdefs.h >>conftest.$ac_ext
37872 cat >>conftest.$ac_ext <<_ACEOF
37873 /* end confdefs.h.  */
37874 $ac_includes_default
37875 int
37876 main ()
37877 {
37878 static struct stat ac_aggr;
37879 if (ac_aggr.st_vfstype)
37880 return 0;
37881   ;
37882   return 0;
37883 }
37884 _ACEOF
37885 rm -f conftest.$ac_objext
37886 if { (ac_try="$ac_compile"
37887 case "(($ac_try" in
37888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37889   *) ac_try_echo=$ac_try;;
37890 esac
37891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37892   (eval "$ac_compile") 2>conftest.er1
37893   ac_status=$?
37894   grep -v '^ *+' conftest.er1 >conftest.err
37895   rm -f conftest.er1
37896   cat conftest.err >&5
37897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37898   (exit $ac_status); } && {
37899          test -z "$ac_c_werror_flag" ||
37900          test ! -s conftest.err
37901        } && test -s conftest.$ac_objext; then
37902   ac_cv_member_struct_stat_st_vfstype=yes
37903 else
37904   echo "$as_me: failed program was:" >&5
37905 sed 's/^/| /' conftest.$ac_ext >&5
37906
37907         cat >conftest.$ac_ext <<_ACEOF
37908 /* confdefs.h.  */
37909 _ACEOF
37910 cat confdefs.h >>conftest.$ac_ext
37911 cat >>conftest.$ac_ext <<_ACEOF
37912 /* end confdefs.h.  */
37913 $ac_includes_default
37914 int
37915 main ()
37916 {
37917 static struct stat ac_aggr;
37918 if (sizeof ac_aggr.st_vfstype)
37919 return 0;
37920   ;
37921   return 0;
37922 }
37923 _ACEOF
37924 rm -f conftest.$ac_objext
37925 if { (ac_try="$ac_compile"
37926 case "(($ac_try" in
37927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37928   *) ac_try_echo=$ac_try;;
37929 esac
37930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37931   (eval "$ac_compile") 2>conftest.er1
37932   ac_status=$?
37933   grep -v '^ *+' conftest.er1 >conftest.err
37934   rm -f conftest.er1
37935   cat conftest.err >&5
37936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937   (exit $ac_status); } && {
37938          test -z "$ac_c_werror_flag" ||
37939          test ! -s conftest.err
37940        } && test -s conftest.$ac_objext; then
37941   ac_cv_member_struct_stat_st_vfstype=yes
37942 else
37943   echo "$as_me: failed program was:" >&5
37944 sed 's/^/| /' conftest.$ac_ext >&5
37945
37946         ac_cv_member_struct_stat_st_vfstype=no
37947 fi
37948
37949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37950 fi
37951
37952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37953 fi
37954 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37955 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37956 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37957
37958 cat >>confdefs.h <<_ACEOF
37959 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37960 _ACEOF
37961
37962
37963 fi
37964
37965                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37966                         cat >conftest.$ac_ext <<_ACEOF
37967 struct stat st; char *ptr=st.st_fstype;
37968 _ACEOF
37969 rm -f conftest.$ac_objext
37970 if { (ac_try="$ac_compile"
37971 case "(($ac_try" in
37972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37973   *) ac_try_echo=$ac_try;;
37974 esac
37975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37976   (eval "$ac_compile") 2>conftest.er1
37977   ac_status=$?
37978   grep -v '^ *+' conftest.er1 >conftest.err
37979   rm -f conftest.er1
37980   cat conftest.err >&5
37981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982   (exit $ac_status); } && {
37983          test -z "$ac_c_werror_flag" ||
37984          test ! -s conftest.err
37985        } && test -s conftest.$ac_objext; then
37986
37987 cat >>confdefs.h <<\_ACEOF
37988 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37989 _ACEOF
37990
37991 else
37992   echo "$as_me: failed program was:" >&5
37993 sed 's/^/| /' conftest.$ac_ext >&5
37994
37995
37996 cat >>confdefs.h <<\_ACEOF
37997 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37998 _ACEOF
37999
38000 fi
38001
38002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38003                 fi
38004         fi
38005         LIBSRCS="$LIBSRCS getpeereid.c"
38006 fi
38007
38008 if test "$ac_cv_func_snprintf" != yes ||
38009    test "$ac_cv_func_vsnprintf" != yes; then
38010         if test "$ac_cv_func_snprintf" != yes; then
38011
38012 cat >>confdefs.h <<\_ACEOF
38013 #define snprintf ber_pvt_snprintf
38014 _ACEOF
38015
38016         fi
38017         if test "$ac_cv_func_vsnprintf" != yes; then
38018
38019 cat >>confdefs.h <<\_ACEOF
38020 #define vsnprintf ber_pvt_vsnprintf
38021 _ACEOF
38022
38023         fi
38024 fi
38025
38026
38027 if test "$ol_enable_slapi" != no ; then
38028
38029 for ac_header in ltdl.h
38030 do
38031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38033   { echo "$as_me:$LINENO: checking for $ac_header" >&5
38034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38036   echo $ECHO_N "(cached) $ECHO_C" >&6
38037 fi
38038 ac_res=`eval echo '${'$as_ac_Header'}'`
38039                { echo "$as_me:$LINENO: result: $ac_res" >&5
38040 echo "${ECHO_T}$ac_res" >&6; }
38041 else
38042   # Is the header compilable?
38043 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38045 cat >conftest.$ac_ext <<_ACEOF
38046 /* confdefs.h.  */
38047 _ACEOF
38048 cat confdefs.h >>conftest.$ac_ext
38049 cat >>conftest.$ac_ext <<_ACEOF
38050 /* end confdefs.h.  */
38051 $ac_includes_default
38052 #include <$ac_header>
38053 _ACEOF
38054 rm -f conftest.$ac_objext
38055 if { (ac_try="$ac_compile"
38056 case "(($ac_try" in
38057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38058   *) ac_try_echo=$ac_try;;
38059 esac
38060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38061   (eval "$ac_compile") 2>conftest.er1
38062   ac_status=$?
38063   grep -v '^ *+' conftest.er1 >conftest.err
38064   rm -f conftest.er1
38065   cat conftest.err >&5
38066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38067   (exit $ac_status); } && {
38068          test -z "$ac_c_werror_flag" ||
38069          test ! -s conftest.err
38070        } && test -s conftest.$ac_objext; then
38071   ac_header_compiler=yes
38072 else
38073   echo "$as_me: failed program was:" >&5
38074 sed 's/^/| /' conftest.$ac_ext >&5
38075
38076         ac_header_compiler=no
38077 fi
38078
38079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38081 echo "${ECHO_T}$ac_header_compiler" >&6; }
38082
38083 # Is the header present?
38084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38086 cat >conftest.$ac_ext <<_ACEOF
38087 /* confdefs.h.  */
38088 _ACEOF
38089 cat confdefs.h >>conftest.$ac_ext
38090 cat >>conftest.$ac_ext <<_ACEOF
38091 /* end confdefs.h.  */
38092 #include <$ac_header>
38093 _ACEOF
38094 if { (ac_try="$ac_cpp conftest.$ac_ext"
38095 case "(($ac_try" in
38096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38097   *) ac_try_echo=$ac_try;;
38098 esac
38099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38100   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38101   ac_status=$?
38102   grep -v '^ *+' conftest.er1 >conftest.err
38103   rm -f conftest.er1
38104   cat conftest.err >&5
38105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106   (exit $ac_status); } >/dev/null && {
38107          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38108          test ! -s conftest.err
38109        }; then
38110   ac_header_preproc=yes
38111 else
38112   echo "$as_me: failed program was:" >&5
38113 sed 's/^/| /' conftest.$ac_ext >&5
38114
38115   ac_header_preproc=no
38116 fi
38117
38118 rm -f conftest.err conftest.$ac_ext
38119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38120 echo "${ECHO_T}$ac_header_preproc" >&6; }
38121
38122 # So?  What about this header?
38123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38124   yes:no: )
38125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38129     ac_header_preproc=yes
38130     ;;
38131   no:yes:* )
38132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38144     ( cat <<\_ASBOX
38145 ## --------------------------------------------- ##
38146 ## Report this to <http://www.openldap.org/its/> ##
38147 ## --------------------------------------------- ##
38148 _ASBOX
38149      ) | sed "s/^/$as_me: WARNING:     /" >&2
38150     ;;
38151 esac
38152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38155   echo $ECHO_N "(cached) $ECHO_C" >&6
38156 else
38157   eval "$as_ac_Header=\$ac_header_preproc"
38158 fi
38159 ac_res=`eval echo '${'$as_ac_Header'}'`
38160                { echo "$as_me:$LINENO: result: $ac_res" >&5
38161 echo "${ECHO_T}$ac_res" >&6; }
38162
38163 fi
38164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38165   cat >>confdefs.h <<_ACEOF
38166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38167 _ACEOF
38168
38169 fi
38170
38171 done
38172
38173
38174         if test $ac_cv_header_ltdl_h != yes ; then
38175                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38176 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38177    { (exit 1); exit 1; }; }
38178         fi
38179         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38180 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38181 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38182   echo $ECHO_N "(cached) $ECHO_C" >&6
38183 else
38184   ac_check_lib_save_LIBS=$LIBS
38185 LIBS="-lltdl  $LIBS"
38186 cat >conftest.$ac_ext <<_ACEOF
38187 /* confdefs.h.  */
38188 _ACEOF
38189 cat confdefs.h >>conftest.$ac_ext
38190 cat >>conftest.$ac_ext <<_ACEOF
38191 /* end confdefs.h.  */
38192
38193 /* Override any GCC internal prototype to avoid an error.
38194    Use char because int might match the return type of a GCC
38195    builtin and then its argument prototype would still apply.  */
38196 #ifdef __cplusplus
38197 extern "C"
38198 #endif
38199 char lt_dlinit ();
38200 int
38201 main ()
38202 {
38203 return lt_dlinit ();
38204   ;
38205   return 0;
38206 }
38207 _ACEOF
38208 rm -f conftest.$ac_objext conftest$ac_exeext
38209 if { (ac_try="$ac_link"
38210 case "(($ac_try" in
38211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38212   *) ac_try_echo=$ac_try;;
38213 esac
38214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38215   (eval "$ac_link") 2>conftest.er1
38216   ac_status=$?
38217   grep -v '^ *+' conftest.er1 >conftest.err
38218   rm -f conftest.er1
38219   cat conftest.err >&5
38220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221   (exit $ac_status); } && {
38222          test -z "$ac_c_werror_flag" ||
38223          test ! -s conftest.err
38224        } && test -s conftest$ac_exeext &&
38225        $as_test_x conftest$ac_exeext; then
38226   ac_cv_lib_ltdl_lt_dlinit=yes
38227 else
38228   echo "$as_me: failed program was:" >&5
38229 sed 's/^/| /' conftest.$ac_ext >&5
38230
38231         ac_cv_lib_ltdl_lt_dlinit=no
38232 fi
38233
38234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38235       conftest$ac_exeext conftest.$ac_ext
38236 LIBS=$ac_check_lib_save_LIBS
38237 fi
38238 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38239 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38240 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38241
38242                 SLAPI_LIBS=-lltdl
38243                 LIBSLAPI=libslapi.a
38244                 LIBSLAPITOOLS=../libslapi.a
38245
38246 cat >>confdefs.h <<\_ACEOF
38247 #define HAVE_LIBLTDL 1
38248 _ACEOF
38249
38250
38251 else
38252   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38253 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38254    { (exit 1); exit 1; }; }
38255 fi
38256
38257
38258
38259 cat >>confdefs.h <<\_ACEOF
38260 #define LDAP_SLAPI 1
38261 _ACEOF
38262
38263 fi
38264
38265 if test "$ol_enable_debug" != no ; then
38266         if test "$ol_enable_debug" = traditional; then
38267
38268 cat >>confdefs.h <<\_ACEOF
38269 #define OLD_DEBUG 1
38270 _ACEOF
38271
38272         fi
38273
38274 cat >>confdefs.h <<\_ACEOF
38275 #define LDAP_DEBUG 1
38276 _ACEOF
38277
38278 fi
38279 if test "$ol_enable_syslog" = yes ; then
38280
38281 cat >>confdefs.h <<\_ACEOF
38282 #define LDAP_SYSLOG 1
38283 _ACEOF
38284
38285 fi
38286 if test "$ol_enable_proctitle" != no ; then
38287
38288 cat >>confdefs.h <<\_ACEOF
38289 #define LDAP_PROCTITLE 1
38290 _ACEOF
38291
38292 fi
38293 if test "$ol_enable_referrals" != no ; then
38294
38295 cat >>confdefs.h <<\_ACEOF
38296 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38297 _ACEOF
38298
38299 fi
38300 if test "$ol_enable_local" != no; then
38301
38302 cat >>confdefs.h <<\_ACEOF
38303 #define LDAP_PF_LOCAL 1
38304 _ACEOF
38305
38306 fi
38307 if test "$ol_link_ipv6" != no; then
38308
38309 cat >>confdefs.h <<\_ACEOF
38310 #define LDAP_PF_INET6 1
38311 _ACEOF
38312
38313 fi
38314 if test "$ol_enable_cleartext" != no ; then
38315
38316 cat >>confdefs.h <<\_ACEOF
38317 #define SLAPD_CLEARTEXT 1
38318 _ACEOF
38319
38320 fi
38321 if test "$ol_enable_crypt" != no ; then
38322
38323 cat >>confdefs.h <<\_ACEOF
38324 #define SLAPD_CRYPT 1
38325 _ACEOF
38326
38327 fi
38328 if test "$ol_link_spasswd" != no ; then
38329
38330 cat >>confdefs.h <<\_ACEOF
38331 #define SLAPD_SPASSWD 1
38332 _ACEOF
38333
38334 fi
38335 if test "$ol_enable_rlookups" != no ; then
38336
38337 cat >>confdefs.h <<\_ACEOF
38338 #define SLAPD_RLOOKUPS 1
38339 _ACEOF
38340
38341 fi
38342 if test "$ol_enable_aci" != no ; then
38343         if test $ol_enable_dynacl = no ; then
38344                 ol_enable_dynacl=yes
38345                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38346 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38347         fi
38348         if test "$ol_enable_aci" = mod ; then
38349                 MFLAG=SLAPD_MOD_DYNAMIC
38350                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38351 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38352    { (exit 1); exit 1; }; }
38353         else
38354                 MFLAG=SLAPD_MOD_STATIC
38355         fi
38356         WITH_ACI_ENABLED=$ol_enable_aci
38357
38358 cat >>confdefs.h <<_ACEOF
38359 #define SLAPD_ACI_ENABLED $MFLAG
38360 _ACEOF
38361
38362 else
38363         WITH_ACI_ENABLED=no
38364 fi
38365 if test "$ol_enable_dynacl" != no ; then
38366
38367 cat >>confdefs.h <<\_ACEOF
38368 #define SLAP_DYNACL 1
38369 _ACEOF
38370
38371 fi
38372
38373 if test "$ol_link_modules" != no ; then
38374
38375 cat >>confdefs.h <<\_ACEOF
38376 #define SLAPD_MODULES 1
38377 _ACEOF
38378
38379         BUILD_SLAPD=yes
38380         SLAPD_MODULES_LDFLAGS="-dlopen self"
38381 fi
38382
38383
38384 cat >>confdefs.h <<\_ACEOF
38385 #define SLAPD_MOD_STATIC 1
38386 _ACEOF
38387
38388
38389 cat >>confdefs.h <<\_ACEOF
38390 #define SLAPD_MOD_DYNAMIC 2
38391 _ACEOF
38392
38393
38394 if test "$ol_enable_monitor" != no ; then
38395         BUILD_SLAPD=yes
38396         BUILD_MONITOR=$ol_enable_monitor
38397         if test "$ol_enable_monitor" = mod ; then
38398                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38399                 MFLAG=SLAPD_MOD_DYNAMIC
38400         else
38401                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38402                 MFLAG=SLAPD_MOD_STATIC
38403         fi
38404
38405 cat >>confdefs.h <<_ACEOF
38406 #define SLAPD_MONITOR $MFLAG
38407 _ACEOF
38408
38409 fi
38410
38411 if test "$ol_enable_bdb" != no ; then
38412         BUILD_SLAPD=yes
38413         BUILD_BDB=$ol_enable_bdb
38414         if test "$ol_enable_bdb" = mod ; then
38415                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38416                 MFLAG=SLAPD_MOD_DYNAMIC
38417         else
38418                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38419                 MFLAG=SLAPD_MOD_STATIC
38420         fi
38421
38422 cat >>confdefs.h <<_ACEOF
38423 #define SLAPD_BDB $MFLAG
38424 _ACEOF
38425
38426 fi
38427
38428 if test "$ol_enable_dnssrv" != no ; then
38429         BUILD_SLAPD=yes
38430         BUILD_DNSSRV=$ol_enable_dnssrv
38431         if test "$ol_enable_dnssrv" = mod ; then
38432                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38433                 MFLAG=SLAPD_MOD_DYNAMIC
38434         else
38435                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38436                 MFLAG=SLAPD_MOD_STATIC
38437         fi
38438
38439 cat >>confdefs.h <<_ACEOF
38440 #define SLAPD_DNSSRV $MFLAG
38441 _ACEOF
38442
38443 fi
38444
38445 if test "$ol_enable_hdb" != no ; then
38446         BUILD_SLAPD=yes
38447         BUILD_HDB=$ol_enable_hdb
38448         if test "$ol_enable_hdb" = mod ; then
38449                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38450                 MFLAG=SLAPD_MOD_DYNAMIC
38451         else
38452                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38453                 MFLAG=SLAPD_MOD_STATIC
38454         fi
38455
38456 cat >>confdefs.h <<_ACEOF
38457 #define SLAPD_HDB $MFLAG
38458 _ACEOF
38459
38460 fi
38461
38462 if test "$ol_enable_ldap" != no ; then
38463         BUILD_SLAPD=yes
38464         BUILD_LDAP=$ol_enable_ldap
38465         if test "$ol_enable_ldap" = mod ; then
38466                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38467                 MFLAG=SLAPD_MOD_DYNAMIC
38468         else
38469                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38470                 MFLAG=SLAPD_MOD_STATIC
38471         fi
38472
38473 cat >>confdefs.h <<_ACEOF
38474 #define SLAPD_LDAP $MFLAG
38475 _ACEOF
38476
38477 fi
38478
38479 if test "$ol_enable_meta" != no ; then
38480         BUILD_SLAPD=yes
38481         BUILD_META=$ol_enable_meta
38482         BUILD_REWRITE=yes
38483         if test "$ol_enable_meta" = mod ; then
38484                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38485                 MFLAG=SLAPD_MOD_DYNAMIC
38486         else
38487                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38488                 MFLAG=SLAPD_MOD_STATIC
38489         fi
38490
38491 cat >>confdefs.h <<_ACEOF
38492 #define SLAPD_META $MFLAG
38493 _ACEOF
38494
38495 fi
38496
38497 if test "$ol_enable_ndb" != no ; then
38498         BUILD_SLAPD=yes
38499         BUILD_NDB=$ol_enable_ndb
38500         if test "$ol_enable_ndb" = mod ; then
38501                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38502                 MFLAG=SLAPD_MOD_DYNAMIC
38503         else
38504                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38505                 MFLAG=SLAPD_MOD_STATIC
38506         fi
38507
38508 cat >>confdefs.h <<_ACEOF
38509 #define SLAPD_NDB $MFLAG
38510 _ACEOF
38511
38512 fi
38513
38514 if test "$ol_enable_null" != no ; then
38515         BUILD_SLAPD=yes
38516         BUILD_NULL=$ol_enable_null
38517         if test "$ol_enable_null" = mod ; then
38518                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38519                 MFLAG=SLAPD_MOD_DYNAMIC
38520         else
38521                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38522                 MFLAG=SLAPD_MOD_STATIC
38523         fi
38524
38525 cat >>confdefs.h <<_ACEOF
38526 #define SLAPD_NULL $MFLAG
38527 _ACEOF
38528
38529 fi
38530
38531 if test "$ol_enable_passwd" != no ; then
38532         BUILD_SLAPD=yes
38533         BUILD_PASSWD=$ol_enable_passwd
38534         if test "$ol_enable_passwd" = mod ; then
38535                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38536                 MFLAG=SLAPD_MOD_DYNAMIC
38537         else
38538                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38539                 MFLAG=SLAPD_MOD_STATIC
38540         fi
38541
38542 cat >>confdefs.h <<_ACEOF
38543 #define SLAPD_PASSWD $MFLAG
38544 _ACEOF
38545
38546 fi
38547
38548 if test "$ol_link_perl" != no ; then
38549         BUILD_SLAPD=yes
38550         BUILD_PERL=$ol_enable_perl
38551         if test "$ol_enable_perl" = mod ; then
38552                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38553                 MFLAG=SLAPD_MOD_DYNAMIC
38554         else
38555                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38556                 MFLAG=SLAPD_MOD_STATIC
38557         fi
38558
38559 cat >>confdefs.h <<_ACEOF
38560 #define SLAPD_PERL $MFLAG
38561 _ACEOF
38562
38563 fi
38564
38565 if test "$ol_enable_relay" != no ; then
38566         BUILD_SLAPD=yes
38567         BUILD_RELAY=$ol_enable_relay
38568         if test "$ol_enable_relay" = mod ; then
38569                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38570                 MFLAG=SLAPD_MOD_DYNAMIC
38571         else
38572                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38573                 MFLAG=SLAPD_MOD_STATIC
38574         fi
38575
38576 cat >>confdefs.h <<_ACEOF
38577 #define SLAPD_RELAY $MFLAG
38578 _ACEOF
38579
38580 fi
38581
38582 if test "$ol_enable_shell" != no ; then
38583         if test "$ol_link_threads" != no ; then
38584                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38585 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38586         fi
38587         BUILD_SLAPD=yes
38588         BUILD_SHELL=$ol_enable_shell
38589         if test "$ol_enable_shell" = mod ; then
38590                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38591                 MFLAG=SLAPD_MOD_DYNAMIC
38592         else
38593                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38594                 MFLAG=SLAPD_MOD_STATIC
38595         fi
38596
38597 cat >>confdefs.h <<_ACEOF
38598 #define SLAPD_SHELL $MFLAG
38599 _ACEOF
38600
38601 fi
38602
38603 if test "$ol_enable_sock" != no ; then
38604         BUILD_SLAPD=yes
38605         BUILD_SOCK=$ol_enable_sock
38606         if test "$ol_enable_sock" = mod ; then
38607                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38608                 MFLAG=SLAPD_MOD_DYNAMIC
38609         else
38610                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38611                 MFLAG=SLAPD_MOD_STATIC
38612         fi
38613
38614 cat >>confdefs.h <<_ACEOF
38615 #define SLAPD_SOCK $MFLAG
38616 _ACEOF
38617
38618 fi
38619
38620 if test "$ol_link_sql" != no ; then
38621         BUILD_SLAPD=yes
38622         BUILD_SQL=$ol_enable_sql
38623         if test "$ol_enable_sql" = mod; then
38624                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38625                 MFLAG=SLAPD_MOD_DYNAMIC
38626         else
38627                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38628                 MFLAG=SLAPD_MOD_STATIC
38629         fi
38630
38631 cat >>confdefs.h <<_ACEOF
38632 #define SLAPD_SQL $MFLAG
38633 _ACEOF
38634
38635 fi
38636
38637 if test "$ol_enable_accesslog" != no ; then
38638         BUILD_ACCESSLOG=$ol_enable_accesslog
38639         if test "$ol_enable_accesslog" = mod ; then
38640                 MFLAG=SLAPD_MOD_DYNAMIC
38641                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38642         else
38643                 MFLAG=SLAPD_MOD_STATIC
38644                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38645         fi
38646
38647 cat >>confdefs.h <<_ACEOF
38648 #define SLAPD_OVER_ACCESSLOG $MFLAG
38649 _ACEOF
38650
38651 fi
38652
38653 if test "$ol_enable_auditlog" != no ; then
38654         BUILD_AUDITLOG=$ol_enable_auditlog
38655         if test "$ol_enable_auditlog" = mod ; then
38656                 MFLAG=SLAPD_MOD_DYNAMIC
38657                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38658         else
38659                 MFLAG=SLAPD_MOD_STATIC
38660                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38661         fi
38662
38663 cat >>confdefs.h <<_ACEOF
38664 #define SLAPD_OVER_AUDITLOG $MFLAG
38665 _ACEOF
38666
38667 fi
38668
38669 if test "$ol_enable_collect" != no ; then
38670         BUILD_COLLECT=$ol_enable_collect
38671         if test "$ol_enable_collect" = mod ; then
38672                 MFLAG=SLAPD_MOD_DYNAMIC
38673                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38674         else
38675                 MFLAG=SLAPD_MOD_STATIC
38676                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38677         fi
38678
38679 cat >>confdefs.h <<_ACEOF
38680 #define SLAPD_OVER_COLLECT $MFLAG
38681 _ACEOF
38682
38683 fi
38684
38685 if test "$ol_enable_constraint" != no ; then
38686         BUILD_CONSTRAINT=$ol_enable_constraint
38687         if test "$ol_enable_constraint" = mod ; then
38688                 MFLAG=SLAPD_MOD_DYNAMIC
38689                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38690         else
38691                 MFLAG=SLAPD_MOD_STATIC
38692                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38693         fi
38694
38695 cat >>confdefs.h <<_ACEOF
38696 #define SLAPD_OVER_CONSTRAINT $MFLAG
38697 _ACEOF
38698
38699 fi
38700
38701 if test "$ol_enable_dds" != no ; then
38702         BUILD_DDS=$ol_enable_dds
38703         if test "$ol_enable_dds" = mod ; then
38704                 MFLAG=SLAPD_MOD_DYNAMIC
38705                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38706         else
38707                 MFLAG=SLAPD_MOD_STATIC
38708                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38709         fi
38710
38711 cat >>confdefs.h <<_ACEOF
38712 #define SLAPD_OVER_DDS $MFLAG
38713 _ACEOF
38714
38715 fi
38716
38717 if test "$ol_enable_deref" != no ; then
38718         BUILD_DDS=$ol_enable_deref
38719         if test "$ol_enable_deref" = mod ; then
38720                 MFLAG=SLAPD_MOD_DYNAMIC
38721                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38722         else
38723                 MFLAG=SLAPD_MOD_STATIC
38724                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38725         fi
38726
38727 cat >>confdefs.h <<_ACEOF
38728 #define SLAPD_OVER_DEREF $MFLAG
38729 _ACEOF
38730
38731 fi
38732
38733 if test "$ol_enable_dyngroup" != no ; then
38734         BUILD_DYNGROUP=$ol_enable_dyngroup
38735         if test "$ol_enable_dyngroup" = mod ; then
38736                 MFLAG=SLAPD_MOD_DYNAMIC
38737                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38738         else
38739                 MFLAG=SLAPD_MOD_STATIC
38740                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38741         fi
38742
38743 cat >>confdefs.h <<_ACEOF
38744 #define SLAPD_OVER_DYNGROUP $MFLAG
38745 _ACEOF
38746
38747 fi
38748
38749 if test "$ol_enable_dynlist" != no ; then
38750         BUILD_DYNLIST=$ol_enable_dynlist
38751         if test "$ol_enable_dynlist" = mod ; then
38752                 MFLAG=SLAPD_MOD_DYNAMIC
38753                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38754         else
38755                 MFLAG=SLAPD_MOD_STATIC
38756                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38757         fi
38758
38759 cat >>confdefs.h <<_ACEOF
38760 #define SLAPD_OVER_DYNLIST $MFLAG
38761 _ACEOF
38762
38763 fi
38764
38765 if test "$ol_enable_memberof" != no ; then
38766         BUILD_MEMBEROF=$ol_enable_memberof
38767         if test "$ol_enable_memberof" = mod ; then
38768                 MFLAG=SLAPD_MOD_DYNAMIC
38769                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38770         else
38771                 MFLAG=SLAPD_MOD_STATIC
38772                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38773         fi
38774
38775 cat >>confdefs.h <<_ACEOF
38776 #define SLAPD_OVER_MEMBEROF $MFLAG
38777 _ACEOF
38778
38779 fi
38780
38781 if test "$ol_enable_ppolicy" != no ; then
38782         BUILD_PPOLICY=$ol_enable_ppolicy
38783         if test "$ol_enable_ppolicy" = mod ; then
38784                 MFLAG=SLAPD_MOD_DYNAMIC
38785                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38786         else
38787                 MFLAG=SLAPD_MOD_STATIC
38788                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38789         fi
38790
38791 cat >>confdefs.h <<_ACEOF
38792 #define SLAPD_OVER_PPOLICY $MFLAG
38793 _ACEOF
38794
38795 fi
38796
38797 if test "$ol_enable_proxycache" != no ; then
38798         BUILD_PROXYCACHE=$ol_enable_proxycache
38799         if test "$ol_enable_proxycache" = mod ; then
38800                 MFLAG=SLAPD_MOD_DYNAMIC
38801                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38802         else
38803                 MFLAG=SLAPD_MOD_STATIC
38804                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38805         fi
38806
38807 cat >>confdefs.h <<_ACEOF
38808 #define SLAPD_OVER_PROXYCACHE $MFLAG
38809 _ACEOF
38810
38811 fi
38812
38813 if test "$ol_enable_refint" != no ; then
38814         BUILD_REFINT=$ol_enable_refint
38815         if test "$ol_enable_refint" = mod ; then
38816                 MFLAG=SLAPD_MOD_DYNAMIC
38817                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38818         else
38819                 MFLAG=SLAPD_MOD_STATIC
38820                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38821         fi
38822
38823 cat >>confdefs.h <<_ACEOF
38824 #define SLAPD_OVER_REFINT $MFLAG
38825 _ACEOF
38826
38827 fi
38828
38829 if test "$ol_enable_retcode" != no ; then
38830         BUILD_RETCODE=$ol_enable_retcode
38831         if test "$ol_enable_retcode" = mod ; then
38832                 MFLAG=SLAPD_MOD_DYNAMIC
38833                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38834         else
38835                 MFLAG=SLAPD_MOD_STATIC
38836                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38837         fi
38838
38839 cat >>confdefs.h <<_ACEOF
38840 #define SLAPD_OVER_RETCODE $MFLAG
38841 _ACEOF
38842
38843 fi
38844
38845 if test "$ol_enable_rwm" != no ; then
38846         BUILD_REWRITE=yes
38847         BUILD_RWM=$ol_enable_rwm
38848         if test "$ol_enable_rwm" = mod ; then
38849                 MFLAG=SLAPD_MOD_DYNAMIC
38850                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38851         else
38852                 MFLAG=SLAPD_MOD_STATIC
38853                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38854         fi
38855
38856 cat >>confdefs.h <<_ACEOF
38857 #define SLAPD_OVER_RWM $MFLAG
38858 _ACEOF
38859
38860 fi
38861
38862 if test "$ol_enable_seqmod" != no ; then
38863         BUILD_SEQMOD=$ol_enable_seqmod
38864         if test "$ol_enable_seqmod" = mod ; then
38865                 MFLAG=SLAPD_MOD_DYNAMIC
38866                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38867         else
38868                 MFLAG=SLAPD_MOD_STATIC
38869                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38870         fi
38871
38872 cat >>confdefs.h <<_ACEOF
38873 #define SLAPD_OVER_SEQMOD $MFLAG
38874 _ACEOF
38875
38876 fi
38877
38878 if test "$ol_enable_syncprov" != no ; then
38879         BUILD_SYNCPROV=$ol_enable_syncprov
38880         if test "$ol_enable_syncprov" = mod ; then
38881                 MFLAG=SLAPD_MOD_DYNAMIC
38882                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38883         else
38884                 MFLAG=SLAPD_MOD_STATIC
38885                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38886         fi
38887
38888 cat >>confdefs.h <<_ACEOF
38889 #define SLAPD_OVER_SYNCPROV $MFLAG
38890 _ACEOF
38891
38892 fi
38893
38894 if test "$ol_enable_translucent" != no ; then
38895         BUILD_TRANSLUCENT=$ol_enable_translucent
38896         if test "$ol_enable_translucent" = mod ; then
38897                 MFLAG=SLAPD_MOD_DYNAMIC
38898                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38899         else
38900                 MFLAG=SLAPD_MOD_STATIC
38901                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38902         fi
38903
38904 cat >>confdefs.h <<_ACEOF
38905 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38906 _ACEOF
38907
38908 fi
38909
38910 if test "$ol_enable_unique" != no ; then
38911         BUILD_UNIQUE=$ol_enable_unique
38912         if test "$ol_enable_unique" = mod ; then
38913                 MFLAG=SLAPD_MOD_DYNAMIC
38914                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38915         else
38916                 MFLAG=SLAPD_MOD_STATIC
38917                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38918         fi
38919
38920 cat >>confdefs.h <<_ACEOF
38921 #define SLAPD_OVER_UNIQUE $MFLAG
38922 _ACEOF
38923
38924 fi
38925
38926 if test "$ol_enable_valsort" != no ; then
38927         BUILD_VALSORT=$ol_enable_valsort
38928         if test "$ol_enable_valsort" = mod ; then
38929                 MFLAG=SLAPD_MOD_DYNAMIC
38930                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38931         else
38932                 MFLAG=SLAPD_MOD_STATIC
38933                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38934         fi
38935
38936 cat >>confdefs.h <<_ACEOF
38937 #define SLAPD_OVER_VALSORT $MFLAG
38938 _ACEOF
38939
38940 fi
38941
38942 if test "$ol_enable_rewrite" != no ; then
38943
38944 cat >>confdefs.h <<\_ACEOF
38945 #define ENABLE_REWRITE 1
38946 _ACEOF
38947
38948         BUILD_REWRITE=yes
38949 fi
38950
38951 if test "$ol_enable_slapi" != no ; then
38952
38953 cat >>confdefs.h <<\_ACEOF
38954 #define ENABLE_SLAPI 1
38955 _ACEOF
38956
38957         BUILD_SLAPI=yes
38958         SLAPD_SLAPI_DEPEND=libslapi.a
38959 fi
38960
38961
38962
38963 if test "$ac_cv_mingw32" = yes ; then
38964         PLAT=NT
38965         SLAPD_MODULES_LDFLAGS=
38966 else
38967         PLAT=UNIX
38968 fi
38969
38970
38971
38972
38973
38974
38975
38976
38977
38978
38979
38980
38981
38982
38983
38984
38985
38986
38987
38988
38989
38990
38991
38992
38993
38994
38995
38996
38997
38998
38999
39000
39001
39002
39003
39004
39005
39006
39007
39008
39009
39010
39011
39012
39013
39014
39015
39016
39017
39018
39019
39020
39021
39022
39023
39024
39025
39026
39027
39028
39029
39030
39031
39032
39033
39034
39035
39036
39037
39038
39039
39040
39041
39042
39043
39044
39045
39046
39047
39048
39049
39050
39051
39052
39053
39054
39055
39056
39057
39058
39059 # Check whether --with-xxinstall was given.
39060 if test "${with_xxinstall+set}" = set; then
39061   withval=$with_xxinstall;
39062 fi
39063
39064
39065
39066 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"
39067
39068
39069 ac_config_commands="$ac_config_commands default"
39070
39071
39072
39073 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39074 # Let make expand exec_prefix.
39075 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39076
39077 DEFS=-DHAVE_CONFIG_H
39078
39079 ac_libobjs=
39080 ac_ltlibobjs=
39081 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39082   # 1. Remove the extension, and $U if already installed.
39083   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39084   ac_i=`echo "$ac_i" | sed "$ac_script"`
39085   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39086   #    will be set to the directory where LIBOBJS objects are built.
39087   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39088   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39089 done
39090 LIBOBJS=$ac_libobjs
39091
39092 LTLIBOBJS=$ac_ltlibobjs
39093
39094
39095 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39096   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39097 Usually this means the macro was only invoked conditionally." >&5
39098 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39099 Usually this means the macro was only invoked conditionally." >&2;}
39100    { (exit 1); exit 1; }; }
39101 fi
39102 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39103   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39104 Usually this means the macro was only invoked conditionally." >&5
39105 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39106 Usually this means the macro was only invoked conditionally." >&2;}
39107    { (exit 1); exit 1; }; }
39108 fi
39109 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39110   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39111 Usually this means the macro was only invoked conditionally." >&5
39112 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39113 Usually this means the macro was only invoked conditionally." >&2;}
39114    { (exit 1); exit 1; }; }
39115 fi
39116
39117 : ${CONFIG_STATUS=./config.status}
39118 ac_clean_files_save=$ac_clean_files
39119 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39120 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39121 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39122 cat >$CONFIG_STATUS <<_ACEOF
39123 #! $SHELL
39124 # Generated by $as_me.
39125 # Run this file to recreate the current configuration.
39126 # Compiler output produced by configure, useful for debugging
39127 # configure, is in config.log if it exists.
39128
39129 debug=false
39130 ac_cs_recheck=false
39131 ac_cs_silent=false
39132 SHELL=\${CONFIG_SHELL-$SHELL}
39133 _ACEOF
39134
39135 cat >>$CONFIG_STATUS <<\_ACEOF
39136 ## --------------------- ##
39137 ## M4sh Initialization.  ##
39138 ## --------------------- ##
39139
39140 # Be more Bourne compatible
39141 DUALCASE=1; export DUALCASE # for MKS sh
39142 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39143   emulate sh
39144   NULLCMD=:
39145   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39146   # is contrary to our usage.  Disable this feature.
39147   alias -g '${1+"$@"}'='"$@"'
39148   setopt NO_GLOB_SUBST
39149 else
39150   case `(set -o) 2>/dev/null` in
39151   *posix*) set -o posix ;;
39152 esac
39153
39154 fi
39155
39156
39157
39158
39159 # PATH needs CR
39160 # Avoid depending upon Character Ranges.
39161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39164 as_cr_digits='0123456789'
39165 as_cr_alnum=$as_cr_Letters$as_cr_digits
39166
39167 # The user is always right.
39168 if test "${PATH_SEPARATOR+set}" != set; then
39169   echo "#! /bin/sh" >conf$$.sh
39170   echo  "exit 0"   >>conf$$.sh
39171   chmod +x conf$$.sh
39172   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39173     PATH_SEPARATOR=';'
39174   else
39175     PATH_SEPARATOR=:
39176   fi
39177   rm -f conf$$.sh
39178 fi
39179
39180 # Support unset when possible.
39181 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39182   as_unset=unset
39183 else
39184   as_unset=false
39185 fi
39186
39187
39188 # IFS
39189 # We need space, tab and new line, in precisely that order.  Quoting is
39190 # there to prevent editors from complaining about space-tab.
39191 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39192 # splitting by setting IFS to empty value.)
39193 as_nl='
39194 '
39195 IFS=" ""        $as_nl"
39196
39197 # Find who we are.  Look in the path if we contain no directory separator.
39198 case $0 in
39199   *[\\/]* ) as_myself=$0 ;;
39200   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39201 for as_dir in $PATH
39202 do
39203   IFS=$as_save_IFS
39204   test -z "$as_dir" && as_dir=.
39205   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39206 done
39207 IFS=$as_save_IFS
39208
39209      ;;
39210 esac
39211 # We did not find ourselves, most probably we were run as `sh COMMAND'
39212 # in which case we are not to be found in the path.
39213 if test "x$as_myself" = x; then
39214   as_myself=$0
39215 fi
39216 if test ! -f "$as_myself"; then
39217   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39218   { (exit 1); exit 1; }
39219 fi
39220
39221 # Work around bugs in pre-3.0 UWIN ksh.
39222 for as_var in ENV MAIL MAILPATH
39223 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39224 done
39225 PS1='$ '
39226 PS2='> '
39227 PS4='+ '
39228
39229 # NLS nuisances.
39230 for as_var in \
39231   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39232   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39233   LC_TELEPHONE LC_TIME
39234 do
39235   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39236     eval $as_var=C; export $as_var
39237   else
39238     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39239   fi
39240 done
39241
39242 # Required to use basename.
39243 if expr a : '\(a\)' >/dev/null 2>&1 &&
39244    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39245   as_expr=expr
39246 else
39247   as_expr=false
39248 fi
39249
39250 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39251   as_basename=basename
39252 else
39253   as_basename=false
39254 fi
39255
39256
39257 # Name of the executable.
39258 as_me=`$as_basename -- "$0" ||
39259 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39260          X"$0" : 'X\(//\)$' \| \
39261          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39262 echo X/"$0" |
39263     sed '/^.*\/\([^/][^/]*\)\/*$/{
39264             s//\1/
39265             q
39266           }
39267           /^X\/\(\/\/\)$/{
39268             s//\1/
39269             q
39270           }
39271           /^X\/\(\/\).*/{
39272             s//\1/
39273             q
39274           }
39275           s/.*/./; q'`
39276
39277 # CDPATH.
39278 $as_unset CDPATH
39279
39280
39281
39282   as_lineno_1=$LINENO
39283   as_lineno_2=$LINENO
39284   test "x$as_lineno_1" != "x$as_lineno_2" &&
39285   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39286
39287   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39288   # uniformly replaced by the line number.  The first 'sed' inserts a
39289   # line-number line after each line using $LINENO; the second 'sed'
39290   # does the real work.  The second script uses 'N' to pair each
39291   # line-number line with the line containing $LINENO, and appends
39292   # trailing '-' during substitution so that $LINENO is not a special
39293   # case at line end.
39294   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39295   # scripts with optimization help from Paolo Bonzini.  Blame Lee
39296   # E. McMahon (1931-1989) for sed's syntax.  :-)
39297   sed -n '
39298     p
39299     /[$]LINENO/=
39300   ' <$as_myself |
39301     sed '
39302       s/[$]LINENO.*/&-/
39303       t lineno
39304       b
39305       :lineno
39306       N
39307       :loop
39308       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39309       t loop
39310       s/-\n.*//
39311     ' >$as_me.lineno &&
39312   chmod +x "$as_me.lineno" ||
39313     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39314    { (exit 1); exit 1; }; }
39315
39316   # Don't try to exec as it changes $[0], causing all sort of problems
39317   # (the dirname of $[0] is not the place where we might find the
39318   # original and so on.  Autoconf is especially sensitive to this).
39319   . "./$as_me.lineno"
39320   # Exit status is that of the last command.
39321   exit
39322 }
39323
39324
39325 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39326   as_dirname=dirname
39327 else
39328   as_dirname=false
39329 fi
39330
39331 ECHO_C= ECHO_N= ECHO_T=
39332 case `echo -n x` in
39333 -n*)
39334   case `echo 'x\c'` in
39335   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
39336   *)   ECHO_C='\c';;
39337   esac;;
39338 *)
39339   ECHO_N='-n';;
39340 esac
39341
39342 if expr a : '\(a\)' >/dev/null 2>&1 &&
39343    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39344   as_expr=expr
39345 else
39346   as_expr=false
39347 fi
39348
39349 rm -f conf$$ conf$$.exe conf$$.file
39350 if test -d conf$$.dir; then
39351   rm -f conf$$.dir/conf$$.file
39352 else
39353   rm -f conf$$.dir
39354   mkdir conf$$.dir
39355 fi
39356 echo >conf$$.file
39357 if ln -s conf$$.file conf$$ 2>/dev/null; then
39358   as_ln_s='ln -s'
39359   # ... but there are two gotchas:
39360   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39361   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39362   # In both cases, we have to default to `cp -p'.
39363   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39364     as_ln_s='cp -p'
39365 elif ln conf$$.file conf$$ 2>/dev/null; then
39366   as_ln_s=ln
39367 else
39368   as_ln_s='cp -p'
39369 fi
39370 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39371 rmdir conf$$.dir 2>/dev/null
39372
39373 if mkdir -p . 2>/dev/null; then
39374   as_mkdir_p=:
39375 else
39376   test -d ./-p && rmdir ./-p
39377   as_mkdir_p=false
39378 fi
39379
39380 if test -x / >/dev/null 2>&1; then
39381   as_test_x='test -x'
39382 else
39383   if ls -dL / >/dev/null 2>&1; then
39384     as_ls_L_option=L
39385   else
39386     as_ls_L_option=
39387   fi
39388   as_test_x='
39389     eval sh -c '\''
39390       if test -d "$1"; then
39391         test -d "$1/.";
39392       else
39393         case $1 in
39394         -*)set "./$1";;
39395         esac;
39396         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39397         ???[sx]*):;;*)false;;esac;fi
39398     '\'' sh
39399   '
39400 fi
39401 as_executable_p=$as_test_x
39402
39403 # Sed expression to map a string onto a valid CPP name.
39404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39405
39406 # Sed expression to map a string onto a valid variable name.
39407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39408
39409
39410 exec 6>&1
39411
39412 # Save the log message, to keep $[0] and so on meaningful, and to
39413 # report actual input values of CONFIG_FILES etc. instead of their
39414 # values after options handling.
39415 ac_log="
39416 This file was extended by $as_me, which was
39417 generated by GNU Autoconf 2.61.  Invocation command line was
39418
39419   CONFIG_FILES    = $CONFIG_FILES
39420   CONFIG_HEADERS  = $CONFIG_HEADERS
39421   CONFIG_LINKS    = $CONFIG_LINKS
39422   CONFIG_COMMANDS = $CONFIG_COMMANDS
39423   $ $0 $@
39424
39425 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39426 "
39427
39428 _ACEOF
39429
39430 cat >>$CONFIG_STATUS <<_ACEOF
39431 # Files that config.status was made for.
39432 config_files="$ac_config_files"
39433 config_headers="$ac_config_headers"
39434 config_commands="$ac_config_commands"
39435
39436 _ACEOF
39437
39438 cat >>$CONFIG_STATUS <<\_ACEOF
39439 ac_cs_usage="\
39440 \`$as_me' instantiates files from templates according to the
39441 current configuration.
39442
39443 Usage: $0 [OPTIONS] [FILE]...
39444
39445   -h, --help       print this help, then exit
39446   -V, --version    print version number and configuration settings, then exit
39447   -q, --quiet      do not print progress messages
39448   -d, --debug      don't remove temporary files
39449       --recheck    update $as_me by reconfiguring in the same conditions
39450   --file=FILE[:TEMPLATE]
39451                    instantiate the configuration file FILE
39452   --header=FILE[:TEMPLATE]
39453                    instantiate the configuration header FILE
39454
39455 Configuration files:
39456 $config_files
39457
39458 Configuration headers:
39459 $config_headers
39460
39461 Configuration commands:
39462 $config_commands
39463
39464 Report bugs to <bug-autoconf@gnu.org>."
39465
39466 _ACEOF
39467 cat >>$CONFIG_STATUS <<_ACEOF
39468 ac_cs_version="\\
39469 config.status
39470 configured by $0, generated by GNU Autoconf 2.61,
39471   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39472
39473 Copyright (C) 2006 Free Software Foundation, Inc.
39474 This config.status script is free software; the Free Software Foundation
39475 gives unlimited permission to copy, distribute and modify it."
39476
39477 ac_pwd='$ac_pwd'
39478 srcdir='$srcdir'
39479 INSTALL='$INSTALL'
39480 _ACEOF
39481
39482 cat >>$CONFIG_STATUS <<\_ACEOF
39483 # If no file are specified by the user, then we need to provide default
39484 # value.  By we need to know if files were specified by the user.
39485 ac_need_defaults=:
39486 while test $# != 0
39487 do
39488   case $1 in
39489   --*=*)
39490     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39491     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39492     ac_shift=:
39493     ;;
39494   *)
39495     ac_option=$1
39496     ac_optarg=$2
39497     ac_shift=shift
39498     ;;
39499   esac
39500
39501   case $ac_option in
39502   # Handling of the options.
39503   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39504     ac_cs_recheck=: ;;
39505   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39506     echo "$ac_cs_version"; exit ;;
39507   --debug | --debu | --deb | --de | --d | -d )
39508     debug=: ;;
39509   --file | --fil | --fi | --f )
39510     $ac_shift
39511     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39512     ac_need_defaults=false;;
39513   --header | --heade | --head | --hea )
39514     $ac_shift
39515     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39516     ac_need_defaults=false;;
39517   --he | --h)
39518     # Conflict between --help and --header
39519     { echo "$as_me: error: ambiguous option: $1
39520 Try \`$0 --help' for more information." >&2
39521    { (exit 1); exit 1; }; };;
39522   --help | --hel | -h )
39523     echo "$ac_cs_usage"; exit ;;
39524   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39525   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39526     ac_cs_silent=: ;;
39527
39528   # This is an error.
39529   -*) { echo "$as_me: error: unrecognized option: $1
39530 Try \`$0 --help' for more information." >&2
39531    { (exit 1); exit 1; }; } ;;
39532
39533   *) ac_config_targets="$ac_config_targets $1"
39534      ac_need_defaults=false ;;
39535
39536   esac
39537   shift
39538 done
39539
39540 ac_configure_extra_args=
39541
39542 if $ac_cs_silent; then
39543   exec 6>/dev/null
39544   ac_configure_extra_args="$ac_configure_extra_args --silent"
39545 fi
39546
39547 _ACEOF
39548 cat >>$CONFIG_STATUS <<_ACEOF
39549 if \$ac_cs_recheck; then
39550   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39551   CONFIG_SHELL=$SHELL
39552   export CONFIG_SHELL
39553   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39554 fi
39555
39556 _ACEOF
39557 cat >>$CONFIG_STATUS <<\_ACEOF
39558 exec 5>>config.log
39559 {
39560   echo
39561   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39562 ## Running $as_me. ##
39563 _ASBOX
39564   echo "$ac_log"
39565 } >&5
39566
39567 _ACEOF
39568 cat >>$CONFIG_STATUS <<_ACEOF
39569 #
39570 # INIT-COMMANDS
39571 #
39572 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39573
39574 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39575 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39576
39577
39578 _ACEOF
39579
39580 cat >>$CONFIG_STATUS <<\_ACEOF
39581
39582 # Handling of arguments.
39583 for ac_config_target in $ac_config_targets
39584 do
39585   case $ac_config_target in
39586     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39587     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39588     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39589     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39590     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39591     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39592     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39593     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39594     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39595     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39596     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39597     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39598     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39599     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39600     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39601     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39602     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39603     "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" ;;
39604     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39605     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39606     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39607     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39608     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39609     "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" ;;
39610     "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" ;;
39611     "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" ;;
39612     "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" ;;
39613     "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" ;;
39614     "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" ;;
39615     "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" ;;
39616     "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" ;;
39617     "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" ;;
39618     "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" ;;
39619     "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" ;;
39620     "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" ;;
39621     "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" ;;
39622     "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" ;;
39623     "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" ;;
39624     "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" ;;
39625     "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" ;;
39626     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39627     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39628     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39629     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39630     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39631
39632   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39633 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39634    { (exit 1); exit 1; }; };;
39635   esac
39636 done
39637
39638
39639 # If the user did not use the arguments to specify the items to instantiate,
39640 # then the envvar interface is used.  Set only those that are not.
39641 # We use the long form for the default assignment because of an extremely
39642 # bizarre bug on SunOS 4.1.3.
39643 if $ac_need_defaults; then
39644   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39645   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39646   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39647 fi
39648
39649 # Have a temporary directory for convenience.  Make it in the build tree
39650 # simply because there is no reason against having it here, and in addition,
39651 # creating and moving files from /tmp can sometimes cause problems.
39652 # Hook for its removal unless debugging.
39653 # Note that there is a small window in which the directory will not be cleaned:
39654 # after its creation but before its name has been assigned to `$tmp'.
39655 $debug ||
39656 {
39657   tmp=
39658   trap 'exit_status=$?
39659   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39660 ' 0
39661   trap '{ (exit 1); exit 1; }' 1 2 13 15
39662 }
39663 # Create a (secure) tmp directory for tmp files.
39664
39665 {
39666   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39667   test -n "$tmp" && test -d "$tmp"
39668 }  ||
39669 {
39670   tmp=./conf$$-$RANDOM
39671   (umask 077 && mkdir "$tmp")
39672 } ||
39673 {
39674    echo "$me: cannot create a temporary directory in ." >&2
39675    { (exit 1); exit 1; }
39676 }
39677
39678 #
39679 # Set up the sed scripts for CONFIG_FILES section.
39680 #
39681
39682 # No need to generate the scripts if there are no CONFIG_FILES.
39683 # This happens for instance when ./config.status config.h
39684 if test -n "$CONFIG_FILES"; then
39685
39686 _ACEOF
39687
39688
39689
39690 ac_delim='%!_!# '
39691 for ac_last_try in false false false false false :; do
39692   cat >conf$$subs.sed <<_ACEOF
39693 SHELL!$SHELL$ac_delim
39694 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39695 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39696 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39697 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39698 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39699 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39700 exec_prefix!$exec_prefix$ac_delim
39701 prefix!$prefix$ac_delim
39702 program_transform_name!$program_transform_name$ac_delim
39703 bindir!$bindir$ac_delim
39704 sbindir!$sbindir$ac_delim
39705 libexecdir!$libexecdir$ac_delim
39706 datarootdir!$datarootdir$ac_delim
39707 datadir!$datadir$ac_delim
39708 sysconfdir!$sysconfdir$ac_delim
39709 sharedstatedir!$sharedstatedir$ac_delim
39710 localstatedir!$localstatedir$ac_delim
39711 includedir!$includedir$ac_delim
39712 oldincludedir!$oldincludedir$ac_delim
39713 docdir!$docdir$ac_delim
39714 infodir!$infodir$ac_delim
39715 htmldir!$htmldir$ac_delim
39716 dvidir!$dvidir$ac_delim
39717 pdfdir!$pdfdir$ac_delim
39718 psdir!$psdir$ac_delim
39719 libdir!$libdir$ac_delim
39720 localedir!$localedir$ac_delim
39721 mandir!$mandir$ac_delim
39722 DEFS!$DEFS$ac_delim
39723 ECHO_C!$ECHO_C$ac_delim
39724 ECHO_N!$ECHO_N$ac_delim
39725 ECHO_T!$ECHO_T$ac_delim
39726 LIBS!$LIBS$ac_delim
39727 build_alias!$build_alias$ac_delim
39728 host_alias!$host_alias$ac_delim
39729 target_alias!$target_alias$ac_delim
39730 build!$build$ac_delim
39731 build_cpu!$build_cpu$ac_delim
39732 build_vendor!$build_vendor$ac_delim
39733 build_os!$build_os$ac_delim
39734 host!$host$ac_delim
39735 host_cpu!$host_cpu$ac_delim
39736 host_vendor!$host_vendor$ac_delim
39737 host_os!$host_os$ac_delim
39738 target!$target$ac_delim
39739 target_cpu!$target_cpu$ac_delim
39740 target_vendor!$target_vendor$ac_delim
39741 target_os!$target_os$ac_delim
39742 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39743 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39744 INSTALL_DATA!$INSTALL_DATA$ac_delim
39745 CYGPATH_W!$CYGPATH_W$ac_delim
39746 PACKAGE!$PACKAGE$ac_delim
39747 VERSION!$VERSION$ac_delim
39748 ACLOCAL!$ACLOCAL$ac_delim
39749 AUTOCONF!$AUTOCONF$ac_delim
39750 AUTOMAKE!$AUTOMAKE$ac_delim
39751 AUTOHEADER!$AUTOHEADER$ac_delim
39752 MAKEINFO!$MAKEINFO$ac_delim
39753 install_sh!$install_sh$ac_delim
39754 STRIP!$STRIP$ac_delim
39755 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39756 mkdir_p!$mkdir_p$ac_delim
39757 AWK!$AWK$ac_delim
39758 SET_MAKE!$SET_MAKE$ac_delim
39759 am__leading_dot!$am__leading_dot$ac_delim
39760 AMTAR!$AMTAR$ac_delim
39761 am__tar!$am__tar$ac_delim
39762 am__untar!$am__untar$ac_delim
39763 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39764 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39765 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39766 top_builddir!$top_builddir$ac_delim
39767 ldap_subdir!$ldap_subdir$ac_delim
39768 CC!$CC$ac_delim
39769 AR!$AR$ac_delim
39770 CFLAGS!$CFLAGS$ac_delim
39771 LDFLAGS!$LDFLAGS$ac_delim
39772 CPPFLAGS!$CPPFLAGS$ac_delim
39773 ac_ct_CC!$ac_ct_CC$ac_delim
39774 EXEEXT!$EXEEXT$ac_delim
39775 OBJEXT!$OBJEXT$ac_delim
39776 DEPDIR!$DEPDIR$ac_delim
39777 am__include!$am__include$ac_delim
39778 am__quote!$am__quote$ac_delim
39779 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39780 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39781 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39782 CCDEPMODE!$CCDEPMODE$ac_delim
39783 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39784 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39785 GREP!$GREP$ac_delim
39786 EGREP!$EGREP$ac_delim
39787 LN_S!$LN_S$ac_delim
39788 ECHO!$ECHO$ac_delim
39789 RANLIB!$RANLIB$ac_delim
39790 _ACEOF
39791
39792   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39793     break
39794   elif $ac_last_try; then
39795     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39796 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39797    { (exit 1); exit 1; }; }
39798   else
39799     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39800   fi
39801 done
39802
39803 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39804 if test -n "$ac_eof"; then
39805   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39806   ac_eof=`expr $ac_eof + 1`
39807 fi
39808
39809 cat >>$CONFIG_STATUS <<_ACEOF
39810 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39812 _ACEOF
39813 sed '
39814 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39815 s/^/s,@/; s/!/@,|#_!!_#|/
39816 :n
39817 t n
39818 s/'"$ac_delim"'$/,g/; t
39819 s/$/\\/; p
39820 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39821 ' >>$CONFIG_STATUS <conf$$subs.sed
39822 rm -f conf$$subs.sed
39823 cat >>$CONFIG_STATUS <<_ACEOF
39824 CEOF$ac_eof
39825 _ACEOF
39826
39827
39828 ac_delim='%!_!# '
39829 for ac_last_try in false false false false false :; do
39830   cat >conf$$subs.sed <<_ACEOF
39831 DLLTOOL!$DLLTOOL$ac_delim
39832 AS!$AS$ac_delim
39833 OBJDUMP!$OBJDUMP$ac_delim
39834 CPP!$CPP$ac_delim
39835 LIBTOOL!$LIBTOOL$ac_delim
39836 PERLBIN!$PERLBIN$ac_delim
39837 OL_MKDEP!$OL_MKDEP$ac_delim
39838 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39839 LTSTATIC!$LTSTATIC$ac_delim
39840 MYSQL!$MYSQL$ac_delim
39841 LIBOBJS!$LIBOBJS$ac_delim
39842 LIBSRCS!$LIBSRCS$ac_delim
39843 PLAT!$PLAT$ac_delim
39844 WITH_SASL!$WITH_SASL$ac_delim
39845 WITH_TLS!$WITH_TLS$ac_delim
39846 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39847 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39848 BUILD_THREAD!$BUILD_THREAD$ac_delim
39849 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39850 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39851 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39852 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39853 BUILD_BDB!$BUILD_BDB$ac_delim
39854 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39855 BUILD_HDB!$BUILD_HDB$ac_delim
39856 BUILD_LDAP!$BUILD_LDAP$ac_delim
39857 BUILD_META!$BUILD_META$ac_delim
39858 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39859 BUILD_NDB!$BUILD_NDB$ac_delim
39860 BUILD_NULL!$BUILD_NULL$ac_delim
39861 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39862 BUILD_RELAY!$BUILD_RELAY$ac_delim
39863 BUILD_PERL!$BUILD_PERL$ac_delim
39864 BUILD_SHELL!$BUILD_SHELL$ac_delim
39865 BUILD_SOCK!$BUILD_SOCK$ac_delim
39866 BUILD_SQL!$BUILD_SQL$ac_delim
39867 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39868 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39869 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39870 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39871 BUILD_DDS!$BUILD_DDS$ac_delim
39872 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39873 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39874 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39875 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39876 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39877 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39878 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39879 BUILD_REFINT!$BUILD_REFINT$ac_delim
39880 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39881 BUILD_RWM!$BUILD_RWM$ac_delim
39882 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39883 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39884 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39885 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39886 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39887 LDAP_LIBS!$LDAP_LIBS$ac_delim
39888 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39889 BDB_LIBS!$BDB_LIBS$ac_delim
39890 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39891 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39892 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39893 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39894 WRAP_LIBS!$WRAP_LIBS$ac_delim
39895 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39896 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39897 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39898 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39899 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39900 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39901 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39902 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39903 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39904 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39905 KRB4_LIBS!$KRB4_LIBS$ac_delim
39906 KRB5_LIBS!$KRB5_LIBS$ac_delim
39907 SASL_LIBS!$SASL_LIBS$ac_delim
39908 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
39909 TLS_LIBS!$TLS_LIBS$ac_delim
39910 MODULES_LIBS!$MODULES_LIBS$ac_delim
39911 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39912 LIBSLAPI!$LIBSLAPI$ac_delim
39913 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39914 AUTH_LIBS!$AUTH_LIBS$ac_delim
39915 ICU_LIBS!$ICU_LIBS$ac_delim
39916 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39917 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39918 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39919 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39920 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39921 LTLIBOBJS!$LTLIBOBJS$ac_delim
39922 _ACEOF
39923
39924   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
39925     break
39926   elif $ac_last_try; then
39927     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39928 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39929    { (exit 1); exit 1; }; }
39930   else
39931     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39932   fi
39933 done
39934
39935 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39936 if test -n "$ac_eof"; then
39937   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39938   ac_eof=`expr $ac_eof + 1`
39939 fi
39940
39941 cat >>$CONFIG_STATUS <<_ACEOF
39942 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39943 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39944 _ACEOF
39945 sed '
39946 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39947 s/^/s,@/; s/!/@,|#_!!_#|/
39948 :n
39949 t n
39950 s/'"$ac_delim"'$/,g/; t
39951 s/$/\\/; p
39952 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39953 ' >>$CONFIG_STATUS <conf$$subs.sed
39954 rm -f conf$$subs.sed
39955 cat >>$CONFIG_STATUS <<_ACEOF
39956 :end
39957 s/|#_!!_#|//g
39958 CEOF$ac_eof
39959 _ACEOF
39960
39961
39962 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39963 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39964 # trailing colons and then remove the whole line if VPATH becomes empty
39965 # (actually we leave an empty line to preserve line numbers).
39966 if test "x$srcdir" = x.; then
39967   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39968 s/:*\$(srcdir):*/:/
39969 s/:*\${srcdir}:*/:/
39970 s/:*@srcdir@:*/:/
39971 s/^\([^=]*=[     ]*\):*/\1/
39972 s/:*$//
39973 s/^[^=]*=[       ]*$//
39974 }'
39975 fi
39976
39977 cat >>$CONFIG_STATUS <<\_ACEOF
39978 fi # test -n "$CONFIG_FILES"
39979
39980
39981 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39982 do
39983   case $ac_tag in
39984   :[FHLC]) ac_mode=$ac_tag; continue;;
39985   esac
39986   case $ac_mode$ac_tag in
39987   :[FHL]*:*);;
39988   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39989 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39990    { (exit 1); exit 1; }; };;
39991   :[FH]-) ac_tag=-:-;;
39992   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39993   esac
39994   ac_save_IFS=$IFS
39995   IFS=:
39996   set x $ac_tag
39997   IFS=$ac_save_IFS
39998   shift
39999   ac_file=$1
40000   shift
40001
40002   case $ac_mode in
40003   :L) ac_source=$1;;
40004   :[FH])
40005     ac_file_inputs=
40006     for ac_f
40007     do
40008       case $ac_f in
40009       -) ac_f="$tmp/stdin";;
40010       *) # Look for the file first in the build tree, then in the source tree
40011          # (if the path is not absolute).  The absolute path cannot be DOS-style,
40012          # because $ac_f cannot contain `:'.
40013          test -f "$ac_f" ||
40014            case $ac_f in
40015            [\\/$]*) false;;
40016            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40017            esac ||
40018            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40019 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40020    { (exit 1); exit 1; }; };;
40021       esac
40022       ac_file_inputs="$ac_file_inputs $ac_f"
40023     done
40024
40025     # Let's still pretend it is `configure' which instantiates (i.e., don't
40026     # use $as_me), people would be surprised to read:
40027     #    /* config.h.  Generated by config.status.  */
40028     configure_input="Generated from "`IFS=:
40029           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40030     if test x"$ac_file" != x-; then
40031       configure_input="$ac_file.  $configure_input"
40032       { echo "$as_me:$LINENO: creating $ac_file" >&5
40033 echo "$as_me: creating $ac_file" >&6;}
40034     fi
40035
40036     case $ac_tag in
40037     *:-:* | *:-) cat >"$tmp/stdin";;
40038     esac
40039     ;;
40040   esac
40041
40042   ac_dir=`$as_dirname -- "$ac_file" ||
40043 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40044          X"$ac_file" : 'X\(//\)[^/]' \| \
40045          X"$ac_file" : 'X\(//\)$' \| \
40046          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40047 echo X"$ac_file" |
40048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40049             s//\1/
40050             q
40051           }
40052           /^X\(\/\/\)[^/].*/{
40053             s//\1/
40054             q
40055           }
40056           /^X\(\/\/\)$/{
40057             s//\1/
40058             q
40059           }
40060           /^X\(\/\).*/{
40061             s//\1/
40062             q
40063           }
40064           s/.*/./; q'`
40065   { as_dir="$ac_dir"
40066   case $as_dir in #(
40067   -*) as_dir=./$as_dir;;
40068   esac
40069   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40070     as_dirs=
40071     while :; do
40072       case $as_dir in #(
40073       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40074       *) as_qdir=$as_dir;;
40075       esac
40076       as_dirs="'$as_qdir' $as_dirs"
40077       as_dir=`$as_dirname -- "$as_dir" ||
40078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40079          X"$as_dir" : 'X\(//\)[^/]' \| \
40080          X"$as_dir" : 'X\(//\)$' \| \
40081          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40082 echo X"$as_dir" |
40083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40084             s//\1/
40085             q
40086           }
40087           /^X\(\/\/\)[^/].*/{
40088             s//\1/
40089             q
40090           }
40091           /^X\(\/\/\)$/{
40092             s//\1/
40093             q
40094           }
40095           /^X\(\/\).*/{
40096             s//\1/
40097             q
40098           }
40099           s/.*/./; q'`
40100       test -d "$as_dir" && break
40101     done
40102     test -z "$as_dirs" || eval "mkdir $as_dirs"
40103   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40104 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40105    { (exit 1); exit 1; }; }; }
40106   ac_builddir=.
40107
40108 case "$ac_dir" in
40109 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40110 *)
40111   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40112   # A ".." for each directory in $ac_dir_suffix.
40113   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40114   case $ac_top_builddir_sub in
40115   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40116   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40117   esac ;;
40118 esac
40119 ac_abs_top_builddir=$ac_pwd
40120 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40121 # for backward compatibility:
40122 ac_top_builddir=$ac_top_build_prefix
40123
40124 case $srcdir in
40125   .)  # We are building in place.
40126     ac_srcdir=.
40127     ac_top_srcdir=$ac_top_builddir_sub
40128     ac_abs_top_srcdir=$ac_pwd ;;
40129   [\\/]* | ?:[\\/]* )  # Absolute name.
40130     ac_srcdir=$srcdir$ac_dir_suffix;
40131     ac_top_srcdir=$srcdir
40132     ac_abs_top_srcdir=$srcdir ;;
40133   *) # Relative name.
40134     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40135     ac_top_srcdir=$ac_top_build_prefix$srcdir
40136     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40137 esac
40138 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40139
40140
40141   case $ac_mode in
40142   :F)
40143   #
40144   # CONFIG_FILE
40145   #
40146
40147   case $INSTALL in
40148   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40149   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40150   esac
40151 _ACEOF
40152
40153 cat >>$CONFIG_STATUS <<\_ACEOF
40154 # If the template does not know about datarootdir, expand it.
40155 # FIXME: This hack should be removed a few years after 2.60.
40156 ac_datarootdir_hack=; ac_datarootdir_seen=
40157
40158 case `sed -n '/datarootdir/ {
40159   p
40160   q
40161 }
40162 /@datadir@/p
40163 /@docdir@/p
40164 /@infodir@/p
40165 /@localedir@/p
40166 /@mandir@/p
40167 ' $ac_file_inputs` in
40168 *datarootdir*) ac_datarootdir_seen=yes;;
40169 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40170   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40171 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40172 _ACEOF
40173 cat >>$CONFIG_STATUS <<_ACEOF
40174   ac_datarootdir_hack='
40175   s&@datadir@&$datadir&g
40176   s&@docdir@&$docdir&g
40177   s&@infodir@&$infodir&g
40178   s&@localedir@&$localedir&g
40179   s&@mandir@&$mandir&g
40180     s&\\\${datarootdir}&$datarootdir&g' ;;
40181 esac
40182 _ACEOF
40183
40184 # Neutralize VPATH when `$srcdir' = `.'.
40185 # Shell code in configure.ac might set extrasub.
40186 # FIXME: do we really want to maintain this feature?
40187 cat >>$CONFIG_STATUS <<_ACEOF
40188   sed "$ac_vpsub
40189 $extrasub
40190 _ACEOF
40191 cat >>$CONFIG_STATUS <<\_ACEOF
40192 :t
40193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40194 s&@configure_input@&$configure_input&;t t
40195 s&@top_builddir@&$ac_top_builddir_sub&;t t
40196 s&@srcdir@&$ac_srcdir&;t t
40197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40198 s&@top_srcdir@&$ac_top_srcdir&;t t
40199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40200 s&@builddir@&$ac_builddir&;t t
40201 s&@abs_builddir@&$ac_abs_builddir&;t t
40202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40203 s&@INSTALL@&$ac_INSTALL&;t t
40204 $ac_datarootdir_hack
40205 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40206
40207 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40208   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40209   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40210   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40211 which seems to be undefined.  Please make sure it is defined." >&5
40212 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40213 which seems to be undefined.  Please make sure it is defined." >&2;}
40214
40215   rm -f "$tmp/stdin"
40216   case $ac_file in
40217   -) cat "$tmp/out"; rm -f "$tmp/out";;
40218   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40219   esac
40220  ;;
40221   :H)
40222   #
40223   # CONFIG_HEADER
40224   #
40225 _ACEOF
40226
40227 # Transform confdefs.h into a sed script `conftest.defines', that
40228 # substitutes the proper values into config.h.in to produce config.h.
40229 rm -f conftest.defines conftest.tail
40230 # First, append a space to every undef/define line, to ease matching.
40231 echo 's/$/ /' >conftest.defines
40232 # Then, protect against being on the right side of a sed subst, or in
40233 # an unquoted here document, in config.status.  If some macros were
40234 # called several times there might be several #defines for the same
40235 # symbol, which is useless.  But do not sort them, since the last
40236 # AC_DEFINE must be honored.
40237 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40238 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40239 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40240 # PARAMS is the parameter list in the macro definition--in most cases, it's
40241 # just an empty string.
40242 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
40243 ac_dB='\\)[      (].*,\\1define\\2'
40244 ac_dC=' '
40245 ac_dD=' ,'
40246
40247 uniq confdefs.h |
40248   sed -n '
40249         t rset
40250         :rset
40251         s/^[     ]*#[    ]*define[       ][      ]*//
40252         t ok
40253         d
40254         :ok
40255         s/[\\&,]/\\&/g
40256         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40257         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40258   ' >>conftest.defines
40259
40260 # Remove the space that was appended to ease matching.
40261 # Then replace #undef with comments.  This is necessary, for
40262 # example, in the case of _POSIX_SOURCE, which is predefined and required
40263 # on some systems where configure will not decide to define it.
40264 # (The regexp can be short, since the line contains either #define or #undef.)
40265 echo 's/ $//
40266 s,^[     #]*u.*,/* & */,' >>conftest.defines
40267
40268 # Break up conftest.defines:
40269 ac_max_sed_lines=50
40270
40271 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40272 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40273 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40274 # et cetera.
40275 ac_in='$ac_file_inputs'
40276 ac_out='"$tmp/out1"'
40277 ac_nxt='"$tmp/out2"'
40278
40279 while :
40280 do
40281   # Write a here document:
40282     cat >>$CONFIG_STATUS <<_ACEOF
40283     # First, check the format of the line:
40284     cat >"\$tmp/defines.sed" <<\\CEOF
40285 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
40286 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
40287 b
40288 :def
40289 _ACEOF
40290   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40291   echo 'CEOF
40292     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40293   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40294   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40295   grep . conftest.tail >/dev/null || break
40296   rm -f conftest.defines
40297   mv conftest.tail conftest.defines
40298 done
40299 rm -f conftest.defines conftest.tail
40300
40301 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40302 cat >>$CONFIG_STATUS <<\_ACEOF
40303   if test x"$ac_file" != x-; then
40304     echo "/* $configure_input  */" >"$tmp/config.h"
40305     cat "$ac_result" >>"$tmp/config.h"
40306     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40307       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40308 echo "$as_me: $ac_file is unchanged" >&6;}
40309     else
40310       rm -f $ac_file
40311       mv "$tmp/config.h" $ac_file
40312     fi
40313   else
40314     echo "/* $configure_input  */"
40315     cat "$ac_result"
40316   fi
40317   rm -f "$tmp/out12"
40318 # Compute $ac_file's index in $config_headers.
40319 _am_stamp_count=1
40320 for _am_header in $config_headers :; do
40321   case $_am_header in
40322     $ac_file | $ac_file:* )
40323       break ;;
40324     * )
40325       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40326   esac
40327 done
40328 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40329 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40330          X$ac_file : 'X\(//\)[^/]' \| \
40331          X$ac_file : 'X\(//\)$' \| \
40332          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40333 echo X$ac_file |
40334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40335             s//\1/
40336             q
40337           }
40338           /^X\(\/\/\)[^/].*/{
40339             s//\1/
40340             q
40341           }
40342           /^X\(\/\/\)$/{
40343             s//\1/
40344             q
40345           }
40346           /^X\(\/\).*/{
40347             s//\1/
40348             q
40349           }
40350           s/.*/./; q'`/stamp-h$_am_stamp_count
40351  ;;
40352
40353   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40354 echo "$as_me: executing $ac_file commands" >&6;}
40355  ;;
40356   esac
40357
40358
40359   case $ac_file$ac_mode in
40360     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40361   # Strip MF so we end up with the name of the file.
40362   mf=`echo "$mf" | sed -e 's/:.*$//'`
40363   # Check whether this is an Automake generated Makefile or not.
40364   # We used to match only the files named `Makefile.in', but
40365   # some people rename them; so instead we look at the file content.
40366   # Grep'ing the first line is not enough: some people post-process
40367   # each Makefile.in and add a new line on top of each file to say so.
40368   # So let's grep whole file.
40369   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40370     dirpart=`$as_dirname -- "$mf" ||
40371 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40372          X"$mf" : 'X\(//\)[^/]' \| \
40373          X"$mf" : 'X\(//\)$' \| \
40374          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40375 echo X"$mf" |
40376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40377             s//\1/
40378             q
40379           }
40380           /^X\(\/\/\)[^/].*/{
40381             s//\1/
40382             q
40383           }
40384           /^X\(\/\/\)$/{
40385             s//\1/
40386             q
40387           }
40388           /^X\(\/\).*/{
40389             s//\1/
40390             q
40391           }
40392           s/.*/./; q'`
40393   else
40394     continue
40395   fi
40396   # Extract the definition of DEPDIR, am__include, and am__quote
40397   # from the Makefile without running `make'.
40398   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40399   test -z "$DEPDIR" && continue
40400   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40401   test -z "am__include" && continue
40402   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40403   # When using ansi2knr, U may be empty or an underscore; expand it
40404   U=`sed -n 's/^U = //p' < "$mf"`
40405   # Find all dependency output files, they are included files with
40406   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40407   # simplest approach to changing $(DEPDIR) to its actual value in the
40408   # expansion.
40409   for file in `sed -n "
40410     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40411        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40412     # Make sure the directory exists.
40413     test -f "$dirpart/$file" && continue
40414     fdir=`$as_dirname -- "$file" ||
40415 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40416          X"$file" : 'X\(//\)[^/]' \| \
40417          X"$file" : 'X\(//\)$' \| \
40418          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40419 echo X"$file" |
40420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40421             s//\1/
40422             q
40423           }
40424           /^X\(\/\/\)[^/].*/{
40425             s//\1/
40426             q
40427           }
40428           /^X\(\/\/\)$/{
40429             s//\1/
40430             q
40431           }
40432           /^X\(\/\).*/{
40433             s//\1/
40434             q
40435           }
40436           s/.*/./; q'`
40437     { as_dir=$dirpart/$fdir
40438   case $as_dir in #(
40439   -*) as_dir=./$as_dir;;
40440   esac
40441   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40442     as_dirs=
40443     while :; do
40444       case $as_dir in #(
40445       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40446       *) as_qdir=$as_dir;;
40447       esac
40448       as_dirs="'$as_qdir' $as_dirs"
40449       as_dir=`$as_dirname -- "$as_dir" ||
40450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40451          X"$as_dir" : 'X\(//\)[^/]' \| \
40452          X"$as_dir" : 'X\(//\)$' \| \
40453          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40454 echo X"$as_dir" |
40455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40456             s//\1/
40457             q
40458           }
40459           /^X\(\/\/\)[^/].*/{
40460             s//\1/
40461             q
40462           }
40463           /^X\(\/\/\)$/{
40464             s//\1/
40465             q
40466           }
40467           /^X\(\/\).*/{
40468             s//\1/
40469             q
40470           }
40471           s/.*/./; q'`
40472       test -d "$as_dir" && break
40473     done
40474     test -z "$as_dirs" || eval "mkdir $as_dirs"
40475   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40476 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40477    { (exit 1); exit 1; }; }; }
40478     # echo "creating $dirpart/$file"
40479     echo '# dummy' > "$dirpart/$file"
40480   done
40481 done
40482  ;;
40483     "default":C)
40484 chmod +x tests/run
40485 date > stamp-h
40486 BACKENDSC="servers/slapd/backends.c"
40487 echo "Making $BACKENDSC"
40488 rm -f $BACKENDSC
40489 cat > $BACKENDSC << ENDX
40490 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40491  *
40492  * Copyright 1998-2008 The OpenLDAP Foundation.
40493  * All rights reserved.
40494  *
40495  * Redistribution and use in source and binary forms, with or without
40496  * modification, are permitted only as authorized by the OpenLDAP
40497  * Public License.
40498  *
40499  * A copy of this license is available in the file LICENSE in the
40500  * top-level directory of the distribution or, alternatively, at
40501  * <http://www.OpenLDAP.org/license.html>.
40502  */
40503 /* This file is automatically generated by configure; please do not edit. */
40504
40505 #include "portable.h"
40506 #include "slap.h"
40507
40508 ENDX
40509 if test "${STATIC_BACKENDS}"; then
40510         for b in config ${STATIC_BACKENDS}; do
40511                 bb=`echo "${b}" | sed -e 's/back-//'`
40512                 cat >> $BACKENDSC << ENDX
40513 extern BI_init ${bb}_back_initialize;
40514 ENDX
40515         done
40516
40517         cat >> $BACKENDSC << ENDX
40518
40519 BackendInfo slap_binfo[] = {
40520 ENDX
40521
40522         for b in config ${STATIC_BACKENDS}; do
40523                 bb=`echo "${b}" | sed -e 's/back-//'`
40524                 echo "    Add ${bb} ..."
40525                 cat >> $BACKENDSC << ENDX
40526         { "${bb}", ${bb}_back_initialize },
40527 ENDX
40528         done
40529
40530         cat >> $BACKENDSC << ENDX
40531         { NULL, NULL },
40532 };
40533
40534 /* end of generated file */
40535 ENDX
40536 fi
40537 OVERLAYSC="servers/slapd/overlays/statover.c"
40538 echo "Making $OVERLAYSC"
40539 rm -f $OVERLAYSC
40540 cat > $OVERLAYSC << ENDX
40541 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40542  *
40543  * Copyright 1998-2008 The OpenLDAP Foundation.
40544  * All rights reserved.
40545  *
40546  * Redistribution and use in source and binary forms, with or without
40547  * modification, are permitted only as authorized by the OpenLDAP
40548  * Public License.
40549  *
40550  * A copy of this license is available in the file LICENSE in the
40551  * top-level directory of the distribution or, alternatively, at
40552  * <http://www.OpenLDAP.org/license.html>.
40553  */
40554 /* This file is automatically generated by configure; please do not edit. */
40555
40556 #include "portable.h"
40557 #include "slap.h"
40558
40559 ENDX
40560 if test "${STATIC_OVERLAYS}"; then
40561         for o in ${STATIC_OVERLAYS}; do
40562                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40563                 cat >> $OVERLAYSC << ENDX
40564 extern OV_init ${oo}_initialize;
40565 ENDX
40566         done
40567 fi
40568
40569 cat >> $OVERLAYSC << ENDX
40570
40571 OverlayInit slap_oinfo[] = {
40572 ENDX
40573
40574 if test "${STATIC_OVERLAYS}"; then
40575         for o in ${STATIC_OVERLAYS}; do
40576                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40577                 echo "    Add ${oo} ..."
40578                 cat >> $OVERLAYSC << ENDX
40579         { "${oo}", ${oo}_initialize },
40580 ENDX
40581         done
40582 fi
40583
40584         cat >> $OVERLAYSC << ENDX
40585         { NULL, NULL },
40586 };
40587
40588 /* end of generated file */
40589 ENDX
40590
40591 if test "${ol_cv_mkdep}" = no; then
40592         echo '(Do not "make depend"; we do not know how to build dependencies)'
40593 else
40594         echo 'Please run "make depend" to build dependencies'
40595 fi
40596  ;;
40597
40598   esac
40599 done # for ac_tag
40600
40601
40602 { (exit 0); exit 0; }
40603 _ACEOF
40604 chmod +x $CONFIG_STATUS
40605 ac_clean_files=$ac_clean_files_save
40606
40607
40608 # configure is writing to config.log, and then calls config.status.
40609 # config.status does its own redirection, appending to config.log.
40610 # Unfortunately, on DOS this fails, as config.log is still kept open
40611 # by configure, so config.status won't be able to write to it; its
40612 # output is simply discarded.  So we exec the FD to /dev/null,
40613 # effectively closing config.log, so it can be properly (re)opened and
40614 # appended to by config.status.  When coming back to configure, we
40615 # need to make the FD available again.
40616 if test "$no_create" != yes; then
40617   ac_cs_success=:
40618   ac_config_status_args=
40619   test "$silent" = yes &&
40620     ac_config_status_args="$ac_config_status_args --quiet"
40621   exec 5>/dev/null
40622   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40623   exec 5>>config.log
40624   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40625   # would make configure fail if this is the last instruction.
40626   $ac_cs_success || { (exit 1); exit 1; }
40627 fi
40628