]> git.sur5r.net Git - openldap/blob - configure
ber_flatten must return -1 on unmatched "{" "}" (ITS#6764)
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.707 2010/10/12 08:26:31 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright 1998-2010 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46   echo "#! /bin/sh" >conf$$.sh
47   echo  "exit 0"   >>conf$$.sh
48   chmod +x conf$$.sh
49   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50     PATH_SEPARATOR=';'
51   else
52     PATH_SEPARATOR=:
53   fi
54   rm -f conf$$.sh
55 fi
56
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59   as_unset=unset
60 else
61   as_unset=false
62 fi
63
64
65 # IFS
66 # We need space, tab and new line, in precisely that order.  Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
71 '
72 IFS=" ""        $as_nl"
73
74 # Find who we are.  Look in the path if we contain no directory separator.
75 case $0 in
76   *[\\/]* ) as_myself=$0 ;;
77   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
79 do
80   IFS=$as_save_IFS
81   test -z "$as_dir" && as_dir=.
82   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
85
86      ;;
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91   as_myself=$0
92 fi
93 if test ! -f "$as_myself"; then
94   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95   { (exit 1); exit 1; }
96 fi
97
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
105
106 # NLS nuisances.
107 for as_var in \
108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110   LC_TELEPHONE LC_TIME
111 do
112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113     eval $as_var=C; export $as_var
114   else
115     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116   fi
117 done
118
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
122   as_expr=expr
123 else
124   as_expr=false
125 fi
126
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128   as_basename=basename
129 else
130   as_basename=false
131 fi
132
133
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137          X"$0" : 'X\(//\)$' \| \
138          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140     sed '/^.*\/\([^/][^/]*\)\/*$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\/\)$/{
145             s//\1/
146             q
147           }
148           /^X\/\(\/\).*/{
149             s//\1/
150             q
151           }
152           s/.*/./; q'`
153
154 # CDPATH.
155 $as_unset CDPATH
156
157
158 if test "x$CONFIG_SHELL" = x; then
159   if (eval ":") 2>/dev/null; then
160   as_have_required=yes
161 else
162   as_have_required=no
163 fi
164
165   if test $as_have_required = yes &&     (eval ":
166 (as_func_return () {
167   (exit \$1)
168 }
169 as_func_success () {
170   as_func_return 0
171 }
172 as_func_failure () {
173   as_func_return 1
174 }
175 as_func_ret_success () {
176   return 0
177 }
178 as_func_ret_failure () {
179   return 1
180 }
181
182 exitcode=0
183 if as_func_success; then
184   :
185 else
186   exitcode=1
187   echo as_func_success failed.
188 fi
189
190 if as_func_failure; then
191   exitcode=1
192   echo as_func_failure succeeded.
193 fi
194
195 if as_func_ret_success; then
196   :
197 else
198   exitcode=1
199   echo as_func_ret_success failed.
200 fi
201
202 if as_func_ret_failure; then
203   exitcode=1
204   echo as_func_ret_failure succeeded.
205 fi
206
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208   :
209 else
210   exitcode=1
211   echo positional parameters were not saved.
212 fi
213
214 test \$exitcode = 0) || { (exit 1); exit 1; }
215
216 (
217   as_lineno_1=\$LINENO
218   as_lineno_2=\$LINENO
219   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
222   :
223 else
224   as_candidate_shells=
225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
228   IFS=$as_save_IFS
229   test -z "$as_dir" && as_dir=.
230   case $as_dir in
231          /*)
232            for as_base in sh bash ksh sh5; do
233              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234            done;;
235        esac
236 done
237 IFS=$as_save_IFS
238
239
240       for as_shell in $as_candidate_shells $SHELL; do
241          # Try only shells that exist, to save several forks.
242          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243                 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245   emulate sh
246   NULLCMD=:
247   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248   # is contrary to our usage.  Disable this feature.
249   alias -g '${1+"$@"}'='"$@"'
250   setopt NO_GLOB_SUBST
251 else
252   case `(set -o) 2>/dev/null` in
253   *posix*) set -o posix ;;
254 esac
255
256 fi
257
258
259 :
260 _ASEOF
261 }; then
262   CONFIG_SHELL=$as_shell
263                as_have_required=yes
264                if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266   emulate sh
267   NULLCMD=:
268   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in
274   *posix*) set -o posix ;;
275 esac
276
277 fi
278
279
280 :
281 (as_func_return () {
282   (exit $1)
283 }
284 as_func_success () {
285   as_func_return 0
286 }
287 as_func_failure () {
288   as_func_return 1
289 }
290 as_func_ret_success () {
291   return 0
292 }
293 as_func_ret_failure () {
294   return 1
295 }
296
297 exitcode=0
298 if as_func_success; then
299   :
300 else
301   exitcode=1
302   echo as_func_success failed.
303 fi
304
305 if as_func_failure; then
306   exitcode=1
307   echo as_func_failure succeeded.
308 fi
309
310 if as_func_ret_success; then
311   :
312 else
313   exitcode=1
314   echo as_func_ret_success failed.
315 fi
316
317 if as_func_ret_failure; then
318   exitcode=1
319   echo as_func_ret_failure succeeded.
320 fi
321
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
323   :
324 else
325   exitcode=1
326   echo positional parameters were not saved.
327 fi
328
329 test $exitcode = 0) || { (exit 1); exit 1; }
330
331 (
332   as_lineno_1=$LINENO
333   as_lineno_2=$LINENO
334   test "x$as_lineno_1" != "x$as_lineno_2" &&
335   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337 _ASEOF
338 }; then
339   break
340 fi
341
342 fi
343
344       done
345
346       if test "x$CONFIG_SHELL" != x; then
347   for as_var in BASH_ENV ENV
348         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349         done
350         export CONFIG_SHELL
351         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 fi
353
354
355     if test $as_have_required = no; then
356   echo This script requires a shell more modern than all the
357       echo shells that I found on your system.  Please install a
358       echo modern shell, or manually run the script under such a
359       echo shell if you do have one.
360       { (exit 1); exit 1; }
361 fi
362
363
364 fi
365
366 fi
367
368
369
370 (eval "as_func_return () {
371   (exit \$1)
372 }
373 as_func_success () {
374   as_func_return 0
375 }
376 as_func_failure () {
377   as_func_return 1
378 }
379 as_func_ret_success () {
380   return 0
381 }
382 as_func_ret_failure () {
383   return 1
384 }
385
386 exitcode=0
387 if as_func_success; then
388   :
389 else
390   exitcode=1
391   echo as_func_success failed.
392 fi
393
394 if as_func_failure; then
395   exitcode=1
396   echo as_func_failure succeeded.
397 fi
398
399 if as_func_ret_success; then
400   :
401 else
402   exitcode=1
403   echo as_func_ret_success failed.
404 fi
405
406 if as_func_ret_failure; then
407   exitcode=1
408   echo as_func_ret_failure succeeded.
409 fi
410
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412   :
413 else
414   exitcode=1
415   echo positional parameters were not saved.
416 fi
417
418 test \$exitcode = 0") || {
419   echo No shell found that supports shell functions.
420   echo Please tell autoconf@gnu.org about your system,
421   echo including any error possibly output before this
422   echo message
423 }
424
425
426
427   as_lineno_1=$LINENO
428   as_lineno_2=$LINENO
429   test "x$as_lineno_1" != "x$as_lineno_2" &&
430   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433   # uniformly replaced by the line number.  The first 'sed' inserts a
434   # line-number line after each line using $LINENO; the second 'sed'
435   # does the real work.  The second script uses 'N' to pair each
436   # line-number line with the line containing $LINENO, and appends
437   # trailing '-' during substitution so that $LINENO is not a special
438   # case at line end.
439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440   # scripts with optimization help from Paolo Bonzini.  Blame Lee
441   # E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459    { (exit 1); exit 1; }; }
460
461   # Don't try to exec as it changes $[0], causing all sort of problems
462   # (the dirname of $[0] is not the place where we might find the
463   # original and so on.  Autoconf is especially sensitive to this).
464   . "./$as_me.lineno"
465   # Exit status is that of the last command.
466   exit
467 }
468
469
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471   as_dirname=dirname
472 else
473   as_dirname=false
474 fi
475
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479   case `echo 'x\c'` in
480   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481   *)   ECHO_C='\c';;
482   esac;;
483 *)
484   ECHO_N='-n';;
485 esac
486
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
489   as_expr=expr
490 else
491   as_expr=false
492 fi
493
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496   rm -f conf$$.dir/conf$$.file
497 else
498   rm -f conf$$.dir
499   mkdir conf$$.dir
500 fi
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s='ln -s'
504   # ... but there are two gotchas:
505   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507   # In both cases, we have to default to `cp -p'.
508   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509     as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511   as_ln_s=ln
512 else
513   as_ln_s='cp -p'
514 fi
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
517
518 if mkdir -p . 2>/dev/null; then
519   as_mkdir_p=:
520 else
521   test -d ./-p && rmdir ./-p
522   as_mkdir_p=false
523 fi
524
525 if test -x / >/dev/null 2>&1; then
526   as_test_x='test -x'
527 else
528   if ls -dL / >/dev/null 2>&1; then
529     as_ls_L_option=L
530   else
531     as_ls_L_option=
532   fi
533   as_test_x='
534     eval sh -c '\''
535       if test -d "$1"; then
536         test -d "$1/.";
537       else
538         case $1 in
539         -*)set "./$1";;
540         esac;
541         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542         ???[sx]*):;;*)false;;esac;fi
543     '\'' sh
544   '
545 fi
546 as_executable_p=$as_test_x
547
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 case X$ECHO in
561 X*--fallback-echo)
562   # Remove one level of quotation (which was required for Make).
563   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564   ;;
565 esac
566
567 echo=${ECHO-echo}
568 if test "X$1" = X--no-reexec; then
569   # Discard the --no-reexec flag, and continue.
570   shift
571 elif test "X$1" = X--fallback-echo; then
572   # Avoid inline document here, it may be left over
573   :
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575   # Yippee, $echo works!
576   :
577 else
578   # Restart under the correct shell.
579   exec $SHELL "$0" --no-reexec ${1+"$@"}
580 fi
581
582 if test "X$1" = X--fallback-echo; then
583   # used as fallback echo
584   shift
585   cat <<EOF
586 $*
587 EOF
588   exit 0
589 fi
590
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 # if CDPATH is set.
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601        echo_test_string=`eval $cmd` &&
602        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603     then
604       break
605     fi
606   done
607 fi
608
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611    test "X$echo_testing_string" = "X$echo_test_string"; then
612   :
613 else
614   # The Solaris, AIX, and Digital Unix default echo programs unquote
615   # backslashes.  This makes it impossible to quote backslashes using
616   #   echo "$something" | sed 's/\\/\\\\/g'
617   #
618   # So, first we look for a working echo in the user's PATH.
619
620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621   for dir in $PATH /usr/ucb; do
622     IFS="$lt_save_ifs"
623     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626        test "X$echo_testing_string" = "X$echo_test_string"; then
627       echo="$dir/echo"
628       break
629     fi
630   done
631   IFS="$lt_save_ifs"
632
633   if test "X$echo" = Xecho; then
634     # We didn't find a better echo, so look for alternatives.
635     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637        test "X$echo_testing_string" = "X$echo_test_string"; then
638       # This shell has a builtin print -r that does the trick.
639       echo='print -r'
640     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641          test "X$CONFIG_SHELL" != X/bin/ksh; then
642       # If we have ksh, try running configure again with it.
643       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644       export ORIGINAL_CONFIG_SHELL
645       CONFIG_SHELL=/bin/ksh
646       export CONFIG_SHELL
647       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648     else
649       # Try using printf.
650       echo='printf %s\n'
651       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653          test "X$echo_testing_string" = "X$echo_test_string"; then
654         # Cool, printf works
655         :
656       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657            test "X$echo_testing_string" = 'X\t' &&
658            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659            test "X$echo_testing_string" = "X$echo_test_string"; then
660         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661         export CONFIG_SHELL
662         SHELL="$CONFIG_SHELL"
663         export SHELL
664         echo="$CONFIG_SHELL $0 --fallback-echo"
665       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666            test "X$echo_testing_string" = 'X\t' &&
667            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668            test "X$echo_testing_string" = "X$echo_test_string"; then
669         echo="$CONFIG_SHELL $0 --fallback-echo"
670       else
671         # maybe with a smaller string...
672         prev=:
673
674         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676           then
677             break
678           fi
679           prev="$cmd"
680         done
681
682         if test "$prev" != 'sed 50q "$0"'; then
683           echo_test_string=`eval $prev`
684           export echo_test_string
685           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686         else
687           # Oops.  We lost completely, so just stick with echo.
688           echo=echo
689         fi
690       fi
691     fi
692   fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 ECHO=$echo
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 am__isrc
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 OPENLDAP_LIBRELEASE
844 OPENLDAP_LIBVERSION
845 OPENLDAP_RELEASE_DATE
846 top_builddir
847 ldap_subdir
848 CC
849 AR
850 CFLAGS
851 LDFLAGS
852 CPPFLAGS
853 ac_ct_CC
854 EXEEXT
855 OBJEXT
856 DEPDIR
857 am__include
858 am__quote
859 AMDEP_TRUE
860 AMDEP_FALSE
861 AMDEPBACKSLASH
862 CCDEPMODE
863 am__fastdepCC_TRUE
864 am__fastdepCC_FALSE
865 GREP
866 EGREP
867 LN_S
868 ECHO
869 RANLIB
870 DLLTOOL
871 AS
872 OBJDUMP
873 CPP
874 LIBTOOL
875 PERLBIN
876 OL_MKDEP
877 OL_MKDEP_FLAGS
878 LTSTATIC
879 MYSQL
880 LIBOBJS
881 LIBSRCS
882 PLAT
883 WITH_SASL
884 WITH_TLS
885 WITH_MODULES_ENABLED
886 WITH_ACI_ENABLED
887 BUILD_THREAD
888 BUILD_LIBS_DYNAMIC
889 BUILD_SLAPD
890 BUILD_SLAPI
891 SLAPD_SLAPI_DEPEND
892 BUILD_BDB
893 BUILD_DNSSRV
894 BUILD_HDB
895 BUILD_LDAP
896 BUILD_META
897 BUILD_MONITOR
898 BUILD_NDB
899 BUILD_NULL
900 BUILD_PASSWD
901 BUILD_RELAY
902 BUILD_PERL
903 BUILD_SHELL
904 BUILD_SOCK
905 BUILD_SQL
906 BUILD_ACCESSLOG
907 BUILD_AUDITLOG
908 BUILD_COLLECT
909 BUILD_CONSTRAINT
910 BUILD_DDS
911 BUILD_DENYOP
912 BUILD_DEREF
913 BUILD_DYNGROUP
914 BUILD_DYNLIST
915 BUILD_LASTMOD
916 BUILD_MEMBEROF
917 BUILD_PPOLICY
918 BUILD_PROXYCACHE
919 BUILD_REFINT
920 BUILD_RETCODE
921 BUILD_RWM
922 BUILD_SEQMOD
923 BUILD_SSSVLV
924 BUILD_SYNCPROV
925 BUILD_TRANSLUCENT
926 BUILD_UNIQUE
927 BUILD_VALSORT
928 LDAP_LIBS
929 SLAPD_LIBS
930 BDB_LIBS
931 SLAPD_NDB_LIBS
932 SLAPD_NDB_INCS
933 LTHREAD_LIBS
934 LUTIL_LIBS
935 WRAP_LIBS
936 SLAPD_MODULES_CPPFLAGS
937 SLAPD_MODULES_LDFLAGS
938 SLAPD_NO_STATIC
939 SLAPD_STATIC_BACKENDS
940 SLAPD_DYNAMIC_BACKENDS
941 SLAPD_STATIC_OVERLAYS
942 SLAPD_DYNAMIC_OVERLAYS
943 PERL_CPPFLAGS
944 SLAPD_PERL_LDFLAGS
945 MOD_PERL_LDFLAGS
946 KRB4_LIBS
947 KRB5_LIBS
948 SASL_LIBS
949 TLS_LIBS
950 MODULES_LIBS
951 SLAPI_LIBS
952 LIBSLAPI
953 LIBSLAPITOOLS
954 AUTH_LIBS
955 ICU_LIBS
956 SLAPD_SLP_LIBS
957 SLAPD_GMP_LIBS
958 SLAPD_SQL_LDFLAGS
959 SLAPD_SQL_LIBS
960 SLAPD_SQL_INCLUDES
961 LTLIBOBJS'
962 ac_subst_files=''
963       ac_precious_vars='build_alias
964 host_alias
965 target_alias
966 CC
967 CFLAGS
968 LDFLAGS
969 LIBS
970 CPPFLAGS
971 CPP'
972
973
974 # Initialize some variables set by options.
975 ac_init_help=
976 ac_init_version=false
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
979 cache_file=/dev/null
980 exec_prefix=NONE
981 no_create=
982 no_recursion=
983 prefix=NONE
984 program_prefix=NONE
985 program_suffix=NONE
986 program_transform_name=s,x,x,
987 silent=
988 site=
989 srcdir=
990 verbose=
991 x_includes=NONE
992 x_libraries=NONE
993
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir='${exec_prefix}/bin'
1001 sbindir='${exec_prefix}/sbin'
1002 libexecdir='${exec_prefix}/libexec'
1003 datarootdir='${prefix}/share'
1004 datadir='${datarootdir}'
1005 sysconfdir='${prefix}/etc'
1006 sharedstatedir='${prefix}/com'
1007 localstatedir='${prefix}/var'
1008 includedir='${prefix}/include'
1009 oldincludedir='/usr/include'
1010 docdir='${datarootdir}/doc/${PACKAGE}'
1011 infodir='${datarootdir}/info'
1012 htmldir='${docdir}'
1013 dvidir='${docdir}'
1014 pdfdir='${docdir}'
1015 psdir='${docdir}'
1016 libdir='${exec_prefix}/lib'
1017 localedir='${datarootdir}/locale'
1018 mandir='${datarootdir}/man'
1019
1020 ac_prev=
1021 ac_dashdash=
1022 for ac_option
1023 do
1024   # If the previous option needs an argument, assign it.
1025   if test -n "$ac_prev"; then
1026     eval $ac_prev=\$ac_option
1027     ac_prev=
1028     continue
1029   fi
1030
1031   case $ac_option in
1032   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033   *)    ac_optarg=yes ;;
1034   esac
1035
1036   # Accept the important Cygnus configure options, so we can diagnose typos.
1037
1038   case $ac_dashdash$ac_option in
1039   --)
1040     ac_dashdash=yes ;;
1041
1042   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043     ac_prev=bindir ;;
1044   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1045     bindir=$ac_optarg ;;
1046
1047   -build | --build | --buil | --bui | --bu)
1048     ac_prev=build_alias ;;
1049   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1050     build_alias=$ac_optarg ;;
1051
1052   -cache-file | --cache-file | --cache-fil | --cache-fi \
1053   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1054     ac_prev=cache_file ;;
1055   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1056   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1057     cache_file=$ac_optarg ;;
1058
1059   --config-cache | -C)
1060     cache_file=config.cache ;;
1061
1062   -datadir | --datadir | --datadi | --datad)
1063     ac_prev=datadir ;;
1064   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1065     datadir=$ac_optarg ;;
1066
1067   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1068   | --dataroo | --dataro | --datar)
1069     ac_prev=datarootdir ;;
1070   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1071   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1072     datarootdir=$ac_optarg ;;
1073
1074   -disable-* | --disable-*)
1075     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1076     # Reject names that are not valid shell variable names.
1077     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1079    { (exit 1); exit 1; }; }
1080     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1081     eval enable_$ac_feature=no ;;
1082
1083   -docdir | --docdir | --docdi | --doc | --do)
1084     ac_prev=docdir ;;
1085   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086     docdir=$ac_optarg ;;
1087
1088   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089     ac_prev=dvidir ;;
1090   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091     dvidir=$ac_optarg ;;
1092
1093   -enable-* | --enable-*)
1094     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095     # Reject names that are not valid shell variable names.
1096     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1098    { (exit 1); exit 1; }; }
1099     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1100     eval enable_$ac_feature=\$ac_optarg ;;
1101
1102   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104   | --exec | --exe | --ex)
1105     ac_prev=exec_prefix ;;
1106   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108   | --exec=* | --exe=* | --ex=*)
1109     exec_prefix=$ac_optarg ;;
1110
1111   -gas | --gas | --ga | --g)
1112     # Obsolete; use --with-gas.
1113     with_gas=yes ;;
1114
1115   -help | --help | --hel | --he | -h)
1116     ac_init_help=long ;;
1117   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118     ac_init_help=recursive ;;
1119   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120     ac_init_help=short ;;
1121
1122   -host | --host | --hos | --ho)
1123     ac_prev=host_alias ;;
1124   -host=* | --host=* | --hos=* | --ho=*)
1125     host_alias=$ac_optarg ;;
1126
1127   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128     ac_prev=htmldir ;;
1129   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130   | --ht=*)
1131     htmldir=$ac_optarg ;;
1132
1133   -includedir | --includedir | --includedi | --included | --include \
1134   | --includ | --inclu | --incl | --inc)
1135     ac_prev=includedir ;;
1136   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137   | --includ=* | --inclu=* | --incl=* | --inc=*)
1138     includedir=$ac_optarg ;;
1139
1140   -infodir | --infodir | --infodi | --infod | --info | --inf)
1141     ac_prev=infodir ;;
1142   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143     infodir=$ac_optarg ;;
1144
1145   -libdir | --libdir | --libdi | --libd)
1146     ac_prev=libdir ;;
1147   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148     libdir=$ac_optarg ;;
1149
1150   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151   | --libexe | --libex | --libe)
1152     ac_prev=libexecdir ;;
1153   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154   | --libexe=* | --libex=* | --libe=*)
1155     libexecdir=$ac_optarg ;;
1156
1157   -localedir | --localedir | --localedi | --localed | --locale)
1158     ac_prev=localedir ;;
1159   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160     localedir=$ac_optarg ;;
1161
1162   -localstatedir | --localstatedir | --localstatedi | --localstated \
1163   | --localstate | --localstat | --localsta | --localst | --locals)
1164     ac_prev=localstatedir ;;
1165   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167     localstatedir=$ac_optarg ;;
1168
1169   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170     ac_prev=mandir ;;
1171   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172     mandir=$ac_optarg ;;
1173
1174   -nfp | --nfp | --nf)
1175     # Obsolete; use --without-fp.
1176     with_fp=no ;;
1177
1178   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179   | --no-cr | --no-c | -n)
1180     no_create=yes ;;
1181
1182   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184     no_recursion=yes ;;
1185
1186   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188   | --oldin | --oldi | --old | --ol | --o)
1189     ac_prev=oldincludedir ;;
1190   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193     oldincludedir=$ac_optarg ;;
1194
1195   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196     ac_prev=prefix ;;
1197   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198     prefix=$ac_optarg ;;
1199
1200   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201   | --program-pre | --program-pr | --program-p)
1202     ac_prev=program_prefix ;;
1203   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205     program_prefix=$ac_optarg ;;
1206
1207   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208   | --program-suf | --program-su | --program-s)
1209     ac_prev=program_suffix ;;
1210   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212     program_suffix=$ac_optarg ;;
1213
1214   -program-transform-name | --program-transform-name \
1215   | --program-transform-nam | --program-transform-na \
1216   | --program-transform-n | --program-transform- \
1217   | --program-transform | --program-transfor \
1218   | --program-transfo | --program-transf \
1219   | --program-trans | --program-tran \
1220   | --progr-tra | --program-tr | --program-t)
1221     ac_prev=program_transform_name ;;
1222   -program-transform-name=* | --program-transform-name=* \
1223   | --program-transform-nam=* | --program-transform-na=* \
1224   | --program-transform-n=* | --program-transform-=* \
1225   | --program-transform=* | --program-transfor=* \
1226   | --program-transfo=* | --program-transf=* \
1227   | --program-trans=* | --program-tran=* \
1228   | --progr-tra=* | --program-tr=* | --program-t=*)
1229     program_transform_name=$ac_optarg ;;
1230
1231   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232     ac_prev=pdfdir ;;
1233   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234     pdfdir=$ac_optarg ;;
1235
1236   -psdir | --psdir | --psdi | --psd | --ps)
1237     ac_prev=psdir ;;
1238   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239     psdir=$ac_optarg ;;
1240
1241   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242   | -silent | --silent | --silen | --sile | --sil)
1243     silent=yes ;;
1244
1245   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246     ac_prev=sbindir ;;
1247   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248   | --sbi=* | --sb=*)
1249     sbindir=$ac_optarg ;;
1250
1251   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253   | --sharedst | --shareds | --shared | --share | --shar \
1254   | --sha | --sh)
1255     ac_prev=sharedstatedir ;;
1256   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259   | --sha=* | --sh=*)
1260     sharedstatedir=$ac_optarg ;;
1261
1262   -site | --site | --sit)
1263     ac_prev=site ;;
1264   -site=* | --site=* | --sit=*)
1265     site=$ac_optarg ;;
1266
1267   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268     ac_prev=srcdir ;;
1269   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270     srcdir=$ac_optarg ;;
1271
1272   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273   | --syscon | --sysco | --sysc | --sys | --sy)
1274     ac_prev=sysconfdir ;;
1275   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277     sysconfdir=$ac_optarg ;;
1278
1279   -target | --target | --targe | --targ | --tar | --ta | --t)
1280     ac_prev=target_alias ;;
1281   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282     target_alias=$ac_optarg ;;
1283
1284   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285     verbose=yes ;;
1286
1287   -version | --version | --versio | --versi | --vers | -V)
1288     ac_init_version=: ;;
1289
1290   -with-* | --with-*)
1291     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294       { echo "$as_me: error: invalid package name: $ac_package" >&2
1295    { (exit 1); exit 1; }; }
1296     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1297     eval with_$ac_package=\$ac_optarg ;;
1298
1299   -without-* | --without-*)
1300     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301     # Reject names that are not valid shell variable names.
1302     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303       { echo "$as_me: error: invalid package name: $ac_package" >&2
1304    { (exit 1); exit 1; }; }
1305     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1306     eval with_$ac_package=no ;;
1307
1308   --x)
1309     # Obsolete; use --with-x.
1310     with_x=yes ;;
1311
1312   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313   | --x-incl | --x-inc | --x-in | --x-i)
1314     ac_prev=x_includes ;;
1315   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317     x_includes=$ac_optarg ;;
1318
1319   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321     ac_prev=x_libraries ;;
1322   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324     x_libraries=$ac_optarg ;;
1325
1326   -*) { echo "$as_me: error: unrecognized option: $ac_option
1327 Try \`$0 --help' for more information." >&2
1328    { (exit 1); exit 1; }; }
1329     ;;
1330
1331   *=*)
1332     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333     # Reject names that are not valid shell variable names.
1334     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1335       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1336    { (exit 1); exit 1; }; }
1337     eval $ac_envvar=\$ac_optarg
1338     export $ac_envvar ;;
1339
1340   *)
1341     # FIXME: should be removed in autoconf 3.0.
1342     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346     ;;
1347
1348   esac
1349 done
1350
1351 if test -n "$ac_prev"; then
1352   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353   { echo "$as_me: error: missing argument to $ac_option" >&2
1354    { (exit 1); exit 1; }; }
1355 fi
1356
1357 # Be sure to have absolute directory names.
1358 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359                 datadir sysconfdir sharedstatedir localstatedir includedir \
1360                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361                 libdir localedir mandir
1362 do
1363   eval ac_val=\$$ac_var
1364   case $ac_val in
1365     [\\/$]* | ?:[\\/]* )  continue;;
1366     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367   esac
1368   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1369    { (exit 1); exit 1; }; }
1370 done
1371
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1375 build=$build_alias
1376 host=$host_alias
1377 target=$target_alias
1378
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381   if test "x$build_alias" = x; then
1382     cross_compiling=maybe
1383     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384     If a cross compiler is detected then cross compile mode will be used." >&2
1385   elif test "x$build_alias" != "x$host_alias"; then
1386     cross_compiling=yes
1387   fi
1388 fi
1389
1390 ac_tool_prefix=
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392
1393 test "$silent" = yes && exec 6>/dev/null
1394
1395
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399   { echo "$as_me: error: Working directory cannot be determined" >&2
1400    { (exit 1); exit 1; }; }
1401 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402   { echo "$as_me: error: pwd does not report name of working directory" >&2
1403    { (exit 1); exit 1; }; }
1404
1405
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408   ac_srcdir_defaulted=yes
1409   # Try the directory containing this script, then the parent directory.
1410   ac_confdir=`$as_dirname -- "$0" ||
1411 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412          X"$0" : 'X\(//\)[^/]' \| \
1413          X"$0" : 'X\(//\)$' \| \
1414          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1415 echo X"$0" |
1416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417             s//\1/
1418             q
1419           }
1420           /^X\(\/\/\)[^/].*/{
1421             s//\1/
1422             q
1423           }
1424           /^X\(\/\/\)$/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\).*/{
1429             s//\1/
1430             q
1431           }
1432           s/.*/./; q'`
1433   srcdir=$ac_confdir
1434   if test ! -r "$srcdir/$ac_unique_file"; then
1435     srcdir=..
1436   fi
1437 else
1438   ac_srcdir_defaulted=no
1439 fi
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1443    { (exit 1); exit 1; }; }
1444 fi
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 ac_abs_confdir=`(
1447         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1448    { (exit 1); exit 1; }; }
1449         pwd)`
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452   srcdir=.
1453 fi
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1457 case $srcdir in
1458 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 esac
1460 for ac_var in $ac_precious_vars; do
1461   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1462   eval ac_env_${ac_var}_value=\$${ac_var}
1463   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1464   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465 done
1466
1467 #
1468 # Report the --help message.
1469 #
1470 if test "$ac_init_help" = "long"; then
1471   # Omit some internal or obsolete options to make the list less imposing.
1472   # This message is too long to be a string in the A/UX 3.1 sh.
1473   cat <<_ACEOF
1474 \`configure' configures this package to adapt to many kinds of systems.
1475
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1477
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE.  See below for descriptions of some of the useful variables.
1480
1481 Defaults for the options are specified in brackets.
1482
1483 Configuration:
1484   -h, --help              display this help and exit
1485       --help=short        display options specific to this package
1486       --help=recursive    display the short help of all the included packages
1487   -V, --version           display version information and exit
1488   -q, --quiet, --silent   do not print \`checking...' messages
1489       --cache-file=FILE   cache test results in FILE [disabled]
1490   -C, --config-cache      alias for \`--cache-file=config.cache'
1491   -n, --no-create         do not create output files
1492       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1493
1494 Installation directories:
1495   --prefix=PREFIX         install architecture-independent files in PREFIX
1496                           [$ac_default_prefix]
1497   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1498                           [PREFIX]
1499
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1504
1505 For better control, use the options below.
1506
1507 Fine tuning of the installation directories:
1508   --bindir=DIR           user executables [EPREFIX/bin]
1509   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1510   --libexecdir=DIR       program executables [EPREFIX/libexec]
1511   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1512   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1513   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1514   --libdir=DIR           object code libraries [EPREFIX/lib]
1515   --includedir=DIR       C header files [PREFIX/include]
1516   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1517   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1518   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1519   --infodir=DIR          info documentation [DATAROOTDIR/info]
1520   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1521   --mandir=DIR           man documentation [DATAROOTDIR/man]
1522   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1523   --htmldir=DIR          html documentation [DOCDIR]
1524   --dvidir=DIR           dvi documentation [DOCDIR]
1525   --pdfdir=DIR           pdf documentation [DOCDIR]
1526   --psdir=DIR            ps documentation [DOCDIR]
1527 _ACEOF
1528
1529   cat <<\_ACEOF
1530
1531 Program names:
1532   --program-prefix=PREFIX            prepend PREFIX to installed program names
1533   --program-suffix=SUFFIX            append SUFFIX to installed program names
1534   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1535
1536 System types:
1537   --build=BUILD     configure for building on BUILD [guessed]
1538   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1539   --target=TARGET   configure for building compilers for TARGET [HOST]
1540 _ACEOF
1541 fi
1542
1543 if test -n "$ac_init_help"; then
1544
1545   cat <<\_ACEOF
1546
1547 Optional Features:
1548   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1549   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1550   --enable-debug          enable debugging no|yes|traditional [yes]
1551   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1552   --enable-syslog         enable syslog support [auto]
1553   --enable-proctitle      enable proctitle support [yes]
1554   --enable-ipv6           enable IPv6 support [auto]
1555   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1556
1557 SLAPD (Standalone LDAP Daemon) Options:
1558   --enable-slapd          enable building slapd [yes]
1559     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1560     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1561     --enable-cleartext    enable cleartext passwords [yes]
1562     --enable-crypt        enable crypt(3) passwords [no]
1563     --enable-lmpasswd     enable LAN Manager passwords [no]
1564     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1565     --enable-modules      enable dynamic module support [no]
1566     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1567     --enable-rlookups     enable reverse lookups of client hostnames [no]
1568     --enable-slapi        enable SLAPI support (experimental) [no]
1569     --enable-slp          enable SLPv2 support [no]
1570     --enable-wrappers     enable tcp wrapper support [no]
1571
1572 SLAPD Backend Options:
1573     --enable-backends     enable all available backends no|yes|mod
1574     --enable-bdb          enable Berkeley DB backend no|yes|mod [no]
1575     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1576     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1577     --enable-ldap         enable ldap backend no|yes|mod [no]
1578     --enable-meta         enable metadirectory backend no|yes|mod [no]
1579     --enable-monitor      enable monitor backend no|yes|mod [yes]
1580     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1581     --enable-null         enable null backend no|yes|mod [no]
1582     --enable-passwd       enable passwd backend no|yes|mod [no]
1583     --enable-perl         enable perl backend no|yes|mod [no]
1584     --enable-relay        enable relay backend no|yes|mod [yes]
1585     --enable-shell        enable shell backend no|yes|mod [no]
1586     --enable-sock         enable sock backend no|yes|mod [no]
1587     --enable-sql          enable sql backend no|yes|mod [no]
1588
1589 SLAPD Overlay Options:
1590     --enable-overlays     enable all available overlays no|yes|mod
1591     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1592     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1593     --enable-collect      Collect overlay no|yes|mod [no]
1594     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1595     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1596     --enable-deref        Dereference overlay no|yes|mod [no]
1597     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1598     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1599     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1600     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1601     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1602     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1603     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1604     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1605     --enable-seqmod       Sequential Modify overlay no|yes|mod [no]
1606     --enable-sssvlv       ServerSideSort/VLV overlay no|yes|mod [no]
1607     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1608     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1609     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1610     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1611
1612 Library Generation & Linking Options
1613   --enable-static[=PKGS]  build static libraries [default=yes]
1614   --enable-shared[=PKGS]  build shared libraries [default=yes]
1615   --enable-fast-install[=PKGS]
1616                           optimize for fast installation [default=yes]
1617   --disable-dependency-tracking  speeds up one-time build
1618   --enable-dependency-tracking   do not reject slow dependency extractors
1619   --disable-libtool-lock  avoid locking (might break parallel builds)
1620
1621 Optional Packages:
1622   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1623   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1624   --with-subdir=DIR       change default subdirectory used for installs
1625   --with-cyrus-sasl       with Cyrus SASL support [auto]
1626   --with-fetch            with fetch(3) URL support [auto]
1627   --with-threads          with threads [auto]
1628   --with-tls              with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1629   --with-yielding-select  with implicitly yielding select [auto]
1630   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1631   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1632   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1633   --with-pic              try to use only PIC/non-PIC objects [default=use
1634                           both]
1635   --with-tags[=TAGS]      include additional configurations [automatic]
1636
1637 See INSTALL file for further details.
1638
1639 Some influential environment variables:
1640   CC          C compiler command
1641   CFLAGS      C compiler flags
1642   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1643               nonstandard directory <lib dir>
1644   LIBS        libraries to pass to the linker, e.g. -l<library>
1645   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1646               you have headers in a nonstandard directory <include dir>
1647   CPP         C preprocessor
1648
1649 Use these variables to override the choices made by `configure' or to help
1650 it to find libraries and programs with nonstandard names/locations.
1651
1652 _ACEOF
1653 ac_status=$?
1654 fi
1655
1656 if test "$ac_init_help" = "recursive"; then
1657   # If there are subdirs, report their specific --help.
1658   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1659     test -d "$ac_dir" || continue
1660     ac_builddir=.
1661
1662 case "$ac_dir" in
1663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *)
1665   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1666   # A ".." for each directory in $ac_dir_suffix.
1667   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1668   case $ac_top_builddir_sub in
1669   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1671   esac ;;
1672 esac
1673 ac_abs_top_builddir=$ac_pwd
1674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1675 # for backward compatibility:
1676 ac_top_builddir=$ac_top_build_prefix
1677
1678 case $srcdir in
1679   .)  # We are building in place.
1680     ac_srcdir=.
1681     ac_top_srcdir=$ac_top_builddir_sub
1682     ac_abs_top_srcdir=$ac_pwd ;;
1683   [\\/]* | ?:[\\/]* )  # Absolute name.
1684     ac_srcdir=$srcdir$ac_dir_suffix;
1685     ac_top_srcdir=$srcdir
1686     ac_abs_top_srcdir=$srcdir ;;
1687   *) # Relative name.
1688     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1689     ac_top_srcdir=$ac_top_build_prefix$srcdir
1690     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 esac
1692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693
1694     cd "$ac_dir" || { ac_status=$?; continue; }
1695     # Check for guested configure.
1696     if test -f "$ac_srcdir/configure.gnu"; then
1697       echo &&
1698       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1699     elif test -f "$ac_srcdir/configure"; then
1700       echo &&
1701       $SHELL "$ac_srcdir/configure" --help=recursive
1702     else
1703       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704     fi || ac_status=$?
1705     cd "$ac_pwd" || { ac_status=$?; break; }
1706   done
1707 fi
1708
1709 test -n "$ac_init_help" && exit $ac_status
1710 if $ac_init_version; then
1711   cat <<\_ACEOF
1712 configure
1713 generated by GNU Autoconf 2.61
1714
1715 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1716 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1717 This configure script is free software; the Free Software Foundation
1718 gives unlimited permission to copy, distribute and modify it.
1719
1720 Copyright 1998-2010 The OpenLDAP Foundation. All rights reserved.
1721 Restrictions apply, see COPYRIGHT and LICENSE files.
1722 _ACEOF
1723   exit
1724 fi
1725 cat >config.log <<_ACEOF
1726 This file contains any messages produced by compilers while
1727 running configure, to aid debugging if configure makes a mistake.
1728
1729 It was created by $as_me, which was
1730 generated by GNU Autoconf 2.61.  Invocation command line was
1731
1732   $ $0 $@
1733
1734 _ACEOF
1735 exec 5>>config.log
1736 {
1737 cat <<_ASUNAME
1738 ## --------- ##
1739 ## Platform. ##
1740 ## --------- ##
1741
1742 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1743 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1744 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1745 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1746 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1747
1748 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1749 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1750
1751 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1752 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1753 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1754 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1755 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1756 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1757 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1758
1759 _ASUNAME
1760
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1763 do
1764   IFS=$as_save_IFS
1765   test -z "$as_dir" && as_dir=.
1766   echo "PATH: $as_dir"
1767 done
1768 IFS=$as_save_IFS
1769
1770 } >&5
1771
1772 cat >&5 <<_ACEOF
1773
1774
1775 ## ----------- ##
1776 ## Core tests. ##
1777 ## ----------- ##
1778
1779 _ACEOF
1780
1781
1782 # Keep a trace of the command line.
1783 # Strip out --no-create and --no-recursion so they do not pile up.
1784 # Strip out --silent because we don't want to record it for future runs.
1785 # Also quote any args containing shell meta-characters.
1786 # Make two passes to allow for proper duplicate-argument suppression.
1787 ac_configure_args=
1788 ac_configure_args0=
1789 ac_configure_args1=
1790 ac_must_keep_next=false
1791 for ac_pass in 1 2
1792 do
1793   for ac_arg
1794   do
1795     case $ac_arg in
1796     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1797     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1798     | -silent | --silent | --silen | --sile | --sil)
1799       continue ;;
1800     *\'*)
1801       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1802     esac
1803     case $ac_pass in
1804     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1805     2)
1806       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1807       if test $ac_must_keep_next = true; then
1808         ac_must_keep_next=false # Got value, back to normal.
1809       else
1810         case $ac_arg in
1811           *=* | --config-cache | -C | -disable-* | --disable-* \
1812           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1813           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1814           | -with-* | --with-* | -without-* | --without-* | --x)
1815             case "$ac_configure_args0 " in
1816               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1817             esac
1818             ;;
1819           -* ) ac_must_keep_next=true ;;
1820         esac
1821       fi
1822       ac_configure_args="$ac_configure_args '$ac_arg'"
1823       ;;
1824     esac
1825   done
1826 done
1827 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1828 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1829
1830 # When interrupted or exit'd, cleanup temporary files, and complete
1831 # config.log.  We remove comments because anyway the quotes in there
1832 # would cause problems or look ugly.
1833 # WARNING: Use '\'' to represent an apostrophe within the trap.
1834 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1835 trap 'exit_status=$?
1836   # Save into config.log some information that might help in debugging.
1837   {
1838     echo
1839
1840     cat <<\_ASBOX
1841 ## ---------------- ##
1842 ## Cache variables. ##
1843 ## ---------------- ##
1844 _ASBOX
1845     echo
1846     # The following way of writing the cache mishandles newlines in values,
1847 (
1848   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1849     eval ac_val=\$$ac_var
1850     case $ac_val in #(
1851     *${as_nl}*)
1852       case $ac_var in #(
1853       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1854 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1855       esac
1856       case $ac_var in #(
1857       _ | IFS | as_nl) ;; #(
1858       *) $as_unset $ac_var ;;
1859       esac ;;
1860     esac
1861   done
1862   (set) 2>&1 |
1863     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1864     *${as_nl}ac_space=\ *)
1865       sed -n \
1866         "s/'\''/'\''\\\\'\'''\''/g;
1867           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1868       ;; #(
1869     *)
1870       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1871       ;;
1872     esac |
1873     sort
1874 )
1875     echo
1876
1877     cat <<\_ASBOX
1878 ## ----------------- ##
1879 ## Output variables. ##
1880 ## ----------------- ##
1881 _ASBOX
1882     echo
1883     for ac_var in $ac_subst_vars
1884     do
1885       eval ac_val=\$$ac_var
1886       case $ac_val in
1887       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1888       esac
1889       echo "$ac_var='\''$ac_val'\''"
1890     done | sort
1891     echo
1892
1893     if test -n "$ac_subst_files"; then
1894       cat <<\_ASBOX
1895 ## ------------------- ##
1896 ## File substitutions. ##
1897 ## ------------------- ##
1898 _ASBOX
1899       echo
1900       for ac_var in $ac_subst_files
1901       do
1902         eval ac_val=\$$ac_var
1903         case $ac_val in
1904         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905         esac
1906         echo "$ac_var='\''$ac_val'\''"
1907       done | sort
1908       echo
1909     fi
1910
1911     if test -s confdefs.h; then
1912       cat <<\_ASBOX
1913 ## ----------- ##
1914 ## confdefs.h. ##
1915 ## ----------- ##
1916 _ASBOX
1917       echo
1918       cat confdefs.h
1919       echo
1920     fi
1921     test "$ac_signal" != 0 &&
1922       echo "$as_me: caught signal $ac_signal"
1923     echo "$as_me: exit $exit_status"
1924   } >&5
1925   rm -f core *.core core.conftest.* &&
1926     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1927     exit $exit_status
1928 ' 0
1929 for ac_signal in 1 2 13 15; do
1930   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1931 done
1932 ac_signal=0
1933
1934 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1935 rm -f -r conftest* confdefs.h
1936
1937 # Predefined preprocessor variables.
1938
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_NAME "$PACKAGE_NAME"
1941 _ACEOF
1942
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1946 _ACEOF
1947
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1951 _ACEOF
1952
1953
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_STRING "$PACKAGE_STRING"
1956 _ACEOF
1957
1958
1959 cat >>confdefs.h <<_ACEOF
1960 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1961 _ACEOF
1962
1963
1964 # Let the site file select an alternate cache file if it wants to.
1965 # Prefer explicitly selected file to automatically selected ones.
1966 if test -n "$CONFIG_SITE"; then
1967   set x "$CONFIG_SITE"
1968 elif test "x$prefix" != xNONE; then
1969   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1970 else
1971   set x "$ac_default_prefix/share/config.site" \
1972         "$ac_default_prefix/etc/config.site"
1973 fi
1974 shift
1975 for ac_site_file
1976 do
1977   if test -r "$ac_site_file"; then
1978     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1979 echo "$as_me: loading site script $ac_site_file" >&6;}
1980     sed 's/^/| /' "$ac_site_file" >&5
1981     . "$ac_site_file"
1982   fi
1983 done
1984
1985
1986 # Check that the precious variables saved in the cache have kept the same
1987 # value.
1988 ac_cache_corrupted=false
1989 for ac_var in $ac_precious_vars; do
1990   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1991   eval ac_new_set=\$ac_env_${ac_var}_set
1992   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1993   eval ac_new_val=\$ac_env_${ac_var}_value
1994   case $ac_old_set,$ac_new_set in
1995     set,)
1996       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1997 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1998       ac_cache_corrupted=: ;;
1999     ,set)
2000       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2001 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2002       ac_cache_corrupted=: ;;
2003     ,);;
2004     *)
2005       if test "x$ac_old_val" != "x$ac_new_val"; then
2006         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2007 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2008         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2009 echo "$as_me:   former value:  $ac_old_val" >&2;}
2010         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2011 echo "$as_me:   current value: $ac_new_val" >&2;}
2012         ac_cache_corrupted=:
2013       fi;;
2014   esac
2015   # Pass precious variables to config.status.
2016   if test "$ac_new_set" = set; then
2017     case $ac_new_val in
2018     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2019     *) ac_arg=$ac_var=$ac_new_val ;;
2020     esac
2021     case " $ac_configure_args " in
2022       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2023       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2024     esac
2025   fi
2026 done
2027 if $ac_cache_corrupted; then
2028   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2029 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2030   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2031 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2032    { (exit 1); exit 1; }; }
2033 fi
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051 ac_ext=c
2052 ac_cpp='$CPP $CPPFLAGS'
2053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084 ac_aux_dir=
2085 for ac_dir in build "$srcdir"/build; do
2086   if test -f "$ac_dir/install-sh"; then
2087     ac_aux_dir=$ac_dir
2088     ac_install_sh="$ac_aux_dir/install-sh -c"
2089     break
2090   elif test -f "$ac_dir/install.sh"; then
2091     ac_aux_dir=$ac_dir
2092     ac_install_sh="$ac_aux_dir/install.sh -c"
2093     break
2094   elif test -f "$ac_dir/shtool"; then
2095     ac_aux_dir=$ac_dir
2096     ac_install_sh="$ac_aux_dir/shtool install -c"
2097     break
2098   fi
2099 done
2100 if test -z "$ac_aux_dir"; then
2101   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2102 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2103    { (exit 1); exit 1; }; }
2104 fi
2105
2106 # These three variables are undocumented and unsupported,
2107 # and are intended to be withdrawn in a future Autoconf release.
2108 # They can cause serious problems if a builder's source tree is in a directory
2109 # whose full name contains unusual characters.
2110 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2111 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2112 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2113
2114
2115 eval `$ac_aux_dir/version.sh`
2116 if test -z "$OL_STRING"; then
2117         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2118 echo "$as_me: error: could not determine version" >&2;}
2119    { (exit 1); exit 1; }; }
2120 fi
2121
2122 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2123         ac_cv_shtool="$ac_aux_dir/shtool"
2124 else
2125         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2126 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2127    { (exit 1); exit 1; }; }
2128 fi
2129
2130 SHTOOL="$ac_cv_shtool"
2131
2132 TB="" TN=""
2133 if test -t 1; then
2134         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2135         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2136 fi
2137
2138 OPENLDAP_CVS=""
2139 if test -d $ac_aux_dir/CVS; then
2140         OPENLDAP_CVS="(from CVS sources) "
2141 fi
2142
2143 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2144
2145 # Make sure we can run config.sub.
2146 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2147   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2148 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2149    { (exit 1); exit 1; }; }
2150
2151 { echo "$as_me:$LINENO: checking build system type" >&5
2152 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2153 if test "${ac_cv_build+set}" = set; then
2154   echo $ECHO_N "(cached) $ECHO_C" >&6
2155 else
2156   ac_build_alias=$build_alias
2157 test "x$ac_build_alias" = x &&
2158   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2159 test "x$ac_build_alias" = x &&
2160   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2161 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2162    { (exit 1); exit 1; }; }
2163 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2164   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2165 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2166    { (exit 1); exit 1; }; }
2167
2168 fi
2169 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2170 echo "${ECHO_T}$ac_cv_build" >&6; }
2171 case $ac_cv_build in
2172 *-*-*) ;;
2173 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2174 echo "$as_me: error: invalid value of canonical build" >&2;}
2175    { (exit 1); exit 1; }; };;
2176 esac
2177 build=$ac_cv_build
2178 ac_save_IFS=$IFS; IFS='-'
2179 set x $ac_cv_build
2180 shift
2181 build_cpu=$1
2182 build_vendor=$2
2183 shift; shift
2184 # Remember, the first character of IFS is used to create $*,
2185 # except with old shells:
2186 build_os=$*
2187 IFS=$ac_save_IFS
2188 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2189
2190
2191 { echo "$as_me:$LINENO: checking host system type" >&5
2192 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2193 if test "${ac_cv_host+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   if test "x$host_alias" = x; then
2197   ac_cv_host=$ac_cv_build
2198 else
2199   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2200     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2201 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2202    { (exit 1); exit 1; }; }
2203 fi
2204
2205 fi
2206 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2207 echo "${ECHO_T}$ac_cv_host" >&6; }
2208 case $ac_cv_host in
2209 *-*-*) ;;
2210 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2211 echo "$as_me: error: invalid value of canonical host" >&2;}
2212    { (exit 1); exit 1; }; };;
2213 esac
2214 host=$ac_cv_host
2215 ac_save_IFS=$IFS; IFS='-'
2216 set x $ac_cv_host
2217 shift
2218 host_cpu=$1
2219 host_vendor=$2
2220 shift; shift
2221 # Remember, the first character of IFS is used to create $*,
2222 # except with old shells:
2223 host_os=$*
2224 IFS=$ac_save_IFS
2225 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2226
2227
2228 { echo "$as_me:$LINENO: checking target system type" >&5
2229 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2230 if test "${ac_cv_target+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test "x$target_alias" = x; then
2234   ac_cv_target=$ac_cv_host
2235 else
2236   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2237     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2238 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2239    { (exit 1); exit 1; }; }
2240 fi
2241
2242 fi
2243 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2244 echo "${ECHO_T}$ac_cv_target" >&6; }
2245 case $ac_cv_target in
2246 *-*-*) ;;
2247 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2248 echo "$as_me: error: invalid value of canonical target" >&2;}
2249    { (exit 1); exit 1; }; };;
2250 esac
2251 target=$ac_cv_target
2252 ac_save_IFS=$IFS; IFS='-'
2253 set x $ac_cv_target
2254 shift
2255 target_cpu=$1
2256 target_vendor=$2
2257 shift; shift
2258 # Remember, the first character of IFS is used to create $*,
2259 # except with old shells:
2260 target_os=$*
2261 IFS=$ac_save_IFS
2262 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2263
2264
2265 # The aliases save the names the user supplied, while $host etc.
2266 # will get canonicalized.
2267 test -n "$target_alias" &&
2268   test "$program_prefix$program_suffix$program_transform_name" = \
2269     NONENONEs,x,x, &&
2270   program_prefix=${target_alias}-
2271
2272 am__api_version='1.10'
2273
2274 # Find a good install program.  We prefer a C program (faster),
2275 # so one script is as good as another.  But avoid the broken or
2276 # incompatible versions:
2277 # SysV /etc/install, /usr/sbin/install
2278 # SunOS /usr/etc/install
2279 # IRIX /sbin/install
2280 # AIX /bin/install
2281 # AmigaOS /C/install, which installs bootblocks on floppy discs
2282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2285 # OS/2's system install, which has a completely different semantic
2286 # ./install, which can be erroneously created by make from ./install.sh.
2287 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2288 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2289 if test -z "$INSTALL"; then
2290 if test "${ac_cv_path_install+set}" = set; then
2291   echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298   # Account for people who put trailing slashes in PATH elements.
2299 case $as_dir/ in
2300   ./ | .// | /cC/* | \
2301   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2302   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2303   /usr/ucb/* ) ;;
2304   *)
2305     # OSF1 and SCO ODT 3.0 have their own names for install.
2306     # Don't use installbsd from OSF since it installs stuff as root
2307     # by default.
2308     for ac_prog in ginstall scoinst install; do
2309       for ac_exec_ext in '' $ac_executable_extensions; do
2310         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2311           if test $ac_prog = install &&
2312             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313             # AIX install.  It has an incompatible calling convention.
2314             :
2315           elif test $ac_prog = install &&
2316             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317             # program-specific install script used by HP pwplus--don't use.
2318             :
2319           else
2320             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2321             break 3
2322           fi
2323         fi
2324       done
2325     done
2326     ;;
2327 esac
2328 done
2329 IFS=$as_save_IFS
2330
2331
2332 fi
2333   if test "${ac_cv_path_install+set}" = set; then
2334     INSTALL=$ac_cv_path_install
2335   else
2336     # As a last resort, use the slow shell script.  Don't cache a
2337     # value for INSTALL within a source directory, because that will
2338     # break other packages using the cache if that directory is
2339     # removed, or if the value is a relative name.
2340     INSTALL=$ac_install_sh
2341   fi
2342 fi
2343 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2344 echo "${ECHO_T}$INSTALL" >&6; }
2345
2346 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2347 # It thinks the first close brace ends the variable substitution.
2348 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2349
2350 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2351
2352 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2353
2354 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2355 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2356 # Just in case
2357 sleep 1
2358 echo timestamp > conftest.file
2359 # Do `set' in a subshell so we don't clobber the current shell's
2360 # arguments.  Must try -L first in case configure is actually a
2361 # symlink; some systems play weird games with the mod time of symlinks
2362 # (eg FreeBSD returns the mod time of the symlink's containing
2363 # directory).
2364 if (
2365    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2366    if test "$*" = "X"; then
2367       # -L didn't work.
2368       set X `ls -t $srcdir/configure conftest.file`
2369    fi
2370    rm -f conftest.file
2371    if test "$*" != "X $srcdir/configure conftest.file" \
2372       && test "$*" != "X conftest.file $srcdir/configure"; then
2373
2374       # If neither matched, then we have a broken ls.  This can happen
2375       # if, for instance, CONFIG_SHELL is bash and it inherits a
2376       # broken ls alias from the environment.  This has actually
2377       # happened.  Such a system could not be considered "sane".
2378       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2379 alias in your environment" >&5
2380 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2381 alias in your environment" >&2;}
2382    { (exit 1); exit 1; }; }
2383    fi
2384
2385    test "$2" = conftest.file
2386    )
2387 then
2388    # Ok.
2389    :
2390 else
2391    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2392 Check your system clock" >&5
2393 echo "$as_me: error: newly created file is older than distributed files!
2394 Check your system clock" >&2;}
2395    { (exit 1); exit 1; }; }
2396 fi
2397 { echo "$as_me:$LINENO: result: yes" >&5
2398 echo "${ECHO_T}yes" >&6; }
2399 test "$program_prefix" != NONE &&
2400   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2401 # Use a double $ so make ignores it.
2402 test "$program_suffix" != NONE &&
2403   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2404 # Double any \ or $.  echo might interpret backslashes.
2405 # By default was `s,x,x', remove it if useless.
2406 cat <<\_ACEOF >conftest.sed
2407 s/[\\$]/&&/g;s/;s,x,x,$//
2408 _ACEOF
2409 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2410 rm -f conftest.sed
2411
2412 # expand $ac_aux_dir to an absolute path
2413 am_aux_dir=`cd $ac_aux_dir && pwd`
2414
2415 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2416 # Use eval to expand $SHELL
2417 if eval "$MISSING --run true"; then
2418   am_missing_run="$MISSING --run "
2419 else
2420   am_missing_run=
2421   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2422 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2423 fi
2424
2425 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2426 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2427 if test -z "$MKDIR_P"; then
2428   if test "${ac_cv_path_mkdir+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2433 do
2434   IFS=$as_save_IFS
2435   test -z "$as_dir" && as_dir=.
2436   for ac_prog in mkdir gmkdir; do
2437          for ac_exec_ext in '' $ac_executable_extensions; do
2438            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2439            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2440              'mkdir (GNU coreutils) '* | \
2441              'mkdir (coreutils) '* | \
2442              'mkdir (fileutils) '4.1*)
2443                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2444                break 3;;
2445            esac
2446          done
2447        done
2448 done
2449 IFS=$as_save_IFS
2450
2451 fi
2452
2453   if test "${ac_cv_path_mkdir+set}" = set; then
2454     MKDIR_P="$ac_cv_path_mkdir -p"
2455   else
2456     # As a last resort, use the slow shell script.  Don't cache a
2457     # value for MKDIR_P within a source directory, because that will
2458     # break other packages using the cache if that directory is
2459     # removed, or if the value is a relative name.
2460     test -d ./--version && rmdir ./--version
2461     MKDIR_P="$ac_install_sh -d"
2462   fi
2463 fi
2464 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2465 echo "${ECHO_T}$MKDIR_P" >&6; }
2466
2467 mkdir_p="$MKDIR_P"
2468 case $mkdir_p in
2469   [\\/$]* | ?:[\\/]*) ;;
2470   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2471 esac
2472
2473 for ac_prog in gawk mawk nawk awk
2474 do
2475   # Extract the first word of "$ac_prog", so it can be a program name with args.
2476 set dummy $ac_prog; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_AWK+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test -n "$AWK"; then
2483   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_AWK="$ac_prog"
2493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 AWK=$ac_cv_prog_AWK
2503 if test -n "$AWK"; then
2504   { echo "$as_me:$LINENO: result: $AWK" >&5
2505 echo "${ECHO_T}$AWK" >&6; }
2506 else
2507   { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2509 fi
2510
2511
2512   test -n "$AWK" && break
2513 done
2514
2515 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2516 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2517 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2518 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2519   echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521   cat >conftest.make <<\_ACEOF
2522 SHELL = /bin/sh
2523 all:
2524         @echo '@@@%%%=$(MAKE)=@@@%%%'
2525 _ACEOF
2526 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2527 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2528   *@@@%%%=?*=@@@%%%*)
2529     eval ac_cv_prog_make_${ac_make}_set=yes;;
2530   *)
2531     eval ac_cv_prog_make_${ac_make}_set=no;;
2532 esac
2533 rm -f conftest.make
2534 fi
2535 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2536   { echo "$as_me:$LINENO: result: yes" >&5
2537 echo "${ECHO_T}yes" >&6; }
2538   SET_MAKE=
2539 else
2540   { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2542   SET_MAKE="MAKE=${MAKE-make}"
2543 fi
2544
2545 rm -rf .tst 2>/dev/null
2546 mkdir .tst 2>/dev/null
2547 if test -d .tst; then
2548   am__leading_dot=.
2549 else
2550   am__leading_dot=_
2551 fi
2552 rmdir .tst 2>/dev/null
2553
2554 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2555   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2556   # is not polluted with repeated "-I."
2557   am__isrc=' -I$(srcdir)'
2558   # test to see if srcdir already configured
2559   if test -f $srcdir/config.status; then
2560     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2561 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2562    { (exit 1); exit 1; }; }
2563   fi
2564 fi
2565
2566 # test whether we have cygpath
2567 if test -z "$CYGPATH_W"; then
2568   if (cygpath --version) >/dev/null 2>/dev/null; then
2569     CYGPATH_W='cygpath -w'
2570   else
2571     CYGPATH_W=echo
2572   fi
2573 fi
2574
2575
2576 # Define the identity of the package.
2577  PACKAGE=$OL_PACKAGE
2578  VERSION=$OL_VERSION
2579
2580
2581 # Some tools Automake needs.
2582
2583 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2584
2585
2586 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2587
2588
2589 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2590
2591
2592 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2593
2594
2595 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2596
2597 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2598
2599 # Installed binaries are usually stripped using `strip' when the user
2600 # run `make install-strip'.  However `strip' might not be the right
2601 # tool to use in cross-compilation environments, therefore Automake
2602 # will honor the `STRIP' environment variable to overrule this program.
2603 if test "$cross_compiling" != no; then
2604   if test -n "$ac_tool_prefix"; then
2605   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2606 set dummy ${ac_tool_prefix}strip; ac_word=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_STRIP+set}" = set; then
2610   echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612   if test -n "$STRIP"; then
2613   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618   IFS=$as_save_IFS
2619   test -z "$as_dir" && as_dir=.
2620   for ac_exec_ext in '' $ac_executable_extensions; do
2621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 STRIP=$ac_cv_prog_STRIP
2633 if test -n "$STRIP"; then
2634   { echo "$as_me:$LINENO: result: $STRIP" >&5
2635 echo "${ECHO_T}$STRIP" >&6; }
2636 else
2637   { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2639 fi
2640
2641
2642 fi
2643 if test -z "$ac_cv_prog_STRIP"; then
2644   ac_ct_STRIP=$STRIP
2645   # Extract the first word of "strip", so it can be a program name with args.
2646 set dummy strip; ac_word=$2
2647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2649 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2650   echo $ECHO_N "(cached) $ECHO_C" >&6
2651 else
2652   if test -n "$ac_ct_STRIP"; then
2653   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658   IFS=$as_save_IFS
2659   test -z "$as_dir" && as_dir=.
2660   for ac_exec_ext in '' $ac_executable_extensions; do
2661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662     ac_cv_prog_ac_ct_STRIP="strip"
2663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664     break 2
2665   fi
2666 done
2667 done
2668 IFS=$as_save_IFS
2669
2670 fi
2671 fi
2672 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2673 if test -n "$ac_ct_STRIP"; then
2674   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2675 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2676 else
2677   { echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6; }
2679 fi
2680
2681   if test "x$ac_ct_STRIP" = x; then
2682     STRIP=":"
2683   else
2684     case $cross_compiling:$ac_tool_warned in
2685 yes:)
2686 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2687 whose name does not start with the host triplet.  If you think this
2688 configuration is useful to you, please write to autoconf@gnu.org." >&5
2689 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2690 whose name does not start with the host triplet.  If you think this
2691 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2692 ac_tool_warned=yes ;;
2693 esac
2694     STRIP=$ac_ct_STRIP
2695   fi
2696 else
2697   STRIP="$ac_cv_prog_STRIP"
2698 fi
2699
2700 fi
2701 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2702
2703 # We need awk for the "check" target.  The system "awk" is bad on
2704 # some platforms.
2705 # Always define AMTAR for backward compatibility.
2706
2707 AMTAR=${AMTAR-"${am_missing_run}tar"}
2708
2709 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2710
2711
2712
2713
2714
2715 cat >>confdefs.h <<_ACEOF
2716 #define OPENLDAP_PACKAGE "$PACKAGE"
2717 _ACEOF
2718
2719
2720 cat >>confdefs.h <<_ACEOF
2721 #define OPENLDAP_VERSION "$VERSION"
2722 _ACEOF
2723
2724
2725
2726 cat >>confdefs.h <<_ACEOF
2727 #define LDAP_VENDOR_VERSION $OL_API_INC
2728 _ACEOF
2729
2730
2731 cat >>confdefs.h <<_ACEOF
2732 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2733 _ACEOF
2734
2735
2736 cat >>confdefs.h <<_ACEOF
2737 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2738 _ACEOF
2739
2740
2741 cat >>confdefs.h <<_ACEOF
2742 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2743 _ACEOF
2744
2745
2746 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2747
2748 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2749
2750 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2751
2752
2753
2754
2755
2756
2757
2758 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2759
2760 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2761
2762 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2763
2764
2765 { echo "$as_me:$LINENO: checking configure arguments" >&5
2766 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2767
2768
2769 top_builddir=`pwd`
2770
2771 ldap_subdir="/openldap"
2772
2773
2774 # Check whether --with-subdir was given.
2775 if test "${with_subdir+set}" = set; then
2776   withval=$with_subdir; case "$withval" in
2777         no) ldap_subdir=""
2778                 ;;
2779         yes)
2780                 ;;
2781         /*|\\*)
2782                 ldap_subdir="$withval"
2783                 ;;
2784         *)
2785                 ldap_subdir="/$withval"
2786                 ;;
2787 esac
2788
2789 fi
2790
2791
2792 # OpenLDAP --enable-debug
2793
2794         # Check whether --enable-debug was given.
2795 if test "${enable_debug+set}" = set; then
2796   enableval=$enable_debug;
2797         ol_arg=invalid
2798         for ol_val in no yes traditional ; do
2799                 if test "$enableval" = "$ol_val" ; then
2800                         ol_arg="$ol_val"
2801                 fi
2802         done
2803         if test "$ol_arg" = "invalid" ; then
2804                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2805 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2806    { (exit 1); exit 1; }; }
2807         fi
2808         ol_enable_debug="$ol_arg"
2809
2810 else
2811         ol_enable_debug=yes
2812 fi
2813
2814 # end --enable-debug
2815 # OpenLDAP --enable-dynamic
2816
2817         # Check whether --enable-dynamic was given.
2818 if test "${enable_dynamic+set}" = set; then
2819   enableval=$enable_dynamic;
2820         ol_arg=invalid
2821         for ol_val in auto yes no ; do
2822                 if test "$enableval" = "$ol_val" ; then
2823                         ol_arg="$ol_val"
2824                 fi
2825         done
2826         if test "$ol_arg" = "invalid" ; then
2827                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2828 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2829    { (exit 1); exit 1; }; }
2830         fi
2831         ol_enable_dynamic="$ol_arg"
2832
2833 else
2834         ol_enable_dynamic=no
2835 fi
2836
2837 # end --enable-dynamic
2838 # OpenLDAP --enable-syslog
2839
2840         # Check whether --enable-syslog was given.
2841 if test "${enable_syslog+set}" = set; then
2842   enableval=$enable_syslog;
2843         ol_arg=invalid
2844         for ol_val in auto yes no ; do
2845                 if test "$enableval" = "$ol_val" ; then
2846                         ol_arg="$ol_val"
2847                 fi
2848         done
2849         if test "$ol_arg" = "invalid" ; then
2850                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2851 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2852    { (exit 1); exit 1; }; }
2853         fi
2854         ol_enable_syslog="$ol_arg"
2855
2856 else
2857         ol_enable_syslog=auto
2858 fi
2859
2860 # end --enable-syslog
2861 # OpenLDAP --enable-proctitle
2862
2863         # Check whether --enable-proctitle was given.
2864 if test "${enable_proctitle+set}" = set; then
2865   enableval=$enable_proctitle;
2866         ol_arg=invalid
2867         for ol_val in auto yes no ; do
2868                 if test "$enableval" = "$ol_val" ; then
2869                         ol_arg="$ol_val"
2870                 fi
2871         done
2872         if test "$ol_arg" = "invalid" ; then
2873                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2874 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2875    { (exit 1); exit 1; }; }
2876         fi
2877         ol_enable_proctitle="$ol_arg"
2878
2879 else
2880         ol_enable_proctitle=yes
2881 fi
2882
2883 # end --enable-proctitle
2884 ol_enable_referrals=${ol_enable_referrals-no}
2885 # OpenLDAP --enable-ipv6
2886
2887         # Check whether --enable-ipv6 was given.
2888 if test "${enable_ipv6+set}" = set; then
2889   enableval=$enable_ipv6;
2890         ol_arg=invalid
2891         for ol_val in auto yes no ; do
2892                 if test "$enableval" = "$ol_val" ; then
2893                         ol_arg="$ol_val"
2894                 fi
2895         done
2896         if test "$ol_arg" = "invalid" ; then
2897                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2898 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2899    { (exit 1); exit 1; }; }
2900         fi
2901         ol_enable_ipv6="$ol_arg"
2902
2903 else
2904         ol_enable_ipv6=auto
2905 fi
2906
2907 # end --enable-ipv6
2908 # OpenLDAP --enable-local
2909
2910         # Check whether --enable-local was given.
2911 if test "${enable_local+set}" = set; then
2912   enableval=$enable_local;
2913         ol_arg=invalid
2914         for ol_val in auto yes no ; do
2915                 if test "$enableval" = "$ol_val" ; then
2916                         ol_arg="$ol_val"
2917                 fi
2918         done
2919         if test "$ol_arg" = "invalid" ; then
2920                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2921 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2922    { (exit 1); exit 1; }; }
2923         fi
2924         ol_enable_local="$ol_arg"
2925
2926 else
2927         ol_enable_local=auto
2928 fi
2929
2930 # end --enable-local
2931
2932 # OpenLDAP --with-cyrus_sasl
2933
2934 # Check whether --with-cyrus_sasl was given.
2935 if test "${with_cyrus_sasl+set}" = set; then
2936   withval=$with_cyrus_sasl;
2937         ol_arg=invalid
2938         for ol_val in auto yes no  ; do
2939                 if test "$withval" = "$ol_val" ; then
2940                         ol_arg="$ol_val"
2941                 fi
2942         done
2943         if test "$ol_arg" = "invalid" ; then
2944                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2945 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2946    { (exit 1); exit 1; }; }
2947         fi
2948         ol_with_cyrus_sasl="$ol_arg"
2949
2950 else
2951         ol_with_cyrus_sasl="auto"
2952 fi
2953 # end --with-cyrus_sasl
2954
2955 # OpenLDAP --with-fetch
2956
2957 # Check whether --with-fetch was given.
2958 if test "${with_fetch+set}" = set; then
2959   withval=$with_fetch;
2960         ol_arg=invalid
2961         for ol_val in auto yes no  ; do
2962                 if test "$withval" = "$ol_val" ; then
2963                         ol_arg="$ol_val"
2964                 fi
2965         done
2966         if test "$ol_arg" = "invalid" ; then
2967                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2968 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2969    { (exit 1); exit 1; }; }
2970         fi
2971         ol_with_fetch="$ol_arg"
2972
2973 else
2974         ol_with_fetch="auto"
2975 fi
2976 # end --with-fetch
2977
2978 # OpenLDAP --with-threads
2979
2980 # Check whether --with-threads was given.
2981 if test "${with_threads+set}" = set; then
2982   withval=$with_threads;
2983         ol_arg=invalid
2984         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2985                 if test "$withval" = "$ol_val" ; then
2986                         ol_arg="$ol_val"
2987                 fi
2988         done
2989         if test "$ol_arg" = "invalid" ; then
2990                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2991 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2992    { (exit 1); exit 1; }; }
2993         fi
2994         ol_with_threads="$ol_arg"
2995
2996 else
2997         ol_with_threads="auto"
2998 fi
2999 # end --with-threads
3000
3001 # OpenLDAP --with-tls
3002
3003 # Check whether --with-tls was given.
3004 if test "${with_tls+set}" = set; then
3005   withval=$with_tls;
3006         ol_arg=invalid
3007         for ol_val in auto openssl gnutls moznss yes no  ; do
3008                 if test "$withval" = "$ol_val" ; then
3009                         ol_arg="$ol_val"
3010                 fi
3011         done
3012         if test "$ol_arg" = "invalid" ; then
3013                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
3014 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
3015    { (exit 1); exit 1; }; }
3016         fi
3017         ol_with_tls="$ol_arg"
3018
3019 else
3020         ol_with_tls="auto"
3021 fi
3022 # end --with-tls
3023
3024 # OpenLDAP --with-yielding_select
3025
3026 # Check whether --with-yielding_select was given.
3027 if test "${with_yielding_select+set}" = set; then
3028   withval=$with_yielding_select;
3029         ol_arg=invalid
3030         for ol_val in auto yes no manual  ; do
3031                 if test "$withval" = "$ol_val" ; then
3032                         ol_arg="$ol_val"
3033                 fi
3034         done
3035         if test "$ol_arg" = "invalid" ; then
3036                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3037 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3038    { (exit 1); exit 1; }; }
3039         fi
3040         ol_with_yielding_select="$ol_arg"
3041
3042 else
3043         ol_with_yielding_select="auto"
3044 fi
3045 # end --with-yielding_select
3046
3047 # OpenLDAP --with-mp
3048
3049 # Check whether --with-mp was given.
3050 if test "${with_mp+set}" = set; then
3051   withval=$with_mp;
3052         ol_arg=invalid
3053         for ol_val in auto longlong long bignum gmp yes no ; do
3054                 if test "$withval" = "$ol_val" ; then
3055                         ol_arg="$ol_val"
3056                 fi
3057         done
3058         if test "$ol_arg" = "invalid" ; then
3059                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3060 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3061    { (exit 1); exit 1; }; }
3062         fi
3063         ol_with_mp="$ol_arg"
3064
3065 else
3066         ol_with_mp="auto"
3067 fi
3068 # end --with-mp
3069
3070 # OpenLDAP --with-odbc
3071
3072 # Check whether --with-odbc was given.
3073 if test "${with_odbc+set}" = set; then
3074   withval=$with_odbc;
3075         ol_arg=invalid
3076         for ol_val in auto iodbc unixodbc odbc32  ; do
3077                 if test "$withval" = "$ol_val" ; then
3078                         ol_arg="$ol_val"
3079                 fi
3080         done
3081         if test "$ol_arg" = "invalid" ; then
3082                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3083 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3084    { (exit 1); exit 1; }; }
3085         fi
3086         ol_with_odbc="$ol_arg"
3087
3088 else
3089         ol_with_odbc="auto"
3090 fi
3091 # end --with-odbc
3092
3093
3094
3095 # Check whether --enable-xxslapdoptions was given.
3096 if test "${enable_xxslapdoptions+set}" = set; then
3097   enableval=$enable_xxslapdoptions;
3098 fi
3099
3100 # OpenLDAP --enable-slapd
3101
3102         # Check whether --enable-slapd was given.
3103 if test "${enable_slapd+set}" = set; then
3104   enableval=$enable_slapd;
3105         ol_arg=invalid
3106         for ol_val in auto yes no ; do
3107                 if test "$enableval" = "$ol_val" ; then
3108                         ol_arg="$ol_val"
3109                 fi
3110         done
3111         if test "$ol_arg" = "invalid" ; then
3112                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3113 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3114    { (exit 1); exit 1; }; }
3115         fi
3116         ol_enable_slapd="$ol_arg"
3117
3118 else
3119         ol_enable_slapd=yes
3120 fi
3121
3122 # end --enable-slapd
3123 # OpenLDAP --enable-dynacl
3124
3125         # Check whether --enable-dynacl was given.
3126 if test "${enable_dynacl+set}" = set; then
3127   enableval=$enable_dynacl;
3128         ol_arg=invalid
3129         for ol_val in auto yes no ; do
3130                 if test "$enableval" = "$ol_val" ; then
3131                         ol_arg="$ol_val"
3132                 fi
3133         done
3134         if test "$ol_arg" = "invalid" ; then
3135                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3136 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3137    { (exit 1); exit 1; }; }
3138         fi
3139         ol_enable_dynacl="$ol_arg"
3140
3141 else
3142         ol_enable_dynacl=no
3143 fi
3144
3145 # end --enable-dynacl
3146 # OpenLDAP --enable-aci
3147
3148         # Check whether --enable-aci was given.
3149 if test "${enable_aci+set}" = set; then
3150   enableval=$enable_aci;
3151         ol_arg=invalid
3152         for ol_val in no yes mod ; do
3153                 if test "$enableval" = "$ol_val" ; then
3154                         ol_arg="$ol_val"
3155                 fi
3156         done
3157         if test "$ol_arg" = "invalid" ; then
3158                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3159 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3160    { (exit 1); exit 1; }; }
3161         fi
3162         ol_enable_aci="$ol_arg"
3163
3164 else
3165         ol_enable_aci=no
3166 fi
3167
3168 # end --enable-aci
3169 # OpenLDAP --enable-cleartext
3170
3171         # Check whether --enable-cleartext was given.
3172 if test "${enable_cleartext+set}" = set; then
3173   enableval=$enable_cleartext;
3174         ol_arg=invalid
3175         for ol_val in auto yes no ; do
3176                 if test "$enableval" = "$ol_val" ; then
3177                         ol_arg="$ol_val"
3178                 fi
3179         done
3180         if test "$ol_arg" = "invalid" ; then
3181                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3182 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3183    { (exit 1); exit 1; }; }
3184         fi
3185         ol_enable_cleartext="$ol_arg"
3186
3187 else
3188         ol_enable_cleartext=yes
3189 fi
3190
3191 # end --enable-cleartext
3192 # OpenLDAP --enable-crypt
3193
3194         # Check whether --enable-crypt was given.
3195 if test "${enable_crypt+set}" = set; then
3196   enableval=$enable_crypt;
3197         ol_arg=invalid
3198         for ol_val in auto yes no ; do
3199                 if test "$enableval" = "$ol_val" ; then
3200                         ol_arg="$ol_val"
3201                 fi
3202         done
3203         if test "$ol_arg" = "invalid" ; then
3204                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3205 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3206    { (exit 1); exit 1; }; }
3207         fi
3208         ol_enable_crypt="$ol_arg"
3209
3210 else
3211         ol_enable_crypt=no
3212 fi
3213
3214 # end --enable-crypt
3215 # OpenLDAP --enable-lmpasswd
3216
3217         # Check whether --enable-lmpasswd was given.
3218 if test "${enable_lmpasswd+set}" = set; then
3219   enableval=$enable_lmpasswd;
3220         ol_arg=invalid
3221         for ol_val in auto yes no ; do
3222                 if test "$enableval" = "$ol_val" ; then
3223                         ol_arg="$ol_val"
3224                 fi
3225         done
3226         if test "$ol_arg" = "invalid" ; then
3227                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3228 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3229    { (exit 1); exit 1; }; }
3230         fi
3231         ol_enable_lmpasswd="$ol_arg"
3232
3233 else
3234         ol_enable_lmpasswd=no
3235 fi
3236
3237 # end --enable-lmpasswd
3238 # OpenLDAP --enable-spasswd
3239
3240         # Check whether --enable-spasswd was given.
3241 if test "${enable_spasswd+set}" = set; then
3242   enableval=$enable_spasswd;
3243         ol_arg=invalid
3244         for ol_val in auto yes no ; do
3245                 if test "$enableval" = "$ol_val" ; then
3246                         ol_arg="$ol_val"
3247                 fi
3248         done
3249         if test "$ol_arg" = "invalid" ; then
3250                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3251 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3252    { (exit 1); exit 1; }; }
3253         fi
3254         ol_enable_spasswd="$ol_arg"
3255
3256 else
3257         ol_enable_spasswd=no
3258 fi
3259
3260 # end --enable-spasswd
3261 # OpenLDAP --enable-modules
3262
3263         # Check whether --enable-modules was given.
3264 if test "${enable_modules+set}" = set; then
3265   enableval=$enable_modules;
3266         ol_arg=invalid
3267         for ol_val in auto yes no ; do
3268                 if test "$enableval" = "$ol_val" ; then
3269                         ol_arg="$ol_val"
3270                 fi
3271         done
3272         if test "$ol_arg" = "invalid" ; then
3273                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3274 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3275    { (exit 1); exit 1; }; }
3276         fi
3277         ol_enable_modules="$ol_arg"
3278
3279 else
3280         ol_enable_modules=no
3281 fi
3282
3283 # end --enable-modules
3284 # OpenLDAP --enable-rewrite
3285
3286         # Check whether --enable-rewrite was given.
3287 if test "${enable_rewrite+set}" = set; then
3288   enableval=$enable_rewrite;
3289         ol_arg=invalid
3290         for ol_val in auto yes no ; do
3291                 if test "$enableval" = "$ol_val" ; then
3292                         ol_arg="$ol_val"
3293                 fi
3294         done
3295         if test "$ol_arg" = "invalid" ; then
3296                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3297 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3298    { (exit 1); exit 1; }; }
3299         fi
3300         ol_enable_rewrite="$ol_arg"
3301
3302 else
3303         ol_enable_rewrite=auto
3304 fi
3305
3306 # end --enable-rewrite
3307 # OpenLDAP --enable-rlookups
3308
3309         # Check whether --enable-rlookups was given.
3310 if test "${enable_rlookups+set}" = set; then
3311   enableval=$enable_rlookups;
3312         ol_arg=invalid
3313         for ol_val in auto yes no ; do
3314                 if test "$enableval" = "$ol_val" ; then
3315                         ol_arg="$ol_val"
3316                 fi
3317         done
3318         if test "$ol_arg" = "invalid" ; then
3319                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3320 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3321    { (exit 1); exit 1; }; }
3322         fi
3323         ol_enable_rlookups="$ol_arg"
3324
3325 else
3326         ol_enable_rlookups=no
3327 fi
3328
3329 # end --enable-rlookups
3330 # OpenLDAP --enable-slapi
3331
3332         # Check whether --enable-slapi was given.
3333 if test "${enable_slapi+set}" = set; then
3334   enableval=$enable_slapi;
3335         ol_arg=invalid
3336         for ol_val in auto yes no ; do
3337                 if test "$enableval" = "$ol_val" ; then
3338                         ol_arg="$ol_val"
3339                 fi
3340         done
3341         if test "$ol_arg" = "invalid" ; then
3342                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3343 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3344    { (exit 1); exit 1; }; }
3345         fi
3346         ol_enable_slapi="$ol_arg"
3347
3348 else
3349         ol_enable_slapi=no
3350 fi
3351
3352 # end --enable-slapi
3353 # OpenLDAP --enable-slp
3354
3355         # Check whether --enable-slp was given.
3356 if test "${enable_slp+set}" = set; then
3357   enableval=$enable_slp;
3358         ol_arg=invalid
3359         for ol_val in auto yes no ; do
3360                 if test "$enableval" = "$ol_val" ; then
3361                         ol_arg="$ol_val"
3362                 fi
3363         done
3364         if test "$ol_arg" = "invalid" ; then
3365                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3366 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3367    { (exit 1); exit 1; }; }
3368         fi
3369         ol_enable_slp="$ol_arg"
3370
3371 else
3372         ol_enable_slp=no
3373 fi
3374
3375 # end --enable-slp
3376 # OpenLDAP --enable-wrappers
3377
3378         # Check whether --enable-wrappers was given.
3379 if test "${enable_wrappers+set}" = set; then
3380   enableval=$enable_wrappers;
3381         ol_arg=invalid
3382         for ol_val in auto yes no ; do
3383                 if test "$enableval" = "$ol_val" ; then
3384                         ol_arg="$ol_val"
3385                 fi
3386         done
3387         if test "$ol_arg" = "invalid" ; then
3388                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3389 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3390    { (exit 1); exit 1; }; }
3391         fi
3392         ol_enable_wrappers="$ol_arg"
3393
3394 else
3395         ol_enable_wrappers=no
3396 fi
3397
3398 # end --enable-wrappers
3399
3400 Backends="bdb \
3401         dnssrv \
3402         hdb \
3403         ldap \
3404         meta \
3405         monitor \
3406         ndb \
3407         null \
3408         passwd \
3409         perl \
3410         relay \
3411         shell \
3412         sock \
3413         sql"
3414
3415 # Check whether --enable-xxslapbackends was given.
3416 if test "${enable_xxslapbackends+set}" = set; then
3417   enableval=$enable_xxslapbackends;
3418 fi
3419
3420
3421 # OpenLDAP --enable-backends
3422
3423         # Check whether --enable-backends was given.
3424 if test "${enable_backends+set}" = set; then
3425   enableval=$enable_backends;
3426         ol_arg=invalid
3427         for ol_val in no yes mod ; do
3428                 if test "$enableval" = "$ol_val" ; then
3429                         ol_arg="$ol_val"
3430                 fi
3431         done
3432         if test "$ol_arg" = "invalid" ; then
3433                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3434 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3435    { (exit 1); exit 1; }; }
3436         fi
3437         ol_enable_backends="$ol_arg"
3438
3439 fi
3440
3441 # end --enable-backends
3442 # OpenLDAP --enable-bdb
3443
3444         # Check whether --enable-bdb was given.
3445 if test "${enable_bdb+set}" = set; then
3446   enableval=$enable_bdb;
3447         ol_arg=invalid
3448         for ol_val in no yes mod ; do
3449                 if test "$enableval" = "$ol_val" ; then
3450                         ol_arg="$ol_val"
3451                 fi
3452         done
3453         if test "$ol_arg" = "invalid" ; then
3454                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3455 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3456    { (exit 1); exit 1; }; }
3457         fi
3458         ol_enable_bdb="$ol_arg"
3459
3460 else
3461         ol_enable_bdb=${ol_enable_backends:-no}
3462 fi
3463
3464 # end --enable-bdb
3465 # OpenLDAP --enable-dnssrv
3466
3467         # Check whether --enable-dnssrv was given.
3468 if test "${enable_dnssrv+set}" = set; then
3469   enableval=$enable_dnssrv;
3470         ol_arg=invalid
3471         for ol_val in no yes mod ; do
3472                 if test "$enableval" = "$ol_val" ; then
3473                         ol_arg="$ol_val"
3474                 fi
3475         done
3476         if test "$ol_arg" = "invalid" ; then
3477                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3478 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3479    { (exit 1); exit 1; }; }
3480         fi
3481         ol_enable_dnssrv="$ol_arg"
3482
3483 else
3484         ol_enable_dnssrv=${ol_enable_backends:-no}
3485 fi
3486
3487 # end --enable-dnssrv
3488 # OpenLDAP --enable-hdb
3489
3490         # Check whether --enable-hdb was given.
3491 if test "${enable_hdb+set}" = set; then
3492   enableval=$enable_hdb;
3493         ol_arg=invalid
3494         for ol_val in no yes mod ; do
3495                 if test "$enableval" = "$ol_val" ; then
3496                         ol_arg="$ol_val"
3497                 fi
3498         done
3499         if test "$ol_arg" = "invalid" ; then
3500                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3501 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3502    { (exit 1); exit 1; }; }
3503         fi
3504         ol_enable_hdb="$ol_arg"
3505
3506 else
3507         ol_enable_hdb=${ol_enable_backends:-yes}
3508 fi
3509
3510 # end --enable-hdb
3511 # OpenLDAP --enable-ldap
3512
3513         # Check whether --enable-ldap was given.
3514 if test "${enable_ldap+set}" = set; then
3515   enableval=$enable_ldap;
3516         ol_arg=invalid
3517         for ol_val in no yes mod ; do
3518                 if test "$enableval" = "$ol_val" ; then
3519                         ol_arg="$ol_val"
3520                 fi
3521         done
3522         if test "$ol_arg" = "invalid" ; then
3523                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3524 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3525    { (exit 1); exit 1; }; }
3526         fi
3527         ol_enable_ldap="$ol_arg"
3528
3529 else
3530         ol_enable_ldap=${ol_enable_backends:-no}
3531 fi
3532
3533 # end --enable-ldap
3534 # OpenLDAP --enable-meta
3535
3536         # Check whether --enable-meta was given.
3537 if test "${enable_meta+set}" = set; then
3538   enableval=$enable_meta;
3539         ol_arg=invalid
3540         for ol_val in no yes mod ; do
3541                 if test "$enableval" = "$ol_val" ; then
3542                         ol_arg="$ol_val"
3543                 fi
3544         done
3545         if test "$ol_arg" = "invalid" ; then
3546                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3547 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3548    { (exit 1); exit 1; }; }
3549         fi
3550         ol_enable_meta="$ol_arg"
3551
3552 else
3553         ol_enable_meta=${ol_enable_backends:-no}
3554 fi
3555
3556 # end --enable-meta
3557 # OpenLDAP --enable-monitor
3558
3559         # Check whether --enable-monitor was given.
3560 if test "${enable_monitor+set}" = set; then
3561   enableval=$enable_monitor;
3562         ol_arg=invalid
3563         for ol_val in no yes mod ; do
3564                 if test "$enableval" = "$ol_val" ; then
3565                         ol_arg="$ol_val"
3566                 fi
3567         done
3568         if test "$ol_arg" = "invalid" ; then
3569                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3570 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3571    { (exit 1); exit 1; }; }
3572         fi
3573         ol_enable_monitor="$ol_arg"
3574
3575 else
3576         ol_enable_monitor=${ol_enable_backends:-yes}
3577 fi
3578
3579 # end --enable-monitor
3580 # OpenLDAP --enable-ndb
3581
3582         # Check whether --enable-ndb was given.
3583 if test "${enable_ndb+set}" = set; then
3584   enableval=$enable_ndb;
3585         ol_arg=invalid
3586         for ol_val in no yes mod ; do
3587                 if test "$enableval" = "$ol_val" ; then
3588                         ol_arg="$ol_val"
3589                 fi
3590         done
3591         if test "$ol_arg" = "invalid" ; then
3592                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3593 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3594    { (exit 1); exit 1; }; }
3595         fi
3596         ol_enable_ndb="$ol_arg"
3597
3598 else
3599         ol_enable_ndb=${ol_enable_backends:-no}
3600 fi
3601
3602 # end --enable-ndb
3603 # OpenLDAP --enable-null
3604
3605         # Check whether --enable-null was given.
3606 if test "${enable_null+set}" = set; then
3607   enableval=$enable_null;
3608         ol_arg=invalid
3609         for ol_val in no yes mod ; do
3610                 if test "$enableval" = "$ol_val" ; then
3611                         ol_arg="$ol_val"
3612                 fi
3613         done
3614         if test "$ol_arg" = "invalid" ; then
3615                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3616 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3617    { (exit 1); exit 1; }; }
3618         fi
3619         ol_enable_null="$ol_arg"
3620
3621 else
3622         ol_enable_null=${ol_enable_backends:-no}
3623 fi
3624
3625 # end --enable-null
3626 # OpenLDAP --enable-passwd
3627
3628         # Check whether --enable-passwd was given.
3629 if test "${enable_passwd+set}" = set; then
3630   enableval=$enable_passwd;
3631         ol_arg=invalid
3632         for ol_val in no yes mod ; do
3633                 if test "$enableval" = "$ol_val" ; then
3634                         ol_arg="$ol_val"
3635                 fi
3636         done
3637         if test "$ol_arg" = "invalid" ; then
3638                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3639 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3640    { (exit 1); exit 1; }; }
3641         fi
3642         ol_enable_passwd="$ol_arg"
3643
3644 else
3645         ol_enable_passwd=${ol_enable_backends:-no}
3646 fi
3647
3648 # end --enable-passwd
3649 # OpenLDAP --enable-perl
3650
3651         # Check whether --enable-perl was given.
3652 if test "${enable_perl+set}" = set; then
3653   enableval=$enable_perl;
3654         ol_arg=invalid
3655         for ol_val in no yes mod ; do
3656                 if test "$enableval" = "$ol_val" ; then
3657                         ol_arg="$ol_val"
3658                 fi
3659         done
3660         if test "$ol_arg" = "invalid" ; then
3661                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3662 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3663    { (exit 1); exit 1; }; }
3664         fi
3665         ol_enable_perl="$ol_arg"
3666
3667 else
3668         ol_enable_perl=${ol_enable_backends:-no}
3669 fi
3670
3671 # end --enable-perl
3672 # OpenLDAP --enable-relay
3673
3674         # Check whether --enable-relay was given.
3675 if test "${enable_relay+set}" = set; then
3676   enableval=$enable_relay;
3677         ol_arg=invalid
3678         for ol_val in no yes mod ; do
3679                 if test "$enableval" = "$ol_val" ; then
3680                         ol_arg="$ol_val"
3681                 fi
3682         done
3683         if test "$ol_arg" = "invalid" ; then
3684                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3685 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3686    { (exit 1); exit 1; }; }
3687         fi
3688         ol_enable_relay="$ol_arg"
3689
3690 else
3691         ol_enable_relay=${ol_enable_backends:-yes}
3692 fi
3693
3694 # end --enable-relay
3695 # OpenLDAP --enable-shell
3696
3697         # Check whether --enable-shell was given.
3698 if test "${enable_shell+set}" = set; then
3699   enableval=$enable_shell;
3700         ol_arg=invalid
3701         for ol_val in no yes mod ; do
3702                 if test "$enableval" = "$ol_val" ; then
3703                         ol_arg="$ol_val"
3704                 fi
3705         done
3706         if test "$ol_arg" = "invalid" ; then
3707                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3708 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3709    { (exit 1); exit 1; }; }
3710         fi
3711         ol_enable_shell="$ol_arg"
3712
3713 else
3714         ol_enable_shell=${ol_enable_backends:-no}
3715 fi
3716
3717 # end --enable-shell
3718 # OpenLDAP --enable-sock
3719
3720         # Check whether --enable-sock was given.
3721 if test "${enable_sock+set}" = set; then
3722   enableval=$enable_sock;
3723         ol_arg=invalid
3724         for ol_val in no yes mod ; do
3725                 if test "$enableval" = "$ol_val" ; then
3726                         ol_arg="$ol_val"
3727                 fi
3728         done
3729         if test "$ol_arg" = "invalid" ; then
3730                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3731 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3732    { (exit 1); exit 1; }; }
3733         fi
3734         ol_enable_sock="$ol_arg"
3735
3736 else
3737         ol_enable_sock=${ol_enable_backends:-no}
3738 fi
3739
3740 # end --enable-sock
3741 # OpenLDAP --enable-sql
3742
3743         # Check whether --enable-sql was given.
3744 if test "${enable_sql+set}" = set; then
3745   enableval=$enable_sql;
3746         ol_arg=invalid
3747         for ol_val in no yes mod ; do
3748                 if test "$enableval" = "$ol_val" ; then
3749                         ol_arg="$ol_val"
3750                 fi
3751         done
3752         if test "$ol_arg" = "invalid" ; then
3753                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3754 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3755    { (exit 1); exit 1; }; }
3756         fi
3757         ol_enable_sql="$ol_arg"
3758
3759 else
3760         ol_enable_sql=${ol_enable_backends:-no}
3761 fi
3762
3763 # end --enable-sql
3764
3765 Overlays="accesslog \
3766         auditlog \
3767         collect \
3768         constraint \
3769         dds \
3770         deref \
3771         dyngroup \
3772         dynlist \
3773         memberof \
3774         ppolicy \
3775         proxycache \
3776         refint \
3777         retcode \
3778         rwm \
3779         seqmod \
3780         sssvlv \
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:-no}
4169 fi
4170
4171 # end --enable-seqmod
4172
4173 # OpenLDAP --enable-sssvlv
4174
4175         # Check whether --enable-sssvlv was given.
4176 if test "${enable_sssvlv+set}" = set; then
4177   enableval=$enable_sssvlv;
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-sssvlv" >&5
4186 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4187    { (exit 1); exit 1; }; }
4188         fi
4189         ol_enable_sssvlv="$ol_arg"
4190
4191 else
4192         ol_enable_sssvlv=${ol_enable_overlays:-no}
4193 fi
4194
4195 # end --enable-sssvlv
4196
4197 # OpenLDAP --enable-syncprov
4198
4199         # Check whether --enable-syncprov was given.
4200 if test "${enable_syncprov+set}" = set; then
4201   enableval=$enable_syncprov;
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-syncprov" >&5
4210 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4211    { (exit 1); exit 1; }; }
4212         fi
4213         ol_enable_syncprov="$ol_arg"
4214
4215 else
4216         ol_enable_syncprov=${ol_enable_overlays:-yes}
4217 fi
4218
4219 # end --enable-syncprov
4220
4221 # OpenLDAP --enable-translucent
4222
4223         # Check whether --enable-translucent was given.
4224 if test "${enable_translucent+set}" = set; then
4225   enableval=$enable_translucent;
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-translucent" >&5
4234 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4235    { (exit 1); exit 1; }; }
4236         fi
4237         ol_enable_translucent="$ol_arg"
4238
4239 else
4240         ol_enable_translucent=${ol_enable_overlays:-no}
4241 fi
4242
4243 # end --enable-translucent
4244
4245 # OpenLDAP --enable-unique
4246
4247         # Check whether --enable-unique was given.
4248 if test "${enable_unique+set}" = set; then
4249   enableval=$enable_unique;
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-unique" >&5
4258 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4259    { (exit 1); exit 1; }; }
4260         fi
4261         ol_enable_unique="$ol_arg"
4262
4263 else
4264         ol_enable_unique=${ol_enable_overlays:-no}
4265 fi
4266
4267 # end --enable-unique
4268
4269 # OpenLDAP --enable-valsort
4270
4271         # Check whether --enable-valsort was given.
4272 if test "${enable_valsort+set}" = set; then
4273   enableval=$enable_valsort;
4274         ol_arg=invalid
4275         for ol_val in no yes mod ; do
4276                 if test "$enableval" = "$ol_val" ; then
4277                         ol_arg="$ol_val"
4278                 fi
4279         done
4280         if test "$ol_arg" = "invalid" ; then
4281                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4282 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4283    { (exit 1); exit 1; }; }
4284         fi
4285         ol_enable_valsort="$ol_arg"
4286
4287 else
4288         ol_enable_valsort=${ol_enable_overlays:-no}
4289 fi
4290
4291 # end --enable-valsort
4292
4293
4294 # Check whether --enable-xxliboptions was given.
4295 if test "${enable_xxliboptions+set}" = set; then
4296   enableval=$enable_xxliboptions;
4297 fi
4298
4299 # Check whether --enable-static was given.
4300 if test "${enable_static+set}" = set; then
4301   enableval=$enable_static; p=${PACKAGE-default}
4302     case $enableval in
4303     yes) enable_static=yes ;;
4304     no) enable_static=no ;;
4305     *)
4306      enable_static=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_static=yes
4313         fi
4314       done
4315       IFS="$lt_save_ifs"
4316       ;;
4317     esac
4318 else
4319   enable_static=yes
4320 fi
4321
4322
4323 # Check whether --enable-shared was given.
4324 if test "${enable_shared+set}" = set; then
4325   enableval=$enable_shared; p=${PACKAGE-default}
4326     case $enableval in
4327     yes) enable_shared=yes ;;
4328     no) enable_shared=no ;;
4329     *)
4330       enable_shared=no
4331       # Look at the argument we got.  We use all the common list separators.
4332       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4333       for pkg in $enableval; do
4334         IFS="$lt_save_ifs"
4335         if test "X$pkg" = "X$p"; then
4336           enable_shared=yes
4337         fi
4338       done
4339       IFS="$lt_save_ifs"
4340       ;;
4341     esac
4342 else
4343   enable_shared=yes
4344 fi
4345
4346
4347
4348
4349 # validate options
4350 if test $ol_enable_slapd = no ; then
4351                 if test $ol_enable_slapi = yes ; then
4352                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4353 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4354         fi
4355         case "$ol_enable_backends" in yes | mod)
4356                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4357 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4358         esac
4359         for i in $Backends; do
4360                 eval "ol_tmp=\$ol_enable_$i"
4361                 if test $ol_tmp != no ; then
4362                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4363 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4364                         eval "ol_enable_$i=no"
4365                 fi
4366         done
4367         if test $ol_enable_modules = yes ; then
4368                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4369 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4370         fi
4371         if test $ol_enable_wrappers = yes ; then
4372                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4373 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4374         fi
4375         if test $ol_enable_rlookups = yes ; then
4376                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4377 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4378         fi
4379         if test $ol_enable_dynacl = yes ; then
4380                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4381 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4382         fi
4383         if test $ol_enable_aci != no ; then
4384                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4385 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4386         fi
4387         if test $ol_enable_rewrite = yes ; then
4388                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4389 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4390         fi
4391                 case "$ol_enable_overlays" in yes | mod)
4392                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4393 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4394         esac
4395         for i in $Overlays; do
4396                 eval "ol_tmp=\$ol_enable_$i"
4397                 if test $ol_tmp != no ; then
4398                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4399 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4400                         eval "ol_enable_$i=no"
4401                 fi
4402         done
4403
4404         # force settings to no
4405         ol_enable_slapi=no
4406
4407         ol_enable_backends=
4408         ol_enable_overlays=
4409         ol_enable_modules=no
4410         ol_enable_rlookups=no
4411         ol_enable_dynacl=no
4412         ol_enable_aci=no
4413         ol_enable_wrappers=no
4414
4415         ol_enable_rewrite=no
4416
4417 elif test $ol_enable_modules != yes &&
4418         test $ol_enable_bdb = no &&
4419         test $ol_enable_dnssrv = no &&
4420         test $ol_enable_hdb = no &&
4421         test $ol_enable_ldap = no &&
4422         test $ol_enable_meta = no &&
4423         test $ol_enable_monitor = no &&
4424         test $ol_enable_ndb = no &&
4425         test $ol_enable_null = no &&
4426         test $ol_enable_passwd = no &&
4427         test $ol_enable_perl = no &&
4428         test $ol_enable_relay = no &&
4429         test $ol_enable_shell = no &&
4430         test $ol_enable_sock = no &&
4431         test $ol_enable_sql = no ; then
4432
4433         if test $ol_enable_slapd = yes ; then
4434                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4435 echo "$as_me: error: slapd requires a backend" >&2;}
4436    { (exit 1); exit 1; }; }
4437         else
4438                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4439 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4440                 ol_enable_slapd=no
4441         fi
4442 fi
4443
4444 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4445         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4446 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4447    { (exit 1); exit 1; }; }
4448 fi
4449
4450 if test $ol_enable_lmpasswd = yes ; then
4451         if test $ol_with_tls = no ; then
4452                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4453 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4454    { (exit 1); exit 1; }; }
4455         fi
4456 fi
4457
4458 if test $ol_enable_spasswd = yes ; then
4459         if test $ol_with_cyrus_sasl = no ; then
4460                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4461 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4462    { (exit 1); exit 1; }; }
4463         fi
4464         ol_with_cyrus_sasl=yes
4465 fi
4466
4467 { echo "$as_me:$LINENO: result: done" >&5
4468 echo "${ECHO_T}done" >&6; }
4469
4470 LDAP_LIBS=
4471 BDB_LIBS=
4472 SLAPD_NDB_LIBS=
4473 SLAPD_NDB_INCS=
4474 LTHREAD_LIBS=
4475 LUTIL_LIBS=
4476
4477 SLAPD_LIBS=
4478
4479 BUILD_SLAPD=no
4480
4481 BUILD_THREAD=no
4482
4483 BUILD_SLAPI=no
4484 SLAPD_SLAPI_DEPEND=
4485
4486 BUILD_BDB=no
4487 BUILD_DNSSRV=no
4488 BUILD_HDB=no
4489 BUILD_LDAP=no
4490 BUILD_META=no
4491 BUILD_MONITOR=no
4492 BUILD_NDB=no
4493 BUILD_NULL=no
4494 BUILD_PASSWD=no
4495 BUILD_PERL=no
4496 BUILD_RELAY=no
4497 BUILD_SHELL=no
4498 BUILD_SOCK=no
4499 BUILD_SQL=no
4500
4501 BUILD_ACCESSLOG=no
4502 BUILD_AUDITLOG=no
4503 BUILD_CONSTRAINT=no
4504 BUILD_DDS=no
4505 BUILD_DENYOP=no
4506 BUILD_DEREF=no
4507 BUILD_DYNGROUP=no
4508 BUILD_DYNLIST=no
4509 BUILD_LASTMOD=no
4510 BUILD_MEMBEROF=no
4511 BUILD_PPOLICY=no
4512 BUILD_PROXYCACHE=no
4513 BUILD_REFINT=no
4514 BUILD_RETCODE=no
4515 BUILD_RWM=no
4516 BUILD_SEQMOD=no
4517 BUILD_SSSVLV=no
4518 BUILD_SYNCPROV=no
4519 BUILD_TRANSLUCENT=no
4520 BUILD_UNIQUE=no
4521 BUILD_VALSORT=no
4522
4523 SLAPD_STATIC_OVERLAYS=
4524 SLAPD_DYNAMIC_OVERLAYS=
4525
4526 SLAPD_MODULES_LDFLAGS=
4527 SLAPD_MODULES_CPPFLAGS=
4528
4529 SLAPD_STATIC_BACKENDS=back-ldif
4530 SLAPD_DYNAMIC_BACKENDS=
4531
4532 SLAPD_PERL_LDFLAGS=
4533 MOD_PERL_LDFLAGS=
4534 PERL_CPPFLAGS=
4535
4536 SLAPD_SQL_LDFLAGS=
4537 SLAPD_SQL_LIBS=
4538 SLAPD_SQL_INCLUDES=
4539
4540 KRB4_LIBS=
4541 KRB5_LIBS=
4542 SASL_LIBS=
4543 TLS_LIBS=
4544 MODULES_LIBS=
4545 SLAPI_LIBS=
4546 LIBSLAPI=
4547 LIBSLAPITOOLS=
4548 AUTH_LIBS=
4549 ICU_LIBS=
4550
4551 SLAPD_SLP_LIBS=
4552 SLAPD_GMP_LIBS=
4553
4554
4555
4556 cat >>confdefs.h <<\_ACEOF
4557 #define HAVE_MKVERSION 1
4558 _ACEOF
4559
4560
4561
4562
4563 ol_aix_threads=no
4564 case "$target" in
4565 *-*-aix*)       if test -z "$CC" ; then
4566                 case "$ol_with_threads" in
4567                 auto | yes |  posix) ol_aix_threads=yes ;;
4568                 esac
4569         fi
4570 ;;
4571 esac
4572
4573 if test $ol_aix_threads = yes ; then
4574         if test -z "${CC}" ; then
4575                 for ac_prog in cc_r xlc_r cc
4576 do
4577   # Extract the first word of "$ac_prog", so it can be a program name with args.
4578 set dummy $ac_prog; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_CC+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   if test -n "$CC"; then
4585   ac_cv_prog_CC="$CC" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590   IFS=$as_save_IFS
4591   test -z "$as_dir" && as_dir=.
4592   for ac_exec_ext in '' $ac_executable_extensions; do
4593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594     ac_cv_prog_CC="$ac_prog"
4595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596     break 2
4597   fi
4598 done
4599 done
4600 IFS=$as_save_IFS
4601
4602 fi
4603 fi
4604 CC=$ac_cv_prog_CC
4605 if test -n "$CC"; then
4606   { echo "$as_me:$LINENO: result: $CC" >&5
4607 echo "${ECHO_T}$CC" >&6; }
4608 else
4609   { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4611 fi
4612
4613
4614   test -n "$CC" && break
4615 done
4616
4617
4618                 if test "$CC" = cc ; then
4619                                                 if test $ol_with_threads != auto ; then
4620                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4621 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4622    { (exit 1); exit 1; }; }
4623                         else
4624                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4625 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4626                         fi
4627                         ol_with_threads=no
4628                 fi
4629         fi
4630
4631         case ${CC} in cc_r | xlc_r)
4632                 ol_with_threads=posix
4633                 ol_cv_pthread_create=yes
4634                 ;;
4635         esac
4636 fi
4637
4638 if test -z "${CC}"; then
4639         for ac_prog in cc gcc
4640 do
4641   # Extract the first word of "$ac_prog", so it can be a program name with args.
4642 set dummy $ac_prog; ac_word=$2
4643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645 if test "${ac_cv_prog_CC+set}" = set; then
4646   echo $ECHO_N "(cached) $ECHO_C" >&6
4647 else
4648   if test -n "$CC"; then
4649   ac_cv_prog_CC="$CC" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4653 do
4654   IFS=$as_save_IFS
4655   test -z "$as_dir" && as_dir=.
4656   for ac_exec_ext in '' $ac_executable_extensions; do
4657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658     ac_cv_prog_CC="$ac_prog"
4659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660     break 2
4661   fi
4662 done
4663 done
4664 IFS=$as_save_IFS
4665
4666 fi
4667 fi
4668 CC=$ac_cv_prog_CC
4669 if test -n "$CC"; then
4670   { echo "$as_me:$LINENO: result: $CC" >&5
4671 echo "${ECHO_T}$CC" >&6; }
4672 else
4673   { echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6; }
4675 fi
4676
4677
4678   test -n "$CC" && break
4679 done
4680 test -n "$CC" || CC="missing"
4681
4682
4683         if test "${CC}" = "missing" ; then
4684                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4685 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4686    { (exit 1); exit 1; }; }
4687         fi
4688 fi
4689
4690 if test -z "${AR}"; then
4691         for ac_prog in ar gar
4692 do
4693   # Extract the first word of "$ac_prog", so it can be a program name with args.
4694 set dummy $ac_prog; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_AR+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   if test -n "$AR"; then
4701   ac_cv_prog_AR="$AR" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706   IFS=$as_save_IFS
4707   test -z "$as_dir" && as_dir=.
4708   for ac_exec_ext in '' $ac_executable_extensions; do
4709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710     ac_cv_prog_AR="$ac_prog"
4711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718 fi
4719 fi
4720 AR=$ac_cv_prog_AR
4721 if test -n "$AR"; then
4722   { echo "$as_me:$LINENO: result: $AR" >&5
4723 echo "${ECHO_T}$AR" >&6; }
4724 else
4725   { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4727 fi
4728
4729
4730   test -n "$AR" && break
4731 done
4732 test -n "$AR" || AR="missing"
4733
4734
4735         if test "${AR}" = "missing" ; then
4736                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4737 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4738    { (exit 1); exit 1; }; }
4739         fi
4740 fi
4741
4742
4743
4744
4745
4746 # Check whether --enable-fast-install was given.
4747 if test "${enable_fast_install+set}" = set; then
4748   enableval=$enable_fast_install; p=${PACKAGE-default}
4749     case $enableval in
4750     yes) enable_fast_install=yes ;;
4751     no) enable_fast_install=no ;;
4752     *)
4753       enable_fast_install=no
4754       # Look at the argument we got.  We use all the common list separators.
4755       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4756       for pkg in $enableval; do
4757         IFS="$lt_save_ifs"
4758         if test "X$pkg" = "X$p"; then
4759           enable_fast_install=yes
4760         fi
4761       done
4762       IFS="$lt_save_ifs"
4763       ;;
4764     esac
4765 else
4766   enable_fast_install=yes
4767 fi
4768
4769
4770 DEPDIR="${am__leading_dot}deps"
4771
4772 ac_config_commands="$ac_config_commands depfiles"
4773
4774
4775 am_make=${MAKE-make}
4776 cat > confinc << 'END'
4777 am__doit:
4778         @echo done
4779 .PHONY: am__doit
4780 END
4781 # If we don't find an include directive, just comment out the code.
4782 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4783 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4784 am__include="#"
4785 am__quote=
4786 _am_result=none
4787 # First try GNU make style include.
4788 echo "include confinc" > confmf
4789 # We grep out `Entering directory' and `Leaving directory'
4790 # messages which can occur if `w' ends up in MAKEFLAGS.
4791 # In particular we don't look at `^make:' because GNU make might
4792 # be invoked under some other name (usually "gmake"), in which
4793 # case it prints its new name instead of `make'.
4794 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4795    am__include=include
4796    am__quote=
4797    _am_result=GNU
4798 fi
4799 # Now try BSD make style include.
4800 if test "$am__include" = "#"; then
4801    echo '.include "confinc"' > confmf
4802    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4803       am__include=.include
4804       am__quote="\""
4805       _am_result=BSD
4806    fi
4807 fi
4808
4809
4810 { echo "$as_me:$LINENO: result: $_am_result" >&5
4811 echo "${ECHO_T}$_am_result" >&6; }
4812 rm -f confinc confmf
4813
4814 # Check whether --enable-dependency-tracking was given.
4815 if test "${enable_dependency_tracking+set}" = set; then
4816   enableval=$enable_dependency_tracking;
4817 fi
4818
4819 if test "x$enable_dependency_tracking" != xno; then
4820   am_depcomp="$ac_aux_dir/depcomp"
4821   AMDEPBACKSLASH='\'
4822 fi
4823  if test "x$enable_dependency_tracking" != xno; then
4824   AMDEP_TRUE=
4825   AMDEP_FALSE='#'
4826 else
4827   AMDEP_TRUE='#'
4828   AMDEP_FALSE=
4829 fi
4830
4831
4832 ac_ext=c
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837 if test -n "$ac_tool_prefix"; then
4838   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4839 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_prog_CC+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845   if test -n "$CC"; then
4846   ac_cv_prog_CC="$CC" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4850 do
4851   IFS=$as_save_IFS
4852   test -z "$as_dir" && as_dir=.
4853   for ac_exec_ext in '' $ac_executable_extensions; do
4854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857     break 2
4858   fi
4859 done
4860 done
4861 IFS=$as_save_IFS
4862
4863 fi
4864 fi
4865 CC=$ac_cv_prog_CC
4866 if test -n "$CC"; then
4867   { echo "$as_me:$LINENO: result: $CC" >&5
4868 echo "${ECHO_T}$CC" >&6; }
4869 else
4870   { echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6; }
4872 fi
4873
4874
4875 fi
4876 if test -z "$ac_cv_prog_CC"; then
4877   ac_ct_CC=$CC
4878   # Extract the first word of "gcc", so it can be a program name with args.
4879 set dummy gcc; ac_word=$2
4880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4883   echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885   if test -n "$ac_ct_CC"; then
4886   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893   for ac_exec_ext in '' $ac_executable_extensions; do
4894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895     ac_cv_prog_ac_ct_CC="gcc"
4896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 fi
4904 fi
4905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4906 if test -n "$ac_ct_CC"; then
4907   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4908 echo "${ECHO_T}$ac_ct_CC" >&6; }
4909 else
4910   { echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6; }
4912 fi
4913
4914   if test "x$ac_ct_CC" = x; then
4915     CC=""
4916   else
4917     case $cross_compiling:$ac_tool_warned in
4918 yes:)
4919 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4920 whose name does not start with the host triplet.  If you think this
4921 configuration is useful to you, please write to autoconf@gnu.org." >&5
4922 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4923 whose name does not start with the host triplet.  If you think this
4924 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4925 ac_tool_warned=yes ;;
4926 esac
4927     CC=$ac_ct_CC
4928   fi
4929 else
4930   CC="$ac_cv_prog_CC"
4931 fi
4932
4933 if test -z "$CC"; then
4934           if test -n "$ac_tool_prefix"; then
4935     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4936 set dummy ${ac_tool_prefix}cc; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_prog_CC+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942   if test -n "$CC"; then
4943   ac_cv_prog_CC="$CC" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948   IFS=$as_save_IFS
4949   test -z "$as_dir" && as_dir=.
4950   for ac_exec_ext in '' $ac_executable_extensions; do
4951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952     ac_cv_prog_CC="${ac_tool_prefix}cc"
4953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954     break 2
4955   fi
4956 done
4957 done
4958 IFS=$as_save_IFS
4959
4960 fi
4961 fi
4962 CC=$ac_cv_prog_CC
4963 if test -n "$CC"; then
4964   { echo "$as_me:$LINENO: result: $CC" >&5
4965 echo "${ECHO_T}$CC" >&6; }
4966 else
4967   { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4969 fi
4970
4971
4972   fi
4973 fi
4974 if test -z "$CC"; then
4975   # Extract the first word of "cc", so it can be a program name with args.
4976 set dummy cc; ac_word=$2
4977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4979 if test "${ac_cv_prog_CC+set}" = set; then
4980   echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982   if test -n "$CC"; then
4983   ac_cv_prog_CC="$CC" # Let the user override the test.
4984 else
4985   ac_prog_rejected=no
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991   for ac_exec_ext in '' $ac_executable_extensions; do
4992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4994        ac_prog_rejected=yes
4995        continue
4996      fi
4997     ac_cv_prog_CC="cc"
4998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999     break 2
5000   fi
5001 done
5002 done
5003 IFS=$as_save_IFS
5004
5005 if test $ac_prog_rejected = yes; then
5006   # We found a bogon in the path, so make sure we never use it.
5007   set dummy $ac_cv_prog_CC
5008   shift
5009   if test $# != 0; then
5010     # We chose a different compiler from the bogus one.
5011     # However, it has the same basename, so the bogon will be chosen
5012     # first if we set CC to just the basename; use the full file name.
5013     shift
5014     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5015   fi
5016 fi
5017 fi
5018 fi
5019 CC=$ac_cv_prog_CC
5020 if test -n "$CC"; then
5021   { echo "$as_me:$LINENO: result: $CC" >&5
5022 echo "${ECHO_T}$CC" >&6; }
5023 else
5024   { echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6; }
5026 fi
5027
5028
5029 fi
5030 if test -z "$CC"; then
5031   if test -n "$ac_tool_prefix"; then
5032   for ac_prog in cl.exe
5033   do
5034     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5038 if test "${ac_cv_prog_CC+set}" = set; then
5039   echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041   if test -n "$CC"; then
5042   ac_cv_prog_CC="$CC" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5046 do
5047   IFS=$as_save_IFS
5048   test -z "$as_dir" && as_dir=.
5049   for ac_exec_ext in '' $ac_executable_extensions; do
5050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5053     break 2
5054   fi
5055 done
5056 done
5057 IFS=$as_save_IFS
5058
5059 fi
5060 fi
5061 CC=$ac_cv_prog_CC
5062 if test -n "$CC"; then
5063   { echo "$as_me:$LINENO: result: $CC" >&5
5064 echo "${ECHO_T}$CC" >&6; }
5065 else
5066   { echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6; }
5068 fi
5069
5070
5071     test -n "$CC" && break
5072   done
5073 fi
5074 if test -z "$CC"; then
5075   ac_ct_CC=$CC
5076   for ac_prog in cl.exe
5077 do
5078   # Extract the first word of "$ac_prog", so it can be a program name with args.
5079 set dummy $ac_prog; ac_word=$2
5080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085   if test -n "$ac_ct_CC"; then
5086   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093   for ac_exec_ext in '' $ac_executable_extensions; do
5094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095     ac_cv_prog_ac_ct_CC="$ac_prog"
5096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097     break 2
5098   fi
5099 done
5100 done
5101 IFS=$as_save_IFS
5102
5103 fi
5104 fi
5105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5106 if test -n "$ac_ct_CC"; then
5107   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5108 echo "${ECHO_T}$ac_ct_CC" >&6; }
5109 else
5110   { echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6; }
5112 fi
5113
5114
5115   test -n "$ac_ct_CC" && break
5116 done
5117
5118   if test "x$ac_ct_CC" = x; then
5119     CC=""
5120   else
5121     case $cross_compiling:$ac_tool_warned in
5122 yes:)
5123 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5124 whose name does not start with the host triplet.  If you think this
5125 configuration is useful to you, please write to autoconf@gnu.org." >&5
5126 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5127 whose name does not start with the host triplet.  If you think this
5128 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5129 ac_tool_warned=yes ;;
5130 esac
5131     CC=$ac_ct_CC
5132   fi
5133 fi
5134
5135 fi
5136
5137
5138 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5139 See \`config.log' for more details." >&5
5140 echo "$as_me: error: no acceptable C compiler found in \$PATH
5141 See \`config.log' for more details." >&2;}
5142    { (exit 1); exit 1; }; }
5143
5144 # Provide some information about the compiler.
5145 echo "$as_me:$LINENO: checking for C compiler version" >&5
5146 ac_compiler=`set X $ac_compile; echo $2`
5147 { (ac_try="$ac_compiler --version >&5"
5148 case "(($ac_try" in
5149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150   *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153   (eval "$ac_compiler --version >&5") 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); }
5157 { (ac_try="$ac_compiler -v >&5"
5158 case "(($ac_try" in
5159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160   *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163   (eval "$ac_compiler -v >&5") 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); }
5167 { (ac_try="$ac_compiler -V >&5"
5168 case "(($ac_try" in
5169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170   *) ac_try_echo=$ac_try;;
5171 esac
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173   (eval "$ac_compiler -V >&5") 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }
5177
5178 cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h.  */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h.  */
5184
5185 int
5186 main ()
5187 {
5188
5189   ;
5190   return 0;
5191 }
5192 _ACEOF
5193 ac_clean_files_save=$ac_clean_files
5194 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5195 # Try to create an executable without -o first, disregard a.out.
5196 # It will help us diagnose broken compilers, and finding out an intuition
5197 # of exeext.
5198 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5199 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5200 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5201 #
5202 # List of possible output files, starting from the most likely.
5203 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5204 # only as a last resort.  b.out is created by i960 compilers.
5205 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5206 #
5207 # The IRIX 6 linker writes into existing files which may not be
5208 # executable, retaining their permissions.  Remove them first so a
5209 # subsequent execution test works.
5210 ac_rmfiles=
5211 for ac_file in $ac_files
5212 do
5213   case $ac_file in
5214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5215     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5216   esac
5217 done
5218 rm -f $ac_rmfiles
5219
5220 if { (ac_try="$ac_link_default"
5221 case "(($ac_try" in
5222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223   *) ac_try_echo=$ac_try;;
5224 esac
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226   (eval "$ac_link_default") 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); }; then
5230   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5231 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5232 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5233 # so that the user can short-circuit this test for compilers unknown to
5234 # Autoconf.
5235 for ac_file in $ac_files ''
5236 do
5237   test -f "$ac_file" || continue
5238   case $ac_file in
5239     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5240         ;;
5241     [ab].out )
5242         # We found the default executable, but exeext='' is most
5243         # certainly right.
5244         break;;
5245     *.* )
5246         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5247         then :; else
5248            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5249         fi
5250         # We set ac_cv_exeext here because the later test for it is not
5251         # safe: cross compilers may not add the suffix if given an `-o'
5252         # argument, so we may need to know it at that point already.
5253         # Even if this section looks crufty: it has the advantage of
5254         # actually working.
5255         break;;
5256     * )
5257         break;;
5258   esac
5259 done
5260 test "$ac_cv_exeext" = no && ac_cv_exeext=
5261
5262 else
5263   ac_file=''
5264 fi
5265
5266 { echo "$as_me:$LINENO: result: $ac_file" >&5
5267 echo "${ECHO_T}$ac_file" >&6; }
5268 if test -z "$ac_file"; then
5269   echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5273 See \`config.log' for more details." >&5
5274 echo "$as_me: error: C compiler cannot create executables
5275 See \`config.log' for more details." >&2;}
5276    { (exit 77); exit 77; }; }
5277 fi
5278
5279 ac_exeext=$ac_cv_exeext
5280
5281 # Check that the compiler produces executables we can run.  If not, either
5282 # the compiler is broken, or we cross compile.
5283 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5284 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5285 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5286 # If not cross compiling, check that we can run a simple program.
5287 if test "$cross_compiling" != yes; then
5288   if { ac_try='./$ac_file'
5289   { (case "(($ac_try" in
5290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291   *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294   (eval "$ac_try") 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }; }; then
5298     cross_compiling=no
5299   else
5300     if test "$cross_compiling" = maybe; then
5301         cross_compiling=yes
5302     else
5303         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5304 If you meant to cross compile, use \`--host'.
5305 See \`config.log' for more details." >&5
5306 echo "$as_me: error: cannot run C compiled programs.
5307 If you meant to cross compile, use \`--host'.
5308 See \`config.log' for more details." >&2;}
5309    { (exit 1); exit 1; }; }
5310     fi
5311   fi
5312 fi
5313 { echo "$as_me:$LINENO: result: yes" >&5
5314 echo "${ECHO_T}yes" >&6; }
5315
5316 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5317 ac_clean_files=$ac_clean_files_save
5318 # Check that the compiler produces executables we can run.  If not, either
5319 # the compiler is broken, or we cross compile.
5320 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5321 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5322 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5323 echo "${ECHO_T}$cross_compiling" >&6; }
5324
5325 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5326 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5327 if { (ac_try="$ac_link"
5328 case "(($ac_try" in
5329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330   *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333   (eval "$ac_link") 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); }; then
5337   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5338 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5339 # work properly (i.e., refer to `conftest.exe'), while it won't with
5340 # `rm'.
5341 for ac_file in conftest.exe conftest conftest.*; do
5342   test -f "$ac_file" || continue
5343   case $ac_file in
5344     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5345     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5346           break;;
5347     * ) break;;
5348   esac
5349 done
5350 else
5351   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5352 See \`config.log' for more details." >&5
5353 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5354 See \`config.log' for more details." >&2;}
5355    { (exit 1); exit 1; }; }
5356 fi
5357
5358 rm -f conftest$ac_cv_exeext
5359 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5360 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5361
5362 rm -f conftest.$ac_ext
5363 EXEEXT=$ac_cv_exeext
5364 ac_exeext=$EXEEXT
5365 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5366 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5367 if test "${ac_cv_objext+set}" = set; then
5368   echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370   cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376
5377 int
5378 main ()
5379 {
5380
5381   ;
5382   return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest.o conftest.obj
5386 if { (ac_try="$ac_compile"
5387 case "(($ac_try" in
5388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389   *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392   (eval "$ac_compile") 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); }; then
5396   for ac_file in conftest.o conftest.obj conftest.*; do
5397   test -f "$ac_file" || continue;
5398   case $ac_file in
5399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5400     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5401        break;;
5402   esac
5403 done
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5409 See \`config.log' for more details." >&5
5410 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5411 See \`config.log' for more details." >&2;}
5412    { (exit 1); exit 1; }; }
5413 fi
5414
5415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5416 fi
5417 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5418 echo "${ECHO_T}$ac_cv_objext" >&6; }
5419 OBJEXT=$ac_cv_objext
5420 ac_objext=$OBJEXT
5421 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5422 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5423 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426   cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h.  */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h.  */
5432
5433 int
5434 main ()
5435 {
5436 #ifndef __GNUC__
5437        choke me
5438 #endif
5439
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5446 case "(($ac_try" in
5447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448   *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451   (eval "$ac_compile") 2>conftest.er1
5452   ac_status=$?
5453   grep -v '^ *+' conftest.er1 >conftest.err
5454   rm -f conftest.er1
5455   cat conftest.err >&5
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); } && {
5458          test -z "$ac_c_werror_flag" ||
5459          test ! -s conftest.err
5460        } && test -s conftest.$ac_objext; then
5461   ac_compiler_gnu=yes
5462 else
5463   echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466         ac_compiler_gnu=no
5467 fi
5468
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5471
5472 fi
5473 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5474 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5475 GCC=`test $ac_compiler_gnu = yes && echo yes`
5476 ac_test_CFLAGS=${CFLAGS+set}
5477 ac_save_CFLAGS=$CFLAGS
5478 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5479 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5480 if test "${ac_cv_prog_cc_g+set}" = set; then
5481   echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483   ac_save_c_werror_flag=$ac_c_werror_flag
5484    ac_c_werror_flag=yes
5485    ac_cv_prog_cc_g=no
5486    CFLAGS="-g"
5487    cat >conftest.$ac_ext <<_ACEOF
5488 /* confdefs.h.  */
5489 _ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h.  */
5493
5494 int
5495 main ()
5496 {
5497
5498   ;
5499   return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (ac_try="$ac_compile"
5504 case "(($ac_try" in
5505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506   *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509   (eval "$ac_compile") 2>conftest.er1
5510   ac_status=$?
5511   grep -v '^ *+' conftest.er1 >conftest.err
5512   rm -f conftest.er1
5513   cat conftest.err >&5
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); } && {
5516          test -z "$ac_c_werror_flag" ||
5517          test ! -s conftest.err
5518        } && test -s conftest.$ac_objext; then
5519   ac_cv_prog_cc_g=yes
5520 else
5521   echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524         CFLAGS=""
5525       cat >conftest.$ac_ext <<_ACEOF
5526 /* confdefs.h.  */
5527 _ACEOF
5528 cat confdefs.h >>conftest.$ac_ext
5529 cat >>conftest.$ac_ext <<_ACEOF
5530 /* end confdefs.h.  */
5531
5532 int
5533 main ()
5534 {
5535
5536   ;
5537   return 0;
5538 }
5539 _ACEOF
5540 rm -f conftest.$ac_objext
5541 if { (ac_try="$ac_compile"
5542 case "(($ac_try" in
5543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544   *) ac_try_echo=$ac_try;;
5545 esac
5546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5547   (eval "$ac_compile") 2>conftest.er1
5548   ac_status=$?
5549   grep -v '^ *+' conftest.er1 >conftest.err
5550   rm -f conftest.er1
5551   cat conftest.err >&5
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); } && {
5554          test -z "$ac_c_werror_flag" ||
5555          test ! -s conftest.err
5556        } && test -s conftest.$ac_objext; then
5557   :
5558 else
5559   echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5561
5562         ac_c_werror_flag=$ac_save_c_werror_flag
5563          CFLAGS="-g"
5564          cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h.  */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h.  */
5570
5571 int
5572 main ()
5573 {
5574
5575   ;
5576   return 0;
5577 }
5578 _ACEOF
5579 rm -f conftest.$ac_objext
5580 if { (ac_try="$ac_compile"
5581 case "(($ac_try" in
5582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583   *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586   (eval "$ac_compile") 2>conftest.er1
5587   ac_status=$?
5588   grep -v '^ *+' conftest.er1 >conftest.err
5589   rm -f conftest.er1
5590   cat conftest.err >&5
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } && {
5593          test -z "$ac_c_werror_flag" ||
5594          test ! -s conftest.err
5595        } && test -s conftest.$ac_objext; then
5596   ac_cv_prog_cc_g=yes
5597 else
5598   echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601
5602 fi
5603
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 fi
5606
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 fi
5609
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611    ac_c_werror_flag=$ac_save_c_werror_flag
5612 fi
5613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5614 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5615 if test "$ac_test_CFLAGS" = set; then
5616   CFLAGS=$ac_save_CFLAGS
5617 elif test $ac_cv_prog_cc_g = yes; then
5618   if test "$GCC" = yes; then
5619     CFLAGS="-g -O2"
5620   else
5621     CFLAGS="-g"
5622   fi
5623 else
5624   if test "$GCC" = yes; then
5625     CFLAGS="-O2"
5626   else
5627     CFLAGS=
5628   fi
5629 fi
5630 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5631 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5632 if test "${ac_cv_prog_cc_c89+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   ac_cv_prog_cc_c89=no
5636 ac_save_CC=$CC
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h.  */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h.  */
5643 #include <stdarg.h>
5644 #include <stdio.h>
5645 #include <sys/types.h>
5646 #include <sys/stat.h>
5647 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5648 struct buf { int x; };
5649 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5650 static char *e (p, i)
5651      char **p;
5652      int i;
5653 {
5654   return p[i];
5655 }
5656 static char *f (char * (*g) (char **, int), char **p, ...)
5657 {
5658   char *s;
5659   va_list v;
5660   va_start (v,p);
5661   s = g (p, va_arg (v,int));
5662   va_end (v);
5663   return s;
5664 }
5665
5666 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5667    function prototypes and stuff, but not '\xHH' hex character constants.
5668    These don't provoke an error unfortunately, instead are silently treated
5669    as 'x'.  The following induces an error, until -std is added to get
5670    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5671    array size at least.  It's necessary to write '\x00'==0 to get something
5672    that's true only with -std.  */
5673 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5674
5675 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5676    inside strings and character constants.  */
5677 #define FOO(x) 'x'
5678 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5679
5680 int test (int i, double x);
5681 struct s1 {int (*f) (int a);};
5682 struct s2 {int (*f) (double a);};
5683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5684 int argc;
5685 char **argv;
5686 int
5687 main ()
5688 {
5689 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5690   ;
5691   return 0;
5692 }
5693 _ACEOF
5694 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5695         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5696 do
5697   CC="$ac_save_CC $ac_arg"
5698   rm -f conftest.$ac_objext
5699 if { (ac_try="$ac_compile"
5700 case "(($ac_try" in
5701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702   *) ac_try_echo=$ac_try;;
5703 esac
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705   (eval "$ac_compile") 2>conftest.er1
5706   ac_status=$?
5707   grep -v '^ *+' conftest.er1 >conftest.err
5708   rm -f conftest.er1
5709   cat conftest.err >&5
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); } && {
5712          test -z "$ac_c_werror_flag" ||
5713          test ! -s conftest.err
5714        } && test -s conftest.$ac_objext; then
5715   ac_cv_prog_cc_c89=$ac_arg
5716 else
5717   echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720
5721 fi
5722
5723 rm -f core conftest.err conftest.$ac_objext
5724   test "x$ac_cv_prog_cc_c89" != "xno" && break
5725 done
5726 rm -f conftest.$ac_ext
5727 CC=$ac_save_CC
5728
5729 fi
5730 # AC_CACHE_VAL
5731 case "x$ac_cv_prog_cc_c89" in
5732   x)
5733     { echo "$as_me:$LINENO: result: none needed" >&5
5734 echo "${ECHO_T}none needed" >&6; } ;;
5735   xno)
5736     { echo "$as_me:$LINENO: result: unsupported" >&5
5737 echo "${ECHO_T}unsupported" >&6; } ;;
5738   *)
5739     CC="$CC $ac_cv_prog_cc_c89"
5740     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5741 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5742 esac
5743
5744
5745 ac_ext=c
5746 ac_cpp='$CPP $CPPFLAGS'
5747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5750
5751 depcc="$CC"   am_compiler_list=
5752
5753 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5754 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5755 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5759   # We make a subdir and do the tests there.  Otherwise we can end up
5760   # making bogus files that we don't know about and never remove.  For
5761   # instance it was reported that on HP-UX the gcc test will end up
5762   # making a dummy file named `D' -- because `-MD' means `put the output
5763   # in D'.
5764   mkdir conftest.dir
5765   # Copy depcomp to subdir because otherwise we won't find it if we're
5766   # using a relative directory.
5767   cp "$am_depcomp" conftest.dir
5768   cd conftest.dir
5769   # We will build objects and dependencies in a subdirectory because
5770   # it helps to detect inapplicable dependency modes.  For instance
5771   # both Tru64's cc and ICC support -MD to output dependencies as a
5772   # side effect of compilation, but ICC will put the dependencies in
5773   # the current directory while Tru64 will put them in the object
5774   # directory.
5775   mkdir sub
5776
5777   am_cv_CC_dependencies_compiler_type=none
5778   if test "$am_compiler_list" = ""; then
5779      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5780   fi
5781   for depmode in $am_compiler_list; do
5782     # Setup a source with many dependencies, because some compilers
5783     # like to wrap large dependency lists on column 80 (with \), and
5784     # we should not choose a depcomp mode which is confused by this.
5785     #
5786     # We need to recreate these files for each test, as the compiler may
5787     # overwrite some of them when testing with obscure command lines.
5788     # This happens at least with the AIX C compiler.
5789     : > sub/conftest.c
5790     for i in 1 2 3 4 5 6; do
5791       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5792       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5793       # Solaris 8's {/usr,}/bin/sh.
5794       touch sub/conftst$i.h
5795     done
5796     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5797
5798     case $depmode in
5799     nosideeffect)
5800       # after this tag, mechanisms are not by side-effect, so they'll
5801       # only be used when explicitly requested
5802       if test "x$enable_dependency_tracking" = xyes; then
5803         continue
5804       else
5805         break
5806       fi
5807       ;;
5808     none) break ;;
5809     esac
5810     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5811     # mode.  It turns out that the SunPro C++ compiler does not properly
5812     # handle `-M -o', and we need to detect this.
5813     if depmode=$depmode \
5814        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5815        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5816        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5817          >/dev/null 2>conftest.err &&
5818        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5819        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5820        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5821        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5822       # icc doesn't choke on unknown options, it will just issue warnings
5823       # or remarks (even with -Werror).  So we grep stderr for any message
5824       # that says an option was ignored or not supported.
5825       # When given -MP, icc 7.0 and 7.1 complain thusly:
5826       #   icc: Command line warning: ignoring option '-M'; no argument required
5827       # The diagnosis changed in icc 8.0:
5828       #   icc: Command line remark: option '-MP' not supported
5829       if (grep 'ignoring option' conftest.err ||
5830           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5831         am_cv_CC_dependencies_compiler_type=$depmode
5832         break
5833       fi
5834     fi
5835   done
5836
5837   cd ..
5838   rm -rf conftest.dir
5839 else
5840   am_cv_CC_dependencies_compiler_type=none
5841 fi
5842
5843 fi
5844 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5845 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5846 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5847
5848  if
5849   test "x$enable_dependency_tracking" != xno \
5850   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5851   am__fastdepCC_TRUE=
5852   am__fastdepCC_FALSE='#'
5853 else
5854   am__fastdepCC_TRUE='#'
5855   am__fastdepCC_FALSE=
5856 fi
5857
5858
5859 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5860 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5861 if test "${lt_cv_path_SED+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   # Loop through the user's path and test for sed and gsed.
5865 # Then use that list of sed's as ones to test for truncation.
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869   IFS=$as_save_IFS
5870   test -z "$as_dir" && as_dir=.
5871   for lt_ac_prog in sed gsed; do
5872     for ac_exec_ext in '' $ac_executable_extensions; do
5873       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5874         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5875       fi
5876     done
5877   done
5878 done
5879 lt_ac_max=0
5880 lt_ac_count=0
5881 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5882 # along with /bin/sed that truncates output.
5883 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5884   test ! -f $lt_ac_sed && continue
5885   cat /dev/null > conftest.in
5886   lt_ac_count=0
5887   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5888   # Check for GNU sed and select it if it is found.
5889   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5890     lt_cv_path_SED=$lt_ac_sed
5891     break
5892   fi
5893   while true; do
5894     cat conftest.in conftest.in >conftest.tmp
5895     mv conftest.tmp conftest.in
5896     cp conftest.in conftest.nl
5897     echo >>conftest.nl
5898     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5899     cmp -s conftest.out conftest.nl || break
5900     # 10000 chars as input seems more than enough
5901     test $lt_ac_count -gt 10 && break
5902     lt_ac_count=`expr $lt_ac_count + 1`
5903     if test $lt_ac_count -gt $lt_ac_max; then
5904       lt_ac_max=$lt_ac_count
5905       lt_cv_path_SED=$lt_ac_sed
5906     fi
5907   done
5908 done
5909
5910 fi
5911
5912 SED=$lt_cv_path_SED
5913 { echo "$as_me:$LINENO: result: $SED" >&5
5914 echo "${ECHO_T}$SED" >&6; }
5915
5916 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5917 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5918 if test "${ac_cv_path_GREP+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921   # Extract the first word of "grep ggrep" to use in msg output
5922 if test -z "$GREP"; then
5923 set dummy grep ggrep; ac_prog_name=$2
5924 if test "${ac_cv_path_GREP+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   ac_path_GREP_found=false
5928 # Loop through the user's path and test for each of PROGNAME-LIST
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5931 do
5932   IFS=$as_save_IFS
5933   test -z "$as_dir" && as_dir=.
5934   for ac_prog in grep ggrep; do
5935   for ac_exec_ext in '' $ac_executable_extensions; do
5936     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5937     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5938     # Check for GNU ac_path_GREP and select it if it is found.
5939   # Check for GNU $ac_path_GREP
5940 case `"$ac_path_GREP" --version 2>&1` in
5941 *GNU*)
5942   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5943 *)
5944   ac_count=0
5945   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5946   while :
5947   do
5948     cat "conftest.in" "conftest.in" >"conftest.tmp"
5949     mv "conftest.tmp" "conftest.in"
5950     cp "conftest.in" "conftest.nl"
5951     echo 'GREP' >> "conftest.nl"
5952     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5953     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5954     ac_count=`expr $ac_count + 1`
5955     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5956       # Best one so far, save it but keep looking for a better one
5957       ac_cv_path_GREP="$ac_path_GREP"
5958       ac_path_GREP_max=$ac_count
5959     fi
5960     # 10*(2^10) chars as input seems more than enough
5961     test $ac_count -gt 10 && break
5962   done
5963   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5964 esac
5965
5966
5967     $ac_path_GREP_found && break 3
5968   done
5969 done
5970
5971 done
5972 IFS=$as_save_IFS
5973
5974
5975 fi
5976
5977 GREP="$ac_cv_path_GREP"
5978 if test -z "$GREP"; then
5979   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5980 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5981    { (exit 1); exit 1; }; }
5982 fi
5983
5984 else
5985   ac_cv_path_GREP=$GREP
5986 fi
5987
5988
5989 fi
5990 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5991 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5992  GREP="$ac_cv_path_GREP"
5993
5994
5995 { echo "$as_me:$LINENO: checking for egrep" >&5
5996 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5997 if test "${ac_cv_path_EGREP+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6001    then ac_cv_path_EGREP="$GREP -E"
6002    else
6003      # Extract the first word of "egrep" to use in msg output
6004 if test -z "$EGREP"; then
6005 set dummy egrep; ac_prog_name=$2
6006 if test "${ac_cv_path_EGREP+set}" = set; then
6007   echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009   ac_path_EGREP_found=false
6010 # Loop through the user's path and test for each of PROGNAME-LIST
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6013 do
6014   IFS=$as_save_IFS
6015   test -z "$as_dir" && as_dir=.
6016   for ac_prog in egrep; do
6017   for ac_exec_ext in '' $ac_executable_extensions; do
6018     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6019     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6020     # Check for GNU ac_path_EGREP and select it if it is found.
6021   # Check for GNU $ac_path_EGREP
6022 case `"$ac_path_EGREP" --version 2>&1` in
6023 *GNU*)
6024   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6025 *)
6026   ac_count=0
6027   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6028   while :
6029   do
6030     cat "conftest.in" "conftest.in" >"conftest.tmp"
6031     mv "conftest.tmp" "conftest.in"
6032     cp "conftest.in" "conftest.nl"
6033     echo 'EGREP' >> "conftest.nl"
6034     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6035     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6036     ac_count=`expr $ac_count + 1`
6037     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6038       # Best one so far, save it but keep looking for a better one
6039       ac_cv_path_EGREP="$ac_path_EGREP"
6040       ac_path_EGREP_max=$ac_count
6041     fi
6042     # 10*(2^10) chars as input seems more than enough
6043     test $ac_count -gt 10 && break
6044   done
6045   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6046 esac
6047
6048
6049     $ac_path_EGREP_found && break 3
6050   done
6051 done
6052
6053 done
6054 IFS=$as_save_IFS
6055
6056
6057 fi
6058
6059 EGREP="$ac_cv_path_EGREP"
6060 if test -z "$EGREP"; then
6061   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6062 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6063    { (exit 1); exit 1; }; }
6064 fi
6065
6066 else
6067   ac_cv_path_EGREP=$EGREP
6068 fi
6069
6070
6071    fi
6072 fi
6073 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6074 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6075  EGREP="$ac_cv_path_EGREP"
6076
6077
6078
6079 # Check whether --with-gnu-ld was given.
6080 if test "${with_gnu_ld+set}" = set; then
6081   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6082 else
6083   with_gnu_ld=no
6084 fi
6085
6086 ac_prog=ld
6087 if test "$GCC" = yes; then
6088   # Check if gcc -print-prog-name=ld gives a path.
6089   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6090 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6091   case $host in
6092   *-*-mingw*)
6093     # gcc leaves a trailing carriage return which upsets mingw
6094     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6095   *)
6096     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6097   esac
6098   case $ac_prog in
6099     # Accept absolute paths.
6100     [\\/]* | ?:[\\/]*)
6101       re_direlt='/[^/][^/]*/\.\./'
6102       # Canonicalize the pathname of ld
6103       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6104       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6105         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6106       done
6107       test -z "$LD" && LD="$ac_prog"
6108       ;;
6109   "")
6110     # If it fails, then pretend we aren't using GCC.
6111     ac_prog=ld
6112     ;;
6113   *)
6114     # If it is relative, then search for the first ld in PATH.
6115     with_gnu_ld=unknown
6116     ;;
6117   esac
6118 elif test "$with_gnu_ld" = yes; then
6119   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6120 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6121 else
6122   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6123 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6124 fi
6125 if test "${lt_cv_path_LD+set}" = set; then
6126   echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128   if test -z "$LD"; then
6129   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6130   for ac_dir in $PATH; do
6131     IFS="$lt_save_ifs"
6132     test -z "$ac_dir" && ac_dir=.
6133     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6134       lt_cv_path_LD="$ac_dir/$ac_prog"
6135       # Check to see if the program is GNU ld.  I'd rather use --version,
6136       # but apparently some variants of GNU ld only accept -v.
6137       # Break only if it was the GNU/non-GNU ld that we prefer.
6138       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6139       *GNU* | *'with BFD'*)
6140         test "$with_gnu_ld" != no && break
6141         ;;
6142       *)
6143         test "$with_gnu_ld" != yes && break
6144         ;;
6145       esac
6146     fi
6147   done
6148   IFS="$lt_save_ifs"
6149 else
6150   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6151 fi
6152 fi
6153
6154 LD="$lt_cv_path_LD"
6155 if test -n "$LD"; then
6156   { echo "$as_me:$LINENO: result: $LD" >&5
6157 echo "${ECHO_T}$LD" >&6; }
6158 else
6159   { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6161 fi
6162 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6163 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6164    { (exit 1); exit 1; }; }
6165 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6166 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6167 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6171 case `$LD -v 2>&1 </dev/null` in
6172 *GNU* | *'with BFD'*)
6173   lt_cv_prog_gnu_ld=yes
6174   ;;
6175 *)
6176   lt_cv_prog_gnu_ld=no
6177   ;;
6178 esac
6179 fi
6180 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6181 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6182 with_gnu_ld=$lt_cv_prog_gnu_ld
6183
6184
6185 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6186 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6187 if test "${lt_cv_ld_reload_flag+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190   lt_cv_ld_reload_flag='-r'
6191 fi
6192 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6193 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6194 reload_flag=$lt_cv_ld_reload_flag
6195 case $reload_flag in
6196 "" | " "*) ;;
6197 *) reload_flag=" $reload_flag" ;;
6198 esac
6199 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6200 case $host_os in
6201   darwin*)
6202     if test "$GCC" = yes; then
6203       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6204     else
6205       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6206     fi
6207     ;;
6208 esac
6209
6210 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6211 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6212 if test "${lt_cv_path_NM+set}" = set; then
6213   echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215   if test -n "$NM"; then
6216   # Let the user override the test.
6217   lt_cv_path_NM="$NM"
6218 else
6219   lt_nm_to_check="${ac_tool_prefix}nm"
6220   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6221     lt_nm_to_check="$lt_nm_to_check nm"
6222   fi
6223   for lt_tmp_nm in $lt_nm_to_check; do
6224     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6225     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6226       IFS="$lt_save_ifs"
6227       test -z "$ac_dir" && ac_dir=.
6228       tmp_nm="$ac_dir/$lt_tmp_nm"
6229       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6230         # Check to see if the nm accepts a BSD-compat flag.
6231         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6232         #   nm: unknown option "B" ignored
6233         # Tru64's nm complains that /dev/null is an invalid object file
6234         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6235         */dev/null* | *'Invalid file or object type'*)
6236           lt_cv_path_NM="$tmp_nm -B"
6237           break
6238           ;;
6239         *)
6240           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6241           */dev/null*)
6242             lt_cv_path_NM="$tmp_nm -p"
6243             break
6244             ;;
6245           *)
6246             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6247             continue # so that we can try to find one that supports BSD flags
6248             ;;
6249           esac
6250           ;;
6251         esac
6252       fi
6253     done
6254     IFS="$lt_save_ifs"
6255   done
6256   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6257 fi
6258 fi
6259 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6260 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6261 NM="$lt_cv_path_NM"
6262
6263 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6264 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6265 LN_S=$as_ln_s
6266 if test "$LN_S" = "ln -s"; then
6267   { echo "$as_me:$LINENO: result: yes" >&5
6268 echo "${ECHO_T}yes" >&6; }
6269 else
6270   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6271 echo "${ECHO_T}no, using $LN_S" >&6; }
6272 fi
6273
6274 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6275 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6276 if test "${lt_cv_deplibs_check_method+set}" = set; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279   lt_cv_file_magic_cmd='$MAGIC_CMD'
6280 lt_cv_file_magic_test_file=
6281 lt_cv_deplibs_check_method='unknown'
6282 # Need to set the preceding variable on all platforms that support
6283 # interlibrary dependencies.
6284 # 'none' -- dependencies not supported.
6285 # `unknown' -- same as none, but documents that we really don't know.
6286 # 'pass_all' -- all dependencies passed with no checks.
6287 # 'test_compile' -- check by making test program.
6288 # 'file_magic [[regex]]' -- check by looking for files in library path
6289 # which responds to the $file_magic_cmd with a given extended regex.
6290 # If you have `file' or equivalent on your system and you're not sure
6291 # whether `pass_all' will *always* work, you probably want this one.
6292
6293 case $host_os in
6294 aix4* | aix5*)
6295   lt_cv_deplibs_check_method=pass_all
6296   ;;
6297
6298 beos*)
6299   lt_cv_deplibs_check_method=pass_all
6300   ;;
6301
6302 bsdi[45]*)
6303   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6304   lt_cv_file_magic_cmd='/usr/bin/file -L'
6305   lt_cv_file_magic_test_file=/shlib/libc.so
6306   ;;
6307
6308 cygwin*)
6309   # func_win32_libid is a shell function defined in ltmain.sh
6310   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6311   lt_cv_file_magic_cmd='func_win32_libid'
6312   ;;
6313
6314 mingw* | pw32*)
6315   # Base MSYS/MinGW do not provide the 'file' command needed by
6316   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6317   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6318   lt_cv_file_magic_cmd='$OBJDUMP -f'
6319   ;;
6320
6321 darwin* | rhapsody*)
6322   lt_cv_deplibs_check_method=pass_all
6323   ;;
6324
6325 freebsd* | kfreebsd*-gnu | dragonfly*)
6326   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6327     case $host_cpu in
6328     i*86 )
6329       # Not sure whether the presence of OpenBSD here was a mistake.
6330       # Let's accept both of them until this is cleared up.
6331       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6332       lt_cv_file_magic_cmd=/usr/bin/file
6333       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6334       ;;
6335     esac
6336   else
6337     lt_cv_deplibs_check_method=pass_all
6338   fi
6339   ;;
6340
6341 gnu*)
6342   lt_cv_deplibs_check_method=pass_all
6343   ;;
6344
6345 hpux10.20* | hpux11*)
6346   lt_cv_file_magic_cmd=/usr/bin/file
6347   case $host_cpu in
6348   ia64*)
6349     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6350     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6351     ;;
6352   hppa*64*)
6353     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]'
6354     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6355     ;;
6356   *)
6357     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6358     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6359     ;;
6360   esac
6361   ;;
6362
6363 interix3*)
6364   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6365   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6366   ;;
6367
6368 irix5* | irix6* | nonstopux*)
6369   case $LD in
6370   *-32|*"-32 ") libmagic=32-bit;;
6371   *-n32|*"-n32 ") libmagic=N32;;
6372   *-64|*"-64 ") libmagic=64-bit;;
6373   *) libmagic=never-match;;
6374   esac
6375   lt_cv_deplibs_check_method=pass_all
6376   ;;
6377
6378 # This must be Linux ELF.
6379 linux*)
6380   lt_cv_deplibs_check_method=pass_all
6381   ;;
6382
6383 netbsd*)
6384   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6385     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6386   else
6387     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6388   fi
6389   ;;
6390
6391 newos6*)
6392   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6393   lt_cv_file_magic_cmd=/usr/bin/file
6394   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6395   ;;
6396
6397 nto-qnx*)
6398   lt_cv_deplibs_check_method=unknown
6399   ;;
6400
6401 openbsd*)
6402   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6403     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6404   else
6405     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6406   fi
6407   ;;
6408
6409 osf3* | osf4* | osf5*)
6410   lt_cv_deplibs_check_method=pass_all
6411   ;;
6412
6413 solaris*)
6414   lt_cv_deplibs_check_method=pass_all
6415   ;;
6416
6417 sysv4 | sysv4.3*)
6418   case $host_vendor in
6419   motorola)
6420     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]'
6421     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6422     ;;
6423   ncr)
6424     lt_cv_deplibs_check_method=pass_all
6425     ;;
6426   sequent)
6427     lt_cv_file_magic_cmd='/bin/file'
6428     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6429     ;;
6430   sni)
6431     lt_cv_file_magic_cmd='/bin/file'
6432     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6433     lt_cv_file_magic_test_file=/lib/libc.so
6434     ;;
6435   siemens)
6436     lt_cv_deplibs_check_method=pass_all
6437     ;;
6438   pc)
6439     lt_cv_deplibs_check_method=pass_all
6440     ;;
6441   esac
6442   ;;
6443
6444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6445   lt_cv_deplibs_check_method=pass_all
6446   ;;
6447 esac
6448
6449 fi
6450 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6451 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6452 file_magic_cmd=$lt_cv_file_magic_cmd
6453 deplibs_check_method=$lt_cv_deplibs_check_method
6454 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6455
6456
6457
6458
6459 # If no C compiler was specified, use CC.
6460 LTCC=${LTCC-"$CC"}
6461
6462 # If no C compiler flags were specified, use CFLAGS.
6463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6464
6465 # Allow CC to be a program name with arguments.
6466 compiler=$CC
6467
6468
6469 # Check whether --enable-libtool-lock was given.
6470 if test "${enable_libtool_lock+set}" = set; then
6471   enableval=$enable_libtool_lock;
6472 fi
6473
6474 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6475
6476 # Some flags need to be propagated to the compiler or linker for good
6477 # libtool support.
6478 case $host in
6479 ia64-*-hpux*)
6480   # Find out which ABI we are using.
6481   echo 'int i;' > conftest.$ac_ext
6482   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483   (eval $ac_compile) 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); }; then
6487     case `/usr/bin/file conftest.$ac_objext` in
6488     *ELF-32*)
6489       HPUX_IA64_MODE="32"
6490       ;;
6491     *ELF-64*)
6492       HPUX_IA64_MODE="64"
6493       ;;
6494     esac
6495   fi
6496   rm -rf conftest*
6497   ;;
6498 *-*-irix6*)
6499   # Find out which ABI we are using.
6500   echo '#line 6500 "configure"' > conftest.$ac_ext
6501   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6502   (eval $ac_compile) 2>&5
6503   ac_status=$?
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); }; then
6506    if test "$lt_cv_prog_gnu_ld" = yes; then
6507     case `/usr/bin/file conftest.$ac_objext` in
6508     *32-bit*)
6509       LD="${LD-ld} -melf32bsmip"
6510       ;;
6511     *N32*)
6512       LD="${LD-ld} -melf32bmipn32"
6513       ;;
6514     *64-bit*)
6515       LD="${LD-ld} -melf64bmip"
6516       ;;
6517     esac
6518    else
6519     case `/usr/bin/file conftest.$ac_objext` in
6520     *32-bit*)
6521       LD="${LD-ld} -32"
6522       ;;
6523     *N32*)
6524       LD="${LD-ld} -n32"
6525       ;;
6526     *64-bit*)
6527       LD="${LD-ld} -64"
6528       ;;
6529     esac
6530    fi
6531   fi
6532   rm -rf conftest*
6533   ;;
6534
6535 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6536   # Find out which ABI we are using.
6537   echo 'int i;' > conftest.$ac_ext
6538   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539   (eval $ac_compile) 2>&5
6540   ac_status=$?
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); }; then
6543     case `/usr/bin/file conftest.o` in
6544     *32-bit*)
6545       case $host in
6546         x86_64-*linux*)
6547           LD="${LD-ld} -m elf_i386"
6548           ;;
6549         ppc64-*linux*|powerpc64-*linux*)
6550           LD="${LD-ld} -m elf32ppclinux"
6551           ;;
6552         s390x-*linux*)
6553           LD="${LD-ld} -m elf_s390"
6554           ;;
6555         sparc64-*linux*)
6556           LD="${LD-ld} -m elf32_sparc"
6557           ;;
6558       esac
6559       ;;
6560     *64-bit*)
6561       case $host in
6562         x86_64-*linux*)
6563           LD="${LD-ld} -m elf_x86_64"
6564           ;;
6565         ppc*-*linux*|powerpc*-*linux*)
6566           LD="${LD-ld} -m elf64ppc"
6567           ;;
6568         s390*-*linux*)
6569           LD="${LD-ld} -m elf64_s390"
6570           ;;
6571         sparc*-*linux*)
6572           LD="${LD-ld} -m elf64_sparc"
6573           ;;
6574       esac
6575       ;;
6576     esac
6577   fi
6578   rm -rf conftest*
6579   ;;
6580
6581 *-*-sco3.2v5*)
6582   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6583   SAVE_CFLAGS="$CFLAGS"
6584   CFLAGS="$CFLAGS -belf"
6585   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6586 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6587 if test "${lt_cv_cc_needs_belf+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   ac_ext=c
6591 ac_cpp='$CPP $CPPFLAGS'
6592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595
6596      cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h.  */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h.  */
6602
6603 int
6604 main ()
6605 {
6606
6607   ;
6608   return 0;
6609 }
6610 _ACEOF
6611 rm -f conftest.$ac_objext conftest$ac_exeext
6612 if { (ac_try="$ac_link"
6613 case "(($ac_try" in
6614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615   *) ac_try_echo=$ac_try;;
6616 esac
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618   (eval "$ac_link") 2>conftest.er1
6619   ac_status=$?
6620   grep -v '^ *+' conftest.er1 >conftest.err
6621   rm -f conftest.er1
6622   cat conftest.err >&5
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } && {
6625          test -z "$ac_c_werror_flag" ||
6626          test ! -s conftest.err
6627        } && test -s conftest$ac_exeext &&
6628        $as_test_x conftest$ac_exeext; then
6629   lt_cv_cc_needs_belf=yes
6630 else
6631   echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6633
6634         lt_cv_cc_needs_belf=no
6635 fi
6636
6637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6638       conftest$ac_exeext conftest.$ac_ext
6639      ac_ext=c
6640 ac_cpp='$CPP $CPPFLAGS'
6641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6644
6645 fi
6646 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6647 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6648   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6649     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6650     CFLAGS="$SAVE_CFLAGS"
6651   fi
6652   ;;
6653 sparc*-*solaris*)
6654   # Find out which ABI we are using.
6655   echo 'int i;' > conftest.$ac_ext
6656   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6657   (eval $ac_compile) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); }; then
6661     case `/usr/bin/file conftest.o` in
6662     *64-bit*)
6663       case $lt_cv_prog_gnu_ld in
6664       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6665       *)    LD="${LD-ld} -64" ;;
6666       esac
6667       ;;
6668     esac
6669   fi
6670   rm -rf conftest*
6671   ;;
6672
6673 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6674   if test -n "$ac_tool_prefix"; then
6675   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6676 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682   if test -n "$DLLTOOL"; then
6683   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6684 else
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690   for ac_exec_ext in '' $ac_executable_extensions; do
6691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694     break 2
6695   fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700 fi
6701 fi
6702 DLLTOOL=$ac_cv_prog_DLLTOOL
6703 if test -n "$DLLTOOL"; then
6704   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6705 echo "${ECHO_T}$DLLTOOL" >&6; }
6706 else
6707   { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6709 fi
6710
6711
6712 fi
6713 if test -z "$ac_cv_prog_DLLTOOL"; then
6714   ac_ct_DLLTOOL=$DLLTOOL
6715   # Extract the first word of "dlltool", so it can be a program name with args.
6716 set dummy dlltool; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722   if test -n "$ac_ct_DLLTOOL"; then
6723   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728   IFS=$as_save_IFS
6729   test -z "$as_dir" && as_dir=.
6730   for ac_exec_ext in '' $ac_executable_extensions; do
6731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734     break 2
6735   fi
6736 done
6737 done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6743 if test -n "$ac_ct_DLLTOOL"; then
6744   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6745 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6746 else
6747   { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6749 fi
6750
6751   if test "x$ac_ct_DLLTOOL" = x; then
6752     DLLTOOL="false"
6753   else
6754     case $cross_compiling:$ac_tool_warned in
6755 yes:)
6756 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6757 whose name does not start with the host triplet.  If you think this
6758 configuration is useful to you, please write to autoconf@gnu.org." >&5
6759 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6760 whose name does not start with the host triplet.  If you think this
6761 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6762 ac_tool_warned=yes ;;
6763 esac
6764     DLLTOOL=$ac_ct_DLLTOOL
6765   fi
6766 else
6767   DLLTOOL="$ac_cv_prog_DLLTOOL"
6768 fi
6769
6770   if test -n "$ac_tool_prefix"; then
6771   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}as; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_prog_AS+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   if test -n "$AS"; then
6779   ac_cv_prog_AS="$AS" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786   for ac_exec_ext in '' $ac_executable_extensions; do
6787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788     ac_cv_prog_AS="${ac_tool_prefix}as"
6789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790     break 2
6791   fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 AS=$ac_cv_prog_AS
6799 if test -n "$AS"; then
6800   { echo "$as_me:$LINENO: result: $AS" >&5
6801 echo "${ECHO_T}$AS" >&6; }
6802 else
6803   { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6805 fi
6806
6807
6808 fi
6809 if test -z "$ac_cv_prog_AS"; then
6810   ac_ct_AS=$AS
6811   # Extract the first word of "as", so it can be a program name with args.
6812 set dummy as; ac_word=$2
6813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6815 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6816   echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818   if test -n "$ac_ct_AS"; then
6819   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824   IFS=$as_save_IFS
6825   test -z "$as_dir" && as_dir=.
6826   for ac_exec_ext in '' $ac_executable_extensions; do
6827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828     ac_cv_prog_ac_ct_AS="as"
6829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830     break 2
6831   fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6839 if test -n "$ac_ct_AS"; then
6840   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6841 echo "${ECHO_T}$ac_ct_AS" >&6; }
6842 else
6843   { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6845 fi
6846
6847   if test "x$ac_ct_AS" = x; then
6848     AS="false"
6849   else
6850     case $cross_compiling:$ac_tool_warned in
6851 yes:)
6852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6853 whose name does not start with the host triplet.  If you think this
6854 configuration is useful to you, please write to autoconf@gnu.org." >&5
6855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6856 whose name does not start with the host triplet.  If you think this
6857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6858 ac_tool_warned=yes ;;
6859 esac
6860     AS=$ac_ct_AS
6861   fi
6862 else
6863   AS="$ac_cv_prog_AS"
6864 fi
6865
6866   if test -n "$ac_tool_prefix"; then
6867   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6868 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6871 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6872   echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874   if test -n "$OBJDUMP"; then
6875   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   test -z "$as_dir" && as_dir=.
6882   for ac_exec_ext in '' $ac_executable_extensions; do
6883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889 done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 OBJDUMP=$ac_cv_prog_OBJDUMP
6895 if test -n "$OBJDUMP"; then
6896   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6897 echo "${ECHO_T}$OBJDUMP" >&6; }
6898 else
6899   { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6901 fi
6902
6903
6904 fi
6905 if test -z "$ac_cv_prog_OBJDUMP"; then
6906   ac_ct_OBJDUMP=$OBJDUMP
6907   # Extract the first word of "objdump", so it can be a program name with args.
6908 set dummy objdump; ac_word=$2
6909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6911 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6912   echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914   if test -n "$ac_ct_OBJDUMP"; then
6915   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922   for ac_exec_ext in '' $ac_executable_extensions; do
6923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932 fi
6933 fi
6934 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6935 if test -n "$ac_ct_OBJDUMP"; then
6936   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6937 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6938 else
6939   { echo "$as_me:$LINENO: result: no" >&5
6940 echo "${ECHO_T}no" >&6; }
6941 fi
6942
6943   if test "x$ac_ct_OBJDUMP" = x; then
6944     OBJDUMP="false"
6945   else
6946     case $cross_compiling:$ac_tool_warned in
6947 yes:)
6948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6949 whose name does not start with the host triplet.  If you think this
6950 configuration is useful to you, please write to autoconf@gnu.org." >&5
6951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6952 whose name does not start with the host triplet.  If you think this
6953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6954 ac_tool_warned=yes ;;
6955 esac
6956     OBJDUMP=$ac_ct_OBJDUMP
6957   fi
6958 else
6959   OBJDUMP="$ac_cv_prog_OBJDUMP"
6960 fi
6961
6962   ;;
6963
6964 esac
6965
6966 need_locks="$enable_libtool_lock"
6967
6968
6969 ac_ext=c
6970 ac_cpp='$CPP $CPPFLAGS'
6971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6975 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6976 # On Suns, sometimes $CPP names a directory.
6977 if test -n "$CPP" && test -d "$CPP"; then
6978   CPP=
6979 fi
6980 if test -z "$CPP"; then
6981   if test "${ac_cv_prog_CPP+set}" = set; then
6982   echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984       # Double quotes because CPP needs to be expanded
6985     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6986     do
6987       ac_preproc_ok=false
6988 for ac_c_preproc_warn_flag in '' yes
6989 do
6990   # Use a header file that comes with gcc, so configuring glibc
6991   # with a fresh cross-compiler works.
6992   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6993   # <limits.h> exists even on freestanding compilers.
6994   # On the NeXT, cc -E runs the code through the compiler's parser,
6995   # not just through cpp. "Syntax error" is here to catch this case.
6996   cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002 #ifdef __STDC__
7003 # include <limits.h>
7004 #else
7005 # include <assert.h>
7006 #endif
7007                      Syntax error
7008 _ACEOF
7009 if { (ac_try="$ac_cpp conftest.$ac_ext"
7010 case "(($ac_try" in
7011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012   *) ac_try_echo=$ac_try;;
7013 esac
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7016   ac_status=$?
7017   grep -v '^ *+' conftest.er1 >conftest.err
7018   rm -f conftest.er1
7019   cat conftest.err >&5
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); } >/dev/null && {
7022          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7023          test ! -s conftest.err
7024        }; then
7025   :
7026 else
7027   echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7029
7030   # Broken: fails on valid input.
7031 continue
7032 fi
7033
7034 rm -f conftest.err conftest.$ac_ext
7035
7036   # OK, works on sane cases.  Now check whether nonexistent headers
7037   # can be detected and how.
7038   cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h.  */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h.  */
7044 #include <ac_nonexistent.h>
7045 _ACEOF
7046 if { (ac_try="$ac_cpp conftest.$ac_ext"
7047 case "(($ac_try" in
7048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049   *) ac_try_echo=$ac_try;;
7050 esac
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7053   ac_status=$?
7054   grep -v '^ *+' conftest.er1 >conftest.err
7055   rm -f conftest.er1
7056   cat conftest.err >&5
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); } >/dev/null && {
7059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7060          test ! -s conftest.err
7061        }; then
7062   # Broken: success on invalid input.
7063 continue
7064 else
7065   echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7067
7068   # Passes both tests.
7069 ac_preproc_ok=:
7070 break
7071 fi
7072
7073 rm -f conftest.err conftest.$ac_ext
7074
7075 done
7076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7077 rm -f conftest.err conftest.$ac_ext
7078 if $ac_preproc_ok; then
7079   break
7080 fi
7081
7082     done
7083     ac_cv_prog_CPP=$CPP
7084
7085 fi
7086   CPP=$ac_cv_prog_CPP
7087 else
7088   ac_cv_prog_CPP=$CPP
7089 fi
7090 { echo "$as_me:$LINENO: result: $CPP" >&5
7091 echo "${ECHO_T}$CPP" >&6; }
7092 ac_preproc_ok=false
7093 for ac_c_preproc_warn_flag in '' yes
7094 do
7095   # Use a header file that comes with gcc, so configuring glibc
7096   # with a fresh cross-compiler works.
7097   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7098   # <limits.h> exists even on freestanding compilers.
7099   # On the NeXT, cc -E runs the code through the compiler's parser,
7100   # not just through cpp. "Syntax error" is here to catch this case.
7101   cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h.  */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h.  */
7107 #ifdef __STDC__
7108 # include <limits.h>
7109 #else
7110 # include <assert.h>
7111 #endif
7112                      Syntax error
7113 _ACEOF
7114 if { (ac_try="$ac_cpp conftest.$ac_ext"
7115 case "(($ac_try" in
7116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117   *) ac_try_echo=$ac_try;;
7118 esac
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7121   ac_status=$?
7122   grep -v '^ *+' conftest.er1 >conftest.err
7123   rm -f conftest.er1
7124   cat conftest.err >&5
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); } >/dev/null && {
7127          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7128          test ! -s conftest.err
7129        }; then
7130   :
7131 else
7132   echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7134
7135   # Broken: fails on valid input.
7136 continue
7137 fi
7138
7139 rm -f conftest.err conftest.$ac_ext
7140
7141   # OK, works on sane cases.  Now check whether nonexistent headers
7142   # can be detected and how.
7143   cat >conftest.$ac_ext <<_ACEOF
7144 /* confdefs.h.  */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h.  */
7149 #include <ac_nonexistent.h>
7150 _ACEOF
7151 if { (ac_try="$ac_cpp conftest.$ac_ext"
7152 case "(($ac_try" in
7153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154   *) ac_try_echo=$ac_try;;
7155 esac
7156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7158   ac_status=$?
7159   grep -v '^ *+' conftest.er1 >conftest.err
7160   rm -f conftest.er1
7161   cat conftest.err >&5
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); } >/dev/null && {
7164          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7165          test ! -s conftest.err
7166        }; then
7167   # Broken: success on invalid input.
7168 continue
7169 else
7170   echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7172
7173   # Passes both tests.
7174 ac_preproc_ok=:
7175 break
7176 fi
7177
7178 rm -f conftest.err conftest.$ac_ext
7179
7180 done
7181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7182 rm -f conftest.err conftest.$ac_ext
7183 if $ac_preproc_ok; then
7184   :
7185 else
7186   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7187 See \`config.log' for more details." >&5
7188 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7189 See \`config.log' for more details." >&2;}
7190    { (exit 1); exit 1; }; }
7191 fi
7192
7193 ac_ext=c
7194 ac_cpp='$CPP $CPPFLAGS'
7195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7198
7199
7200 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7202 if test "${ac_cv_header_stdc+set}" = set; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h.  */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h.  */
7211 #include <stdlib.h>
7212 #include <stdarg.h>
7213 #include <string.h>
7214 #include <float.h>
7215
7216 int
7217 main ()
7218 {
7219
7220   ;
7221   return 0;
7222 }
7223 _ACEOF
7224 rm -f conftest.$ac_objext
7225 if { (ac_try="$ac_compile"
7226 case "(($ac_try" in
7227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228   *) ac_try_echo=$ac_try;;
7229 esac
7230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7231   (eval "$ac_compile") 2>conftest.er1
7232   ac_status=$?
7233   grep -v '^ *+' conftest.er1 >conftest.err
7234   rm -f conftest.er1
7235   cat conftest.err >&5
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); } && {
7238          test -z "$ac_c_werror_flag" ||
7239          test ! -s conftest.err
7240        } && test -s conftest.$ac_objext; then
7241   ac_cv_header_stdc=yes
7242 else
7243   echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7245
7246         ac_cv_header_stdc=no
7247 fi
7248
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250
7251 if test $ac_cv_header_stdc = yes; then
7252   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7253   cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h.  */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h.  */
7259 #include <string.h>
7260
7261 _ACEOF
7262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7263   $EGREP "memchr" >/dev/null 2>&1; then
7264   :
7265 else
7266   ac_cv_header_stdc=no
7267 fi
7268 rm -f conftest*
7269
7270 fi
7271
7272 if test $ac_cv_header_stdc = yes; then
7273   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7274   cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h.  */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h.  */
7280 #include <stdlib.h>
7281
7282 _ACEOF
7283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7284   $EGREP "free" >/dev/null 2>&1; then
7285   :
7286 else
7287   ac_cv_header_stdc=no
7288 fi
7289 rm -f conftest*
7290
7291 fi
7292
7293 if test $ac_cv_header_stdc = yes; then
7294   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7295   if test "$cross_compiling" = yes; then
7296   :
7297 else
7298   cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h.  */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h.  */
7304 #include <ctype.h>
7305 #include <stdlib.h>
7306 #if ((' ' & 0x0FF) == 0x020)
7307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7309 #else
7310 # define ISLOWER(c) \
7311                    (('a' <= (c) && (c) <= 'i') \
7312                      || ('j' <= (c) && (c) <= 'r') \
7313                      || ('s' <= (c) && (c) <= 'z'))
7314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7315 #endif
7316
7317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7318 int
7319 main ()
7320 {
7321   int i;
7322   for (i = 0; i < 256; i++)
7323     if (XOR (islower (i), ISLOWER (i))
7324         || toupper (i) != TOUPPER (i))
7325       return 2;
7326   return 0;
7327 }
7328 _ACEOF
7329 rm -f conftest$ac_exeext
7330 if { (ac_try="$ac_link"
7331 case "(($ac_try" in
7332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333   *) ac_try_echo=$ac_try;;
7334 esac
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336   (eval "$ac_link") 2>&5
7337   ac_status=$?
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7340   { (case "(($ac_try" in
7341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342   *) ac_try_echo=$ac_try;;
7343 esac
7344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7345   (eval "$ac_try") 2>&5
7346   ac_status=$?
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); }; }; then
7349   :
7350 else
7351   echo "$as_me: program exited with status $ac_status" >&5
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7354
7355 ( exit $ac_status )
7356 ac_cv_header_stdc=no
7357 fi
7358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7359 fi
7360
7361
7362 fi
7363 fi
7364 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7365 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7366 if test $ac_cv_header_stdc = yes; then
7367
7368 cat >>confdefs.h <<\_ACEOF
7369 #define STDC_HEADERS 1
7370 _ACEOF
7371
7372 fi
7373
7374 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7385                   inttypes.h stdint.h unistd.h
7386 do
7387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7391   echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393   cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h.  */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h.  */
7399 $ac_includes_default
7400
7401 #include <$ac_header>
7402 _ACEOF
7403 rm -f conftest.$ac_objext
7404 if { (ac_try="$ac_compile"
7405 case "(($ac_try" in
7406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407   *) ac_try_echo=$ac_try;;
7408 esac
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410   (eval "$ac_compile") 2>conftest.er1
7411   ac_status=$?
7412   grep -v '^ *+' conftest.er1 >conftest.err
7413   rm -f conftest.er1
7414   cat conftest.err >&5
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); } && {
7417          test -z "$ac_c_werror_flag" ||
7418          test ! -s conftest.err
7419        } && test -s conftest.$ac_objext; then
7420   eval "$as_ac_Header=yes"
7421 else
7422   echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7424
7425         eval "$as_ac_Header=no"
7426 fi
7427
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 fi
7430 ac_res=`eval echo '${'$as_ac_Header'}'`
7431                { echo "$as_me:$LINENO: result: $ac_res" >&5
7432 echo "${ECHO_T}$ac_res" >&6; }
7433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7434   cat >>confdefs.h <<_ACEOF
7435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7436 _ACEOF
7437
7438 fi
7439
7440 done
7441
7442
7443
7444 for ac_header in dlfcn.h
7445 do
7446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7448   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 fi
7453 ac_res=`eval echo '${'$as_ac_Header'}'`
7454                { echo "$as_me:$LINENO: result: $ac_res" >&5
7455 echo "${ECHO_T}$ac_res" >&6; }
7456 else
7457   # Is the header compilable?
7458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7460 cat >conftest.$ac_ext <<_ACEOF
7461 /* confdefs.h.  */
7462 _ACEOF
7463 cat confdefs.h >>conftest.$ac_ext
7464 cat >>conftest.$ac_ext <<_ACEOF
7465 /* end confdefs.h.  */
7466 $ac_includes_default
7467 #include <$ac_header>
7468 _ACEOF
7469 rm -f conftest.$ac_objext
7470 if { (ac_try="$ac_compile"
7471 case "(($ac_try" in
7472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473   *) ac_try_echo=$ac_try;;
7474 esac
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476   (eval "$ac_compile") 2>conftest.er1
7477   ac_status=$?
7478   grep -v '^ *+' conftest.er1 >conftest.err
7479   rm -f conftest.er1
7480   cat conftest.err >&5
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } && {
7483          test -z "$ac_c_werror_flag" ||
7484          test ! -s conftest.err
7485        } && test -s conftest.$ac_objext; then
7486   ac_header_compiler=yes
7487 else
7488   echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491         ac_header_compiler=no
7492 fi
7493
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7496 echo "${ECHO_T}$ac_header_compiler" >&6; }
7497
7498 # Is the header present?
7499 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h.  */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h.  */
7507 #include <$ac_header>
7508 _ACEOF
7509 if { (ac_try="$ac_cpp conftest.$ac_ext"
7510 case "(($ac_try" in
7511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512   *) ac_try_echo=$ac_try;;
7513 esac
7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7516   ac_status=$?
7517   grep -v '^ *+' conftest.er1 >conftest.err
7518   rm -f conftest.er1
7519   cat conftest.err >&5
7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521   (exit $ac_status); } >/dev/null && {
7522          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7523          test ! -s conftest.err
7524        }; then
7525   ac_header_preproc=yes
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530   ac_header_preproc=no
7531 fi
7532
7533 rm -f conftest.err conftest.$ac_ext
7534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7535 echo "${ECHO_T}$ac_header_preproc" >&6; }
7536
7537 # So?  What about this header?
7538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7539   yes:no: )
7540     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7544     ac_header_preproc=yes
7545     ;;
7546   no:yes:* )
7547     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7549     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7550 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7551     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7553     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7554 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7557     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7559     ( cat <<\_ASBOX
7560 ## --------------------------------------------- ##
7561 ## Report this to <http://www.openldap.org/its/> ##
7562 ## --------------------------------------------- ##
7563 _ASBOX
7564      ) | sed "s/^/$as_me: WARNING:     /" >&2
7565     ;;
7566 esac
7567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   eval "$as_ac_Header=\$ac_header_preproc"
7573 fi
7574 ac_res=`eval echo '${'$as_ac_Header'}'`
7575                { echo "$as_me:$LINENO: result: $ac_res" >&5
7576 echo "${ECHO_T}$ac_res" >&6; }
7577
7578 fi
7579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7580   cat >>confdefs.h <<_ACEOF
7581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7582 _ACEOF
7583
7584 fi
7585
7586 done
7587
7588
7589 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7590
7591 # find the maximum length of command line arguments
7592 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7593 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7594 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597     i=0
7598   teststring="ABCD"
7599
7600   case $build_os in
7601   msdosdjgpp*)
7602     # On DJGPP, this test can blow up pretty badly due to problems in libc
7603     # (any single argument exceeding 2000 bytes causes a buffer overrun
7604     # during glob expansion).  Even if it were fixed, the result of this
7605     # check would be larger than it should be.
7606     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7607     ;;
7608
7609   gnu*)
7610     # Under GNU Hurd, this test is not required because there is
7611     # no limit to the length of command line arguments.
7612     # Libtool will interpret -1 as no limit whatsoever
7613     lt_cv_sys_max_cmd_len=-1;
7614     ;;
7615
7616   cygwin* | mingw*)
7617     # On Win9x/ME, this test blows up -- it succeeds, but takes
7618     # about 5 minutes as the teststring grows exponentially.
7619     # Worse, since 9x/ME are not pre-emptively multitasking,
7620     # you end up with a "frozen" computer, even though with patience
7621     # the test eventually succeeds (with a max line length of 256k).
7622     # Instead, let's just punt: use the minimum linelength reported by
7623     # all of the supported platforms: 8192 (on NT/2K/XP).
7624     lt_cv_sys_max_cmd_len=8192;
7625     ;;
7626
7627   amigaos*)
7628     # On AmigaOS with pdksh, this test takes hours, literally.
7629     # So we just punt and use a minimum line length of 8192.
7630     lt_cv_sys_max_cmd_len=8192;
7631     ;;
7632
7633   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7634     # This has been around since 386BSD, at least.  Likely further.
7635     if test -x /sbin/sysctl; then
7636       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7637     elif test -x /usr/sbin/sysctl; then
7638       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7639     else
7640       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7641     fi
7642     # And add a safety zone
7643     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7644     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7645     ;;
7646
7647   interix*)
7648     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7649     lt_cv_sys_max_cmd_len=196608
7650     ;;
7651
7652   osf*)
7653     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7654     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7655     # nice to cause kernel panics so lets avoid the loop below.
7656     # First set a reasonable default.
7657     lt_cv_sys_max_cmd_len=16384
7658     #
7659     if test -x /sbin/sysconfig; then
7660       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7661         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7662       esac
7663     fi
7664     ;;
7665   sco3.2v5*)
7666     lt_cv_sys_max_cmd_len=102400
7667     ;;
7668   sysv5* | sco5v6* | sysv4.2uw2*)
7669     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7670     if test -n "$kargmax"; then
7671       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7672     else
7673       lt_cv_sys_max_cmd_len=32768
7674     fi
7675     ;;
7676   *)
7677     # If test is not a shell built-in, we'll probably end up computing a
7678     # maximum length that is only half of the actual maximum length, but
7679     # we can't tell.
7680     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7681     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7682                = "XX$teststring") >/dev/null 2>&1 &&
7683             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7684             lt_cv_sys_max_cmd_len=$new_result &&
7685             test $i != 17 # 1/2 MB should be enough
7686     do
7687       i=`expr $i + 1`
7688       teststring=$teststring$teststring
7689     done
7690     teststring=
7691     # Add a significant safety factor because C++ compilers can tack on massive
7692     # amounts of additional arguments before passing them to the linker.
7693     # It appears as though 1/2 is a usable value.
7694     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7695     ;;
7696   esac
7697
7698 fi
7699
7700 if test -n $lt_cv_sys_max_cmd_len ; then
7701   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7702 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7703 else
7704   { echo "$as_me:$LINENO: result: none" >&5
7705 echo "${ECHO_T}none" >&6; }
7706 fi
7707
7708
7709
7710
7711 # Check for command to grab the raw symbol name followed by C symbol from nm.
7712 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7713 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7714 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7715   echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717
7718 # These are sane defaults that work on at least a few old systems.
7719 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7720
7721 # Character class describing NM global symbol codes.
7722 symcode='[BCDEGRST]'
7723
7724 # Regexp to match symbols that can be accessed directly from C.
7725 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7726
7727 # Transform an extracted symbol line into a proper C declaration
7728 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7729
7730 # Transform an extracted symbol line into symbol name and symbol address
7731 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'"
7732
7733 # Define system-specific variables.
7734 case $host_os in
7735 aix*)
7736   symcode='[BCDT]'
7737   ;;
7738 cygwin* | mingw* | pw32*)
7739   symcode='[ABCDGISTW]'
7740   ;;
7741 hpux*) # Its linker distinguishes data from code symbols
7742   if test "$host_cpu" = ia64; then
7743     symcode='[ABCDEGRST]'
7744   fi
7745   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7746   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'"
7747   ;;
7748 linux*)
7749   if test "$host_cpu" = ia64; then
7750     symcode='[ABCDGIRSTW]'
7751     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7752     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'"
7753   fi
7754   ;;
7755 irix* | nonstopux*)
7756   symcode='[BCDEGRST]'
7757   ;;
7758 osf*)
7759   symcode='[BCDEGQRST]'
7760   ;;
7761 solaris*)
7762   symcode='[BDRT]'
7763   ;;
7764 sco3.2v5*)
7765   symcode='[DT]'
7766   ;;
7767 sysv4.2uw2*)
7768   symcode='[DT]'
7769   ;;
7770 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7771   symcode='[ABDT]'
7772   ;;
7773 sysv4)
7774   symcode='[DFNSTU]'
7775   ;;
7776 esac
7777
7778 # Handle CRLF in mingw tool chain
7779 opt_cr=
7780 case $build_os in
7781 mingw*)
7782   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7783   ;;
7784 esac
7785
7786 # If we're using GNU nm, then use its standard symbol codes.
7787 case `$NM -V 2>&1` in
7788 *GNU* | *'with BFD'*)
7789   symcode='[ABCDGIRSTW]' ;;
7790 esac
7791
7792 # Try without a prefix undercore, then with it.
7793 for ac_symprfx in "" "_"; do
7794
7795   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7796   symxfrm="\\1 $ac_symprfx\\2 \\2"
7797
7798   # Write the raw and C identifiers.
7799   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7800
7801   # Check to see that the pipe works correctly.
7802   pipe_works=no
7803
7804   rm -f conftest*
7805   cat > conftest.$ac_ext <<EOF
7806 #ifdef __cplusplus
7807 extern "C" {
7808 #endif
7809 char nm_test_var;
7810 void nm_test_func(){}
7811 #ifdef __cplusplus
7812 }
7813 #endif
7814 int main(){nm_test_var='a';nm_test_func();return(0);}
7815 EOF
7816
7817   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7818   (eval $ac_compile) 2>&5
7819   ac_status=$?
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); }; then
7822     # Now try to grab the symbols.
7823     nlist=conftest.nm
7824     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7825   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7826   ac_status=$?
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } && test -s "$nlist"; then
7829       # Try sorting and uniquifying the output.
7830       if sort "$nlist" | uniq > "$nlist"T; then
7831         mv -f "$nlist"T "$nlist"
7832       else
7833         rm -f "$nlist"T
7834       fi
7835
7836       # Make sure that we snagged all the symbols we need.
7837       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7838         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7839           cat <<EOF > conftest.$ac_ext
7840 #ifdef __cplusplus
7841 extern "C" {
7842 #endif
7843
7844 EOF
7845           # Now generate the symbol file.
7846           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7847
7848           cat <<EOF >> conftest.$ac_ext
7849 #if defined (__STDC__) && __STDC__
7850 # define lt_ptr_t void *
7851 #else
7852 # define lt_ptr_t char *
7853 # define const
7854 #endif
7855
7856 /* The mapping between symbol names and symbols. */
7857 const struct {
7858   const char *name;
7859   lt_ptr_t address;
7860 }
7861 lt_preloaded_symbols[] =
7862 {
7863 EOF
7864           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7865           cat <<\EOF >> conftest.$ac_ext
7866   {0, (lt_ptr_t) 0}
7867 };
7868
7869 #ifdef __cplusplus
7870 }
7871 #endif
7872 EOF
7873           # Now try linking the two files.
7874           mv conftest.$ac_objext conftstm.$ac_objext
7875           lt_save_LIBS="$LIBS"
7876           lt_save_CFLAGS="$CFLAGS"
7877           LIBS="conftstm.$ac_objext"
7878           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7879           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880   (eval $ac_link) 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7884             pipe_works=yes
7885           fi
7886           LIBS="$lt_save_LIBS"
7887           CFLAGS="$lt_save_CFLAGS"
7888         else
7889           echo "cannot find nm_test_func in $nlist" >&5
7890         fi
7891       else
7892         echo "cannot find nm_test_var in $nlist" >&5
7893       fi
7894     else
7895       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7896     fi
7897   else
7898     echo "$progname: failed program was:" >&5
7899     cat conftest.$ac_ext >&5
7900   fi
7901   rm -f conftest* conftst*
7902
7903   # Do not use the global_symbol_pipe unless it works.
7904   if test "$pipe_works" = yes; then
7905     break
7906   else
7907     lt_cv_sys_global_symbol_pipe=
7908   fi
7909 done
7910
7911 fi
7912
7913 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7914   lt_cv_sys_global_symbol_to_cdecl=
7915 fi
7916 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7917   { echo "$as_me:$LINENO: result: failed" >&5
7918 echo "${ECHO_T}failed" >&6; }
7919 else
7920   { echo "$as_me:$LINENO: result: ok" >&5
7921 echo "${ECHO_T}ok" >&6; }
7922 fi
7923
7924 { echo "$as_me:$LINENO: checking for objdir" >&5
7925 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7926 if test "${lt_cv_objdir+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929   rm -f .libs 2>/dev/null
7930 mkdir .libs 2>/dev/null
7931 if test -d .libs; then
7932   lt_cv_objdir=.libs
7933 else
7934   # MS-DOS does not allow filenames that begin with a dot.
7935   lt_cv_objdir=_libs
7936 fi
7937 rmdir .libs 2>/dev/null
7938 fi
7939 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7940 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7941 objdir=$lt_cv_objdir
7942
7943
7944
7945
7946
7947 case $host_os in
7948 aix3*)
7949   # AIX sometimes has problems with the GCC collect2 program.  For some
7950   # reason, if we set the COLLECT_NAMES environment variable, the problems
7951   # vanish in a puff of smoke.
7952   if test "X${COLLECT_NAMES+set}" != Xset; then
7953     COLLECT_NAMES=
7954     export COLLECT_NAMES
7955   fi
7956   ;;
7957 esac
7958
7959 # Sed substitution that helps us do robust quoting.  It backslashifies
7960 # metacharacters that are still active within double-quoted strings.
7961 Xsed='sed -e 1s/^X//'
7962 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7963
7964 # Same as above, but do not quote variable references.
7965 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7966
7967 # Sed substitution to delay expansion of an escaped shell variable in a
7968 # double_quote_subst'ed string.
7969 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7970
7971 # Sed substitution to avoid accidental globbing in evaled expressions
7972 no_glob_subst='s/\*/\\\*/g'
7973
7974 # Constants:
7975 rm="rm -f"
7976
7977 # Global variables:
7978 default_ofile=libtool
7979 can_build_shared=yes
7980
7981 # All known linkers require a `.a' archive for static linking (except MSVC,
7982 # which needs '.lib').
7983 libext=a
7984 ltmain="$ac_aux_dir/ltmain.sh"
7985 ofile="$default_ofile"
7986 with_gnu_ld="$lt_cv_prog_gnu_ld"
7987
7988 if test -n "$ac_tool_prefix"; then
7989   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}ar; ac_word=$2
7991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7993 if test "${ac_cv_prog_AR+set}" = set; then
7994   echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996   if test -n "$AR"; then
7997   ac_cv_prog_AR="$AR" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002   IFS=$as_save_IFS
8003   test -z "$as_dir" && as_dir=.
8004   for ac_exec_ext in '' $ac_executable_extensions; do
8005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006     ac_cv_prog_AR="${ac_tool_prefix}ar"
8007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8008     break 2
8009   fi
8010 done
8011 done
8012 IFS=$as_save_IFS
8013
8014 fi
8015 fi
8016 AR=$ac_cv_prog_AR
8017 if test -n "$AR"; then
8018   { echo "$as_me:$LINENO: result: $AR" >&5
8019 echo "${ECHO_T}$AR" >&6; }
8020 else
8021   { echo "$as_me:$LINENO: result: no" >&5
8022 echo "${ECHO_T}no" >&6; }
8023 fi
8024
8025
8026 fi
8027 if test -z "$ac_cv_prog_AR"; then
8028   ac_ct_AR=$AR
8029   # Extract the first word of "ar", so it can be a program name with args.
8030 set dummy ar; ac_word=$2
8031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8033 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8034   echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036   if test -n "$ac_ct_AR"; then
8037   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042   IFS=$as_save_IFS
8043   test -z "$as_dir" && as_dir=.
8044   for ac_exec_ext in '' $ac_executable_extensions; do
8045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046     ac_cv_prog_ac_ct_AR="ar"
8047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8048     break 2
8049   fi
8050 done
8051 done
8052 IFS=$as_save_IFS
8053
8054 fi
8055 fi
8056 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8057 if test -n "$ac_ct_AR"; then
8058   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8059 echo "${ECHO_T}$ac_ct_AR" >&6; }
8060 else
8061   { echo "$as_me:$LINENO: result: no" >&5
8062 echo "${ECHO_T}no" >&6; }
8063 fi
8064
8065   if test "x$ac_ct_AR" = x; then
8066     AR="false"
8067   else
8068     case $cross_compiling:$ac_tool_warned in
8069 yes:)
8070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8071 whose name does not start with the host triplet.  If you think this
8072 configuration is useful to you, please write to autoconf@gnu.org." >&5
8073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8074 whose name does not start with the host triplet.  If you think this
8075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8076 ac_tool_warned=yes ;;
8077 esac
8078     AR=$ac_ct_AR
8079   fi
8080 else
8081   AR="$ac_cv_prog_AR"
8082 fi
8083
8084 if test -n "$ac_tool_prefix"; then
8085   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8089 if test "${ac_cv_prog_RANLIB+set}" = set; then
8090   echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092   if test -n "$RANLIB"; then
8093   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098   IFS=$as_save_IFS
8099   test -z "$as_dir" && as_dir=.
8100   for ac_exec_ext in '' $ac_executable_extensions; do
8101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8104     break 2
8105   fi
8106 done
8107 done
8108 IFS=$as_save_IFS
8109
8110 fi
8111 fi
8112 RANLIB=$ac_cv_prog_RANLIB
8113 if test -n "$RANLIB"; then
8114   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8115 echo "${ECHO_T}$RANLIB" >&6; }
8116 else
8117   { echo "$as_me:$LINENO: result: no" >&5
8118 echo "${ECHO_T}no" >&6; }
8119 fi
8120
8121
8122 fi
8123 if test -z "$ac_cv_prog_RANLIB"; then
8124   ac_ct_RANLIB=$RANLIB
8125   # Extract the first word of "ranlib", so it can be a program name with args.
8126 set dummy ranlib; ac_word=$2
8127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8129 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8130   echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132   if test -n "$ac_ct_RANLIB"; then
8133   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138   IFS=$as_save_IFS
8139   test -z "$as_dir" && as_dir=.
8140   for ac_exec_ext in '' $ac_executable_extensions; do
8141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8142     ac_cv_prog_ac_ct_RANLIB="ranlib"
8143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8144     break 2
8145   fi
8146 done
8147 done
8148 IFS=$as_save_IFS
8149
8150 fi
8151 fi
8152 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8153 if test -n "$ac_ct_RANLIB"; then
8154   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8155 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8156 else
8157   { echo "$as_me:$LINENO: result: no" >&5
8158 echo "${ECHO_T}no" >&6; }
8159 fi
8160
8161   if test "x$ac_ct_RANLIB" = x; then
8162     RANLIB=":"
8163   else
8164     case $cross_compiling:$ac_tool_warned in
8165 yes:)
8166 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8167 whose name does not start with the host triplet.  If you think this
8168 configuration is useful to you, please write to autoconf@gnu.org." >&5
8169 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8170 whose name does not start with the host triplet.  If you think this
8171 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8172 ac_tool_warned=yes ;;
8173 esac
8174     RANLIB=$ac_ct_RANLIB
8175   fi
8176 else
8177   RANLIB="$ac_cv_prog_RANLIB"
8178 fi
8179
8180 if test -n "$ac_tool_prefix"; then
8181   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8182 set dummy ${ac_tool_prefix}strip; ac_word=$2
8183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8185 if test "${ac_cv_prog_STRIP+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188   if test -n "$STRIP"; then
8189   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8190 else
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8193 do
8194   IFS=$as_save_IFS
8195   test -z "$as_dir" && as_dir=.
8196   for ac_exec_ext in '' $ac_executable_extensions; do
8197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8198     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200     break 2
8201   fi
8202 done
8203 done
8204 IFS=$as_save_IFS
8205
8206 fi
8207 fi
8208 STRIP=$ac_cv_prog_STRIP
8209 if test -n "$STRIP"; then
8210   { echo "$as_me:$LINENO: result: $STRIP" >&5
8211 echo "${ECHO_T}$STRIP" >&6; }
8212 else
8213   { echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6; }
8215 fi
8216
8217
8218 fi
8219 if test -z "$ac_cv_prog_STRIP"; then
8220   ac_ct_STRIP=$STRIP
8221   # Extract the first word of "strip", so it can be a program name with args.
8222 set dummy strip; ac_word=$2
8223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8225 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   if test -n "$ac_ct_STRIP"; then
8229   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8230 else
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 for as_dir in $PATH
8233 do
8234   IFS=$as_save_IFS
8235   test -z "$as_dir" && as_dir=.
8236   for ac_exec_ext in '' $ac_executable_extensions; do
8237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8238     ac_cv_prog_ac_ct_STRIP="strip"
8239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8240     break 2
8241   fi
8242 done
8243 done
8244 IFS=$as_save_IFS
8245
8246 fi
8247 fi
8248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8249 if test -n "$ac_ct_STRIP"; then
8250   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8251 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8252 else
8253   { echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6; }
8255 fi
8256
8257   if test "x$ac_ct_STRIP" = x; then
8258     STRIP=":"
8259   else
8260     case $cross_compiling:$ac_tool_warned in
8261 yes:)
8262 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8263 whose name does not start with the host triplet.  If you think this
8264 configuration is useful to you, please write to autoconf@gnu.org." >&5
8265 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8266 whose name does not start with the host triplet.  If you think this
8267 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8268 ac_tool_warned=yes ;;
8269 esac
8270     STRIP=$ac_ct_STRIP
8271   fi
8272 else
8273   STRIP="$ac_cv_prog_STRIP"
8274 fi
8275
8276
8277 old_CC="$CC"
8278 old_CFLAGS="$CFLAGS"
8279
8280 # Set sane defaults for various variables
8281 test -z "$AR" && AR=ar
8282 test -z "$AR_FLAGS" && AR_FLAGS=cru
8283 test -z "$AS" && AS=as
8284 test -z "$CC" && CC=cc
8285 test -z "$LTCC" && LTCC=$CC
8286 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8287 test -z "$DLLTOOL" && DLLTOOL=dlltool
8288 test -z "$LD" && LD=ld
8289 test -z "$LN_S" && LN_S="ln -s"
8290 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8291 test -z "$NM" && NM=nm
8292 test -z "$SED" && SED=sed
8293 test -z "$OBJDUMP" && OBJDUMP=objdump
8294 test -z "$RANLIB" && RANLIB=:
8295 test -z "$STRIP" && STRIP=:
8296 test -z "$ac_objext" && ac_objext=o
8297
8298 # Determine commands to create old-style static archives.
8299 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8300 old_postinstall_cmds='chmod 644 $oldlib'
8301 old_postuninstall_cmds=
8302
8303 if test -n "$RANLIB"; then
8304   case $host_os in
8305   openbsd*)
8306     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8307     ;;
8308   *)
8309     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8310     ;;
8311   esac
8312   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8313 fi
8314
8315 for cc_temp in $compiler""; do
8316   case $cc_temp in
8317     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8318     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8319     \-*) ;;
8320     *) break;;
8321   esac
8322 done
8323 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8324
8325
8326 # Only perform the check for file, if the check method requires it
8327 case $deplibs_check_method in
8328 file_magic*)
8329   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8330     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8331 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8332 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335   case $MAGIC_CMD in
8336 [\\/*] |  ?:[\\/]*)
8337   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8338   ;;
8339 *)
8340   lt_save_MAGIC_CMD="$MAGIC_CMD"
8341   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8342   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8343   for ac_dir in $ac_dummy; do
8344     IFS="$lt_save_ifs"
8345     test -z "$ac_dir" && ac_dir=.
8346     if test -f $ac_dir/${ac_tool_prefix}file; then
8347       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8348       if test -n "$file_magic_test_file"; then
8349         case $deplibs_check_method in
8350         "file_magic "*)
8351           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8352           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8353           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8354             $EGREP "$file_magic_regex" > /dev/null; then
8355             :
8356           else
8357             cat <<EOF 1>&2
8358
8359 *** Warning: the command libtool uses to detect shared libraries,
8360 *** $file_magic_cmd, produces output that libtool cannot recognize.
8361 *** The result is that libtool may fail to recognize shared libraries
8362 *** as such.  This will affect the creation of libtool libraries that
8363 *** depend on shared libraries, but programs linked with such libtool
8364 *** libraries will work regardless of this problem.  Nevertheless, you
8365 *** may want to report the problem to your system manager and/or to
8366 *** bug-libtool@gnu.org
8367
8368 EOF
8369           fi ;;
8370         esac
8371       fi
8372       break
8373     fi
8374   done
8375   IFS="$lt_save_ifs"
8376   MAGIC_CMD="$lt_save_MAGIC_CMD"
8377   ;;
8378 esac
8379 fi
8380
8381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8382 if test -n "$MAGIC_CMD"; then
8383   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8384 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8385 else
8386   { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8388 fi
8389
8390 if test -z "$lt_cv_path_MAGIC_CMD"; then
8391   if test -n "$ac_tool_prefix"; then
8392     { echo "$as_me:$LINENO: checking for file" >&5
8393 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8394 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   case $MAGIC_CMD in
8398 [\\/*] |  ?:[\\/]*)
8399   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8400   ;;
8401 *)
8402   lt_save_MAGIC_CMD="$MAGIC_CMD"
8403   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8404   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8405   for ac_dir in $ac_dummy; do
8406     IFS="$lt_save_ifs"
8407     test -z "$ac_dir" && ac_dir=.
8408     if test -f $ac_dir/file; then
8409       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8410       if test -n "$file_magic_test_file"; then
8411         case $deplibs_check_method in
8412         "file_magic "*)
8413           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8414           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8415           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8416             $EGREP "$file_magic_regex" > /dev/null; then
8417             :
8418           else
8419             cat <<EOF 1>&2
8420
8421 *** Warning: the command libtool uses to detect shared libraries,
8422 *** $file_magic_cmd, produces output that libtool cannot recognize.
8423 *** The result is that libtool may fail to recognize shared libraries
8424 *** as such.  This will affect the creation of libtool libraries that
8425 *** depend on shared libraries, but programs linked with such libtool
8426 *** libraries will work regardless of this problem.  Nevertheless, you
8427 *** may want to report the problem to your system manager and/or to
8428 *** bug-libtool@gnu.org
8429
8430 EOF
8431           fi ;;
8432         esac
8433       fi
8434       break
8435     fi
8436   done
8437   IFS="$lt_save_ifs"
8438   MAGIC_CMD="$lt_save_MAGIC_CMD"
8439   ;;
8440 esac
8441 fi
8442
8443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8444 if test -n "$MAGIC_CMD"; then
8445   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8446 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8447 else
8448   { echo "$as_me:$LINENO: result: no" >&5
8449 echo "${ECHO_T}no" >&6; }
8450 fi
8451
8452   else
8453     MAGIC_CMD=:
8454   fi
8455 fi
8456
8457   fi
8458   ;;
8459 esac
8460
8461 enable_dlopen=yes
8462 enable_win32_dll=yes
8463
8464 # Check whether --enable-libtool-lock was given.
8465 if test "${enable_libtool_lock+set}" = set; then
8466   enableval=$enable_libtool_lock;
8467 fi
8468
8469 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8470
8471
8472 # Check whether --with-pic was given.
8473 if test "${with_pic+set}" = set; then
8474   withval=$with_pic; pic_mode="$withval"
8475 else
8476   pic_mode=default
8477 fi
8478
8479 test -z "$pic_mode" && pic_mode=default
8480
8481 # Use C for the default configuration in the libtool script
8482 tagname=
8483 lt_save_CC="$CC"
8484 ac_ext=c
8485 ac_cpp='$CPP $CPPFLAGS'
8486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8489
8490
8491 # Source file extension for C test sources.
8492 ac_ext=c
8493
8494 # Object file extension for compiled C test sources.
8495 objext=o
8496 objext=$objext
8497
8498 # Code to be used in simple compile tests
8499 lt_simple_compile_test_code="int some_variable = 0;\n"
8500
8501 # Code to be used in simple link tests
8502 lt_simple_link_test_code='int main(){return(0);}\n'
8503
8504
8505 # If no C compiler was specified, use CC.
8506 LTCC=${LTCC-"$CC"}
8507
8508 # If no C compiler flags were specified, use CFLAGS.
8509 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8510
8511 # Allow CC to be a program name with arguments.
8512 compiler=$CC
8513
8514
8515 # save warnings/boilerplate of simple test code
8516 ac_outfile=conftest.$ac_objext
8517 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8518 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8519 _lt_compiler_boilerplate=`cat conftest.err`
8520 $rm conftest*
8521
8522 ac_outfile=conftest.$ac_objext
8523 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8524 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8525 _lt_linker_boilerplate=`cat conftest.err`
8526 $rm conftest*
8527
8528
8529
8530 lt_prog_compiler_no_builtin_flag=
8531
8532 if test "$GCC" = yes; then
8533   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8534
8535
8536 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8537 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8538 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8539   echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541   lt_cv_prog_compiler_rtti_exceptions=no
8542   ac_outfile=conftest.$ac_objext
8543    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8544    lt_compiler_flag="-fno-rtti -fno-exceptions"
8545    # Insert the option either (1) after the last *FLAGS variable, or
8546    # (2) before a word containing "conftest.", or (3) at the end.
8547    # Note that $ac_compile itself does not contain backslashes and begins
8548    # with a dollar sign (not a hyphen), so the echo should work correctly.
8549    # The option is referenced via a variable to avoid confusing sed.
8550    lt_compile=`echo "$ac_compile" | $SED \
8551    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8552    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8553    -e 's:$: $lt_compiler_flag:'`
8554    (eval echo "\"\$as_me:8554: $lt_compile\"" >&5)
8555    (eval "$lt_compile" 2>conftest.err)
8556    ac_status=$?
8557    cat conftest.err >&5
8558    echo "$as_me:8558: \$? = $ac_status" >&5
8559    if (exit $ac_status) && test -s "$ac_outfile"; then
8560      # The compiler can only warn and ignore the option if not recognized
8561      # So say no if there are warnings other than the usual output.
8562      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8563      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8564      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8565        lt_cv_prog_compiler_rtti_exceptions=yes
8566      fi
8567    fi
8568    $rm conftest*
8569
8570 fi
8571 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8572 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8573
8574 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8575     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8576 else
8577     :
8578 fi
8579
8580 fi
8581
8582 lt_prog_compiler_wl=
8583 lt_prog_compiler_pic=
8584 lt_prog_compiler_static=
8585
8586 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8587 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8588
8589   if test "$GCC" = yes; then
8590     lt_prog_compiler_wl='-Wl,'
8591     lt_prog_compiler_static='-static'
8592
8593     case $host_os in
8594       aix*)
8595       # All AIX code is PIC.
8596       if test "$host_cpu" = ia64; then
8597         # AIX 5 now supports IA64 processor
8598         lt_prog_compiler_static='-Bstatic'
8599       fi
8600       ;;
8601
8602     amigaos*)
8603       # FIXME: we need at least 68020 code to build shared libraries, but
8604       # adding the `-m68020' flag to GCC prevents building anything better,
8605       # like `-m68040'.
8606       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8607       ;;
8608
8609     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8610       # PIC is the default for these OSes.
8611       ;;
8612
8613     mingw* | pw32* | os2*)
8614       # This hack is so that the source file can tell whether it is being
8615       # built for inclusion in a dll (and should export symbols for example).
8616       lt_prog_compiler_pic='-DDLL_EXPORT'
8617       ;;
8618
8619     darwin* | rhapsody*)
8620       # PIC is the default on this platform
8621       # Common symbols not allowed in MH_DYLIB files
8622       lt_prog_compiler_pic='-fno-common'
8623       ;;
8624
8625     interix3*)
8626       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8627       # Instead, we relocate shared libraries at runtime.
8628       ;;
8629
8630     msdosdjgpp*)
8631       # Just because we use GCC doesn't mean we suddenly get shared libraries
8632       # on systems that don't support them.
8633       lt_prog_compiler_can_build_shared=no
8634       enable_shared=no
8635       ;;
8636
8637     sysv4*MP*)
8638       if test -d /usr/nec; then
8639         lt_prog_compiler_pic=-Kconform_pic
8640       fi
8641       ;;
8642
8643     hpux*)
8644       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8645       # not for PA HP-UX.
8646       case $host_cpu in
8647       hppa*64*|ia64*)
8648         # +Z the default
8649         ;;
8650       *)
8651         lt_prog_compiler_pic='-fPIC'
8652         ;;
8653       esac
8654       ;;
8655
8656     *)
8657       lt_prog_compiler_pic='-fPIC'
8658       ;;
8659     esac
8660   else
8661     # PORTME Check for flag to pass linker flags through the system compiler.
8662     case $host_os in
8663     aix*)
8664       lt_prog_compiler_wl='-Wl,'
8665       if test "$host_cpu" = ia64; then
8666         # AIX 5 now supports IA64 processor
8667         lt_prog_compiler_static='-Bstatic'
8668       else
8669         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8670       fi
8671       ;;
8672       darwin*)
8673         # PIC is the default on this platform
8674         # Common symbols not allowed in MH_DYLIB files
8675        case $cc_basename in
8676          xlc*)
8677          lt_prog_compiler_pic='-qnocommon'
8678          lt_prog_compiler_wl='-Wl,'
8679          ;;
8680        esac
8681        ;;
8682
8683     mingw* | pw32* | os2*)
8684       # This hack is so that the source file can tell whether it is being
8685       # built for inclusion in a dll (and should export symbols for example).
8686       lt_prog_compiler_pic='-DDLL_EXPORT'
8687       ;;
8688
8689     hpux9* | hpux10* | hpux11*)
8690       lt_prog_compiler_wl='-Wl,'
8691       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8692       # not for PA HP-UX.
8693       case $host_cpu in
8694       hppa*64*|ia64*)
8695         # +Z the default
8696         ;;
8697       *)
8698         lt_prog_compiler_pic='+Z'
8699         ;;
8700       esac
8701       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8702       lt_prog_compiler_static='${wl}-a ${wl}archive'
8703       ;;
8704
8705     irix5* | irix6* | nonstopux*)
8706       lt_prog_compiler_wl='-Wl,'
8707       # PIC (with -KPIC) is the default.
8708       lt_prog_compiler_static='-non_shared'
8709       ;;
8710
8711     newsos6)
8712       lt_prog_compiler_pic='-KPIC'
8713       lt_prog_compiler_static='-Bstatic'
8714       ;;
8715
8716     linux*)
8717       case $cc_basename in
8718       icc* | ecc*)
8719         lt_prog_compiler_wl='-Wl,'
8720         lt_prog_compiler_pic='-KPIC'
8721         lt_prog_compiler_static='-static'
8722         ;;
8723       pgcc* | pgf77* | pgf90* | pgf95*)
8724         # Portland Group compilers (*not* the Pentium gcc compiler,
8725         # which looks to be a dead project)
8726         lt_prog_compiler_wl='-Wl,'
8727         lt_prog_compiler_pic='-fpic'
8728         lt_prog_compiler_static='-Bstatic'
8729         ;;
8730       ccc*)
8731         lt_prog_compiler_wl='-Wl,'
8732         # All Alpha code is PIC.
8733         lt_prog_compiler_static='-non_shared'
8734         ;;
8735       esac
8736       ;;
8737
8738     osf3* | osf4* | osf5*)
8739       lt_prog_compiler_wl='-Wl,'
8740       # All OSF/1 code is PIC.
8741       lt_prog_compiler_static='-non_shared'
8742       ;;
8743
8744     solaris*)
8745       lt_prog_compiler_pic='-KPIC'
8746       lt_prog_compiler_static='-Bstatic'
8747       case $cc_basename in
8748       f77* | f90* | f95*)
8749         lt_prog_compiler_wl='-Qoption ld ';;
8750       *)
8751         lt_prog_compiler_wl='-Wl,';;
8752       esac
8753       ;;
8754
8755     sunos4*)
8756       lt_prog_compiler_wl='-Qoption ld '
8757       lt_prog_compiler_pic='-PIC'
8758       lt_prog_compiler_static='-Bstatic'
8759       ;;
8760
8761     sysv4 | sysv4.2uw2* | sysv4.3*)
8762       lt_prog_compiler_wl='-Wl,'
8763       lt_prog_compiler_pic='-KPIC'
8764       lt_prog_compiler_static='-Bstatic'
8765       ;;
8766
8767     sysv4*MP*)
8768       if test -d /usr/nec ;then
8769         lt_prog_compiler_pic='-Kconform_pic'
8770         lt_prog_compiler_static='-Bstatic'
8771       fi
8772       ;;
8773
8774     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8775       lt_prog_compiler_wl='-Wl,'
8776       lt_prog_compiler_pic='-KPIC'
8777       lt_prog_compiler_static='-Bstatic'
8778       ;;
8779
8780     unicos*)
8781       lt_prog_compiler_wl='-Wl,'
8782       lt_prog_compiler_can_build_shared=no
8783       ;;
8784
8785     uts4*)
8786       lt_prog_compiler_pic='-pic'
8787       lt_prog_compiler_static='-Bstatic'
8788       ;;
8789
8790     *)
8791       lt_prog_compiler_can_build_shared=no
8792       ;;
8793     esac
8794   fi
8795
8796 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8797 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8798
8799 #
8800 # Check to make sure the PIC flag actually works.
8801 #
8802 if test -n "$lt_prog_compiler_pic"; then
8803
8804 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8805 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8806 if test "${lt_prog_compiler_pic_works+set}" = set; then
8807   echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809   lt_prog_compiler_pic_works=no
8810   ac_outfile=conftest.$ac_objext
8811    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8812    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8813    # Insert the option either (1) after the last *FLAGS variable, or
8814    # (2) before a word containing "conftest.", or (3) at the end.
8815    # Note that $ac_compile itself does not contain backslashes and begins
8816    # with a dollar sign (not a hyphen), so the echo should work correctly.
8817    # The option is referenced via a variable to avoid confusing sed.
8818    lt_compile=`echo "$ac_compile" | $SED \
8819    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8820    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8821    -e 's:$: $lt_compiler_flag:'`
8822    (eval echo "\"\$as_me:8822: $lt_compile\"" >&5)
8823    (eval "$lt_compile" 2>conftest.err)
8824    ac_status=$?
8825    cat conftest.err >&5
8826    echo "$as_me:8826: \$? = $ac_status" >&5
8827    if (exit $ac_status) && test -s "$ac_outfile"; then
8828      # The compiler can only warn and ignore the option if not recognized
8829      # So say no if there are warnings other than the usual output.
8830      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8831      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8832      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8833        lt_prog_compiler_pic_works=yes
8834      fi
8835    fi
8836    $rm conftest*
8837
8838 fi
8839 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8840 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8841
8842 if test x"$lt_prog_compiler_pic_works" = xyes; then
8843     case $lt_prog_compiler_pic in
8844      "" | " "*) ;;
8845      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8846      esac
8847 else
8848     lt_prog_compiler_pic=
8849      lt_prog_compiler_can_build_shared=no
8850 fi
8851
8852 fi
8853 case $host_os in
8854   # For platforms which do not support PIC, -DPIC is meaningless:
8855   *djgpp*)
8856     lt_prog_compiler_pic=
8857     ;;
8858   *)
8859     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8860     ;;
8861 esac
8862
8863 #
8864 # Check to make sure the static flag actually works.
8865 #
8866 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8867 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8868 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8869 if test "${lt_prog_compiler_static_works+set}" = set; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872   lt_prog_compiler_static_works=no
8873    save_LDFLAGS="$LDFLAGS"
8874    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8875    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8876    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8877      # The linker can only warn and ignore the option if not recognized
8878      # So say no if there are warnings
8879      if test -s conftest.err; then
8880        # Append any errors to the config.log.
8881        cat conftest.err 1>&5
8882        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8883        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8884        if diff conftest.exp conftest.er2 >/dev/null; then
8885          lt_prog_compiler_static_works=yes
8886        fi
8887      else
8888        lt_prog_compiler_static_works=yes
8889      fi
8890    fi
8891    $rm conftest*
8892    LDFLAGS="$save_LDFLAGS"
8893
8894 fi
8895 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8896 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8897
8898 if test x"$lt_prog_compiler_static_works" = xyes; then
8899     :
8900 else
8901     lt_prog_compiler_static=
8902 fi
8903
8904
8905 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8906 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8907 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8908   echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910   lt_cv_prog_compiler_c_o=no
8911    $rm -r conftest 2>/dev/null
8912    mkdir conftest
8913    cd conftest
8914    mkdir out
8915    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8916
8917    lt_compiler_flag="-o out/conftest2.$ac_objext"
8918    # Insert the option either (1) after the last *FLAGS variable, or
8919    # (2) before a word containing "conftest.", or (3) at the end.
8920    # Note that $ac_compile itself does not contain backslashes and begins
8921    # with a dollar sign (not a hyphen), so the echo should work correctly.
8922    lt_compile=`echo "$ac_compile" | $SED \
8923    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8924    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8925    -e 's:$: $lt_compiler_flag:'`
8926    (eval echo "\"\$as_me:8926: $lt_compile\"" >&5)
8927    (eval "$lt_compile" 2>out/conftest.err)
8928    ac_status=$?
8929    cat out/conftest.err >&5
8930    echo "$as_me:8930: \$? = $ac_status" >&5
8931    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8932    then
8933      # The compiler can only warn and ignore the option if not recognized
8934      # So say no if there are warnings
8935      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8936      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8937      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8938        lt_cv_prog_compiler_c_o=yes
8939      fi
8940    fi
8941    chmod u+w . 2>&5
8942    $rm conftest*
8943    # SGI C++ compiler will create directory out/ii_files/ for
8944    # template instantiation
8945    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8946    $rm out/* && rmdir out
8947    cd ..
8948    rmdir conftest
8949    $rm conftest*
8950
8951 fi
8952 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8953 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8954
8955
8956 hard_links="nottested"
8957 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8958   # do not overwrite the value of need_locks provided by the user
8959   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8960 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8961   hard_links=yes
8962   $rm conftest*
8963   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8964   touch conftest.a
8965   ln conftest.a conftest.b 2>&5 || hard_links=no
8966   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8967   { echo "$as_me:$LINENO: result: $hard_links" >&5
8968 echo "${ECHO_T}$hard_links" >&6; }
8969   if test "$hard_links" = no; then
8970     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8971 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8972     need_locks=warn
8973   fi
8974 else
8975   need_locks=no
8976 fi
8977
8978 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8979 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8980
8981   runpath_var=
8982   allow_undefined_flag=
8983   enable_shared_with_static_runtimes=no
8984   archive_cmds=
8985   archive_expsym_cmds=
8986   old_archive_From_new_cmds=
8987   old_archive_from_expsyms_cmds=
8988   export_dynamic_flag_spec=
8989   whole_archive_flag_spec=
8990   thread_safe_flag_spec=
8991   hardcode_libdir_flag_spec=
8992   hardcode_libdir_flag_spec_ld=
8993   hardcode_libdir_separator=
8994   hardcode_direct=no
8995   hardcode_minus_L=no
8996   hardcode_shlibpath_var=unsupported
8997   link_all_deplibs=unknown
8998   hardcode_automatic=no
8999   module_cmds=
9000   module_expsym_cmds=
9001   always_export_symbols=no
9002   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9003   # include_expsyms should be a list of space-separated symbols to be *always*
9004   # included in the symbol list
9005   include_expsyms=
9006   # exclude_expsyms can be an extended regexp of symbols to exclude
9007   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9008   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9009   # as well as any symbol that contains `d'.
9010   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9011   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9012   # platforms (ab)use it in PIC code, but their linkers get confused if
9013   # the symbol is explicitly referenced.  Since portable code cannot
9014   # rely on this symbol name, it's probably fine to never include it in
9015   # preloaded symbol tables.
9016   extract_expsyms_cmds=
9017   # Just being paranoid about ensuring that cc_basename is set.
9018   for cc_temp in $compiler""; do
9019   case $cc_temp in
9020     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9021     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9022     \-*) ;;
9023     *) break;;
9024   esac
9025 done
9026 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9027
9028   case $host_os in
9029   cygwin* | mingw* | pw32*)
9030     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9031     # When not using gcc, we currently assume that we are using
9032     # Microsoft Visual C++.
9033     if test "$GCC" != yes; then
9034       with_gnu_ld=no
9035     fi
9036     ;;
9037   interix*)
9038     # we just hope/assume this is gcc and not c89 (= MSVC++)
9039     with_gnu_ld=yes
9040     ;;
9041   openbsd*)
9042     with_gnu_ld=no
9043     ;;
9044   esac
9045
9046   ld_shlibs=yes
9047   if test "$with_gnu_ld" = yes; then
9048     # If archive_cmds runs LD, not CC, wlarc should be empty
9049     wlarc='${wl}'
9050
9051     # Set some defaults for GNU ld with shared library support. These
9052     # are reset later if shared libraries are not supported. Putting them
9053     # here allows them to be overridden if necessary.
9054     runpath_var=LD_RUN_PATH
9055     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9056     export_dynamic_flag_spec='${wl}--export-dynamic'
9057     # ancient GNU ld didn't support --whole-archive et. al.
9058     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9059         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9060       else
9061         whole_archive_flag_spec=
9062     fi
9063     supports_anon_versioning=no
9064     case `$LD -v 2>/dev/null` in
9065       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9066       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9067       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9068       *\ 2.11.*) ;; # other 2.11 versions
9069       *) supports_anon_versioning=yes ;;
9070     esac
9071
9072     # See if GNU ld supports shared libraries.
9073     case $host_os in
9074     aix3* | aix4* | aix5*)
9075       # On AIX/PPC, the GNU linker is very broken
9076       if test "$host_cpu" != ia64; then
9077         ld_shlibs=no
9078         cat <<EOF 1>&2
9079
9080 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9081 *** to be unable to reliably create shared libraries on AIX.
9082 *** Therefore, libtool is disabling shared libraries support.  If you
9083 *** really care for shared libraries, you may want to modify your PATH
9084 *** so that a non-GNU linker is found, and then restart.
9085
9086 EOF
9087       fi
9088       ;;
9089
9090     amigaos*)
9091       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)'
9092       hardcode_libdir_flag_spec='-L$libdir'
9093       hardcode_minus_L=yes
9094
9095       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9096       # that the semantics of dynamic libraries on AmigaOS, at least up
9097       # to version 4, is to share data among multiple programs linked
9098       # with the same dynamic library.  Since this doesn't match the
9099       # behavior of shared libraries on other platforms, we can't use
9100       # them.
9101       ld_shlibs=no
9102       ;;
9103
9104     beos*)
9105       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9106         allow_undefined_flag=unsupported
9107         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9108         # support --undefined.  This deserves some investigation.  FIXME
9109         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110       else
9111         ld_shlibs=no
9112       fi
9113       ;;
9114
9115     cygwin* | mingw* | pw32*)
9116       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9117       # as there is no search path for DLLs.
9118       hardcode_libdir_flag_spec='-L$libdir'
9119       allow_undefined_flag=unsupported
9120       always_export_symbols=no
9121       enable_shared_with_static_runtimes=yes
9122       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9123
9124       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9125         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9126         # If the export-symbols file already is a .def file (1st line
9127         # is EXPORTS), use it as is; otherwise, prepend...
9128         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9129           cp $export_symbols $output_objdir/$soname.def;
9130         else
9131           echo EXPORTS > $output_objdir/$soname.def;
9132           cat $export_symbols >> $output_objdir/$soname.def;
9133         fi~
9134         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9135       else
9136         ld_shlibs=no
9137       fi
9138       ;;
9139
9140     interix3*)
9141       hardcode_direct=no
9142       hardcode_shlibpath_var=no
9143       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9144       export_dynamic_flag_spec='${wl}-E'
9145       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9146       # Instead, shared libraries are loaded at an image base (0x10000000 by
9147       # default) and relocated if they conflict, which is a slow very memory
9148       # consuming and fragmenting process.  To avoid this, we pick a random,
9149       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9150       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9151       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9152       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9153       ;;
9154
9155     linux*)
9156       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9157         tmp_addflag=
9158         case $cc_basename,$host_cpu in
9159         pgcc*)                          # Portland Group C compiler
9160           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'
9161           tmp_addflag=' $pic_flag'
9162           ;;
9163         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9164           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'
9165           tmp_addflag=' $pic_flag -Mnomain' ;;
9166         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9167           tmp_addflag=' -i_dynamic' ;;
9168         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9169           tmp_addflag=' -i_dynamic -nofor_main' ;;
9170         ifc* | ifort*)                  # Intel Fortran compiler
9171           tmp_addflag=' -nofor_main' ;;
9172         esac
9173         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9174
9175         if test $supports_anon_versioning = yes; then
9176           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9177   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9178   $echo "local: *; };" >> $output_objdir/$libname.ver~
9179           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9180         fi
9181       else
9182         ld_shlibs=no
9183       fi
9184       ;;
9185
9186     netbsd*)
9187       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9188         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9189         wlarc=
9190       else
9191         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9193       fi
9194       ;;
9195
9196     solaris*)
9197       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9198         ld_shlibs=no
9199         cat <<EOF 1>&2
9200
9201 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9202 *** create shared libraries on Solaris systems.  Therefore, libtool
9203 *** is disabling shared libraries support.  We urge you to upgrade GNU
9204 *** binutils to release 2.9.1 or newer.  Another option is to modify
9205 *** your PATH or compiler configuration so that the native linker is
9206 *** used, and then restart.
9207
9208 EOF
9209       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9210         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9211         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9212       else
9213         ld_shlibs=no
9214       fi
9215       ;;
9216
9217     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9218       case `$LD -v 2>&1` in
9219         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9220         ld_shlibs=no
9221         cat <<_LT_EOF 1>&2
9222
9223 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9224 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9225 *** is disabling shared libraries support.  We urge you to upgrade GNU
9226 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9227 *** your PATH or compiler configuration so that the native linker is
9228 *** used, and then restart.
9229
9230 _LT_EOF
9231         ;;
9232         *)
9233           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9234             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9235             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9236             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9237           else
9238             ld_shlibs=no
9239           fi
9240         ;;
9241       esac
9242       ;;
9243
9244     sunos4*)
9245       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9246       wlarc=
9247       hardcode_direct=yes
9248       hardcode_shlibpath_var=no
9249       ;;
9250
9251     *)
9252       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9253         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9255       else
9256         ld_shlibs=no
9257       fi
9258       ;;
9259     esac
9260
9261     if test "$ld_shlibs" = no; then
9262       runpath_var=
9263       hardcode_libdir_flag_spec=
9264       export_dynamic_flag_spec=
9265       whole_archive_flag_spec=
9266     fi
9267   else
9268     # PORTME fill in a description of your system's linker (not GNU ld)
9269     case $host_os in
9270     aix3*)
9271       allow_undefined_flag=unsupported
9272       always_export_symbols=yes
9273       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'
9274       # Note: this linker hardcodes the directories in LIBPATH if there
9275       # are no directories specified by -L.
9276       hardcode_minus_L=yes
9277       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9278         # Neither direct hardcoding nor static linking is supported with a
9279         # broken collect2.
9280         hardcode_direct=unsupported
9281       fi
9282       ;;
9283
9284     aix4* | aix5*)
9285       if test "$host_cpu" = ia64; then
9286         # On IA64, the linker does run time linking by default, so we don't
9287         # have to do anything special.
9288         aix_use_runtimelinking=no
9289         exp_sym_flag='-Bexport'
9290         no_entry_flag=""
9291       else
9292         # If we're using GNU nm, then we don't want the "-C" option.
9293         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9294         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9295           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'
9296         else
9297           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'
9298         fi
9299         aix_use_runtimelinking=no
9300
9301         # Test if we are trying to use run time linking or normal
9302         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9303         # need to do runtime linking.
9304         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9305           for ld_flag in $LDFLAGS; do
9306           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9307             aix_use_runtimelinking=yes
9308             break
9309           fi
9310           done
9311           ;;
9312         esac
9313
9314         exp_sym_flag='-bexport'
9315         no_entry_flag='-bnoentry'
9316       fi
9317
9318       # When large executables or shared objects are built, AIX ld can
9319       # have problems creating the table of contents.  If linking a library
9320       # or program results in "error TOC overflow" add -mminimal-toc to
9321       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9322       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9323
9324       archive_cmds=''
9325       hardcode_direct=yes
9326       hardcode_libdir_separator=':'
9327       link_all_deplibs=yes
9328
9329       if test "$GCC" = yes; then
9330         case $host_os in aix4.[012]|aix4.[012].*)
9331         # We only want to do this on AIX 4.2 and lower, the check
9332         # below for broken collect2 doesn't work under 4.3+
9333           collect2name=`${CC} -print-prog-name=collect2`
9334           if test -f "$collect2name" && \
9335            strings "$collect2name" | grep resolve_lib_name >/dev/null
9336           then
9337           # We have reworked collect2
9338           hardcode_direct=yes
9339           else
9340           # We have old collect2
9341           hardcode_direct=unsupported
9342           # It fails to find uninstalled libraries when the uninstalled
9343           # path is not listed in the libpath.  Setting hardcode_minus_L
9344           # to unsupported forces relinking
9345           hardcode_minus_L=yes
9346           hardcode_libdir_flag_spec='-L$libdir'
9347           hardcode_libdir_separator=
9348           fi
9349           ;;
9350         esac
9351         shared_flag='-shared'
9352         if test "$aix_use_runtimelinking" = yes; then
9353           shared_flag="$shared_flag "'${wl}-G'
9354         fi
9355       else
9356         # not using gcc
9357         if test "$host_cpu" = ia64; then
9358         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9359         # chokes on -Wl,-G. The following line is correct:
9360           shared_flag='-G'
9361         else
9362           if test "$aix_use_runtimelinking" = yes; then
9363             shared_flag='${wl}-G'
9364           else
9365             shared_flag='${wl}-bM:SRE'
9366           fi
9367         fi
9368       fi
9369
9370       # It seems that -bexpall does not export symbols beginning with
9371       # underscore (_), so it is better to generate a list of symbols to export.
9372       always_export_symbols=yes
9373       if test "$aix_use_runtimelinking" = yes; then
9374         # Warning - without using the other runtime loading flags (-brtl),
9375         # -berok will link without error, but may produce a broken library.
9376         allow_undefined_flag='-berok'
9377        # Determine the default libpath from the value encoded in an empty executable.
9378        cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h.  */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h.  */
9384
9385 int
9386 main ()
9387 {
9388
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (ac_try="$ac_link"
9395 case "(($ac_try" in
9396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397   *) ac_try_echo=$ac_try;;
9398 esac
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400   (eval "$ac_link") 2>conftest.er1
9401   ac_status=$?
9402   grep -v '^ *+' conftest.er1 >conftest.err
9403   rm -f conftest.er1
9404   cat conftest.err >&5
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } && {
9407          test -z "$ac_c_werror_flag" ||
9408          test ! -s conftest.err
9409        } && test -s conftest$ac_exeext &&
9410        $as_test_x conftest$ac_exeext; then
9411
9412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9413 }'`
9414 # Check for a 64-bit object if we didn't find anything.
9415 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; }
9416 }'`; fi
9417 else
9418   echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9420
9421
9422 fi
9423
9424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9425       conftest$ac_exeext conftest.$ac_ext
9426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9427
9428        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9429         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9430        else
9431         if test "$host_cpu" = ia64; then
9432           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9433           allow_undefined_flag="-z nodefs"
9434           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9435         else
9436          # Determine the default libpath from the value encoded in an empty executable.
9437          cat >conftest.$ac_ext <<_ACEOF
9438 /* confdefs.h.  */
9439 _ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h.  */
9443
9444 int
9445 main ()
9446 {
9447
9448   ;
9449   return 0;
9450 }
9451 _ACEOF
9452 rm -f conftest.$ac_objext conftest$ac_exeext
9453 if { (ac_try="$ac_link"
9454 case "(($ac_try" in
9455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456   *) ac_try_echo=$ac_try;;
9457 esac
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459   (eval "$ac_link") 2>conftest.er1
9460   ac_status=$?
9461   grep -v '^ *+' conftest.er1 >conftest.err
9462   rm -f conftest.er1
9463   cat conftest.err >&5
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); } && {
9466          test -z "$ac_c_werror_flag" ||
9467          test ! -s conftest.err
9468        } && test -s conftest$ac_exeext &&
9469        $as_test_x conftest$ac_exeext; then
9470
9471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9472 }'`
9473 # Check for a 64-bit object if we didn't find anything.
9474 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; }
9475 }'`; fi
9476 else
9477   echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9479
9480
9481 fi
9482
9483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9484       conftest$ac_exeext conftest.$ac_ext
9485 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9486
9487          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9488           # Warning - without using the other run time loading flags,
9489           # -berok will link without error, but may produce a broken library.
9490           no_undefined_flag=' ${wl}-bernotok'
9491           allow_undefined_flag=' ${wl}-berok'
9492           # Exported symbols can be pulled into shared objects from archives
9493           whole_archive_flag_spec='$convenience'
9494           archive_cmds_need_lc=yes
9495           # This is similar to how AIX traditionally builds its shared libraries.
9496           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9497         fi
9498       fi
9499       ;;
9500
9501     amigaos*)
9502       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)'
9503       hardcode_libdir_flag_spec='-L$libdir'
9504       hardcode_minus_L=yes
9505       # see comment about different semantics on the GNU ld section
9506       ld_shlibs=no
9507       ;;
9508
9509     bsdi[45]*)
9510       export_dynamic_flag_spec=-rdynamic
9511       ;;
9512
9513     cygwin* | mingw* | pw32*)
9514       # When not using gcc, we currently assume that we are using
9515       # Microsoft Visual C++.
9516       # hardcode_libdir_flag_spec is actually meaningless, as there is
9517       # no search path for DLLs.
9518       hardcode_libdir_flag_spec=' '
9519       allow_undefined_flag=unsupported
9520       # Tell ltmain to make .lib files, not .a files.
9521       libext=lib
9522       # Tell ltmain to make .dll files, not .so files.
9523       shrext_cmds=".dll"
9524       # FIXME: Setting linknames here is a bad hack.
9525       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9526       # The linker will automatically build a .lib file if we build a DLL.
9527       old_archive_From_new_cmds='true'
9528       # FIXME: Should let the user specify the lib program.
9529       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9530       fix_srcfile_path='`cygpath -w "$srcfile"`'
9531       enable_shared_with_static_runtimes=yes
9532       ;;
9533
9534     darwin* | rhapsody*)
9535       case $host_os in
9536         rhapsody* | darwin1.[012])
9537          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9538          ;;
9539        *) # Darwin 1.3 on
9540          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9541            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9542          else
9543            case ${MACOSX_DEPLOYMENT_TARGET} in
9544              10.[012])
9545                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9546                ;;
9547              10.*)
9548                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9549                ;;
9550            esac
9551          fi
9552          ;;
9553       esac
9554       archive_cmds_need_lc=no
9555       hardcode_direct=no
9556       hardcode_automatic=yes
9557       hardcode_shlibpath_var=unsupported
9558       whole_archive_flag_spec=''
9559       link_all_deplibs=yes
9560     if test "$GCC" = yes ; then
9561         output_verbose_link_cmd='echo'
9562         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9563       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9564       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9565       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}'
9566       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}'
9567     else
9568       case $cc_basename in
9569         xlc*)
9570          output_verbose_link_cmd='echo'
9571          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9572          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9573           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9574          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}'
9575           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}'
9576           ;;
9577        *)
9578          ld_shlibs=no
9579           ;;
9580       esac
9581     fi
9582       ;;
9583
9584     dgux*)
9585       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586       hardcode_libdir_flag_spec='-L$libdir'
9587       hardcode_shlibpath_var=no
9588       ;;
9589
9590     freebsd1*)
9591       ld_shlibs=no
9592       ;;
9593
9594     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9595     # support.  Future versions do this automatically, but an explicit c++rt0.o
9596     # does not break anything, and helps significantly (at the cost of a little
9597     # extra space).
9598     freebsd2.2*)
9599       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9600       hardcode_libdir_flag_spec='-R$libdir'
9601       hardcode_direct=yes
9602       hardcode_shlibpath_var=no
9603       ;;
9604
9605     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9606     freebsd2*)
9607       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9608       hardcode_direct=yes
9609       hardcode_minus_L=yes
9610       hardcode_shlibpath_var=no
9611       ;;
9612
9613     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9614     freebsd* | kfreebsd*-gnu | dragonfly*)
9615       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9616       hardcode_libdir_flag_spec='-R$libdir'
9617       hardcode_direct=yes
9618       hardcode_shlibpath_var=no
9619       ;;
9620
9621     hpux9*)
9622       if test "$GCC" = yes; then
9623         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'
9624       else
9625         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'
9626       fi
9627       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9628       hardcode_libdir_separator=:
9629       hardcode_direct=yes
9630
9631       # hardcode_minus_L: Not really in the search PATH,
9632       # but as the default location of the library.
9633       hardcode_minus_L=yes
9634       export_dynamic_flag_spec='${wl}-E'
9635       ;;
9636
9637     hpux10*)
9638       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9639         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9640       else
9641         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9642       fi
9643       if test "$with_gnu_ld" = no; then
9644         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9645         hardcode_libdir_separator=:
9646
9647         hardcode_direct=yes
9648         export_dynamic_flag_spec='${wl}-E'
9649
9650         # hardcode_minus_L: Not really in the search PATH,
9651         # but as the default location of the library.
9652         hardcode_minus_L=yes
9653       fi
9654       ;;
9655
9656     hpux11*)
9657       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9658         case $host_cpu in
9659         hppa*64*)
9660           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9661           ;;
9662         ia64*)
9663           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9664           ;;
9665         *)
9666           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9667           ;;
9668         esac
9669       else
9670         case $host_cpu in
9671         hppa*64*)
9672           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9673           ;;
9674         ia64*)
9675           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9676           ;;
9677         *)
9678           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9679           ;;
9680         esac
9681       fi
9682       if test "$with_gnu_ld" = no; then
9683         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9684         hardcode_libdir_separator=:
9685
9686         case $host_cpu in
9687         hppa*64*|ia64*)
9688           hardcode_libdir_flag_spec_ld='+b $libdir'
9689           hardcode_direct=no
9690           hardcode_shlibpath_var=no
9691           ;;
9692         *)
9693           hardcode_direct=yes
9694           export_dynamic_flag_spec='${wl}-E'
9695
9696           # hardcode_minus_L: Not really in the search PATH,
9697           # but as the default location of the library.
9698           hardcode_minus_L=yes
9699           ;;
9700         esac
9701       fi
9702       ;;
9703
9704     irix5* | irix6* | nonstopux*)
9705       if test "$GCC" = yes; then
9706         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'
9707       else
9708         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'
9709         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9710       fi
9711       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9712       hardcode_libdir_separator=:
9713       link_all_deplibs=yes
9714       ;;
9715
9716     netbsd*)
9717       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9718         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9719       else
9720         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9721       fi
9722       hardcode_libdir_flag_spec='-R$libdir'
9723       hardcode_direct=yes
9724       hardcode_shlibpath_var=no
9725       ;;
9726
9727     newsos6)
9728       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9729       hardcode_direct=yes
9730       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9731       hardcode_libdir_separator=:
9732       hardcode_shlibpath_var=no
9733       ;;
9734
9735     openbsd*)
9736       hardcode_direct=yes
9737       hardcode_shlibpath_var=no
9738       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9739         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9740         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9741         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9742         export_dynamic_flag_spec='${wl}-E'
9743       else
9744        case $host_os in
9745          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9746            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9747            hardcode_libdir_flag_spec='-R$libdir'
9748            ;;
9749          *)
9750            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9751            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9752            ;;
9753        esac
9754       fi
9755       ;;
9756
9757     os2*)
9758       hardcode_libdir_flag_spec='-L$libdir'
9759       hardcode_minus_L=yes
9760       allow_undefined_flag=unsupported
9761       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'
9762       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9763       ;;
9764
9765     osf3*)
9766       if test "$GCC" = yes; then
9767         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9768         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'
9769       else
9770         allow_undefined_flag=' -expect_unresolved \*'
9771         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'
9772       fi
9773       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9774       hardcode_libdir_separator=:
9775       ;;
9776
9777     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9778       if test "$GCC" = yes; then
9779         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9780         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'
9781         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9782       else
9783         allow_undefined_flag=' -expect_unresolved \*'
9784         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'
9785         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9786         $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'
9787
9788         # Both c and cxx compiler support -rpath directly
9789         hardcode_libdir_flag_spec='-rpath $libdir'
9790       fi
9791       hardcode_libdir_separator=:
9792       ;;
9793
9794     solaris*)
9795       no_undefined_flag=' -z text'
9796       if test "$GCC" = yes; then
9797         wlarc='${wl}'
9798         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9799         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9800           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9801       else
9802         wlarc=''
9803         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9804         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9805         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9806       fi
9807       hardcode_libdir_flag_spec='-R$libdir'
9808       hardcode_shlibpath_var=no
9809       case $host_os in
9810       solaris2.[0-5] | solaris2.[0-5].*) ;;
9811       *)
9812         # The compiler driver will combine linker options so we
9813         # cannot just pass the convience library names through
9814         # without $wl, iff we do not link with $LD.
9815         # Luckily, gcc supports the same syntax we need for Sun Studio.
9816         # Supported since Solaris 2.6 (maybe 2.5.1?)
9817         case $wlarc in
9818         '')
9819           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9820         *)
9821           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' ;;
9822         esac ;;
9823       esac
9824       link_all_deplibs=yes
9825       ;;
9826
9827     sunos4*)
9828       if test "x$host_vendor" = xsequent; then
9829         # Use $CC to link under sequent, because it throws in some extra .o
9830         # files that make .init and .fini sections work.
9831         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9832       else
9833         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9834       fi
9835       hardcode_libdir_flag_spec='-L$libdir'
9836       hardcode_direct=yes
9837       hardcode_minus_L=yes
9838       hardcode_shlibpath_var=no
9839       ;;
9840
9841     sysv4)
9842       case $host_vendor in
9843         sni)
9844           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845           hardcode_direct=yes # is this really true???
9846         ;;
9847         siemens)
9848           ## LD is ld it makes a PLAMLIB
9849           ## CC just makes a GrossModule.
9850           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9851           reload_cmds='$CC -r -o $output$reload_objs'
9852           hardcode_direct=no
9853         ;;
9854         motorola)
9855           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9857         ;;
9858       esac
9859       runpath_var='LD_RUN_PATH'
9860       hardcode_shlibpath_var=no
9861       ;;
9862
9863     sysv4.3*)
9864       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9865       hardcode_shlibpath_var=no
9866       export_dynamic_flag_spec='-Bexport'
9867       ;;
9868
9869     sysv4*MP*)
9870       if test -d /usr/nec; then
9871         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9872         hardcode_shlibpath_var=no
9873         runpath_var=LD_RUN_PATH
9874         hardcode_runpath_var=yes
9875         ld_shlibs=yes
9876       fi
9877       ;;
9878
9879     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9880       no_undefined_flag='${wl}-z,text'
9881       archive_cmds_need_lc=no
9882       hardcode_shlibpath_var=no
9883       runpath_var='LD_RUN_PATH'
9884
9885       if test "$GCC" = yes; then
9886         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9887         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9888       else
9889         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9890         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9891       fi
9892       ;;
9893
9894     sysv5* | sco3.2v5* | sco5v6*)
9895       # Note: We can NOT use -z defs as we might desire, because we do not
9896       # link with -lc, and that would cause any symbols used from libc to
9897       # always be unresolved, which means just about no library would
9898       # ever link correctly.  If we're not using GNU ld we use -z text
9899       # though, which does catch some bad symbols but isn't as heavy-handed
9900       # as -z defs.
9901       no_undefined_flag='${wl}-z,text'
9902       allow_undefined_flag='${wl}-z,nodefs'
9903       archive_cmds_need_lc=no
9904       hardcode_shlibpath_var=no
9905       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9906       hardcode_libdir_separator=':'
9907       link_all_deplibs=yes
9908       export_dynamic_flag_spec='${wl}-Bexport'
9909       runpath_var='LD_RUN_PATH'
9910
9911       if test "$GCC" = yes; then
9912         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9913         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9914       else
9915         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9916         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9917       fi
9918       ;;
9919
9920     uts4*)
9921       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9922       hardcode_libdir_flag_spec='-L$libdir'
9923       hardcode_shlibpath_var=no
9924       ;;
9925
9926     *)
9927       ld_shlibs=no
9928       ;;
9929     esac
9930   fi
9931
9932 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9933 echo "${ECHO_T}$ld_shlibs" >&6; }
9934 test "$ld_shlibs" = no && can_build_shared=no
9935
9936 #
9937 # Do we need to explicitly link libc?
9938 #
9939 case "x$archive_cmds_need_lc" in
9940 x|xyes)
9941   # Assume -lc should be added
9942   archive_cmds_need_lc=yes
9943
9944   if test "$enable_shared" = yes && test "$GCC" = yes; then
9945     case $archive_cmds in
9946     *'~'*)
9947       # FIXME: we may have to deal with multi-command sequences.
9948       ;;
9949     '$CC '*)
9950       # Test whether the compiler implicitly links with -lc since on some
9951       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9952       # to ld, don't add -lc before -lgcc.
9953       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9954 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9955       $rm conftest*
9956       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9957
9958       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9959   (eval $ac_compile) 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } 2>conftest.err; then
9963         soname=conftest
9964         lib=conftest
9965         libobjs=conftest.$ac_objext
9966         deplibs=
9967         wl=$lt_prog_compiler_wl
9968         pic_flag=$lt_prog_compiler_pic
9969         compiler_flags=-v
9970         linker_flags=-v
9971         verstring=
9972         output_objdir=.
9973         libname=conftest
9974         lt_save_allow_undefined_flag=$allow_undefined_flag
9975         allow_undefined_flag=
9976         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9977   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); }
9981         then
9982           archive_cmds_need_lc=no
9983         else
9984           archive_cmds_need_lc=yes
9985         fi
9986         allow_undefined_flag=$lt_save_allow_undefined_flag
9987       else
9988         cat conftest.err 1>&5
9989       fi
9990       $rm conftest*
9991       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9992 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9993       ;;
9994     esac
9995   fi
9996   ;;
9997 esac
9998
9999 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10000 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10001 library_names_spec=
10002 libname_spec='lib$name'
10003 soname_spec=
10004 shrext_cmds=".so"
10005 postinstall_cmds=
10006 postuninstall_cmds=
10007 finish_cmds=
10008 finish_eval=
10009 shlibpath_var=
10010 shlibpath_overrides_runpath=unknown
10011 version_type=none
10012 dynamic_linker="$host_os ld.so"
10013 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10014 if test "$GCC" = yes; then
10015   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10016   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10017     # if the path contains ";" then we assume it to be the separator
10018     # otherwise default to the standard path separator (i.e. ":") - it is
10019     # assumed that no part of a normal pathname contains ";" but that should
10020     # okay in the real world where ";" in dirpaths is itself problematic.
10021     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10022   else
10023     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10024   fi
10025 else
10026   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10027 fi
10028 need_lib_prefix=unknown
10029 hardcode_into_libs=no
10030
10031 # when you set need_version to no, make sure it does not cause -set_version
10032 # flags to be left without arguments
10033 need_version=unknown
10034
10035 case $host_os in
10036 aix3*)
10037   version_type=linux
10038   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10039   shlibpath_var=LIBPATH
10040
10041   # AIX 3 has no versioning support, so we append a major version to the name.
10042   soname_spec='${libname}${release}${shared_ext}$major'
10043   ;;
10044
10045 aix4* | aix5*)
10046   version_type=linux
10047   need_lib_prefix=no
10048   need_version=no
10049   hardcode_into_libs=yes
10050   if test "$host_cpu" = ia64; then
10051     # AIX 5 supports IA64
10052     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10053     shlibpath_var=LD_LIBRARY_PATH
10054   else
10055     # With GCC up to 2.95.x, collect2 would create an import file
10056     # for dependence libraries.  The import file would start with
10057     # the line `#! .'.  This would cause the generated library to
10058     # depend on `.', always an invalid library.  This was fixed in
10059     # development snapshots of GCC prior to 3.0.
10060     case $host_os in
10061       aix4 | aix4.[01] | aix4.[01].*)
10062       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10063            echo ' yes '
10064            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10065         :
10066       else
10067         can_build_shared=no
10068       fi
10069       ;;
10070     esac
10071     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10072     # soname into executable. Probably we can add versioning support to
10073     # collect2, so additional links can be useful in future.
10074     if test "$aix_use_runtimelinking" = yes; then
10075       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10076       # instead of lib<name>.a to let people know that these are not
10077       # typical AIX shared libraries.
10078       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079     else
10080       # We preserve .a as extension for shared libraries through AIX4.2
10081       # and later when we are not doing run time linking.
10082       library_names_spec='${libname}${release}.a $libname.a'
10083       soname_spec='${libname}${release}${shared_ext}$major'
10084     fi
10085     shlibpath_var=LIBPATH
10086   fi
10087   ;;
10088
10089 amigaos*)
10090   library_names_spec='$libname.ixlibrary $libname.a'
10091   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10092   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'
10093   ;;
10094
10095 beos*)
10096   library_names_spec='${libname}${shared_ext}'
10097   dynamic_linker="$host_os ld.so"
10098   shlibpath_var=LIBRARY_PATH
10099   ;;
10100
10101 bsdi[45]*)
10102   version_type=linux
10103   need_version=no
10104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105   soname_spec='${libname}${release}${shared_ext}$major'
10106   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10107   shlibpath_var=LD_LIBRARY_PATH
10108   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10109   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10110   # the default ld.so.conf also contains /usr/contrib/lib and
10111   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10112   # libtool to hard-code these into programs
10113   ;;
10114
10115 cygwin* | mingw* | pw32*)
10116   version_type=windows
10117   shrext_cmds=".dll"
10118   need_version=no
10119   need_lib_prefix=no
10120
10121   case $GCC,$host_os in
10122   yes,cygwin* | yes,mingw* | yes,pw32*)
10123     library_names_spec='$libname.dll.a'
10124     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10125     postinstall_cmds='base_file=`basename \${file}`~
10126       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10127       dldir=$destdir/`dirname \$dlpath`~
10128       test -d \$dldir || mkdir -p \$dldir~
10129       $install_prog $dir/$dlname \$dldir/$dlname~
10130       chmod a+x \$dldir/$dlname'
10131     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10132       dlpath=$dir/\$dldll~
10133        $rm \$dlpath'
10134     shlibpath_overrides_runpath=yes
10135
10136     case $host_os in
10137     cygwin*)
10138       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10139       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10140       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10141       ;;
10142     mingw*)
10143       # MinGW DLLs use traditional 'lib' prefix
10144       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10145       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10146       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10147         # It is most probably a Windows format PATH printed by
10148         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10149         # path with ; separators, and with drive letters. We can handle the
10150         # drive letters (cygwin fileutils understands them), so leave them,
10151         # especially as we might pass files found there to a mingw objdump,
10152         # which wouldn't understand a cygwinified path. Ahh.
10153         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10154       else
10155         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10156       fi
10157       ;;
10158     pw32*)
10159       # pw32 DLLs use 'pw' prefix rather than 'lib'
10160       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10161       ;;
10162     esac
10163     ;;
10164
10165   *)
10166     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10167     ;;
10168   esac
10169   dynamic_linker='Win32 ld.exe'
10170   # FIXME: first we should search . and the directory the executable is in
10171   shlibpath_var=PATH
10172   ;;
10173
10174 darwin* | rhapsody*)
10175   dynamic_linker="$host_os dyld"
10176   version_type=darwin
10177   need_lib_prefix=no
10178   need_version=no
10179   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10180   soname_spec='${libname}${release}${major}$shared_ext'
10181   shlibpath_overrides_runpath=yes
10182   shlibpath_var=DYLD_LIBRARY_PATH
10183   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10184   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10185   if test "$GCC" = yes; then
10186     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"`
10187   else
10188     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10189   fi
10190   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10191   ;;
10192
10193 dgux*)
10194   version_type=linux
10195   need_lib_prefix=no
10196   need_version=no
10197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10198   soname_spec='${libname}${release}${shared_ext}$major'
10199   shlibpath_var=LD_LIBRARY_PATH
10200   ;;
10201
10202 freebsd1*)
10203   dynamic_linker=no
10204   ;;
10205
10206 kfreebsd*-gnu)
10207   version_type=linux
10208   need_lib_prefix=no
10209   need_version=no
10210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10211   soname_spec='${libname}${release}${shared_ext}$major'
10212   shlibpath_var=LD_LIBRARY_PATH
10213   shlibpath_overrides_runpath=no
10214   hardcode_into_libs=yes
10215   dynamic_linker='GNU ld.so'
10216   ;;
10217
10218 freebsd* | dragonfly*)
10219   # DragonFly does not have aout.  When/if they implement a new
10220   # versioning mechanism, adjust this.
10221   if test -x /usr/bin/objformat; then
10222     objformat=`/usr/bin/objformat`
10223   else
10224     case $host_os in
10225     freebsd[123]*) objformat=aout ;;
10226     *) objformat=elf ;;
10227     esac
10228   fi
10229   version_type=freebsd-$objformat
10230   case $version_type in
10231     freebsd-elf*)
10232       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10233       need_version=no
10234       need_lib_prefix=no
10235       ;;
10236     freebsd-*)
10237       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10238       need_version=yes
10239       ;;
10240   esac
10241   shlibpath_var=LD_LIBRARY_PATH
10242   case $host_os in
10243   freebsd2*)
10244     shlibpath_overrides_runpath=yes
10245     ;;
10246   freebsd3.[01]* | freebsdelf3.[01]*)
10247     shlibpath_overrides_runpath=yes
10248     hardcode_into_libs=yes
10249     ;;
10250   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10251   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10252     shlibpath_overrides_runpath=no
10253     hardcode_into_libs=yes
10254     ;;
10255   freebsd*) # from 4.6 on
10256     shlibpath_overrides_runpath=yes
10257     hardcode_into_libs=yes
10258     ;;
10259   esac
10260   ;;
10261
10262 gnu*)
10263   version_type=linux
10264   need_lib_prefix=no
10265   need_version=no
10266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10267   soname_spec='${libname}${release}${shared_ext}$major'
10268   shlibpath_var=LD_LIBRARY_PATH
10269   hardcode_into_libs=yes
10270   ;;
10271
10272 hpux9* | hpux10* | hpux11*)
10273   # Give a soname corresponding to the major version so that dld.sl refuses to
10274   # link against other versions.
10275   version_type=sunos
10276   need_lib_prefix=no
10277   need_version=no
10278   case $host_cpu in
10279   ia64*)
10280     shrext_cmds='.so'
10281     hardcode_into_libs=yes
10282     dynamic_linker="$host_os dld.so"
10283     shlibpath_var=LD_LIBRARY_PATH
10284     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286     soname_spec='${libname}${release}${shared_ext}$major'
10287     if test "X$HPUX_IA64_MODE" = X32; then
10288       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10289     else
10290       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10291     fi
10292     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10293     ;;
10294    hppa*64*)
10295      shrext_cmds='.sl'
10296      hardcode_into_libs=yes
10297      dynamic_linker="$host_os dld.sl"
10298      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10299      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10303      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10304      ;;
10305    *)
10306     shrext_cmds='.sl'
10307     dynamic_linker="$host_os dld.sl"
10308     shlibpath_var=SHLIB_PATH
10309     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311     soname_spec='${libname}${release}${shared_ext}$major'
10312     ;;
10313   esac
10314   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10315   postinstall_cmds='chmod 555 $lib'
10316   ;;
10317
10318 interix3*)
10319   version_type=linux
10320   need_lib_prefix=no
10321   need_version=no
10322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10323   soname_spec='${libname}${release}${shared_ext}$major'
10324   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10325   shlibpath_var=LD_LIBRARY_PATH
10326   shlibpath_overrides_runpath=no
10327   hardcode_into_libs=yes
10328   ;;
10329
10330 irix5* | irix6* | nonstopux*)
10331   case $host_os in
10332     nonstopux*) version_type=nonstopux ;;
10333     *)
10334         if test "$lt_cv_prog_gnu_ld" = yes; then
10335                 version_type=linux
10336         else
10337                 version_type=irix
10338         fi ;;
10339   esac
10340   need_lib_prefix=no
10341   need_version=no
10342   soname_spec='${libname}${release}${shared_ext}$major'
10343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10344   case $host_os in
10345   irix5* | nonstopux*)
10346     libsuff= shlibsuff=
10347     ;;
10348   *)
10349     case $LD in # libtool.m4 will add one of these switches to LD
10350     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10351       libsuff= shlibsuff= libmagic=32-bit;;
10352     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10353       libsuff=32 shlibsuff=N32 libmagic=N32;;
10354     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10355       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10356     *) libsuff= shlibsuff= libmagic=never-match;;
10357     esac
10358     ;;
10359   esac
10360   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10361   shlibpath_overrides_runpath=no
10362   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10363   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10364   hardcode_into_libs=yes
10365   ;;
10366
10367 # No shared lib support for Linux oldld, aout, or coff.
10368 linux*oldld* | linux*aout* | linux*coff*)
10369   dynamic_linker=no
10370   ;;
10371
10372 # This must be Linux ELF.
10373 linux*)
10374   version_type=linux
10375   need_lib_prefix=no
10376   need_version=no
10377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378   soname_spec='${libname}${release}${shared_ext}$major'
10379   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10380   shlibpath_var=LD_LIBRARY_PATH
10381   shlibpath_overrides_runpath=no
10382   # This implies no fast_install, which is unacceptable.
10383   # Some rework will be needed to allow for fast_install
10384   # before this can be enabled.
10385   hardcode_into_libs=yes
10386
10387   # Append ld.so.conf contents to the search path
10388   if test -f /etc/ld.so.conf; then
10389     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' ' '`
10390     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10391   fi
10392
10393   # We used to test for /lib/ld.so.1 and disable shared libraries on
10394   # powerpc, because MkLinux only supported shared libraries with the
10395   # GNU dynamic linker.  Since this was broken with cross compilers,
10396   # most powerpc-linux boxes support dynamic linking these days and
10397   # people can always --disable-shared, the test was removed, and we
10398   # assume the GNU/Linux dynamic linker is in use.
10399   dynamic_linker='GNU/Linux ld.so'
10400   ;;
10401
10402 knetbsd*-gnu)
10403   version_type=linux
10404   need_lib_prefix=no
10405   need_version=no
10406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10407   soname_spec='${libname}${release}${shared_ext}$major'
10408   shlibpath_var=LD_LIBRARY_PATH
10409   shlibpath_overrides_runpath=no
10410   hardcode_into_libs=yes
10411   dynamic_linker='GNU ld.so'
10412   ;;
10413
10414 netbsd*)
10415   version_type=sunos
10416   need_lib_prefix=no
10417   need_version=no
10418   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10420     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10421     dynamic_linker='NetBSD (a.out) ld.so'
10422   else
10423     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10424     soname_spec='${libname}${release}${shared_ext}$major'
10425     dynamic_linker='NetBSD ld.elf_so'
10426   fi
10427   shlibpath_var=LD_LIBRARY_PATH
10428   shlibpath_overrides_runpath=yes
10429   hardcode_into_libs=yes
10430   ;;
10431
10432 newsos6)
10433   version_type=linux
10434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435   shlibpath_var=LD_LIBRARY_PATH
10436   shlibpath_overrides_runpath=yes
10437   ;;
10438
10439 nto-qnx*)
10440   version_type=linux
10441   need_lib_prefix=no
10442   need_version=no
10443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444   soname_spec='${libname}${release}${shared_ext}$major'
10445   shlibpath_var=LD_LIBRARY_PATH
10446   shlibpath_overrides_runpath=yes
10447   ;;
10448
10449 openbsd*)
10450   version_type=sunos
10451   sys_lib_dlsearch_path_spec="/usr/lib"
10452   need_lib_prefix=no
10453   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10454   case $host_os in
10455     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10456     *)                         need_version=no  ;;
10457   esac
10458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10459   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10460   shlibpath_var=LD_LIBRARY_PATH
10461   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10462     case $host_os in
10463       openbsd2.[89] | openbsd2.[89].*)
10464         shlibpath_overrides_runpath=no
10465         ;;
10466       *)
10467         shlibpath_overrides_runpath=yes
10468         ;;
10469       esac
10470   else
10471     shlibpath_overrides_runpath=yes
10472   fi
10473   ;;
10474
10475 os2*)
10476   libname_spec='$name'
10477   shrext_cmds=".dll"
10478   need_lib_prefix=no
10479   library_names_spec='$libname${shared_ext} $libname.a'
10480   dynamic_linker='OS/2 ld.exe'
10481   shlibpath_var=LIBPATH
10482   ;;
10483
10484 osf3* | osf4* | osf5*)
10485   version_type=osf
10486   need_lib_prefix=no
10487   need_version=no
10488   soname_spec='${libname}${release}${shared_ext}$major'
10489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490   shlibpath_var=LD_LIBRARY_PATH
10491   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10492   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10493   ;;
10494
10495 solaris*)
10496   version_type=linux
10497   need_lib_prefix=no
10498   need_version=no
10499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500   soname_spec='${libname}${release}${shared_ext}$major'
10501   shlibpath_var=LD_LIBRARY_PATH
10502   shlibpath_overrides_runpath=yes
10503   hardcode_into_libs=yes
10504   # ldd complains unless libraries are executable
10505   postinstall_cmds='chmod +x $lib'
10506   ;;
10507
10508 sunos4*)
10509   version_type=sunos
10510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10511   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10512   shlibpath_var=LD_LIBRARY_PATH
10513   shlibpath_overrides_runpath=yes
10514   if test "$with_gnu_ld" = yes; then
10515     need_lib_prefix=no
10516   fi
10517   need_version=yes
10518   ;;
10519
10520 sysv4 | sysv4.3*)
10521   version_type=linux
10522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523   soname_spec='${libname}${release}${shared_ext}$major'
10524   shlibpath_var=LD_LIBRARY_PATH
10525   case $host_vendor in
10526     sni)
10527       shlibpath_overrides_runpath=no
10528       need_lib_prefix=no
10529       export_dynamic_flag_spec='${wl}-Blargedynsym'
10530       runpath_var=LD_RUN_PATH
10531       ;;
10532     siemens)
10533       need_lib_prefix=no
10534       ;;
10535     motorola)
10536       need_lib_prefix=no
10537       need_version=no
10538       shlibpath_overrides_runpath=no
10539       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10540       ;;
10541   esac
10542   ;;
10543
10544 sysv4*MP*)
10545   if test -d /usr/nec ;then
10546     version_type=linux
10547     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10548     soname_spec='$libname${shared_ext}.$major'
10549     shlibpath_var=LD_LIBRARY_PATH
10550   fi
10551   ;;
10552
10553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10554   version_type=freebsd-elf
10555   need_lib_prefix=no
10556   need_version=no
10557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10558   soname_spec='${libname}${release}${shared_ext}$major'
10559   shlibpath_var=LD_LIBRARY_PATH
10560   hardcode_into_libs=yes
10561   if test "$with_gnu_ld" = yes; then
10562     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10563     shlibpath_overrides_runpath=no
10564   else
10565     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10566     shlibpath_overrides_runpath=yes
10567     case $host_os in
10568       sco3.2v5*)
10569         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10570         ;;
10571     esac
10572   fi
10573   sys_lib_dlsearch_path_spec='/usr/lib'
10574   ;;
10575
10576 uts4*)
10577   version_type=linux
10578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579   soname_spec='${libname}${release}${shared_ext}$major'
10580   shlibpath_var=LD_LIBRARY_PATH
10581   ;;
10582
10583 *)
10584   dynamic_linker=no
10585   ;;
10586 esac
10587 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10588 echo "${ECHO_T}$dynamic_linker" >&6; }
10589 test "$dynamic_linker" = no && can_build_shared=no
10590
10591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10592 if test "$GCC" = yes; then
10593   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10594 fi
10595
10596 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10597 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10598 hardcode_action=
10599 if test -n "$hardcode_libdir_flag_spec" || \
10600    test -n "$runpath_var" || \
10601    test "X$hardcode_automatic" = "Xyes" ; then
10602
10603   # We can hardcode non-existant directories.
10604   if test "$hardcode_direct" != no &&
10605      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10606      # have to relink, otherwise we might link with an installed library
10607      # when we should be linking with a yet-to-be-installed one
10608      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10609      test "$hardcode_minus_L" != no; then
10610     # Linking always hardcodes the temporary library directory.
10611     hardcode_action=relink
10612   else
10613     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10614     hardcode_action=immediate
10615   fi
10616 else
10617   # We cannot hardcode anything, or else we can only hardcode existing
10618   # directories.
10619   hardcode_action=unsupported
10620 fi
10621 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10622 echo "${ECHO_T}$hardcode_action" >&6; }
10623
10624 if test "$hardcode_action" = relink; then
10625   # Fast installation is not supported
10626   enable_fast_install=no
10627 elif test "$shlibpath_overrides_runpath" = yes ||
10628      test "$enable_shared" = no; then
10629   # Fast installation is not necessary
10630   enable_fast_install=needless
10631 fi
10632
10633 striplib=
10634 old_striplib=
10635 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10636 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10637 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10638   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10639   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10640   { echo "$as_me:$LINENO: result: yes" >&5
10641 echo "${ECHO_T}yes" >&6; }
10642 else
10643 # FIXME - insert some real tests, host_os isn't really good enough
10644   case $host_os in
10645    darwin*)
10646        if test -n "$STRIP" ; then
10647          striplib="$STRIP -x"
10648          { echo "$as_me:$LINENO: result: yes" >&5
10649 echo "${ECHO_T}yes" >&6; }
10650        else
10651   { echo "$as_me:$LINENO: result: no" >&5
10652 echo "${ECHO_T}no" >&6; }
10653 fi
10654        ;;
10655    *)
10656   { echo "$as_me:$LINENO: result: no" >&5
10657 echo "${ECHO_T}no" >&6; }
10658     ;;
10659   esac
10660 fi
10661
10662 if test "x$enable_dlopen" != xyes; then
10663   enable_dlopen=unknown
10664   enable_dlopen_self=unknown
10665   enable_dlopen_self_static=unknown
10666 else
10667   lt_cv_dlopen=no
10668   lt_cv_dlopen_libs=
10669
10670   case $host_os in
10671   beos*)
10672     lt_cv_dlopen="load_add_on"
10673     lt_cv_dlopen_libs=
10674     lt_cv_dlopen_self=yes
10675     ;;
10676
10677   mingw* | pw32*)
10678     lt_cv_dlopen="LoadLibrary"
10679     lt_cv_dlopen_libs=
10680    ;;
10681
10682   cygwin*)
10683     lt_cv_dlopen="dlopen"
10684     lt_cv_dlopen_libs=
10685    ;;
10686
10687   darwin*)
10688   # if libdl is installed we need to link against it
10689     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10690 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10691 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10692   echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694   ac_check_lib_save_LIBS=$LIBS
10695 LIBS="-ldl  $LIBS"
10696 cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h.  */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h.  */
10702
10703 /* Override any GCC internal prototype to avoid an error.
10704    Use char because int might match the return type of a GCC
10705    builtin and then its argument prototype would still apply.  */
10706 #ifdef __cplusplus
10707 extern "C"
10708 #endif
10709 char dlopen ();
10710 int
10711 main ()
10712 {
10713 return dlopen ();
10714   ;
10715   return 0;
10716 }
10717 _ACEOF
10718 rm -f conftest.$ac_objext conftest$ac_exeext
10719 if { (ac_try="$ac_link"
10720 case "(($ac_try" in
10721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722   *) ac_try_echo=$ac_try;;
10723 esac
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725   (eval "$ac_link") 2>conftest.er1
10726   ac_status=$?
10727   grep -v '^ *+' conftest.er1 >conftest.err
10728   rm -f conftest.er1
10729   cat conftest.err >&5
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); } && {
10732          test -z "$ac_c_werror_flag" ||
10733          test ! -s conftest.err
10734        } && test -s conftest$ac_exeext &&
10735        $as_test_x conftest$ac_exeext; then
10736   ac_cv_lib_dl_dlopen=yes
10737 else
10738   echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10740
10741         ac_cv_lib_dl_dlopen=no
10742 fi
10743
10744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10745       conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10747 fi
10748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10749 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10750 if test $ac_cv_lib_dl_dlopen = yes; then
10751   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10752 else
10753
10754     lt_cv_dlopen="dyld"
10755     lt_cv_dlopen_libs=
10756     lt_cv_dlopen_self=yes
10757
10758 fi
10759
10760    ;;
10761
10762   *)
10763     { echo "$as_me:$LINENO: checking for shl_load" >&5
10764 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10765 if test "${ac_cv_func_shl_load+set}" = set; then
10766   echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768   cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h.  */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h.  */
10774 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10776 #define shl_load innocuous_shl_load
10777
10778 /* System header to define __stub macros and hopefully few prototypes,
10779     which can conflict with char shl_load (); below.
10780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10781     <limits.h> exists even on freestanding compilers.  */
10782
10783 #ifdef __STDC__
10784 # include <limits.h>
10785 #else
10786 # include <assert.h>
10787 #endif
10788
10789 #undef shl_load
10790
10791 /* Override any GCC internal prototype to avoid an error.
10792    Use char because int might match the return type of a GCC
10793    builtin and then its argument prototype would still apply.  */
10794 #ifdef __cplusplus
10795 extern "C"
10796 #endif
10797 char shl_load ();
10798 /* The GNU C library defines this for functions which it implements
10799     to always fail with ENOSYS.  Some functions are actually named
10800     something starting with __ and the normal name is an alias.  */
10801 #if defined __stub_shl_load || defined __stub___shl_load
10802 choke me
10803 #endif
10804
10805 int
10806 main ()
10807 {
10808 return shl_load ();
10809   ;
10810   return 0;
10811 }
10812 _ACEOF
10813 rm -f conftest.$ac_objext conftest$ac_exeext
10814 if { (ac_try="$ac_link"
10815 case "(($ac_try" in
10816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817   *) ac_try_echo=$ac_try;;
10818 esac
10819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820   (eval "$ac_link") 2>conftest.er1
10821   ac_status=$?
10822   grep -v '^ *+' conftest.er1 >conftest.err
10823   rm -f conftest.er1
10824   cat conftest.err >&5
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); } && {
10827          test -z "$ac_c_werror_flag" ||
10828          test ! -s conftest.err
10829        } && test -s conftest$ac_exeext &&
10830        $as_test_x conftest$ac_exeext; then
10831   ac_cv_func_shl_load=yes
10832 else
10833   echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10835
10836         ac_cv_func_shl_load=no
10837 fi
10838
10839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10840       conftest$ac_exeext conftest.$ac_ext
10841 fi
10842 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10843 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10844 if test $ac_cv_func_shl_load = yes; then
10845   lt_cv_dlopen="shl_load"
10846 else
10847   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10848 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10849 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10850   echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852   ac_check_lib_save_LIBS=$LIBS
10853 LIBS="-ldld  $LIBS"
10854 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h.  */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h.  */
10860
10861 /* Override any GCC internal prototype to avoid an error.
10862    Use char because int might match the return type of a GCC
10863    builtin and then its argument prototype would still apply.  */
10864 #ifdef __cplusplus
10865 extern "C"
10866 #endif
10867 char shl_load ();
10868 int
10869 main ()
10870 {
10871 return shl_load ();
10872   ;
10873   return 0;
10874 }
10875 _ACEOF
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
10878 case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883   (eval "$ac_link") 2>conftest.er1
10884   ac_status=$?
10885   grep -v '^ *+' conftest.er1 >conftest.err
10886   rm -f conftest.er1
10887   cat conftest.err >&5
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); } && {
10890          test -z "$ac_c_werror_flag" ||
10891          test ! -s conftest.err
10892        } && test -s conftest$ac_exeext &&
10893        $as_test_x conftest$ac_exeext; then
10894   ac_cv_lib_dld_shl_load=yes
10895 else
10896   echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10898
10899         ac_cv_lib_dld_shl_load=no
10900 fi
10901
10902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10903       conftest$ac_exeext conftest.$ac_ext
10904 LIBS=$ac_check_lib_save_LIBS
10905 fi
10906 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10907 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10908 if test $ac_cv_lib_dld_shl_load = yes; then
10909   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10910 else
10911   { echo "$as_me:$LINENO: checking for dlopen" >&5
10912 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10913 if test "${ac_cv_func_dlopen+set}" = set; then
10914   echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916   cat >conftest.$ac_ext <<_ACEOF
10917 /* confdefs.h.  */
10918 _ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h.  */
10922 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10924 #define dlopen innocuous_dlopen
10925
10926 /* System header to define __stub macros and hopefully few prototypes,
10927     which can conflict with char dlopen (); below.
10928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10929     <limits.h> exists even on freestanding compilers.  */
10930
10931 #ifdef __STDC__
10932 # include <limits.h>
10933 #else
10934 # include <assert.h>
10935 #endif
10936
10937 #undef dlopen
10938
10939 /* Override any GCC internal prototype to avoid an error.
10940    Use char because int might match the return type of a GCC
10941    builtin and then its argument prototype would still apply.  */
10942 #ifdef __cplusplus
10943 extern "C"
10944 #endif
10945 char dlopen ();
10946 /* The GNU C library defines this for functions which it implements
10947     to always fail with ENOSYS.  Some functions are actually named
10948     something starting with __ and the normal name is an alias.  */
10949 #if defined __stub_dlopen || defined __stub___dlopen
10950 choke me
10951 #endif
10952
10953 int
10954 main ()
10955 {
10956 return dlopen ();
10957   ;
10958   return 0;
10959 }
10960 _ACEOF
10961 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (ac_try="$ac_link"
10963 case "(($ac_try" in
10964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965   *) ac_try_echo=$ac_try;;
10966 esac
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968   (eval "$ac_link") 2>conftest.er1
10969   ac_status=$?
10970   grep -v '^ *+' conftest.er1 >conftest.err
10971   rm -f conftest.er1
10972   cat conftest.err >&5
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); } && {
10975          test -z "$ac_c_werror_flag" ||
10976          test ! -s conftest.err
10977        } && test -s conftest$ac_exeext &&
10978        $as_test_x conftest$ac_exeext; then
10979   ac_cv_func_dlopen=yes
10980 else
10981   echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10983
10984         ac_cv_func_dlopen=no
10985 fi
10986
10987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10988       conftest$ac_exeext conftest.$ac_ext
10989 fi
10990 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10991 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10992 if test $ac_cv_func_dlopen = yes; then
10993   lt_cv_dlopen="dlopen"
10994 else
10995   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10996 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10998   echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000   ac_check_lib_save_LIBS=$LIBS
11001 LIBS="-ldl  $LIBS"
11002 cat >conftest.$ac_ext <<_ACEOF
11003 /* confdefs.h.  */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h.  */
11008
11009 /* Override any GCC internal prototype to avoid an error.
11010    Use char because int might match the return type of a GCC
11011    builtin and then its argument prototype would still apply.  */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 char dlopen ();
11016 int
11017 main ()
11018 {
11019 return dlopen ();
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (ac_try="$ac_link"
11026 case "(($ac_try" in
11027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028   *) ac_try_echo=$ac_try;;
11029 esac
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031   (eval "$ac_link") 2>conftest.er1
11032   ac_status=$?
11033   grep -v '^ *+' conftest.er1 >conftest.err
11034   rm -f conftest.er1
11035   cat conftest.err >&5
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); } && {
11038          test -z "$ac_c_werror_flag" ||
11039          test ! -s conftest.err
11040        } && test -s conftest$ac_exeext &&
11041        $as_test_x conftest$ac_exeext; then
11042   ac_cv_lib_dl_dlopen=yes
11043 else
11044   echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11046
11047         ac_cv_lib_dl_dlopen=no
11048 fi
11049
11050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11051       conftest$ac_exeext conftest.$ac_ext
11052 LIBS=$ac_check_lib_save_LIBS
11053 fi
11054 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11055 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11056 if test $ac_cv_lib_dl_dlopen = yes; then
11057   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11058 else
11059   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11060 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11061 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11062   echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064   ac_check_lib_save_LIBS=$LIBS
11065 LIBS="-lsvld  $LIBS"
11066 cat >conftest.$ac_ext <<_ACEOF
11067 /* confdefs.h.  */
11068 _ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h.  */
11072
11073 /* Override any GCC internal prototype to avoid an error.
11074    Use char because int might match the return type of a GCC
11075    builtin and then its argument prototype would still apply.  */
11076 #ifdef __cplusplus
11077 extern "C"
11078 #endif
11079 char dlopen ();
11080 int
11081 main ()
11082 {
11083 return dlopen ();
11084   ;
11085   return 0;
11086 }
11087 _ACEOF
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (ac_try="$ac_link"
11090 case "(($ac_try" in
11091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092   *) ac_try_echo=$ac_try;;
11093 esac
11094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095   (eval "$ac_link") 2>conftest.er1
11096   ac_status=$?
11097   grep -v '^ *+' conftest.er1 >conftest.err
11098   rm -f conftest.er1
11099   cat conftest.err >&5
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); } && {
11102          test -z "$ac_c_werror_flag" ||
11103          test ! -s conftest.err
11104        } && test -s conftest$ac_exeext &&
11105        $as_test_x conftest$ac_exeext; then
11106   ac_cv_lib_svld_dlopen=yes
11107 else
11108   echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11110
11111         ac_cv_lib_svld_dlopen=no
11112 fi
11113
11114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11115       conftest$ac_exeext conftest.$ac_ext
11116 LIBS=$ac_check_lib_save_LIBS
11117 fi
11118 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11119 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11120 if test $ac_cv_lib_svld_dlopen = yes; then
11121   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11122 else
11123   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11124 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11125 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11126   echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128   ac_check_lib_save_LIBS=$LIBS
11129 LIBS="-ldld  $LIBS"
11130 cat >conftest.$ac_ext <<_ACEOF
11131 /* confdefs.h.  */
11132 _ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h.  */
11136
11137 /* Override any GCC internal prototype to avoid an error.
11138    Use char because int might match the return type of a GCC
11139    builtin and then its argument prototype would still apply.  */
11140 #ifdef __cplusplus
11141 extern "C"
11142 #endif
11143 char dld_link ();
11144 int
11145 main ()
11146 {
11147 return dld_link ();
11148   ;
11149   return 0;
11150 }
11151 _ACEOF
11152 rm -f conftest.$ac_objext conftest$ac_exeext
11153 if { (ac_try="$ac_link"
11154 case "(($ac_try" in
11155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156   *) ac_try_echo=$ac_try;;
11157 esac
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159   (eval "$ac_link") 2>conftest.er1
11160   ac_status=$?
11161   grep -v '^ *+' conftest.er1 >conftest.err
11162   rm -f conftest.er1
11163   cat conftest.err >&5
11164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); } && {
11166          test -z "$ac_c_werror_flag" ||
11167          test ! -s conftest.err
11168        } && test -s conftest$ac_exeext &&
11169        $as_test_x conftest$ac_exeext; then
11170   ac_cv_lib_dld_dld_link=yes
11171 else
11172   echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175         ac_cv_lib_dld_dld_link=no
11176 fi
11177
11178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11179       conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11181 fi
11182 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11183 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11184 if test $ac_cv_lib_dld_dld_link = yes; then
11185   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11186 fi
11187
11188
11189 fi
11190
11191
11192 fi
11193
11194
11195 fi
11196
11197
11198 fi
11199
11200
11201 fi
11202
11203     ;;
11204   esac
11205
11206   if test "x$lt_cv_dlopen" != xno; then
11207     enable_dlopen=yes
11208   else
11209     enable_dlopen=no
11210   fi
11211
11212   case $lt_cv_dlopen in
11213   dlopen)
11214     save_CPPFLAGS="$CPPFLAGS"
11215     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11216
11217     save_LDFLAGS="$LDFLAGS"
11218     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11219
11220     save_LIBS="$LIBS"
11221     LIBS="$lt_cv_dlopen_libs $LIBS"
11222
11223     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11224 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11225 if test "${lt_cv_dlopen_self+set}" = set; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228           if test "$cross_compiling" = yes; then :
11229   lt_cv_dlopen_self=cross
11230 else
11231   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11232   lt_status=$lt_dlunknown
11233   cat > conftest.$ac_ext <<EOF
11234 #line 11234 "configure"
11235 #include "confdefs.h"
11236
11237 #if HAVE_DLFCN_H
11238 #include <dlfcn.h>
11239 #endif
11240
11241 #include <stdio.h>
11242
11243 #ifdef RTLD_GLOBAL
11244 #  define LT_DLGLOBAL           RTLD_GLOBAL
11245 #else
11246 #  ifdef DL_GLOBAL
11247 #    define LT_DLGLOBAL         DL_GLOBAL
11248 #  else
11249 #    define LT_DLGLOBAL         0
11250 #  endif
11251 #endif
11252
11253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11254    find out it does not work in some platform. */
11255 #ifndef LT_DLLAZY_OR_NOW
11256 #  ifdef RTLD_LAZY
11257 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11258 #  else
11259 #    ifdef DL_LAZY
11260 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11261 #    else
11262 #      ifdef RTLD_NOW
11263 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11264 #      else
11265 #        ifdef DL_NOW
11266 #          define LT_DLLAZY_OR_NOW      DL_NOW
11267 #        else
11268 #          define LT_DLLAZY_OR_NOW      0
11269 #        endif
11270 #      endif
11271 #    endif
11272 #  endif
11273 #endif
11274
11275 #ifdef __cplusplus
11276 extern "C" void exit (int);
11277 #endif
11278
11279 void fnord() { int i=42;}
11280 int main ()
11281 {
11282   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11283   int status = $lt_dlunknown;
11284
11285   if (self)
11286     {
11287       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11288       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11289       /* dlclose (self); */
11290     }
11291   else
11292     puts (dlerror ());
11293
11294     exit (status);
11295 }
11296 EOF
11297   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11298   (eval $ac_link) 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11302     (./conftest; exit; ) >&5 2>/dev/null
11303     lt_status=$?
11304     case x$lt_status in
11305       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11306       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11307       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11308     esac
11309   else :
11310     # compilation failed
11311     lt_cv_dlopen_self=no
11312   fi
11313 fi
11314 rm -fr conftest*
11315
11316
11317 fi
11318 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11319 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11320
11321     if test "x$lt_cv_dlopen_self" = xyes; then
11322       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11323       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11324 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11325 if test "${lt_cv_dlopen_self_static+set}" = set; then
11326   echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328           if test "$cross_compiling" = yes; then :
11329   lt_cv_dlopen_self_static=cross
11330 else
11331   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11332   lt_status=$lt_dlunknown
11333   cat > conftest.$ac_ext <<EOF
11334 #line 11334 "configure"
11335 #include "confdefs.h"
11336
11337 #if HAVE_DLFCN_H
11338 #include <dlfcn.h>
11339 #endif
11340
11341 #include <stdio.h>
11342
11343 #ifdef RTLD_GLOBAL
11344 #  define LT_DLGLOBAL           RTLD_GLOBAL
11345 #else
11346 #  ifdef DL_GLOBAL
11347 #    define LT_DLGLOBAL         DL_GLOBAL
11348 #  else
11349 #    define LT_DLGLOBAL         0
11350 #  endif
11351 #endif
11352
11353 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11354    find out it does not work in some platform. */
11355 #ifndef LT_DLLAZY_OR_NOW
11356 #  ifdef RTLD_LAZY
11357 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11358 #  else
11359 #    ifdef DL_LAZY
11360 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11361 #    else
11362 #      ifdef RTLD_NOW
11363 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11364 #      else
11365 #        ifdef DL_NOW
11366 #          define LT_DLLAZY_OR_NOW      DL_NOW
11367 #        else
11368 #          define LT_DLLAZY_OR_NOW      0
11369 #        endif
11370 #      endif
11371 #    endif
11372 #  endif
11373 #endif
11374
11375 #ifdef __cplusplus
11376 extern "C" void exit (int);
11377 #endif
11378
11379 void fnord() { int i=42;}
11380 int main ()
11381 {
11382   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11383   int status = $lt_dlunknown;
11384
11385   if (self)
11386     {
11387       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11388       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11389       /* dlclose (self); */
11390     }
11391   else
11392     puts (dlerror ());
11393
11394     exit (status);
11395 }
11396 EOF
11397   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11398   (eval $ac_link) 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11402     (./conftest; exit; ) >&5 2>/dev/null
11403     lt_status=$?
11404     case x$lt_status in
11405       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11406       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11407       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11408     esac
11409   else :
11410     # compilation failed
11411     lt_cv_dlopen_self_static=no
11412   fi
11413 fi
11414 rm -fr conftest*
11415
11416
11417 fi
11418 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11419 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11420     fi
11421
11422     CPPFLAGS="$save_CPPFLAGS"
11423     LDFLAGS="$save_LDFLAGS"
11424     LIBS="$save_LIBS"
11425     ;;
11426   esac
11427
11428   case $lt_cv_dlopen_self in
11429   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11430   *) enable_dlopen_self=unknown ;;
11431   esac
11432
11433   case $lt_cv_dlopen_self_static in
11434   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11435   *) enable_dlopen_self_static=unknown ;;
11436   esac
11437 fi
11438
11439
11440 # Report which library types will actually be built
11441 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11442 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11443 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11444 echo "${ECHO_T}$can_build_shared" >&6; }
11445
11446 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11447 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11448 test "$can_build_shared" = "no" && enable_shared=no
11449
11450 # On AIX, shared libraries and static libraries use the same namespace, and
11451 # are all built from PIC.
11452 case $host_os in
11453 aix3*)
11454   test "$enable_shared" = yes && enable_static=no
11455   if test -n "$RANLIB"; then
11456     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11457     postinstall_cmds='$RANLIB $lib'
11458   fi
11459   ;;
11460
11461 aix4* | aix5*)
11462   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11463     test "$enable_shared" = yes && enable_static=no
11464   fi
11465     ;;
11466 esac
11467 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11468 echo "${ECHO_T}$enable_shared" >&6; }
11469
11470 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11471 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11472 # Make sure either enable_shared or enable_static is yes.
11473 test "$enable_shared" = yes || enable_static=yes
11474 { echo "$as_me:$LINENO: result: $enable_static" >&5
11475 echo "${ECHO_T}$enable_static" >&6; }
11476
11477 # The else clause should only fire when bootstrapping the
11478 # libtool distribution, otherwise you forgot to ship ltmain.sh
11479 # with your package, and you will get complaints that there are
11480 # no rules to generate ltmain.sh.
11481 if test -f "$ltmain"; then
11482   # See if we are running on zsh, and set the options which allow our commands through
11483   # without removal of \ escapes.
11484   if test -n "${ZSH_VERSION+set}" ; then
11485     setopt NO_GLOB_SUBST
11486   fi
11487   # Now quote all the things that may contain metacharacters while being
11488   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11489   # variables and quote the copies for generation of the libtool script.
11490   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11491     SED SHELL STRIP \
11492     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11493     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11494     deplibs_check_method reload_flag reload_cmds need_locks \
11495     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11496     lt_cv_sys_global_symbol_to_c_name_address \
11497     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11498     old_postinstall_cmds old_postuninstall_cmds \
11499     compiler \
11500     CC \
11501     LD \
11502     lt_prog_compiler_wl \
11503     lt_prog_compiler_pic \
11504     lt_prog_compiler_static \
11505     lt_prog_compiler_no_builtin_flag \
11506     export_dynamic_flag_spec \
11507     thread_safe_flag_spec \
11508     whole_archive_flag_spec \
11509     enable_shared_with_static_runtimes \
11510     old_archive_cmds \
11511     old_archive_from_new_cmds \
11512     predep_objects \
11513     postdep_objects \
11514     predeps \
11515     postdeps \
11516     compiler_lib_search_path \
11517     archive_cmds \
11518     archive_expsym_cmds \
11519     postinstall_cmds \
11520     postuninstall_cmds \
11521     old_archive_from_expsyms_cmds \
11522     allow_undefined_flag \
11523     no_undefined_flag \
11524     export_symbols_cmds \
11525     hardcode_libdir_flag_spec \
11526     hardcode_libdir_flag_spec_ld \
11527     hardcode_libdir_separator \
11528     hardcode_automatic \
11529     module_cmds \
11530     module_expsym_cmds \
11531     lt_cv_prog_compiler_c_o \
11532     exclude_expsyms \
11533     include_expsyms; do
11534
11535     case $var in
11536     old_archive_cmds | \
11537     old_archive_from_new_cmds | \
11538     archive_cmds | \
11539     archive_expsym_cmds | \
11540     module_cmds | \
11541     module_expsym_cmds | \
11542     old_archive_from_expsyms_cmds | \
11543     export_symbols_cmds | \
11544     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11545     postinstall_cmds | postuninstall_cmds | \
11546     old_postinstall_cmds | old_postuninstall_cmds | \
11547     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11548       # Double-quote double-evaled strings.
11549       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11550       ;;
11551     *)
11552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11553       ;;
11554     esac
11555   done
11556
11557   case $lt_echo in
11558   *'\$0 --fallback-echo"')
11559     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11560     ;;
11561   esac
11562
11563 cfgfile="${ofile}T"
11564   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11565   $rm -f "$cfgfile"
11566   { echo "$as_me:$LINENO: creating $ofile" >&5
11567 echo "$as_me: creating $ofile" >&6;}
11568
11569   cat <<__EOF__ >> "$cfgfile"
11570 #! $SHELL
11571
11572 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11573 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11574 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11575 #
11576 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11577 # Free Software Foundation, Inc.
11578 #
11579 # This file is part of GNU Libtool:
11580 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11581 #
11582 # This program is free software; you can redistribute it and/or modify
11583 # it under the terms of the GNU General Public License as published by
11584 # the Free Software Foundation; either version 2 of the License, or
11585 # (at your option) any later version.
11586 #
11587 # This program is distributed in the hope that it will be useful, but
11588 # WITHOUT ANY WARRANTY; without even the implied warranty of
11589 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11590 # General Public License for more details.
11591 #
11592 # You should have received a copy of the GNU General Public License
11593 # along with this program; if not, write to the Free Software
11594 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11595 #
11596 # As a special exception to the GNU General Public License, if you
11597 # distribute this file as part of a program that contains a
11598 # configuration script generated by Autoconf, you may include it under
11599 # the same distribution terms that you use for the rest of that program.
11600
11601 # A sed program that does not truncate output.
11602 SED=$lt_SED
11603
11604 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11605 Xsed="$SED -e 1s/^X//"
11606
11607 # The HP-UX ksh and POSIX shell print the target directory to stdout
11608 # if CDPATH is set.
11609 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11610
11611 # The names of the tagged configurations supported by this script.
11612 available_tags=
11613
11614 # ### BEGIN LIBTOOL CONFIG
11615
11616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11617
11618 # Shell to use when invoking shell scripts.
11619 SHELL=$lt_SHELL
11620
11621 # Whether or not to build shared libraries.
11622 build_libtool_libs=$enable_shared
11623
11624 # Whether or not to build static libraries.
11625 build_old_libs=$enable_static
11626
11627 # Whether or not to add -lc for building shared libraries.
11628 build_libtool_need_lc=$archive_cmds_need_lc
11629
11630 # Whether or not to disallow shared libs when runtime libs are static
11631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11632
11633 # Whether or not to optimize for fast installation.
11634 fast_install=$enable_fast_install
11635
11636 # The host system.
11637 host_alias=$host_alias
11638 host=$host
11639 host_os=$host_os
11640
11641 # The build system.
11642 build_alias=$build_alias
11643 build=$build
11644 build_os=$build_os
11645
11646 # An echo program that does not interpret backslashes.
11647 echo=$lt_echo
11648
11649 # The archiver.
11650 AR=$lt_AR
11651 AR_FLAGS=$lt_AR_FLAGS
11652
11653 # A C compiler.
11654 LTCC=$lt_LTCC
11655
11656 # LTCC compiler flags.
11657 LTCFLAGS=$lt_LTCFLAGS
11658
11659 # A language-specific compiler.
11660 CC=$lt_compiler
11661
11662 # Is the compiler the GNU C compiler?
11663 with_gcc=$GCC
11664
11665 # An ERE matcher.
11666 EGREP=$lt_EGREP
11667
11668 # The linker used to build libraries.
11669 LD=$lt_LD
11670
11671 # Whether we need hard or soft links.
11672 LN_S=$lt_LN_S
11673
11674 # A BSD-compatible nm program.
11675 NM=$lt_NM
11676
11677 # A symbol stripping program
11678 STRIP=$lt_STRIP
11679
11680 # Used to examine libraries when file_magic_cmd begins "file"
11681 MAGIC_CMD=$MAGIC_CMD
11682
11683 # Used on cygwin: DLL creation program.
11684 DLLTOOL="$DLLTOOL"
11685
11686 # Used on cygwin: object dumper.
11687 OBJDUMP="$OBJDUMP"
11688
11689 # Used on cygwin: assembler.
11690 AS="$AS"
11691
11692 # The name of the directory that contains temporary libtool files.
11693 objdir=$objdir
11694
11695 # How to create reloadable object files.
11696 reload_flag=$lt_reload_flag
11697 reload_cmds=$lt_reload_cmds
11698
11699 # How to pass a linker flag through the compiler.
11700 wl=$lt_lt_prog_compiler_wl
11701
11702 # Object file suffix (normally "o").
11703 objext="$ac_objext"
11704
11705 # Old archive suffix (normally "a").
11706 libext="$libext"
11707
11708 # Shared library suffix (normally ".so").
11709 shrext_cmds='$shrext_cmds'
11710
11711 # Executable file suffix (normally "").
11712 exeext="$exeext"
11713
11714 # Additional compiler flags for building library objects.
11715 pic_flag=$lt_lt_prog_compiler_pic
11716 pic_mode=$pic_mode
11717
11718 # What is the maximum length of a command?
11719 max_cmd_len=$lt_cv_sys_max_cmd_len
11720
11721 # Does compiler simultaneously support -c and -o options?
11722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11723
11724 # Must we lock files when doing compilation?
11725 need_locks=$lt_need_locks
11726
11727 # Do we need the lib prefix for modules?
11728 need_lib_prefix=$need_lib_prefix
11729
11730 # Do we need a version for libraries?
11731 need_version=$need_version
11732
11733 # Whether dlopen is supported.
11734 dlopen_support=$enable_dlopen
11735
11736 # Whether dlopen of programs is supported.
11737 dlopen_self=$enable_dlopen_self
11738
11739 # Whether dlopen of statically linked programs is supported.
11740 dlopen_self_static=$enable_dlopen_self_static
11741
11742 # Compiler flag to prevent dynamic linking.
11743 link_static_flag=$lt_lt_prog_compiler_static
11744
11745 # Compiler flag to turn off builtin functions.
11746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11747
11748 # Compiler flag to allow reflexive dlopens.
11749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11750
11751 # Compiler flag to generate shared objects directly from archives.
11752 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11753
11754 # Compiler flag to generate thread-safe objects.
11755 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11756
11757 # Library versioning type.
11758 version_type=$version_type
11759
11760 # Format of library name prefix.
11761 libname_spec=$lt_libname_spec
11762
11763 # List of archive names.  First name is the real one, the rest are links.
11764 # The last name is the one that the linker finds with -lNAME.
11765 library_names_spec=$lt_library_names_spec
11766
11767 # The coded name of the library, if different from the real name.
11768 soname_spec=$lt_soname_spec
11769
11770 # Commands used to build and install an old-style archive.
11771 RANLIB=$lt_RANLIB
11772 old_archive_cmds=$lt_old_archive_cmds
11773 old_postinstall_cmds=$lt_old_postinstall_cmds
11774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11775
11776 # Create an old-style archive from a shared archive.
11777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11778
11779 # Create a temporary old-style archive to link instead of a shared archive.
11780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11781
11782 # Commands used to build and install a shared archive.
11783 archive_cmds=$lt_archive_cmds
11784 archive_expsym_cmds=$lt_archive_expsym_cmds
11785 postinstall_cmds=$lt_postinstall_cmds
11786 postuninstall_cmds=$lt_postuninstall_cmds
11787
11788 # Commands used to build a loadable module (assumed same as above if empty)
11789 module_cmds=$lt_module_cmds
11790 module_expsym_cmds=$lt_module_expsym_cmds
11791
11792 # Commands to strip libraries.
11793 old_striplib=$lt_old_striplib
11794 striplib=$lt_striplib
11795
11796 # Dependencies to place before the objects being linked to create a
11797 # shared library.
11798 predep_objects=$lt_predep_objects
11799
11800 # Dependencies to place after the objects being linked to create a
11801 # shared library.
11802 postdep_objects=$lt_postdep_objects
11803
11804 # Dependencies to place before the objects being linked to create a
11805 # shared library.
11806 predeps=$lt_predeps
11807
11808 # Dependencies to place after the objects being linked to create a
11809 # shared library.
11810 postdeps=$lt_postdeps
11811
11812 # The library search path used internally by the compiler when linking
11813 # a shared library.
11814 compiler_lib_search_path=$lt_compiler_lib_search_path
11815
11816 # Method to check whether dependent libraries are shared objects.
11817 deplibs_check_method=$lt_deplibs_check_method
11818
11819 # Command to use when deplibs_check_method == file_magic.
11820 file_magic_cmd=$lt_file_magic_cmd
11821
11822 # Flag that allows shared libraries with undefined symbols to be built.
11823 allow_undefined_flag=$lt_allow_undefined_flag
11824
11825 # Flag that forces no undefined symbols.
11826 no_undefined_flag=$lt_no_undefined_flag
11827
11828 # Commands used to finish a libtool library installation in a directory.
11829 finish_cmds=$lt_finish_cmds
11830
11831 # Same as above, but a single script fragment to be evaled but not shown.
11832 finish_eval=$lt_finish_eval
11833
11834 # Take the output of nm and produce a listing of raw symbols and C names.
11835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11836
11837 # Transform the output of nm in a proper C declaration
11838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11839
11840 # Transform the output of nm in a C name address pair
11841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11842
11843 # This is the shared library runtime path variable.
11844 runpath_var=$runpath_var
11845
11846 # This is the shared library path variable.
11847 shlibpath_var=$shlibpath_var
11848
11849 # Is shlibpath searched before the hard-coded library search path?
11850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11851
11852 # How to hardcode a shared library path into an executable.
11853 hardcode_action=$hardcode_action
11854
11855 # Whether we should hardcode library paths into libraries.
11856 hardcode_into_libs=$hardcode_into_libs
11857
11858 # Flag to hardcode \$libdir into a binary during linking.
11859 # This must work even if \$libdir does not exist.
11860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11861
11862 # If ld is used when linking, flag to hardcode \$libdir into
11863 # a binary during linking. This must work even if \$libdir does
11864 # not exist.
11865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11866
11867 # Whether we need a single -rpath flag with a separated argument.
11868 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11869
11870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11871 # resulting binary.
11872 hardcode_direct=$hardcode_direct
11873
11874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11875 # resulting binary.
11876 hardcode_minus_L=$hardcode_minus_L
11877
11878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11879 # the resulting binary.
11880 hardcode_shlibpath_var=$hardcode_shlibpath_var
11881
11882 # Set to yes if building a shared library automatically hardcodes DIR into the library
11883 # and all subsequent libraries and executables linked against it.
11884 hardcode_automatic=$hardcode_automatic
11885
11886 # Variables whose values should be saved in libtool wrapper scripts and
11887 # restored at relink time.
11888 variables_saved_for_relink="$variables_saved_for_relink"
11889
11890 # Whether libtool must link a program against all its dependency libraries.
11891 link_all_deplibs=$link_all_deplibs
11892
11893 # Compile-time system search path for libraries
11894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11895
11896 # Run-time system search path for libraries
11897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11898
11899 # Fix the shell variable \$srcfile for the compiler.
11900 fix_srcfile_path="$fix_srcfile_path"
11901
11902 # Set to yes if exported symbols are required.
11903 always_export_symbols=$always_export_symbols
11904
11905 # The commands to list exported symbols.
11906 export_symbols_cmds=$lt_export_symbols_cmds
11907
11908 # The commands to extract the exported symbol list from a shared archive.
11909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11910
11911 # Symbols that should not be listed in the preloaded symbols.
11912 exclude_expsyms=$lt_exclude_expsyms
11913
11914 # Symbols that must always be exported.
11915 include_expsyms=$lt_include_expsyms
11916
11917 # ### END LIBTOOL CONFIG
11918
11919 __EOF__
11920
11921
11922   case $host_os in
11923   aix3*)
11924     cat <<\EOF >> "$cfgfile"
11925
11926 # AIX sometimes has problems with the GCC collect2 program.  For some
11927 # reason, if we set the COLLECT_NAMES environment variable, the problems
11928 # vanish in a puff of smoke.
11929 if test "X${COLLECT_NAMES+set}" != Xset; then
11930   COLLECT_NAMES=
11931   export COLLECT_NAMES
11932 fi
11933 EOF
11934     ;;
11935   esac
11936
11937   # We use sed instead of cat because bash on DJGPP gets confused if
11938   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11939   # text mode, it properly converts lines to CR/LF.  This bash problem
11940   # is reportedly fixed, but why not run on old versions too?
11941   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11942
11943   mv -f "$cfgfile" "$ofile" || \
11944     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11945   chmod +x "$ofile"
11946
11947 else
11948   # If there is no Makefile yet, we rely on a make rule to execute
11949   # `config.status --recheck' to rerun these tests and create the
11950   # libtool script then.
11951   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11952   if test -f "$ltmain_in"; then
11953     test -f Makefile && make "$ltmain"
11954   fi
11955 fi
11956
11957
11958 ac_ext=c
11959 ac_cpp='$CPP $CPPFLAGS'
11960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11963
11964 CC="$lt_save_CC"
11965
11966
11967 # Check whether --with-tags was given.
11968 if test "${with_tags+set}" = set; then
11969   withval=$with_tags; tagnames="$withval"
11970 fi
11971
11972
11973 if test -f "$ltmain" && test -n "$tagnames"; then
11974   if test ! -f "${ofile}"; then
11975     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11976 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11977   fi
11978
11979   if test -z "$LTCC"; then
11980     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11981     if test -z "$LTCC"; then
11982       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11983 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11984     else
11985       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11986 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11987     fi
11988   fi
11989   if test -z "$LTCFLAGS"; then
11990     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11991   fi
11992
11993   # Extract list of available tagged configurations in $ofile.
11994   # Note that this assumes the entire list is on one line.
11995   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11996
11997   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11998   for tagname in $tagnames; do
11999     IFS="$lt_save_ifs"
12000     # Check whether tagname contains only valid characters
12001     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12002     "") ;;
12003     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12004 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12005    { (exit 1); exit 1; }; }
12006         ;;
12007     esac
12008
12009     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12010     then
12011       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12012 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12013    { (exit 1); exit 1; }; }
12014     fi
12015
12016     # Update the list of available tags.
12017     if test -n "$tagname"; then
12018       echo appending configuration tag \"$tagname\" to $ofile
12019
12020       case $tagname in
12021       CXX)
12022         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12023             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12024             (test "X$CXX" != "Xg++"))) ; then
12025           :
12026         else
12027           tagname=""
12028         fi
12029         ;;
12030
12031       F77)
12032         if test -n "$F77" && test "X$F77" != "Xno"; then
12033           :
12034         else
12035           tagname=""
12036         fi
12037         ;;
12038
12039       GCJ)
12040         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12041           :
12042         else
12043           tagname=""
12044         fi
12045         ;;
12046
12047       RC)
12048
12049
12050 # Source file extension for RC test sources.
12051 ac_ext=rc
12052
12053 # Object file extension for compiled RC test sources.
12054 objext=o
12055 objext_RC=$objext
12056
12057 # Code to be used in simple compile tests
12058 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
12059
12060 # Code to be used in simple link tests
12061 lt_simple_link_test_code="$lt_simple_compile_test_code"
12062
12063 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12064
12065 # If no C compiler was specified, use CC.
12066 LTCC=${LTCC-"$CC"}
12067
12068 # If no C compiler flags were specified, use CFLAGS.
12069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12070
12071 # Allow CC to be a program name with arguments.
12072 compiler=$CC
12073
12074
12075 # save warnings/boilerplate of simple test code
12076 ac_outfile=conftest.$ac_objext
12077 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12078 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12079 _lt_compiler_boilerplate=`cat conftest.err`
12080 $rm conftest*
12081
12082 ac_outfile=conftest.$ac_objext
12083 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12084 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12085 _lt_linker_boilerplate=`cat conftest.err`
12086 $rm conftest*
12087
12088
12089 # Allow CC to be a program name with arguments.
12090 lt_save_CC="$CC"
12091 CC=${RC-"windres"}
12092 compiler=$CC
12093 compiler_RC=$CC
12094 for cc_temp in $compiler""; do
12095   case $cc_temp in
12096     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12097     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12098     \-*) ;;
12099     *) break;;
12100   esac
12101 done
12102 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12103
12104 lt_cv_prog_compiler_c_o_RC=yes
12105
12106 # The else clause should only fire when bootstrapping the
12107 # libtool distribution, otherwise you forgot to ship ltmain.sh
12108 # with your package, and you will get complaints that there are
12109 # no rules to generate ltmain.sh.
12110 if test -f "$ltmain"; then
12111   # See if we are running on zsh, and set the options which allow our commands through
12112   # without removal of \ escapes.
12113   if test -n "${ZSH_VERSION+set}" ; then
12114     setopt NO_GLOB_SUBST
12115   fi
12116   # Now quote all the things that may contain metacharacters while being
12117   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12118   # variables and quote the copies for generation of the libtool script.
12119   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12120     SED SHELL STRIP \
12121     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12122     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12123     deplibs_check_method reload_flag reload_cmds need_locks \
12124     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12125     lt_cv_sys_global_symbol_to_c_name_address \
12126     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12127     old_postinstall_cmds old_postuninstall_cmds \
12128     compiler_RC \
12129     CC_RC \
12130     LD_RC \
12131     lt_prog_compiler_wl_RC \
12132     lt_prog_compiler_pic_RC \
12133     lt_prog_compiler_static_RC \
12134     lt_prog_compiler_no_builtin_flag_RC \
12135     export_dynamic_flag_spec_RC \
12136     thread_safe_flag_spec_RC \
12137     whole_archive_flag_spec_RC \
12138     enable_shared_with_static_runtimes_RC \
12139     old_archive_cmds_RC \
12140     old_archive_from_new_cmds_RC \
12141     predep_objects_RC \
12142     postdep_objects_RC \
12143     predeps_RC \
12144     postdeps_RC \
12145     compiler_lib_search_path_RC \
12146     archive_cmds_RC \
12147     archive_expsym_cmds_RC \
12148     postinstall_cmds_RC \
12149     postuninstall_cmds_RC \
12150     old_archive_from_expsyms_cmds_RC \
12151     allow_undefined_flag_RC \
12152     no_undefined_flag_RC \
12153     export_symbols_cmds_RC \
12154     hardcode_libdir_flag_spec_RC \
12155     hardcode_libdir_flag_spec_ld_RC \
12156     hardcode_libdir_separator_RC \
12157     hardcode_automatic_RC \
12158     module_cmds_RC \
12159     module_expsym_cmds_RC \
12160     lt_cv_prog_compiler_c_o_RC \
12161     exclude_expsyms_RC \
12162     include_expsyms_RC; do
12163
12164     case $var in
12165     old_archive_cmds_RC | \
12166     old_archive_from_new_cmds_RC | \
12167     archive_cmds_RC | \
12168     archive_expsym_cmds_RC | \
12169     module_cmds_RC | \
12170     module_expsym_cmds_RC | \
12171     old_archive_from_expsyms_cmds_RC | \
12172     export_symbols_cmds_RC | \
12173     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12174     postinstall_cmds | postuninstall_cmds | \
12175     old_postinstall_cmds | old_postuninstall_cmds | \
12176     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12177       # Double-quote double-evaled strings.
12178       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12179       ;;
12180     *)
12181       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12182       ;;
12183     esac
12184   done
12185
12186   case $lt_echo in
12187   *'\$0 --fallback-echo"')
12188     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12189     ;;
12190   esac
12191
12192 cfgfile="$ofile"
12193
12194   cat <<__EOF__ >> "$cfgfile"
12195 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12196
12197 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12198
12199 # Shell to use when invoking shell scripts.
12200 SHELL=$lt_SHELL
12201
12202 # Whether or not to build shared libraries.
12203 build_libtool_libs=$enable_shared
12204
12205 # Whether or not to build static libraries.
12206 build_old_libs=$enable_static
12207
12208 # Whether or not to add -lc for building shared libraries.
12209 build_libtool_need_lc=$archive_cmds_need_lc_RC
12210
12211 # Whether or not to disallow shared libs when runtime libs are static
12212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12213
12214 # Whether or not to optimize for fast installation.
12215 fast_install=$enable_fast_install
12216
12217 # The host system.
12218 host_alias=$host_alias
12219 host=$host
12220 host_os=$host_os
12221
12222 # The build system.
12223 build_alias=$build_alias
12224 build=$build
12225 build_os=$build_os
12226
12227 # An echo program that does not interpret backslashes.
12228 echo=$lt_echo
12229
12230 # The archiver.
12231 AR=$lt_AR
12232 AR_FLAGS=$lt_AR_FLAGS
12233
12234 # A C compiler.
12235 LTCC=$lt_LTCC
12236
12237 # LTCC compiler flags.
12238 LTCFLAGS=$lt_LTCFLAGS
12239
12240 # A language-specific compiler.
12241 CC=$lt_compiler_RC
12242
12243 # Is the compiler the GNU C compiler?
12244 with_gcc=$GCC_RC
12245
12246 # An ERE matcher.
12247 EGREP=$lt_EGREP
12248
12249 # The linker used to build libraries.
12250 LD=$lt_LD_RC
12251
12252 # Whether we need hard or soft links.
12253 LN_S=$lt_LN_S
12254
12255 # A BSD-compatible nm program.
12256 NM=$lt_NM
12257
12258 # A symbol stripping program
12259 STRIP=$lt_STRIP
12260
12261 # Used to examine libraries when file_magic_cmd begins "file"
12262 MAGIC_CMD=$MAGIC_CMD
12263
12264 # Used on cygwin: DLL creation program.
12265 DLLTOOL="$DLLTOOL"
12266
12267 # Used on cygwin: object dumper.
12268 OBJDUMP="$OBJDUMP"
12269
12270 # Used on cygwin: assembler.
12271 AS="$AS"
12272
12273 # The name of the directory that contains temporary libtool files.
12274 objdir=$objdir
12275
12276 # How to create reloadable object files.
12277 reload_flag=$lt_reload_flag
12278 reload_cmds=$lt_reload_cmds
12279
12280 # How to pass a linker flag through the compiler.
12281 wl=$lt_lt_prog_compiler_wl_RC
12282
12283 # Object file suffix (normally "o").
12284 objext="$ac_objext"
12285
12286 # Old archive suffix (normally "a").
12287 libext="$libext"
12288
12289 # Shared library suffix (normally ".so").
12290 shrext_cmds='$shrext_cmds'
12291
12292 # Executable file suffix (normally "").
12293 exeext="$exeext"
12294
12295 # Additional compiler flags for building library objects.
12296 pic_flag=$lt_lt_prog_compiler_pic_RC
12297 pic_mode=$pic_mode
12298
12299 # What is the maximum length of a command?
12300 max_cmd_len=$lt_cv_sys_max_cmd_len
12301
12302 # Does compiler simultaneously support -c and -o options?
12303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12304
12305 # Must we lock files when doing compilation?
12306 need_locks=$lt_need_locks
12307
12308 # Do we need the lib prefix for modules?
12309 need_lib_prefix=$need_lib_prefix
12310
12311 # Do we need a version for libraries?
12312 need_version=$need_version
12313
12314 # Whether dlopen is supported.
12315 dlopen_support=$enable_dlopen
12316
12317 # Whether dlopen of programs is supported.
12318 dlopen_self=$enable_dlopen_self
12319
12320 # Whether dlopen of statically linked programs is supported.
12321 dlopen_self_static=$enable_dlopen_self_static
12322
12323 # Compiler flag to prevent dynamic linking.
12324 link_static_flag=$lt_lt_prog_compiler_static_RC
12325
12326 # Compiler flag to turn off builtin functions.
12327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12328
12329 # Compiler flag to allow reflexive dlopens.
12330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12331
12332 # Compiler flag to generate shared objects directly from archives.
12333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12334
12335 # Compiler flag to generate thread-safe objects.
12336 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12337
12338 # Library versioning type.
12339 version_type=$version_type
12340
12341 # Format of library name prefix.
12342 libname_spec=$lt_libname_spec
12343
12344 # List of archive names.  First name is the real one, the rest are links.
12345 # The last name is the one that the linker finds with -lNAME.
12346 library_names_spec=$lt_library_names_spec
12347
12348 # The coded name of the library, if different from the real name.
12349 soname_spec=$lt_soname_spec
12350
12351 # Commands used to build and install an old-style archive.
12352 RANLIB=$lt_RANLIB
12353 old_archive_cmds=$lt_old_archive_cmds_RC
12354 old_postinstall_cmds=$lt_old_postinstall_cmds
12355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12356
12357 # Create an old-style archive from a shared archive.
12358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12359
12360 # Create a temporary old-style archive to link instead of a shared archive.
12361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12362
12363 # Commands used to build and install a shared archive.
12364 archive_cmds=$lt_archive_cmds_RC
12365 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12366 postinstall_cmds=$lt_postinstall_cmds
12367 postuninstall_cmds=$lt_postuninstall_cmds
12368
12369 # Commands used to build a loadable module (assumed same as above if empty)
12370 module_cmds=$lt_module_cmds_RC
12371 module_expsym_cmds=$lt_module_expsym_cmds_RC
12372
12373 # Commands to strip libraries.
12374 old_striplib=$lt_old_striplib
12375 striplib=$lt_striplib
12376
12377 # Dependencies to place before the objects being linked to create a
12378 # shared library.
12379 predep_objects=$lt_predep_objects_RC
12380
12381 # Dependencies to place after the objects being linked to create a
12382 # shared library.
12383 postdep_objects=$lt_postdep_objects_RC
12384
12385 # Dependencies to place before the objects being linked to create a
12386 # shared library.
12387 predeps=$lt_predeps_RC
12388
12389 # Dependencies to place after the objects being linked to create a
12390 # shared library.
12391 postdeps=$lt_postdeps_RC
12392
12393 # The library search path used internally by the compiler when linking
12394 # a shared library.
12395 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12396
12397 # Method to check whether dependent libraries are shared objects.
12398 deplibs_check_method=$lt_deplibs_check_method
12399
12400 # Command to use when deplibs_check_method == file_magic.
12401 file_magic_cmd=$lt_file_magic_cmd
12402
12403 # Flag that allows shared libraries with undefined symbols to be built.
12404 allow_undefined_flag=$lt_allow_undefined_flag_RC
12405
12406 # Flag that forces no undefined symbols.
12407 no_undefined_flag=$lt_no_undefined_flag_RC
12408
12409 # Commands used to finish a libtool library installation in a directory.
12410 finish_cmds=$lt_finish_cmds
12411
12412 # Same as above, but a single script fragment to be evaled but not shown.
12413 finish_eval=$lt_finish_eval
12414
12415 # Take the output of nm and produce a listing of raw symbols and C names.
12416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12417
12418 # Transform the output of nm in a proper C declaration
12419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12420
12421 # Transform the output of nm in a C name address pair
12422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12423
12424 # This is the shared library runtime path variable.
12425 runpath_var=$runpath_var
12426
12427 # This is the shared library path variable.
12428 shlibpath_var=$shlibpath_var
12429
12430 # Is shlibpath searched before the hard-coded library search path?
12431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12432
12433 # How to hardcode a shared library path into an executable.
12434 hardcode_action=$hardcode_action_RC
12435
12436 # Whether we should hardcode library paths into libraries.
12437 hardcode_into_libs=$hardcode_into_libs
12438
12439 # Flag to hardcode \$libdir into a binary during linking.
12440 # This must work even if \$libdir does not exist.
12441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12442
12443 # If ld is used when linking, flag to hardcode \$libdir into
12444 # a binary during linking. This must work even if \$libdir does
12445 # not exist.
12446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12447
12448 # Whether we need a single -rpath flag with a separated argument.
12449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12450
12451 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12452 # resulting binary.
12453 hardcode_direct=$hardcode_direct_RC
12454
12455 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12456 # resulting binary.
12457 hardcode_minus_L=$hardcode_minus_L_RC
12458
12459 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12460 # the resulting binary.
12461 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12462
12463 # Set to yes if building a shared library automatically hardcodes DIR into the library
12464 # and all subsequent libraries and executables linked against it.
12465 hardcode_automatic=$hardcode_automatic_RC
12466
12467 # Variables whose values should be saved in libtool wrapper scripts and
12468 # restored at relink time.
12469 variables_saved_for_relink="$variables_saved_for_relink"
12470
12471 # Whether libtool must link a program against all its dependency libraries.
12472 link_all_deplibs=$link_all_deplibs_RC
12473
12474 # Compile-time system search path for libraries
12475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12476
12477 # Run-time system search path for libraries
12478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12479
12480 # Fix the shell variable \$srcfile for the compiler.
12481 fix_srcfile_path="$fix_srcfile_path_RC"
12482
12483 # Set to yes if exported symbols are required.
12484 always_export_symbols=$always_export_symbols_RC
12485
12486 # The commands to list exported symbols.
12487 export_symbols_cmds=$lt_export_symbols_cmds_RC
12488
12489 # The commands to extract the exported symbol list from a shared archive.
12490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12491
12492 # Symbols that should not be listed in the preloaded symbols.
12493 exclude_expsyms=$lt_exclude_expsyms_RC
12494
12495 # Symbols that must always be exported.
12496 include_expsyms=$lt_include_expsyms_RC
12497
12498 # ### END LIBTOOL TAG CONFIG: $tagname
12499
12500 __EOF__
12501
12502
12503 else
12504   # If there is no Makefile yet, we rely on a make rule to execute
12505   # `config.status --recheck' to rerun these tests and create the
12506   # libtool script then.
12507   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12508   if test -f "$ltmain_in"; then
12509     test -f Makefile && make "$ltmain"
12510   fi
12511 fi
12512
12513
12514 ac_ext=c
12515 ac_cpp='$CPP $CPPFLAGS'
12516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12519
12520 CC="$lt_save_CC"
12521
12522         ;;
12523
12524       *)
12525         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12526 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12527    { (exit 1); exit 1; }; }
12528         ;;
12529       esac
12530
12531       # Append the new tag name to the list of available tags.
12532       if test -n "$tagname" ; then
12533       available_tags="$available_tags $tagname"
12534     fi
12535     fi
12536   done
12537   IFS="$lt_save_ifs"
12538
12539   # Now substitute the updated list of available tags.
12540   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12541     mv "${ofile}T" "$ofile"
12542     chmod +x "$ofile"
12543   else
12544     rm -f "${ofile}T"
12545     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12546 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12547    { (exit 1); exit 1; }; }
12548   fi
12549 fi
12550
12551
12552
12553 # This can be used to rebuild libtool when needed
12554 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12555
12556 # Always use our own libtool.
12557 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12558
12559 # Prevent multiple expansion
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570 ol_link_perl=no
12571 if test $ol_enable_perl != no ; then
12572         # Extract the first word of "perl", so it can be a program name with args.
12573 set dummy perl; ac_word=$2
12574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12576 if test "${ac_cv_path_PERLBIN+set}" = set; then
12577   echo $ECHO_N "(cached) $ECHO_C" >&6
12578 else
12579   case $PERLBIN in
12580   [\\/]* | ?:[\\/]*)
12581   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12582   ;;
12583   *)
12584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585 for as_dir in $PATH
12586 do
12587   IFS=$as_save_IFS
12588   test -z "$as_dir" && as_dir=.
12589   for ac_exec_ext in '' $ac_executable_extensions; do
12590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12591     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12593     break 2
12594   fi
12595 done
12596 done
12597 IFS=$as_save_IFS
12598
12599   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12600   ;;
12601 esac
12602 fi
12603 PERLBIN=$ac_cv_path_PERLBIN
12604 if test -n "$PERLBIN"; then
12605   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12606 echo "${ECHO_T}$PERLBIN" >&6; }
12607 else
12608   { echo "$as_me:$LINENO: result: no" >&5
12609 echo "${ECHO_T}no" >&6; }
12610 fi
12611
12612
12613
12614         if test "no$PERLBIN" = "no" ; then
12615                 if test $ol_enable_perl = yes ; then
12616                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12617 echo "$as_me: error: could not locate perl" >&2;}
12618    { (exit 1); exit 1; }; }
12619                 fi
12620
12621         else
12622                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12623                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12624
12625                 if test x"$ol_enable_perl" = "xyes" ; then
12626                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12627                 else
12628                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12629                 fi
12630                                 ol_link_perl=yes
12631         fi
12632 fi
12633
12634 ac_ext=c
12635 ac_cpp='$CPP $CPPFLAGS'
12636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12639 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12640 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12641 # On Suns, sometimes $CPP names a directory.
12642 if test -n "$CPP" && test -d "$CPP"; then
12643   CPP=
12644 fi
12645 if test -z "$CPP"; then
12646   if test "${ac_cv_prog_CPP+set}" = set; then
12647   echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649       # Double quotes because CPP needs to be expanded
12650     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12651     do
12652       ac_preproc_ok=false
12653 for ac_c_preproc_warn_flag in '' yes
12654 do
12655   # Use a header file that comes with gcc, so configuring glibc
12656   # with a fresh cross-compiler works.
12657   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12658   # <limits.h> exists even on freestanding compilers.
12659   # On the NeXT, cc -E runs the code through the compiler's parser,
12660   # not just through cpp. "Syntax error" is here to catch this case.
12661   cat >conftest.$ac_ext <<_ACEOF
12662 /* confdefs.h.  */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h.  */
12667 #ifdef __STDC__
12668 # include <limits.h>
12669 #else
12670 # include <assert.h>
12671 #endif
12672                      Syntax error
12673 _ACEOF
12674 if { (ac_try="$ac_cpp conftest.$ac_ext"
12675 case "(($ac_try" in
12676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677   *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12681   ac_status=$?
12682   grep -v '^ *+' conftest.er1 >conftest.err
12683   rm -f conftest.er1
12684   cat conftest.err >&5
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } >/dev/null && {
12687          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12688          test ! -s conftest.err
12689        }; then
12690   :
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695   # Broken: fails on valid input.
12696 continue
12697 fi
12698
12699 rm -f conftest.err conftest.$ac_ext
12700
12701   # OK, works on sane cases.  Now check whether nonexistent headers
12702   # can be detected and how.
12703   cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h.  */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h.  */
12709 #include <ac_nonexistent.h>
12710 _ACEOF
12711 if { (ac_try="$ac_cpp conftest.$ac_ext"
12712 case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12718   ac_status=$?
12719   grep -v '^ *+' conftest.er1 >conftest.err
12720   rm -f conftest.er1
12721   cat conftest.err >&5
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } >/dev/null && {
12724          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12725          test ! -s conftest.err
12726        }; then
12727   # Broken: success on invalid input.
12728 continue
12729 else
12730   echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733   # Passes both tests.
12734 ac_preproc_ok=:
12735 break
12736 fi
12737
12738 rm -f conftest.err conftest.$ac_ext
12739
12740 done
12741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12742 rm -f conftest.err conftest.$ac_ext
12743 if $ac_preproc_ok; then
12744   break
12745 fi
12746
12747     done
12748     ac_cv_prog_CPP=$CPP
12749
12750 fi
12751   CPP=$ac_cv_prog_CPP
12752 else
12753   ac_cv_prog_CPP=$CPP
12754 fi
12755 { echo "$as_me:$LINENO: result: $CPP" >&5
12756 echo "${ECHO_T}$CPP" >&6; }
12757 ac_preproc_ok=false
12758 for ac_c_preproc_warn_flag in '' yes
12759 do
12760   # Use a header file that comes with gcc, so configuring glibc
12761   # with a fresh cross-compiler works.
12762   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12763   # <limits.h> exists even on freestanding compilers.
12764   # On the NeXT, cc -E runs the code through the compiler's parser,
12765   # not just through cpp. "Syntax error" is here to catch this case.
12766   cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h.  */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h.  */
12772 #ifdef __STDC__
12773 # include <limits.h>
12774 #else
12775 # include <assert.h>
12776 #endif
12777                      Syntax error
12778 _ACEOF
12779 if { (ac_try="$ac_cpp conftest.$ac_ext"
12780 case "(($ac_try" in
12781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782   *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12786   ac_status=$?
12787   grep -v '^ *+' conftest.er1 >conftest.err
12788   rm -f conftest.er1
12789   cat conftest.err >&5
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } >/dev/null && {
12792          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12793          test ! -s conftest.err
12794        }; then
12795   :
12796 else
12797   echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12799
12800   # Broken: fails on valid input.
12801 continue
12802 fi
12803
12804 rm -f conftest.err conftest.$ac_ext
12805
12806   # OK, works on sane cases.  Now check whether nonexistent headers
12807   # can be detected and how.
12808   cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h.  */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h.  */
12814 #include <ac_nonexistent.h>
12815 _ACEOF
12816 if { (ac_try="$ac_cpp conftest.$ac_ext"
12817 case "(($ac_try" in
12818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819   *) ac_try_echo=$ac_try;;
12820 esac
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12823   ac_status=$?
12824   grep -v '^ *+' conftest.er1 >conftest.err
12825   rm -f conftest.er1
12826   cat conftest.err >&5
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); } >/dev/null && {
12829          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12830          test ! -s conftest.err
12831        }; then
12832   # Broken: success on invalid input.
12833 continue
12834 else
12835   echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12837
12838   # Passes both tests.
12839 ac_preproc_ok=:
12840 break
12841 fi
12842
12843 rm -f conftest.err conftest.$ac_ext
12844
12845 done
12846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12847 rm -f conftest.err conftest.$ac_ext
12848 if $ac_preproc_ok; then
12849   :
12850 else
12851   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12852 See \`config.log' for more details." >&5
12853 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12854 See \`config.log' for more details." >&2;}
12855    { (exit 1); exit 1; }; }
12856 fi
12857
12858 ac_ext=c
12859 ac_cpp='$CPP $CPPFLAGS'
12860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12863
12864 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12865 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12866 if test "${ol_cv_msvc+set}" = set; then
12867   echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12869   cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h.  */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h.  */
12875
12876 #ifndef _MSC_VER
12877 #include <__FOO__/generate_error.h>
12878 #endif
12879
12880 _ACEOF
12881 if { (ac_try="$ac_cpp conftest.$ac_ext"
12882 case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12888   ac_status=$?
12889   grep -v '^ *+' conftest.er1 >conftest.err
12890   rm -f conftest.er1
12891   cat conftest.err >&5
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); } >/dev/null && {
12894          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12895          test ! -s conftest.err
12896        }; then
12897   ol_cv_msvc=yes
12898 else
12899   echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12901
12902   ol_cv_msvc=no
12903 fi
12904
12905 rm -f conftest.err conftest.$ac_ext
12906 fi
12907 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12908 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12909
12910 case $host_os in
12911   *mingw32* ) ac_cv_mingw32=yes ;;
12912   *cygwin* ) ac_cv_cygwin=yes ;;
12913   *interix* ) ac_cv_interix=yes ;;
12914 esac
12915
12916
12917
12918
12919 cat >>confdefs.h <<_ACEOF
12920 #define EXEEXT "${EXEEXT}"
12921 _ACEOF
12922
12923
12924 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12925 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12926 if test "${ac_cv_lib_be_be_app+set}" = set; then
12927   echo $ECHO_N "(cached) $ECHO_C" >&6
12928 else
12929   ac_check_lib_save_LIBS=$LIBS
12930 LIBS="-lbe -lroot -lnet $LIBS"
12931 cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h.  */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h.  */
12937
12938 /* Override any GCC internal prototype to avoid an error.
12939    Use char because int might match the return type of a GCC
12940    builtin and then its argument prototype would still apply.  */
12941 #ifdef __cplusplus
12942 extern "C"
12943 #endif
12944 char be_app ();
12945 int
12946 main ()
12947 {
12948 return be_app ();
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953 rm -f conftest.$ac_objext conftest$ac_exeext
12954 if { (ac_try="$ac_link"
12955 case "(($ac_try" in
12956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957   *) ac_try_echo=$ac_try;;
12958 esac
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960   (eval "$ac_link") 2>conftest.er1
12961   ac_status=$?
12962   grep -v '^ *+' conftest.er1 >conftest.err
12963   rm -f conftest.er1
12964   cat conftest.err >&5
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); } && {
12967          test -z "$ac_c_werror_flag" ||
12968          test ! -s conftest.err
12969        } && test -s conftest$ac_exeext &&
12970        $as_test_x conftest$ac_exeext; then
12971   ac_cv_lib_be_be_app=yes
12972 else
12973   echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12975
12976         ac_cv_lib_be_be_app=no
12977 fi
12978
12979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12980       conftest$ac_exeext conftest.$ac_ext
12981 LIBS=$ac_check_lib_save_LIBS
12982 fi
12983 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12984 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12985 if test $ac_cv_lib_be_be_app = yes; then
12986   LIBS="$LIBS -lbe -lroot -lnet"
12987 else
12988   :
12989 fi
12990
12991
12992 ac_ext=c
12993 ac_cpp='$CPP $CPPFLAGS'
12994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12997 if test -n "$ac_tool_prefix"; then
12998   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13002 if test "${ac_cv_prog_CC+set}" = set; then
13003   echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005   if test -n "$CC"; then
13006   ac_cv_prog_CC="$CC" # Let the user override the test.
13007 else
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13010 do
13011   IFS=$as_save_IFS
13012   test -z "$as_dir" && as_dir=.
13013   for ac_exec_ext in '' $ac_executable_extensions; do
13014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13015     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13017     break 2
13018   fi
13019 done
13020 done
13021 IFS=$as_save_IFS
13022
13023 fi
13024 fi
13025 CC=$ac_cv_prog_CC
13026 if test -n "$CC"; then
13027   { echo "$as_me:$LINENO: result: $CC" >&5
13028 echo "${ECHO_T}$CC" >&6; }
13029 else
13030   { echo "$as_me:$LINENO: result: no" >&5
13031 echo "${ECHO_T}no" >&6; }
13032 fi
13033
13034
13035 fi
13036 if test -z "$ac_cv_prog_CC"; then
13037   ac_ct_CC=$CC
13038   # Extract the first word of "gcc", so it can be a program name with args.
13039 set dummy gcc; ac_word=$2
13040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13043   echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
13045   if test -n "$ac_ct_CC"; then
13046   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13047 else
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13050 do
13051   IFS=$as_save_IFS
13052   test -z "$as_dir" && as_dir=.
13053   for ac_exec_ext in '' $ac_executable_extensions; do
13054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13055     ac_cv_prog_ac_ct_CC="gcc"
13056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13057     break 2
13058   fi
13059 done
13060 done
13061 IFS=$as_save_IFS
13062
13063 fi
13064 fi
13065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13066 if test -n "$ac_ct_CC"; then
13067   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13068 echo "${ECHO_T}$ac_ct_CC" >&6; }
13069 else
13070   { echo "$as_me:$LINENO: result: no" >&5
13071 echo "${ECHO_T}no" >&6; }
13072 fi
13073
13074   if test "x$ac_ct_CC" = x; then
13075     CC=""
13076   else
13077     case $cross_compiling:$ac_tool_warned in
13078 yes:)
13079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13080 whose name does not start with the host triplet.  If you think this
13081 configuration is useful to you, please write to autoconf@gnu.org." >&5
13082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13083 whose name does not start with the host triplet.  If you think this
13084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13085 ac_tool_warned=yes ;;
13086 esac
13087     CC=$ac_ct_CC
13088   fi
13089 else
13090   CC="$ac_cv_prog_CC"
13091 fi
13092
13093 if test -z "$CC"; then
13094           if test -n "$ac_tool_prefix"; then
13095     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13096 set dummy ${ac_tool_prefix}cc; ac_word=$2
13097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13099 if test "${ac_cv_prog_CC+set}" = set; then
13100   echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102   if test -n "$CC"; then
13103   ac_cv_prog_CC="$CC" # Let the user override the test.
13104 else
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13107 do
13108   IFS=$as_save_IFS
13109   test -z "$as_dir" && as_dir=.
13110   for ac_exec_ext in '' $ac_executable_extensions; do
13111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13112     ac_cv_prog_CC="${ac_tool_prefix}cc"
13113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13114     break 2
13115   fi
13116 done
13117 done
13118 IFS=$as_save_IFS
13119
13120 fi
13121 fi
13122 CC=$ac_cv_prog_CC
13123 if test -n "$CC"; then
13124   { echo "$as_me:$LINENO: result: $CC" >&5
13125 echo "${ECHO_T}$CC" >&6; }
13126 else
13127   { echo "$as_me:$LINENO: result: no" >&5
13128 echo "${ECHO_T}no" >&6; }
13129 fi
13130
13131
13132   fi
13133 fi
13134 if test -z "$CC"; then
13135   # Extract the first word of "cc", so it can be a program name with args.
13136 set dummy cc; ac_word=$2
13137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13139 if test "${ac_cv_prog_CC+set}" = set; then
13140   echo $ECHO_N "(cached) $ECHO_C" >&6
13141 else
13142   if test -n "$CC"; then
13143   ac_cv_prog_CC="$CC" # Let the user override the test.
13144 else
13145   ac_prog_rejected=no
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13148 do
13149   IFS=$as_save_IFS
13150   test -z "$as_dir" && as_dir=.
13151   for ac_exec_ext in '' $ac_executable_extensions; do
13152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13153     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13154        ac_prog_rejected=yes
13155        continue
13156      fi
13157     ac_cv_prog_CC="cc"
13158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13159     break 2
13160   fi
13161 done
13162 done
13163 IFS=$as_save_IFS
13164
13165 if test $ac_prog_rejected = yes; then
13166   # We found a bogon in the path, so make sure we never use it.
13167   set dummy $ac_cv_prog_CC
13168   shift
13169   if test $# != 0; then
13170     # We chose a different compiler from the bogus one.
13171     # However, it has the same basename, so the bogon will be chosen
13172     # first if we set CC to just the basename; use the full file name.
13173     shift
13174     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13175   fi
13176 fi
13177 fi
13178 fi
13179 CC=$ac_cv_prog_CC
13180 if test -n "$CC"; then
13181   { echo "$as_me:$LINENO: result: $CC" >&5
13182 echo "${ECHO_T}$CC" >&6; }
13183 else
13184   { echo "$as_me:$LINENO: result: no" >&5
13185 echo "${ECHO_T}no" >&6; }
13186 fi
13187
13188
13189 fi
13190 if test -z "$CC"; then
13191   if test -n "$ac_tool_prefix"; then
13192   for ac_prog in cl.exe
13193   do
13194     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13198 if test "${ac_cv_prog_CC+set}" = set; then
13199   echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201   if test -n "$CC"; then
13202   ac_cv_prog_CC="$CC" # Let the user override the test.
13203 else
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13206 do
13207   IFS=$as_save_IFS
13208   test -z "$as_dir" && as_dir=.
13209   for ac_exec_ext in '' $ac_executable_extensions; do
13210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13213     break 2
13214   fi
13215 done
13216 done
13217 IFS=$as_save_IFS
13218
13219 fi
13220 fi
13221 CC=$ac_cv_prog_CC
13222 if test -n "$CC"; then
13223   { echo "$as_me:$LINENO: result: $CC" >&5
13224 echo "${ECHO_T}$CC" >&6; }
13225 else
13226   { echo "$as_me:$LINENO: result: no" >&5
13227 echo "${ECHO_T}no" >&6; }
13228 fi
13229
13230
13231     test -n "$CC" && break
13232   done
13233 fi
13234 if test -z "$CC"; then
13235   ac_ct_CC=$CC
13236   for ac_prog in cl.exe
13237 do
13238   # Extract the first word of "$ac_prog", so it can be a program name with args.
13239 set dummy $ac_prog; ac_word=$2
13240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13243   echo $ECHO_N "(cached) $ECHO_C" >&6
13244 else
13245   if test -n "$ac_ct_CC"; then
13246   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13247 else
13248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249 for as_dir in $PATH
13250 do
13251   IFS=$as_save_IFS
13252   test -z "$as_dir" && as_dir=.
13253   for ac_exec_ext in '' $ac_executable_extensions; do
13254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13255     ac_cv_prog_ac_ct_CC="$ac_prog"
13256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13257     break 2
13258   fi
13259 done
13260 done
13261 IFS=$as_save_IFS
13262
13263 fi
13264 fi
13265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13266 if test -n "$ac_ct_CC"; then
13267   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13268 echo "${ECHO_T}$ac_ct_CC" >&6; }
13269 else
13270   { echo "$as_me:$LINENO: result: no" >&5
13271 echo "${ECHO_T}no" >&6; }
13272 fi
13273
13274
13275   test -n "$ac_ct_CC" && break
13276 done
13277
13278   if test "x$ac_ct_CC" = x; then
13279     CC=""
13280   else
13281     case $cross_compiling:$ac_tool_warned in
13282 yes:)
13283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13284 whose name does not start with the host triplet.  If you think this
13285 configuration is useful to you, please write to autoconf@gnu.org." >&5
13286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13287 whose name does not start with the host triplet.  If you think this
13288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13289 ac_tool_warned=yes ;;
13290 esac
13291     CC=$ac_ct_CC
13292   fi
13293 fi
13294
13295 fi
13296
13297
13298 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13299 See \`config.log' for more details." >&5
13300 echo "$as_me: error: no acceptable C compiler found in \$PATH
13301 See \`config.log' for more details." >&2;}
13302    { (exit 1); exit 1; }; }
13303
13304 # Provide some information about the compiler.
13305 echo "$as_me:$LINENO: checking for C compiler version" >&5
13306 ac_compiler=`set X $ac_compile; echo $2`
13307 { (ac_try="$ac_compiler --version >&5"
13308 case "(($ac_try" in
13309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310   *) ac_try_echo=$ac_try;;
13311 esac
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313   (eval "$ac_compiler --version >&5") 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); }
13317 { (ac_try="$ac_compiler -v >&5"
13318 case "(($ac_try" in
13319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320   *) ac_try_echo=$ac_try;;
13321 esac
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323   (eval "$ac_compiler -v >&5") 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }
13327 { (ac_try="$ac_compiler -V >&5"
13328 case "(($ac_try" in
13329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330   *) ac_try_echo=$ac_try;;
13331 esac
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333   (eval "$ac_compiler -V >&5") 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); }
13337
13338 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13339 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13340 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13341   echo $ECHO_N "(cached) $ECHO_C" >&6
13342 else
13343   cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h.  */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h.  */
13349
13350 int
13351 main ()
13352 {
13353 #ifndef __GNUC__
13354        choke me
13355 #endif
13356
13357   ;
13358   return 0;
13359 }
13360 _ACEOF
13361 rm -f conftest.$ac_objext
13362 if { (ac_try="$ac_compile"
13363 case "(($ac_try" in
13364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365   *) ac_try_echo=$ac_try;;
13366 esac
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368   (eval "$ac_compile") 2>conftest.er1
13369   ac_status=$?
13370   grep -v '^ *+' conftest.er1 >conftest.err
13371   rm -f conftest.er1
13372   cat conftest.err >&5
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); } && {
13375          test -z "$ac_c_werror_flag" ||
13376          test ! -s conftest.err
13377        } && test -s conftest.$ac_objext; then
13378   ac_compiler_gnu=yes
13379 else
13380   echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383         ac_compiler_gnu=no
13384 fi
13385
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13388
13389 fi
13390 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13391 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13392 GCC=`test $ac_compiler_gnu = yes && echo yes`
13393 ac_test_CFLAGS=${CFLAGS+set}
13394 ac_save_CFLAGS=$CFLAGS
13395 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13396 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13397 if test "${ac_cv_prog_cc_g+set}" = set; then
13398   echo $ECHO_N "(cached) $ECHO_C" >&6
13399 else
13400   ac_save_c_werror_flag=$ac_c_werror_flag
13401    ac_c_werror_flag=yes
13402    ac_cv_prog_cc_g=no
13403    CFLAGS="-g"
13404    cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h.  */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h.  */
13410
13411 int
13412 main ()
13413 {
13414
13415   ;
13416   return 0;
13417 }
13418 _ACEOF
13419 rm -f conftest.$ac_objext
13420 if { (ac_try="$ac_compile"
13421 case "(($ac_try" in
13422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423   *) ac_try_echo=$ac_try;;
13424 esac
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426   (eval "$ac_compile") 2>conftest.er1
13427   ac_status=$?
13428   grep -v '^ *+' conftest.er1 >conftest.err
13429   rm -f conftest.er1
13430   cat conftest.err >&5
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } && {
13433          test -z "$ac_c_werror_flag" ||
13434          test ! -s conftest.err
13435        } && test -s conftest.$ac_objext; then
13436   ac_cv_prog_cc_g=yes
13437 else
13438   echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13440
13441         CFLAGS=""
13442       cat >conftest.$ac_ext <<_ACEOF
13443 /* confdefs.h.  */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h.  */
13448
13449 int
13450 main ()
13451 {
13452
13453   ;
13454   return 0;
13455 }
13456 _ACEOF
13457 rm -f conftest.$ac_objext
13458 if { (ac_try="$ac_compile"
13459 case "(($ac_try" in
13460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461   *) ac_try_echo=$ac_try;;
13462 esac
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464   (eval "$ac_compile") 2>conftest.er1
13465   ac_status=$?
13466   grep -v '^ *+' conftest.er1 >conftest.err
13467   rm -f conftest.er1
13468   cat conftest.err >&5
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } && {
13471          test -z "$ac_c_werror_flag" ||
13472          test ! -s conftest.err
13473        } && test -s conftest.$ac_objext; then
13474   :
13475 else
13476   echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13478
13479         ac_c_werror_flag=$ac_save_c_werror_flag
13480          CFLAGS="-g"
13481          cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h.  */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h.  */
13487
13488 int
13489 main ()
13490 {
13491
13492   ;
13493   return 0;
13494 }
13495 _ACEOF
13496 rm -f conftest.$ac_objext
13497 if { (ac_try="$ac_compile"
13498 case "(($ac_try" in
13499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500   *) ac_try_echo=$ac_try;;
13501 esac
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503   (eval "$ac_compile") 2>conftest.er1
13504   ac_status=$?
13505   grep -v '^ *+' conftest.er1 >conftest.err
13506   rm -f conftest.er1
13507   cat conftest.err >&5
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); } && {
13510          test -z "$ac_c_werror_flag" ||
13511          test ! -s conftest.err
13512        } && test -s conftest.$ac_objext; then
13513   ac_cv_prog_cc_g=yes
13514 else
13515   echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13517
13518
13519 fi
13520
13521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522 fi
13523
13524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525 fi
13526
13527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13528    ac_c_werror_flag=$ac_save_c_werror_flag
13529 fi
13530 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13531 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13532 if test "$ac_test_CFLAGS" = set; then
13533   CFLAGS=$ac_save_CFLAGS
13534 elif test $ac_cv_prog_cc_g = yes; then
13535   if test "$GCC" = yes; then
13536     CFLAGS="-g -O2"
13537   else
13538     CFLAGS="-g"
13539   fi
13540 else
13541   if test "$GCC" = yes; then
13542     CFLAGS="-O2"
13543   else
13544     CFLAGS=
13545   fi
13546 fi
13547 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13548 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13549 if test "${ac_cv_prog_cc_c89+set}" = set; then
13550   echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552   ac_cv_prog_cc_c89=no
13553 ac_save_CC=$CC
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h.  */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h.  */
13560 #include <stdarg.h>
13561 #include <stdio.h>
13562 #include <sys/types.h>
13563 #include <sys/stat.h>
13564 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13565 struct buf { int x; };
13566 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13567 static char *e (p, i)
13568      char **p;
13569      int i;
13570 {
13571   return p[i];
13572 }
13573 static char *f (char * (*g) (char **, int), char **p, ...)
13574 {
13575   char *s;
13576   va_list v;
13577   va_start (v,p);
13578   s = g (p, va_arg (v,int));
13579   va_end (v);
13580   return s;
13581 }
13582
13583 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13584    function prototypes and stuff, but not '\xHH' hex character constants.
13585    These don't provoke an error unfortunately, instead are silently treated
13586    as 'x'.  The following induces an error, until -std is added to get
13587    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13588    array size at least.  It's necessary to write '\x00'==0 to get something
13589    that's true only with -std.  */
13590 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13591
13592 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13593    inside strings and character constants.  */
13594 #define FOO(x) 'x'
13595 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13596
13597 int test (int i, double x);
13598 struct s1 {int (*f) (int a);};
13599 struct s2 {int (*f) (double a);};
13600 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13601 int argc;
13602 char **argv;
13603 int
13604 main ()
13605 {
13606 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13612         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13613 do
13614   CC="$ac_save_CC $ac_arg"
13615   rm -f conftest.$ac_objext
13616 if { (ac_try="$ac_compile"
13617 case "(($ac_try" in
13618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619   *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622   (eval "$ac_compile") 2>conftest.er1
13623   ac_status=$?
13624   grep -v '^ *+' conftest.er1 >conftest.err
13625   rm -f conftest.er1
13626   cat conftest.err >&5
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); } && {
13629          test -z "$ac_c_werror_flag" ||
13630          test ! -s conftest.err
13631        } && test -s conftest.$ac_objext; then
13632   ac_cv_prog_cc_c89=$ac_arg
13633 else
13634   echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637
13638 fi
13639
13640 rm -f core conftest.err conftest.$ac_objext
13641   test "x$ac_cv_prog_cc_c89" != "xno" && break
13642 done
13643 rm -f conftest.$ac_ext
13644 CC=$ac_save_CC
13645
13646 fi
13647 # AC_CACHE_VAL
13648 case "x$ac_cv_prog_cc_c89" in
13649   x)
13650     { echo "$as_me:$LINENO: result: none needed" >&5
13651 echo "${ECHO_T}none needed" >&6; } ;;
13652   xno)
13653     { echo "$as_me:$LINENO: result: unsupported" >&5
13654 echo "${ECHO_T}unsupported" >&6; } ;;
13655   *)
13656     CC="$CC $ac_cv_prog_cc_c89"
13657     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13658 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13659 esac
13660
13661
13662 ac_ext=c
13663 ac_cpp='$CPP $CPPFLAGS'
13664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13667
13668 depcc="$CC"   am_compiler_list=
13669
13670 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13671 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13672 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13673   echo $ECHO_N "(cached) $ECHO_C" >&6
13674 else
13675   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13676   # We make a subdir and do the tests there.  Otherwise we can end up
13677   # making bogus files that we don't know about and never remove.  For
13678   # instance it was reported that on HP-UX the gcc test will end up
13679   # making a dummy file named `D' -- because `-MD' means `put the output
13680   # in D'.
13681   mkdir conftest.dir
13682   # Copy depcomp to subdir because otherwise we won't find it if we're
13683   # using a relative directory.
13684   cp "$am_depcomp" conftest.dir
13685   cd conftest.dir
13686   # We will build objects and dependencies in a subdirectory because
13687   # it helps to detect inapplicable dependency modes.  For instance
13688   # both Tru64's cc and ICC support -MD to output dependencies as a
13689   # side effect of compilation, but ICC will put the dependencies in
13690   # the current directory while Tru64 will put them in the object
13691   # directory.
13692   mkdir sub
13693
13694   am_cv_CC_dependencies_compiler_type=none
13695   if test "$am_compiler_list" = ""; then
13696      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13697   fi
13698   for depmode in $am_compiler_list; do
13699     # Setup a source with many dependencies, because some compilers
13700     # like to wrap large dependency lists on column 80 (with \), and
13701     # we should not choose a depcomp mode which is confused by this.
13702     #
13703     # We need to recreate these files for each test, as the compiler may
13704     # overwrite some of them when testing with obscure command lines.
13705     # This happens at least with the AIX C compiler.
13706     : > sub/conftest.c
13707     for i in 1 2 3 4 5 6; do
13708       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13709       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13710       # Solaris 8's {/usr,}/bin/sh.
13711       touch sub/conftst$i.h
13712     done
13713     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13714
13715     case $depmode in
13716     nosideeffect)
13717       # after this tag, mechanisms are not by side-effect, so they'll
13718       # only be used when explicitly requested
13719       if test "x$enable_dependency_tracking" = xyes; then
13720         continue
13721       else
13722         break
13723       fi
13724       ;;
13725     none) break ;;
13726     esac
13727     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13728     # mode.  It turns out that the SunPro C++ compiler does not properly
13729     # handle `-M -o', and we need to detect this.
13730     if depmode=$depmode \
13731        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13732        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13733        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13734          >/dev/null 2>conftest.err &&
13735        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13736        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13737        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13738        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13739       # icc doesn't choke on unknown options, it will just issue warnings
13740       # or remarks (even with -Werror).  So we grep stderr for any message
13741       # that says an option was ignored or not supported.
13742       # When given -MP, icc 7.0 and 7.1 complain thusly:
13743       #   icc: Command line warning: ignoring option '-M'; no argument required
13744       # The diagnosis changed in icc 8.0:
13745       #   icc: Command line remark: option '-MP' not supported
13746       if (grep 'ignoring option' conftest.err ||
13747           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13748         am_cv_CC_dependencies_compiler_type=$depmode
13749         break
13750       fi
13751     fi
13752   done
13753
13754   cd ..
13755   rm -rf conftest.dir
13756 else
13757   am_cv_CC_dependencies_compiler_type=none
13758 fi
13759
13760 fi
13761 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13762 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13763 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13764
13765  if
13766   test "x$enable_dependency_tracking" != xno \
13767   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13768   am__fastdepCC_TRUE=
13769   am__fastdepCC_FALSE='#'
13770 else
13771   am__fastdepCC_TRUE='#'
13772   am__fastdepCC_FALSE=
13773 fi
13774
13775
13776 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13777         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13778 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13779    { (exit 1); exit 1; }; }
13780 fi
13781
13782 # test for make depend flag
13783 OL_MKDEP=
13784 OL_MKDEP_FLAGS=
13785 if test -z "${MKDEP}"; then
13786         OL_MKDEP="${CC-cc}"
13787         if test -z "${MKDEP_FLAGS}"; then
13788                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13789 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13790 if test "${ol_cv_mkdep+set}" = set; then
13791   echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793
13794                         ol_cv_mkdep=no
13795                         for flag in "-M" "-xM"; do
13796                                 cat > conftest.c <<EOF
13797  noCode;
13798 EOF
13799                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801   (eval $ac_try) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); }; } \
13805                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13806                                 then
13807                                         if test ! -f conftest."${ac_object}" ; then
13808                                                 ol_cv_mkdep=$flag
13809                                                 OL_MKDEP_FLAGS="$flag"
13810                                                 break
13811                                         fi
13812                                 fi
13813                         done
13814                         rm -f conftest*
13815
13816 fi
13817 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13818 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13819                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13820         else
13821                 cc_cv_mkdep=yes
13822                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13823         fi
13824 else
13825         cc_cv_mkdep=yes
13826         OL_MKDEP="${MKDEP}"
13827         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13828 fi
13829
13830
13831
13832 if test "${ol_cv_mkdep}" = no ; then
13833         # this will soon become an error
13834         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13835 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13836 fi
13837
13838 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13839 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13840 if test "${ac_cv_lib_s_afopen+set}" = set; then
13841   echo $ECHO_N "(cached) $ECHO_C" >&6
13842 else
13843   ac_check_lib_save_LIBS=$LIBS
13844 LIBS="-ls  $LIBS"
13845 cat >conftest.$ac_ext <<_ACEOF
13846 /* confdefs.h.  */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h.  */
13851
13852 /* Override any GCC internal prototype to avoid an error.
13853    Use char because int might match the return type of a GCC
13854    builtin and then its argument prototype would still apply.  */
13855 #ifdef __cplusplus
13856 extern "C"
13857 #endif
13858 char afopen ();
13859 int
13860 main ()
13861 {
13862 return afopen ();
13863   ;
13864   return 0;
13865 }
13866 _ACEOF
13867 rm -f conftest.$ac_objext conftest$ac_exeext
13868 if { (ac_try="$ac_link"
13869 case "(($ac_try" in
13870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871   *) ac_try_echo=$ac_try;;
13872 esac
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874   (eval "$ac_link") 2>conftest.er1
13875   ac_status=$?
13876   grep -v '^ *+' conftest.er1 >conftest.err
13877   rm -f conftest.er1
13878   cat conftest.err >&5
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); } && {
13881          test -z "$ac_c_werror_flag" ||
13882          test ! -s conftest.err
13883        } && test -s conftest$ac_exeext &&
13884        $as_test_x conftest$ac_exeext; then
13885   ac_cv_lib_s_afopen=yes
13886 else
13887   echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13889
13890         ac_cv_lib_s_afopen=no
13891 fi
13892
13893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13894       conftest$ac_exeext conftest.$ac_ext
13895 LIBS=$ac_check_lib_save_LIBS
13896 fi
13897 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13898 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13899 if test $ac_cv_lib_s_afopen = yes; then
13900
13901         AUTH_LIBS=-ls
13902
13903 cat >>confdefs.h <<\_ACEOF
13904 #define HAVE_AIX_SECURITY 1
13905 _ACEOF
13906
13907
13908 fi
13909
13910
13911 case "$target" in
13912 *-ibm-openedition)
13913         ac_cv_func_getopt=no
13914
13915 cat >>confdefs.h <<\_ACEOF
13916 #define BOTH_STRINGS_H 1
13917 _ACEOF
13918
13919         ;;
13920 esac
13921
13922 ol_link_modules=no
13923 WITH_MODULES_ENABLED=no
13924 if test $ol_enable_modules != no ; then
13925
13926 for ac_header in ltdl.h
13927 do
13928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13930   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13933   echo $ECHO_N "(cached) $ECHO_C" >&6
13934 fi
13935 ac_res=`eval echo '${'$as_ac_Header'}'`
13936                { echo "$as_me:$LINENO: result: $ac_res" >&5
13937 echo "${ECHO_T}$ac_res" >&6; }
13938 else
13939   # Is the header compilable?
13940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13942 cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h.  */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h.  */
13948 $ac_includes_default
13949 #include <$ac_header>
13950 _ACEOF
13951 rm -f conftest.$ac_objext
13952 if { (ac_try="$ac_compile"
13953 case "(($ac_try" in
13954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955   *) ac_try_echo=$ac_try;;
13956 esac
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958   (eval "$ac_compile") 2>conftest.er1
13959   ac_status=$?
13960   grep -v '^ *+' conftest.er1 >conftest.err
13961   rm -f conftest.er1
13962   cat conftest.err >&5
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } && {
13965          test -z "$ac_c_werror_flag" ||
13966          test ! -s conftest.err
13967        } && test -s conftest.$ac_objext; then
13968   ac_header_compiler=yes
13969 else
13970   echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13972
13973         ac_header_compiler=no
13974 fi
13975
13976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13978 echo "${ECHO_T}$ac_header_compiler" >&6; }
13979
13980 # Is the header present?
13981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13983 cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h.  */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h.  */
13989 #include <$ac_header>
13990 _ACEOF
13991 if { (ac_try="$ac_cpp conftest.$ac_ext"
13992 case "(($ac_try" in
13993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994   *) ac_try_echo=$ac_try;;
13995 esac
13996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13998   ac_status=$?
13999   grep -v '^ *+' conftest.er1 >conftest.err
14000   rm -f conftest.er1
14001   cat conftest.err >&5
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); } >/dev/null && {
14004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14005          test ! -s conftest.err
14006        }; then
14007   ac_header_preproc=yes
14008 else
14009   echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.$ac_ext >&5
14011
14012   ac_header_preproc=no
14013 fi
14014
14015 rm -f conftest.err conftest.$ac_ext
14016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14017 echo "${ECHO_T}$ac_header_preproc" >&6; }
14018
14019 # So?  What about this header?
14020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14021   yes:no: )
14022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14026     ac_header_preproc=yes
14027     ;;
14028   no:yes:* )
14029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14041     ( cat <<\_ASBOX
14042 ## --------------------------------------------- ##
14043 ## Report this to <http://www.openldap.org/its/> ##
14044 ## --------------------------------------------- ##
14045 _ASBOX
14046      ) | sed "s/^/$as_me: WARNING:     /" >&2
14047     ;;
14048 esac
14049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14052   echo $ECHO_N "(cached) $ECHO_C" >&6
14053 else
14054   eval "$as_ac_Header=\$ac_header_preproc"
14055 fi
14056 ac_res=`eval echo '${'$as_ac_Header'}'`
14057                { echo "$as_me:$LINENO: result: $ac_res" >&5
14058 echo "${ECHO_T}$ac_res" >&6; }
14059
14060 fi
14061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14062   cat >>confdefs.h <<_ACEOF
14063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14064 _ACEOF
14065
14066 fi
14067
14068 done
14069
14070
14071         if test $ac_cv_header_ltdl_h = no ; then
14072                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
14073 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
14074    { (exit 1); exit 1; }; }
14075         fi
14076
14077         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
14078 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
14079 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
14080   echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082   ac_check_lib_save_LIBS=$LIBS
14083 LIBS="-lltdl  $LIBS"
14084 cat >conftest.$ac_ext <<_ACEOF
14085 /* confdefs.h.  */
14086 _ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h.  */
14090
14091 /* Override any GCC internal prototype to avoid an error.
14092    Use char because int might match the return type of a GCC
14093    builtin and then its argument prototype would still apply.  */
14094 #ifdef __cplusplus
14095 extern "C"
14096 #endif
14097 char lt_dlinit ();
14098 int
14099 main ()
14100 {
14101 return lt_dlinit ();
14102   ;
14103   return 0;
14104 }
14105 _ACEOF
14106 rm -f conftest.$ac_objext conftest$ac_exeext
14107 if { (ac_try="$ac_link"
14108 case "(($ac_try" in
14109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110   *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113   (eval "$ac_link") 2>conftest.er1
14114   ac_status=$?
14115   grep -v '^ *+' conftest.er1 >conftest.err
14116   rm -f conftest.er1
14117   cat conftest.err >&5
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); } && {
14120          test -z "$ac_c_werror_flag" ||
14121          test ! -s conftest.err
14122        } && test -s conftest$ac_exeext &&
14123        $as_test_x conftest$ac_exeext; then
14124   ac_cv_lib_ltdl_lt_dlinit=yes
14125 else
14126   echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14128
14129         ac_cv_lib_ltdl_lt_dlinit=no
14130 fi
14131
14132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14133       conftest$ac_exeext conftest.$ac_ext
14134 LIBS=$ac_check_lib_save_LIBS
14135 fi
14136 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
14137 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
14138 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
14139
14140                 MODULES_LIBS=-lltdl
14141
14142 cat >>confdefs.h <<\_ACEOF
14143 #define HAVE_LIBLTDL 1
14144 _ACEOF
14145
14146
14147 fi
14148
14149
14150         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
14151                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
14152 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
14153    { (exit 1); exit 1; }; }
14154         fi
14155         ol_link_modules=yes
14156         WITH_MODULES_ENABLED=yes
14157
14158 else
14159         for i in $Backends; do
14160                 eval "ol_tmp=\$ol_enable_$i"
14161                 if test $ol_tmp = mod ; then
14162                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
14163 echo "$as_me: WARNING: building static $i backend" >&2;}
14164                         eval "ol_enable_$i=yes"
14165                 fi
14166         done
14167         for i in $Overlays; do
14168                 eval "ol_tmp=\$ol_enable_$i"
14169                 if test $ol_tmp = mod ; then
14170                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
14171 echo "$as_me: WARNING: building static $i overlay" >&2;}
14172                         eval "ol_enable_$i=yes"
14173                 fi
14174         done
14175 fi
14176
14177 # test for EBCDIC
14178 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14179 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14180 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183
14184         cat >conftest.$ac_ext <<_ACEOF
14185 /* confdefs.h.  */
14186 _ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h.  */
14190
14191 #if !('M' == 0xd4)
14192 #include <__ASCII__/generate_error.h>
14193 #endif
14194
14195 _ACEOF
14196 if { (ac_try="$ac_cpp conftest.$ac_ext"
14197 case "(($ac_try" in
14198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199   *) ac_try_echo=$ac_try;;
14200 esac
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14203   ac_status=$?
14204   grep -v '^ *+' conftest.er1 >conftest.err
14205   rm -f conftest.er1
14206   cat conftest.err >&5
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); } >/dev/null && {
14209          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14210          test ! -s conftest.err
14211        }; then
14212   ol_cv_cpp_ebcdic=yes
14213 else
14214   echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217   ol_cv_cpp_ebcdic=no
14218 fi
14219
14220 rm -f conftest.err conftest.$ac_ext
14221 fi
14222 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14223 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14224 if test $ol_cv_cpp_ebcdic = yes ; then
14225
14226 cat >>confdefs.h <<\_ACEOF
14227 #define HAVE_EBCDIC 1
14228 _ACEOF
14229
14230 fi
14231
14232 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14233 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14234 if test "${ol_cv_header_stdc+set}" = set; then
14235   echo $ECHO_N "(cached) $ECHO_C" >&6
14236 else
14237   cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h.  */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h.  */
14243 #include <stdlib.h>
14244 #include <stdarg.h>
14245 #include <string.h>
14246 #include <float.h>
14247 _ACEOF
14248 if { (ac_try="$ac_cpp conftest.$ac_ext"
14249 case "(($ac_try" in
14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251   *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14255   ac_status=$?
14256   grep -v '^ *+' conftest.er1 >conftest.err
14257   rm -f conftest.er1
14258   cat conftest.err >&5
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); } >/dev/null && {
14261          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14262          test ! -s conftest.err
14263        }; then
14264   ol_cv_header_stdc=yes
14265 else
14266   echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269   ol_cv_header_stdc=no
14270 fi
14271
14272 rm -f conftest.err conftest.$ac_ext
14273
14274 if test $ol_cv_header_stdc = yes; then
14275   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14276 cat >conftest.$ac_ext <<_ACEOF
14277 /* confdefs.h.  */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h.  */
14282 #include <string.h>
14283
14284 _ACEOF
14285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14286   $EGREP "memchr" >/dev/null 2>&1; then
14287   :
14288 else
14289   ol_cv_header_stdc=no
14290 fi
14291 rm -f conftest*
14292
14293 fi
14294
14295 if test $ol_cv_header_stdc = yes; then
14296   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14297 cat >conftest.$ac_ext <<_ACEOF
14298 /* confdefs.h.  */
14299 _ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h.  */
14303 #include <stdlib.h>
14304
14305 _ACEOF
14306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14307   $EGREP "free" >/dev/null 2>&1; then
14308   :
14309 else
14310   ol_cv_header_stdc=no
14311 fi
14312 rm -f conftest*
14313
14314 fi
14315
14316 if test $ol_cv_header_stdc = yes; then
14317   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14318 if test "$cross_compiling" = yes; then
14319   :
14320 else
14321   cat >conftest.$ac_ext <<_ACEOF
14322 /* confdefs.h.  */
14323 _ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h.  */
14327 #include <ctype.h>
14328 #ifndef HAVE_EBCDIC
14329 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14330 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14331 #else
14332 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14333                 || ('j' <= (c) && (c) <= 'r') \
14334                 || ('s' <= (c) && (c) <= 'z'))
14335 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14336 #endif
14337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14338 int main () { int i; for (i = 0; i < 256; i++)
14339 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14340 exit (0); }
14341
14342 _ACEOF
14343 rm -f conftest$ac_exeext
14344 if { (ac_try="$ac_link"
14345 case "(($ac_try" in
14346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347   *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350   (eval "$ac_link") 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14354   { (case "(($ac_try" in
14355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356   *) ac_try_echo=$ac_try;;
14357 esac
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359   (eval "$ac_try") 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); }; }; then
14363   :
14364 else
14365   echo "$as_me: program exited with status $ac_status" >&5
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369 ( exit $ac_status )
14370 ol_cv_header_stdc=no
14371 fi
14372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14373 fi
14374
14375
14376 fi
14377 fi
14378 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14379 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14380 if test $ol_cv_header_stdc = yes; then
14381   cat >>confdefs.h <<\_ACEOF
14382 #define STDC_HEADERS 1
14383 _ACEOF
14384
14385 fi
14386 ac_cv_header_stdc=disable
14387
14388
14389 if test $ol_cv_header_stdc != yes; then
14390         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14391 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14392 fi
14393
14394
14395
14396
14397
14398
14399 ac_header_dirent=no
14400 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14401   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14402 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14403 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407   cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 #include <sys/types.h>
14414 #include <$ac_hdr>
14415
14416 int
14417 main ()
14418 {
14419 if ((DIR *) 0)
14420 return 0;
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (ac_try="$ac_compile"
14427 case "(($ac_try" in
14428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429   *) ac_try_echo=$ac_try;;
14430 esac
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432   (eval "$ac_compile") 2>conftest.er1
14433   ac_status=$?
14434   grep -v '^ *+' conftest.er1 >conftest.err
14435   rm -f conftest.er1
14436   cat conftest.err >&5
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); } && {
14439          test -z "$ac_c_werror_flag" ||
14440          test ! -s conftest.err
14441        } && test -s conftest.$ac_objext; then
14442   eval "$as_ac_Header=yes"
14443 else
14444   echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447         eval "$as_ac_Header=no"
14448 fi
14449
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451 fi
14452 ac_res=`eval echo '${'$as_ac_Header'}'`
14453                { echo "$as_me:$LINENO: result: $ac_res" >&5
14454 echo "${ECHO_T}$ac_res" >&6; }
14455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14456   cat >>confdefs.h <<_ACEOF
14457 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14458 _ACEOF
14459
14460 ac_header_dirent=$ac_hdr; break
14461 fi
14462
14463 done
14464 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14465 if test $ac_header_dirent = dirent.h; then
14466   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14467 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14468 if test "${ac_cv_search_opendir+set}" = set; then
14469   echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471   ac_func_search_save_LIBS=$LIBS
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h.  */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h.  */
14478
14479 /* Override any GCC internal prototype to avoid an error.
14480    Use char because int might match the return type of a GCC
14481    builtin and then its argument prototype would still apply.  */
14482 #ifdef __cplusplus
14483 extern "C"
14484 #endif
14485 char opendir ();
14486 int
14487 main ()
14488 {
14489 return opendir ();
14490   ;
14491   return 0;
14492 }
14493 _ACEOF
14494 for ac_lib in '' dir; do
14495   if test -z "$ac_lib"; then
14496     ac_res="none required"
14497   else
14498     ac_res=-l$ac_lib
14499     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14500   fi
14501   rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (ac_try="$ac_link"
14503 case "(($ac_try" in
14504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14505   *) ac_try_echo=$ac_try;;
14506 esac
14507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14508   (eval "$ac_link") 2>conftest.er1
14509   ac_status=$?
14510   grep -v '^ *+' conftest.er1 >conftest.err
14511   rm -f conftest.er1
14512   cat conftest.err >&5
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); } && {
14515          test -z "$ac_c_werror_flag" ||
14516          test ! -s conftest.err
14517        } && test -s conftest$ac_exeext &&
14518        $as_test_x conftest$ac_exeext; then
14519   ac_cv_search_opendir=$ac_res
14520 else
14521   echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14523
14524
14525 fi
14526
14527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14528       conftest$ac_exeext
14529   if test "${ac_cv_search_opendir+set}" = set; then
14530   break
14531 fi
14532 done
14533 if test "${ac_cv_search_opendir+set}" = set; then
14534   :
14535 else
14536   ac_cv_search_opendir=no
14537 fi
14538 rm conftest.$ac_ext
14539 LIBS=$ac_func_search_save_LIBS
14540 fi
14541 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14542 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14543 ac_res=$ac_cv_search_opendir
14544 if test "$ac_res" != no; then
14545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14546
14547 fi
14548
14549 else
14550   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14551 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14552 if test "${ac_cv_search_opendir+set}" = set; then
14553   echo $ECHO_N "(cached) $ECHO_C" >&6
14554 else
14555   ac_func_search_save_LIBS=$LIBS
14556 cat >conftest.$ac_ext <<_ACEOF
14557 /* confdefs.h.  */
14558 _ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h.  */
14562
14563 /* Override any GCC internal prototype to avoid an error.
14564    Use char because int might match the return type of a GCC
14565    builtin and then its argument prototype would still apply.  */
14566 #ifdef __cplusplus
14567 extern "C"
14568 #endif
14569 char opendir ();
14570 int
14571 main ()
14572 {
14573 return opendir ();
14574   ;
14575   return 0;
14576 }
14577 _ACEOF
14578 for ac_lib in '' x; do
14579   if test -z "$ac_lib"; then
14580     ac_res="none required"
14581   else
14582     ac_res=-l$ac_lib
14583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14584   fi
14585   rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (ac_try="$ac_link"
14587 case "(($ac_try" in
14588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589   *) ac_try_echo=$ac_try;;
14590 esac
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592   (eval "$ac_link") 2>conftest.er1
14593   ac_status=$?
14594   grep -v '^ *+' conftest.er1 >conftest.err
14595   rm -f conftest.er1
14596   cat conftest.err >&5
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); } && {
14599          test -z "$ac_c_werror_flag" ||
14600          test ! -s conftest.err
14601        } && test -s conftest$ac_exeext &&
14602        $as_test_x conftest$ac_exeext; then
14603   ac_cv_search_opendir=$ac_res
14604 else
14605   echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14607
14608
14609 fi
14610
14611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14612       conftest$ac_exeext
14613   if test "${ac_cv_search_opendir+set}" = set; then
14614   break
14615 fi
14616 done
14617 if test "${ac_cv_search_opendir+set}" = set; then
14618   :
14619 else
14620   ac_cv_search_opendir=no
14621 fi
14622 rm conftest.$ac_ext
14623 LIBS=$ac_func_search_save_LIBS
14624 fi
14625 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14626 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14627 ac_res=$ac_cv_search_opendir
14628 if test "$ac_res" != no; then
14629   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14630
14631 fi
14632
14633 fi
14634
14635 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14636 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14637 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14638   echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640   cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h.  */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h.  */
14646 #include <sys/types.h>
14647 #include <sys/wait.h>
14648 #ifndef WEXITSTATUS
14649 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14650 #endif
14651 #ifndef WIFEXITED
14652 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14653 #endif
14654
14655 int
14656 main ()
14657 {
14658   int s;
14659   wait (&s);
14660   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14661   ;
14662   return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest.$ac_objext
14666 if { (ac_try="$ac_compile"
14667 case "(($ac_try" in
14668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669   *) ac_try_echo=$ac_try;;
14670 esac
14671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672   (eval "$ac_compile") 2>conftest.er1
14673   ac_status=$?
14674   grep -v '^ *+' conftest.er1 >conftest.err
14675   rm -f conftest.er1
14676   cat conftest.err >&5
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); } && {
14679          test -z "$ac_c_werror_flag" ||
14680          test ! -s conftest.err
14681        } && test -s conftest.$ac_objext; then
14682   ac_cv_header_sys_wait_h=yes
14683 else
14684   echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14686
14687         ac_cv_header_sys_wait_h=no
14688 fi
14689
14690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14691 fi
14692 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14693 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14694 if test $ac_cv_header_sys_wait_h = yes; then
14695
14696 cat >>confdefs.h <<\_ACEOF
14697 #define HAVE_SYS_WAIT_H 1
14698 _ACEOF
14699
14700 fi
14701
14702 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14703 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14704 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14705   echo $ECHO_N "(cached) $ECHO_C" >&6
14706 else
14707   cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h.  */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h.  */
14713 #include <sys/types.h>
14714 #include <termios.h>
14715 #ifdef TIOCGWINSZ
14716   yes
14717 #endif
14718
14719 _ACEOF
14720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14721   $EGREP "yes" >/dev/null 2>&1; then
14722   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14723 else
14724   ac_cv_sys_tiocgwinsz_in_termios_h=no
14725 fi
14726 rm -f conftest*
14727
14728 fi
14729 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14730 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14731
14732 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14733   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14734 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14735 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14736   echo $ECHO_N "(cached) $ECHO_C" >&6
14737 else
14738   cat >conftest.$ac_ext <<_ACEOF
14739 /* confdefs.h.  */
14740 _ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h.  */
14744 #include <sys/types.h>
14745 #include <sys/ioctl.h>
14746 #ifdef TIOCGWINSZ
14747   yes
14748 #endif
14749
14750 _ACEOF
14751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14752   $EGREP "yes" >/dev/null 2>&1; then
14753   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14754 else
14755   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14756 fi
14757 rm -f conftest*
14758
14759 fi
14760 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14761 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14762
14763   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14764
14765 cat >>confdefs.h <<\_ACEOF
14766 #define GWINSZ_IN_SYS_IOCTL 1
14767 _ACEOF
14768
14769   fi
14770 fi
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820 for ac_header in \
14821         arpa/inet.h             \
14822         arpa/nameser.h  \
14823         assert.h                \
14824         bits/types.h    \
14825         conio.h                 \
14826         crypt.h                 \
14827         direct.h                \
14828         errno.h                 \
14829         fcntl.h                 \
14830         filio.h                 \
14831         getopt.h                \
14832         grp.h                   \
14833         io.h                    \
14834         libutil.h               \
14835         limits.h                \
14836         locale.h                \
14837         malloc.h                \
14838         memory.h                \
14839         psap.h                  \
14840         pwd.h                   \
14841         process.h               \
14842         sgtty.h                 \
14843         shadow.h                \
14844         stddef.h                \
14845         string.h                \
14846         strings.h               \
14847         sysexits.h              \
14848         sys/file.h              \
14849         sys/filio.h             \
14850         sys/fstyp.h             \
14851         sys/errno.h             \
14852         sys/ioctl.h             \
14853         sys/param.h             \
14854         sys/privgrp.h   \
14855         sys/resource.h  \
14856         sys/select.h    \
14857         sys/socket.h    \
14858         sys/stat.h              \
14859         sys/syslog.h    \
14860         sys/time.h              \
14861         sys/types.h             \
14862         sys/uio.h               \
14863         sys/vmount.h    \
14864         syslog.h                \
14865         termios.h               \
14866         unistd.h                \
14867         utime.h                 \
14868
14869 do
14870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14872   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14875   echo $ECHO_N "(cached) $ECHO_C" >&6
14876 fi
14877 ac_res=`eval echo '${'$as_ac_Header'}'`
14878                { echo "$as_me:$LINENO: result: $ac_res" >&5
14879 echo "${ECHO_T}$ac_res" >&6; }
14880 else
14881   # Is the header compilable?
14882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14884 cat >conftest.$ac_ext <<_ACEOF
14885 /* confdefs.h.  */
14886 _ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h.  */
14890 $ac_includes_default
14891 #include <$ac_header>
14892 _ACEOF
14893 rm -f conftest.$ac_objext
14894 if { (ac_try="$ac_compile"
14895 case "(($ac_try" in
14896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897   *) ac_try_echo=$ac_try;;
14898 esac
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900   (eval "$ac_compile") 2>conftest.er1
14901   ac_status=$?
14902   grep -v '^ *+' conftest.er1 >conftest.err
14903   rm -f conftest.er1
14904   cat conftest.err >&5
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); } && {
14907          test -z "$ac_c_werror_flag" ||
14908          test ! -s conftest.err
14909        } && test -s conftest.$ac_objext; then
14910   ac_header_compiler=yes
14911 else
14912   echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14914
14915         ac_header_compiler=no
14916 fi
14917
14918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14920 echo "${ECHO_T}$ac_header_compiler" >&6; }
14921
14922 # Is the header present?
14923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14925 cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h.  */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h.  */
14931 #include <$ac_header>
14932 _ACEOF
14933 if { (ac_try="$ac_cpp conftest.$ac_ext"
14934 case "(($ac_try" in
14935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936   *) ac_try_echo=$ac_try;;
14937 esac
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14940   ac_status=$?
14941   grep -v '^ *+' conftest.er1 >conftest.err
14942   rm -f conftest.er1
14943   cat conftest.err >&5
14944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945   (exit $ac_status); } >/dev/null && {
14946          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14947          test ! -s conftest.err
14948        }; then
14949   ac_header_preproc=yes
14950 else
14951   echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954   ac_header_preproc=no
14955 fi
14956
14957 rm -f conftest.err conftest.$ac_ext
14958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14959 echo "${ECHO_T}$ac_header_preproc" >&6; }
14960
14961 # So?  What about this header?
14962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14963   yes:no: )
14964     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14968     ac_header_preproc=yes
14969     ;;
14970   no:yes:* )
14971     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14973     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14974 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14975     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14977     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14978 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14981     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14983     ( cat <<\_ASBOX
14984 ## --------------------------------------------- ##
14985 ## Report this to <http://www.openldap.org/its/> ##
14986 ## --------------------------------------------- ##
14987 _ASBOX
14988      ) | sed "s/^/$as_me: WARNING:     /" >&2
14989     ;;
14990 esac
14991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994   echo $ECHO_N "(cached) $ECHO_C" >&6
14995 else
14996   eval "$as_ac_Header=\$ac_header_preproc"
14997 fi
14998 ac_res=`eval echo '${'$as_ac_Header'}'`
14999                { echo "$as_me:$LINENO: result: $ac_res" >&5
15000 echo "${ECHO_T}$ac_res" >&6; }
15001
15002 fi
15003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15004   cat >>confdefs.h <<_ACEOF
15005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15006 _ACEOF
15007
15008 fi
15009
15010 done
15011
15012
15013 if test "$ac_cv_mingw32" = yes \
15014         -o "$ac_cv_interix" = yes \
15015         -o "$ol_cv_msvc" = yes
15016 then
15017
15018
15019 for ac_header in winsock.h winsock2.h
15020 do
15021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15023   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15026   echo $ECHO_N "(cached) $ECHO_C" >&6
15027 fi
15028 ac_res=`eval echo '${'$as_ac_Header'}'`
15029                { echo "$as_me:$LINENO: result: $ac_res" >&5
15030 echo "${ECHO_T}$ac_res" >&6; }
15031 else
15032   # Is the header compilable?
15033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15035 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h.  */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h.  */
15041 $ac_includes_default
15042 #include <$ac_header>
15043 _ACEOF
15044 rm -f conftest.$ac_objext
15045 if { (ac_try="$ac_compile"
15046 case "(($ac_try" in
15047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048   *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051   (eval "$ac_compile") 2>conftest.er1
15052   ac_status=$?
15053   grep -v '^ *+' conftest.er1 >conftest.err
15054   rm -f conftest.er1
15055   cat conftest.err >&5
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); } && {
15058          test -z "$ac_c_werror_flag" ||
15059          test ! -s conftest.err
15060        } && test -s conftest.$ac_objext; then
15061   ac_header_compiler=yes
15062 else
15063   echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066         ac_header_compiler=no
15067 fi
15068
15069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15071 echo "${ECHO_T}$ac_header_compiler" >&6; }
15072
15073 # Is the header present?
15074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h.  */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h.  */
15082 #include <$ac_header>
15083 _ACEOF
15084 if { (ac_try="$ac_cpp conftest.$ac_ext"
15085 case "(($ac_try" in
15086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087   *) ac_try_echo=$ac_try;;
15088 esac
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15091   ac_status=$?
15092   grep -v '^ *+' conftest.er1 >conftest.err
15093   rm -f conftest.er1
15094   cat conftest.err >&5
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); } >/dev/null && {
15097          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15098          test ! -s conftest.err
15099        }; then
15100   ac_header_preproc=yes
15101 else
15102   echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105   ac_header_preproc=no
15106 fi
15107
15108 rm -f conftest.err conftest.$ac_ext
15109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15110 echo "${ECHO_T}$ac_header_preproc" >&6; }
15111
15112 # So?  What about this header?
15113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15114   yes:no: )
15115     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15119     ac_header_preproc=yes
15120     ;;
15121   no:yes:* )
15122     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15124     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15125 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15126     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15128     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15129 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15132     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15134     ( cat <<\_ASBOX
15135 ## --------------------------------------------- ##
15136 ## Report this to <http://www.openldap.org/its/> ##
15137 ## --------------------------------------------- ##
15138 _ASBOX
15139      ) | sed "s/^/$as_me: WARNING:     /" >&2
15140     ;;
15141 esac
15142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15145   echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147   eval "$as_ac_Header=\$ac_header_preproc"
15148 fi
15149 ac_res=`eval echo '${'$as_ac_Header'}'`
15150                { echo "$as_me:$LINENO: result: $ac_res" >&5
15151 echo "${ECHO_T}$ac_res" >&6; }
15152
15153 fi
15154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15155   cat >>confdefs.h <<_ACEOF
15156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15157 _ACEOF
15158
15159 fi
15160
15161 done
15162
15163 fi
15164
15165
15166 for ac_header in resolv.h
15167 do
15168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15172   echo $ECHO_N "(cached) $ECHO_C" >&6
15173 else
15174   cat >conftest.$ac_ext <<_ACEOF
15175 /* confdefs.h.  */
15176 _ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h.  */
15180 $ac_includes_default
15181 #include <netinet/in.h>
15182
15183
15184 #include <$ac_header>
15185 _ACEOF
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190   *) ac_try_echo=$ac_try;;
15191 esac
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193   (eval "$ac_compile") 2>conftest.er1
15194   ac_status=$?
15195   grep -v '^ *+' conftest.er1 >conftest.err
15196   rm -f conftest.er1
15197   cat conftest.err >&5
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } && {
15200          test -z "$ac_c_werror_flag" ||
15201          test ! -s conftest.err
15202        } && test -s conftest.$ac_objext; then
15203   eval "$as_ac_Header=yes"
15204 else
15205   echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15207
15208         eval "$as_ac_Header=no"
15209 fi
15210
15211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15212 fi
15213 ac_res=`eval echo '${'$as_ac_Header'}'`
15214                { echo "$as_me:$LINENO: result: $ac_res" >&5
15215 echo "${ECHO_T}$ac_res" >&6; }
15216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15217   cat >>confdefs.h <<_ACEOF
15218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15219 _ACEOF
15220
15221 fi
15222
15223 done
15224
15225
15226
15227 for ac_header in netinet/tcp.h
15228 do
15229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233   echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235   cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241 $ac_includes_default
15242 #include <netinet/in.h>
15243
15244
15245 #include <$ac_header>
15246 _ACEOF
15247 rm -f conftest.$ac_objext
15248 if { (ac_try="$ac_compile"
15249 case "(($ac_try" in
15250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251   *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254   (eval "$ac_compile") 2>conftest.er1
15255   ac_status=$?
15256   grep -v '^ *+' conftest.er1 >conftest.err
15257   rm -f conftest.er1
15258   cat conftest.err >&5
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); } && {
15261          test -z "$ac_c_werror_flag" ||
15262          test ! -s conftest.err
15263        } && test -s conftest.$ac_objext; then
15264   eval "$as_ac_Header=yes"
15265 else
15266   echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15268
15269         eval "$as_ac_Header=no"
15270 fi
15271
15272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15273 fi
15274 ac_res=`eval echo '${'$as_ac_Header'}'`
15275                { echo "$as_me:$LINENO: result: $ac_res" >&5
15276 echo "${ECHO_T}$ac_res" >&6; }
15277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15278   cat >>confdefs.h <<_ACEOF
15279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15280 _ACEOF
15281
15282 fi
15283
15284 done
15285
15286
15287
15288 for ac_header in sys/ucred.h
15289 do
15290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15294   echo $ECHO_N "(cached) $ECHO_C" >&6
15295 else
15296   cat >conftest.$ac_ext <<_ACEOF
15297 /* confdefs.h.  */
15298 _ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h.  */
15302 $ac_includes_default
15303 #ifdef HAVE_SYS_PARAM_H
15304 #include <sys/param.h>
15305 #endif
15306
15307
15308 #include <$ac_header>
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (ac_try="$ac_compile"
15312 case "(($ac_try" in
15313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314   *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317   (eval "$ac_compile") 2>conftest.er1
15318   ac_status=$?
15319   grep -v '^ *+' conftest.er1 >conftest.err
15320   rm -f conftest.er1
15321   cat conftest.err >&5
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); } && {
15324          test -z "$ac_c_werror_flag" ||
15325          test ! -s conftest.err
15326        } && test -s conftest.$ac_objext; then
15327   eval "$as_ac_Header=yes"
15328 else
15329   echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15331
15332         eval "$as_ac_Header=no"
15333 fi
15334
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15336 fi
15337 ac_res=`eval echo '${'$as_ac_Header'}'`
15338                { echo "$as_me:$LINENO: result: $ac_res" >&5
15339 echo "${ECHO_T}$ac_res" >&6; }
15340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15341   cat >>confdefs.h <<_ACEOF
15342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15343 _ACEOF
15344
15345 fi
15346
15347 done
15348
15349
15350
15351
15352
15353 for ac_func in sigaction sigset
15354 do
15355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15359   echo $ECHO_N "(cached) $ECHO_C" >&6
15360 else
15361   cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h.  */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h.  */
15367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15369 #define $ac_func innocuous_$ac_func
15370
15371 /* System header to define __stub macros and hopefully few prototypes,
15372     which can conflict with char $ac_func (); below.
15373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15374     <limits.h> exists even on freestanding compilers.  */
15375
15376 #ifdef __STDC__
15377 # include <limits.h>
15378 #else
15379 # include <assert.h>
15380 #endif
15381
15382 #undef $ac_func
15383
15384 /* Override any GCC internal prototype to avoid an error.
15385    Use char because int might match the return type of a GCC
15386    builtin and then its argument prototype would still apply.  */
15387 #ifdef __cplusplus
15388 extern "C"
15389 #endif
15390 char $ac_func ();
15391 /* The GNU C library defines this for functions which it implements
15392     to always fail with ENOSYS.  Some functions are actually named
15393     something starting with __ and the normal name is an alias.  */
15394 #if defined __stub_$ac_func || defined __stub___$ac_func
15395 choke me
15396 #endif
15397
15398 int
15399 main ()
15400 {
15401 return $ac_func ();
15402   ;
15403   return 0;
15404 }
15405 _ACEOF
15406 rm -f conftest.$ac_objext conftest$ac_exeext
15407 if { (ac_try="$ac_link"
15408 case "(($ac_try" in
15409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410   *) ac_try_echo=$ac_try;;
15411 esac
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413   (eval "$ac_link") 2>conftest.er1
15414   ac_status=$?
15415   grep -v '^ *+' conftest.er1 >conftest.err
15416   rm -f conftest.er1
15417   cat conftest.err >&5
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); } && {
15420          test -z "$ac_c_werror_flag" ||
15421          test ! -s conftest.err
15422        } && test -s conftest$ac_exeext &&
15423        $as_test_x conftest$ac_exeext; then
15424   eval "$as_ac_var=yes"
15425 else
15426   echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15428
15429         eval "$as_ac_var=no"
15430 fi
15431
15432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15433       conftest$ac_exeext conftest.$ac_ext
15434 fi
15435 ac_res=`eval echo '${'$as_ac_var'}'`
15436                { echo "$as_me:$LINENO: result: $ac_res" >&5
15437 echo "${ECHO_T}$ac_res" >&6; }
15438 if test `eval echo '${'$as_ac_var'}'` = yes; then
15439   cat >>confdefs.h <<_ACEOF
15440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15441 _ACEOF
15442
15443 fi
15444 done
15445
15446
15447 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15448
15449 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15450 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15451 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15452   echo $ECHO_N "(cached) $ECHO_C" >&6
15453 else
15454   ac_check_lib_save_LIBS=$LIBS
15455 LIBS="-lV3  $LIBS"
15456 cat >conftest.$ac_ext <<_ACEOF
15457 /* confdefs.h.  */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h.  */
15462
15463 /* Override any GCC internal prototype to avoid an error.
15464    Use char because int might match the return type of a GCC
15465    builtin and then its argument prototype would still apply.  */
15466 #ifdef __cplusplus
15467 extern "C"
15468 #endif
15469 char sigset ();
15470 int
15471 main ()
15472 {
15473 return sigset ();
15474   ;
15475   return 0;
15476 }
15477 _ACEOF
15478 rm -f conftest.$ac_objext conftest$ac_exeext
15479 if { (ac_try="$ac_link"
15480 case "(($ac_try" in
15481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15482   *) ac_try_echo=$ac_try;;
15483 esac
15484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15485   (eval "$ac_link") 2>conftest.er1
15486   ac_status=$?
15487   grep -v '^ *+' conftest.er1 >conftest.err
15488   rm -f conftest.er1
15489   cat conftest.err >&5
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); } && {
15492          test -z "$ac_c_werror_flag" ||
15493          test ! -s conftest.err
15494        } && test -s conftest$ac_exeext &&
15495        $as_test_x conftest$ac_exeext; then
15496   ac_cv_lib_V3_sigset=yes
15497 else
15498   echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15500
15501         ac_cv_lib_V3_sigset=no
15502 fi
15503
15504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15505       conftest$ac_exeext conftest.$ac_ext
15506 LIBS=$ac_check_lib_save_LIBS
15507 fi
15508 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15509 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15510 if test $ac_cv_lib_V3_sigset = yes; then
15511   cat >>confdefs.h <<_ACEOF
15512 #define HAVE_LIBV3 1
15513 _ACEOF
15514
15515   LIBS="-lV3 $LIBS"
15516
15517 fi
15518
15519 fi
15520
15521 if test $ol_cv_msvc = yes ; then
15522    ol_cv_winsock=yes
15523 fi
15524
15525 if test "$ac_cv_header_winsock_h" = yes; then
15526         { echo "$as_me:$LINENO: checking for winsock" >&5
15527 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15528 if test "${ol_cv_winsock+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531
15532         save_LIBS="$LIBS"
15533         for curlib in none ws2_32 wsock32; do
15534                 if test $curlib != none ; then
15535                 LIBS="$save_LIBS -l$curlib"
15536                 fi
15537                 cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h.  */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h.  */
15543 #include <winsock.h>
15544
15545 int
15546 main ()
15547 {
15548
15549                         socket(0,0,0);
15550                         select(0,NULL,NULL,NULL,NULL);
15551                         closesocket(0);
15552                         gethostname(NULL,0);
15553
15554   ;
15555   return 0;
15556 }
15557 _ACEOF
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (ac_try="$ac_link"
15560 case "(($ac_try" in
15561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562   *) ac_try_echo=$ac_try;;
15563 esac
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565   (eval "$ac_link") 2>conftest.er1
15566   ac_status=$?
15567   grep -v '^ *+' conftest.er1 >conftest.err
15568   rm -f conftest.er1
15569   cat conftest.err >&5
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); } && {
15572          test -z "$ac_c_werror_flag" ||
15573          test ! -s conftest.err
15574        } && test -s conftest$ac_exeext &&
15575        $as_test_x conftest$ac_exeext; then
15576   ol_cv_winsock=$curlib
15577 else
15578   echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15580
15581         ol_cv_winsock=no
15582 fi
15583
15584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585       conftest$ac_exeext conftest.$ac_ext
15586
15587                 test "$ol_cv_winsock" != no && break
15588         done
15589         LIBS="$save_LIBS"
15590
15591 fi
15592 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15593 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15594
15595         if test $ol_cv_winsock != no ; then
15596
15597 cat >>confdefs.h <<\_ACEOF
15598 #define HAVE_WINSOCK 1
15599 _ACEOF
15600
15601         ac_cv_func_socket=yes
15602         ac_cv_func_select=yes
15603         ac_cv_func_closesocket=yes
15604         ac_cv_func_gethostname=yes
15605
15606                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15607                 LIBS="$LIBS -l$ol_cv_winsock"
15608                 fi
15609
15610         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15611
15612 cat >>confdefs.h <<\_ACEOF
15613 #define HAVE_WINSOCK2 1
15614 _ACEOF
15615
15616         fi
15617         fi
15618 fi
15619
15620
15621 { echo "$as_me:$LINENO: checking for socket" >&5
15622 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15623 if test "${ac_cv_func_socket+set}" = set; then
15624   echo $ECHO_N "(cached) $ECHO_C" >&6
15625 else
15626   cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15634 #define socket innocuous_socket
15635
15636 /* System header to define __stub macros and hopefully few prototypes,
15637     which can conflict with char socket (); below.
15638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15639     <limits.h> exists even on freestanding compilers.  */
15640
15641 #ifdef __STDC__
15642 # include <limits.h>
15643 #else
15644 # include <assert.h>
15645 #endif
15646
15647 #undef socket
15648
15649 /* Override any GCC internal prototype to avoid an error.
15650    Use char because int might match the return type of a GCC
15651    builtin and then its argument prototype would still apply.  */
15652 #ifdef __cplusplus
15653 extern "C"
15654 #endif
15655 char socket ();
15656 /* The GNU C library defines this for functions which it implements
15657     to always fail with ENOSYS.  Some functions are actually named
15658     something starting with __ and the normal name is an alias.  */
15659 #if defined __stub_socket || defined __stub___socket
15660 choke me
15661 #endif
15662
15663 int
15664 main ()
15665 {
15666 return socket ();
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (ac_try="$ac_link"
15673 case "(($ac_try" in
15674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675   *) ac_try_echo=$ac_try;;
15676 esac
15677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15678   (eval "$ac_link") 2>conftest.er1
15679   ac_status=$?
15680   grep -v '^ *+' conftest.er1 >conftest.err
15681   rm -f conftest.er1
15682   cat conftest.err >&5
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } && {
15685          test -z "$ac_c_werror_flag" ||
15686          test ! -s conftest.err
15687        } && test -s conftest$ac_exeext &&
15688        $as_test_x conftest$ac_exeext; then
15689   ac_cv_func_socket=yes
15690 else
15691   echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15693
15694         ac_cv_func_socket=no
15695 fi
15696
15697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15698       conftest$ac_exeext conftest.$ac_ext
15699 fi
15700 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15701 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15702 if test $ac_cv_func_socket = yes; then
15703   :
15704 else
15705
15706
15707 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15708 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15709 if test "${ac_cv_lib_socket_main+set}" = set; then
15710   echo $ECHO_N "(cached) $ECHO_C" >&6
15711 else
15712   ac_check_lib_save_LIBS=$LIBS
15713 LIBS="-lsocket  $LIBS"
15714 cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h.  */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h.  */
15720
15721
15722 int
15723 main ()
15724 {
15725 return main ();
15726   ;
15727   return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (ac_try="$ac_link"
15732 case "(($ac_try" in
15733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734   *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737   (eval "$ac_link") 2>conftest.er1
15738   ac_status=$?
15739   grep -v '^ *+' conftest.er1 >conftest.err
15740   rm -f conftest.er1
15741   cat conftest.err >&5
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); } && {
15744          test -z "$ac_c_werror_flag" ||
15745          test ! -s conftest.err
15746        } && test -s conftest$ac_exeext &&
15747        $as_test_x conftest$ac_exeext; then
15748   ac_cv_lib_socket_main=yes
15749 else
15750   echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753         ac_cv_lib_socket_main=no
15754 fi
15755
15756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15757       conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15759 fi
15760 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15761 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15762 if test $ac_cv_lib_socket_main = yes; then
15763   cat >>confdefs.h <<_ACEOF
15764 #define HAVE_LIBSOCKET 1
15765 _ACEOF
15766
15767   LIBS="-lsocket $LIBS"
15768
15769 fi
15770
15771
15772 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15773 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15774 if test "${ac_cv_lib_net_main+set}" = set; then
15775   echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777   ac_check_lib_save_LIBS=$LIBS
15778 LIBS="-lnet  $LIBS"
15779 cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h.  */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h.  */
15785
15786
15787 int
15788 main ()
15789 {
15790 return main ();
15791   ;
15792   return 0;
15793 }
15794 _ACEOF
15795 rm -f conftest.$ac_objext conftest$ac_exeext
15796 if { (ac_try="$ac_link"
15797 case "(($ac_try" in
15798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799   *) ac_try_echo=$ac_try;;
15800 esac
15801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802   (eval "$ac_link") 2>conftest.er1
15803   ac_status=$?
15804   grep -v '^ *+' conftest.er1 >conftest.err
15805   rm -f conftest.er1
15806   cat conftest.err >&5
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); } && {
15809          test -z "$ac_c_werror_flag" ||
15810          test ! -s conftest.err
15811        } && test -s conftest$ac_exeext &&
15812        $as_test_x conftest$ac_exeext; then
15813   ac_cv_lib_net_main=yes
15814 else
15815   echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15817
15818         ac_cv_lib_net_main=no
15819 fi
15820
15821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15822       conftest$ac_exeext conftest.$ac_ext
15823 LIBS=$ac_check_lib_save_LIBS
15824 fi
15825 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15826 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15827 if test $ac_cv_lib_net_main = yes; then
15828   cat >>confdefs.h <<_ACEOF
15829 #define HAVE_LIBNET 1
15830 _ACEOF
15831
15832   LIBS="-lnet $LIBS"
15833
15834 fi
15835
15836
15837 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15838 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15839 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15840   echo $ECHO_N "(cached) $ECHO_C" >&6
15841 else
15842   ac_check_lib_save_LIBS=$LIBS
15843 LIBS="-lnsl_s  $LIBS"
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h.  */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h.  */
15850
15851
15852 int
15853 main ()
15854 {
15855 return main ();
15856   ;
15857   return 0;
15858 }
15859 _ACEOF
15860 rm -f conftest.$ac_objext conftest$ac_exeext
15861 if { (ac_try="$ac_link"
15862 case "(($ac_try" in
15863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864   *) ac_try_echo=$ac_try;;
15865 esac
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867   (eval "$ac_link") 2>conftest.er1
15868   ac_status=$?
15869   grep -v '^ *+' conftest.er1 >conftest.err
15870   rm -f conftest.er1
15871   cat conftest.err >&5
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); } && {
15874          test -z "$ac_c_werror_flag" ||
15875          test ! -s conftest.err
15876        } && test -s conftest$ac_exeext &&
15877        $as_test_x conftest$ac_exeext; then
15878   ac_cv_lib_nsl_s_main=yes
15879 else
15880   echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15882
15883         ac_cv_lib_nsl_s_main=no
15884 fi
15885
15886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15887       conftest$ac_exeext conftest.$ac_ext
15888 LIBS=$ac_check_lib_save_LIBS
15889 fi
15890 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15891 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15892 if test $ac_cv_lib_nsl_s_main = yes; then
15893   cat >>confdefs.h <<_ACEOF
15894 #define HAVE_LIBNSL_S 1
15895 _ACEOF
15896
15897   LIBS="-lnsl_s $LIBS"
15898
15899 fi
15900
15901
15902 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15903 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15904 if test "${ac_cv_lib_nsl_main+set}" = set; then
15905   echo $ECHO_N "(cached) $ECHO_C" >&6
15906 else
15907   ac_check_lib_save_LIBS=$LIBS
15908 LIBS="-lnsl  $LIBS"
15909 cat >conftest.$ac_ext <<_ACEOF
15910 /* confdefs.h.  */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h.  */
15915
15916
15917 int
15918 main ()
15919 {
15920 return main ();
15921   ;
15922   return 0;
15923 }
15924 _ACEOF
15925 rm -f conftest.$ac_objext conftest$ac_exeext
15926 if { (ac_try="$ac_link"
15927 case "(($ac_try" in
15928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929   *) ac_try_echo=$ac_try;;
15930 esac
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932   (eval "$ac_link") 2>conftest.er1
15933   ac_status=$?
15934   grep -v '^ *+' conftest.er1 >conftest.err
15935   rm -f conftest.er1
15936   cat conftest.err >&5
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); } && {
15939          test -z "$ac_c_werror_flag" ||
15940          test ! -s conftest.err
15941        } && test -s conftest$ac_exeext &&
15942        $as_test_x conftest$ac_exeext; then
15943   ac_cv_lib_nsl_main=yes
15944 else
15945   echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15947
15948         ac_cv_lib_nsl_main=no
15949 fi
15950
15951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15952       conftest$ac_exeext conftest.$ac_ext
15953 LIBS=$ac_check_lib_save_LIBS
15954 fi
15955 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15956 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15957 if test $ac_cv_lib_nsl_main = yes; then
15958   cat >>confdefs.h <<_ACEOF
15959 #define HAVE_LIBNSL 1
15960 _ACEOF
15961
15962   LIBS="-lnsl $LIBS"
15963
15964 fi
15965
15966
15967 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15968 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15969 if test "${ac_cv_lib_inet_socket+set}" = set; then
15970   echo $ECHO_N "(cached) $ECHO_C" >&6
15971 else
15972   ac_check_lib_save_LIBS=$LIBS
15973 LIBS="-linet  $LIBS"
15974 cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980
15981 /* Override any GCC internal prototype to avoid an error.
15982    Use char because int might match the return type of a GCC
15983    builtin and then its argument prototype would still apply.  */
15984 #ifdef __cplusplus
15985 extern "C"
15986 #endif
15987 char socket ();
15988 int
15989 main ()
15990 {
15991 return socket ();
15992   ;
15993   return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003   (eval "$ac_link") 2>conftest.er1
16004   ac_status=$?
16005   grep -v '^ *+' conftest.er1 >conftest.err
16006   rm -f conftest.er1
16007   cat conftest.err >&5
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); } && {
16010          test -z "$ac_c_werror_flag" ||
16011          test ! -s conftest.err
16012        } && test -s conftest$ac_exeext &&
16013        $as_test_x conftest$ac_exeext; then
16014   ac_cv_lib_inet_socket=yes
16015 else
16016   echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16018
16019         ac_cv_lib_inet_socket=no
16020 fi
16021
16022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16023       conftest$ac_exeext conftest.$ac_ext
16024 LIBS=$ac_check_lib_save_LIBS
16025 fi
16026 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16027 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16028 if test $ac_cv_lib_inet_socket = yes; then
16029   cat >>confdefs.h <<_ACEOF
16030 #define HAVE_LIBINET 1
16031 _ACEOF
16032
16033   LIBS="-linet $LIBS"
16034
16035 fi
16036
16037
16038 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
16039 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
16040 if test "${ac_cv_lib_gen_main+set}" = set; then
16041   echo $ECHO_N "(cached) $ECHO_C" >&6
16042 else
16043   ac_check_lib_save_LIBS=$LIBS
16044 LIBS="-lgen  $LIBS"
16045 cat >conftest.$ac_ext <<_ACEOF
16046 /* confdefs.h.  */
16047 _ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h.  */
16051
16052
16053 int
16054 main ()
16055 {
16056 return main ();
16057   ;
16058   return 0;
16059 }
16060 _ACEOF
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (ac_try="$ac_link"
16063 case "(($ac_try" in
16064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065   *) ac_try_echo=$ac_try;;
16066 esac
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068   (eval "$ac_link") 2>conftest.er1
16069   ac_status=$?
16070   grep -v '^ *+' conftest.er1 >conftest.err
16071   rm -f conftest.er1
16072   cat conftest.err >&5
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); } && {
16075          test -z "$ac_c_werror_flag" ||
16076          test ! -s conftest.err
16077        } && test -s conftest$ac_exeext &&
16078        $as_test_x conftest$ac_exeext; then
16079   ac_cv_lib_gen_main=yes
16080 else
16081   echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16083
16084         ac_cv_lib_gen_main=no
16085 fi
16086
16087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16088       conftest$ac_exeext conftest.$ac_ext
16089 LIBS=$ac_check_lib_save_LIBS
16090 fi
16091 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
16092 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
16093 if test $ac_cv_lib_gen_main = yes; then
16094   cat >>confdefs.h <<_ACEOF
16095 #define HAVE_LIBGEN 1
16096 _ACEOF
16097
16098   LIBS="-lgen $LIBS"
16099
16100 fi
16101
16102
16103 fi
16104
16105
16106 { echo "$as_me:$LINENO: checking for select" >&5
16107 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
16108 if test "${ac_cv_func_select+set}" = set; then
16109   echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111   cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h.  */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h.  */
16117 /* Define select to an innocuous variant, in case <limits.h> declares select.
16118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16119 #define select innocuous_select
16120
16121 /* System header to define __stub macros and hopefully few prototypes,
16122     which can conflict with char select (); below.
16123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16124     <limits.h> exists even on freestanding compilers.  */
16125
16126 #ifdef __STDC__
16127 # include <limits.h>
16128 #else
16129 # include <assert.h>
16130 #endif
16131
16132 #undef select
16133
16134 /* Override any GCC internal prototype to avoid an error.
16135    Use char because int might match the return type of a GCC
16136    builtin and then its argument prototype would still apply.  */
16137 #ifdef __cplusplus
16138 extern "C"
16139 #endif
16140 char select ();
16141 /* The GNU C library defines this for functions which it implements
16142     to always fail with ENOSYS.  Some functions are actually named
16143     something starting with __ and the normal name is an alias.  */
16144 #if defined __stub_select || defined __stub___select
16145 choke me
16146 #endif
16147
16148 int
16149 main ()
16150 {
16151 return select ();
16152   ;
16153   return 0;
16154 }
16155 _ACEOF
16156 rm -f conftest.$ac_objext conftest$ac_exeext
16157 if { (ac_try="$ac_link"
16158 case "(($ac_try" in
16159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160   *) ac_try_echo=$ac_try;;
16161 esac
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163   (eval "$ac_link") 2>conftest.er1
16164   ac_status=$?
16165   grep -v '^ *+' conftest.er1 >conftest.err
16166   rm -f conftest.er1
16167   cat conftest.err >&5
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); } && {
16170          test -z "$ac_c_werror_flag" ||
16171          test ! -s conftest.err
16172        } && test -s conftest$ac_exeext &&
16173        $as_test_x conftest$ac_exeext; then
16174   ac_cv_func_select=yes
16175 else
16176   echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16178
16179         ac_cv_func_select=no
16180 fi
16181
16182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16183       conftest$ac_exeext conftest.$ac_ext
16184 fi
16185 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16186 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16187 if test $ac_cv_func_select = yes; then
16188   :
16189 else
16190   { { echo "$as_me:$LINENO: error: select() required." >&5
16191 echo "$as_me: error: select() required." >&2;}
16192    { (exit 1); exit 1; }; }
16193 fi
16194
16195
16196 if test "${ac_cv_header_winsock_h}" != yes; then
16197
16198
16199 for ac_header in sys/select.h sys/socket.h
16200 do
16201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16203   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16206   echo $ECHO_N "(cached) $ECHO_C" >&6
16207 fi
16208 ac_res=`eval echo '${'$as_ac_Header'}'`
16209                { echo "$as_me:$LINENO: result: $ac_res" >&5
16210 echo "${ECHO_T}$ac_res" >&6; }
16211 else
16212   # Is the header compilable?
16213 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16215 cat >conftest.$ac_ext <<_ACEOF
16216 /* confdefs.h.  */
16217 _ACEOF
16218 cat confdefs.h >>conftest.$ac_ext
16219 cat >>conftest.$ac_ext <<_ACEOF
16220 /* end confdefs.h.  */
16221 $ac_includes_default
16222 #include <$ac_header>
16223 _ACEOF
16224 rm -f conftest.$ac_objext
16225 if { (ac_try="$ac_compile"
16226 case "(($ac_try" in
16227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228   *) ac_try_echo=$ac_try;;
16229 esac
16230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16231   (eval "$ac_compile") 2>conftest.er1
16232   ac_status=$?
16233   grep -v '^ *+' conftest.er1 >conftest.err
16234   rm -f conftest.er1
16235   cat conftest.err >&5
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); } && {
16238          test -z "$ac_c_werror_flag" ||
16239          test ! -s conftest.err
16240        } && test -s conftest.$ac_objext; then
16241   ac_header_compiler=yes
16242 else
16243   echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16245
16246         ac_header_compiler=no
16247 fi
16248
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16251 echo "${ECHO_T}$ac_header_compiler" >&6; }
16252
16253 # Is the header present?
16254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16256 cat >conftest.$ac_ext <<_ACEOF
16257 /* confdefs.h.  */
16258 _ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h.  */
16262 #include <$ac_header>
16263 _ACEOF
16264 if { (ac_try="$ac_cpp conftest.$ac_ext"
16265 case "(($ac_try" in
16266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267   *) ac_try_echo=$ac_try;;
16268 esac
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16271   ac_status=$?
16272   grep -v '^ *+' conftest.er1 >conftest.err
16273   rm -f conftest.er1
16274   cat conftest.err >&5
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); } >/dev/null && {
16277          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16278          test ! -s conftest.err
16279        }; then
16280   ac_header_preproc=yes
16281 else
16282   echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16284
16285   ac_header_preproc=no
16286 fi
16287
16288 rm -f conftest.err conftest.$ac_ext
16289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16290 echo "${ECHO_T}$ac_header_preproc" >&6; }
16291
16292 # So?  What about this header?
16293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16294   yes:no: )
16295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16299     ac_header_preproc=yes
16300     ;;
16301   no:yes:* )
16302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16314     ( cat <<\_ASBOX
16315 ## --------------------------------------------- ##
16316 ## Report this to <http://www.openldap.org/its/> ##
16317 ## --------------------------------------------- ##
16318 _ASBOX
16319      ) | sed "s/^/$as_me: WARNING:     /" >&2
16320     ;;
16321 esac
16322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16325   echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327   eval "$as_ac_Header=\$ac_header_preproc"
16328 fi
16329 ac_res=`eval echo '${'$as_ac_Header'}'`
16330                { echo "$as_me:$LINENO: result: $ac_res" >&5
16331 echo "${ECHO_T}$ac_res" >&6; }
16332
16333 fi
16334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16335   cat >>confdefs.h <<_ACEOF
16336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16337 _ACEOF
16338
16339 fi
16340
16341 done
16342
16343 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16344 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16345 if test "${ac_cv_func_select_args+set}" = set; then
16346   echo $ECHO_N "(cached) $ECHO_C" >&6
16347 else
16348   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16349  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16350   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16351    cat >conftest.$ac_ext <<_ACEOF
16352 /* confdefs.h.  */
16353 _ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h.  */
16357 $ac_includes_default
16358 #ifdef HAVE_SYS_SELECT_H
16359 # include <sys/select.h>
16360 #endif
16361 #ifdef HAVE_SYS_SOCKET_H
16362 # include <sys/socket.h>
16363 #endif
16364
16365 int
16366 main ()
16367 {
16368 extern int select ($ac_arg1,
16369                                             $ac_arg234, $ac_arg234, $ac_arg234,
16370                                             $ac_arg5);
16371   ;
16372   return 0;
16373 }
16374 _ACEOF
16375 rm -f conftest.$ac_objext
16376 if { (ac_try="$ac_compile"
16377 case "(($ac_try" in
16378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379   *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382   (eval "$ac_compile") 2>conftest.er1
16383   ac_status=$?
16384   grep -v '^ *+' conftest.er1 >conftest.err
16385   rm -f conftest.er1
16386   cat conftest.err >&5
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); } && {
16389          test -z "$ac_c_werror_flag" ||
16390          test ! -s conftest.err
16391        } && test -s conftest.$ac_objext; then
16392   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16393 else
16394   echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16396
16397
16398 fi
16399
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401   done
16402  done
16403 done
16404 # Provide a safe default value.
16405 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16406
16407 fi
16408 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16409 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16410 ac_save_IFS=$IFS; IFS=','
16411 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16412 IFS=$ac_save_IFS
16413 shift
16414
16415 cat >>confdefs.h <<_ACEOF
16416 #define SELECT_TYPE_ARG1 $1
16417 _ACEOF
16418
16419
16420 cat >>confdefs.h <<_ACEOF
16421 #define SELECT_TYPE_ARG234 ($2)
16422 _ACEOF
16423
16424
16425 cat >>confdefs.h <<_ACEOF
16426 #define SELECT_TYPE_ARG5 ($3)
16427 _ACEOF
16428
16429 rm -f conftest*
16430
16431 fi
16432
16433
16434
16435 for ac_func in poll
16436 do
16437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16441   echo $ECHO_N "(cached) $ECHO_C" >&6
16442 else
16443   cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h.  */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h.  */
16449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16451 #define $ac_func innocuous_$ac_func
16452
16453 /* System header to define __stub macros and hopefully few prototypes,
16454     which can conflict with char $ac_func (); below.
16455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16456     <limits.h> exists even on freestanding compilers.  */
16457
16458 #ifdef __STDC__
16459 # include <limits.h>
16460 #else
16461 # include <assert.h>
16462 #endif
16463
16464 #undef $ac_func
16465
16466 /* Override any GCC internal prototype to avoid an error.
16467    Use char because int might match the return type of a GCC
16468    builtin and then its argument prototype would still apply.  */
16469 #ifdef __cplusplus
16470 extern "C"
16471 #endif
16472 char $ac_func ();
16473 /* The GNU C library defines this for functions which it implements
16474     to always fail with ENOSYS.  Some functions are actually named
16475     something starting with __ and the normal name is an alias.  */
16476 #if defined __stub_$ac_func || defined __stub___$ac_func
16477 choke me
16478 #endif
16479
16480 int
16481 main ()
16482 {
16483 return $ac_func ();
16484   ;
16485   return 0;
16486 }
16487 _ACEOF
16488 rm -f conftest.$ac_objext conftest$ac_exeext
16489 if { (ac_try="$ac_link"
16490 case "(($ac_try" in
16491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492   *) ac_try_echo=$ac_try;;
16493 esac
16494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495   (eval "$ac_link") 2>conftest.er1
16496   ac_status=$?
16497   grep -v '^ *+' conftest.er1 >conftest.err
16498   rm -f conftest.er1
16499   cat conftest.err >&5
16500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501   (exit $ac_status); } && {
16502          test -z "$ac_c_werror_flag" ||
16503          test ! -s conftest.err
16504        } && test -s conftest$ac_exeext &&
16505        $as_test_x conftest$ac_exeext; then
16506   eval "$as_ac_var=yes"
16507 else
16508   echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16510
16511         eval "$as_ac_var=no"
16512 fi
16513
16514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16515       conftest$ac_exeext conftest.$ac_ext
16516 fi
16517 ac_res=`eval echo '${'$as_ac_var'}'`
16518                { echo "$as_me:$LINENO: result: $ac_res" >&5
16519 echo "${ECHO_T}$ac_res" >&6; }
16520 if test `eval echo '${'$as_ac_var'}'` = yes; then
16521   cat >>confdefs.h <<_ACEOF
16522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16523 _ACEOF
16524
16525 fi
16526 done
16527
16528 if test $ac_cv_func_poll = yes; then
16529
16530
16531 for ac_header in poll.h sys/poll.h
16532 do
16533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16535   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16538   echo $ECHO_N "(cached) $ECHO_C" >&6
16539 fi
16540 ac_res=`eval echo '${'$as_ac_Header'}'`
16541                { echo "$as_me:$LINENO: result: $ac_res" >&5
16542 echo "${ECHO_T}$ac_res" >&6; }
16543 else
16544   # Is the header compilable?
16545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16547 cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h.  */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h.  */
16553 $ac_includes_default
16554 #include <$ac_header>
16555 _ACEOF
16556 rm -f conftest.$ac_objext
16557 if { (ac_try="$ac_compile"
16558 case "(($ac_try" in
16559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560   *) ac_try_echo=$ac_try;;
16561 esac
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563   (eval "$ac_compile") 2>conftest.er1
16564   ac_status=$?
16565   grep -v '^ *+' conftest.er1 >conftest.err
16566   rm -f conftest.er1
16567   cat conftest.err >&5
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); } && {
16570          test -z "$ac_c_werror_flag" ||
16571          test ! -s conftest.err
16572        } && test -s conftest.$ac_objext; then
16573   ac_header_compiler=yes
16574 else
16575   echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16577
16578         ac_header_compiler=no
16579 fi
16580
16581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16583 echo "${ECHO_T}$ac_header_compiler" >&6; }
16584
16585 # Is the header present?
16586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16588 cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h.  */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h.  */
16594 #include <$ac_header>
16595 _ACEOF
16596 if { (ac_try="$ac_cpp conftest.$ac_ext"
16597 case "(($ac_try" in
16598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599   *) ac_try_echo=$ac_try;;
16600 esac
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16603   ac_status=$?
16604   grep -v '^ *+' conftest.er1 >conftest.err
16605   rm -f conftest.er1
16606   cat conftest.err >&5
16607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); } >/dev/null && {
16609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16610          test ! -s conftest.err
16611        }; then
16612   ac_header_preproc=yes
16613 else
16614   echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16616
16617   ac_header_preproc=no
16618 fi
16619
16620 rm -f conftest.err conftest.$ac_ext
16621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16622 echo "${ECHO_T}$ac_header_preproc" >&6; }
16623
16624 # So?  What about this header?
16625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16626   yes:no: )
16627     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16631     ac_header_preproc=yes
16632     ;;
16633   no:yes:* )
16634     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16636     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16637 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16638     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16640     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16641 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16644     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16646     ( cat <<\_ASBOX
16647 ## --------------------------------------------- ##
16648 ## Report this to <http://www.openldap.org/its/> ##
16649 ## --------------------------------------------- ##
16650 _ASBOX
16651      ) | sed "s/^/$as_me: WARNING:     /" >&2
16652     ;;
16653 esac
16654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16657   echo $ECHO_N "(cached) $ECHO_C" >&6
16658 else
16659   eval "$as_ac_Header=\$ac_header_preproc"
16660 fi
16661 ac_res=`eval echo '${'$as_ac_Header'}'`
16662                { echo "$as_me:$LINENO: result: $ac_res" >&5
16663 echo "${ECHO_T}$ac_res" >&6; }
16664
16665 fi
16666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16667   cat >>confdefs.h <<_ACEOF
16668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16669 _ACEOF
16670
16671 fi
16672
16673 done
16674
16675 fi
16676
16677
16678 for ac_header in sys/epoll.h
16679 do
16680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16682   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 fi
16687 ac_res=`eval echo '${'$as_ac_Header'}'`
16688                { echo "$as_me:$LINENO: result: $ac_res" >&5
16689 echo "${ECHO_T}$ac_res" >&6; }
16690 else
16691   # Is the header compilable?
16692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16694 cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h.  */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h.  */
16700 $ac_includes_default
16701 #include <$ac_header>
16702 _ACEOF
16703 rm -f conftest.$ac_objext
16704 if { (ac_try="$ac_compile"
16705 case "(($ac_try" in
16706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707   *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710   (eval "$ac_compile") 2>conftest.er1
16711   ac_status=$?
16712   grep -v '^ *+' conftest.er1 >conftest.err
16713   rm -f conftest.er1
16714   cat conftest.err >&5
16715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716   (exit $ac_status); } && {
16717          test -z "$ac_c_werror_flag" ||
16718          test ! -s conftest.err
16719        } && test -s conftest.$ac_objext; then
16720   ac_header_compiler=yes
16721 else
16722   echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16724
16725         ac_header_compiler=no
16726 fi
16727
16728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16730 echo "${ECHO_T}$ac_header_compiler" >&6; }
16731
16732 # Is the header present?
16733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16735 cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h.  */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h.  */
16741 #include <$ac_header>
16742 _ACEOF
16743 if { (ac_try="$ac_cpp conftest.$ac_ext"
16744 case "(($ac_try" in
16745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746   *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16750   ac_status=$?
16751   grep -v '^ *+' conftest.er1 >conftest.err
16752   rm -f conftest.er1
16753   cat conftest.err >&5
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); } >/dev/null && {
16756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16757          test ! -s conftest.err
16758        }; then
16759   ac_header_preproc=yes
16760 else
16761   echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16763
16764   ac_header_preproc=no
16765 fi
16766
16767 rm -f conftest.err conftest.$ac_ext
16768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16769 echo "${ECHO_T}$ac_header_preproc" >&6; }
16770
16771 # So?  What about this header?
16772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16773   yes:no: )
16774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16778     ac_header_preproc=yes
16779     ;;
16780   no:yes:* )
16781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16793     ( cat <<\_ASBOX
16794 ## --------------------------------------------- ##
16795 ## Report this to <http://www.openldap.org/its/> ##
16796 ## --------------------------------------------- ##
16797 _ASBOX
16798      ) | sed "s/^/$as_me: WARNING:     /" >&2
16799     ;;
16800 esac
16801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   eval "$as_ac_Header=\$ac_header_preproc"
16807 fi
16808 ac_res=`eval echo '${'$as_ac_Header'}'`
16809                { echo "$as_me:$LINENO: result: $ac_res" >&5
16810 echo "${ECHO_T}$ac_res" >&6; }
16811
16812 fi
16813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16814   cat >>confdefs.h <<_ACEOF
16815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16816 _ACEOF
16817
16818 fi
16819
16820 done
16821
16822 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16823         { echo "$as_me:$LINENO: checking for epoll system call" >&5
16824 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16825         if test "$cross_compiling" = yes; then
16826   { echo "$as_me:$LINENO: result: no" >&5
16827 echo "${ECHO_T}no" >&6; }
16828 else
16829   cat >conftest.$ac_ext <<_ACEOF
16830 /* confdefs.h.  */
16831 _ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h.  */
16835 int main(int argc, char **argv)
16836 {
16837         int epfd = epoll_create(256);
16838         exit (epfd == -1 ? 1 : 0);
16839 }
16840 _ACEOF
16841 rm -f conftest$ac_exeext
16842 if { (ac_try="$ac_link"
16843 case "(($ac_try" in
16844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845   *) ac_try_echo=$ac_try;;
16846 esac
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848   (eval "$ac_link") 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16852   { (case "(($ac_try" in
16853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854   *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857   (eval "$ac_try") 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }; }; then
16861   { echo "$as_me:$LINENO: result: yes" >&5
16862 echo "${ECHO_T}yes" >&6; }
16863
16864 cat >>confdefs.h <<\_ACEOF
16865 #define HAVE_EPOLL 1
16866 _ACEOF
16867
16868 else
16869   echo "$as_me: program exited with status $ac_status" >&5
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16872
16873 ( exit $ac_status )
16874 { echo "$as_me:$LINENO: result: no" >&5
16875 echo "${ECHO_T}no" >&6; }
16876 fi
16877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16878 fi
16879
16880
16881 fi
16882
16883
16884 for ac_header in sys/devpoll.h
16885 do
16886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16888   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16891   echo $ECHO_N "(cached) $ECHO_C" >&6
16892 fi
16893 ac_res=`eval echo '${'$as_ac_Header'}'`
16894                { echo "$as_me:$LINENO: result: $ac_res" >&5
16895 echo "${ECHO_T}$ac_res" >&6; }
16896 else
16897   # Is the header compilable?
16898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16900 cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h.  */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h.  */
16906 $ac_includes_default
16907 #include <$ac_header>
16908 _ACEOF
16909 rm -f conftest.$ac_objext
16910 if { (ac_try="$ac_compile"
16911 case "(($ac_try" in
16912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913   *) ac_try_echo=$ac_try;;
16914 esac
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916   (eval "$ac_compile") 2>conftest.er1
16917   ac_status=$?
16918   grep -v '^ *+' conftest.er1 >conftest.err
16919   rm -f conftest.er1
16920   cat conftest.err >&5
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); } && {
16923          test -z "$ac_c_werror_flag" ||
16924          test ! -s conftest.err
16925        } && test -s conftest.$ac_objext; then
16926   ac_header_compiler=yes
16927 else
16928   echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16930
16931         ac_header_compiler=no
16932 fi
16933
16934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16936 echo "${ECHO_T}$ac_header_compiler" >&6; }
16937
16938 # Is the header present?
16939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16941 cat >conftest.$ac_ext <<_ACEOF
16942 /* confdefs.h.  */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h.  */
16947 #include <$ac_header>
16948 _ACEOF
16949 if { (ac_try="$ac_cpp conftest.$ac_ext"
16950 case "(($ac_try" in
16951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952   *) ac_try_echo=$ac_try;;
16953 esac
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16956   ac_status=$?
16957   grep -v '^ *+' conftest.er1 >conftest.err
16958   rm -f conftest.er1
16959   cat conftest.err >&5
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); } >/dev/null && {
16962          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16963          test ! -s conftest.err
16964        }; then
16965   ac_header_preproc=yes
16966 else
16967   echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970   ac_header_preproc=no
16971 fi
16972
16973 rm -f conftest.err conftest.$ac_ext
16974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16975 echo "${ECHO_T}$ac_header_preproc" >&6; }
16976
16977 # So?  What about this header?
16978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16979   yes:no: )
16980     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16984     ac_header_preproc=yes
16985     ;;
16986   no:yes:* )
16987     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16989     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16990 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16991     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16993     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16994 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16997     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16999     ( cat <<\_ASBOX
17000 ## --------------------------------------------- ##
17001 ## Report this to <http://www.openldap.org/its/> ##
17002 ## --------------------------------------------- ##
17003 _ASBOX
17004      ) | sed "s/^/$as_me: WARNING:     /" >&2
17005     ;;
17006 esac
17007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012   eval "$as_ac_Header=\$ac_header_preproc"
17013 fi
17014 ac_res=`eval echo '${'$as_ac_Header'}'`
17015                { echo "$as_me:$LINENO: result: $ac_res" >&5
17016 echo "${ECHO_T}$ac_res" >&6; }
17017
17018 fi
17019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17020   cat >>confdefs.h <<_ACEOF
17021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17022 _ACEOF
17023
17024 fi
17025
17026 done
17027
17028 if test "${ac_cv_header_sys_devpoll_h}" = yes \
17029                 -a "${ac_cv_header_poll_h}" = yes ; \
17030 then
17031         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
17032 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
17033         if test "$cross_compiling" = yes; then
17034   { echo "$as_me:$LINENO: result: no" >&5
17035 echo "${ECHO_T}no" >&6; }
17036 else
17037   cat >conftest.$ac_ext <<_ACEOF
17038 /* confdefs.h.  */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h.  */
17043 int main(int argc, char **argv)
17044 {
17045         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
17046         exit (devpollfd == -1 ? 1 : 0);
17047 }
17048 _ACEOF
17049 rm -f conftest$ac_exeext
17050 if { (ac_try="$ac_link"
17051 case "(($ac_try" in
17052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053   *) ac_try_echo=$ac_try;;
17054 esac
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056   (eval "$ac_link") 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17060   { (case "(($ac_try" in
17061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062   *) ac_try_echo=$ac_try;;
17063 esac
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065   (eval "$ac_try") 2>&5
17066   ac_status=$?
17067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068   (exit $ac_status); }; }; then
17069   { echo "$as_me:$LINENO: result: yes" >&5
17070 echo "${ECHO_T}yes" >&6; }
17071
17072 cat >>confdefs.h <<\_ACEOF
17073 #define HAVE_DEVPOLL 1
17074 _ACEOF
17075
17076 else
17077   echo "$as_me: program exited with status $ac_status" >&5
17078 echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17080
17081 ( exit $ac_status )
17082 { echo "$as_me:$LINENO: result: no" >&5
17083 echo "${ECHO_T}no" >&6; }
17084 fi
17085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17086 fi
17087
17088
17089 fi
17090
17091 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17092 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17093 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17094   echo $ECHO_N "(cached) $ECHO_C" >&6
17095 else
17096
17097         cat >conftest.$ac_ext <<_ACEOF
17098 /* confdefs.h.  */
17099 _ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h.  */
17103
17104 #include <stdio.h>
17105 #include <sys/types.h>
17106 #include <errno.h>
17107 #ifdef _WIN32
17108 #include <stdlib.h>
17109 #endif
17110 int
17111 main ()
17112 {
17113 char *c = (char *) *sys_errlist
17114   ;
17115   return 0;
17116 }
17117 _ACEOF
17118 rm -f conftest.$ac_objext
17119 if { (ac_try="$ac_compile"
17120 case "(($ac_try" in
17121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122   *) ac_try_echo=$ac_try;;
17123 esac
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125   (eval "$ac_compile") 2>conftest.er1
17126   ac_status=$?
17127   grep -v '^ *+' conftest.er1 >conftest.err
17128   rm -f conftest.er1
17129   cat conftest.err >&5
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); } && {
17132          test -z "$ac_c_werror_flag" ||
17133          test ! -s conftest.err
17134        } && test -s conftest.$ac_objext; then
17135   ol_cv_dcl_sys_errlist=yes
17136         ol_cv_have_sys_errlist=yes
17137 else
17138   echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17140
17141         ol_cv_dcl_sys_errlist=no
17142 fi
17143
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145 fi
17146 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17147 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17148 #
17149 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17150 if test $ol_cv_dcl_sys_errlist = no ; then
17151
17152 cat >>confdefs.h <<\_ACEOF
17153 #define DECL_SYS_ERRLIST 1
17154 _ACEOF
17155
17156
17157         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17158 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17159 if test "${ol_cv_have_sys_errlist+set}" = set; then
17160   echo $ECHO_N "(cached) $ECHO_C" >&6
17161 else
17162
17163                 cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169 #include <errno.h>
17170 int
17171 main ()
17172 {
17173 char *c = (char *) *sys_errlist
17174   ;
17175   return 0;
17176 }
17177 _ACEOF
17178 rm -f conftest.$ac_objext conftest$ac_exeext
17179 if { (ac_try="$ac_link"
17180 case "(($ac_try" in
17181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182   *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185   (eval "$ac_link") 2>conftest.er1
17186   ac_status=$?
17187   grep -v '^ *+' conftest.er1 >conftest.err
17188   rm -f conftest.er1
17189   cat conftest.err >&5
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); } && {
17192          test -z "$ac_c_werror_flag" ||
17193          test ! -s conftest.err
17194        } && test -s conftest$ac_exeext &&
17195        $as_test_x conftest$ac_exeext; then
17196   ol_cv_have_sys_errlist=yes
17197 else
17198   echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17200
17201         ol_cv_have_sys_errlist=no
17202 fi
17203
17204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17205       conftest$ac_exeext conftest.$ac_ext
17206 fi
17207 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17208 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17209 fi
17210 if test $ol_cv_have_sys_errlist = yes ; then
17211
17212 cat >>confdefs.h <<\_ACEOF
17213 #define HAVE_SYS_ERRLIST 1
17214 _ACEOF
17215
17216 fi
17217
17218
17219 for ac_func in strerror strerror_r
17220 do
17221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17225   echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227   cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h.  */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h.  */
17233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17235 #define $ac_func innocuous_$ac_func
17236
17237 /* System header to define __stub macros and hopefully few prototypes,
17238     which can conflict with char $ac_func (); below.
17239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17240     <limits.h> exists even on freestanding compilers.  */
17241
17242 #ifdef __STDC__
17243 # include <limits.h>
17244 #else
17245 # include <assert.h>
17246 #endif
17247
17248 #undef $ac_func
17249
17250 /* Override any GCC internal prototype to avoid an error.
17251    Use char because int might match the return type of a GCC
17252    builtin and then its argument prototype would still apply.  */
17253 #ifdef __cplusplus
17254 extern "C"
17255 #endif
17256 char $ac_func ();
17257 /* The GNU C library defines this for functions which it implements
17258     to always fail with ENOSYS.  Some functions are actually named
17259     something starting with __ and the normal name is an alias.  */
17260 #if defined __stub_$ac_func || defined __stub___$ac_func
17261 choke me
17262 #endif
17263
17264 int
17265 main ()
17266 {
17267 return $ac_func ();
17268   ;
17269   return 0;
17270 }
17271 _ACEOF
17272 rm -f conftest.$ac_objext conftest$ac_exeext
17273 if { (ac_try="$ac_link"
17274 case "(($ac_try" in
17275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276   *) ac_try_echo=$ac_try;;
17277 esac
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279   (eval "$ac_link") 2>conftest.er1
17280   ac_status=$?
17281   grep -v '^ *+' conftest.er1 >conftest.err
17282   rm -f conftest.er1
17283   cat conftest.err >&5
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } && {
17286          test -z "$ac_c_werror_flag" ||
17287          test ! -s conftest.err
17288        } && test -s conftest$ac_exeext &&
17289        $as_test_x conftest$ac_exeext; then
17290   eval "$as_ac_var=yes"
17291 else
17292   echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17294
17295         eval "$as_ac_var=no"
17296 fi
17297
17298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17299       conftest$ac_exeext conftest.$ac_ext
17300 fi
17301 ac_res=`eval echo '${'$as_ac_var'}'`
17302                { echo "$as_me:$LINENO: result: $ac_res" >&5
17303 echo "${ECHO_T}$ac_res" >&6; }
17304 if test `eval echo '${'$as_ac_var'}'` = yes; then
17305   cat >>confdefs.h <<_ACEOF
17306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17307 _ACEOF
17308
17309 fi
17310 done
17311
17312 ol_cv_func_strerror_r=no
17313 if test "${ac_cv_func_strerror_r}" = yes ; then
17314         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17315 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17316 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17317   echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319
17320         cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h.  */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h.  */
17326 #include <string.h>
17327 _ACEOF
17328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17329   $EGREP "strerror_r" >/dev/null 2>&1; then
17330   ol_decl_strerror_r=yes
17331 else
17332   ol_decl_strerror_r=no
17333 fi
17334 rm -f conftest*
17335
17336         if test $ol_decl_strerror_r = yes ; then
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 <string.h>
17344 int
17345 main ()
17346 {
17347    /* from autoconf 2.59 */
17348                                 char buf[100];
17349                                 char x = *strerror_r (0, buf, sizeof buf);
17350                                 char *p = strerror_r (0, buf, sizeof buf);
17351
17352   ;
17353   return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext
17357 if { (ac_try="$ac_compile"
17358 case "(($ac_try" in
17359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360   *) ac_try_echo=$ac_try;;
17361 esac
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363   (eval "$ac_compile") 2>conftest.er1
17364   ac_status=$?
17365   grep -v '^ *+' conftest.er1 >conftest.err
17366   rm -f conftest.er1
17367   cat conftest.err >&5
17368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); } && {
17370          test -z "$ac_c_werror_flag" ||
17371          test ! -s conftest.err
17372        } && test -s conftest.$ac_objext; then
17373   ol_cv_nonposix_strerror_r=yes
17374 else
17375   echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17377
17378         ol_cv_nonposix_strerror_r=no
17379 fi
17380
17381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17382         else
17383                 if test "$cross_compiling" = yes; then
17384   ol_cv_nonposix_strerror=no
17385 else
17386   cat >conftest.$ac_ext <<_ACEOF
17387 /* confdefs.h.  */
17388 _ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h.  */
17392
17393                         main() {
17394                                 char buf[100];
17395                                 buf[0] = 0;
17396                                 strerror_r( 1, buf, sizeof buf );
17397                                 exit( buf[0] == 0 );
17398                         }
17399
17400 _ACEOF
17401 rm -f conftest$ac_exeext
17402 if { (ac_try="$ac_link"
17403 case "(($ac_try" in
17404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405   *) ac_try_echo=$ac_try;;
17406 esac
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408   (eval "$ac_link") 2>&5
17409   ac_status=$?
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17412   { (case "(($ac_try" in
17413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414   *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417   (eval "$ac_try") 2>&5
17418   ac_status=$?
17419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420   (exit $ac_status); }; }; then
17421   ol_cv_nonposix_strerror_r=yes
17422 else
17423   echo "$as_me: program exited with status $ac_status" >&5
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17426
17427 ( exit $ac_status )
17428 ol_cv_nonposix_strerror=no
17429 fi
17430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17431 fi
17432
17433
17434         fi
17435
17436 fi
17437 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17438 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17439 if test $ol_cv_nonposix_strerror_r = yes ; then
17440
17441 cat >>confdefs.h <<\_ACEOF
17442 #define HAVE_NONPOSIX_STRERROR_R 1
17443 _ACEOF
17444
17445 fi
17446
17447 elif test "${ac_cv_func_strerror}" = no ; then
17448         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17449 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17450 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17451   echo $ECHO_N "(cached) $ECHO_C" >&6
17452 else
17453
17454         cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h.  */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h.  */
17460
17461 #include <stdio.h>
17462 #include <sys/types.h>
17463 #include <errno.h>
17464 #ifdef _WIN32
17465 #include <stdlib.h>
17466 #endif
17467 int
17468 main ()
17469 {
17470 char *c = (char *) *sys_errlist
17471   ;
17472   return 0;
17473 }
17474 _ACEOF
17475 rm -f conftest.$ac_objext
17476 if { (ac_try="$ac_compile"
17477 case "(($ac_try" in
17478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479   *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482   (eval "$ac_compile") 2>conftest.er1
17483   ac_status=$?
17484   grep -v '^ *+' conftest.er1 >conftest.err
17485   rm -f conftest.er1
17486   cat conftest.err >&5
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } && {
17489          test -z "$ac_c_werror_flag" ||
17490          test ! -s conftest.err
17491        } && test -s conftest.$ac_objext; then
17492   ol_cv_dcl_sys_errlist=yes
17493         ol_cv_have_sys_errlist=yes
17494 else
17495   echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17497
17498         ol_cv_dcl_sys_errlist=no
17499 fi
17500
17501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502 fi
17503 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17504 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17505 #
17506 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17507 if test $ol_cv_dcl_sys_errlist = no ; then
17508
17509 cat >>confdefs.h <<\_ACEOF
17510 #define DECL_SYS_ERRLIST 1
17511 _ACEOF
17512
17513
17514         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17515 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17516 if test "${ol_cv_have_sys_errlist+set}" = set; then
17517   echo $ECHO_N "(cached) $ECHO_C" >&6
17518 else
17519
17520                 cat >conftest.$ac_ext <<_ACEOF
17521 /* confdefs.h.  */
17522 _ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h.  */
17526 #include <errno.h>
17527 int
17528 main ()
17529 {
17530 char *c = (char *) *sys_errlist
17531   ;
17532   return 0;
17533 }
17534 _ACEOF
17535 rm -f conftest.$ac_objext conftest$ac_exeext
17536 if { (ac_try="$ac_link"
17537 case "(($ac_try" in
17538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539   *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542   (eval "$ac_link") 2>conftest.er1
17543   ac_status=$?
17544   grep -v '^ *+' conftest.er1 >conftest.err
17545   rm -f conftest.er1
17546   cat conftest.err >&5
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); } && {
17549          test -z "$ac_c_werror_flag" ||
17550          test ! -s conftest.err
17551        } && test -s conftest$ac_exeext &&
17552        $as_test_x conftest$ac_exeext; then
17553   ol_cv_have_sys_errlist=yes
17554 else
17555   echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17557
17558         ol_cv_have_sys_errlist=no
17559 fi
17560
17561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17562       conftest$ac_exeext conftest.$ac_ext
17563 fi
17564 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17565 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17566 fi
17567 if test $ol_cv_have_sys_errlist = yes ; then
17568
17569 cat >>confdefs.h <<\_ACEOF
17570 #define HAVE_SYS_ERRLIST 1
17571 _ACEOF
17572
17573 fi
17574
17575 fi
17576
17577
17578
17579 for ac_header in regex.h
17580 do
17581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17585   echo $ECHO_N "(cached) $ECHO_C" >&6
17586 else
17587   cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h.  */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h.  */
17593 $ac_includes_default
17594 #ifdef HAVE_SYS_TYPES_H
17595 #include <sys/types.h>
17596 #endif
17597
17598
17599 #include <$ac_header>
17600 _ACEOF
17601 rm -f conftest.$ac_objext
17602 if { (ac_try="$ac_compile"
17603 case "(($ac_try" in
17604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605   *) ac_try_echo=$ac_try;;
17606 esac
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608   (eval "$ac_compile") 2>conftest.er1
17609   ac_status=$?
17610   grep -v '^ *+' conftest.er1 >conftest.err
17611   rm -f conftest.er1
17612   cat conftest.err >&5
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); } && {
17615          test -z "$ac_c_werror_flag" ||
17616          test ! -s conftest.err
17617        } && test -s conftest.$ac_objext; then
17618   eval "$as_ac_Header=yes"
17619 else
17620   echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17622
17623         eval "$as_ac_Header=no"
17624 fi
17625
17626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17627 fi
17628 ac_res=`eval echo '${'$as_ac_Header'}'`
17629                { echo "$as_me:$LINENO: result: $ac_res" >&5
17630 echo "${ECHO_T}$ac_res" >&6; }
17631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17632   cat >>confdefs.h <<_ACEOF
17633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17634 _ACEOF
17635
17636 fi
17637
17638 done
17639
17640
17641 if test "$ac_cv_header_regex_h" != yes ; then
17642         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17643 echo "$as_me: error: POSIX regex.h required." >&2;}
17644    { (exit 1); exit 1; }; }
17645 fi
17646 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17647 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17648 if test "${ac_cv_search_regfree+set}" = set; then
17649   echo $ECHO_N "(cached) $ECHO_C" >&6
17650 else
17651   ac_func_search_save_LIBS=$LIBS
17652 cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h.  */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h.  */
17658
17659 /* Override any GCC internal prototype to avoid an error.
17660    Use char because int might match the return type of a GCC
17661    builtin and then its argument prototype would still apply.  */
17662 #ifdef __cplusplus
17663 extern "C"
17664 #endif
17665 char regfree ();
17666 int
17667 main ()
17668 {
17669 return regfree ();
17670   ;
17671   return 0;
17672 }
17673 _ACEOF
17674 for ac_lib in '' regex gnuregex; do
17675   if test -z "$ac_lib"; then
17676     ac_res="none required"
17677   else
17678     ac_res=-l$ac_lib
17679     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17680   fi
17681   rm -f conftest.$ac_objext conftest$ac_exeext
17682 if { (ac_try="$ac_link"
17683 case "(($ac_try" in
17684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685   *) ac_try_echo=$ac_try;;
17686 esac
17687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17688   (eval "$ac_link") 2>conftest.er1
17689   ac_status=$?
17690   grep -v '^ *+' conftest.er1 >conftest.err
17691   rm -f conftest.er1
17692   cat conftest.err >&5
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); } && {
17695          test -z "$ac_c_werror_flag" ||
17696          test ! -s conftest.err
17697        } && test -s conftest$ac_exeext &&
17698        $as_test_x conftest$ac_exeext; then
17699   ac_cv_search_regfree=$ac_res
17700 else
17701   echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17703
17704
17705 fi
17706
17707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17708       conftest$ac_exeext
17709   if test "${ac_cv_search_regfree+set}" = set; then
17710   break
17711 fi
17712 done
17713 if test "${ac_cv_search_regfree+set}" = set; then
17714   :
17715 else
17716   ac_cv_search_regfree=no
17717 fi
17718 rm conftest.$ac_ext
17719 LIBS=$ac_func_search_save_LIBS
17720 fi
17721 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17722 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17723 ac_res=$ac_cv_search_regfree
17724 if test "$ac_res" != no; then
17725   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17726   :
17727 else
17728   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17729 echo "$as_me: error: POSIX regex required." >&2;}
17730    { (exit 1); exit 1; }; }
17731 fi
17732
17733
17734
17735 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17736 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17737 if test "${ol_cv_c_posix_regex+set}" = set; then
17738   echo $ECHO_N "(cached) $ECHO_C" >&6
17739 else
17740
17741         if test "$cross_compiling" = yes; then
17742   ol_cv_c_posix_regex=cross
17743 else
17744   cat >conftest.$ac_ext <<_ACEOF
17745 /* confdefs.h.  */
17746 _ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h.  */
17750
17751 #include <sys/types.h>
17752 #include <regex.h>
17753 static char *pattern, *string;
17754 main()
17755 {
17756         int rc;
17757         regex_t re;
17758
17759         pattern = "^A";
17760
17761         if(regcomp(&re, pattern, 0)) {
17762                 return -1;
17763         }
17764
17765         string = "ALL MATCH";
17766
17767         rc = regexec(&re, string, 0, (void*)0, 0);
17768
17769         regfree(&re);
17770
17771         return rc;
17772 }
17773 _ACEOF
17774 rm -f conftest$ac_exeext
17775 if { (ac_try="$ac_link"
17776 case "(($ac_try" in
17777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778   *) ac_try_echo=$ac_try;;
17779 esac
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781   (eval "$ac_link") 2>&5
17782   ac_status=$?
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17785   { (case "(($ac_try" in
17786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787   *) ac_try_echo=$ac_try;;
17788 esac
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790   (eval "$ac_try") 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }; }; then
17794   ol_cv_c_posix_regex=yes
17795 else
17796   echo "$as_me: program exited with status $ac_status" >&5
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17799
17800 ( exit $ac_status )
17801 ol_cv_c_posix_regex=no
17802 fi
17803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17804 fi
17805
17806
17807 fi
17808 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17809 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17810
17811 if test "$ol_cv_c_posix_regex" = no ; then
17812         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17813 echo "$as_me: error: broken POSIX regex!" >&2;}
17814    { (exit 1); exit 1; }; }
17815 fi
17816
17817
17818 have_uuid=no
17819
17820 for ac_header in sys/uuid.h
17821 do
17822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17824   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17827   echo $ECHO_N "(cached) $ECHO_C" >&6
17828 fi
17829 ac_res=`eval echo '${'$as_ac_Header'}'`
17830                { echo "$as_me:$LINENO: result: $ac_res" >&5
17831 echo "${ECHO_T}$ac_res" >&6; }
17832 else
17833   # Is the header compilable?
17834 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17836 cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h.  */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h.  */
17842 $ac_includes_default
17843 #include <$ac_header>
17844 _ACEOF
17845 rm -f conftest.$ac_objext
17846 if { (ac_try="$ac_compile"
17847 case "(($ac_try" in
17848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849   *) ac_try_echo=$ac_try;;
17850 esac
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852   (eval "$ac_compile") 2>conftest.er1
17853   ac_status=$?
17854   grep -v '^ *+' conftest.er1 >conftest.err
17855   rm -f conftest.er1
17856   cat conftest.err >&5
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); } && {
17859          test -z "$ac_c_werror_flag" ||
17860          test ! -s conftest.err
17861        } && test -s conftest.$ac_objext; then
17862   ac_header_compiler=yes
17863 else
17864   echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17866
17867         ac_header_compiler=no
17868 fi
17869
17870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17872 echo "${ECHO_T}$ac_header_compiler" >&6; }
17873
17874 # Is the header present?
17875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17877 cat >conftest.$ac_ext <<_ACEOF
17878 /* confdefs.h.  */
17879 _ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h.  */
17883 #include <$ac_header>
17884 _ACEOF
17885 if { (ac_try="$ac_cpp conftest.$ac_ext"
17886 case "(($ac_try" in
17887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888   *) ac_try_echo=$ac_try;;
17889 esac
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17892   ac_status=$?
17893   grep -v '^ *+' conftest.er1 >conftest.err
17894   rm -f conftest.er1
17895   cat conftest.err >&5
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); } >/dev/null && {
17898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17899          test ! -s conftest.err
17900        }; then
17901   ac_header_preproc=yes
17902 else
17903   echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906   ac_header_preproc=no
17907 fi
17908
17909 rm -f conftest.err conftest.$ac_ext
17910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17911 echo "${ECHO_T}$ac_header_preproc" >&6; }
17912
17913 # So?  What about this header?
17914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17915   yes:no: )
17916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17920     ac_header_preproc=yes
17921     ;;
17922   no:yes:* )
17923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17925     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17926 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17927     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17929     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17930 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17933     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17935     ( cat <<\_ASBOX
17936 ## --------------------------------------------- ##
17937 ## Report this to <http://www.openldap.org/its/> ##
17938 ## --------------------------------------------- ##
17939 _ASBOX
17940      ) | sed "s/^/$as_me: WARNING:     /" >&2
17941     ;;
17942 esac
17943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17946   echo $ECHO_N "(cached) $ECHO_C" >&6
17947 else
17948   eval "$as_ac_Header=\$ac_header_preproc"
17949 fi
17950 ac_res=`eval echo '${'$as_ac_Header'}'`
17951                { echo "$as_me:$LINENO: result: $ac_res" >&5
17952 echo "${ECHO_T}$ac_res" >&6; }
17953
17954 fi
17955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17956   cat >>confdefs.h <<_ACEOF
17957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17958 _ACEOF
17959
17960 fi
17961
17962 done
17963
17964 if test $ac_cv_header_sys_uuid_h = yes ; then
17965         save_LIBS="$LIBS"
17966         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17967 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17968 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17969   echo $ECHO_N "(cached) $ECHO_C" >&6
17970 else
17971   ac_func_search_save_LIBS=$LIBS
17972 cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h.  */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h.  */
17978
17979 /* Override any GCC internal prototype to avoid an error.
17980    Use char because int might match the return type of a GCC
17981    builtin and then its argument prototype would still apply.  */
17982 #ifdef __cplusplus
17983 extern "C"
17984 #endif
17985 char uuid_to_str ();
17986 int
17987 main ()
17988 {
17989 return uuid_to_str ();
17990   ;
17991   return 0;
17992 }
17993 _ACEOF
17994 for ac_lib in '' uuid; do
17995   if test -z "$ac_lib"; then
17996     ac_res="none required"
17997   else
17998     ac_res=-l$ac_lib
17999     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18000   fi
18001   rm -f conftest.$ac_objext conftest$ac_exeext
18002 if { (ac_try="$ac_link"
18003 case "(($ac_try" in
18004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005   *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008   (eval "$ac_link") 2>conftest.er1
18009   ac_status=$?
18010   grep -v '^ *+' conftest.er1 >conftest.err
18011   rm -f conftest.er1
18012   cat conftest.err >&5
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); } && {
18015          test -z "$ac_c_werror_flag" ||
18016          test ! -s conftest.err
18017        } && test -s conftest$ac_exeext &&
18018        $as_test_x conftest$ac_exeext; then
18019   ac_cv_search_uuid_to_str=$ac_res
18020 else
18021   echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18023
18024
18025 fi
18026
18027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18028       conftest$ac_exeext
18029   if test "${ac_cv_search_uuid_to_str+set}" = set; then
18030   break
18031 fi
18032 done
18033 if test "${ac_cv_search_uuid_to_str+set}" = set; then
18034   :
18035 else
18036   ac_cv_search_uuid_to_str=no
18037 fi
18038 rm conftest.$ac_ext
18039 LIBS=$ac_func_search_save_LIBS
18040 fi
18041 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
18042 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
18043 ac_res=$ac_cv_search_uuid_to_str
18044 if test "$ac_res" != no; then
18045   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18046   have_uuid=yes
18047 else
18048   :
18049 fi
18050
18051         { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
18052 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
18053 if test "${ac_cv_search_uuid_create+set}" = set; then
18054   echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056   ac_func_search_save_LIBS=$LIBS
18057 cat >conftest.$ac_ext <<_ACEOF
18058 /* confdefs.h.  */
18059 _ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h.  */
18063
18064 /* Override any GCC internal prototype to avoid an error.
18065    Use char because int might match the return type of a GCC
18066    builtin and then its argument prototype would still apply.  */
18067 #ifdef __cplusplus
18068 extern "C"
18069 #endif
18070 char uuid_create ();
18071 int
18072 main ()
18073 {
18074 return uuid_create ();
18075   ;
18076   return 0;
18077 }
18078 _ACEOF
18079 for ac_lib in '' uuid; do
18080   if test -z "$ac_lib"; then
18081     ac_res="none required"
18082   else
18083     ac_res=-l$ac_lib
18084     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18085   fi
18086   rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (ac_try="$ac_link"
18088 case "(($ac_try" in
18089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090   *) ac_try_echo=$ac_try;;
18091 esac
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093   (eval "$ac_link") 2>conftest.er1
18094   ac_status=$?
18095   grep -v '^ *+' conftest.er1 >conftest.err
18096   rm -f conftest.er1
18097   cat conftest.err >&5
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } && {
18100          test -z "$ac_c_werror_flag" ||
18101          test ! -s conftest.err
18102        } && test -s conftest$ac_exeext &&
18103        $as_test_x conftest$ac_exeext; then
18104   ac_cv_search_uuid_create=$ac_res
18105 else
18106   echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18108
18109
18110 fi
18111
18112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18113       conftest$ac_exeext
18114   if test "${ac_cv_search_uuid_create+set}" = set; then
18115   break
18116 fi
18117 done
18118 if test "${ac_cv_search_uuid_create+set}" = set; then
18119   :
18120 else
18121   ac_cv_search_uuid_create=no
18122 fi
18123 rm conftest.$ac_ext
18124 LIBS=$ac_func_search_save_LIBS
18125 fi
18126 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
18127 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
18128 ac_res=$ac_cv_search_uuid_create
18129 if test "$ac_res" != no; then
18130   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18131   :
18132 else
18133   have_uuid=no
18134 fi
18135
18136         LIBS="$save_LIBS"
18137
18138         if test $have_uuid = yes ; then
18139
18140 cat >>confdefs.h <<\_ACEOF
18141 #define HAVE_UUID_TO_STR 1
18142 _ACEOF
18143
18144
18145                 test "$ac_cv_search_uuid_to_str" = "none required" || \
18146                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
18147         fi
18148 fi
18149
18150 if test $have_uuid = no ; then
18151
18152 for ac_header in uuid/uuid.h
18153 do
18154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18156   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18159   echo $ECHO_N "(cached) $ECHO_C" >&6
18160 fi
18161 ac_res=`eval echo '${'$as_ac_Header'}'`
18162                { echo "$as_me:$LINENO: result: $ac_res" >&5
18163 echo "${ECHO_T}$ac_res" >&6; }
18164 else
18165   # Is the header compilable?
18166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18168 cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h.  */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h.  */
18174 $ac_includes_default
18175 #include <$ac_header>
18176 _ACEOF
18177 rm -f conftest.$ac_objext
18178 if { (ac_try="$ac_compile"
18179 case "(($ac_try" in
18180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181   *) ac_try_echo=$ac_try;;
18182 esac
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184   (eval "$ac_compile") 2>conftest.er1
18185   ac_status=$?
18186   grep -v '^ *+' conftest.er1 >conftest.err
18187   rm -f conftest.er1
18188   cat conftest.err >&5
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); } && {
18191          test -z "$ac_c_werror_flag" ||
18192          test ! -s conftest.err
18193        } && test -s conftest.$ac_objext; then
18194   ac_header_compiler=yes
18195 else
18196   echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18198
18199         ac_header_compiler=no
18200 fi
18201
18202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18204 echo "${ECHO_T}$ac_header_compiler" >&6; }
18205
18206 # Is the header present?
18207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h.  */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h.  */
18215 #include <$ac_header>
18216 _ACEOF
18217 if { (ac_try="$ac_cpp conftest.$ac_ext"
18218 case "(($ac_try" in
18219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220   *) ac_try_echo=$ac_try;;
18221 esac
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18224   ac_status=$?
18225   grep -v '^ *+' conftest.er1 >conftest.err
18226   rm -f conftest.er1
18227   cat conftest.err >&5
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); } >/dev/null && {
18230          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18231          test ! -s conftest.err
18232        }; then
18233   ac_header_preproc=yes
18234 else
18235   echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18237
18238   ac_header_preproc=no
18239 fi
18240
18241 rm -f conftest.err conftest.$ac_ext
18242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18243 echo "${ECHO_T}$ac_header_preproc" >&6; }
18244
18245 # So?  What about this header?
18246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18247   yes:no: )
18248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18252     ac_header_preproc=yes
18253     ;;
18254   no:yes:* )
18255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18267     ( cat <<\_ASBOX
18268 ## --------------------------------------------- ##
18269 ## Report this to <http://www.openldap.org/its/> ##
18270 ## --------------------------------------------- ##
18271 _ASBOX
18272      ) | sed "s/^/$as_me: WARNING:     /" >&2
18273     ;;
18274 esac
18275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18278   echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280   eval "$as_ac_Header=\$ac_header_preproc"
18281 fi
18282 ac_res=`eval echo '${'$as_ac_Header'}'`
18283                { echo "$as_me:$LINENO: result: $ac_res" >&5
18284 echo "${ECHO_T}$ac_res" >&6; }
18285
18286 fi
18287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18288   cat >>confdefs.h <<_ACEOF
18289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18290 _ACEOF
18291
18292 fi
18293
18294 done
18295
18296         if test $ac_cv_header_uuid_uuid_h = yes ; then
18297                 save_LIBS="$LIBS"
18298                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18299 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18300 if test "${ac_cv_search_uuid_generate+set}" = set; then
18301   echo $ECHO_N "(cached) $ECHO_C" >&6
18302 else
18303   ac_func_search_save_LIBS=$LIBS
18304 cat >conftest.$ac_ext <<_ACEOF
18305 /* confdefs.h.  */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h.  */
18310
18311 /* Override any GCC internal prototype to avoid an error.
18312    Use char because int might match the return type of a GCC
18313    builtin and then its argument prototype would still apply.  */
18314 #ifdef __cplusplus
18315 extern "C"
18316 #endif
18317 char uuid_generate ();
18318 int
18319 main ()
18320 {
18321 return uuid_generate ();
18322   ;
18323   return 0;
18324 }
18325 _ACEOF
18326 for ac_lib in '' uuid; do
18327   if test -z "$ac_lib"; then
18328     ac_res="none required"
18329   else
18330     ac_res=-l$ac_lib
18331     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18332   fi
18333   rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337   *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340   (eval "$ac_link") 2>conftest.er1
18341   ac_status=$?
18342   grep -v '^ *+' conftest.er1 >conftest.err
18343   rm -f conftest.er1
18344   cat conftest.err >&5
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); } && {
18347          test -z "$ac_c_werror_flag" ||
18348          test ! -s conftest.err
18349        } && test -s conftest$ac_exeext &&
18350        $as_test_x conftest$ac_exeext; then
18351   ac_cv_search_uuid_generate=$ac_res
18352 else
18353   echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18355
18356
18357 fi
18358
18359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18360       conftest$ac_exeext
18361   if test "${ac_cv_search_uuid_generate+set}" = set; then
18362   break
18363 fi
18364 done
18365 if test "${ac_cv_search_uuid_generate+set}" = set; then
18366   :
18367 else
18368   ac_cv_search_uuid_generate=no
18369 fi
18370 rm conftest.$ac_ext
18371 LIBS=$ac_func_search_save_LIBS
18372 fi
18373 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18374 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18375 ac_res=$ac_cv_search_uuid_generate
18376 if test "$ac_res" != no; then
18377   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18378   have_uuid=yes
18379 else
18380   :
18381 fi
18382
18383                 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18384 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18385 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18386   echo $ECHO_N "(cached) $ECHO_C" >&6
18387 else
18388   ac_func_search_save_LIBS=$LIBS
18389 cat >conftest.$ac_ext <<_ACEOF
18390 /* confdefs.h.  */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h.  */
18395
18396 /* Override any GCC internal prototype to avoid an error.
18397    Use char because int might match the return type of a GCC
18398    builtin and then its argument prototype would still apply.  */
18399 #ifdef __cplusplus
18400 extern "C"
18401 #endif
18402 char uuid_unparse_lower ();
18403 int
18404 main ()
18405 {
18406 return uuid_unparse_lower ();
18407   ;
18408   return 0;
18409 }
18410 _ACEOF
18411 for ac_lib in '' uuid; do
18412   if test -z "$ac_lib"; then
18413     ac_res="none required"
18414   else
18415     ac_res=-l$ac_lib
18416     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18417   fi
18418   rm -f conftest.$ac_objext conftest$ac_exeext
18419 if { (ac_try="$ac_link"
18420 case "(($ac_try" in
18421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422   *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425   (eval "$ac_link") 2>conftest.er1
18426   ac_status=$?
18427   grep -v '^ *+' conftest.er1 >conftest.err
18428   rm -f conftest.er1
18429   cat conftest.err >&5
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); } && {
18432          test -z "$ac_c_werror_flag" ||
18433          test ! -s conftest.err
18434        } && test -s conftest$ac_exeext &&
18435        $as_test_x conftest$ac_exeext; then
18436   ac_cv_search_uuid_unparse_lower=$ac_res
18437 else
18438   echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18440
18441
18442 fi
18443
18444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18445       conftest$ac_exeext
18446   if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18447   break
18448 fi
18449 done
18450 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18451   :
18452 else
18453   ac_cv_search_uuid_unparse_lower=no
18454 fi
18455 rm conftest.$ac_ext
18456 LIBS=$ac_func_search_save_LIBS
18457 fi
18458 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18459 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18460 ac_res=$ac_cv_search_uuid_unparse_lower
18461 if test "$ac_res" != no; then
18462   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18463   :
18464 else
18465   have_uuid=no
18466 fi
18467
18468                 LIBS="$save_LIBS"
18469
18470                 if test $have_uuid = yes ; then
18471
18472 cat >>confdefs.h <<\_ACEOF
18473 #define HAVE_UUID_GENERATE 1
18474 _ACEOF
18475
18476
18477                         test "$ac_cv_search_uuid_generate" = "none required" || \
18478                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18479                 fi
18480         fi
18481 fi
18482
18483 if test $have_uuid = no ; then
18484         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18485 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18486         save_LIBS="$LIBS"
18487         LIBS="$LIBS -lrpcrt4"
18488         cat >conftest.$ac_ext <<_ACEOF
18489 /* confdefs.h.  */
18490 _ACEOF
18491 cat confdefs.h >>conftest.$ac_ext
18492 cat >>conftest.$ac_ext <<_ACEOF
18493 /* end confdefs.h.  */
18494
18495                 int __stdcall UuidCreate(void *);
18496                 int __stdcall UuidToStringA(void *,void **);
18497
18498 int
18499 main ()
18500 {
18501
18502                 UuidCreate(0);
18503                 UuidToStringA(0,0);
18504
18505   ;
18506   return 0;
18507 }
18508 _ACEOF
18509 rm -f conftest.$ac_objext conftest$ac_exeext
18510 if { (ac_try="$ac_link"
18511 case "(($ac_try" in
18512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513   *) ac_try_echo=$ac_try;;
18514 esac
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516   (eval "$ac_link") 2>conftest.er1
18517   ac_status=$?
18518   grep -v '^ *+' conftest.er1 >conftest.err
18519   rm -f conftest.er1
18520   cat conftest.err >&5
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); } && {
18523          test -z "$ac_c_werror_flag" ||
18524          test ! -s conftest.err
18525        } && test -s conftest$ac_exeext &&
18526        $as_test_x conftest$ac_exeext; then
18527   need_rpcrt=yes
18528 else
18529   echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18531
18532         need_rpcrt=no
18533 fi
18534
18535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18536       conftest$ac_exeext conftest.$ac_ext
18537         if test $need_rpcrt = yes; then
18538                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18539         fi
18540         LIBS="$save_LIBS"
18541         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18542 echo "${ECHO_T}$need_rpcrt" >&6; }
18543 fi
18544
18545 ol_cv_lib_resolver=no
18546 if test $ol_cv_lib_resolver = no ; then
18547         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18548 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18549 if test "${ol_cv_resolver_none+set}" = set; then
18550   echo $ECHO_N "(cached) $ECHO_C" >&6
18551 else
18552
18553         ol_RESOLVER_LIB=
18554         ol_LIBS=$LIBS
18555         LIBS="$ol_RESOLVER_LIB $LIBS"
18556
18557         cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563
18564 #ifdef HAVE_SYS_TYPES_H
18565 #       include <sys/types.h>
18566 #endif
18567 #include <netinet/in.h>
18568 #ifdef HAVE_ARPA_NAMESER_H
18569 #       include <arpa/nameser.h>
18570 #endif
18571 #ifdef HAVE_RESOLV_H
18572 #       include <resolv.h>
18573 #endif
18574
18575 int
18576 main ()
18577 {
18578 {
18579         int len, status;
18580         char *request = NULL;
18581         unsigned char reply[64*1024];
18582         unsigned char host[64*1024];
18583         unsigned char *p;
18584
18585 #ifdef NS_HFIXEDSZ
18586         /* Bind 8/9 interface */
18587         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18588 #else
18589         /* Bind 4 interface */
18590 # ifndef T_SRV
18591 #  define T_SRV 33
18592 # endif
18593         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18594 #endif
18595         p = reply;
18596 #ifdef NS_HFIXEDSZ
18597         /* Bind 8/9 interface */
18598         p += NS_HFIXEDSZ;
18599 #elif defined(HFIXEDSZ)
18600         /* Bind 4 interface w/ HFIXEDSZ */
18601         p += HFIXEDSZ;
18602 #else
18603         /* Bind 4 interface w/o HFIXEDSZ */
18604         p += sizeof(HEADER);
18605 #endif
18606         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18607 }
18608   ;
18609   return 0;
18610 }
18611 _ACEOF
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616   *) ac_try_echo=$ac_try;;
18617 esac
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619   (eval "$ac_link") 2>conftest.er1
18620   ac_status=$?
18621   grep -v '^ *+' conftest.er1 >conftest.err
18622   rm -f conftest.er1
18623   cat conftest.err >&5
18624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625   (exit $ac_status); } && {
18626          test -z "$ac_c_werror_flag" ||
18627          test ! -s conftest.err
18628        } && test -s conftest$ac_exeext &&
18629        $as_test_x conftest$ac_exeext; then
18630   ol_cv_resolver_none=yes
18631 else
18632   echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18634
18635         ol_cv_resolver_none=no
18636 fi
18637
18638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18639       conftest$ac_exeext conftest.$ac_ext
18640
18641         LIBS="$ol_LIBS"
18642
18643 fi
18644 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18645 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18646
18647         if test $ol_cv_resolver_none = yes ; then
18648                 ol_cv_lib_resolver=yes
18649         fi
18650 fi
18651
18652 if test $ol_cv_lib_resolver = no ; then
18653         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18654 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18655 if test "${ol_cv_resolver_resolv+set}" = set; then
18656   echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658
18659         ol_RESOLVER_LIB=-lresolv
18660         ol_LIBS=$LIBS
18661         LIBS="$ol_RESOLVER_LIB $LIBS"
18662
18663         cat >conftest.$ac_ext <<_ACEOF
18664 /* confdefs.h.  */
18665 _ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h.  */
18669
18670 #ifdef HAVE_SYS_TYPES_H
18671 #       include <sys/types.h>
18672 #endif
18673 #include <netinet/in.h>
18674 #ifdef HAVE_ARPA_NAMESER_H
18675 #       include <arpa/nameser.h>
18676 #endif
18677 #ifdef HAVE_RESOLV_H
18678 #       include <resolv.h>
18679 #endif
18680
18681 int
18682 main ()
18683 {
18684 {
18685         int len, status;
18686         char *request = NULL;
18687         unsigned char reply[64*1024];
18688         unsigned char host[64*1024];
18689         unsigned char *p;
18690
18691 #ifdef NS_HFIXEDSZ
18692         /* Bind 8/9 interface */
18693         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18694 #else
18695         /* Bind 4 interface */
18696 # ifndef T_SRV
18697 #  define T_SRV 33
18698 # endif
18699         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18700 #endif
18701         p = reply;
18702 #ifdef NS_HFIXEDSZ
18703         /* Bind 8/9 interface */
18704         p += NS_HFIXEDSZ;
18705 #elif defined(HFIXEDSZ)
18706         /* Bind 4 interface w/ HFIXEDSZ */
18707         p += HFIXEDSZ;
18708 #else
18709         /* Bind 4 interface w/o HFIXEDSZ */
18710         p += sizeof(HEADER);
18711 #endif
18712         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18713 }
18714   ;
18715   return 0;
18716 }
18717 _ACEOF
18718 rm -f conftest.$ac_objext conftest$ac_exeext
18719 if { (ac_try="$ac_link"
18720 case "(($ac_try" in
18721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722   *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725   (eval "$ac_link") 2>conftest.er1
18726   ac_status=$?
18727   grep -v '^ *+' conftest.er1 >conftest.err
18728   rm -f conftest.er1
18729   cat conftest.err >&5
18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731   (exit $ac_status); } && {
18732          test -z "$ac_c_werror_flag" ||
18733          test ! -s conftest.err
18734        } && test -s conftest$ac_exeext &&
18735        $as_test_x conftest$ac_exeext; then
18736   ol_cv_resolver_resolv=yes
18737 else
18738   echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18740
18741         ol_cv_resolver_resolv=no
18742 fi
18743
18744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18745       conftest$ac_exeext conftest.$ac_ext
18746
18747         LIBS="$ol_LIBS"
18748
18749 fi
18750 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18751 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18752
18753         if test $ol_cv_resolver_resolv = yes ; then
18754                 ol_cv_lib_resolver=-lresolv
18755         fi
18756 fi
18757
18758 if test $ol_cv_lib_resolver = no ; then
18759         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18760 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18761 if test "${ol_cv_resolver_bind+set}" = set; then
18762   echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764
18765         ol_RESOLVER_LIB=-lbind
18766         ol_LIBS=$LIBS
18767         LIBS="$ol_RESOLVER_LIB $LIBS"
18768
18769         cat >conftest.$ac_ext <<_ACEOF
18770 /* confdefs.h.  */
18771 _ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h.  */
18775
18776 #ifdef HAVE_SYS_TYPES_H
18777 #       include <sys/types.h>
18778 #endif
18779 #include <netinet/in.h>
18780 #ifdef HAVE_ARPA_NAMESER_H
18781 #       include <arpa/nameser.h>
18782 #endif
18783 #ifdef HAVE_RESOLV_H
18784 #       include <resolv.h>
18785 #endif
18786
18787 int
18788 main ()
18789 {
18790 {
18791         int len, status;
18792         char *request = NULL;
18793         unsigned char reply[64*1024];
18794         unsigned char host[64*1024];
18795         unsigned char *p;
18796
18797 #ifdef NS_HFIXEDSZ
18798         /* Bind 8/9 interface */
18799         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18800 #else
18801         /* Bind 4 interface */
18802 # ifndef T_SRV
18803 #  define T_SRV 33
18804 # endif
18805         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18806 #endif
18807         p = reply;
18808 #ifdef NS_HFIXEDSZ
18809         /* Bind 8/9 interface */
18810         p += NS_HFIXEDSZ;
18811 #elif defined(HFIXEDSZ)
18812         /* Bind 4 interface w/ HFIXEDSZ */
18813         p += HFIXEDSZ;
18814 #else
18815         /* Bind 4 interface w/o HFIXEDSZ */
18816         p += sizeof(HEADER);
18817 #endif
18818         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18819 }
18820   ;
18821   return 0;
18822 }
18823 _ACEOF
18824 rm -f conftest.$ac_objext conftest$ac_exeext
18825 if { (ac_try="$ac_link"
18826 case "(($ac_try" in
18827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828   *) ac_try_echo=$ac_try;;
18829 esac
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831   (eval "$ac_link") 2>conftest.er1
18832   ac_status=$?
18833   grep -v '^ *+' conftest.er1 >conftest.err
18834   rm -f conftest.er1
18835   cat conftest.err >&5
18836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837   (exit $ac_status); } && {
18838          test -z "$ac_c_werror_flag" ||
18839          test ! -s conftest.err
18840        } && test -s conftest$ac_exeext &&
18841        $as_test_x conftest$ac_exeext; then
18842   ol_cv_resolver_bind=yes
18843 else
18844   echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18846
18847         ol_cv_resolver_bind=no
18848 fi
18849
18850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18851       conftest$ac_exeext conftest.$ac_ext
18852
18853         LIBS="$ol_LIBS"
18854
18855 fi
18856 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18857 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18858
18859         if test $ol_cv_resolver_bind = yes ; then
18860                 ol_cv_lib_resolver=-lbind
18861         fi
18862 fi
18863
18864
18865
18866 ol_link_dnssrv=no
18867 if test "$ol_cv_lib_resolver" != no ; then
18868
18869 cat >>confdefs.h <<\_ACEOF
18870 #define HAVE_RES_QUERY 1
18871 _ACEOF
18872
18873
18874         if test "$ol_enable_dnssrv" != no ; then
18875                 ol_link_dnssrv=yes
18876         fi
18877
18878         if test "$ol_cv_lib_resolver" != yes ; then
18879                 LIBS="$ol_cv_lib_resolver $LIBS"
18880         fi
18881 fi
18882
18883 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18884         if test "$ol_link_dnssrv" = no ; then
18885                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18886 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18887    { (exit 1); exit 1; }; }
18888         fi
18889 else
18890         ol_enable_dnssrv=no
18891 fi
18892
18893
18894 for ac_func in hstrerror
18895 do
18896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18900   echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902   cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h.  */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h.  */
18908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18910 #define $ac_func innocuous_$ac_func
18911
18912 /* System header to define __stub macros and hopefully few prototypes,
18913     which can conflict with char $ac_func (); below.
18914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18915     <limits.h> exists even on freestanding compilers.  */
18916
18917 #ifdef __STDC__
18918 # include <limits.h>
18919 #else
18920 # include <assert.h>
18921 #endif
18922
18923 #undef $ac_func
18924
18925 /* Override any GCC internal prototype to avoid an error.
18926    Use char because int might match the return type of a GCC
18927    builtin and then its argument prototype would still apply.  */
18928 #ifdef __cplusplus
18929 extern "C"
18930 #endif
18931 char $ac_func ();
18932 /* The GNU C library defines this for functions which it implements
18933     to always fail with ENOSYS.  Some functions are actually named
18934     something starting with __ and the normal name is an alias.  */
18935 #if defined __stub_$ac_func || defined __stub___$ac_func
18936 choke me
18937 #endif
18938
18939 int
18940 main ()
18941 {
18942 return $ac_func ();
18943   ;
18944   return 0;
18945 }
18946 _ACEOF
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951   *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954   (eval "$ac_link") 2>conftest.er1
18955   ac_status=$?
18956   grep -v '^ *+' conftest.er1 >conftest.err
18957   rm -f conftest.er1
18958   cat conftest.err >&5
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } && {
18961          test -z "$ac_c_werror_flag" ||
18962          test ! -s conftest.err
18963        } && test -s conftest$ac_exeext &&
18964        $as_test_x conftest$ac_exeext; then
18965   eval "$as_ac_var=yes"
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970         eval "$as_ac_var=no"
18971 fi
18972
18973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18974       conftest$ac_exeext conftest.$ac_ext
18975 fi
18976 ac_res=`eval echo '${'$as_ac_var'}'`
18977                { echo "$as_me:$LINENO: result: $ac_res" >&5
18978 echo "${ECHO_T}$ac_res" >&6; }
18979 if test `eval echo '${'$as_ac_var'}'` = yes; then
18980   cat >>confdefs.h <<_ACEOF
18981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18982 _ACEOF
18983
18984 fi
18985 done
18986
18987
18988
18989
18990
18991
18992 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18993 do
18994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18998   echo $ECHO_N "(cached) $ECHO_C" >&6
18999 else
19000   cat >conftest.$ac_ext <<_ACEOF
19001 /* confdefs.h.  */
19002 _ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h.  */
19006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19008 #define $ac_func innocuous_$ac_func
19009
19010 /* System header to define __stub macros and hopefully few prototypes,
19011     which can conflict with char $ac_func (); below.
19012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19013     <limits.h> exists even on freestanding compilers.  */
19014
19015 #ifdef __STDC__
19016 # include <limits.h>
19017 #else
19018 # include <assert.h>
19019 #endif
19020
19021 #undef $ac_func
19022
19023 /* Override any GCC internal prototype to avoid an error.
19024    Use char because int might match the return type of a GCC
19025    builtin and then its argument prototype would still apply.  */
19026 #ifdef __cplusplus
19027 extern "C"
19028 #endif
19029 char $ac_func ();
19030 /* The GNU C library defines this for functions which it implements
19031     to always fail with ENOSYS.  Some functions are actually named
19032     something starting with __ and the normal name is an alias.  */
19033 #if defined __stub_$ac_func || defined __stub___$ac_func
19034 choke me
19035 #endif
19036
19037 int
19038 main ()
19039 {
19040 return $ac_func ();
19041   ;
19042   return 0;
19043 }
19044 _ACEOF
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (ac_try="$ac_link"
19047 case "(($ac_try" in
19048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049   *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052   (eval "$ac_link") 2>conftest.er1
19053   ac_status=$?
19054   grep -v '^ *+' conftest.er1 >conftest.err
19055   rm -f conftest.er1
19056   cat conftest.err >&5
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); } && {
19059          test -z "$ac_c_werror_flag" ||
19060          test ! -s conftest.err
19061        } && test -s conftest$ac_exeext &&
19062        $as_test_x conftest$ac_exeext; then
19063   eval "$as_ac_var=yes"
19064 else
19065   echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19067
19068         eval "$as_ac_var=no"
19069 fi
19070
19071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19072       conftest$ac_exeext conftest.$ac_ext
19073 fi
19074 ac_res=`eval echo '${'$as_ac_var'}'`
19075                { echo "$as_me:$LINENO: result: $ac_res" >&5
19076 echo "${ECHO_T}$ac_res" >&6; }
19077 if test `eval echo '${'$as_ac_var'}'` = yes; then
19078   cat >>confdefs.h <<_ACEOF
19079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19080 _ACEOF
19081
19082 fi
19083 done
19084
19085
19086 ol_link_ipv6=no
19087 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
19088         if test $ol_enable_ipv6 = yes ; then
19089                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
19090 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
19091    { (exit 1); exit 1; }; }
19092         fi
19093 elif test $ol_enable_ipv6 != no ; then
19094         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
19095 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
19096 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
19097   echo $ECHO_N "(cached) $ECHO_C" >&6
19098 else
19099
19100                 cat >conftest.$ac_ext <<_ACEOF
19101 /* confdefs.h.  */
19102 _ACEOF
19103 cat confdefs.h >>conftest.$ac_ext
19104 cat >>conftest.$ac_ext <<_ACEOF
19105 /* end confdefs.h.  */
19106
19107 #                       include <netinet/in.h>
19108 #                       ifdef INET6_ADDRSTRLEN
19109                                 __has_inet6_addrstrlen__;
19110 #                       endif
19111
19112 _ACEOF
19113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19114   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
19115   ol_cv_inet6_addrstrlen=yes
19116 else
19117   ol_cv_inet6_addrstrlen=no
19118 fi
19119 rm -f conftest*
19120
19121 fi
19122 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
19123 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
19124
19125
19126         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
19127 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
19128 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
19129   echo $ECHO_N "(cached) $ECHO_C" >&6
19130 else
19131
19132                 cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h.  */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h.  */
19138
19139 #include <sys/types.h>
19140 #include <sys/socket.h>
19141
19142 int
19143 main ()
19144 {
19145
19146                         struct sockaddr_storage ss;
19147
19148   ;
19149   return 0;
19150 }
19151 _ACEOF
19152 rm -f conftest.$ac_objext
19153 if { (ac_try="$ac_compile"
19154 case "(($ac_try" in
19155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156   *) ac_try_echo=$ac_try;;
19157 esac
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159   (eval "$ac_compile") 2>conftest.er1
19160   ac_status=$?
19161   grep -v '^ *+' conftest.er1 >conftest.err
19162   rm -f conftest.er1
19163   cat conftest.err >&5
19164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); } && {
19166          test -z "$ac_c_werror_flag" ||
19167          test ! -s conftest.err
19168        } && test -s conftest.$ac_objext; then
19169   ol_cv_struct_sockaddr_storage=yes
19170 else
19171   echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19173
19174         ol_cv_struct_sockaddr_storage=no
19175 fi
19176
19177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19178 fi
19179 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19180 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19181
19182         if test $ol_cv_inet6_addrstrlen = yes &&
19183            test $ol_cv_struct_sockaddr_storage = yes ; then
19184                 ol_link_ipv6=yes
19185         elif test $ol_enable_ipv6 = yes &&
19186              test $ol_cv_inet6_addrstrlen = no ; then
19187                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19188 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19189    { (exit 1); exit 1; }; }
19190         elif test $ol_enable_ipv6 = yes &&
19191              test $ol_cv_struct_sockaddr_storage = no ; then
19192                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19193 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19194    { (exit 1); exit 1; }; }
19195         fi
19196 fi
19197
19198 if test $ol_enable_local != no ; then
19199
19200 for ac_header in sys/un.h
19201 do
19202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19204   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19207   echo $ECHO_N "(cached) $ECHO_C" >&6
19208 fi
19209 ac_res=`eval echo '${'$as_ac_Header'}'`
19210                { echo "$as_me:$LINENO: result: $ac_res" >&5
19211 echo "${ECHO_T}$ac_res" >&6; }
19212 else
19213   # Is the header compilable?
19214 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19216 cat >conftest.$ac_ext <<_ACEOF
19217 /* confdefs.h.  */
19218 _ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h.  */
19222 $ac_includes_default
19223 #include <$ac_header>
19224 _ACEOF
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229   *) ac_try_echo=$ac_try;;
19230 esac
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232   (eval "$ac_compile") 2>conftest.er1
19233   ac_status=$?
19234   grep -v '^ *+' conftest.er1 >conftest.err
19235   rm -f conftest.er1
19236   cat conftest.err >&5
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); } && {
19239          test -z "$ac_c_werror_flag" ||
19240          test ! -s conftest.err
19241        } && test -s conftest.$ac_objext; then
19242   ac_header_compiler=yes
19243 else
19244   echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19246
19247         ac_header_compiler=no
19248 fi
19249
19250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19252 echo "${ECHO_T}$ac_header_compiler" >&6; }
19253
19254 # Is the header present?
19255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19257 cat >conftest.$ac_ext <<_ACEOF
19258 /* confdefs.h.  */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h.  */
19263 #include <$ac_header>
19264 _ACEOF
19265 if { (ac_try="$ac_cpp conftest.$ac_ext"
19266 case "(($ac_try" in
19267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268   *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19272   ac_status=$?
19273   grep -v '^ *+' conftest.er1 >conftest.err
19274   rm -f conftest.er1
19275   cat conftest.err >&5
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); } >/dev/null && {
19278          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19279          test ! -s conftest.err
19280        }; then
19281   ac_header_preproc=yes
19282 else
19283   echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19285
19286   ac_header_preproc=no
19287 fi
19288
19289 rm -f conftest.err conftest.$ac_ext
19290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19291 echo "${ECHO_T}$ac_header_preproc" >&6; }
19292
19293 # So?  What about this header?
19294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19295   yes:no: )
19296     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19300     ac_header_preproc=yes
19301     ;;
19302   no:yes:* )
19303     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19305     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19306 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19307     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19309     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19310 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19313     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19315     ( cat <<\_ASBOX
19316 ## --------------------------------------------- ##
19317 ## Report this to <http://www.openldap.org/its/> ##
19318 ## --------------------------------------------- ##
19319 _ASBOX
19320      ) | sed "s/^/$as_me: WARNING:     /" >&2
19321     ;;
19322 esac
19323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19326   echo $ECHO_N "(cached) $ECHO_C" >&6
19327 else
19328   eval "$as_ac_Header=\$ac_header_preproc"
19329 fi
19330 ac_res=`eval echo '${'$as_ac_Header'}'`
19331                { echo "$as_me:$LINENO: result: $ac_res" >&5
19332 echo "${ECHO_T}$ac_res" >&6; }
19333
19334 fi
19335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19336   cat >>confdefs.h <<_ACEOF
19337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19338 _ACEOF
19339
19340 fi
19341
19342 done
19343
19344
19345         if test $ol_enable_local = auto ; then
19346                 ol_enable_local=$ac_cv_header_sys_un_h
19347         elif test $ac_cv_header_sys_un_h = no ; then
19348                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19349 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19350    { (exit 1); exit 1; }; }
19351         fi
19352 fi
19353
19354
19355 if test $ol_with_tls = yes ; then
19356         ol_with_tls=auto
19357 fi
19358
19359 ol_link_tls=no
19360 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19361
19362 for ac_header in openssl/ssl.h
19363 do
19364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19366   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19369   echo $ECHO_N "(cached) $ECHO_C" >&6
19370 fi
19371 ac_res=`eval echo '${'$as_ac_Header'}'`
19372                { echo "$as_me:$LINENO: result: $ac_res" >&5
19373 echo "${ECHO_T}$ac_res" >&6; }
19374 else
19375   # Is the header compilable?
19376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19378 cat >conftest.$ac_ext <<_ACEOF
19379 /* confdefs.h.  */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h.  */
19384 $ac_includes_default
19385 #include <$ac_header>
19386 _ACEOF
19387 rm -f conftest.$ac_objext
19388 if { (ac_try="$ac_compile"
19389 case "(($ac_try" in
19390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391   *) ac_try_echo=$ac_try;;
19392 esac
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394   (eval "$ac_compile") 2>conftest.er1
19395   ac_status=$?
19396   grep -v '^ *+' conftest.er1 >conftest.err
19397   rm -f conftest.er1
19398   cat conftest.err >&5
19399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400   (exit $ac_status); } && {
19401          test -z "$ac_c_werror_flag" ||
19402          test ! -s conftest.err
19403        } && test -s conftest.$ac_objext; then
19404   ac_header_compiler=yes
19405 else
19406   echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19408
19409         ac_header_compiler=no
19410 fi
19411
19412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19414 echo "${ECHO_T}$ac_header_compiler" >&6; }
19415
19416 # Is the header present?
19417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19419 cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h.  */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h.  */
19425 #include <$ac_header>
19426 _ACEOF
19427 if { (ac_try="$ac_cpp conftest.$ac_ext"
19428 case "(($ac_try" in
19429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430   *) ac_try_echo=$ac_try;;
19431 esac
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19434   ac_status=$?
19435   grep -v '^ *+' conftest.er1 >conftest.err
19436   rm -f conftest.er1
19437   cat conftest.err >&5
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); } >/dev/null && {
19440          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19441          test ! -s conftest.err
19442        }; then
19443   ac_header_preproc=yes
19444 else
19445   echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19447
19448   ac_header_preproc=no
19449 fi
19450
19451 rm -f conftest.err conftest.$ac_ext
19452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19453 echo "${ECHO_T}$ac_header_preproc" >&6; }
19454
19455 # So?  What about this header?
19456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19457   yes:no: )
19458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19462     ac_header_preproc=yes
19463     ;;
19464   no:yes:* )
19465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19477     ( cat <<\_ASBOX
19478 ## --------------------------------------------- ##
19479 ## Report this to <http://www.openldap.org/its/> ##
19480 ## --------------------------------------------- ##
19481 _ASBOX
19482      ) | sed "s/^/$as_me: WARNING:     /" >&2
19483     ;;
19484 esac
19485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19488   echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19490   eval "$as_ac_Header=\$ac_header_preproc"
19491 fi
19492 ac_res=`eval echo '${'$as_ac_Header'}'`
19493                { echo "$as_me:$LINENO: result: $ac_res" >&5
19494 echo "${ECHO_T}$ac_res" >&6; }
19495
19496 fi
19497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19498   cat >>confdefs.h <<_ACEOF
19499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19500 _ACEOF
19501
19502 fi
19503
19504 done
19505
19506
19507         if test $ac_cv_header_openssl_ssl_h = yes ; then
19508                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19509 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19510 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19511   echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513   ac_check_lib_save_LIBS=$LIBS
19514 LIBS="-lssl -lcrypto $LIBS"
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h.  */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h.  */
19521
19522 /* Override any GCC internal prototype to avoid an error.
19523    Use char because int might match the return type of a GCC
19524    builtin and then its argument prototype would still apply.  */
19525 #ifdef __cplusplus
19526 extern "C"
19527 #endif
19528 char SSL_library_init ();
19529 int
19530 main ()
19531 {
19532 return SSL_library_init ();
19533   ;
19534   return 0;
19535 }
19536 _ACEOF
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541   *) ac_try_echo=$ac_try;;
19542 esac
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544   (eval "$ac_link") 2>conftest.er1
19545   ac_status=$?
19546   grep -v '^ *+' conftest.er1 >conftest.err
19547   rm -f conftest.er1
19548   cat conftest.err >&5
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); } && {
19551          test -z "$ac_c_werror_flag" ||
19552          test ! -s conftest.err
19553        } && test -s conftest$ac_exeext &&
19554        $as_test_x conftest$ac_exeext; then
19555   ac_cv_lib_ssl_SSL_library_init=yes
19556 else
19557   echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19559
19560         ac_cv_lib_ssl_SSL_library_init=no
19561 fi
19562
19563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19564       conftest$ac_exeext conftest.$ac_ext
19565 LIBS=$ac_check_lib_save_LIBS
19566 fi
19567 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19568 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19569 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19570   have_openssl=yes
19571                         need_rsaref=no
19572 else
19573   have_openssl=no
19574 fi
19575
19576
19577                 if test $have_openssl = no ; then
19578                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19579 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19580 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19581   echo $ECHO_N "(cached) $ECHO_C" >&6
19582 else
19583   ac_check_lib_save_LIBS=$LIBS
19584 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h.  */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h.  */
19591
19592 /* Override any GCC internal prototype to avoid an error.
19593    Use char because int might match the return type of a GCC
19594    builtin and then its argument prototype would still apply.  */
19595 #ifdef __cplusplus
19596 extern "C"
19597 #endif
19598 char ssl3_accept ();
19599 int
19600 main ()
19601 {
19602 return ssl3_accept ();
19603   ;
19604   return 0;
19605 }
19606 _ACEOF
19607 rm -f conftest.$ac_objext conftest$ac_exeext
19608 if { (ac_try="$ac_link"
19609 case "(($ac_try" in
19610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611   *) ac_try_echo=$ac_try;;
19612 esac
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614   (eval "$ac_link") 2>conftest.er1
19615   ac_status=$?
19616   grep -v '^ *+' conftest.er1 >conftest.err
19617   rm -f conftest.er1
19618   cat conftest.err >&5
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); } && {
19621          test -z "$ac_c_werror_flag" ||
19622          test ! -s conftest.err
19623        } && test -s conftest$ac_exeext &&
19624        $as_test_x conftest$ac_exeext; then
19625   ac_cv_lib_ssl_ssl3_accept=yes
19626 else
19627   echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19629
19630         ac_cv_lib_ssl_ssl3_accept=no
19631 fi
19632
19633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19634       conftest$ac_exeext conftest.$ac_ext
19635 LIBS=$ac_check_lib_save_LIBS
19636 fi
19637 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19638 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19639 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19640   have_openssl=yes
19641                                 need_rsaref=yes
19642 else
19643   have_openssl=no
19644 fi
19645
19646                 fi
19647
19648                 if test $have_openssl = yes ; then
19649                         ol_with_tls=openssl
19650                         ol_link_tls=yes
19651
19652
19653 cat >>confdefs.h <<\_ACEOF
19654 #define HAVE_OPENSSL 1
19655 _ACEOF
19656
19657
19658                         if test $need_rsaref = yes; then
19659
19660 cat >>confdefs.h <<\_ACEOF
19661 #define HAVE_RSAREF 1
19662 _ACEOF
19663
19664
19665                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19666                         else
19667                                 TLS_LIBS="-lssl -lcrypto"
19668                         fi
19669
19670                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19671 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19672 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19673   echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675
19676                 cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h.  */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h.  */
19682
19683 #ifdef HAVE_OPENSSL_SSL_H
19684 #include <openssl/ssl.h>
19685 #endif
19686
19687 /* Require 0.9.7d+ */
19688 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19689         char *__ssl_compat = "0.9.7d";
19690 #endif
19691
19692 _ACEOF
19693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19695   ol_cv_ssl_crl_compat=yes
19696 else
19697   ol_cv_ssl_crl_compat=no
19698 fi
19699 rm -f conftest*
19700
19701 fi
19702 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19703 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19704
19705                         if test $ol_cv_ssl_crl_compat = yes ; then
19706
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_OPENSSL_CRL 1
19709 _ACEOF
19710
19711                         fi
19712                 fi
19713         fi
19714 fi
19715
19716 if test $ol_link_tls = no ; then
19717         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19718
19719 for ac_header in gnutls/gnutls.h
19720 do
19721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19723   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19726   echo $ECHO_N "(cached) $ECHO_C" >&6
19727 fi
19728 ac_res=`eval echo '${'$as_ac_Header'}'`
19729                { echo "$as_me:$LINENO: result: $ac_res" >&5
19730 echo "${ECHO_T}$ac_res" >&6; }
19731 else
19732   # Is the header compilable?
19733 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19735 cat >conftest.$ac_ext <<_ACEOF
19736 /* confdefs.h.  */
19737 _ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h.  */
19741 $ac_includes_default
19742 #include <$ac_header>
19743 _ACEOF
19744 rm -f conftest.$ac_objext
19745 if { (ac_try="$ac_compile"
19746 case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751   (eval "$ac_compile") 2>conftest.er1
19752   ac_status=$?
19753   grep -v '^ *+' conftest.er1 >conftest.err
19754   rm -f conftest.er1
19755   cat conftest.err >&5
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); } && {
19758          test -z "$ac_c_werror_flag" ||
19759          test ! -s conftest.err
19760        } && test -s conftest.$ac_objext; then
19761   ac_header_compiler=yes
19762 else
19763   echo "$as_me: failed program was:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19765
19766         ac_header_compiler=no
19767 fi
19768
19769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19771 echo "${ECHO_T}$ac_header_compiler" >&6; }
19772
19773 # Is the header present?
19774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19776 cat >conftest.$ac_ext <<_ACEOF
19777 /* confdefs.h.  */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h.  */
19782 #include <$ac_header>
19783 _ACEOF
19784 if { (ac_try="$ac_cpp conftest.$ac_ext"
19785 case "(($ac_try" in
19786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787   *) ac_try_echo=$ac_try;;
19788 esac
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19791   ac_status=$?
19792   grep -v '^ *+' conftest.er1 >conftest.err
19793   rm -f conftest.er1
19794   cat conftest.err >&5
19795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796   (exit $ac_status); } >/dev/null && {
19797          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19798          test ! -s conftest.err
19799        }; then
19800   ac_header_preproc=yes
19801 else
19802   echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19804
19805   ac_header_preproc=no
19806 fi
19807
19808 rm -f conftest.err conftest.$ac_ext
19809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19810 echo "${ECHO_T}$ac_header_preproc" >&6; }
19811
19812 # So?  What about this header?
19813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19814   yes:no: )
19815     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19819     ac_header_preproc=yes
19820     ;;
19821   no:yes:* )
19822     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19824     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19825 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19826     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19828     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19829 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19832     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19834     ( cat <<\_ASBOX
19835 ## --------------------------------------------- ##
19836 ## Report this to <http://www.openldap.org/its/> ##
19837 ## --------------------------------------------- ##
19838 _ASBOX
19839      ) | sed "s/^/$as_me: WARNING:     /" >&2
19840     ;;
19841 esac
19842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19845   echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847   eval "$as_ac_Header=\$ac_header_preproc"
19848 fi
19849 ac_res=`eval echo '${'$as_ac_Header'}'`
19850                { echo "$as_me:$LINENO: result: $ac_res" >&5
19851 echo "${ECHO_T}$ac_res" >&6; }
19852
19853 fi
19854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19855   cat >>confdefs.h <<_ACEOF
19856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19857 _ACEOF
19858
19859 fi
19860
19861 done
19862
19863
19864                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19865                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19866 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19867 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19868   echo $ECHO_N "(cached) $ECHO_C" >&6
19869 else
19870   ac_check_lib_save_LIBS=$LIBS
19871 LIBS="-lgnutls  $LIBS"
19872 cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h.  */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h.  */
19878
19879 /* Override any GCC internal prototype to avoid an error.
19880    Use char because int might match the return type of a GCC
19881    builtin and then its argument prototype would still apply.  */
19882 #ifdef __cplusplus
19883 extern "C"
19884 #endif
19885 char gnutls_init ();
19886 int
19887 main ()
19888 {
19889 return gnutls_init ();
19890   ;
19891   return 0;
19892 }
19893 _ACEOF
19894 rm -f conftest.$ac_objext conftest$ac_exeext
19895 if { (ac_try="$ac_link"
19896 case "(($ac_try" in
19897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898   *) ac_try_echo=$ac_try;;
19899 esac
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901   (eval "$ac_link") 2>conftest.er1
19902   ac_status=$?
19903   grep -v '^ *+' conftest.er1 >conftest.err
19904   rm -f conftest.er1
19905   cat conftest.err >&5
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); } && {
19908          test -z "$ac_c_werror_flag" ||
19909          test ! -s conftest.err
19910        } && test -s conftest$ac_exeext &&
19911        $as_test_x conftest$ac_exeext; then
19912   ac_cv_lib_gnutls_gnutls_init=yes
19913 else
19914   echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19916
19917         ac_cv_lib_gnutls_gnutls_init=no
19918 fi
19919
19920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19921       conftest$ac_exeext conftest.$ac_ext
19922 LIBS=$ac_check_lib_save_LIBS
19923 fi
19924 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19925 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19926 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19927   have_gnutls=yes
19928 else
19929   have_gnutls=no
19930 fi
19931
19932
19933                         if test $have_gnutls = yes ; then
19934                                 ol_with_tls=gnutls
19935                                 ol_link_tls=yes
19936
19937                                 TLS_LIBS="-lgnutls"
19938
19939
19940 cat >>confdefs.h <<\_ACEOF
19941 #define HAVE_GNUTLS 1
19942 _ACEOF
19943
19944                         fi
19945                 fi
19946         fi
19947 fi
19948
19949 if test $ol_link_tls = no ; then
19950         if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
19951                 have_moznss=no
19952
19953 for ac_header in nssutil.h
19954 do
19955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19960   echo $ECHO_N "(cached) $ECHO_C" >&6
19961 fi
19962 ac_res=`eval echo '${'$as_ac_Header'}'`
19963                { echo "$as_me:$LINENO: result: $ac_res" >&5
19964 echo "${ECHO_T}$ac_res" >&6; }
19965 else
19966   # Is the header compilable?
19967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h.  */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h.  */
19975 $ac_includes_default
19976 #include <$ac_header>
19977 _ACEOF
19978 rm -f conftest.$ac_objext
19979 if { (ac_try="$ac_compile"
19980 case "(($ac_try" in
19981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982   *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985   (eval "$ac_compile") 2>conftest.er1
19986   ac_status=$?
19987   grep -v '^ *+' conftest.er1 >conftest.err
19988   rm -f conftest.er1
19989   cat conftest.err >&5
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); } && {
19992          test -z "$ac_c_werror_flag" ||
19993          test ! -s conftest.err
19994        } && test -s conftest.$ac_objext; then
19995   ac_header_compiler=yes
19996 else
19997   echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
19999
20000         ac_header_compiler=no
20001 fi
20002
20003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20005 echo "${ECHO_T}$ac_header_compiler" >&6; }
20006
20007 # Is the header present?
20008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20010 cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h.  */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h.  */
20016 #include <$ac_header>
20017 _ACEOF
20018 if { (ac_try="$ac_cpp conftest.$ac_ext"
20019 case "(($ac_try" in
20020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021   *) ac_try_echo=$ac_try;;
20022 esac
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20025   ac_status=$?
20026   grep -v '^ *+' conftest.er1 >conftest.err
20027   rm -f conftest.er1
20028   cat conftest.err >&5
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); } >/dev/null && {
20031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20032          test ! -s conftest.err
20033        }; then
20034   ac_header_preproc=yes
20035 else
20036   echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20038
20039   ac_header_preproc=no
20040 fi
20041
20042 rm -f conftest.err conftest.$ac_ext
20043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20044 echo "${ECHO_T}$ac_header_preproc" >&6; }
20045
20046 # So?  What about this header?
20047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20048   yes:no: )
20049     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20053     ac_header_preproc=yes
20054     ;;
20055   no:yes:* )
20056     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20058     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20059 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20060     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20062     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20063 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20066     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20068     ( cat <<\_ASBOX
20069 ## --------------------------------------------- ##
20070 ## Report this to <http://www.openldap.org/its/> ##
20071 ## --------------------------------------------- ##
20072 _ASBOX
20073      ) | sed "s/^/$as_me: WARNING:     /" >&2
20074     ;;
20075 esac
20076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20079   echo $ECHO_N "(cached) $ECHO_C" >&6
20080 else
20081   eval "$as_ac_Header=\$ac_header_preproc"
20082 fi
20083 ac_res=`eval echo '${'$as_ac_Header'}'`
20084                { echo "$as_me:$LINENO: result: $ac_res" >&5
20085 echo "${ECHO_T}$ac_res" >&6; }
20086
20087 fi
20088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20089   cat >>confdefs.h <<_ACEOF
20090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20091 _ACEOF
20092
20093 fi
20094
20095 done
20096
20097                 if test "$ac_cv_header_nssutil_h" = yes ; then
20098                         { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
20099 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
20100 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
20101   echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103   ac_check_lib_save_LIBS=$LIBS
20104 LIBS="-lnss3  $LIBS"
20105 cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h.  */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h.  */
20111
20112 /* Override any GCC internal prototype to avoid an error.
20113    Use char because int might match the return type of a GCC
20114    builtin and then its argument prototype would still apply.  */
20115 #ifdef __cplusplus
20116 extern "C"
20117 #endif
20118 char NSS_Initialize ();
20119 int
20120 main ()
20121 {
20122 return NSS_Initialize ();
20123   ;
20124   return 0;
20125 }
20126 _ACEOF
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131   *) ac_try_echo=$ac_try;;
20132 esac
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134   (eval "$ac_link") 2>conftest.er1
20135   ac_status=$?
20136   grep -v '^ *+' conftest.er1 >conftest.err
20137   rm -f conftest.er1
20138   cat conftest.err >&5
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); } && {
20141          test -z "$ac_c_werror_flag" ||
20142          test ! -s conftest.err
20143        } && test -s conftest$ac_exeext &&
20144        $as_test_x conftest$ac_exeext; then
20145   ac_cv_lib_nss3_NSS_Initialize=yes
20146 else
20147   echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20149
20150         ac_cv_lib_nss3_NSS_Initialize=no
20151 fi
20152
20153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20154       conftest$ac_exeext conftest.$ac_ext
20155 LIBS=$ac_check_lib_save_LIBS
20156 fi
20157 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
20158 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
20159 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
20160    have_moznss=yes
20161 else
20162    have_moznss=no
20163 fi
20164
20165                 fi
20166
20167                 if test "$have_moznss" = yes ; then
20168                         ol_with_tls=moznss
20169                         ol_link_tls=yes
20170
20171 cat >>confdefs.h <<\_ACEOF
20172 #define HAVE_MOZNSS 1
20173 _ACEOF
20174
20175                         TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
20176                 else
20177                         { { echo "$as_me:$LINENO: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&5
20178 echo "$as_me: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&2;}
20179    { (exit 1); exit 1; }; }
20180                 fi
20181         fi
20182 fi
20183
20184 WITH_TLS=no
20185 if test $ol_link_tls = yes ; then
20186
20187 cat >>confdefs.h <<\_ACEOF
20188 #define HAVE_TLS 1
20189 _ACEOF
20190
20191         WITH_TLS=yes
20192 elif test $ol_with_tls = auto ; then
20193         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20194 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20195         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20196 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20197 elif test $ol_with_tls != no ; then
20198         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20199 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20200    { (exit 1); exit 1; }; }
20201 else
20202         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20203 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20204 fi
20205
20206 if test $ol_enable_lmpasswd != no; then
20207         if test $ol_link_tls != yes ; then
20208                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20209 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20210    { (exit 1); exit 1; }; }
20211         fi
20212
20213
20214 cat >>confdefs.h <<\_ACEOF
20215 #define SLAPD_LMHASH 1
20216 _ACEOF
20217
20218 fi
20219
20220 ol_link_threads=no
20221
20222 case $ol_with_threads in auto | yes | nt)
20223
20224
20225         { echo "$as_me:$LINENO: checking for _beginthread" >&5
20226 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20227 if test "${ac_cv_func__beginthread+set}" = set; then
20228   echo $ECHO_N "(cached) $ECHO_C" >&6
20229 else
20230   cat >conftest.$ac_ext <<_ACEOF
20231 /* confdefs.h.  */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h.  */
20236 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20238 #define _beginthread innocuous__beginthread
20239
20240 /* System header to define __stub macros and hopefully few prototypes,
20241     which can conflict with char _beginthread (); below.
20242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20243     <limits.h> exists even on freestanding compilers.  */
20244
20245 #ifdef __STDC__
20246 # include <limits.h>
20247 #else
20248 # include <assert.h>
20249 #endif
20250
20251 #undef _beginthread
20252
20253 /* Override any GCC internal prototype to avoid an error.
20254    Use char because int might match the return type of a GCC
20255    builtin and then its argument prototype would still apply.  */
20256 #ifdef __cplusplus
20257 extern "C"
20258 #endif
20259 char _beginthread ();
20260 /* The GNU C library defines this for functions which it implements
20261     to always fail with ENOSYS.  Some functions are actually named
20262     something starting with __ and the normal name is an alias.  */
20263 #if defined __stub__beginthread || defined __stub____beginthread
20264 choke me
20265 #endif
20266
20267 int
20268 main ()
20269 {
20270 return _beginthread ();
20271   ;
20272   return 0;
20273 }
20274 _ACEOF
20275 rm -f conftest.$ac_objext conftest$ac_exeext
20276 if { (ac_try="$ac_link"
20277 case "(($ac_try" in
20278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279   *) ac_try_echo=$ac_try;;
20280 esac
20281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282   (eval "$ac_link") 2>conftest.er1
20283   ac_status=$?
20284   grep -v '^ *+' conftest.er1 >conftest.err
20285   rm -f conftest.er1
20286   cat conftest.err >&5
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); } && {
20289          test -z "$ac_c_werror_flag" ||
20290          test ! -s conftest.err
20291        } && test -s conftest$ac_exeext &&
20292        $as_test_x conftest$ac_exeext; then
20293   ac_cv_func__beginthread=yes
20294 else
20295   echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298         ac_cv_func__beginthread=no
20299 fi
20300
20301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20302       conftest$ac_exeext conftest.$ac_ext
20303 fi
20304 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20305 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20306
20307
20308         if test $ac_cv_func__beginthread = yes ; then
20309
20310 cat >>confdefs.h <<\_ACEOF
20311 #define HAVE_NT_THREADS 1
20312 _ACEOF
20313
20314                 ol_cv_nt_threads=yes
20315         fi
20316
20317
20318         if test "$ol_cv_nt_threads" = yes ; then
20319                 ol_link_threads=nt
20320                 ol_with_threads=found
20321                 ol_with_yielding_select=yes
20322
20323
20324 cat >>confdefs.h <<\_ACEOF
20325 #define HAVE_NT_SERVICE_MANAGER 1
20326 _ACEOF
20327
20328
20329 cat >>confdefs.h <<\_ACEOF
20330 #define HAVE_NT_EVENT_LOG 1
20331 _ACEOF
20332
20333         fi
20334
20335         if test $ol_with_threads = nt ; then
20336                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20337 echo "$as_me: error: could not locate NT Threads" >&2;}
20338    { (exit 1); exit 1; }; }
20339         fi
20340         ;;
20341 esac
20342
20343 case $ol_with_threads in auto | yes | posix)
20344
20345
20346 for ac_header in pthread.h
20347 do
20348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20353   echo $ECHO_N "(cached) $ECHO_C" >&6
20354 fi
20355 ac_res=`eval echo '${'$as_ac_Header'}'`
20356                { echo "$as_me:$LINENO: result: $ac_res" >&5
20357 echo "${ECHO_T}$ac_res" >&6; }
20358 else
20359   # Is the header compilable?
20360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20362 cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h.  */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h.  */
20368 $ac_includes_default
20369 #include <$ac_header>
20370 _ACEOF
20371 rm -f conftest.$ac_objext
20372 if { (ac_try="$ac_compile"
20373 case "(($ac_try" in
20374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375   *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378   (eval "$ac_compile") 2>conftest.er1
20379   ac_status=$?
20380   grep -v '^ *+' conftest.er1 >conftest.err
20381   rm -f conftest.er1
20382   cat conftest.err >&5
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); } && {
20385          test -z "$ac_c_werror_flag" ||
20386          test ! -s conftest.err
20387        } && test -s conftest.$ac_objext; then
20388   ac_header_compiler=yes
20389 else
20390   echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393         ac_header_compiler=no
20394 fi
20395
20396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20398 echo "${ECHO_T}$ac_header_compiler" >&6; }
20399
20400 # Is the header present?
20401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h.  */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h.  */
20409 #include <$ac_header>
20410 _ACEOF
20411 if { (ac_try="$ac_cpp conftest.$ac_ext"
20412 case "(($ac_try" in
20413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414   *) ac_try_echo=$ac_try;;
20415 esac
20416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20418   ac_status=$?
20419   grep -v '^ *+' conftest.er1 >conftest.err
20420   rm -f conftest.er1
20421   cat conftest.err >&5
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); } >/dev/null && {
20424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20425          test ! -s conftest.err
20426        }; then
20427   ac_header_preproc=yes
20428 else
20429   echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20431
20432   ac_header_preproc=no
20433 fi
20434
20435 rm -f conftest.err conftest.$ac_ext
20436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20437 echo "${ECHO_T}$ac_header_preproc" >&6; }
20438
20439 # So?  What about this header?
20440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20441   yes:no: )
20442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20446     ac_header_preproc=yes
20447     ;;
20448   no:yes:* )
20449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20461     ( cat <<\_ASBOX
20462 ## --------------------------------------------- ##
20463 ## Report this to <http://www.openldap.org/its/> ##
20464 ## --------------------------------------------- ##
20465 _ASBOX
20466      ) | sed "s/^/$as_me: WARNING:     /" >&2
20467     ;;
20468 esac
20469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20472   echo $ECHO_N "(cached) $ECHO_C" >&6
20473 else
20474   eval "$as_ac_Header=\$ac_header_preproc"
20475 fi
20476 ac_res=`eval echo '${'$as_ac_Header'}'`
20477                { echo "$as_me:$LINENO: result: $ac_res" >&5
20478 echo "${ECHO_T}$ac_res" >&6; }
20479
20480 fi
20481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20482   cat >>confdefs.h <<_ACEOF
20483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20484 _ACEOF
20485
20486 fi
20487
20488 done
20489
20490
20491         if test $ac_cv_header_pthread_h = yes ; then
20492                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20493 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20494 if test "${ol_cv_pthread_version+set}" = set; then
20495   echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497
20498         cat >conftest.$ac_ext <<_ACEOF
20499 /* confdefs.h.  */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h.  */
20504
20505 #               include <pthread.h>
20506
20507 int
20508 main ()
20509 {
20510
20511                 int i = PTHREAD_CREATE_JOINABLE;
20512
20513   ;
20514   return 0;
20515 }
20516 _ACEOF
20517 rm -f conftest.$ac_objext
20518 if { (ac_try="$ac_compile"
20519 case "(($ac_try" in
20520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521   *) ac_try_echo=$ac_try;;
20522 esac
20523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524   (eval "$ac_compile") 2>conftest.er1
20525   ac_status=$?
20526   grep -v '^ *+' conftest.er1 >conftest.err
20527   rm -f conftest.er1
20528   cat conftest.err >&5
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); } && {
20531          test -z "$ac_c_werror_flag" ||
20532          test ! -s conftest.err
20533        } && test -s conftest.$ac_objext; then
20534
20535         cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h.  */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h.  */
20541 #include <pthread.h>
20542
20543 _ACEOF
20544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20545   $EGREP "pthread_detach" >/dev/null 2>&1; then
20546   ol_cv_pthread_version=10
20547 else
20548   ol_cv_pthread_version=8
20549 fi
20550 rm -f conftest*
20551
20552 else
20553   echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20555
20556
20557         cat >conftest.$ac_ext <<_ACEOF
20558 /* confdefs.h.  */
20559 _ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h.  */
20563
20564 #               include <pthread.h>
20565 #               ifdef PTHREAD_CREATE_UNDETACHED
20566                 draft7
20567 #               endif
20568
20569 _ACEOF
20570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20571   $EGREP "draft7" >/dev/null 2>&1; then
20572   ol_cv_pthread_version=7
20573 else
20574
20575         cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h.  */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h.  */
20581 #include <pthread.h>
20582
20583 _ACEOF
20584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20585   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20586   ol_cv_pthread_version=6
20587 else
20588
20589         cat >conftest.$ac_ext <<_ACEOF
20590 /* confdefs.h.  */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h.  */
20595
20596 #               include <pthread.h>
20597 #ifdef          PTHREAD_MUTEX_INITIALIZER
20598                 draft5
20599 #endif
20600
20601 _ACEOF
20602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20603   $EGREP "draft5" >/dev/null 2>&1; then
20604   ol_cv_pthread_version=5
20605 else
20606   ol_cv_pthread_version=4
20607 fi
20608 rm -f conftest*
20609
20610 fi
20611 rm -f conftest*
20612
20613 fi
20614 rm -f conftest*
20615
20616 fi
20617
20618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20619
20620 fi
20621 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20622 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20623
20624
20625                 if test $ol_cv_pthread_version != 0 ; then
20626
20627 cat >>confdefs.h <<_ACEOF
20628 #define HAVE_PTHREADS $ol_cv_pthread_version
20629 _ACEOF
20630
20631                 else
20632                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20633 echo "$as_me: error: unknown pthread version" >&2;}
20634    { (exit 1); exit 1; }; }
20635                 fi
20636
20637                 # consider threads found
20638                 ol_with_threads=found
20639
20640
20641         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20642 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20643 if test "${ol_cv_header_linux_threads+set}" = set; then
20644   echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646   cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h.  */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h.  */
20652 #include <pthread.h>
20653 _ACEOF
20654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20655   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20656   ol_cv_header_linux_threads=yes
20657 else
20658   ol_cv_header_linux_threads=no
20659 fi
20660 rm -f conftest*
20661
20662
20663 fi
20664 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20665 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20666         if test $ol_cv_header_linux_threads = yes; then
20667
20668 cat >>confdefs.h <<\_ACEOF
20669 #define HAVE_LINUX_THREADS 1
20670 _ACEOF
20671
20672         fi
20673
20674
20675         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20676 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20677 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20678   echo $ECHO_N "(cached) $ECHO_C" >&6
20679 else
20680   cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h.  */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h.  */
20686 #include <pthread.h>
20687 #ifdef _POSIX_THREAD_IS_GNU_PTH
20688         __gnu_pth__;
20689 #endif
20690
20691 _ACEOF
20692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20693   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20694   ol_cv_header_gnu_pth_pthread_h=yes
20695 else
20696   ol_cv_header_gnu_pth_pthread_h=no
20697 fi
20698 rm -f conftest*
20699
20700
20701 fi
20702 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20703 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20704
20705
20706                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20707
20708 for ac_header in sched.h
20709 do
20710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20712   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20715   echo $ECHO_N "(cached) $ECHO_C" >&6
20716 fi
20717 ac_res=`eval echo '${'$as_ac_Header'}'`
20718                { echo "$as_me:$LINENO: result: $ac_res" >&5
20719 echo "${ECHO_T}$ac_res" >&6; }
20720 else
20721   # Is the header compilable?
20722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h.  */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h.  */
20730 $ac_includes_default
20731 #include <$ac_header>
20732 _ACEOF
20733 rm -f conftest.$ac_objext
20734 if { (ac_try="$ac_compile"
20735 case "(($ac_try" in
20736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737   *) ac_try_echo=$ac_try;;
20738 esac
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740   (eval "$ac_compile") 2>conftest.er1
20741   ac_status=$?
20742   grep -v '^ *+' conftest.er1 >conftest.err
20743   rm -f conftest.er1
20744   cat conftest.err >&5
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); } && {
20747          test -z "$ac_c_werror_flag" ||
20748          test ! -s conftest.err
20749        } && test -s conftest.$ac_objext; then
20750   ac_header_compiler=yes
20751 else
20752   echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20754
20755         ac_header_compiler=no
20756 fi
20757
20758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20760 echo "${ECHO_T}$ac_header_compiler" >&6; }
20761
20762 # Is the header present?
20763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20765 cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771 #include <$ac_header>
20772 _ACEOF
20773 if { (ac_try="$ac_cpp conftest.$ac_ext"
20774 case "(($ac_try" in
20775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776   *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20780   ac_status=$?
20781   grep -v '^ *+' conftest.er1 >conftest.err
20782   rm -f conftest.er1
20783   cat conftest.err >&5
20784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785   (exit $ac_status); } >/dev/null && {
20786          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20787          test ! -s conftest.err
20788        }; then
20789   ac_header_preproc=yes
20790 else
20791   echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794   ac_header_preproc=no
20795 fi
20796
20797 rm -f conftest.err conftest.$ac_ext
20798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20799 echo "${ECHO_T}$ac_header_preproc" >&6; }
20800
20801 # So?  What about this header?
20802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20803   yes:no: )
20804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20808     ac_header_preproc=yes
20809     ;;
20810   no:yes:* )
20811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20823     ( cat <<\_ASBOX
20824 ## --------------------------------------------- ##
20825 ## Report this to <http://www.openldap.org/its/> ##
20826 ## --------------------------------------------- ##
20827 _ASBOX
20828      ) | sed "s/^/$as_me: WARNING:     /" >&2
20829     ;;
20830 esac
20831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20834   echo $ECHO_N "(cached) $ECHO_C" >&6
20835 else
20836   eval "$as_ac_Header=\$ac_header_preproc"
20837 fi
20838 ac_res=`eval echo '${'$as_ac_Header'}'`
20839                { echo "$as_me:$LINENO: result: $ac_res" >&5
20840 echo "${ECHO_T}$ac_res" >&6; }
20841
20842 fi
20843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20844   cat >>confdefs.h <<_ACEOF
20845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20846 _ACEOF
20847
20848 fi
20849
20850 done
20851
20852                 fi
20853
20854
20855                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20856 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20857 if test "${ol_cv_pthread_create+set}" = set; then
20858   echo $ECHO_N "(cached) $ECHO_C" >&6
20859 else
20860
20861                         if test "$cross_compiling" = yes; then
20862   cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h.  */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h.  */
20868
20869 /* pthread test headers */
20870 #include <pthread.h>
20871 #if HAVE_PTHREADS < 7
20872 #include <errno.h>
20873 #endif
20874 #ifndef NULL
20875 #define NULL (void*)0
20876 #endif
20877
20878 static void *task(p)
20879         void *p;
20880 {
20881         return (void *) (p == NULL);
20882 }
20883
20884 int
20885 main ()
20886 {
20887
20888         /* pthread test function */
20889 #ifndef PTHREAD_CREATE_DETACHED
20890 #define PTHREAD_CREATE_DETACHED 1
20891 #endif
20892         pthread_t t;
20893         int status;
20894         int detach = PTHREAD_CREATE_DETACHED;
20895
20896 #if HAVE_PTHREADS > 4
20897         /* Final pthreads */
20898         pthread_attr_t attr;
20899
20900         status = pthread_attr_init(&attr);
20901         if( status ) return status;
20902
20903 #if HAVE_PTHREADS < 7
20904         status = pthread_attr_setdetachstate(&attr, &detach);
20905         if( status < 0 ) status = errno;
20906 #else
20907         status = pthread_attr_setdetachstate(&attr, detach);
20908 #endif
20909         if( status ) return status;
20910         status = pthread_create( &t, &attr, task, NULL );
20911 #if HAVE_PTHREADS < 7
20912         if( status < 0 ) status = errno;
20913 #endif
20914         if( status ) return status;
20915 #else
20916         /* Draft 4 pthreads */
20917         status = pthread_create( &t, pthread_attr_default, task, NULL );
20918         if( status ) return errno;
20919
20920         /* give thread a chance to complete */
20921         /* it should remain joinable and hence detachable */
20922         sleep( 1 );
20923
20924         status = pthread_detach( &t );
20925         if( status ) return errno;
20926 #endif
20927
20928 #ifdef HAVE_LINUX_THREADS
20929         pthread_kill_other_threads_np();
20930 #endif
20931
20932         return 0;
20933
20934   ;
20935   return 0;
20936 }
20937 _ACEOF
20938 rm -f conftest.$ac_objext conftest$ac_exeext
20939 if { (ac_try="$ac_link"
20940 case "(($ac_try" in
20941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942   *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945   (eval "$ac_link") 2>conftest.er1
20946   ac_status=$?
20947   grep -v '^ *+' conftest.er1 >conftest.err
20948   rm -f conftest.er1
20949   cat conftest.err >&5
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); } && {
20952          test -z "$ac_c_werror_flag" ||
20953          test ! -s conftest.err
20954        } && test -s conftest$ac_exeext &&
20955        $as_test_x conftest$ac_exeext; then
20956   ol_cv_pthread_create=yes
20957 else
20958   echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20960
20961         ol_cv_pthread_create=no
20962 fi
20963
20964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20965       conftest$ac_exeext conftest.$ac_ext
20966 else
20967   cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h.  */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h.  */
20973
20974 /* pthread test headers */
20975 #include <pthread.h>
20976 #if HAVE_PTHREADS < 7
20977 #include <errno.h>
20978 #endif
20979 #ifndef NULL
20980 #define NULL (void*)0
20981 #endif
20982
20983 static void *task(p)
20984         void *p;
20985 {
20986         return (void *) (p == NULL);
20987 }
20988
20989
20990 int main(argc, argv)
20991         int argc;
20992         char **argv;
20993 {
20994
20995         /* pthread test function */
20996 #ifndef PTHREAD_CREATE_DETACHED
20997 #define PTHREAD_CREATE_DETACHED 1
20998 #endif
20999         pthread_t t;
21000         int status;
21001         int detach = PTHREAD_CREATE_DETACHED;
21002
21003 #if HAVE_PTHREADS > 4
21004         /* Final pthreads */
21005         pthread_attr_t attr;
21006
21007         status = pthread_attr_init(&attr);
21008         if( status ) return status;
21009
21010 #if HAVE_PTHREADS < 7
21011         status = pthread_attr_setdetachstate(&attr, &detach);
21012         if( status < 0 ) status = errno;
21013 #else
21014         status = pthread_attr_setdetachstate(&attr, detach);
21015 #endif
21016         if( status ) return status;
21017         status = pthread_create( &t, &attr, task, NULL );
21018 #if HAVE_PTHREADS < 7
21019         if( status < 0 ) status = errno;
21020 #endif
21021         if( status ) return status;
21022 #else
21023         /* Draft 4 pthreads */
21024         status = pthread_create( &t, pthread_attr_default, task, NULL );
21025         if( status ) return errno;
21026
21027         /* give thread a chance to complete */
21028         /* it should remain joinable and hence detachable */
21029         sleep( 1 );
21030
21031         status = pthread_detach( &t );
21032         if( status ) return errno;
21033 #endif
21034
21035 #ifdef HAVE_LINUX_THREADS
21036         pthread_kill_other_threads_np();
21037 #endif
21038
21039         return 0;
21040
21041 }
21042
21043 _ACEOF
21044 rm -f conftest$ac_exeext
21045 if { (ac_try="$ac_link"
21046 case "(($ac_try" in
21047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048   *) ac_try_echo=$ac_try;;
21049 esac
21050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21051   (eval "$ac_link") 2>&5
21052   ac_status=$?
21053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21055   { (case "(($ac_try" in
21056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057   *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060   (eval "$ac_try") 2>&5
21061   ac_status=$?
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); }; }; then
21064   ol_cv_pthread_create=yes
21065 else
21066   echo "$as_me: program exited with status $ac_status" >&5
21067 echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21069
21070 ( exit $ac_status )
21071 ol_cv_pthread_create=no
21072 fi
21073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21074 fi
21075
21076
21077 fi
21078 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
21079 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
21080
21081                 if test $ol_cv_pthread_create != no ; then
21082                         ol_link_threads=posix
21083                         ol_link_pthreads=""
21084                 fi
21085
21086                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
21087 if test "$ol_link_threads" = no ; then
21088         # try -kthread
21089         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21090 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
21091 if test "${ol_cv_pthread_kthread+set}" = set; then
21092   echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094
21095                 # save the flags
21096                 ol_LIBS="$LIBS"
21097                 LIBS="-kthread $LIBS"
21098
21099                 if test "$cross_compiling" = yes; then
21100   cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h.  */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h.  */
21106
21107 /* pthread test headers */
21108 #include <pthread.h>
21109 #if HAVE_PTHREADS < 7
21110 #include <errno.h>
21111 #endif
21112 #ifndef NULL
21113 #define NULL (void*)0
21114 #endif
21115
21116 static void *task(p)
21117         void *p;
21118 {
21119         return (void *) (p == NULL);
21120 }
21121
21122 int
21123 main ()
21124 {
21125
21126         /* pthread test function */
21127 #ifndef PTHREAD_CREATE_DETACHED
21128 #define PTHREAD_CREATE_DETACHED 1
21129 #endif
21130         pthread_t t;
21131         int status;
21132         int detach = PTHREAD_CREATE_DETACHED;
21133
21134 #if HAVE_PTHREADS > 4
21135         /* Final pthreads */
21136         pthread_attr_t attr;
21137
21138         status = pthread_attr_init(&attr);
21139         if( status ) return status;
21140
21141 #if HAVE_PTHREADS < 7
21142         status = pthread_attr_setdetachstate(&attr, &detach);
21143         if( status < 0 ) status = errno;
21144 #else
21145         status = pthread_attr_setdetachstate(&attr, detach);
21146 #endif
21147         if( status ) return status;
21148         status = pthread_create( &t, &attr, task, NULL );
21149 #if HAVE_PTHREADS < 7
21150         if( status < 0 ) status = errno;
21151 #endif
21152         if( status ) return status;
21153 #else
21154         /* Draft 4 pthreads */
21155         status = pthread_create( &t, pthread_attr_default, task, NULL );
21156         if( status ) return errno;
21157
21158         /* give thread a chance to complete */
21159         /* it should remain joinable and hence detachable */
21160         sleep( 1 );
21161
21162         status = pthread_detach( &t );
21163         if( status ) return errno;
21164 #endif
21165
21166 #ifdef HAVE_LINUX_THREADS
21167         pthread_kill_other_threads_np();
21168 #endif
21169
21170         return 0;
21171
21172   ;
21173   return 0;
21174 }
21175 _ACEOF
21176 rm -f conftest.$ac_objext conftest$ac_exeext
21177 if { (ac_try="$ac_link"
21178 case "(($ac_try" in
21179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180   *) ac_try_echo=$ac_try;;
21181 esac
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183   (eval "$ac_link") 2>conftest.er1
21184   ac_status=$?
21185   grep -v '^ *+' conftest.er1 >conftest.err
21186   rm -f conftest.er1
21187   cat conftest.err >&5
21188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189   (exit $ac_status); } && {
21190          test -z "$ac_c_werror_flag" ||
21191          test ! -s conftest.err
21192        } && test -s conftest$ac_exeext &&
21193        $as_test_x conftest$ac_exeext; then
21194   ol_cv_pthread_kthread=yes
21195 else
21196   echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21198
21199         ol_cv_pthread_kthread=no
21200 fi
21201
21202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21203       conftest$ac_exeext conftest.$ac_ext
21204 else
21205   cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h.  */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h.  */
21211
21212 /* pthread test headers */
21213 #include <pthread.h>
21214 #if HAVE_PTHREADS < 7
21215 #include <errno.h>
21216 #endif
21217 #ifndef NULL
21218 #define NULL (void*)0
21219 #endif
21220
21221 static void *task(p)
21222         void *p;
21223 {
21224         return (void *) (p == NULL);
21225 }
21226
21227
21228 int main(argc, argv)
21229         int argc;
21230         char **argv;
21231 {
21232
21233         /* pthread test function */
21234 #ifndef PTHREAD_CREATE_DETACHED
21235 #define PTHREAD_CREATE_DETACHED 1
21236 #endif
21237         pthread_t t;
21238         int status;
21239         int detach = PTHREAD_CREATE_DETACHED;
21240
21241 #if HAVE_PTHREADS > 4
21242         /* Final pthreads */
21243         pthread_attr_t attr;
21244
21245         status = pthread_attr_init(&attr);
21246         if( status ) return status;
21247
21248 #if HAVE_PTHREADS < 7
21249         status = pthread_attr_setdetachstate(&attr, &detach);
21250         if( status < 0 ) status = errno;
21251 #else
21252         status = pthread_attr_setdetachstate(&attr, detach);
21253 #endif
21254         if( status ) return status;
21255         status = pthread_create( &t, &attr, task, NULL );
21256 #if HAVE_PTHREADS < 7
21257         if( status < 0 ) status = errno;
21258 #endif
21259         if( status ) return status;
21260 #else
21261         /* Draft 4 pthreads */
21262         status = pthread_create( &t, pthread_attr_default, task, NULL );
21263         if( status ) return errno;
21264
21265         /* give thread a chance to complete */
21266         /* it should remain joinable and hence detachable */
21267         sleep( 1 );
21268
21269         status = pthread_detach( &t );
21270         if( status ) return errno;
21271 #endif
21272
21273 #ifdef HAVE_LINUX_THREADS
21274         pthread_kill_other_threads_np();
21275 #endif
21276
21277         return 0;
21278
21279 }
21280
21281 _ACEOF
21282 rm -f conftest$ac_exeext
21283 if { (ac_try="$ac_link"
21284 case "(($ac_try" in
21285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286   *) ac_try_echo=$ac_try;;
21287 esac
21288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289   (eval "$ac_link") 2>&5
21290   ac_status=$?
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21293   { (case "(($ac_try" in
21294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295   *) ac_try_echo=$ac_try;;
21296 esac
21297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298   (eval "$ac_try") 2>&5
21299   ac_status=$?
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); }; }; then
21302   ol_cv_pthread_kthread=yes
21303 else
21304   echo "$as_me: program exited with status $ac_status" >&5
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21307
21308 ( exit $ac_status )
21309 ol_cv_pthread_kthread=no
21310 fi
21311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21312 fi
21313
21314
21315
21316                 # restore the LIBS
21317                 LIBS="$ol_LIBS"
21318
21319 fi
21320 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21321 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21322
21323         if test $ol_cv_pthread_kthread = yes ; then
21324                 ol_link_pthreads="-kthread"
21325                 ol_link_threads=posix
21326         fi
21327 fi
21328
21329                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21330 if test "$ol_link_threads" = no ; then
21331         # try -pthread
21332         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21333 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21334 if test "${ol_cv_pthread_pthread+set}" = set; then
21335   echo $ECHO_N "(cached) $ECHO_C" >&6
21336 else
21337
21338                 # save the flags
21339                 ol_LIBS="$LIBS"
21340                 LIBS="-pthread $LIBS"
21341
21342                 if test "$cross_compiling" = yes; then
21343   cat >conftest.$ac_ext <<_ACEOF
21344 /* confdefs.h.  */
21345 _ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h.  */
21349
21350 /* pthread test headers */
21351 #include <pthread.h>
21352 #if HAVE_PTHREADS < 7
21353 #include <errno.h>
21354 #endif
21355 #ifndef NULL
21356 #define NULL (void*)0
21357 #endif
21358
21359 static void *task(p)
21360         void *p;
21361 {
21362         return (void *) (p == NULL);
21363 }
21364
21365 int
21366 main ()
21367 {
21368
21369         /* pthread test function */
21370 #ifndef PTHREAD_CREATE_DETACHED
21371 #define PTHREAD_CREATE_DETACHED 1
21372 #endif
21373         pthread_t t;
21374         int status;
21375         int detach = PTHREAD_CREATE_DETACHED;
21376
21377 #if HAVE_PTHREADS > 4
21378         /* Final pthreads */
21379         pthread_attr_t attr;
21380
21381         status = pthread_attr_init(&attr);
21382         if( status ) return status;
21383
21384 #if HAVE_PTHREADS < 7
21385         status = pthread_attr_setdetachstate(&attr, &detach);
21386         if( status < 0 ) status = errno;
21387 #else
21388         status = pthread_attr_setdetachstate(&attr, detach);
21389 #endif
21390         if( status ) return status;
21391         status = pthread_create( &t, &attr, task, NULL );
21392 #if HAVE_PTHREADS < 7
21393         if( status < 0 ) status = errno;
21394 #endif
21395         if( status ) return status;
21396 #else
21397         /* Draft 4 pthreads */
21398         status = pthread_create( &t, pthread_attr_default, task, NULL );
21399         if( status ) return errno;
21400
21401         /* give thread a chance to complete */
21402         /* it should remain joinable and hence detachable */
21403         sleep( 1 );
21404
21405         status = pthread_detach( &t );
21406         if( status ) return errno;
21407 #endif
21408
21409 #ifdef HAVE_LINUX_THREADS
21410         pthread_kill_other_threads_np();
21411 #endif
21412
21413         return 0;
21414
21415   ;
21416   return 0;
21417 }
21418 _ACEOF
21419 rm -f conftest.$ac_objext conftest$ac_exeext
21420 if { (ac_try="$ac_link"
21421 case "(($ac_try" in
21422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423   *) ac_try_echo=$ac_try;;
21424 esac
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426   (eval "$ac_link") 2>conftest.er1
21427   ac_status=$?
21428   grep -v '^ *+' conftest.er1 >conftest.err
21429   rm -f conftest.er1
21430   cat conftest.err >&5
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } && {
21433          test -z "$ac_c_werror_flag" ||
21434          test ! -s conftest.err
21435        } && test -s conftest$ac_exeext &&
21436        $as_test_x conftest$ac_exeext; then
21437   ol_cv_pthread_pthread=yes
21438 else
21439   echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21441
21442         ol_cv_pthread_pthread=no
21443 fi
21444
21445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21446       conftest$ac_exeext conftest.$ac_ext
21447 else
21448   cat >conftest.$ac_ext <<_ACEOF
21449 /* confdefs.h.  */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h.  */
21454
21455 /* pthread test headers */
21456 #include <pthread.h>
21457 #if HAVE_PTHREADS < 7
21458 #include <errno.h>
21459 #endif
21460 #ifndef NULL
21461 #define NULL (void*)0
21462 #endif
21463
21464 static void *task(p)
21465         void *p;
21466 {
21467         return (void *) (p == NULL);
21468 }
21469
21470
21471 int main(argc, argv)
21472         int argc;
21473         char **argv;
21474 {
21475
21476         /* pthread test function */
21477 #ifndef PTHREAD_CREATE_DETACHED
21478 #define PTHREAD_CREATE_DETACHED 1
21479 #endif
21480         pthread_t t;
21481         int status;
21482         int detach = PTHREAD_CREATE_DETACHED;
21483
21484 #if HAVE_PTHREADS > 4
21485         /* Final pthreads */
21486         pthread_attr_t attr;
21487
21488         status = pthread_attr_init(&attr);
21489         if( status ) return status;
21490
21491 #if HAVE_PTHREADS < 7
21492         status = pthread_attr_setdetachstate(&attr, &detach);
21493         if( status < 0 ) status = errno;
21494 #else
21495         status = pthread_attr_setdetachstate(&attr, detach);
21496 #endif
21497         if( status ) return status;
21498         status = pthread_create( &t, &attr, task, NULL );
21499 #if HAVE_PTHREADS < 7
21500         if( status < 0 ) status = errno;
21501 #endif
21502         if( status ) return status;
21503 #else
21504         /* Draft 4 pthreads */
21505         status = pthread_create( &t, pthread_attr_default, task, NULL );
21506         if( status ) return errno;
21507
21508         /* give thread a chance to complete */
21509         /* it should remain joinable and hence detachable */
21510         sleep( 1 );
21511
21512         status = pthread_detach( &t );
21513         if( status ) return errno;
21514 #endif
21515
21516 #ifdef HAVE_LINUX_THREADS
21517         pthread_kill_other_threads_np();
21518 #endif
21519
21520         return 0;
21521
21522 }
21523
21524 _ACEOF
21525 rm -f conftest$ac_exeext
21526 if { (ac_try="$ac_link"
21527 case "(($ac_try" in
21528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529   *) ac_try_echo=$ac_try;;
21530 esac
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532   (eval "$ac_link") 2>&5
21533   ac_status=$?
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21536   { (case "(($ac_try" in
21537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21538   *) ac_try_echo=$ac_try;;
21539 esac
21540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21541   (eval "$ac_try") 2>&5
21542   ac_status=$?
21543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544   (exit $ac_status); }; }; then
21545   ol_cv_pthread_pthread=yes
21546 else
21547   echo "$as_me: program exited with status $ac_status" >&5
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21550
21551 ( exit $ac_status )
21552 ol_cv_pthread_pthread=no
21553 fi
21554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21555 fi
21556
21557
21558
21559                 # restore the LIBS
21560                 LIBS="$ol_LIBS"
21561
21562 fi
21563 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21564 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21565
21566         if test $ol_cv_pthread_pthread = yes ; then
21567                 ol_link_pthreads="-pthread"
21568                 ol_link_threads=posix
21569         fi
21570 fi
21571
21572                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21573 if test "$ol_link_threads" = no ; then
21574         # try -pthreads
21575         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21576 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21577 if test "${ol_cv_pthread_pthreads+set}" = set; then
21578   echo $ECHO_N "(cached) $ECHO_C" >&6
21579 else
21580
21581                 # save the flags
21582                 ol_LIBS="$LIBS"
21583                 LIBS="-pthreads $LIBS"
21584
21585                 if test "$cross_compiling" = yes; then
21586   cat >conftest.$ac_ext <<_ACEOF
21587 /* confdefs.h.  */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h.  */
21592
21593 /* pthread test headers */
21594 #include <pthread.h>
21595 #if HAVE_PTHREADS < 7
21596 #include <errno.h>
21597 #endif
21598 #ifndef NULL
21599 #define NULL (void*)0
21600 #endif
21601
21602 static void *task(p)
21603         void *p;
21604 {
21605         return (void *) (p == NULL);
21606 }
21607
21608 int
21609 main ()
21610 {
21611
21612         /* pthread test function */
21613 #ifndef PTHREAD_CREATE_DETACHED
21614 #define PTHREAD_CREATE_DETACHED 1
21615 #endif
21616         pthread_t t;
21617         int status;
21618         int detach = PTHREAD_CREATE_DETACHED;
21619
21620 #if HAVE_PTHREADS > 4
21621         /* Final pthreads */
21622         pthread_attr_t attr;
21623
21624         status = pthread_attr_init(&attr);
21625         if( status ) return status;
21626
21627 #if HAVE_PTHREADS < 7
21628         status = pthread_attr_setdetachstate(&attr, &detach);
21629         if( status < 0 ) status = errno;
21630 #else
21631         status = pthread_attr_setdetachstate(&attr, detach);
21632 #endif
21633         if( status ) return status;
21634         status = pthread_create( &t, &attr, task, NULL );
21635 #if HAVE_PTHREADS < 7
21636         if( status < 0 ) status = errno;
21637 #endif
21638         if( status ) return status;
21639 #else
21640         /* Draft 4 pthreads */
21641         status = pthread_create( &t, pthread_attr_default, task, NULL );
21642         if( status ) return errno;
21643
21644         /* give thread a chance to complete */
21645         /* it should remain joinable and hence detachable */
21646         sleep( 1 );
21647
21648         status = pthread_detach( &t );
21649         if( status ) return errno;
21650 #endif
21651
21652 #ifdef HAVE_LINUX_THREADS
21653         pthread_kill_other_threads_np();
21654 #endif
21655
21656         return 0;
21657
21658   ;
21659   return 0;
21660 }
21661 _ACEOF
21662 rm -f conftest.$ac_objext conftest$ac_exeext
21663 if { (ac_try="$ac_link"
21664 case "(($ac_try" in
21665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666   *) ac_try_echo=$ac_try;;
21667 esac
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669   (eval "$ac_link") 2>conftest.er1
21670   ac_status=$?
21671   grep -v '^ *+' conftest.er1 >conftest.err
21672   rm -f conftest.er1
21673   cat conftest.err >&5
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); } && {
21676          test -z "$ac_c_werror_flag" ||
21677          test ! -s conftest.err
21678        } && test -s conftest$ac_exeext &&
21679        $as_test_x conftest$ac_exeext; then
21680   ol_cv_pthread_pthreads=yes
21681 else
21682   echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21684
21685         ol_cv_pthread_pthreads=no
21686 fi
21687
21688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21689       conftest$ac_exeext conftest.$ac_ext
21690 else
21691   cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h.  */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h.  */
21697
21698 /* pthread test headers */
21699 #include <pthread.h>
21700 #if HAVE_PTHREADS < 7
21701 #include <errno.h>
21702 #endif
21703 #ifndef NULL
21704 #define NULL (void*)0
21705 #endif
21706
21707 static void *task(p)
21708         void *p;
21709 {
21710         return (void *) (p == NULL);
21711 }
21712
21713
21714 int main(argc, argv)
21715         int argc;
21716         char **argv;
21717 {
21718
21719         /* pthread test function */
21720 #ifndef PTHREAD_CREATE_DETACHED
21721 #define PTHREAD_CREATE_DETACHED 1
21722 #endif
21723         pthread_t t;
21724         int status;
21725         int detach = PTHREAD_CREATE_DETACHED;
21726
21727 #if HAVE_PTHREADS > 4
21728         /* Final pthreads */
21729         pthread_attr_t attr;
21730
21731         status = pthread_attr_init(&attr);
21732         if( status ) return status;
21733
21734 #if HAVE_PTHREADS < 7
21735         status = pthread_attr_setdetachstate(&attr, &detach);
21736         if( status < 0 ) status = errno;
21737 #else
21738         status = pthread_attr_setdetachstate(&attr, detach);
21739 #endif
21740         if( status ) return status;
21741         status = pthread_create( &t, &attr, task, NULL );
21742 #if HAVE_PTHREADS < 7
21743         if( status < 0 ) status = errno;
21744 #endif
21745         if( status ) return status;
21746 #else
21747         /* Draft 4 pthreads */
21748         status = pthread_create( &t, pthread_attr_default, task, NULL );
21749         if( status ) return errno;
21750
21751         /* give thread a chance to complete */
21752         /* it should remain joinable and hence detachable */
21753         sleep( 1 );
21754
21755         status = pthread_detach( &t );
21756         if( status ) return errno;
21757 #endif
21758
21759 #ifdef HAVE_LINUX_THREADS
21760         pthread_kill_other_threads_np();
21761 #endif
21762
21763         return 0;
21764
21765 }
21766
21767 _ACEOF
21768 rm -f conftest$ac_exeext
21769 if { (ac_try="$ac_link"
21770 case "(($ac_try" in
21771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772   *) ac_try_echo=$ac_try;;
21773 esac
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775   (eval "$ac_link") 2>&5
21776   ac_status=$?
21777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21779   { (case "(($ac_try" in
21780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781   *) ac_try_echo=$ac_try;;
21782 esac
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784   (eval "$ac_try") 2>&5
21785   ac_status=$?
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); }; }; then
21788   ol_cv_pthread_pthreads=yes
21789 else
21790   echo "$as_me: program exited with status $ac_status" >&5
21791 echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21793
21794 ( exit $ac_status )
21795 ol_cv_pthread_pthreads=no
21796 fi
21797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21798 fi
21799
21800
21801
21802                 # restore the LIBS
21803                 LIBS="$ol_LIBS"
21804
21805 fi
21806 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21807 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21808
21809         if test $ol_cv_pthread_pthreads = yes ; then
21810                 ol_link_pthreads="-pthreads"
21811                 ol_link_threads=posix
21812         fi
21813 fi
21814
21815                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21816 if test "$ol_link_threads" = no ; then
21817         # try -mthreads
21818         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21819 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21820 if test "${ol_cv_pthread_mthreads+set}" = set; then
21821   echo $ECHO_N "(cached) $ECHO_C" >&6
21822 else
21823
21824                 # save the flags
21825                 ol_LIBS="$LIBS"
21826                 LIBS="-mthreads $LIBS"
21827
21828                 if test "$cross_compiling" = yes; then
21829   cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h.  */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h.  */
21835
21836 /* pthread test headers */
21837 #include <pthread.h>
21838 #if HAVE_PTHREADS < 7
21839 #include <errno.h>
21840 #endif
21841 #ifndef NULL
21842 #define NULL (void*)0
21843 #endif
21844
21845 static void *task(p)
21846         void *p;
21847 {
21848         return (void *) (p == NULL);
21849 }
21850
21851 int
21852 main ()
21853 {
21854
21855         /* pthread test function */
21856 #ifndef PTHREAD_CREATE_DETACHED
21857 #define PTHREAD_CREATE_DETACHED 1
21858 #endif
21859         pthread_t t;
21860         int status;
21861         int detach = PTHREAD_CREATE_DETACHED;
21862
21863 #if HAVE_PTHREADS > 4
21864         /* Final pthreads */
21865         pthread_attr_t attr;
21866
21867         status = pthread_attr_init(&attr);
21868         if( status ) return status;
21869
21870 #if HAVE_PTHREADS < 7
21871         status = pthread_attr_setdetachstate(&attr, &detach);
21872         if( status < 0 ) status = errno;
21873 #else
21874         status = pthread_attr_setdetachstate(&attr, detach);
21875 #endif
21876         if( status ) return status;
21877         status = pthread_create( &t, &attr, task, NULL );
21878 #if HAVE_PTHREADS < 7
21879         if( status < 0 ) status = errno;
21880 #endif
21881         if( status ) return status;
21882 #else
21883         /* Draft 4 pthreads */
21884         status = pthread_create( &t, pthread_attr_default, task, NULL );
21885         if( status ) return errno;
21886
21887         /* give thread a chance to complete */
21888         /* it should remain joinable and hence detachable */
21889         sleep( 1 );
21890
21891         status = pthread_detach( &t );
21892         if( status ) return errno;
21893 #endif
21894
21895 #ifdef HAVE_LINUX_THREADS
21896         pthread_kill_other_threads_np();
21897 #endif
21898
21899         return 0;
21900
21901   ;
21902   return 0;
21903 }
21904 _ACEOF
21905 rm -f conftest.$ac_objext conftest$ac_exeext
21906 if { (ac_try="$ac_link"
21907 case "(($ac_try" in
21908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909   *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912   (eval "$ac_link") 2>conftest.er1
21913   ac_status=$?
21914   grep -v '^ *+' conftest.er1 >conftest.err
21915   rm -f conftest.er1
21916   cat conftest.err >&5
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); } && {
21919          test -z "$ac_c_werror_flag" ||
21920          test ! -s conftest.err
21921        } && test -s conftest$ac_exeext &&
21922        $as_test_x conftest$ac_exeext; then
21923   ol_cv_pthread_mthreads=yes
21924 else
21925   echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21927
21928         ol_cv_pthread_mthreads=no
21929 fi
21930
21931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21932       conftest$ac_exeext conftest.$ac_ext
21933 else
21934   cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h.  */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h.  */
21940
21941 /* pthread test headers */
21942 #include <pthread.h>
21943 #if HAVE_PTHREADS < 7
21944 #include <errno.h>
21945 #endif
21946 #ifndef NULL
21947 #define NULL (void*)0
21948 #endif
21949
21950 static void *task(p)
21951         void *p;
21952 {
21953         return (void *) (p == NULL);
21954 }
21955
21956
21957 int main(argc, argv)
21958         int argc;
21959         char **argv;
21960 {
21961
21962         /* pthread test function */
21963 #ifndef PTHREAD_CREATE_DETACHED
21964 #define PTHREAD_CREATE_DETACHED 1
21965 #endif
21966         pthread_t t;
21967         int status;
21968         int detach = PTHREAD_CREATE_DETACHED;
21969
21970 #if HAVE_PTHREADS > 4
21971         /* Final pthreads */
21972         pthread_attr_t attr;
21973
21974         status = pthread_attr_init(&attr);
21975         if( status ) return status;
21976
21977 #if HAVE_PTHREADS < 7
21978         status = pthread_attr_setdetachstate(&attr, &detach);
21979         if( status < 0 ) status = errno;
21980 #else
21981         status = pthread_attr_setdetachstate(&attr, detach);
21982 #endif
21983         if( status ) return status;
21984         status = pthread_create( &t, &attr, task, NULL );
21985 #if HAVE_PTHREADS < 7
21986         if( status < 0 ) status = errno;
21987 #endif
21988         if( status ) return status;
21989 #else
21990         /* Draft 4 pthreads */
21991         status = pthread_create( &t, pthread_attr_default, task, NULL );
21992         if( status ) return errno;
21993
21994         /* give thread a chance to complete */
21995         /* it should remain joinable and hence detachable */
21996         sleep( 1 );
21997
21998         status = pthread_detach( &t );
21999         if( status ) return errno;
22000 #endif
22001
22002 #ifdef HAVE_LINUX_THREADS
22003         pthread_kill_other_threads_np();
22004 #endif
22005
22006         return 0;
22007
22008 }
22009
22010 _ACEOF
22011 rm -f conftest$ac_exeext
22012 if { (ac_try="$ac_link"
22013 case "(($ac_try" in
22014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015   *) ac_try_echo=$ac_try;;
22016 esac
22017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22018   (eval "$ac_link") 2>&5
22019   ac_status=$?
22020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22022   { (case "(($ac_try" in
22023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024   *) ac_try_echo=$ac_try;;
22025 esac
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027   (eval "$ac_try") 2>&5
22028   ac_status=$?
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); }; }; then
22031   ol_cv_pthread_mthreads=yes
22032 else
22033   echo "$as_me: program exited with status $ac_status" >&5
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22036
22037 ( exit $ac_status )
22038 ol_cv_pthread_mthreads=no
22039 fi
22040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22041 fi
22042
22043
22044
22045                 # restore the LIBS
22046                 LIBS="$ol_LIBS"
22047
22048 fi
22049 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
22050 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
22051
22052         if test $ol_cv_pthread_mthreads = yes ; then
22053                 ol_link_pthreads="-mthreads"
22054                 ol_link_threads=posix
22055         fi
22056 fi
22057
22058                 # Pthread try link: -thread (ol_cv_pthread_thread)
22059 if test "$ol_link_threads" = no ; then
22060         # try -thread
22061         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
22062 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
22063 if test "${ol_cv_pthread_thread+set}" = set; then
22064   echo $ECHO_N "(cached) $ECHO_C" >&6
22065 else
22066
22067                 # save the flags
22068                 ol_LIBS="$LIBS"
22069                 LIBS="-thread $LIBS"
22070
22071                 if test "$cross_compiling" = yes; then
22072   cat >conftest.$ac_ext <<_ACEOF
22073 /* confdefs.h.  */
22074 _ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h.  */
22078
22079 /* pthread test headers */
22080 #include <pthread.h>
22081 #if HAVE_PTHREADS < 7
22082 #include <errno.h>
22083 #endif
22084 #ifndef NULL
22085 #define NULL (void*)0
22086 #endif
22087
22088 static void *task(p)
22089         void *p;
22090 {
22091         return (void *) (p == NULL);
22092 }
22093
22094 int
22095 main ()
22096 {
22097
22098         /* pthread test function */
22099 #ifndef PTHREAD_CREATE_DETACHED
22100 #define PTHREAD_CREATE_DETACHED 1
22101 #endif
22102         pthread_t t;
22103         int status;
22104         int detach = PTHREAD_CREATE_DETACHED;
22105
22106 #if HAVE_PTHREADS > 4
22107         /* Final pthreads */
22108         pthread_attr_t attr;
22109
22110         status = pthread_attr_init(&attr);
22111         if( status ) return status;
22112
22113 #if HAVE_PTHREADS < 7
22114         status = pthread_attr_setdetachstate(&attr, &detach);
22115         if( status < 0 ) status = errno;
22116 #else
22117         status = pthread_attr_setdetachstate(&attr, detach);
22118 #endif
22119         if( status ) return status;
22120         status = pthread_create( &t, &attr, task, NULL );
22121 #if HAVE_PTHREADS < 7
22122         if( status < 0 ) status = errno;
22123 #endif
22124         if( status ) return status;
22125 #else
22126         /* Draft 4 pthreads */
22127         status = pthread_create( &t, pthread_attr_default, task, NULL );
22128         if( status ) return errno;
22129
22130         /* give thread a chance to complete */
22131         /* it should remain joinable and hence detachable */
22132         sleep( 1 );
22133
22134         status = pthread_detach( &t );
22135         if( status ) return errno;
22136 #endif
22137
22138 #ifdef HAVE_LINUX_THREADS
22139         pthread_kill_other_threads_np();
22140 #endif
22141
22142         return 0;
22143
22144   ;
22145   return 0;
22146 }
22147 _ACEOF
22148 rm -f conftest.$ac_objext conftest$ac_exeext
22149 if { (ac_try="$ac_link"
22150 case "(($ac_try" in
22151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152   *) ac_try_echo=$ac_try;;
22153 esac
22154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22155   (eval "$ac_link") 2>conftest.er1
22156   ac_status=$?
22157   grep -v '^ *+' conftest.er1 >conftest.err
22158   rm -f conftest.er1
22159   cat conftest.err >&5
22160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161   (exit $ac_status); } && {
22162          test -z "$ac_c_werror_flag" ||
22163          test ! -s conftest.err
22164        } && test -s conftest$ac_exeext &&
22165        $as_test_x conftest$ac_exeext; then
22166   ol_cv_pthread_thread=yes
22167 else
22168   echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22170
22171         ol_cv_pthread_thread=no
22172 fi
22173
22174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22175       conftest$ac_exeext conftest.$ac_ext
22176 else
22177   cat >conftest.$ac_ext <<_ACEOF
22178 /* confdefs.h.  */
22179 _ACEOF
22180 cat confdefs.h >>conftest.$ac_ext
22181 cat >>conftest.$ac_ext <<_ACEOF
22182 /* end confdefs.h.  */
22183
22184 /* pthread test headers */
22185 #include <pthread.h>
22186 #if HAVE_PTHREADS < 7
22187 #include <errno.h>
22188 #endif
22189 #ifndef NULL
22190 #define NULL (void*)0
22191 #endif
22192
22193 static void *task(p)
22194         void *p;
22195 {
22196         return (void *) (p == NULL);
22197 }
22198
22199
22200 int main(argc, argv)
22201         int argc;
22202         char **argv;
22203 {
22204
22205         /* pthread test function */
22206 #ifndef PTHREAD_CREATE_DETACHED
22207 #define PTHREAD_CREATE_DETACHED 1
22208 #endif
22209         pthread_t t;
22210         int status;
22211         int detach = PTHREAD_CREATE_DETACHED;
22212
22213 #if HAVE_PTHREADS > 4
22214         /* Final pthreads */
22215         pthread_attr_t attr;
22216
22217         status = pthread_attr_init(&attr);
22218         if( status ) return status;
22219
22220 #if HAVE_PTHREADS < 7
22221         status = pthread_attr_setdetachstate(&attr, &detach);
22222         if( status < 0 ) status = errno;
22223 #else
22224         status = pthread_attr_setdetachstate(&attr, detach);
22225 #endif
22226         if( status ) return status;
22227         status = pthread_create( &t, &attr, task, NULL );
22228 #if HAVE_PTHREADS < 7
22229         if( status < 0 ) status = errno;
22230 #endif
22231         if( status ) return status;
22232 #else
22233         /* Draft 4 pthreads */
22234         status = pthread_create( &t, pthread_attr_default, task, NULL );
22235         if( status ) return errno;
22236
22237         /* give thread a chance to complete */
22238         /* it should remain joinable and hence detachable */
22239         sleep( 1 );
22240
22241         status = pthread_detach( &t );
22242         if( status ) return errno;
22243 #endif
22244
22245 #ifdef HAVE_LINUX_THREADS
22246         pthread_kill_other_threads_np();
22247 #endif
22248
22249         return 0;
22250
22251 }
22252
22253 _ACEOF
22254 rm -f conftest$ac_exeext
22255 if { (ac_try="$ac_link"
22256 case "(($ac_try" in
22257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258   *) ac_try_echo=$ac_try;;
22259 esac
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261   (eval "$ac_link") 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22265   { (case "(($ac_try" in
22266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22267   *) ac_try_echo=$ac_try;;
22268 esac
22269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22270   (eval "$ac_try") 2>&5
22271   ac_status=$?
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); }; }; then
22274   ol_cv_pthread_thread=yes
22275 else
22276   echo "$as_me: program exited with status $ac_status" >&5
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22279
22280 ( exit $ac_status )
22281 ol_cv_pthread_thread=no
22282 fi
22283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22284 fi
22285
22286
22287
22288                 # restore the LIBS
22289                 LIBS="$ol_LIBS"
22290
22291 fi
22292 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22293 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22294
22295         if test $ol_cv_pthread_thread = yes ; then
22296                 ol_link_pthreads="-thread"
22297                 ol_link_threads=posix
22298         fi
22299 fi
22300
22301
22302                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22303 if test "$ol_link_threads" = no ; then
22304         # try -lpthread -lmach -lexc -lc_r
22305         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22306 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22307 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22308   echo $ECHO_N "(cached) $ECHO_C" >&6
22309 else
22310
22311                 # save the flags
22312                 ol_LIBS="$LIBS"
22313                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22314
22315                 if test "$cross_compiling" = yes; then
22316   cat >conftest.$ac_ext <<_ACEOF
22317 /* confdefs.h.  */
22318 _ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h.  */
22322
22323 /* pthread test headers */
22324 #include <pthread.h>
22325 #if HAVE_PTHREADS < 7
22326 #include <errno.h>
22327 #endif
22328 #ifndef NULL
22329 #define NULL (void*)0
22330 #endif
22331
22332 static void *task(p)
22333         void *p;
22334 {
22335         return (void *) (p == NULL);
22336 }
22337
22338 int
22339 main ()
22340 {
22341
22342         /* pthread test function */
22343 #ifndef PTHREAD_CREATE_DETACHED
22344 #define PTHREAD_CREATE_DETACHED 1
22345 #endif
22346         pthread_t t;
22347         int status;
22348         int detach = PTHREAD_CREATE_DETACHED;
22349
22350 #if HAVE_PTHREADS > 4
22351         /* Final pthreads */
22352         pthread_attr_t attr;
22353
22354         status = pthread_attr_init(&attr);
22355         if( status ) return status;
22356
22357 #if HAVE_PTHREADS < 7
22358         status = pthread_attr_setdetachstate(&attr, &detach);
22359         if( status < 0 ) status = errno;
22360 #else
22361         status = pthread_attr_setdetachstate(&attr, detach);
22362 #endif
22363         if( status ) return status;
22364         status = pthread_create( &t, &attr, task, NULL );
22365 #if HAVE_PTHREADS < 7
22366         if( status < 0 ) status = errno;
22367 #endif
22368         if( status ) return status;
22369 #else
22370         /* Draft 4 pthreads */
22371         status = pthread_create( &t, pthread_attr_default, task, NULL );
22372         if( status ) return errno;
22373
22374         /* give thread a chance to complete */
22375         /* it should remain joinable and hence detachable */
22376         sleep( 1 );
22377
22378         status = pthread_detach( &t );
22379         if( status ) return errno;
22380 #endif
22381
22382 #ifdef HAVE_LINUX_THREADS
22383         pthread_kill_other_threads_np();
22384 #endif
22385
22386         return 0;
22387
22388   ;
22389   return 0;
22390 }
22391 _ACEOF
22392 rm -f conftest.$ac_objext conftest$ac_exeext
22393 if { (ac_try="$ac_link"
22394 case "(($ac_try" in
22395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396   *) ac_try_echo=$ac_try;;
22397 esac
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399   (eval "$ac_link") 2>conftest.er1
22400   ac_status=$?
22401   grep -v '^ *+' conftest.er1 >conftest.err
22402   rm -f conftest.er1
22403   cat conftest.err >&5
22404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405   (exit $ac_status); } && {
22406          test -z "$ac_c_werror_flag" ||
22407          test ! -s conftest.err
22408        } && test -s conftest$ac_exeext &&
22409        $as_test_x conftest$ac_exeext; then
22410   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22411 else
22412   echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22416 fi
22417
22418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22419       conftest$ac_exeext conftest.$ac_ext
22420 else
22421   cat >conftest.$ac_ext <<_ACEOF
22422 /* confdefs.h.  */
22423 _ACEOF
22424 cat confdefs.h >>conftest.$ac_ext
22425 cat >>conftest.$ac_ext <<_ACEOF
22426 /* end confdefs.h.  */
22427
22428 /* pthread test headers */
22429 #include <pthread.h>
22430 #if HAVE_PTHREADS < 7
22431 #include <errno.h>
22432 #endif
22433 #ifndef NULL
22434 #define NULL (void*)0
22435 #endif
22436
22437 static void *task(p)
22438         void *p;
22439 {
22440         return (void *) (p == NULL);
22441 }
22442
22443
22444 int main(argc, argv)
22445         int argc;
22446         char **argv;
22447 {
22448
22449         /* pthread test function */
22450 #ifndef PTHREAD_CREATE_DETACHED
22451 #define PTHREAD_CREATE_DETACHED 1
22452 #endif
22453         pthread_t t;
22454         int status;
22455         int detach = PTHREAD_CREATE_DETACHED;
22456
22457 #if HAVE_PTHREADS > 4
22458         /* Final pthreads */
22459         pthread_attr_t attr;
22460
22461         status = pthread_attr_init(&attr);
22462         if( status ) return status;
22463
22464 #if HAVE_PTHREADS < 7
22465         status = pthread_attr_setdetachstate(&attr, &detach);
22466         if( status < 0 ) status = errno;
22467 #else
22468         status = pthread_attr_setdetachstate(&attr, detach);
22469 #endif
22470         if( status ) return status;
22471         status = pthread_create( &t, &attr, task, NULL );
22472 #if HAVE_PTHREADS < 7
22473         if( status < 0 ) status = errno;
22474 #endif
22475         if( status ) return status;
22476 #else
22477         /* Draft 4 pthreads */
22478         status = pthread_create( &t, pthread_attr_default, task, NULL );
22479         if( status ) return errno;
22480
22481         /* give thread a chance to complete */
22482         /* it should remain joinable and hence detachable */
22483         sleep( 1 );
22484
22485         status = pthread_detach( &t );
22486         if( status ) return errno;
22487 #endif
22488
22489 #ifdef HAVE_LINUX_THREADS
22490         pthread_kill_other_threads_np();
22491 #endif
22492
22493         return 0;
22494
22495 }
22496
22497 _ACEOF
22498 rm -f conftest$ac_exeext
22499 if { (ac_try="$ac_link"
22500 case "(($ac_try" in
22501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502   *) ac_try_echo=$ac_try;;
22503 esac
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505   (eval "$ac_link") 2>&5
22506   ac_status=$?
22507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22509   { (case "(($ac_try" in
22510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511   *) ac_try_echo=$ac_try;;
22512 esac
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514   (eval "$ac_try") 2>&5
22515   ac_status=$?
22516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); }; }; then
22518   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22519 else
22520   echo "$as_me: program exited with status $ac_status" >&5
22521 echo "$as_me: failed program was:" >&5
22522 sed 's/^/| /' conftest.$ac_ext >&5
22523
22524 ( exit $ac_status )
22525 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22526 fi
22527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22528 fi
22529
22530
22531
22532                 # restore the LIBS
22533                 LIBS="$ol_LIBS"
22534
22535 fi
22536 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22537 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22538
22539         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22540                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22541                 ol_link_threads=posix
22542         fi
22543 fi
22544
22545                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22546 if test "$ol_link_threads" = no ; then
22547         # try -lpthread -lmach -lexc
22548         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22549 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22550 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22551   echo $ECHO_N "(cached) $ECHO_C" >&6
22552 else
22553
22554                 # save the flags
22555                 ol_LIBS="$LIBS"
22556                 LIBS="-lpthread -lmach -lexc $LIBS"
22557
22558                 if test "$cross_compiling" = yes; then
22559   cat >conftest.$ac_ext <<_ACEOF
22560 /* confdefs.h.  */
22561 _ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h.  */
22565
22566 /* pthread test headers */
22567 #include <pthread.h>
22568 #if HAVE_PTHREADS < 7
22569 #include <errno.h>
22570 #endif
22571 #ifndef NULL
22572 #define NULL (void*)0
22573 #endif
22574
22575 static void *task(p)
22576         void *p;
22577 {
22578         return (void *) (p == NULL);
22579 }
22580
22581 int
22582 main ()
22583 {
22584
22585         /* pthread test function */
22586 #ifndef PTHREAD_CREATE_DETACHED
22587 #define PTHREAD_CREATE_DETACHED 1
22588 #endif
22589         pthread_t t;
22590         int status;
22591         int detach = PTHREAD_CREATE_DETACHED;
22592
22593 #if HAVE_PTHREADS > 4
22594         /* Final pthreads */
22595         pthread_attr_t attr;
22596
22597         status = pthread_attr_init(&attr);
22598         if( status ) return status;
22599
22600 #if HAVE_PTHREADS < 7
22601         status = pthread_attr_setdetachstate(&attr, &detach);
22602         if( status < 0 ) status = errno;
22603 #else
22604         status = pthread_attr_setdetachstate(&attr, detach);
22605 #endif
22606         if( status ) return status;
22607         status = pthread_create( &t, &attr, task, NULL );
22608 #if HAVE_PTHREADS < 7
22609         if( status < 0 ) status = errno;
22610 #endif
22611         if( status ) return status;
22612 #else
22613         /* Draft 4 pthreads */
22614         status = pthread_create( &t, pthread_attr_default, task, NULL );
22615         if( status ) return errno;
22616
22617         /* give thread a chance to complete */
22618         /* it should remain joinable and hence detachable */
22619         sleep( 1 );
22620
22621         status = pthread_detach( &t );
22622         if( status ) return errno;
22623 #endif
22624
22625 #ifdef HAVE_LINUX_THREADS
22626         pthread_kill_other_threads_np();
22627 #endif
22628
22629         return 0;
22630
22631   ;
22632   return 0;
22633 }
22634 _ACEOF
22635 rm -f conftest.$ac_objext conftest$ac_exeext
22636 if { (ac_try="$ac_link"
22637 case "(($ac_try" in
22638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639   *) ac_try_echo=$ac_try;;
22640 esac
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642   (eval "$ac_link") 2>conftest.er1
22643   ac_status=$?
22644   grep -v '^ *+' conftest.er1 >conftest.err
22645   rm -f conftest.er1
22646   cat conftest.err >&5
22647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648   (exit $ac_status); } && {
22649          test -z "$ac_c_werror_flag" ||
22650          test ! -s conftest.err
22651        } && test -s conftest$ac_exeext &&
22652        $as_test_x conftest$ac_exeext; then
22653   ol_cv_pthread_lpthread_lmach_lexc=yes
22654 else
22655   echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22657
22658         ol_cv_pthread_lpthread_lmach_lexc=no
22659 fi
22660
22661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22662       conftest$ac_exeext conftest.$ac_ext
22663 else
22664   cat >conftest.$ac_ext <<_ACEOF
22665 /* confdefs.h.  */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h.  */
22670
22671 /* pthread test headers */
22672 #include <pthread.h>
22673 #if HAVE_PTHREADS < 7
22674 #include <errno.h>
22675 #endif
22676 #ifndef NULL
22677 #define NULL (void*)0
22678 #endif
22679
22680 static void *task(p)
22681         void *p;
22682 {
22683         return (void *) (p == NULL);
22684 }
22685
22686
22687 int main(argc, argv)
22688         int argc;
22689         char **argv;
22690 {
22691
22692         /* pthread test function */
22693 #ifndef PTHREAD_CREATE_DETACHED
22694 #define PTHREAD_CREATE_DETACHED 1
22695 #endif
22696         pthread_t t;
22697         int status;
22698         int detach = PTHREAD_CREATE_DETACHED;
22699
22700 #if HAVE_PTHREADS > 4
22701         /* Final pthreads */
22702         pthread_attr_t attr;
22703
22704         status = pthread_attr_init(&attr);
22705         if( status ) return status;
22706
22707 #if HAVE_PTHREADS < 7
22708         status = pthread_attr_setdetachstate(&attr, &detach);
22709         if( status < 0 ) status = errno;
22710 #else
22711         status = pthread_attr_setdetachstate(&attr, detach);
22712 #endif
22713         if( status ) return status;
22714         status = pthread_create( &t, &attr, task, NULL );
22715 #if HAVE_PTHREADS < 7
22716         if( status < 0 ) status = errno;
22717 #endif
22718         if( status ) return status;
22719 #else
22720         /* Draft 4 pthreads */
22721         status = pthread_create( &t, pthread_attr_default, task, NULL );
22722         if( status ) return errno;
22723
22724         /* give thread a chance to complete */
22725         /* it should remain joinable and hence detachable */
22726         sleep( 1 );
22727
22728         status = pthread_detach( &t );
22729         if( status ) return errno;
22730 #endif
22731
22732 #ifdef HAVE_LINUX_THREADS
22733         pthread_kill_other_threads_np();
22734 #endif
22735
22736         return 0;
22737
22738 }
22739
22740 _ACEOF
22741 rm -f conftest$ac_exeext
22742 if { (ac_try="$ac_link"
22743 case "(($ac_try" in
22744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745   *) ac_try_echo=$ac_try;;
22746 esac
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748   (eval "$ac_link") 2>&5
22749   ac_status=$?
22750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22752   { (case "(($ac_try" in
22753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754   *) ac_try_echo=$ac_try;;
22755 esac
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757   (eval "$ac_try") 2>&5
22758   ac_status=$?
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); }; }; then
22761   ol_cv_pthread_lpthread_lmach_lexc=yes
22762 else
22763   echo "$as_me: program exited with status $ac_status" >&5
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22766
22767 ( exit $ac_status )
22768 ol_cv_pthread_lpthread_lmach_lexc=no
22769 fi
22770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22771 fi
22772
22773
22774
22775                 # restore the LIBS
22776                 LIBS="$ol_LIBS"
22777
22778 fi
22779 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22780 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22781
22782         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22783                 ol_link_pthreads="-lpthread -lmach -lexc"
22784                 ol_link_threads=posix
22785         fi
22786 fi
22787
22788
22789                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22790 if test "$ol_link_threads" = no ; then
22791         # try -lpthread -Wl,-woff,85
22792         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22793 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22794 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22795   echo $ECHO_N "(cached) $ECHO_C" >&6
22796 else
22797
22798                 # save the flags
22799                 ol_LIBS="$LIBS"
22800                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22801
22802                 if test "$cross_compiling" = yes; then
22803   cat >conftest.$ac_ext <<_ACEOF
22804 /* confdefs.h.  */
22805 _ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h.  */
22809
22810 /* pthread test headers */
22811 #include <pthread.h>
22812 #if HAVE_PTHREADS < 7
22813 #include <errno.h>
22814 #endif
22815 #ifndef NULL
22816 #define NULL (void*)0
22817 #endif
22818
22819 static void *task(p)
22820         void *p;
22821 {
22822         return (void *) (p == NULL);
22823 }
22824
22825 int
22826 main ()
22827 {
22828
22829         /* pthread test function */
22830 #ifndef PTHREAD_CREATE_DETACHED
22831 #define PTHREAD_CREATE_DETACHED 1
22832 #endif
22833         pthread_t t;
22834         int status;
22835         int detach = PTHREAD_CREATE_DETACHED;
22836
22837 #if HAVE_PTHREADS > 4
22838         /* Final pthreads */
22839         pthread_attr_t attr;
22840
22841         status = pthread_attr_init(&attr);
22842         if( status ) return status;
22843
22844 #if HAVE_PTHREADS < 7
22845         status = pthread_attr_setdetachstate(&attr, &detach);
22846         if( status < 0 ) status = errno;
22847 #else
22848         status = pthread_attr_setdetachstate(&attr, detach);
22849 #endif
22850         if( status ) return status;
22851         status = pthread_create( &t, &attr, task, NULL );
22852 #if HAVE_PTHREADS < 7
22853         if( status < 0 ) status = errno;
22854 #endif
22855         if( status ) return status;
22856 #else
22857         /* Draft 4 pthreads */
22858         status = pthread_create( &t, pthread_attr_default, task, NULL );
22859         if( status ) return errno;
22860
22861         /* give thread a chance to complete */
22862         /* it should remain joinable and hence detachable */
22863         sleep( 1 );
22864
22865         status = pthread_detach( &t );
22866         if( status ) return errno;
22867 #endif
22868
22869 #ifdef HAVE_LINUX_THREADS
22870         pthread_kill_other_threads_np();
22871 #endif
22872
22873         return 0;
22874
22875   ;
22876   return 0;
22877 }
22878 _ACEOF
22879 rm -f conftest.$ac_objext conftest$ac_exeext
22880 if { (ac_try="$ac_link"
22881 case "(($ac_try" in
22882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883   *) ac_try_echo=$ac_try;;
22884 esac
22885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22886   (eval "$ac_link") 2>conftest.er1
22887   ac_status=$?
22888   grep -v '^ *+' conftest.er1 >conftest.err
22889   rm -f conftest.er1
22890   cat conftest.err >&5
22891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892   (exit $ac_status); } && {
22893          test -z "$ac_c_werror_flag" ||
22894          test ! -s conftest.err
22895        } && test -s conftest$ac_exeext &&
22896        $as_test_x conftest$ac_exeext; then
22897   ol_cv_pthread_lib_lpthread_woff=yes
22898 else
22899   echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22901
22902         ol_cv_pthread_lib_lpthread_woff=no
22903 fi
22904
22905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22906       conftest$ac_exeext conftest.$ac_ext
22907 else
22908   cat >conftest.$ac_ext <<_ACEOF
22909 /* confdefs.h.  */
22910 _ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h.  */
22914
22915 /* pthread test headers */
22916 #include <pthread.h>
22917 #if HAVE_PTHREADS < 7
22918 #include <errno.h>
22919 #endif
22920 #ifndef NULL
22921 #define NULL (void*)0
22922 #endif
22923
22924 static void *task(p)
22925         void *p;
22926 {
22927         return (void *) (p == NULL);
22928 }
22929
22930
22931 int main(argc, argv)
22932         int argc;
22933         char **argv;
22934 {
22935
22936         /* pthread test function */
22937 #ifndef PTHREAD_CREATE_DETACHED
22938 #define PTHREAD_CREATE_DETACHED 1
22939 #endif
22940         pthread_t t;
22941         int status;
22942         int detach = PTHREAD_CREATE_DETACHED;
22943
22944 #if HAVE_PTHREADS > 4
22945         /* Final pthreads */
22946         pthread_attr_t attr;
22947
22948         status = pthread_attr_init(&attr);
22949         if( status ) return status;
22950
22951 #if HAVE_PTHREADS < 7
22952         status = pthread_attr_setdetachstate(&attr, &detach);
22953         if( status < 0 ) status = errno;
22954 #else
22955         status = pthread_attr_setdetachstate(&attr, detach);
22956 #endif
22957         if( status ) return status;
22958         status = pthread_create( &t, &attr, task, NULL );
22959 #if HAVE_PTHREADS < 7
22960         if( status < 0 ) status = errno;
22961 #endif
22962         if( status ) return status;
22963 #else
22964         /* Draft 4 pthreads */
22965         status = pthread_create( &t, pthread_attr_default, task, NULL );
22966         if( status ) return errno;
22967
22968         /* give thread a chance to complete */
22969         /* it should remain joinable and hence detachable */
22970         sleep( 1 );
22971
22972         status = pthread_detach( &t );
22973         if( status ) return errno;
22974 #endif
22975
22976 #ifdef HAVE_LINUX_THREADS
22977         pthread_kill_other_threads_np();
22978 #endif
22979
22980         return 0;
22981
22982 }
22983
22984 _ACEOF
22985 rm -f conftest$ac_exeext
22986 if { (ac_try="$ac_link"
22987 case "(($ac_try" in
22988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989   *) ac_try_echo=$ac_try;;
22990 esac
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992   (eval "$ac_link") 2>&5
22993   ac_status=$?
22994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22996   { (case "(($ac_try" in
22997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998   *) ac_try_echo=$ac_try;;
22999 esac
23000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23001   (eval "$ac_try") 2>&5
23002   ac_status=$?
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); }; }; then
23005   ol_cv_pthread_lib_lpthread_woff=yes
23006 else
23007   echo "$as_me: program exited with status $ac_status" >&5
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23010
23011 ( exit $ac_status )
23012 ol_cv_pthread_lib_lpthread_woff=no
23013 fi
23014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23015 fi
23016
23017
23018
23019                 # restore the LIBS
23020                 LIBS="$ol_LIBS"
23021
23022 fi
23023 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
23024 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
23025
23026         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
23027                 ol_link_pthreads="-lpthread -Wl,-woff,85"
23028                 ol_link_threads=posix
23029         fi
23030 fi
23031
23032
23033                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
23034 if test "$ol_link_threads" = no ; then
23035         # try -lpthread
23036         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
23037 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
23038 if test "${ol_cv_pthread_lpthread+set}" = set; then
23039   echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041
23042                 # save the flags
23043                 ol_LIBS="$LIBS"
23044                 LIBS="-lpthread $LIBS"
23045
23046                 if test "$cross_compiling" = yes; then
23047   cat >conftest.$ac_ext <<_ACEOF
23048 /* confdefs.h.  */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h.  */
23053
23054 /* pthread test headers */
23055 #include <pthread.h>
23056 #if HAVE_PTHREADS < 7
23057 #include <errno.h>
23058 #endif
23059 #ifndef NULL
23060 #define NULL (void*)0
23061 #endif
23062
23063 static void *task(p)
23064         void *p;
23065 {
23066         return (void *) (p == NULL);
23067 }
23068
23069 int
23070 main ()
23071 {
23072
23073         /* pthread test function */
23074 #ifndef PTHREAD_CREATE_DETACHED
23075 #define PTHREAD_CREATE_DETACHED 1
23076 #endif
23077         pthread_t t;
23078         int status;
23079         int detach = PTHREAD_CREATE_DETACHED;
23080
23081 #if HAVE_PTHREADS > 4
23082         /* Final pthreads */
23083         pthread_attr_t attr;
23084
23085         status = pthread_attr_init(&attr);
23086         if( status ) return status;
23087
23088 #if HAVE_PTHREADS < 7
23089         status = pthread_attr_setdetachstate(&attr, &detach);
23090         if( status < 0 ) status = errno;
23091 #else
23092         status = pthread_attr_setdetachstate(&attr, detach);
23093 #endif
23094         if( status ) return status;
23095         status = pthread_create( &t, &attr, task, NULL );
23096 #if HAVE_PTHREADS < 7
23097         if( status < 0 ) status = errno;
23098 #endif
23099         if( status ) return status;
23100 #else
23101         /* Draft 4 pthreads */
23102         status = pthread_create( &t, pthread_attr_default, task, NULL );
23103         if( status ) return errno;
23104
23105         /* give thread a chance to complete */
23106         /* it should remain joinable and hence detachable */
23107         sleep( 1 );
23108
23109         status = pthread_detach( &t );
23110         if( status ) return errno;
23111 #endif
23112
23113 #ifdef HAVE_LINUX_THREADS
23114         pthread_kill_other_threads_np();
23115 #endif
23116
23117         return 0;
23118
23119   ;
23120   return 0;
23121 }
23122 _ACEOF
23123 rm -f conftest.$ac_objext conftest$ac_exeext
23124 if { (ac_try="$ac_link"
23125 case "(($ac_try" in
23126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127   *) ac_try_echo=$ac_try;;
23128 esac
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130   (eval "$ac_link") 2>conftest.er1
23131   ac_status=$?
23132   grep -v '^ *+' conftest.er1 >conftest.err
23133   rm -f conftest.er1
23134   cat conftest.err >&5
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); } && {
23137          test -z "$ac_c_werror_flag" ||
23138          test ! -s conftest.err
23139        } && test -s conftest$ac_exeext &&
23140        $as_test_x conftest$ac_exeext; then
23141   ol_cv_pthread_lpthread=yes
23142 else
23143   echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23145
23146         ol_cv_pthread_lpthread=no
23147 fi
23148
23149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23150       conftest$ac_exeext conftest.$ac_ext
23151 else
23152   cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h.  */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h.  */
23158
23159 /* pthread test headers */
23160 #include <pthread.h>
23161 #if HAVE_PTHREADS < 7
23162 #include <errno.h>
23163 #endif
23164 #ifndef NULL
23165 #define NULL (void*)0
23166 #endif
23167
23168 static void *task(p)
23169         void *p;
23170 {
23171         return (void *) (p == NULL);
23172 }
23173
23174
23175 int main(argc, argv)
23176         int argc;
23177         char **argv;
23178 {
23179
23180         /* pthread test function */
23181 #ifndef PTHREAD_CREATE_DETACHED
23182 #define PTHREAD_CREATE_DETACHED 1
23183 #endif
23184         pthread_t t;
23185         int status;
23186         int detach = PTHREAD_CREATE_DETACHED;
23187
23188 #if HAVE_PTHREADS > 4
23189         /* Final pthreads */
23190         pthread_attr_t attr;
23191
23192         status = pthread_attr_init(&attr);
23193         if( status ) return status;
23194
23195 #if HAVE_PTHREADS < 7
23196         status = pthread_attr_setdetachstate(&attr, &detach);
23197         if( status < 0 ) status = errno;
23198 #else
23199         status = pthread_attr_setdetachstate(&attr, detach);
23200 #endif
23201         if( status ) return status;
23202         status = pthread_create( &t, &attr, task, NULL );
23203 #if HAVE_PTHREADS < 7
23204         if( status < 0 ) status = errno;
23205 #endif
23206         if( status ) return status;
23207 #else
23208         /* Draft 4 pthreads */
23209         status = pthread_create( &t, pthread_attr_default, task, NULL );
23210         if( status ) return errno;
23211
23212         /* give thread a chance to complete */
23213         /* it should remain joinable and hence detachable */
23214         sleep( 1 );
23215
23216         status = pthread_detach( &t );
23217         if( status ) return errno;
23218 #endif
23219
23220 #ifdef HAVE_LINUX_THREADS
23221         pthread_kill_other_threads_np();
23222 #endif
23223
23224         return 0;
23225
23226 }
23227
23228 _ACEOF
23229 rm -f conftest$ac_exeext
23230 if { (ac_try="$ac_link"
23231 case "(($ac_try" in
23232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233   *) ac_try_echo=$ac_try;;
23234 esac
23235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23236   (eval "$ac_link") 2>&5
23237   ac_status=$?
23238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23240   { (case "(($ac_try" in
23241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242   *) ac_try_echo=$ac_try;;
23243 esac
23244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245   (eval "$ac_try") 2>&5
23246   ac_status=$?
23247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248   (exit $ac_status); }; }; then
23249   ol_cv_pthread_lpthread=yes
23250 else
23251   echo "$as_me: program exited with status $ac_status" >&5
23252 echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23254
23255 ( exit $ac_status )
23256 ol_cv_pthread_lpthread=no
23257 fi
23258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23259 fi
23260
23261
23262
23263                 # restore the LIBS
23264                 LIBS="$ol_LIBS"
23265
23266 fi
23267 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23268 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23269
23270         if test $ol_cv_pthread_lpthread = yes ; then
23271                 ol_link_pthreads="-lpthread"
23272                 ol_link_threads=posix
23273         fi
23274 fi
23275
23276                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23277 if test "$ol_link_threads" = no ; then
23278         # try -lc_r
23279         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23280 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23281 if test "${ol_cv_pthread_lc_r+set}" = set; then
23282   echo $ECHO_N "(cached) $ECHO_C" >&6
23283 else
23284
23285                 # save the flags
23286                 ol_LIBS="$LIBS"
23287                 LIBS="-lc_r $LIBS"
23288
23289                 if test "$cross_compiling" = yes; then
23290   cat >conftest.$ac_ext <<_ACEOF
23291 /* confdefs.h.  */
23292 _ACEOF
23293 cat confdefs.h >>conftest.$ac_ext
23294 cat >>conftest.$ac_ext <<_ACEOF
23295 /* end confdefs.h.  */
23296
23297 /* pthread test headers */
23298 #include <pthread.h>
23299 #if HAVE_PTHREADS < 7
23300 #include <errno.h>
23301 #endif
23302 #ifndef NULL
23303 #define NULL (void*)0
23304 #endif
23305
23306 static void *task(p)
23307         void *p;
23308 {
23309         return (void *) (p == NULL);
23310 }
23311
23312 int
23313 main ()
23314 {
23315
23316         /* pthread test function */
23317 #ifndef PTHREAD_CREATE_DETACHED
23318 #define PTHREAD_CREATE_DETACHED 1
23319 #endif
23320         pthread_t t;
23321         int status;
23322         int detach = PTHREAD_CREATE_DETACHED;
23323
23324 #if HAVE_PTHREADS > 4
23325         /* Final pthreads */
23326         pthread_attr_t attr;
23327
23328         status = pthread_attr_init(&attr);
23329         if( status ) return status;
23330
23331 #if HAVE_PTHREADS < 7
23332         status = pthread_attr_setdetachstate(&attr, &detach);
23333         if( status < 0 ) status = errno;
23334 #else
23335         status = pthread_attr_setdetachstate(&attr, detach);
23336 #endif
23337         if( status ) return status;
23338         status = pthread_create( &t, &attr, task, NULL );
23339 #if HAVE_PTHREADS < 7
23340         if( status < 0 ) status = errno;
23341 #endif
23342         if( status ) return status;
23343 #else
23344         /* Draft 4 pthreads */
23345         status = pthread_create( &t, pthread_attr_default, task, NULL );
23346         if( status ) return errno;
23347
23348         /* give thread a chance to complete */
23349         /* it should remain joinable and hence detachable */
23350         sleep( 1 );
23351
23352         status = pthread_detach( &t );
23353         if( status ) return errno;
23354 #endif
23355
23356 #ifdef HAVE_LINUX_THREADS
23357         pthread_kill_other_threads_np();
23358 #endif
23359
23360         return 0;
23361
23362   ;
23363   return 0;
23364 }
23365 _ACEOF
23366 rm -f conftest.$ac_objext conftest$ac_exeext
23367 if { (ac_try="$ac_link"
23368 case "(($ac_try" in
23369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370   *) ac_try_echo=$ac_try;;
23371 esac
23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373   (eval "$ac_link") 2>conftest.er1
23374   ac_status=$?
23375   grep -v '^ *+' conftest.er1 >conftest.err
23376   rm -f conftest.er1
23377   cat conftest.err >&5
23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379   (exit $ac_status); } && {
23380          test -z "$ac_c_werror_flag" ||
23381          test ! -s conftest.err
23382        } && test -s conftest$ac_exeext &&
23383        $as_test_x conftest$ac_exeext; then
23384   ol_cv_pthread_lc_r=yes
23385 else
23386   echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23388
23389         ol_cv_pthread_lc_r=no
23390 fi
23391
23392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23393       conftest$ac_exeext conftest.$ac_ext
23394 else
23395   cat >conftest.$ac_ext <<_ACEOF
23396 /* confdefs.h.  */
23397 _ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h.  */
23401
23402 /* pthread test headers */
23403 #include <pthread.h>
23404 #if HAVE_PTHREADS < 7
23405 #include <errno.h>
23406 #endif
23407 #ifndef NULL
23408 #define NULL (void*)0
23409 #endif
23410
23411 static void *task(p)
23412         void *p;
23413 {
23414         return (void *) (p == NULL);
23415 }
23416
23417
23418 int main(argc, argv)
23419         int argc;
23420         char **argv;
23421 {
23422
23423         /* pthread test function */
23424 #ifndef PTHREAD_CREATE_DETACHED
23425 #define PTHREAD_CREATE_DETACHED 1
23426 #endif
23427         pthread_t t;
23428         int status;
23429         int detach = PTHREAD_CREATE_DETACHED;
23430
23431 #if HAVE_PTHREADS > 4
23432         /* Final pthreads */
23433         pthread_attr_t attr;
23434
23435         status = pthread_attr_init(&attr);
23436         if( status ) return status;
23437
23438 #if HAVE_PTHREADS < 7
23439         status = pthread_attr_setdetachstate(&attr, &detach);
23440         if( status < 0 ) status = errno;
23441 #else
23442         status = pthread_attr_setdetachstate(&attr, detach);
23443 #endif
23444         if( status ) return status;
23445         status = pthread_create( &t, &attr, task, NULL );
23446 #if HAVE_PTHREADS < 7
23447         if( status < 0 ) status = errno;
23448 #endif
23449         if( status ) return status;
23450 #else
23451         /* Draft 4 pthreads */
23452         status = pthread_create( &t, pthread_attr_default, task, NULL );
23453         if( status ) return errno;
23454
23455         /* give thread a chance to complete */
23456         /* it should remain joinable and hence detachable */
23457         sleep( 1 );
23458
23459         status = pthread_detach( &t );
23460         if( status ) return errno;
23461 #endif
23462
23463 #ifdef HAVE_LINUX_THREADS
23464         pthread_kill_other_threads_np();
23465 #endif
23466
23467         return 0;
23468
23469 }
23470
23471 _ACEOF
23472 rm -f conftest$ac_exeext
23473 if { (ac_try="$ac_link"
23474 case "(($ac_try" in
23475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476   *) ac_try_echo=$ac_try;;
23477 esac
23478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479   (eval "$ac_link") 2>&5
23480   ac_status=$?
23481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23483   { (case "(($ac_try" in
23484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485   *) ac_try_echo=$ac_try;;
23486 esac
23487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488   (eval "$ac_try") 2>&5
23489   ac_status=$?
23490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491   (exit $ac_status); }; }; then
23492   ol_cv_pthread_lc_r=yes
23493 else
23494   echo "$as_me: program exited with status $ac_status" >&5
23495 echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23497
23498 ( exit $ac_status )
23499 ol_cv_pthread_lc_r=no
23500 fi
23501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23502 fi
23503
23504
23505
23506                 # restore the LIBS
23507                 LIBS="$ol_LIBS"
23508
23509 fi
23510 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23511 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23512
23513         if test $ol_cv_pthread_lc_r = yes ; then
23514                 ol_link_pthreads="-lc_r"
23515                 ol_link_threads=posix
23516         fi
23517 fi
23518
23519
23520                 # Pthread try link: -threads (ol_cv_pthread_threads)
23521 if test "$ol_link_threads" = no ; then
23522         # try -threads
23523         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23524 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23525 if test "${ol_cv_pthread_threads+set}" = set; then
23526   echo $ECHO_N "(cached) $ECHO_C" >&6
23527 else
23528
23529                 # save the flags
23530                 ol_LIBS="$LIBS"
23531                 LIBS="-threads $LIBS"
23532
23533                 if test "$cross_compiling" = yes; then
23534   cat >conftest.$ac_ext <<_ACEOF
23535 /* confdefs.h.  */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h.  */
23540
23541 /* pthread test headers */
23542 #include <pthread.h>
23543 #if HAVE_PTHREADS < 7
23544 #include <errno.h>
23545 #endif
23546 #ifndef NULL
23547 #define NULL (void*)0
23548 #endif
23549
23550 static void *task(p)
23551         void *p;
23552 {
23553         return (void *) (p == NULL);
23554 }
23555
23556 int
23557 main ()
23558 {
23559
23560         /* pthread test function */
23561 #ifndef PTHREAD_CREATE_DETACHED
23562 #define PTHREAD_CREATE_DETACHED 1
23563 #endif
23564         pthread_t t;
23565         int status;
23566         int detach = PTHREAD_CREATE_DETACHED;
23567
23568 #if HAVE_PTHREADS > 4
23569         /* Final pthreads */
23570         pthread_attr_t attr;
23571
23572         status = pthread_attr_init(&attr);
23573         if( status ) return status;
23574
23575 #if HAVE_PTHREADS < 7
23576         status = pthread_attr_setdetachstate(&attr, &detach);
23577         if( status < 0 ) status = errno;
23578 #else
23579         status = pthread_attr_setdetachstate(&attr, detach);
23580 #endif
23581         if( status ) return status;
23582         status = pthread_create( &t, &attr, task, NULL );
23583 #if HAVE_PTHREADS < 7
23584         if( status < 0 ) status = errno;
23585 #endif
23586         if( status ) return status;
23587 #else
23588         /* Draft 4 pthreads */
23589         status = pthread_create( &t, pthread_attr_default, task, NULL );
23590         if( status ) return errno;
23591
23592         /* give thread a chance to complete */
23593         /* it should remain joinable and hence detachable */
23594         sleep( 1 );
23595
23596         status = pthread_detach( &t );
23597         if( status ) return errno;
23598 #endif
23599
23600 #ifdef HAVE_LINUX_THREADS
23601         pthread_kill_other_threads_np();
23602 #endif
23603
23604         return 0;
23605
23606   ;
23607   return 0;
23608 }
23609 _ACEOF
23610 rm -f conftest.$ac_objext conftest$ac_exeext
23611 if { (ac_try="$ac_link"
23612 case "(($ac_try" in
23613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614   *) ac_try_echo=$ac_try;;
23615 esac
23616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23617   (eval "$ac_link") 2>conftest.er1
23618   ac_status=$?
23619   grep -v '^ *+' conftest.er1 >conftest.err
23620   rm -f conftest.er1
23621   cat conftest.err >&5
23622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623   (exit $ac_status); } && {
23624          test -z "$ac_c_werror_flag" ||
23625          test ! -s conftest.err
23626        } && test -s conftest$ac_exeext &&
23627        $as_test_x conftest$ac_exeext; then
23628   ol_cv_pthread_threads=yes
23629 else
23630   echo "$as_me: failed program was:" >&5
23631 sed 's/^/| /' conftest.$ac_ext >&5
23632
23633         ol_cv_pthread_threads=no
23634 fi
23635
23636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23637       conftest$ac_exeext conftest.$ac_ext
23638 else
23639   cat >conftest.$ac_ext <<_ACEOF
23640 /* confdefs.h.  */
23641 _ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h.  */
23645
23646 /* pthread test headers */
23647 #include <pthread.h>
23648 #if HAVE_PTHREADS < 7
23649 #include <errno.h>
23650 #endif
23651 #ifndef NULL
23652 #define NULL (void*)0
23653 #endif
23654
23655 static void *task(p)
23656         void *p;
23657 {
23658         return (void *) (p == NULL);
23659 }
23660
23661
23662 int main(argc, argv)
23663         int argc;
23664         char **argv;
23665 {
23666
23667         /* pthread test function */
23668 #ifndef PTHREAD_CREATE_DETACHED
23669 #define PTHREAD_CREATE_DETACHED 1
23670 #endif
23671         pthread_t t;
23672         int status;
23673         int detach = PTHREAD_CREATE_DETACHED;
23674
23675 #if HAVE_PTHREADS > 4
23676         /* Final pthreads */
23677         pthread_attr_t attr;
23678
23679         status = pthread_attr_init(&attr);
23680         if( status ) return status;
23681
23682 #if HAVE_PTHREADS < 7
23683         status = pthread_attr_setdetachstate(&attr, &detach);
23684         if( status < 0 ) status = errno;
23685 #else
23686         status = pthread_attr_setdetachstate(&attr, detach);
23687 #endif
23688         if( status ) return status;
23689         status = pthread_create( &t, &attr, task, NULL );
23690 #if HAVE_PTHREADS < 7
23691         if( status < 0 ) status = errno;
23692 #endif
23693         if( status ) return status;
23694 #else
23695         /* Draft 4 pthreads */
23696         status = pthread_create( &t, pthread_attr_default, task, NULL );
23697         if( status ) return errno;
23698
23699         /* give thread a chance to complete */
23700         /* it should remain joinable and hence detachable */
23701         sleep( 1 );
23702
23703         status = pthread_detach( &t );
23704         if( status ) return errno;
23705 #endif
23706
23707 #ifdef HAVE_LINUX_THREADS
23708         pthread_kill_other_threads_np();
23709 #endif
23710
23711         return 0;
23712
23713 }
23714
23715 _ACEOF
23716 rm -f conftest$ac_exeext
23717 if { (ac_try="$ac_link"
23718 case "(($ac_try" in
23719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23720   *) ac_try_echo=$ac_try;;
23721 esac
23722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23723   (eval "$ac_link") 2>&5
23724   ac_status=$?
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23727   { (case "(($ac_try" in
23728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729   *) ac_try_echo=$ac_try;;
23730 esac
23731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23732   (eval "$ac_try") 2>&5
23733   ac_status=$?
23734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); }; }; then
23736   ol_cv_pthread_threads=yes
23737 else
23738   echo "$as_me: program exited with status $ac_status" >&5
23739 echo "$as_me: failed program was:" >&5
23740 sed 's/^/| /' conftest.$ac_ext >&5
23741
23742 ( exit $ac_status )
23743 ol_cv_pthread_threads=no
23744 fi
23745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23746 fi
23747
23748
23749
23750                 # restore the LIBS
23751                 LIBS="$ol_LIBS"
23752
23753 fi
23754 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23755 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23756
23757         if test $ol_cv_pthread_threads = yes ; then
23758                 ol_link_pthreads="-threads"
23759                 ol_link_threads=posix
23760         fi
23761 fi
23762
23763
23764                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23765 if test "$ol_link_threads" = no ; then
23766         # try -lpthreads -lmach -lexc -lc_r
23767         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23768 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23769 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23770   echo $ECHO_N "(cached) $ECHO_C" >&6
23771 else
23772
23773                 # save the flags
23774                 ol_LIBS="$LIBS"
23775                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23776
23777                 if test "$cross_compiling" = yes; then
23778   cat >conftest.$ac_ext <<_ACEOF
23779 /* confdefs.h.  */
23780 _ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h.  */
23784
23785 /* pthread test headers */
23786 #include <pthread.h>
23787 #if HAVE_PTHREADS < 7
23788 #include <errno.h>
23789 #endif
23790 #ifndef NULL
23791 #define NULL (void*)0
23792 #endif
23793
23794 static void *task(p)
23795         void *p;
23796 {
23797         return (void *) (p == NULL);
23798 }
23799
23800 int
23801 main ()
23802 {
23803
23804         /* pthread test function */
23805 #ifndef PTHREAD_CREATE_DETACHED
23806 #define PTHREAD_CREATE_DETACHED 1
23807 #endif
23808         pthread_t t;
23809         int status;
23810         int detach = PTHREAD_CREATE_DETACHED;
23811
23812 #if HAVE_PTHREADS > 4
23813         /* Final pthreads */
23814         pthread_attr_t attr;
23815
23816         status = pthread_attr_init(&attr);
23817         if( status ) return status;
23818
23819 #if HAVE_PTHREADS < 7
23820         status = pthread_attr_setdetachstate(&attr, &detach);
23821         if( status < 0 ) status = errno;
23822 #else
23823         status = pthread_attr_setdetachstate(&attr, detach);
23824 #endif
23825         if( status ) return status;
23826         status = pthread_create( &t, &attr, task, NULL );
23827 #if HAVE_PTHREADS < 7
23828         if( status < 0 ) status = errno;
23829 #endif
23830         if( status ) return status;
23831 #else
23832         /* Draft 4 pthreads */
23833         status = pthread_create( &t, pthread_attr_default, task, NULL );
23834         if( status ) return errno;
23835
23836         /* give thread a chance to complete */
23837         /* it should remain joinable and hence detachable */
23838         sleep( 1 );
23839
23840         status = pthread_detach( &t );
23841         if( status ) return errno;
23842 #endif
23843
23844 #ifdef HAVE_LINUX_THREADS
23845         pthread_kill_other_threads_np();
23846 #endif
23847
23848         return 0;
23849
23850   ;
23851   return 0;
23852 }
23853 _ACEOF
23854 rm -f conftest.$ac_objext conftest$ac_exeext
23855 if { (ac_try="$ac_link"
23856 case "(($ac_try" in
23857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858   *) ac_try_echo=$ac_try;;
23859 esac
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861   (eval "$ac_link") 2>conftest.er1
23862   ac_status=$?
23863   grep -v '^ *+' conftest.er1 >conftest.err
23864   rm -f conftest.er1
23865   cat conftest.err >&5
23866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867   (exit $ac_status); } && {
23868          test -z "$ac_c_werror_flag" ||
23869          test ! -s conftest.err
23870        } && test -s conftest$ac_exeext &&
23871        $as_test_x conftest$ac_exeext; then
23872   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23873 else
23874   echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23876
23877         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23878 fi
23879
23880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23881       conftest$ac_exeext conftest.$ac_ext
23882 else
23883   cat >conftest.$ac_ext <<_ACEOF
23884 /* confdefs.h.  */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h.  */
23889
23890 /* pthread test headers */
23891 #include <pthread.h>
23892 #if HAVE_PTHREADS < 7
23893 #include <errno.h>
23894 #endif
23895 #ifndef NULL
23896 #define NULL (void*)0
23897 #endif
23898
23899 static void *task(p)
23900         void *p;
23901 {
23902         return (void *) (p == NULL);
23903 }
23904
23905
23906 int main(argc, argv)
23907         int argc;
23908         char **argv;
23909 {
23910
23911         /* pthread test function */
23912 #ifndef PTHREAD_CREATE_DETACHED
23913 #define PTHREAD_CREATE_DETACHED 1
23914 #endif
23915         pthread_t t;
23916         int status;
23917         int detach = PTHREAD_CREATE_DETACHED;
23918
23919 #if HAVE_PTHREADS > 4
23920         /* Final pthreads */
23921         pthread_attr_t attr;
23922
23923         status = pthread_attr_init(&attr);
23924         if( status ) return status;
23925
23926 #if HAVE_PTHREADS < 7
23927         status = pthread_attr_setdetachstate(&attr, &detach);
23928         if( status < 0 ) status = errno;
23929 #else
23930         status = pthread_attr_setdetachstate(&attr, detach);
23931 #endif
23932         if( status ) return status;
23933         status = pthread_create( &t, &attr, task, NULL );
23934 #if HAVE_PTHREADS < 7
23935         if( status < 0 ) status = errno;
23936 #endif
23937         if( status ) return status;
23938 #else
23939         /* Draft 4 pthreads */
23940         status = pthread_create( &t, pthread_attr_default, task, NULL );
23941         if( status ) return errno;
23942
23943         /* give thread a chance to complete */
23944         /* it should remain joinable and hence detachable */
23945         sleep( 1 );
23946
23947         status = pthread_detach( &t );
23948         if( status ) return errno;
23949 #endif
23950
23951 #ifdef HAVE_LINUX_THREADS
23952         pthread_kill_other_threads_np();
23953 #endif
23954
23955         return 0;
23956
23957 }
23958
23959 _ACEOF
23960 rm -f conftest$ac_exeext
23961 if { (ac_try="$ac_link"
23962 case "(($ac_try" in
23963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964   *) ac_try_echo=$ac_try;;
23965 esac
23966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967   (eval "$ac_link") 2>&5
23968   ac_status=$?
23969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23971   { (case "(($ac_try" in
23972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973   *) ac_try_echo=$ac_try;;
23974 esac
23975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23976   (eval "$ac_try") 2>&5
23977   ac_status=$?
23978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979   (exit $ac_status); }; }; then
23980   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23981 else
23982   echo "$as_me: program exited with status $ac_status" >&5
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23985
23986 ( exit $ac_status )
23987 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23988 fi
23989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23990 fi
23991
23992
23993
23994                 # restore the LIBS
23995                 LIBS="$ol_LIBS"
23996
23997 fi
23998 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23999 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
24000
24001         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
24002                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
24003                 ol_link_threads=posix
24004         fi
24005 fi
24006
24007                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
24008 if test "$ol_link_threads" = no ; then
24009         # try -lpthreads -lmach -lexc
24010         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
24011 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
24012 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
24013   echo $ECHO_N "(cached) $ECHO_C" >&6
24014 else
24015
24016                 # save the flags
24017                 ol_LIBS="$LIBS"
24018                 LIBS="-lpthreads -lmach -lexc $LIBS"
24019
24020                 if test "$cross_compiling" = yes; then
24021   cat >conftest.$ac_ext <<_ACEOF
24022 /* confdefs.h.  */
24023 _ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h.  */
24027
24028 /* pthread test headers */
24029 #include <pthread.h>
24030 #if HAVE_PTHREADS < 7
24031 #include <errno.h>
24032 #endif
24033 #ifndef NULL
24034 #define NULL (void*)0
24035 #endif
24036
24037 static void *task(p)
24038         void *p;
24039 {
24040         return (void *) (p == NULL);
24041 }
24042
24043 int
24044 main ()
24045 {
24046
24047         /* pthread test function */
24048 #ifndef PTHREAD_CREATE_DETACHED
24049 #define PTHREAD_CREATE_DETACHED 1
24050 #endif
24051         pthread_t t;
24052         int status;
24053         int detach = PTHREAD_CREATE_DETACHED;
24054
24055 #if HAVE_PTHREADS > 4
24056         /* Final pthreads */
24057         pthread_attr_t attr;
24058
24059         status = pthread_attr_init(&attr);
24060         if( status ) return status;
24061
24062 #if HAVE_PTHREADS < 7
24063         status = pthread_attr_setdetachstate(&attr, &detach);
24064         if( status < 0 ) status = errno;
24065 #else
24066         status = pthread_attr_setdetachstate(&attr, detach);
24067 #endif
24068         if( status ) return status;
24069         status = pthread_create( &t, &attr, task, NULL );
24070 #if HAVE_PTHREADS < 7
24071         if( status < 0 ) status = errno;
24072 #endif
24073         if( status ) return status;
24074 #else
24075         /* Draft 4 pthreads */
24076         status = pthread_create( &t, pthread_attr_default, task, NULL );
24077         if( status ) return errno;
24078
24079         /* give thread a chance to complete */
24080         /* it should remain joinable and hence detachable */
24081         sleep( 1 );
24082
24083         status = pthread_detach( &t );
24084         if( status ) return errno;
24085 #endif
24086
24087 #ifdef HAVE_LINUX_THREADS
24088         pthread_kill_other_threads_np();
24089 #endif
24090
24091         return 0;
24092
24093   ;
24094   return 0;
24095 }
24096 _ACEOF
24097 rm -f conftest.$ac_objext conftest$ac_exeext
24098 if { (ac_try="$ac_link"
24099 case "(($ac_try" in
24100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24101   *) ac_try_echo=$ac_try;;
24102 esac
24103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24104   (eval "$ac_link") 2>conftest.er1
24105   ac_status=$?
24106   grep -v '^ *+' conftest.er1 >conftest.err
24107   rm -f conftest.er1
24108   cat conftest.err >&5
24109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110   (exit $ac_status); } && {
24111          test -z "$ac_c_werror_flag" ||
24112          test ! -s conftest.err
24113        } && test -s conftest$ac_exeext &&
24114        $as_test_x conftest$ac_exeext; then
24115   ol_cv_pthread_lpthreads_lmach_lexc=yes
24116 else
24117   echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24119
24120         ol_cv_pthread_lpthreads_lmach_lexc=no
24121 fi
24122
24123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24124       conftest$ac_exeext conftest.$ac_ext
24125 else
24126   cat >conftest.$ac_ext <<_ACEOF
24127 /* confdefs.h.  */
24128 _ACEOF
24129 cat confdefs.h >>conftest.$ac_ext
24130 cat >>conftest.$ac_ext <<_ACEOF
24131 /* end confdefs.h.  */
24132
24133 /* pthread test headers */
24134 #include <pthread.h>
24135 #if HAVE_PTHREADS < 7
24136 #include <errno.h>
24137 #endif
24138 #ifndef NULL
24139 #define NULL (void*)0
24140 #endif
24141
24142 static void *task(p)
24143         void *p;
24144 {
24145         return (void *) (p == NULL);
24146 }
24147
24148
24149 int main(argc, argv)
24150         int argc;
24151         char **argv;
24152 {
24153
24154         /* pthread test function */
24155 #ifndef PTHREAD_CREATE_DETACHED
24156 #define PTHREAD_CREATE_DETACHED 1
24157 #endif
24158         pthread_t t;
24159         int status;
24160         int detach = PTHREAD_CREATE_DETACHED;
24161
24162 #if HAVE_PTHREADS > 4
24163         /* Final pthreads */
24164         pthread_attr_t attr;
24165
24166         status = pthread_attr_init(&attr);
24167         if( status ) return status;
24168
24169 #if HAVE_PTHREADS < 7
24170         status = pthread_attr_setdetachstate(&attr, &detach);
24171         if( status < 0 ) status = errno;
24172 #else
24173         status = pthread_attr_setdetachstate(&attr, detach);
24174 #endif
24175         if( status ) return status;
24176         status = pthread_create( &t, &attr, task, NULL );
24177 #if HAVE_PTHREADS < 7
24178         if( status < 0 ) status = errno;
24179 #endif
24180         if( status ) return status;
24181 #else
24182         /* Draft 4 pthreads */
24183         status = pthread_create( &t, pthread_attr_default, task, NULL );
24184         if( status ) return errno;
24185
24186         /* give thread a chance to complete */
24187         /* it should remain joinable and hence detachable */
24188         sleep( 1 );
24189
24190         status = pthread_detach( &t );
24191         if( status ) return errno;
24192 #endif
24193
24194 #ifdef HAVE_LINUX_THREADS
24195         pthread_kill_other_threads_np();
24196 #endif
24197
24198         return 0;
24199
24200 }
24201
24202 _ACEOF
24203 rm -f conftest$ac_exeext
24204 if { (ac_try="$ac_link"
24205 case "(($ac_try" in
24206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24207   *) ac_try_echo=$ac_try;;
24208 esac
24209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24210   (eval "$ac_link") 2>&5
24211   ac_status=$?
24212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24214   { (case "(($ac_try" in
24215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24216   *) ac_try_echo=$ac_try;;
24217 esac
24218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24219   (eval "$ac_try") 2>&5
24220   ac_status=$?
24221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222   (exit $ac_status); }; }; then
24223   ol_cv_pthread_lpthreads_lmach_lexc=yes
24224 else
24225   echo "$as_me: program exited with status $ac_status" >&5
24226 echo "$as_me: failed program was:" >&5
24227 sed 's/^/| /' conftest.$ac_ext >&5
24228
24229 ( exit $ac_status )
24230 ol_cv_pthread_lpthreads_lmach_lexc=no
24231 fi
24232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24233 fi
24234
24235
24236
24237                 # restore the LIBS
24238                 LIBS="$ol_LIBS"
24239
24240 fi
24241 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24242 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24243
24244         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24245                 ol_link_pthreads="-lpthreads -lmach -lexc"
24246                 ol_link_threads=posix
24247         fi
24248 fi
24249
24250                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24251 if test "$ol_link_threads" = no ; then
24252         # try -lpthreads -lexc
24253         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24254 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24255 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24256   echo $ECHO_N "(cached) $ECHO_C" >&6
24257 else
24258
24259                 # save the flags
24260                 ol_LIBS="$LIBS"
24261                 LIBS="-lpthreads -lexc $LIBS"
24262
24263                 if test "$cross_compiling" = yes; then
24264   cat >conftest.$ac_ext <<_ACEOF
24265 /* confdefs.h.  */
24266 _ACEOF
24267 cat confdefs.h >>conftest.$ac_ext
24268 cat >>conftest.$ac_ext <<_ACEOF
24269 /* end confdefs.h.  */
24270
24271 /* pthread test headers */
24272 #include <pthread.h>
24273 #if HAVE_PTHREADS < 7
24274 #include <errno.h>
24275 #endif
24276 #ifndef NULL
24277 #define NULL (void*)0
24278 #endif
24279
24280 static void *task(p)
24281         void *p;
24282 {
24283         return (void *) (p == NULL);
24284 }
24285
24286 int
24287 main ()
24288 {
24289
24290         /* pthread test function */
24291 #ifndef PTHREAD_CREATE_DETACHED
24292 #define PTHREAD_CREATE_DETACHED 1
24293 #endif
24294         pthread_t t;
24295         int status;
24296         int detach = PTHREAD_CREATE_DETACHED;
24297
24298 #if HAVE_PTHREADS > 4
24299         /* Final pthreads */
24300         pthread_attr_t attr;
24301
24302         status = pthread_attr_init(&attr);
24303         if( status ) return status;
24304
24305 #if HAVE_PTHREADS < 7
24306         status = pthread_attr_setdetachstate(&attr, &detach);
24307         if( status < 0 ) status = errno;
24308 #else
24309         status = pthread_attr_setdetachstate(&attr, detach);
24310 #endif
24311         if( status ) return status;
24312         status = pthread_create( &t, &attr, task, NULL );
24313 #if HAVE_PTHREADS < 7
24314         if( status < 0 ) status = errno;
24315 #endif
24316         if( status ) return status;
24317 #else
24318         /* Draft 4 pthreads */
24319         status = pthread_create( &t, pthread_attr_default, task, NULL );
24320         if( status ) return errno;
24321
24322         /* give thread a chance to complete */
24323         /* it should remain joinable and hence detachable */
24324         sleep( 1 );
24325
24326         status = pthread_detach( &t );
24327         if( status ) return errno;
24328 #endif
24329
24330 #ifdef HAVE_LINUX_THREADS
24331         pthread_kill_other_threads_np();
24332 #endif
24333
24334         return 0;
24335
24336   ;
24337   return 0;
24338 }
24339 _ACEOF
24340 rm -f conftest.$ac_objext conftest$ac_exeext
24341 if { (ac_try="$ac_link"
24342 case "(($ac_try" in
24343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344   *) ac_try_echo=$ac_try;;
24345 esac
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347   (eval "$ac_link") 2>conftest.er1
24348   ac_status=$?
24349   grep -v '^ *+' conftest.er1 >conftest.err
24350   rm -f conftest.er1
24351   cat conftest.err >&5
24352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353   (exit $ac_status); } && {
24354          test -z "$ac_c_werror_flag" ||
24355          test ! -s conftest.err
24356        } && test -s conftest$ac_exeext &&
24357        $as_test_x conftest$ac_exeext; then
24358   ol_cv_pthread_lpthreads_lexc=yes
24359 else
24360   echo "$as_me: failed program was:" >&5
24361 sed 's/^/| /' conftest.$ac_ext >&5
24362
24363         ol_cv_pthread_lpthreads_lexc=no
24364 fi
24365
24366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24367       conftest$ac_exeext conftest.$ac_ext
24368 else
24369   cat >conftest.$ac_ext <<_ACEOF
24370 /* confdefs.h.  */
24371 _ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h.  */
24375
24376 /* pthread test headers */
24377 #include <pthread.h>
24378 #if HAVE_PTHREADS < 7
24379 #include <errno.h>
24380 #endif
24381 #ifndef NULL
24382 #define NULL (void*)0
24383 #endif
24384
24385 static void *task(p)
24386         void *p;
24387 {
24388         return (void *) (p == NULL);
24389 }
24390
24391
24392 int main(argc, argv)
24393         int argc;
24394         char **argv;
24395 {
24396
24397         /* pthread test function */
24398 #ifndef PTHREAD_CREATE_DETACHED
24399 #define PTHREAD_CREATE_DETACHED 1
24400 #endif
24401         pthread_t t;
24402         int status;
24403         int detach = PTHREAD_CREATE_DETACHED;
24404
24405 #if HAVE_PTHREADS > 4
24406         /* Final pthreads */
24407         pthread_attr_t attr;
24408
24409         status = pthread_attr_init(&attr);
24410         if( status ) return status;
24411
24412 #if HAVE_PTHREADS < 7
24413         status = pthread_attr_setdetachstate(&attr, &detach);
24414         if( status < 0 ) status = errno;
24415 #else
24416         status = pthread_attr_setdetachstate(&attr, detach);
24417 #endif
24418         if( status ) return status;
24419         status = pthread_create( &t, &attr, task, NULL );
24420 #if HAVE_PTHREADS < 7
24421         if( status < 0 ) status = errno;
24422 #endif
24423         if( status ) return status;
24424 #else
24425         /* Draft 4 pthreads */
24426         status = pthread_create( &t, pthread_attr_default, task, NULL );
24427         if( status ) return errno;
24428
24429         /* give thread a chance to complete */
24430         /* it should remain joinable and hence detachable */
24431         sleep( 1 );
24432
24433         status = pthread_detach( &t );
24434         if( status ) return errno;
24435 #endif
24436
24437 #ifdef HAVE_LINUX_THREADS
24438         pthread_kill_other_threads_np();
24439 #endif
24440
24441         return 0;
24442
24443 }
24444
24445 _ACEOF
24446 rm -f conftest$ac_exeext
24447 if { (ac_try="$ac_link"
24448 case "(($ac_try" in
24449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24450   *) ac_try_echo=$ac_try;;
24451 esac
24452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24453   (eval "$ac_link") 2>&5
24454   ac_status=$?
24455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24457   { (case "(($ac_try" in
24458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459   *) ac_try_echo=$ac_try;;
24460 esac
24461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24462   (eval "$ac_try") 2>&5
24463   ac_status=$?
24464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465   (exit $ac_status); }; }; then
24466   ol_cv_pthread_lpthreads_lexc=yes
24467 else
24468   echo "$as_me: program exited with status $ac_status" >&5
24469 echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24471
24472 ( exit $ac_status )
24473 ol_cv_pthread_lpthreads_lexc=no
24474 fi
24475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24476 fi
24477
24478
24479
24480                 # restore the LIBS
24481                 LIBS="$ol_LIBS"
24482
24483 fi
24484 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24485 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24486
24487         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24488                 ol_link_pthreads="-lpthreads -lexc"
24489                 ol_link_threads=posix
24490         fi
24491 fi
24492
24493
24494                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24495 if test "$ol_link_threads" = no ; then
24496         # try -lpthreads
24497         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24498 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24499 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24500   echo $ECHO_N "(cached) $ECHO_C" >&6
24501 else
24502
24503                 # save the flags
24504                 ol_LIBS="$LIBS"
24505                 LIBS="-lpthreads $LIBS"
24506
24507                 if test "$cross_compiling" = yes; then
24508   cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h.  */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h.  */
24514
24515 /* pthread test headers */
24516 #include <pthread.h>
24517 #if HAVE_PTHREADS < 7
24518 #include <errno.h>
24519 #endif
24520 #ifndef NULL
24521 #define NULL (void*)0
24522 #endif
24523
24524 static void *task(p)
24525         void *p;
24526 {
24527         return (void *) (p == NULL);
24528 }
24529
24530 int
24531 main ()
24532 {
24533
24534         /* pthread test function */
24535 #ifndef PTHREAD_CREATE_DETACHED
24536 #define PTHREAD_CREATE_DETACHED 1
24537 #endif
24538         pthread_t t;
24539         int status;
24540         int detach = PTHREAD_CREATE_DETACHED;
24541
24542 #if HAVE_PTHREADS > 4
24543         /* Final pthreads */
24544         pthread_attr_t attr;
24545
24546         status = pthread_attr_init(&attr);
24547         if( status ) return status;
24548
24549 #if HAVE_PTHREADS < 7
24550         status = pthread_attr_setdetachstate(&attr, &detach);
24551         if( status < 0 ) status = errno;
24552 #else
24553         status = pthread_attr_setdetachstate(&attr, detach);
24554 #endif
24555         if( status ) return status;
24556         status = pthread_create( &t, &attr, task, NULL );
24557 #if HAVE_PTHREADS < 7
24558         if( status < 0 ) status = errno;
24559 #endif
24560         if( status ) return status;
24561 #else
24562         /* Draft 4 pthreads */
24563         status = pthread_create( &t, pthread_attr_default, task, NULL );
24564         if( status ) return errno;
24565
24566         /* give thread a chance to complete */
24567         /* it should remain joinable and hence detachable */
24568         sleep( 1 );
24569
24570         status = pthread_detach( &t );
24571         if( status ) return errno;
24572 #endif
24573
24574 #ifdef HAVE_LINUX_THREADS
24575         pthread_kill_other_threads_np();
24576 #endif
24577
24578         return 0;
24579
24580   ;
24581   return 0;
24582 }
24583 _ACEOF
24584 rm -f conftest.$ac_objext conftest$ac_exeext
24585 if { (ac_try="$ac_link"
24586 case "(($ac_try" in
24587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588   *) ac_try_echo=$ac_try;;
24589 esac
24590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591   (eval "$ac_link") 2>conftest.er1
24592   ac_status=$?
24593   grep -v '^ *+' conftest.er1 >conftest.err
24594   rm -f conftest.er1
24595   cat conftest.err >&5
24596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597   (exit $ac_status); } && {
24598          test -z "$ac_c_werror_flag" ||
24599          test ! -s conftest.err
24600        } && test -s conftest$ac_exeext &&
24601        $as_test_x conftest$ac_exeext; then
24602   ol_cv_pthread_lib_lpthreads=yes
24603 else
24604   echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24606
24607         ol_cv_pthread_lib_lpthreads=no
24608 fi
24609
24610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24611       conftest$ac_exeext conftest.$ac_ext
24612 else
24613   cat >conftest.$ac_ext <<_ACEOF
24614 /* confdefs.h.  */
24615 _ACEOF
24616 cat confdefs.h >>conftest.$ac_ext
24617 cat >>conftest.$ac_ext <<_ACEOF
24618 /* end confdefs.h.  */
24619
24620 /* pthread test headers */
24621 #include <pthread.h>
24622 #if HAVE_PTHREADS < 7
24623 #include <errno.h>
24624 #endif
24625 #ifndef NULL
24626 #define NULL (void*)0
24627 #endif
24628
24629 static void *task(p)
24630         void *p;
24631 {
24632         return (void *) (p == NULL);
24633 }
24634
24635
24636 int main(argc, argv)
24637         int argc;
24638         char **argv;
24639 {
24640
24641         /* pthread test function */
24642 #ifndef PTHREAD_CREATE_DETACHED
24643 #define PTHREAD_CREATE_DETACHED 1
24644 #endif
24645         pthread_t t;
24646         int status;
24647         int detach = PTHREAD_CREATE_DETACHED;
24648
24649 #if HAVE_PTHREADS > 4
24650         /* Final pthreads */
24651         pthread_attr_t attr;
24652
24653         status = pthread_attr_init(&attr);
24654         if( status ) return status;
24655
24656 #if HAVE_PTHREADS < 7
24657         status = pthread_attr_setdetachstate(&attr, &detach);
24658         if( status < 0 ) status = errno;
24659 #else
24660         status = pthread_attr_setdetachstate(&attr, detach);
24661 #endif
24662         if( status ) return status;
24663         status = pthread_create( &t, &attr, task, NULL );
24664 #if HAVE_PTHREADS < 7
24665         if( status < 0 ) status = errno;
24666 #endif
24667         if( status ) return status;
24668 #else
24669         /* Draft 4 pthreads */
24670         status = pthread_create( &t, pthread_attr_default, task, NULL );
24671         if( status ) return errno;
24672
24673         /* give thread a chance to complete */
24674         /* it should remain joinable and hence detachable */
24675         sleep( 1 );
24676
24677         status = pthread_detach( &t );
24678         if( status ) return errno;
24679 #endif
24680
24681 #ifdef HAVE_LINUX_THREADS
24682         pthread_kill_other_threads_np();
24683 #endif
24684
24685         return 0;
24686
24687 }
24688
24689 _ACEOF
24690 rm -f conftest$ac_exeext
24691 if { (ac_try="$ac_link"
24692 case "(($ac_try" in
24693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24694   *) ac_try_echo=$ac_try;;
24695 esac
24696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24697   (eval "$ac_link") 2>&5
24698   ac_status=$?
24699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24701   { (case "(($ac_try" in
24702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703   *) ac_try_echo=$ac_try;;
24704 esac
24705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24706   (eval "$ac_try") 2>&5
24707   ac_status=$?
24708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709   (exit $ac_status); }; }; then
24710   ol_cv_pthread_lib_lpthreads=yes
24711 else
24712   echo "$as_me: program exited with status $ac_status" >&5
24713 echo "$as_me: failed program was:" >&5
24714 sed 's/^/| /' conftest.$ac_ext >&5
24715
24716 ( exit $ac_status )
24717 ol_cv_pthread_lib_lpthreads=no
24718 fi
24719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24720 fi
24721
24722
24723
24724                 # restore the LIBS
24725                 LIBS="$ol_LIBS"
24726
24727 fi
24728 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24729 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24730
24731         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24732                 ol_link_pthreads="-lpthreads"
24733                 ol_link_threads=posix
24734         fi
24735 fi
24736
24737
24738                 if test $ol_link_threads != no ; then
24739                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24740
24741                                                 save_CPPFLAGS="$CPPFLAGS"
24742                         save_LIBS="$LIBS"
24743                         LIBS="$LTHREAD_LIBS $LIBS"
24744
24745
24746
24747
24748 for ac_func in sched_yield pthread_yield thr_yield
24749 do
24750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24754   echo $ECHO_N "(cached) $ECHO_C" >&6
24755 else
24756   cat >conftest.$ac_ext <<_ACEOF
24757 /* confdefs.h.  */
24758 _ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h.  */
24762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24764 #define $ac_func innocuous_$ac_func
24765
24766 /* System header to define __stub macros and hopefully few prototypes,
24767     which can conflict with char $ac_func (); below.
24768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24769     <limits.h> exists even on freestanding compilers.  */
24770
24771 #ifdef __STDC__
24772 # include <limits.h>
24773 #else
24774 # include <assert.h>
24775 #endif
24776
24777 #undef $ac_func
24778
24779 /* Override any GCC internal prototype to avoid an error.
24780    Use char because int might match the return type of a GCC
24781    builtin and then its argument prototype would still apply.  */
24782 #ifdef __cplusplus
24783 extern "C"
24784 #endif
24785 char $ac_func ();
24786 /* The GNU C library defines this for functions which it implements
24787     to always fail with ENOSYS.  Some functions are actually named
24788     something starting with __ and the normal name is an alias.  */
24789 #if defined __stub_$ac_func || defined __stub___$ac_func
24790 choke me
24791 #endif
24792
24793 int
24794 main ()
24795 {
24796 return $ac_func ();
24797   ;
24798   return 0;
24799 }
24800 _ACEOF
24801 rm -f conftest.$ac_objext conftest$ac_exeext
24802 if { (ac_try="$ac_link"
24803 case "(($ac_try" in
24804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805   *) ac_try_echo=$ac_try;;
24806 esac
24807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808   (eval "$ac_link") 2>conftest.er1
24809   ac_status=$?
24810   grep -v '^ *+' conftest.er1 >conftest.err
24811   rm -f conftest.er1
24812   cat conftest.err >&5
24813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814   (exit $ac_status); } && {
24815          test -z "$ac_c_werror_flag" ||
24816          test ! -s conftest.err
24817        } && test -s conftest$ac_exeext &&
24818        $as_test_x conftest$ac_exeext; then
24819   eval "$as_ac_var=yes"
24820 else
24821   echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24823
24824         eval "$as_ac_var=no"
24825 fi
24826
24827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24828       conftest$ac_exeext conftest.$ac_ext
24829 fi
24830 ac_res=`eval echo '${'$as_ac_var'}'`
24831                { echo "$as_me:$LINENO: result: $ac_res" >&5
24832 echo "${ECHO_T}$ac_res" >&6; }
24833 if test `eval echo '${'$as_ac_var'}'` = yes; then
24834   cat >>confdefs.h <<_ACEOF
24835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24836 _ACEOF
24837
24838 fi
24839 done
24840
24841
24842                         if test $ac_cv_func_sched_yield = no &&
24843                            test $ac_cv_func_pthread_yield = no &&
24844                            test $ac_cv_func_thr_yield = no ; then
24845                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24846 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24847 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24848   echo $ECHO_N "(cached) $ECHO_C" >&6
24849 else
24850   ac_check_lib_save_LIBS=$LIBS
24851 LIBS="-lrt  $LIBS"
24852 cat >conftest.$ac_ext <<_ACEOF
24853 /* confdefs.h.  */
24854 _ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h.  */
24858
24859 /* Override any GCC internal prototype to avoid an error.
24860    Use char because int might match the return type of a GCC
24861    builtin and then its argument prototype would still apply.  */
24862 #ifdef __cplusplus
24863 extern "C"
24864 #endif
24865 char sched_yield ();
24866 int
24867 main ()
24868 {
24869 return sched_yield ();
24870   ;
24871   return 0;
24872 }
24873 _ACEOF
24874 rm -f conftest.$ac_objext conftest$ac_exeext
24875 if { (ac_try="$ac_link"
24876 case "(($ac_try" in
24877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24878   *) ac_try_echo=$ac_try;;
24879 esac
24880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24881   (eval "$ac_link") 2>conftest.er1
24882   ac_status=$?
24883   grep -v '^ *+' conftest.er1 >conftest.err
24884   rm -f conftest.er1
24885   cat conftest.err >&5
24886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887   (exit $ac_status); } && {
24888          test -z "$ac_c_werror_flag" ||
24889          test ! -s conftest.err
24890        } && test -s conftest$ac_exeext &&
24891        $as_test_x conftest$ac_exeext; then
24892   ac_cv_lib_rt_sched_yield=yes
24893 else
24894   echo "$as_me: failed program was:" >&5
24895 sed 's/^/| /' conftest.$ac_ext >&5
24896
24897         ac_cv_lib_rt_sched_yield=no
24898 fi
24899
24900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24901       conftest$ac_exeext conftest.$ac_ext
24902 LIBS=$ac_check_lib_save_LIBS
24903 fi
24904 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24905 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24906 if test $ac_cv_lib_rt_sched_yield = yes; then
24907   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24908
24909 cat >>confdefs.h <<\_ACEOF
24910 #define HAVE_SCHED_YIELD 1
24911 _ACEOF
24912
24913                                         ac_cv_func_sched_yield=yes
24914 else
24915   ac_cv_func_sched_yield=no
24916 fi
24917
24918                         fi
24919                         if test $ac_cv_func_sched_yield = no &&
24920                            test $ac_cv_func_pthread_yield = no &&
24921                            test "$ac_cv_func_thr_yield" = no ; then
24922                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24923 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24924                         fi
24925
24926
24927 for ac_func in pthread_kill
24928 do
24929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24933   echo $ECHO_N "(cached) $ECHO_C" >&6
24934 else
24935   cat >conftest.$ac_ext <<_ACEOF
24936 /* confdefs.h.  */
24937 _ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h.  */
24941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24943 #define $ac_func innocuous_$ac_func
24944
24945 /* System header to define __stub macros and hopefully few prototypes,
24946     which can conflict with char $ac_func (); below.
24947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24948     <limits.h> exists even on freestanding compilers.  */
24949
24950 #ifdef __STDC__
24951 # include <limits.h>
24952 #else
24953 # include <assert.h>
24954 #endif
24955
24956 #undef $ac_func
24957
24958 /* Override any GCC internal prototype to avoid an error.
24959    Use char because int might match the return type of a GCC
24960    builtin and then its argument prototype would still apply.  */
24961 #ifdef __cplusplus
24962 extern "C"
24963 #endif
24964 char $ac_func ();
24965 /* The GNU C library defines this for functions which it implements
24966     to always fail with ENOSYS.  Some functions are actually named
24967     something starting with __ and the normal name is an alias.  */
24968 #if defined __stub_$ac_func || defined __stub___$ac_func
24969 choke me
24970 #endif
24971
24972 int
24973 main ()
24974 {
24975 return $ac_func ();
24976   ;
24977   return 0;
24978 }
24979 _ACEOF
24980 rm -f conftest.$ac_objext conftest$ac_exeext
24981 if { (ac_try="$ac_link"
24982 case "(($ac_try" in
24983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984   *) ac_try_echo=$ac_try;;
24985 esac
24986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24987   (eval "$ac_link") 2>conftest.er1
24988   ac_status=$?
24989   grep -v '^ *+' conftest.er1 >conftest.err
24990   rm -f conftest.er1
24991   cat conftest.err >&5
24992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993   (exit $ac_status); } && {
24994          test -z "$ac_c_werror_flag" ||
24995          test ! -s conftest.err
24996        } && test -s conftest$ac_exeext &&
24997        $as_test_x conftest$ac_exeext; then
24998   eval "$as_ac_var=yes"
24999 else
25000   echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25002
25003         eval "$as_ac_var=no"
25004 fi
25005
25006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25007       conftest$ac_exeext conftest.$ac_ext
25008 fi
25009 ac_res=`eval echo '${'$as_ac_var'}'`
25010                { echo "$as_me:$LINENO: result: $ac_res" >&5
25011 echo "${ECHO_T}$ac_res" >&6; }
25012 if test `eval echo '${'$as_ac_var'}'` = yes; then
25013   cat >>confdefs.h <<_ACEOF
25014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25015 _ACEOF
25016
25017 fi
25018 done
25019
25020
25021                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
25022 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
25023 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
25024   echo $ECHO_N "(cached) $ECHO_C" >&6
25025 else
25026
25027                                                                 cat >conftest.$ac_ext <<_ACEOF
25028 /* confdefs.h.  */
25029 _ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h.  */
25033
25034 #include <pthread.h>
25035 pthread_rwlock_t rwlock;
25036
25037 int
25038 main ()
25039 {
25040 pthread_rwlock_destroy(&rwlock);
25041   ;
25042   return 0;
25043 }
25044 _ACEOF
25045 rm -f conftest.$ac_objext conftest$ac_exeext
25046 if { (ac_try="$ac_link"
25047 case "(($ac_try" in
25048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049   *) ac_try_echo=$ac_try;;
25050 esac
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052   (eval "$ac_link") 2>conftest.er1
25053   ac_status=$?
25054   grep -v '^ *+' conftest.er1 >conftest.err
25055   rm -f conftest.er1
25056   cat conftest.err >&5
25057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); } && {
25059          test -z "$ac_c_werror_flag" ||
25060          test ! -s conftest.err
25061        } && test -s conftest$ac_exeext &&
25062        $as_test_x conftest$ac_exeext; then
25063   ol_cv_func_pthread_rwlock_destroy=yes
25064 else
25065   echo "$as_me: failed program was:" >&5
25066 sed 's/^/| /' conftest.$ac_ext >&5
25067
25068         ol_cv_func_pthread_rwlock_destroy=no
25069 fi
25070
25071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25072       conftest$ac_exeext conftest.$ac_ext
25073
25074 fi
25075 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
25076 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
25077                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
25078
25079 cat >>confdefs.h <<\_ACEOF
25080 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
25081 _ACEOF
25082
25083                         fi
25084
25085                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
25086 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
25087 if test "${ol_cv_func_pthread_detach+set}" = set; then
25088   echo $ECHO_N "(cached) $ECHO_C" >&6
25089 else
25090
25091                                                                 cat >conftest.$ac_ext <<_ACEOF
25092 /* confdefs.h.  */
25093 _ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h.  */
25097
25098 #include <pthread.h>
25099 #ifndef NULL
25100 #define NULL (void*)0
25101 #endif
25102
25103 int
25104 main ()
25105 {
25106 pthread_detach(NULL);
25107   ;
25108   return 0;
25109 }
25110 _ACEOF
25111 rm -f conftest.$ac_objext conftest$ac_exeext
25112 if { (ac_try="$ac_link"
25113 case "(($ac_try" in
25114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25115   *) ac_try_echo=$ac_try;;
25116 esac
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118   (eval "$ac_link") 2>conftest.er1
25119   ac_status=$?
25120   grep -v '^ *+' conftest.er1 >conftest.err
25121   rm -f conftest.er1
25122   cat conftest.err >&5
25123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124   (exit $ac_status); } && {
25125          test -z "$ac_c_werror_flag" ||
25126          test ! -s conftest.err
25127        } && test -s conftest$ac_exeext &&
25128        $as_test_x conftest$ac_exeext; then
25129   ol_cv_func_pthread_detach=yes
25130 else
25131   echo "$as_me: failed program was:" >&5
25132 sed 's/^/| /' conftest.$ac_ext >&5
25133
25134         ol_cv_func_pthread_detach=no
25135 fi
25136
25137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25138       conftest$ac_exeext conftest.$ac_ext
25139
25140 fi
25141 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
25142 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
25143
25144                         if test $ol_cv_func_pthread_detach = no ; then
25145                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
25146 echo "$as_me: error: could not locate pthread_detach()" >&2;}
25147    { (exit 1); exit 1; }; }
25148                         fi
25149
25150
25151 cat >>confdefs.h <<\_ACEOF
25152 #define HAVE_PTHREAD_DETACH 1
25153 _ACEOF
25154
25155
25156
25157
25158
25159
25160 for ac_func in \
25161                                 pthread_setconcurrency \
25162                                 pthread_getconcurrency \
25163                                 thr_setconcurrency \
25164                                 thr_getconcurrency \
25165
25166 do
25167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25171   echo $ECHO_N "(cached) $ECHO_C" >&6
25172 else
25173   cat >conftest.$ac_ext <<_ACEOF
25174 /* confdefs.h.  */
25175 _ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h.  */
25179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25181 #define $ac_func innocuous_$ac_func
25182
25183 /* System header to define __stub macros and hopefully few prototypes,
25184     which can conflict with char $ac_func (); below.
25185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25186     <limits.h> exists even on freestanding compilers.  */
25187
25188 #ifdef __STDC__
25189 # include <limits.h>
25190 #else
25191 # include <assert.h>
25192 #endif
25193
25194 #undef $ac_func
25195
25196 /* Override any GCC internal prototype to avoid an error.
25197    Use char because int might match the return type of a GCC
25198    builtin and then its argument prototype would still apply.  */
25199 #ifdef __cplusplus
25200 extern "C"
25201 #endif
25202 char $ac_func ();
25203 /* The GNU C library defines this for functions which it implements
25204     to always fail with ENOSYS.  Some functions are actually named
25205     something starting with __ and the normal name is an alias.  */
25206 #if defined __stub_$ac_func || defined __stub___$ac_func
25207 choke me
25208 #endif
25209
25210 int
25211 main ()
25212 {
25213 return $ac_func ();
25214   ;
25215   return 0;
25216 }
25217 _ACEOF
25218 rm -f conftest.$ac_objext conftest$ac_exeext
25219 if { (ac_try="$ac_link"
25220 case "(($ac_try" in
25221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25222   *) ac_try_echo=$ac_try;;
25223 esac
25224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25225   (eval "$ac_link") 2>conftest.er1
25226   ac_status=$?
25227   grep -v '^ *+' conftest.er1 >conftest.err
25228   rm -f conftest.er1
25229   cat conftest.err >&5
25230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231   (exit $ac_status); } && {
25232          test -z "$ac_c_werror_flag" ||
25233          test ! -s conftest.err
25234        } && test -s conftest$ac_exeext &&
25235        $as_test_x conftest$ac_exeext; then
25236   eval "$as_ac_var=yes"
25237 else
25238   echo "$as_me: failed program was:" >&5
25239 sed 's/^/| /' conftest.$ac_ext >&5
25240
25241         eval "$as_ac_var=no"
25242 fi
25243
25244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25245       conftest$ac_exeext conftest.$ac_ext
25246 fi
25247 ac_res=`eval echo '${'$as_ac_var'}'`
25248                { echo "$as_me:$LINENO: result: $ac_res" >&5
25249 echo "${ECHO_T}$ac_res" >&6; }
25250 if test `eval echo '${'$as_ac_var'}'` = yes; then
25251   cat >>confdefs.h <<_ACEOF
25252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25253 _ACEOF
25254
25255 fi
25256 done
25257
25258
25259
25260
25261 for ac_func in pthread_kill_other_threads_np
25262 do
25263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25267   echo $ECHO_N "(cached) $ECHO_C" >&6
25268 else
25269   cat >conftest.$ac_ext <<_ACEOF
25270 /* confdefs.h.  */
25271 _ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h.  */
25275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25277 #define $ac_func innocuous_$ac_func
25278
25279 /* System header to define __stub macros and hopefully few prototypes,
25280     which can conflict with char $ac_func (); below.
25281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25282     <limits.h> exists even on freestanding compilers.  */
25283
25284 #ifdef __STDC__
25285 # include <limits.h>
25286 #else
25287 # include <assert.h>
25288 #endif
25289
25290 #undef $ac_func
25291
25292 /* Override any GCC internal prototype to avoid an error.
25293    Use char because int might match the return type of a GCC
25294    builtin and then its argument prototype would still apply.  */
25295 #ifdef __cplusplus
25296 extern "C"
25297 #endif
25298 char $ac_func ();
25299 /* The GNU C library defines this for functions which it implements
25300     to always fail with ENOSYS.  Some functions are actually named
25301     something starting with __ and the normal name is an alias.  */
25302 #if defined __stub_$ac_func || defined __stub___$ac_func
25303 choke me
25304 #endif
25305
25306 int
25307 main ()
25308 {
25309 return $ac_func ();
25310   ;
25311   return 0;
25312 }
25313 _ACEOF
25314 rm -f conftest.$ac_objext conftest$ac_exeext
25315 if { (ac_try="$ac_link"
25316 case "(($ac_try" in
25317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318   *) ac_try_echo=$ac_try;;
25319 esac
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321   (eval "$ac_link") 2>conftest.er1
25322   ac_status=$?
25323   grep -v '^ *+' conftest.er1 >conftest.err
25324   rm -f conftest.er1
25325   cat conftest.err >&5
25326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327   (exit $ac_status); } && {
25328          test -z "$ac_c_werror_flag" ||
25329          test ! -s conftest.err
25330        } && test -s conftest$ac_exeext &&
25331        $as_test_x conftest$ac_exeext; then
25332   eval "$as_ac_var=yes"
25333 else
25334   echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25336
25337         eval "$as_ac_var=no"
25338 fi
25339
25340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25341       conftest$ac_exeext conftest.$ac_ext
25342 fi
25343 ac_res=`eval echo '${'$as_ac_var'}'`
25344                { echo "$as_me:$LINENO: result: $ac_res" >&5
25345 echo "${ECHO_T}$ac_res" >&6; }
25346 if test `eval echo '${'$as_ac_var'}'` = yes; then
25347   cat >>confdefs.h <<_ACEOF
25348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25349 _ACEOF
25350
25351 fi
25352 done
25353
25354         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25355 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25356 if test "${ol_cv_sys_linux_threads+set}" = set; then
25357   echo $ECHO_N "(cached) $ECHO_C" >&6
25358 else
25359   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25360 fi
25361 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25362 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25363
25364
25365
25366
25367         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25368 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25369 if test "${ol_cv_linux_threads+set}" = set; then
25370   echo $ECHO_N "(cached) $ECHO_C" >&6
25371 else
25372
25373                 if test $ol_cv_header_linux_threads = yes &&
25374                    test $ol_cv_sys_linux_threads = yes; then
25375                         ol_cv_linux_threads=yes
25376                 elif test $ol_cv_header_linux_threads = no &&
25377                      test $ol_cv_sys_linux_threads = no; then
25378                         ol_cv_linux_threads=no
25379                 else
25380                         ol_cv_linux_threads=error
25381                 fi
25382
25383 fi
25384 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25385 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25386
25387
25388                         if test $ol_cv_linux_threads = error; then
25389                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25390 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25391    { (exit 1); exit 1; }; };
25392                         fi
25393
25394                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25395 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25396 if test "${ol_cv_pthread_create_works+set}" = set; then
25397   echo $ECHO_N "(cached) $ECHO_C" >&6
25398 else
25399
25400                         if test "$cross_compiling" = yes; then
25401                                 ol_cv_pthread_create_works=yes
25402 else
25403   cat >conftest.$ac_ext <<_ACEOF
25404 /* confdefs.h.  */
25405 _ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h.  */
25409
25410 /* pthread test headers */
25411 #include <pthread.h>
25412 #if HAVE_PTHREADS < 7
25413 #include <errno.h>
25414 #endif
25415 #ifndef NULL
25416 #define NULL (void*)0
25417 #endif
25418
25419 static void *task(p)
25420         void *p;
25421 {
25422         return (void *) (p == NULL);
25423 }
25424
25425
25426 int main(argc, argv)
25427         int argc;
25428         char **argv;
25429 {
25430
25431         /* pthread test function */
25432 #ifndef PTHREAD_CREATE_DETACHED
25433 #define PTHREAD_CREATE_DETACHED 1
25434 #endif
25435         pthread_t t;
25436         int status;
25437         int detach = PTHREAD_CREATE_DETACHED;
25438
25439 #if HAVE_PTHREADS > 4
25440         /* Final pthreads */
25441         pthread_attr_t attr;
25442
25443         status = pthread_attr_init(&attr);
25444         if( status ) return status;
25445
25446 #if HAVE_PTHREADS < 7
25447         status = pthread_attr_setdetachstate(&attr, &detach);
25448         if( status < 0 ) status = errno;
25449 #else
25450         status = pthread_attr_setdetachstate(&attr, detach);
25451 #endif
25452         if( status ) return status;
25453         status = pthread_create( &t, &attr, task, NULL );
25454 #if HAVE_PTHREADS < 7
25455         if( status < 0 ) status = errno;
25456 #endif
25457         if( status ) return status;
25458 #else
25459         /* Draft 4 pthreads */
25460         status = pthread_create( &t, pthread_attr_default, task, NULL );
25461         if( status ) return errno;
25462
25463         /* give thread a chance to complete */
25464         /* it should remain joinable and hence detachable */
25465         sleep( 1 );
25466
25467         status = pthread_detach( &t );
25468         if( status ) return errno;
25469 #endif
25470
25471 #ifdef HAVE_LINUX_THREADS
25472         pthread_kill_other_threads_np();
25473 #endif
25474
25475         return 0;
25476
25477 }
25478
25479 _ACEOF
25480 rm -f conftest$ac_exeext
25481 if { (ac_try="$ac_link"
25482 case "(($ac_try" in
25483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484   *) ac_try_echo=$ac_try;;
25485 esac
25486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25487   (eval "$ac_link") 2>&5
25488   ac_status=$?
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25491   { (case "(($ac_try" in
25492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493   *) ac_try_echo=$ac_try;;
25494 esac
25495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25496   (eval "$ac_try") 2>&5
25497   ac_status=$?
25498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499   (exit $ac_status); }; }; then
25500   ol_cv_pthread_create_works=yes
25501 else
25502   echo "$as_me: program exited with status $ac_status" >&5
25503 echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25505
25506 ( exit $ac_status )
25507 ol_cv_pthread_create_works=no
25508 fi
25509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25510 fi
25511
25512
25513 fi
25514 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25515 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25516
25517                         if test $ol_cv_pthread_create_works = no ; then
25518                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25519 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25520    { (exit 1); exit 1; }; }
25521                         fi
25522
25523                         ol_replace_broken_yield=no
25524
25525                         if test $ol_replace_broken_yield = yes ; then
25526
25527 cat >>confdefs.h <<\_ACEOF
25528 #define REPLACE_BROKEN_YIELD 1
25529 _ACEOF
25530
25531                         fi
25532
25533                                                 if test $ol_with_yielding_select = auto ; then
25534                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25535 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25536 if test "${ol_cv_pthread_select_yields+set}" = set; then
25537   echo $ECHO_N "(cached) $ECHO_C" >&6
25538 else
25539
25540                                 if test "$cross_compiling" = yes; then
25541   ol_cv_pthread_select_yields=cross
25542 else
25543   cat >conftest.$ac_ext <<_ACEOF
25544 /* confdefs.h.  */
25545 _ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h.  */
25549
25550 #include <sys/types.h>
25551 #include <sys/time.h>
25552 #include <unistd.h>
25553 #include <pthread.h>
25554 #ifndef NULL
25555 #define NULL (void*) 0
25556 #endif
25557
25558 static int fildes[2];
25559
25560 static void *task(p)
25561         void *p;
25562 {
25563         int i;
25564         struct timeval tv;
25565
25566         fd_set rfds;
25567
25568         tv.tv_sec=10;
25569         tv.tv_usec=0;
25570
25571         FD_ZERO(&rfds);
25572         FD_SET(fildes[0], &rfds);
25573
25574         /* we're not interested in any fds */
25575         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25576
25577         if(i < 0) {
25578                 perror("select");
25579                 exit(10);
25580         }
25581
25582         exit(0); /* if we exit here, the select blocked the whole process */
25583 }
25584
25585 int main(argc, argv)
25586         int argc;
25587         char **argv;
25588 {
25589         pthread_t t;
25590
25591         /* create a pipe to select */
25592         if(pipe(&fildes[0])) {
25593                 perror("select");
25594                 exit(1);
25595         }
25596
25597 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25598         (void) pthread_setconcurrency(2);
25599 #else
25600 #ifdef HAVE_THR_SETCONCURRENCY
25601         /* Set Solaris LWP concurrency to 2 */
25602         thr_setconcurrency(2);
25603 #endif
25604 #endif
25605
25606 #if HAVE_PTHREADS < 6
25607         pthread_create(&t, pthread_attr_default, task, NULL);
25608 #else
25609         pthread_create(&t, NULL, task, NULL);
25610 #endif
25611
25612         /* make sure task runs first */
25613 #ifdef HAVE_THR_YIELD
25614         thr_yield();
25615 #elif defined( HAVE_SCHED_YIELD )
25616         sched_yield();
25617 #elif defined( HAVE_PTHREAD_YIELD )
25618         pthread_yield();
25619 #endif
25620
25621         exit(2);
25622 }
25623 _ACEOF
25624 rm -f conftest$ac_exeext
25625 if { (ac_try="$ac_link"
25626 case "(($ac_try" in
25627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25628   *) ac_try_echo=$ac_try;;
25629 esac
25630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25631   (eval "$ac_link") 2>&5
25632   ac_status=$?
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25635   { (case "(($ac_try" in
25636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637   *) ac_try_echo=$ac_try;;
25638 esac
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640   (eval "$ac_try") 2>&5
25641   ac_status=$?
25642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643   (exit $ac_status); }; }; then
25644   ol_cv_pthread_select_yields=no
25645 else
25646   echo "$as_me: program exited with status $ac_status" >&5
25647 echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25649
25650 ( exit $ac_status )
25651 ol_cv_pthread_select_yields=yes
25652 fi
25653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25654 fi
25655
25656
25657 fi
25658 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25659 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25660
25661                                 if test $ol_cv_pthread_select_yields = cross ; then
25662                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25663 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25664    { (exit 1); exit 1; }; }
25665                                 fi
25666
25667                                 if test $ol_cv_pthread_select_yields = yes ; then
25668                                         ol_with_yielding_select=yes
25669                                 fi
25670                         fi
25671
25672                                                 CPPFLAGS="$save_CPPFLAGS"
25673                         LIBS="$save_LIBS"
25674                 else
25675                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25676 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25677    { (exit 1); exit 1; }; }
25678                 fi
25679         fi
25680
25681         if test $ol_with_threads = posix ; then
25682                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25683 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25684    { (exit 1); exit 1; }; }
25685         fi
25686         ;;
25687 esac
25688
25689 case $ol_with_threads in auto | yes | mach)
25690
25691
25692
25693 for ac_header in mach/cthreads.h cthreads.h
25694 do
25695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25697   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25700   echo $ECHO_N "(cached) $ECHO_C" >&6
25701 fi
25702 ac_res=`eval echo '${'$as_ac_Header'}'`
25703                { echo "$as_me:$LINENO: result: $ac_res" >&5
25704 echo "${ECHO_T}$ac_res" >&6; }
25705 else
25706   # Is the header compilable?
25707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25709 cat >conftest.$ac_ext <<_ACEOF
25710 /* confdefs.h.  */
25711 _ACEOF
25712 cat confdefs.h >>conftest.$ac_ext
25713 cat >>conftest.$ac_ext <<_ACEOF
25714 /* end confdefs.h.  */
25715 $ac_includes_default
25716 #include <$ac_header>
25717 _ACEOF
25718 rm -f conftest.$ac_objext
25719 if { (ac_try="$ac_compile"
25720 case "(($ac_try" in
25721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25722   *) ac_try_echo=$ac_try;;
25723 esac
25724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25725   (eval "$ac_compile") 2>conftest.er1
25726   ac_status=$?
25727   grep -v '^ *+' conftest.er1 >conftest.err
25728   rm -f conftest.er1
25729   cat conftest.err >&5
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); } && {
25732          test -z "$ac_c_werror_flag" ||
25733          test ! -s conftest.err
25734        } && test -s conftest.$ac_objext; then
25735   ac_header_compiler=yes
25736 else
25737   echo "$as_me: failed program was:" >&5
25738 sed 's/^/| /' conftest.$ac_ext >&5
25739
25740         ac_header_compiler=no
25741 fi
25742
25743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25745 echo "${ECHO_T}$ac_header_compiler" >&6; }
25746
25747 # Is the header present?
25748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25750 cat >conftest.$ac_ext <<_ACEOF
25751 /* confdefs.h.  */
25752 _ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h.  */
25756 #include <$ac_header>
25757 _ACEOF
25758 if { (ac_try="$ac_cpp conftest.$ac_ext"
25759 case "(($ac_try" in
25760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25761   *) ac_try_echo=$ac_try;;
25762 esac
25763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25765   ac_status=$?
25766   grep -v '^ *+' conftest.er1 >conftest.err
25767   rm -f conftest.er1
25768   cat conftest.err >&5
25769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770   (exit $ac_status); } >/dev/null && {
25771          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25772          test ! -s conftest.err
25773        }; then
25774   ac_header_preproc=yes
25775 else
25776   echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25778
25779   ac_header_preproc=no
25780 fi
25781
25782 rm -f conftest.err conftest.$ac_ext
25783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25784 echo "${ECHO_T}$ac_header_preproc" >&6; }
25785
25786 # So?  What about this header?
25787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25788   yes:no: )
25789     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25793     ac_header_preproc=yes
25794     ;;
25795   no:yes:* )
25796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25798     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25799 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25800     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25802     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25803 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25806     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25808     ( cat <<\_ASBOX
25809 ## --------------------------------------------- ##
25810 ## Report this to <http://www.openldap.org/its/> ##
25811 ## --------------------------------------------- ##
25812 _ASBOX
25813      ) | sed "s/^/$as_me: WARNING:     /" >&2
25814     ;;
25815 esac
25816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25819   echo $ECHO_N "(cached) $ECHO_C" >&6
25820 else
25821   eval "$as_ac_Header=\$ac_header_preproc"
25822 fi
25823 ac_res=`eval echo '${'$as_ac_Header'}'`
25824                { echo "$as_me:$LINENO: result: $ac_res" >&5
25825 echo "${ECHO_T}$ac_res" >&6; }
25826
25827 fi
25828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25829   cat >>confdefs.h <<_ACEOF
25830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25831 _ACEOF
25832
25833 fi
25834
25835 done
25836
25837         if test $ac_cv_header_mach_cthreads_h = yes ; then
25838                 ol_with_threads=found
25839
25840                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25841 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25842 if test "${ac_cv_func_cthread_fork+set}" = set; then
25843   echo $ECHO_N "(cached) $ECHO_C" >&6
25844 else
25845   cat >conftest.$ac_ext <<_ACEOF
25846 /* confdefs.h.  */
25847 _ACEOF
25848 cat confdefs.h >>conftest.$ac_ext
25849 cat >>conftest.$ac_ext <<_ACEOF
25850 /* end confdefs.h.  */
25851 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25853 #define cthread_fork innocuous_cthread_fork
25854
25855 /* System header to define __stub macros and hopefully few prototypes,
25856     which can conflict with char cthread_fork (); below.
25857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25858     <limits.h> exists even on freestanding compilers.  */
25859
25860 #ifdef __STDC__
25861 # include <limits.h>
25862 #else
25863 # include <assert.h>
25864 #endif
25865
25866 #undef cthread_fork
25867
25868 /* Override any GCC internal prototype to avoid an error.
25869    Use char because int might match the return type of a GCC
25870    builtin and then its argument prototype would still apply.  */
25871 #ifdef __cplusplus
25872 extern "C"
25873 #endif
25874 char cthread_fork ();
25875 /* The GNU C library defines this for functions which it implements
25876     to always fail with ENOSYS.  Some functions are actually named
25877     something starting with __ and the normal name is an alias.  */
25878 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25879 choke me
25880 #endif
25881
25882 int
25883 main ()
25884 {
25885 return cthread_fork ();
25886   ;
25887   return 0;
25888 }
25889 _ACEOF
25890 rm -f conftest.$ac_objext conftest$ac_exeext
25891 if { (ac_try="$ac_link"
25892 case "(($ac_try" in
25893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25894   *) ac_try_echo=$ac_try;;
25895 esac
25896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25897   (eval "$ac_link") 2>conftest.er1
25898   ac_status=$?
25899   grep -v '^ *+' conftest.er1 >conftest.err
25900   rm -f conftest.er1
25901   cat conftest.err >&5
25902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903   (exit $ac_status); } && {
25904          test -z "$ac_c_werror_flag" ||
25905          test ! -s conftest.err
25906        } && test -s conftest$ac_exeext &&
25907        $as_test_x conftest$ac_exeext; then
25908   ac_cv_func_cthread_fork=yes
25909 else
25910   echo "$as_me: failed program was:" >&5
25911 sed 's/^/| /' conftest.$ac_ext >&5
25912
25913         ac_cv_func_cthread_fork=no
25914 fi
25915
25916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25917       conftest$ac_exeext conftest.$ac_ext
25918 fi
25919 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25920 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25921 if test $ac_cv_func_cthread_fork = yes; then
25922   ol_link_threads=yes
25923 fi
25924
25925
25926                 if test $ol_link_threads = no ; then
25927                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25928 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25929 if test "${ol_cv_cthread_all_load+set}" = set; then
25930   echo $ECHO_N "(cached) $ECHO_C" >&6
25931 else
25932
25933                                                                 save_LIBS="$LIBS"
25934                                 LIBS="-all_load $LIBS"
25935                                 cat >conftest.$ac_ext <<_ACEOF
25936 /* confdefs.h.  */
25937 _ACEOF
25938 cat confdefs.h >>conftest.$ac_ext
25939 cat >>conftest.$ac_ext <<_ACEOF
25940 /* end confdefs.h.  */
25941 #include <mach/cthreads.h>
25942 int
25943 main ()
25944 {
25945
25946                                         cthread_fork((void *)0, (void *)0);
25947
25948   ;
25949   return 0;
25950 }
25951 _ACEOF
25952 rm -f conftest.$ac_objext conftest$ac_exeext
25953 if { (ac_try="$ac_link"
25954 case "(($ac_try" in
25955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956   *) ac_try_echo=$ac_try;;
25957 esac
25958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25959   (eval "$ac_link") 2>conftest.er1
25960   ac_status=$?
25961   grep -v '^ *+' conftest.er1 >conftest.err
25962   rm -f conftest.er1
25963   cat conftest.err >&5
25964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965   (exit $ac_status); } && {
25966          test -z "$ac_c_werror_flag" ||
25967          test ! -s conftest.err
25968        } && test -s conftest$ac_exeext &&
25969        $as_test_x conftest$ac_exeext; then
25970   ol_cv_cthread_all_load=yes
25971 else
25972   echo "$as_me: failed program was:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25974
25975         ol_cv_cthread_all_load=no
25976 fi
25977
25978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25979       conftest$ac_exeext conftest.$ac_ext
25980                                                                 LIBS="$save_LIBS"
25981
25982 fi
25983 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25984 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25985
25986                         if test $ol_cv_cthread_all_load = yes ; then
25987                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25988                                 ol_link_threads=mach
25989                                 ol_with_threads=found
25990                         fi
25991                 fi
25992
25993         elif test $ac_cv_header_cthreads_h = yes ; then
25994
25995                 ol_with_threads=found
25996
25997                                 save_LIBS="$LIBS"
25998                 LIBS="$LIBS -lthreads"
25999                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
26000 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
26001 if test "${ac_cv_func_cthread_fork+set}" = set; then
26002   echo $ECHO_N "(cached) $ECHO_C" >&6
26003 else
26004   cat >conftest.$ac_ext <<_ACEOF
26005 /* confdefs.h.  */
26006 _ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h.  */
26010 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
26011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26012 #define cthread_fork innocuous_cthread_fork
26013
26014 /* System header to define __stub macros and hopefully few prototypes,
26015     which can conflict with char cthread_fork (); below.
26016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26017     <limits.h> exists even on freestanding compilers.  */
26018
26019 #ifdef __STDC__
26020 # include <limits.h>
26021 #else
26022 # include <assert.h>
26023 #endif
26024
26025 #undef cthread_fork
26026
26027 /* Override any GCC internal prototype to avoid an error.
26028    Use char because int might match the return type of a GCC
26029    builtin and then its argument prototype would still apply.  */
26030 #ifdef __cplusplus
26031 extern "C"
26032 #endif
26033 char cthread_fork ();
26034 /* The GNU C library defines this for functions which it implements
26035     to always fail with ENOSYS.  Some functions are actually named
26036     something starting with __ and the normal name is an alias.  */
26037 #if defined __stub_cthread_fork || defined __stub___cthread_fork
26038 choke me
26039 #endif
26040
26041 int
26042 main ()
26043 {
26044 return cthread_fork ();
26045   ;
26046   return 0;
26047 }
26048 _ACEOF
26049 rm -f conftest.$ac_objext conftest$ac_exeext
26050 if { (ac_try="$ac_link"
26051 case "(($ac_try" in
26052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26053   *) ac_try_echo=$ac_try;;
26054 esac
26055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26056   (eval "$ac_link") 2>conftest.er1
26057   ac_status=$?
26058   grep -v '^ *+' conftest.er1 >conftest.err
26059   rm -f conftest.er1
26060   cat conftest.err >&5
26061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062   (exit $ac_status); } && {
26063          test -z "$ac_c_werror_flag" ||
26064          test ! -s conftest.err
26065        } && test -s conftest$ac_exeext &&
26066        $as_test_x conftest$ac_exeext; then
26067   ac_cv_func_cthread_fork=yes
26068 else
26069   echo "$as_me: failed program was:" >&5
26070 sed 's/^/| /' conftest.$ac_ext >&5
26071
26072         ac_cv_func_cthread_fork=no
26073 fi
26074
26075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26076       conftest$ac_exeext conftest.$ac_ext
26077 fi
26078 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
26079 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
26080 if test $ac_cv_func_cthread_fork = yes; then
26081   ol_link_threads=yes
26082 fi
26083
26084                 LIBS="$save_LIBS"
26085
26086                 if test $ol_link_threads = yes ; then
26087                         LTHREAD_LIBS="-lthreads"
26088                         ol_link_threads=mach
26089                         ol_with_threads=found
26090                 else
26091                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26092 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26093    { (exit 1); exit 1; }; }
26094                 fi
26095
26096         elif test $ol_with_threads = mach ; then
26097                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
26098 echo "$as_me: error: could not locate Mach CThreads" >&2;}
26099    { (exit 1); exit 1; }; }
26100         fi
26101
26102         if test $ol_link_threads = mach ; then
26103
26104 cat >>confdefs.h <<\_ACEOF
26105 #define HAVE_MACH_CTHREADS 1
26106 _ACEOF
26107
26108         elif test $ol_with_threads = found ; then
26109                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26110 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26111    { (exit 1); exit 1; }; }
26112         fi
26113         ;;
26114 esac
26115
26116 case $ol_with_threads in auto | yes | pth)
26117
26118
26119 for ac_header in pth.h
26120 do
26121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26123   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26126   echo $ECHO_N "(cached) $ECHO_C" >&6
26127 fi
26128 ac_res=`eval echo '${'$as_ac_Header'}'`
26129                { echo "$as_me:$LINENO: result: $ac_res" >&5
26130 echo "${ECHO_T}$ac_res" >&6; }
26131 else
26132   # Is the header compilable?
26133 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26135 cat >conftest.$ac_ext <<_ACEOF
26136 /* confdefs.h.  */
26137 _ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h.  */
26141 $ac_includes_default
26142 #include <$ac_header>
26143 _ACEOF
26144 rm -f conftest.$ac_objext
26145 if { (ac_try="$ac_compile"
26146 case "(($ac_try" in
26147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26148   *) ac_try_echo=$ac_try;;
26149 esac
26150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26151   (eval "$ac_compile") 2>conftest.er1
26152   ac_status=$?
26153   grep -v '^ *+' conftest.er1 >conftest.err
26154   rm -f conftest.er1
26155   cat conftest.err >&5
26156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157   (exit $ac_status); } && {
26158          test -z "$ac_c_werror_flag" ||
26159          test ! -s conftest.err
26160        } && test -s conftest.$ac_objext; then
26161   ac_header_compiler=yes
26162 else
26163   echo "$as_me: failed program was:" >&5
26164 sed 's/^/| /' conftest.$ac_ext >&5
26165
26166         ac_header_compiler=no
26167 fi
26168
26169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26171 echo "${ECHO_T}$ac_header_compiler" >&6; }
26172
26173 # Is the header present?
26174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26176 cat >conftest.$ac_ext <<_ACEOF
26177 /* confdefs.h.  */
26178 _ACEOF
26179 cat confdefs.h >>conftest.$ac_ext
26180 cat >>conftest.$ac_ext <<_ACEOF
26181 /* end confdefs.h.  */
26182 #include <$ac_header>
26183 _ACEOF
26184 if { (ac_try="$ac_cpp conftest.$ac_ext"
26185 case "(($ac_try" in
26186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26187   *) ac_try_echo=$ac_try;;
26188 esac
26189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26190   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26191   ac_status=$?
26192   grep -v '^ *+' conftest.er1 >conftest.err
26193   rm -f conftest.er1
26194   cat conftest.err >&5
26195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196   (exit $ac_status); } >/dev/null && {
26197          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26198          test ! -s conftest.err
26199        }; then
26200   ac_header_preproc=yes
26201 else
26202   echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26204
26205   ac_header_preproc=no
26206 fi
26207
26208 rm -f conftest.err conftest.$ac_ext
26209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26210 echo "${ECHO_T}$ac_header_preproc" >&6; }
26211
26212 # So?  What about this header?
26213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26214   yes:no: )
26215     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26219     ac_header_preproc=yes
26220     ;;
26221   no:yes:* )
26222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26224     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26225 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26226     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26228     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26229 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26232     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26234     ( cat <<\_ASBOX
26235 ## --------------------------------------------- ##
26236 ## Report this to <http://www.openldap.org/its/> ##
26237 ## --------------------------------------------- ##
26238 _ASBOX
26239      ) | sed "s/^/$as_me: WARNING:     /" >&2
26240     ;;
26241 esac
26242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26245   echo $ECHO_N "(cached) $ECHO_C" >&6
26246 else
26247   eval "$as_ac_Header=\$ac_header_preproc"
26248 fi
26249 ac_res=`eval echo '${'$as_ac_Header'}'`
26250                { echo "$as_me:$LINENO: result: $ac_res" >&5
26251 echo "${ECHO_T}$ac_res" >&6; }
26252
26253 fi
26254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26255   cat >>confdefs.h <<_ACEOF
26256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26257 _ACEOF
26258
26259 fi
26260
26261 done
26262
26263
26264         if test $ac_cv_header_pth_h = yes ; then
26265                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26266 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26267 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26268   echo $ECHO_N "(cached) $ECHO_C" >&6
26269 else
26270   ac_check_lib_save_LIBS=$LIBS
26271 LIBS="-lpth  $LIBS"
26272 cat >conftest.$ac_ext <<_ACEOF
26273 /* confdefs.h.  */
26274 _ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h.  */
26278
26279 /* Override any GCC internal prototype to avoid an error.
26280    Use char because int might match the return type of a GCC
26281    builtin and then its argument prototype would still apply.  */
26282 #ifdef __cplusplus
26283 extern "C"
26284 #endif
26285 char pth_version ();
26286 int
26287 main ()
26288 {
26289 return pth_version ();
26290   ;
26291   return 0;
26292 }
26293 _ACEOF
26294 rm -f conftest.$ac_objext conftest$ac_exeext
26295 if { (ac_try="$ac_link"
26296 case "(($ac_try" in
26297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298   *) ac_try_echo=$ac_try;;
26299 esac
26300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26301   (eval "$ac_link") 2>conftest.er1
26302   ac_status=$?
26303   grep -v '^ *+' conftest.er1 >conftest.err
26304   rm -f conftest.er1
26305   cat conftest.err >&5
26306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307   (exit $ac_status); } && {
26308          test -z "$ac_c_werror_flag" ||
26309          test ! -s conftest.err
26310        } && test -s conftest$ac_exeext &&
26311        $as_test_x conftest$ac_exeext; then
26312   ac_cv_lib_pth_pth_version=yes
26313 else
26314   echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26316
26317         ac_cv_lib_pth_pth_version=no
26318 fi
26319
26320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26321       conftest$ac_exeext conftest.$ac_ext
26322 LIBS=$ac_check_lib_save_LIBS
26323 fi
26324 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26325 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26326 if test $ac_cv_lib_pth_pth_version = yes; then
26327   have_pth=yes
26328 else
26329   have_pth=no
26330 fi
26331
26332
26333                 if test $have_pth = yes ; then
26334
26335 cat >>confdefs.h <<\_ACEOF
26336 #define HAVE_GNU_PTH 1
26337 _ACEOF
26338
26339                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26340                         ol_link_threads=pth
26341                         ol_with_threads=found
26342
26343                         if test $ol_with_yielding_select = auto ; then
26344                                 ol_with_yielding_select=yes
26345                         fi
26346                 fi
26347         fi
26348         ;;
26349 esac
26350
26351 case $ol_with_threads in auto | yes | lwp)
26352
26353
26354
26355 for ac_header in thread.h synch.h
26356 do
26357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26359   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26362   echo $ECHO_N "(cached) $ECHO_C" >&6
26363 fi
26364 ac_res=`eval echo '${'$as_ac_Header'}'`
26365                { echo "$as_me:$LINENO: result: $ac_res" >&5
26366 echo "${ECHO_T}$ac_res" >&6; }
26367 else
26368   # Is the header compilable?
26369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26371 cat >conftest.$ac_ext <<_ACEOF
26372 /* confdefs.h.  */
26373 _ACEOF
26374 cat confdefs.h >>conftest.$ac_ext
26375 cat >>conftest.$ac_ext <<_ACEOF
26376 /* end confdefs.h.  */
26377 $ac_includes_default
26378 #include <$ac_header>
26379 _ACEOF
26380 rm -f conftest.$ac_objext
26381 if { (ac_try="$ac_compile"
26382 case "(($ac_try" in
26383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26384   *) ac_try_echo=$ac_try;;
26385 esac
26386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26387   (eval "$ac_compile") 2>conftest.er1
26388   ac_status=$?
26389   grep -v '^ *+' conftest.er1 >conftest.err
26390   rm -f conftest.er1
26391   cat conftest.err >&5
26392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393   (exit $ac_status); } && {
26394          test -z "$ac_c_werror_flag" ||
26395          test ! -s conftest.err
26396        } && test -s conftest.$ac_objext; then
26397   ac_header_compiler=yes
26398 else
26399   echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26401
26402         ac_header_compiler=no
26403 fi
26404
26405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26407 echo "${ECHO_T}$ac_header_compiler" >&6; }
26408
26409 # Is the header present?
26410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26412 cat >conftest.$ac_ext <<_ACEOF
26413 /* confdefs.h.  */
26414 _ACEOF
26415 cat confdefs.h >>conftest.$ac_ext
26416 cat >>conftest.$ac_ext <<_ACEOF
26417 /* end confdefs.h.  */
26418 #include <$ac_header>
26419 _ACEOF
26420 if { (ac_try="$ac_cpp conftest.$ac_ext"
26421 case "(($ac_try" in
26422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26423   *) ac_try_echo=$ac_try;;
26424 esac
26425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26427   ac_status=$?
26428   grep -v '^ *+' conftest.er1 >conftest.err
26429   rm -f conftest.er1
26430   cat conftest.err >&5
26431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432   (exit $ac_status); } >/dev/null && {
26433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26434          test ! -s conftest.err
26435        }; then
26436   ac_header_preproc=yes
26437 else
26438   echo "$as_me: failed program was:" >&5
26439 sed 's/^/| /' conftest.$ac_ext >&5
26440
26441   ac_header_preproc=no
26442 fi
26443
26444 rm -f conftest.err conftest.$ac_ext
26445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26446 echo "${ECHO_T}$ac_header_preproc" >&6; }
26447
26448 # So?  What about this header?
26449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26450   yes:no: )
26451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26455     ac_header_preproc=yes
26456     ;;
26457   no:yes:* )
26458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26470     ( cat <<\_ASBOX
26471 ## --------------------------------------------- ##
26472 ## Report this to <http://www.openldap.org/its/> ##
26473 ## --------------------------------------------- ##
26474 _ASBOX
26475      ) | sed "s/^/$as_me: WARNING:     /" >&2
26476     ;;
26477 esac
26478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26481   echo $ECHO_N "(cached) $ECHO_C" >&6
26482 else
26483   eval "$as_ac_Header=\$ac_header_preproc"
26484 fi
26485 ac_res=`eval echo '${'$as_ac_Header'}'`
26486                { echo "$as_me:$LINENO: result: $ac_res" >&5
26487 echo "${ECHO_T}$ac_res" >&6; }
26488
26489 fi
26490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26491   cat >>confdefs.h <<_ACEOF
26492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26493 _ACEOF
26494
26495 fi
26496
26497 done
26498
26499         if test $ac_cv_header_thread_h = yes &&
26500            test $ac_cv_header_synch_h = yes ; then
26501                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26502 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26503 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26504   echo $ECHO_N "(cached) $ECHO_C" >&6
26505 else
26506   ac_check_lib_save_LIBS=$LIBS
26507 LIBS="-lthread  $LIBS"
26508 cat >conftest.$ac_ext <<_ACEOF
26509 /* confdefs.h.  */
26510 _ACEOF
26511 cat confdefs.h >>conftest.$ac_ext
26512 cat >>conftest.$ac_ext <<_ACEOF
26513 /* end confdefs.h.  */
26514
26515 /* Override any GCC internal prototype to avoid an error.
26516    Use char because int might match the return type of a GCC
26517    builtin and then its argument prototype would still apply.  */
26518 #ifdef __cplusplus
26519 extern "C"
26520 #endif
26521 char thr_create ();
26522 int
26523 main ()
26524 {
26525 return thr_create ();
26526   ;
26527   return 0;
26528 }
26529 _ACEOF
26530 rm -f conftest.$ac_objext conftest$ac_exeext
26531 if { (ac_try="$ac_link"
26532 case "(($ac_try" in
26533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26534   *) ac_try_echo=$ac_try;;
26535 esac
26536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26537   (eval "$ac_link") 2>conftest.er1
26538   ac_status=$?
26539   grep -v '^ *+' conftest.er1 >conftest.err
26540   rm -f conftest.er1
26541   cat conftest.err >&5
26542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543   (exit $ac_status); } && {
26544          test -z "$ac_c_werror_flag" ||
26545          test ! -s conftest.err
26546        } && test -s conftest$ac_exeext &&
26547        $as_test_x conftest$ac_exeext; then
26548   ac_cv_lib_thread_thr_create=yes
26549 else
26550   echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26552
26553         ac_cv_lib_thread_thr_create=no
26554 fi
26555
26556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26557       conftest$ac_exeext conftest.$ac_ext
26558 LIBS=$ac_check_lib_save_LIBS
26559 fi
26560 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26561 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26562 if test $ac_cv_lib_thread_thr_create = yes; then
26563   have_thr=yes
26564 else
26565   have_thr=no
26566 fi
26567
26568
26569                 if test $have_thr = yes ; then
26570
26571 cat >>confdefs.h <<\_ACEOF
26572 #define HAVE_THR 1
26573 _ACEOF
26574
26575                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26576                         ol_link_threads=thr
26577
26578                         if test $ol_with_yielding_select = auto ; then
26579                                 ol_with_yielding_select=yes
26580                         fi
26581
26582
26583
26584 for ac_func in \
26585                                 thr_setconcurrency \
26586                                 thr_getconcurrency \
26587
26588 do
26589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26593   echo $ECHO_N "(cached) $ECHO_C" >&6
26594 else
26595   cat >conftest.$ac_ext <<_ACEOF
26596 /* confdefs.h.  */
26597 _ACEOF
26598 cat confdefs.h >>conftest.$ac_ext
26599 cat >>conftest.$ac_ext <<_ACEOF
26600 /* end confdefs.h.  */
26601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26603 #define $ac_func innocuous_$ac_func
26604
26605 /* System header to define __stub macros and hopefully few prototypes,
26606     which can conflict with char $ac_func (); below.
26607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26608     <limits.h> exists even on freestanding compilers.  */
26609
26610 #ifdef __STDC__
26611 # include <limits.h>
26612 #else
26613 # include <assert.h>
26614 #endif
26615
26616 #undef $ac_func
26617
26618 /* Override any GCC internal prototype to avoid an error.
26619    Use char because int might match the return type of a GCC
26620    builtin and then its argument prototype would still apply.  */
26621 #ifdef __cplusplus
26622 extern "C"
26623 #endif
26624 char $ac_func ();
26625 /* The GNU C library defines this for functions which it implements
26626     to always fail with ENOSYS.  Some functions are actually named
26627     something starting with __ and the normal name is an alias.  */
26628 #if defined __stub_$ac_func || defined __stub___$ac_func
26629 choke me
26630 #endif
26631
26632 int
26633 main ()
26634 {
26635 return $ac_func ();
26636   ;
26637   return 0;
26638 }
26639 _ACEOF
26640 rm -f conftest.$ac_objext conftest$ac_exeext
26641 if { (ac_try="$ac_link"
26642 case "(($ac_try" in
26643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644   *) ac_try_echo=$ac_try;;
26645 esac
26646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26647   (eval "$ac_link") 2>conftest.er1
26648   ac_status=$?
26649   grep -v '^ *+' conftest.er1 >conftest.err
26650   rm -f conftest.er1
26651   cat conftest.err >&5
26652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653   (exit $ac_status); } && {
26654          test -z "$ac_c_werror_flag" ||
26655          test ! -s conftest.err
26656        } && test -s conftest$ac_exeext &&
26657        $as_test_x conftest$ac_exeext; then
26658   eval "$as_ac_var=yes"
26659 else
26660   echo "$as_me: failed program was:" >&5
26661 sed 's/^/| /' conftest.$ac_ext >&5
26662
26663         eval "$as_ac_var=no"
26664 fi
26665
26666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26667       conftest$ac_exeext conftest.$ac_ext
26668 fi
26669 ac_res=`eval echo '${'$as_ac_var'}'`
26670                { echo "$as_me:$LINENO: result: $ac_res" >&5
26671 echo "${ECHO_T}$ac_res" >&6; }
26672 if test `eval echo '${'$as_ac_var'}'` = yes; then
26673   cat >>confdefs.h <<_ACEOF
26674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26675 _ACEOF
26676
26677 fi
26678 done
26679
26680                 fi
26681         fi
26682         ;;
26683 esac
26684
26685 if test $ol_with_yielding_select = yes ; then
26686
26687 cat >>confdefs.h <<\_ACEOF
26688 #define HAVE_YIELDING_SELECT 1
26689 _ACEOF
26690
26691 fi
26692
26693 if test $ol_with_threads = manual ; then
26694                 ol_link_threads=yes
26695
26696         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26697 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26698
26699
26700
26701 for ac_header in pthread.h sched.h
26702 do
26703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26705   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26708   echo $ECHO_N "(cached) $ECHO_C" >&6
26709 fi
26710 ac_res=`eval echo '${'$as_ac_Header'}'`
26711                { echo "$as_me:$LINENO: result: $ac_res" >&5
26712 echo "${ECHO_T}$ac_res" >&6; }
26713 else
26714   # Is the header compilable?
26715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26717 cat >conftest.$ac_ext <<_ACEOF
26718 /* confdefs.h.  */
26719 _ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h.  */
26723 $ac_includes_default
26724 #include <$ac_header>
26725 _ACEOF
26726 rm -f conftest.$ac_objext
26727 if { (ac_try="$ac_compile"
26728 case "(($ac_try" in
26729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26730   *) ac_try_echo=$ac_try;;
26731 esac
26732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26733   (eval "$ac_compile") 2>conftest.er1
26734   ac_status=$?
26735   grep -v '^ *+' conftest.er1 >conftest.err
26736   rm -f conftest.er1
26737   cat conftest.err >&5
26738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739   (exit $ac_status); } && {
26740          test -z "$ac_c_werror_flag" ||
26741          test ! -s conftest.err
26742        } && test -s conftest.$ac_objext; then
26743   ac_header_compiler=yes
26744 else
26745   echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.$ac_ext >&5
26747
26748         ac_header_compiler=no
26749 fi
26750
26751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26753 echo "${ECHO_T}$ac_header_compiler" >&6; }
26754
26755 # Is the header present?
26756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26758 cat >conftest.$ac_ext <<_ACEOF
26759 /* confdefs.h.  */
26760 _ACEOF
26761 cat confdefs.h >>conftest.$ac_ext
26762 cat >>conftest.$ac_ext <<_ACEOF
26763 /* end confdefs.h.  */
26764 #include <$ac_header>
26765 _ACEOF
26766 if { (ac_try="$ac_cpp conftest.$ac_ext"
26767 case "(($ac_try" in
26768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26769   *) ac_try_echo=$ac_try;;
26770 esac
26771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26773   ac_status=$?
26774   grep -v '^ *+' conftest.er1 >conftest.err
26775   rm -f conftest.er1
26776   cat conftest.err >&5
26777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778   (exit $ac_status); } >/dev/null && {
26779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26780          test ! -s conftest.err
26781        }; then
26782   ac_header_preproc=yes
26783 else
26784   echo "$as_me: failed program was:" >&5
26785 sed 's/^/| /' conftest.$ac_ext >&5
26786
26787   ac_header_preproc=no
26788 fi
26789
26790 rm -f conftest.err conftest.$ac_ext
26791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26792 echo "${ECHO_T}$ac_header_preproc" >&6; }
26793
26794 # So?  What about this header?
26795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26796   yes:no: )
26797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26801     ac_header_preproc=yes
26802     ;;
26803   no:yes:* )
26804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26806     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26807 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26808     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26810     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26811 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26814     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26816     ( cat <<\_ASBOX
26817 ## --------------------------------------------- ##
26818 ## Report this to <http://www.openldap.org/its/> ##
26819 ## --------------------------------------------- ##
26820 _ASBOX
26821      ) | sed "s/^/$as_me: WARNING:     /" >&2
26822     ;;
26823 esac
26824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26827   echo $ECHO_N "(cached) $ECHO_C" >&6
26828 else
26829   eval "$as_ac_Header=\$ac_header_preproc"
26830 fi
26831 ac_res=`eval echo '${'$as_ac_Header'}'`
26832                { echo "$as_me:$LINENO: result: $ac_res" >&5
26833 echo "${ECHO_T}$ac_res" >&6; }
26834
26835 fi
26836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26837   cat >>confdefs.h <<_ACEOF
26838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26839 _ACEOF
26840
26841 fi
26842
26843 done
26844
26845
26846
26847 for ac_func in sched_yield pthread_yield
26848 do
26849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26850 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26852 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26853   echo $ECHO_N "(cached) $ECHO_C" >&6
26854 else
26855   cat >conftest.$ac_ext <<_ACEOF
26856 /* confdefs.h.  */
26857 _ACEOF
26858 cat confdefs.h >>conftest.$ac_ext
26859 cat >>conftest.$ac_ext <<_ACEOF
26860 /* end confdefs.h.  */
26861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26863 #define $ac_func innocuous_$ac_func
26864
26865 /* System header to define __stub macros and hopefully few prototypes,
26866     which can conflict with char $ac_func (); below.
26867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26868     <limits.h> exists even on freestanding compilers.  */
26869
26870 #ifdef __STDC__
26871 # include <limits.h>
26872 #else
26873 # include <assert.h>
26874 #endif
26875
26876 #undef $ac_func
26877
26878 /* Override any GCC internal prototype to avoid an error.
26879    Use char because int might match the return type of a GCC
26880    builtin and then its argument prototype would still apply.  */
26881 #ifdef __cplusplus
26882 extern "C"
26883 #endif
26884 char $ac_func ();
26885 /* The GNU C library defines this for functions which it implements
26886     to always fail with ENOSYS.  Some functions are actually named
26887     something starting with __ and the normal name is an alias.  */
26888 #if defined __stub_$ac_func || defined __stub___$ac_func
26889 choke me
26890 #endif
26891
26892 int
26893 main ()
26894 {
26895 return $ac_func ();
26896   ;
26897   return 0;
26898 }
26899 _ACEOF
26900 rm -f conftest.$ac_objext conftest$ac_exeext
26901 if { (ac_try="$ac_link"
26902 case "(($ac_try" in
26903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904   *) ac_try_echo=$ac_try;;
26905 esac
26906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26907   (eval "$ac_link") 2>conftest.er1
26908   ac_status=$?
26909   grep -v '^ *+' conftest.er1 >conftest.err
26910   rm -f conftest.er1
26911   cat conftest.err >&5
26912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913   (exit $ac_status); } && {
26914          test -z "$ac_c_werror_flag" ||
26915          test ! -s conftest.err
26916        } && test -s conftest$ac_exeext &&
26917        $as_test_x conftest$ac_exeext; then
26918   eval "$as_ac_var=yes"
26919 else
26920   echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26922
26923         eval "$as_ac_var=no"
26924 fi
26925
26926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26927       conftest$ac_exeext conftest.$ac_ext
26928 fi
26929 ac_res=`eval echo '${'$as_ac_var'}'`
26930                { echo "$as_me:$LINENO: result: $ac_res" >&5
26931 echo "${ECHO_T}$ac_res" >&6; }
26932 if test `eval echo '${'$as_ac_var'}'` = yes; then
26933   cat >>confdefs.h <<_ACEOF
26934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26935 _ACEOF
26936
26937 fi
26938 done
26939
26940
26941         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26942 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26943 if test "${ol_cv_header_linux_threads+set}" = set; then
26944   echo $ECHO_N "(cached) $ECHO_C" >&6
26945 else
26946   cat >conftest.$ac_ext <<_ACEOF
26947 /* confdefs.h.  */
26948 _ACEOF
26949 cat confdefs.h >>conftest.$ac_ext
26950 cat >>conftest.$ac_ext <<_ACEOF
26951 /* end confdefs.h.  */
26952 #include <pthread.h>
26953 _ACEOF
26954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26955   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26956   ol_cv_header_linux_threads=yes
26957 else
26958   ol_cv_header_linux_threads=no
26959 fi
26960 rm -f conftest*
26961
26962
26963 fi
26964 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26965 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26966         if test $ol_cv_header_linux_threads = yes; then
26967
26968 cat >>confdefs.h <<\_ACEOF
26969 #define HAVE_LINUX_THREADS 1
26970 _ACEOF
26971
26972         fi
26973
26974
26975
26976 for ac_header in mach/cthreads.h
26977 do
26978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26980   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26983   echo $ECHO_N "(cached) $ECHO_C" >&6
26984 fi
26985 ac_res=`eval echo '${'$as_ac_Header'}'`
26986                { echo "$as_me:$LINENO: result: $ac_res" >&5
26987 echo "${ECHO_T}$ac_res" >&6; }
26988 else
26989   # Is the header compilable?
26990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26992 cat >conftest.$ac_ext <<_ACEOF
26993 /* confdefs.h.  */
26994 _ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h.  */
26998 $ac_includes_default
26999 #include <$ac_header>
27000 _ACEOF
27001 rm -f conftest.$ac_objext
27002 if { (ac_try="$ac_compile"
27003 case "(($ac_try" in
27004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27005   *) ac_try_echo=$ac_try;;
27006 esac
27007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27008   (eval "$ac_compile") 2>conftest.er1
27009   ac_status=$?
27010   grep -v '^ *+' conftest.er1 >conftest.err
27011   rm -f conftest.er1
27012   cat conftest.err >&5
27013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); } && {
27015          test -z "$ac_c_werror_flag" ||
27016          test ! -s conftest.err
27017        } && test -s conftest.$ac_objext; then
27018   ac_header_compiler=yes
27019 else
27020   echo "$as_me: failed program was:" >&5
27021 sed 's/^/| /' conftest.$ac_ext >&5
27022
27023         ac_header_compiler=no
27024 fi
27025
27026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27028 echo "${ECHO_T}$ac_header_compiler" >&6; }
27029
27030 # Is the header present?
27031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27033 cat >conftest.$ac_ext <<_ACEOF
27034 /* confdefs.h.  */
27035 _ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h.  */
27039 #include <$ac_header>
27040 _ACEOF
27041 if { (ac_try="$ac_cpp conftest.$ac_ext"
27042 case "(($ac_try" in
27043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27044   *) ac_try_echo=$ac_try;;
27045 esac
27046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27048   ac_status=$?
27049   grep -v '^ *+' conftest.er1 >conftest.err
27050   rm -f conftest.er1
27051   cat conftest.err >&5
27052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053   (exit $ac_status); } >/dev/null && {
27054          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27055          test ! -s conftest.err
27056        }; then
27057   ac_header_preproc=yes
27058 else
27059   echo "$as_me: failed program was:" >&5
27060 sed 's/^/| /' conftest.$ac_ext >&5
27061
27062   ac_header_preproc=no
27063 fi
27064
27065 rm -f conftest.err conftest.$ac_ext
27066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27067 echo "${ECHO_T}$ac_header_preproc" >&6; }
27068
27069 # So?  What about this header?
27070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27071   yes:no: )
27072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27076     ac_header_preproc=yes
27077     ;;
27078   no:yes:* )
27079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27091     ( cat <<\_ASBOX
27092 ## --------------------------------------------- ##
27093 ## Report this to <http://www.openldap.org/its/> ##
27094 ## --------------------------------------------- ##
27095 _ASBOX
27096      ) | sed "s/^/$as_me: WARNING:     /" >&2
27097     ;;
27098 esac
27099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27102   echo $ECHO_N "(cached) $ECHO_C" >&6
27103 else
27104   eval "$as_ac_Header=\$ac_header_preproc"
27105 fi
27106 ac_res=`eval echo '${'$as_ac_Header'}'`
27107                { echo "$as_me:$LINENO: result: $ac_res" >&5
27108 echo "${ECHO_T}$ac_res" >&6; }
27109
27110 fi
27111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27112   cat >>confdefs.h <<_ACEOF
27113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27114 _ACEOF
27115
27116 fi
27117
27118 done
27119
27120
27121
27122 for ac_header in thread.h synch.h
27123 do
27124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27126   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27129   echo $ECHO_N "(cached) $ECHO_C" >&6
27130 fi
27131 ac_res=`eval echo '${'$as_ac_Header'}'`
27132                { echo "$as_me:$LINENO: result: $ac_res" >&5
27133 echo "${ECHO_T}$ac_res" >&6; }
27134 else
27135   # Is the header compilable?
27136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27138 cat >conftest.$ac_ext <<_ACEOF
27139 /* confdefs.h.  */
27140 _ACEOF
27141 cat confdefs.h >>conftest.$ac_ext
27142 cat >>conftest.$ac_ext <<_ACEOF
27143 /* end confdefs.h.  */
27144 $ac_includes_default
27145 #include <$ac_header>
27146 _ACEOF
27147 rm -f conftest.$ac_objext
27148 if { (ac_try="$ac_compile"
27149 case "(($ac_try" in
27150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151   *) ac_try_echo=$ac_try;;
27152 esac
27153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27154   (eval "$ac_compile") 2>conftest.er1
27155   ac_status=$?
27156   grep -v '^ *+' conftest.er1 >conftest.err
27157   rm -f conftest.er1
27158   cat conftest.err >&5
27159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160   (exit $ac_status); } && {
27161          test -z "$ac_c_werror_flag" ||
27162          test ! -s conftest.err
27163        } && test -s conftest.$ac_objext; then
27164   ac_header_compiler=yes
27165 else
27166   echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27168
27169         ac_header_compiler=no
27170 fi
27171
27172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27174 echo "${ECHO_T}$ac_header_compiler" >&6; }
27175
27176 # Is the header present?
27177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27179 cat >conftest.$ac_ext <<_ACEOF
27180 /* confdefs.h.  */
27181 _ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h.  */
27185 #include <$ac_header>
27186 _ACEOF
27187 if { (ac_try="$ac_cpp conftest.$ac_ext"
27188 case "(($ac_try" in
27189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27190   *) ac_try_echo=$ac_try;;
27191 esac
27192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27194   ac_status=$?
27195   grep -v '^ *+' conftest.er1 >conftest.err
27196   rm -f conftest.er1
27197   cat conftest.err >&5
27198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199   (exit $ac_status); } >/dev/null && {
27200          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27201          test ! -s conftest.err
27202        }; then
27203   ac_header_preproc=yes
27204 else
27205   echo "$as_me: failed program was:" >&5
27206 sed 's/^/| /' conftest.$ac_ext >&5
27207
27208   ac_header_preproc=no
27209 fi
27210
27211 rm -f conftest.err conftest.$ac_ext
27212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27213 echo "${ECHO_T}$ac_header_preproc" >&6; }
27214
27215 # So?  What about this header?
27216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27217   yes:no: )
27218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27222     ac_header_preproc=yes
27223     ;;
27224   no:yes:* )
27225     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27227     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27228 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27229     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27231     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27232 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27235     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27237     ( cat <<\_ASBOX
27238 ## --------------------------------------------- ##
27239 ## Report this to <http://www.openldap.org/its/> ##
27240 ## --------------------------------------------- ##
27241 _ASBOX
27242      ) | sed "s/^/$as_me: WARNING:     /" >&2
27243     ;;
27244 esac
27245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27248   echo $ECHO_N "(cached) $ECHO_C" >&6
27249 else
27250   eval "$as_ac_Header=\$ac_header_preproc"
27251 fi
27252 ac_res=`eval echo '${'$as_ac_Header'}'`
27253                { echo "$as_me:$LINENO: result: $ac_res" >&5
27254 echo "${ECHO_T}$ac_res" >&6; }
27255
27256 fi
27257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27258   cat >>confdefs.h <<_ACEOF
27259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27260 _ACEOF
27261
27262 fi
27263
27264 done
27265
27266 fi
27267
27268 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27269                         cat >>confdefs.h <<\_ACEOF
27270 #define REENTRANT 1
27271 _ACEOF
27272
27273         cat >>confdefs.h <<\_ACEOF
27274 #define _REENTRANT 1
27275 _ACEOF
27276
27277         cat >>confdefs.h <<\_ACEOF
27278 #define THREAD_SAFE 1
27279 _ACEOF
27280
27281         cat >>confdefs.h <<\_ACEOF
27282 #define _THREAD_SAFE 1
27283 _ACEOF
27284
27285         cat >>confdefs.h <<\_ACEOF
27286 #define THREADSAFE 1
27287 _ACEOF
27288
27289         cat >>confdefs.h <<\_ACEOF
27290 #define _THREADSAFE 1
27291 _ACEOF
27292
27293         cat >>confdefs.h <<\_ACEOF
27294 #define _SGI_MP_SOURCE 1
27295 _ACEOF
27296
27297
27298                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27299 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27300 if test "${ol_cv_errno_thread_specific+set}" = set; then
27301   echo $ECHO_N "(cached) $ECHO_C" >&6
27302 else
27303
27304                 cat >conftest.$ac_ext <<_ACEOF
27305 /* confdefs.h.  */
27306 _ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h.  */
27310 #include <errno.h>
27311 int
27312 main ()
27313 {
27314 errno = 0;
27315   ;
27316   return 0;
27317 }
27318 _ACEOF
27319 rm -f conftest.$ac_objext conftest$ac_exeext
27320 if { (ac_try="$ac_link"
27321 case "(($ac_try" in
27322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27323   *) ac_try_echo=$ac_try;;
27324 esac
27325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27326   (eval "$ac_link") 2>conftest.er1
27327   ac_status=$?
27328   grep -v '^ *+' conftest.er1 >conftest.err
27329   rm -f conftest.er1
27330   cat conftest.err >&5
27331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332   (exit $ac_status); } && {
27333          test -z "$ac_c_werror_flag" ||
27334          test ! -s conftest.err
27335        } && test -s conftest$ac_exeext &&
27336        $as_test_x conftest$ac_exeext; then
27337   ol_cv_errno_thread_specific=yes
27338 else
27339   echo "$as_me: failed program was:" >&5
27340 sed 's/^/| /' conftest.$ac_ext >&5
27341
27342         ol_cv_errno_thread_specific=no
27343 fi
27344
27345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27346       conftest$ac_exeext conftest.$ac_ext
27347
27348 fi
27349 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27350 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27351
27352                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27353 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27354 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27355   echo $ECHO_N "(cached) $ECHO_C" >&6
27356 else
27357
27358                 cat >conftest.$ac_ext <<_ACEOF
27359 /* confdefs.h.  */
27360 _ACEOF
27361 cat confdefs.h >>conftest.$ac_ext
27362 cat >>conftest.$ac_ext <<_ACEOF
27363 /* end confdefs.h.  */
27364 #include <netdb.h>
27365 int
27366 main ()
27367 {
27368 h_errno = 0;
27369   ;
27370   return 0;
27371 }
27372 _ACEOF
27373 rm -f conftest.$ac_objext conftest$ac_exeext
27374 if { (ac_try="$ac_link"
27375 case "(($ac_try" in
27376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377   *) ac_try_echo=$ac_try;;
27378 esac
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380   (eval "$ac_link") 2>conftest.er1
27381   ac_status=$?
27382   grep -v '^ *+' conftest.er1 >conftest.err
27383   rm -f conftest.er1
27384   cat conftest.err >&5
27385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386   (exit $ac_status); } && {
27387          test -z "$ac_c_werror_flag" ||
27388          test ! -s conftest.err
27389        } && test -s conftest$ac_exeext &&
27390        $as_test_x conftest$ac_exeext; then
27391   ol_cv_h_errno_thread_specific=yes
27392 else
27393   echo "$as_me: failed program was:" >&5
27394 sed 's/^/| /' conftest.$ac_ext >&5
27395
27396         ol_cv_h_errno_thread_specific=no
27397 fi
27398
27399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27400       conftest$ac_exeext conftest.$ac_ext
27401
27402 fi
27403 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27404 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27405
27406         if test $ol_cv_errno_thread_specific != yes ||
27407            test $ol_cv_h_errno_thread_specific != yes ; then
27408                 LIBS="$LTHREAD_LIBS $LIBS"
27409                 LTHREAD_LIBS=""
27410         fi
27411
27412 fi
27413
27414 if test $ol_link_threads = no ; then
27415         if test $ol_with_threads = yes ; then
27416                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27417 echo "$as_me: error: no suitable thread support" >&2;}
27418    { (exit 1); exit 1; }; }
27419         fi
27420
27421         if test $ol_with_threads = auto ; then
27422                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27423 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27424                 ol_with_threads=no
27425         fi
27426
27427
27428 cat >>confdefs.h <<\_ACEOF
27429 #define NO_THREADS 1
27430 _ACEOF
27431
27432         LTHREAD_LIBS=""
27433         BUILD_THREAD=no
27434 else
27435         BUILD_THREAD=yes
27436 fi
27437
27438 if test $ol_link_threads != no ; then
27439
27440 cat >>confdefs.h <<\_ACEOF
27441 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27442 _ACEOF
27443
27444 fi
27445
27446
27447
27448
27449
27450
27451 for ac_func in \
27452         ctime_r                 \
27453         gmtime_r localtime_r \
27454         gethostbyname_r gethostbyaddr_r \
27455
27456 do
27457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27461   echo $ECHO_N "(cached) $ECHO_C" >&6
27462 else
27463   cat >conftest.$ac_ext <<_ACEOF
27464 /* confdefs.h.  */
27465 _ACEOF
27466 cat confdefs.h >>conftest.$ac_ext
27467 cat >>conftest.$ac_ext <<_ACEOF
27468 /* end confdefs.h.  */
27469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27471 #define $ac_func innocuous_$ac_func
27472
27473 /* System header to define __stub macros and hopefully few prototypes,
27474     which can conflict with char $ac_func (); below.
27475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27476     <limits.h> exists even on freestanding compilers.  */
27477
27478 #ifdef __STDC__
27479 # include <limits.h>
27480 #else
27481 # include <assert.h>
27482 #endif
27483
27484 #undef $ac_func
27485
27486 /* Override any GCC internal prototype to avoid an error.
27487    Use char because int might match the return type of a GCC
27488    builtin and then its argument prototype would still apply.  */
27489 #ifdef __cplusplus
27490 extern "C"
27491 #endif
27492 char $ac_func ();
27493 /* The GNU C library defines this for functions which it implements
27494     to always fail with ENOSYS.  Some functions are actually named
27495     something starting with __ and the normal name is an alias.  */
27496 #if defined __stub_$ac_func || defined __stub___$ac_func
27497 choke me
27498 #endif
27499
27500 int
27501 main ()
27502 {
27503 return $ac_func ();
27504   ;
27505   return 0;
27506 }
27507 _ACEOF
27508 rm -f conftest.$ac_objext conftest$ac_exeext
27509 if { (ac_try="$ac_link"
27510 case "(($ac_try" in
27511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27512   *) ac_try_echo=$ac_try;;
27513 esac
27514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27515   (eval "$ac_link") 2>conftest.er1
27516   ac_status=$?
27517   grep -v '^ *+' conftest.er1 >conftest.err
27518   rm -f conftest.er1
27519   cat conftest.err >&5
27520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521   (exit $ac_status); } && {
27522          test -z "$ac_c_werror_flag" ||
27523          test ! -s conftest.err
27524        } && test -s conftest$ac_exeext &&
27525        $as_test_x conftest$ac_exeext; then
27526   eval "$as_ac_var=yes"
27527 else
27528   echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27530
27531         eval "$as_ac_var=no"
27532 fi
27533
27534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27535       conftest$ac_exeext conftest.$ac_ext
27536 fi
27537 ac_res=`eval echo '${'$as_ac_var'}'`
27538                { echo "$as_me:$LINENO: result: $ac_res" >&5
27539 echo "${ECHO_T}$ac_res" >&6; }
27540 if test `eval echo '${'$as_ac_var'}'` = yes; then
27541   cat >>confdefs.h <<_ACEOF
27542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27543 _ACEOF
27544
27545 fi
27546 done
27547
27548
27549 if test "$ac_cv_func_ctime_r" = no ; then
27550         ol_cv_func_ctime_r_nargs=0
27551 else
27552         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27553 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27554 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27555   echo $ECHO_N "(cached) $ECHO_C" >&6
27556 else
27557   cat >conftest.$ac_ext <<_ACEOF
27558 /* confdefs.h.  */
27559 _ACEOF
27560 cat confdefs.h >>conftest.$ac_ext
27561 cat >>conftest.$ac_ext <<_ACEOF
27562 /* end confdefs.h.  */
27563 #include <time.h>
27564 int
27565 main ()
27566 {
27567 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27568   ;
27569   return 0;
27570 }
27571 _ACEOF
27572 rm -f conftest.$ac_objext
27573 if { (ac_try="$ac_compile"
27574 case "(($ac_try" in
27575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576   *) ac_try_echo=$ac_try;;
27577 esac
27578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579   (eval "$ac_compile") 2>conftest.er1
27580   ac_status=$?
27581   grep -v '^ *+' conftest.er1 >conftest.err
27582   rm -f conftest.er1
27583   cat conftest.err >&5
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); } && {
27586          test -z "$ac_c_werror_flag" ||
27587          test ! -s conftest.err
27588        } && test -s conftest.$ac_objext; then
27589   ol_cv_func_ctime_r_nargs3=yes
27590 else
27591   echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27593
27594         ol_cv_func_ctime_r_nargs3=no
27595 fi
27596
27597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27598
27599         cat >conftest.$ac_ext <<_ACEOF
27600 /* confdefs.h.  */
27601 _ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h.  */
27605 #include <time.h>
27606 int
27607 main ()
27608 {
27609 time_t ti; char *buffer; ctime_r(&ti,buffer);
27610   ;
27611   return 0;
27612 }
27613 _ACEOF
27614 rm -f conftest.$ac_objext
27615 if { (ac_try="$ac_compile"
27616 case "(($ac_try" in
27617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618   *) ac_try_echo=$ac_try;;
27619 esac
27620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621   (eval "$ac_compile") 2>conftest.er1
27622   ac_status=$?
27623   grep -v '^ *+' conftest.er1 >conftest.err
27624   rm -f conftest.er1
27625   cat conftest.err >&5
27626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627   (exit $ac_status); } && {
27628          test -z "$ac_c_werror_flag" ||
27629          test ! -s conftest.err
27630        } && test -s conftest.$ac_objext; then
27631   ol_cv_func_ctime_r_nargs2=yes
27632 else
27633   echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27635
27636         ol_cv_func_ctime_r_nargs2=no
27637 fi
27638
27639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27640
27641         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27642            test $ol_cv_func_ctime_r_nargs2 = no ; then
27643
27644                 ol_cv_func_ctime_r_nargs=3
27645
27646         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27647              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27648
27649                 ol_cv_func_ctime_r_nargs=2
27650
27651         else
27652                 ol_cv_func_ctime_r_nargs=0
27653         fi
27654
27655 fi
27656 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27657 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27658
27659   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27660
27661 cat >>confdefs.h <<_ACEOF
27662 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27663 _ACEOF
27664
27665   fi
27666
27667 fi
27668
27669 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27670         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27671 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27672 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27673   echo $ECHO_N "(cached) $ECHO_C" >&6
27674 else
27675   cat >conftest.$ac_ext <<_ACEOF
27676 /* confdefs.h.  */
27677 _ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h.  */
27681 #include <sys/types.h>
27682 #include <sys/socket.h>
27683 #include <netinet/in.h>
27684 #include <netdb.h>
27685 #define BUFSIZE (sizeof(struct hostent)+10)
27686 int
27687 main ()
27688 {
27689 struct hostent hent; char buffer[BUFSIZE];
27690                 int bufsize=BUFSIZE;int h_errno;
27691                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27692                         buffer, bufsize, &h_errno);
27693   ;
27694   return 0;
27695 }
27696 _ACEOF
27697 rm -f conftest.$ac_objext
27698 if { (ac_try="$ac_compile"
27699 case "(($ac_try" in
27700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27701   *) ac_try_echo=$ac_try;;
27702 esac
27703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27704   (eval "$ac_compile") 2>conftest.er1
27705   ac_status=$?
27706   grep -v '^ *+' conftest.er1 >conftest.err
27707   rm -f conftest.er1
27708   cat conftest.err >&5
27709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710   (exit $ac_status); } && {
27711          test -z "$ac_c_werror_flag" ||
27712          test ! -s conftest.err
27713        } && test -s conftest.$ac_objext; then
27714   ol_cv_func_gethostbyname_r_nargs5=yes
27715 else
27716   echo "$as_me: failed program was:" >&5
27717 sed 's/^/| /' conftest.$ac_ext >&5
27718
27719         ol_cv_func_gethostbyname_r_nargs5=no
27720 fi
27721
27722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27723
27724         cat >conftest.$ac_ext <<_ACEOF
27725 /* confdefs.h.  */
27726 _ACEOF
27727 cat confdefs.h >>conftest.$ac_ext
27728 cat >>conftest.$ac_ext <<_ACEOF
27729 /* end confdefs.h.  */
27730 #include <sys/types.h>
27731 #include <sys/socket.h>
27732 #include <netinet/in.h>
27733 #include <netdb.h>
27734 #define BUFSIZE (sizeof(struct hostent)+10)
27735 int
27736 main ()
27737 {
27738 struct hostent hent;struct hostent *rhent;
27739                 char buffer[BUFSIZE];
27740                 int bufsize=BUFSIZE;int h_errno;
27741                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27742                         &rhent, &h_errno);
27743   ;
27744   return 0;
27745 }
27746 _ACEOF
27747 rm -f conftest.$ac_objext
27748 if { (ac_try="$ac_compile"
27749 case "(($ac_try" in
27750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751   *) ac_try_echo=$ac_try;;
27752 esac
27753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27754   (eval "$ac_compile") 2>conftest.er1
27755   ac_status=$?
27756   grep -v '^ *+' conftest.er1 >conftest.err
27757   rm -f conftest.er1
27758   cat conftest.err >&5
27759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760   (exit $ac_status); } && {
27761          test -z "$ac_c_werror_flag" ||
27762          test ! -s conftest.err
27763        } && test -s conftest.$ac_objext; then
27764   ol_cv_func_gethostbyname_r_nargs6=yes
27765 else
27766   echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27768
27769         ol_cv_func_gethostbyname_r_nargs6=no
27770 fi
27771
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27773
27774         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27775            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27776
27777                 ol_cv_func_gethostbyname_r_nargs=5
27778
27779         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27780              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27781
27782                 ol_cv_func_gethostbyname_r_nargs=6
27783
27784         else
27785                 ol_cv_func_gethostbyname_r_nargs=0
27786         fi
27787
27788 fi
27789 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27790 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27791   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27792
27793 cat >>confdefs.h <<_ACEOF
27794 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27795 _ACEOF
27796
27797   fi
27798
27799 else
27800         ol_cv_func_gethostbyname_r_nargs=0
27801 fi
27802
27803 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27804         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27805 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27806 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27807   echo $ECHO_N "(cached) $ECHO_C" >&6
27808 else
27809   cat >conftest.$ac_ext <<_ACEOF
27810 /* confdefs.h.  */
27811 _ACEOF
27812 cat confdefs.h >>conftest.$ac_ext
27813 cat >>conftest.$ac_ext <<_ACEOF
27814 /* end confdefs.h.  */
27815 #include <sys/types.h>
27816 #include <sys/socket.h>
27817 #include <netinet/in.h>
27818 #include <netdb.h>
27819 #define BUFSIZE (sizeof(struct hostent)+10)
27820 int
27821 main ()
27822 {
27823 struct hostent hent; char buffer[BUFSIZE];
27824             struct in_addr add;
27825             size_t alen=sizeof(struct in_addr);
27826             int bufsize=BUFSIZE;int h_errno;
27827                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27828                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27829   ;
27830   return 0;
27831 }
27832 _ACEOF
27833 rm -f conftest.$ac_objext
27834 if { (ac_try="$ac_compile"
27835 case "(($ac_try" in
27836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837   *) ac_try_echo=$ac_try;;
27838 esac
27839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27840   (eval "$ac_compile") 2>conftest.er1
27841   ac_status=$?
27842   grep -v '^ *+' conftest.er1 >conftest.err
27843   rm -f conftest.er1
27844   cat conftest.err >&5
27845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846   (exit $ac_status); } && {
27847          test -z "$ac_c_werror_flag" ||
27848          test ! -s conftest.err
27849        } && test -s conftest.$ac_objext; then
27850   ol_cv_func_gethostbyaddr_r_nargs7=yes
27851 else
27852   echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27854
27855         ol_cv_func_gethostbyaddr_r_nargs7=no
27856 fi
27857
27858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27859
27860         cat >conftest.$ac_ext <<_ACEOF
27861 /* confdefs.h.  */
27862 _ACEOF
27863 cat confdefs.h >>conftest.$ac_ext
27864 cat >>conftest.$ac_ext <<_ACEOF
27865 /* end confdefs.h.  */
27866 #include <sys/types.h>
27867 #include <sys/socket.h>
27868 #include <netinet/in.h>
27869 #include <netdb.h>
27870 #define BUFSIZE (sizeof(struct hostent)+10)
27871 int
27872 main ()
27873 {
27874 struct hostent hent;
27875                 struct hostent *rhent; char buffer[BUFSIZE];
27876                 struct in_addr add;
27877                 size_t alen=sizeof(struct in_addr);
27878                 int bufsize=BUFSIZE;int h_errno;
27879                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27880                         alen, AF_INET, &hent, buffer, bufsize,
27881                         &rhent, &h_errno);
27882   ;
27883   return 0;
27884 }
27885 _ACEOF
27886 rm -f conftest.$ac_objext
27887 if { (ac_try="$ac_compile"
27888 case "(($ac_try" in
27889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890   *) ac_try_echo=$ac_try;;
27891 esac
27892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893   (eval "$ac_compile") 2>conftest.er1
27894   ac_status=$?
27895   grep -v '^ *+' conftest.er1 >conftest.err
27896   rm -f conftest.er1
27897   cat conftest.err >&5
27898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899   (exit $ac_status); } && {
27900          test -z "$ac_c_werror_flag" ||
27901          test ! -s conftest.err
27902        } && test -s conftest.$ac_objext; then
27903   ol_cv_func_gethostbyaddr_r_nargs8=yes
27904 else
27905   echo "$as_me: failed program was:" >&5
27906 sed 's/^/| /' conftest.$ac_ext >&5
27907
27908         ol_cv_func_gethostbyaddr_r_nargs8=no
27909 fi
27910
27911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27912
27913         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27914            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27915
27916                 ol_cv_func_gethostbyaddr_r_nargs=7
27917
27918         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27919              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27920
27921                 ol_cv_func_gethostbyaddr_r_nargs=8
27922
27923         else
27924                 ol_cv_func_gethostbyaddr_r_nargs=0
27925         fi
27926
27927 fi
27928 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27929 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27930   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27931
27932 cat >>confdefs.h <<_ACEOF
27933 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27934 _ACEOF
27935
27936   fi
27937
27938 else
27939         ol_cv_func_gethostbyaddr_r_nargs=0
27940 fi
27941
27942 ol_link_bdb=no
27943
27944 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27945         ol_cv_berkeley_db=no
27946
27947 for ac_header in db.h
27948 do
27949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27951   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27954   echo $ECHO_N "(cached) $ECHO_C" >&6
27955 fi
27956 ac_res=`eval echo '${'$as_ac_Header'}'`
27957                { echo "$as_me:$LINENO: result: $ac_res" >&5
27958 echo "${ECHO_T}$ac_res" >&6; }
27959 else
27960   # Is the header compilable?
27961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27963 cat >conftest.$ac_ext <<_ACEOF
27964 /* confdefs.h.  */
27965 _ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h.  */
27969 $ac_includes_default
27970 #include <$ac_header>
27971 _ACEOF
27972 rm -f conftest.$ac_objext
27973 if { (ac_try="$ac_compile"
27974 case "(($ac_try" in
27975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976   *) ac_try_echo=$ac_try;;
27977 esac
27978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979   (eval "$ac_compile") 2>conftest.er1
27980   ac_status=$?
27981   grep -v '^ *+' conftest.er1 >conftest.err
27982   rm -f conftest.er1
27983   cat conftest.err >&5
27984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985   (exit $ac_status); } && {
27986          test -z "$ac_c_werror_flag" ||
27987          test ! -s conftest.err
27988        } && test -s conftest.$ac_objext; then
27989   ac_header_compiler=yes
27990 else
27991   echo "$as_me: failed program was:" >&5
27992 sed 's/^/| /' conftest.$ac_ext >&5
27993
27994         ac_header_compiler=no
27995 fi
27996
27997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27999 echo "${ECHO_T}$ac_header_compiler" >&6; }
28000
28001 # Is the header present?
28002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28004 cat >conftest.$ac_ext <<_ACEOF
28005 /* confdefs.h.  */
28006 _ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h.  */
28010 #include <$ac_header>
28011 _ACEOF
28012 if { (ac_try="$ac_cpp conftest.$ac_ext"
28013 case "(($ac_try" in
28014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015   *) ac_try_echo=$ac_try;;
28016 esac
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28019   ac_status=$?
28020   grep -v '^ *+' conftest.er1 >conftest.err
28021   rm -f conftest.er1
28022   cat conftest.err >&5
28023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024   (exit $ac_status); } >/dev/null && {
28025          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28026          test ! -s conftest.err
28027        }; then
28028   ac_header_preproc=yes
28029 else
28030   echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28032
28033   ac_header_preproc=no
28034 fi
28035
28036 rm -f conftest.err conftest.$ac_ext
28037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28038 echo "${ECHO_T}$ac_header_preproc" >&6; }
28039
28040 # So?  What about this header?
28041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28042   yes:no: )
28043     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28047     ac_header_preproc=yes
28048     ;;
28049   no:yes:* )
28050     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28052     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28053 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28054     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28056     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28057 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28060     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28062     ( cat <<\_ASBOX
28063 ## --------------------------------------------- ##
28064 ## Report this to <http://www.openldap.org/its/> ##
28065 ## --------------------------------------------- ##
28066 _ASBOX
28067      ) | sed "s/^/$as_me: WARNING:     /" >&2
28068     ;;
28069 esac
28070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28073   echo $ECHO_N "(cached) $ECHO_C" >&6
28074 else
28075   eval "$as_ac_Header=\$ac_header_preproc"
28076 fi
28077 ac_res=`eval echo '${'$as_ac_Header'}'`
28078                { echo "$as_me:$LINENO: result: $ac_res" >&5
28079 echo "${ECHO_T}$ac_res" >&6; }
28080
28081 fi
28082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28083   cat >>confdefs.h <<_ACEOF
28084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28085 _ACEOF
28086
28087 fi
28088
28089 done
28090
28091 if test $ac_cv_header_db_h = yes; then
28092         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28093 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28094 if test "${ol_cv_bdb_major+set}" = set; then
28095   echo $ECHO_N "(cached) $ECHO_C" >&6
28096 else
28097
28098         cat >conftest.$ac_ext <<_ACEOF
28099
28100 #include <db.h>
28101 #ifndef DB_VERSION_MAJOR
28102 #       define DB_VERSION_MAJOR 1
28103 #endif
28104 __db_version DB_VERSION_MAJOR
28105
28106 _ACEOF
28107         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28108         ol_cv_bdb_major=${3}
28109
28110 fi
28111 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28112 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28113 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28114         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28115 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28116    { (exit 1); exit 1; }; } ;;
28117 esac
28118
28119 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28120 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28121 if test "${ol_cv_bdb_minor+set}" = set; then
28122   echo $ECHO_N "(cached) $ECHO_C" >&6
28123 else
28124
28125         cat >conftest.$ac_ext <<_ACEOF
28126
28127 #include <db.h>
28128 #ifndef DB_VERSION_MINOR
28129 #       define DB_VERSION_MINOR 0
28130 #endif
28131 __db_version DB_VERSION_MINOR
28132
28133 _ACEOF
28134         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28135         ol_cv_bdb_minor=${3}
28136
28137 fi
28138 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28139 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28140 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28141         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28142 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28143    { (exit 1); exit 1; }; } ;;
28144 esac
28145
28146         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28147 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28148 if test "${ol_cv_bdb_compat+set}" = set; then
28149   echo $ECHO_N "(cached) $ECHO_C" >&6
28150 else
28151
28152         cat >conftest.$ac_ext <<_ACEOF
28153 /* confdefs.h.  */
28154 _ACEOF
28155 cat confdefs.h >>conftest.$ac_ext
28156 cat >>conftest.$ac_ext <<_ACEOF
28157 /* end confdefs.h.  */
28158
28159 #include <db.h>
28160
28161  /* this check could be improved */
28162 #ifndef DB_VERSION_MAJOR
28163 #       define DB_VERSION_MAJOR 1
28164 #endif
28165 #ifndef DB_VERSION_MINOR
28166 #       define DB_VERSION_MINOR 0
28167 #endif
28168
28169 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28170
28171 /* require 4.4 or later */
28172 #if DB_VERSION_MM >= 0x0404
28173         __db_version_compat
28174 #endif
28175
28176 _ACEOF
28177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28178   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28179   ol_cv_bdb_compat=yes
28180 else
28181   ol_cv_bdb_compat=no
28182 fi
28183 rm -f conftest*
28184
28185 fi
28186 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28187 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28188
28189
28190         if test $ol_cv_bdb_compat != yes ; then
28191                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28192 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28193    { (exit 1); exit 1; }; }
28194         fi
28195
28196         ol_cv_lib_db=no
28197
28198 if test $ol_cv_bdb_major = 5 ; then
28199         if test $ol_cv_lib_db = no ; then
28200         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
28201 echo $ECHO_N "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28202 if test "${ol_cv_db_db_5_dot_m+set}" = set; then
28203   echo $ECHO_N "(cached) $ECHO_C" >&6
28204 else
28205
28206         ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
28207         ol_LIBS=$LIBS
28208         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28209
28210         cat >conftest.$ac_ext <<_ACEOF
28211 /* confdefs.h.  */
28212 _ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h.  */
28216
28217 #ifdef HAVE_DB_185_H
28218 # include <db_185.h>
28219 #else
28220 # include <db.h>
28221 #endif
28222
28223 #ifndef DB_VERSION_MAJOR
28224 # define DB_VERSION_MAJOR 1
28225 #endif
28226
28227 #ifndef NULL
28228 #define NULL ((void*)0)
28229 #endif
28230
28231 int
28232 main ()
28233 {
28234
28235 #if DB_VERSION_MAJOR > 2
28236         db_env_create( NULL, 0 );
28237 #elif DB_VERSION_MAJOR > 1
28238         db_appexit( NULL );
28239 #else
28240         (void) dbopen( NULL, 0, 0, 0, NULL);
28241 #endif
28242
28243   ;
28244   return 0;
28245 }
28246 _ACEOF
28247 rm -f conftest.$ac_objext conftest$ac_exeext
28248 if { (ac_try="$ac_link"
28249 case "(($ac_try" in
28250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251   *) ac_try_echo=$ac_try;;
28252 esac
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254   (eval "$ac_link") 2>conftest.er1
28255   ac_status=$?
28256   grep -v '^ *+' conftest.er1 >conftest.err
28257   rm -f conftest.er1
28258   cat conftest.err >&5
28259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260   (exit $ac_status); } && {
28261          test -z "$ac_c_werror_flag" ||
28262          test ! -s conftest.err
28263        } && test -s conftest$ac_exeext &&
28264        $as_test_x conftest$ac_exeext; then
28265   ol_cv_db_db_5_dot_m=yes
28266 else
28267   echo "$as_me: failed program was:" >&5
28268 sed 's/^/| /' conftest.$ac_ext >&5
28269
28270         ol_cv_db_db_5_dot_m=no
28271 fi
28272
28273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28274       conftest$ac_exeext conftest.$ac_ext
28275
28276         LIBS="$ol_LIBS"
28277
28278 fi
28279 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5_dot_m" >&5
28280 echo "${ECHO_T}$ol_cv_db_db_5_dot_m" >&6; }
28281
28282         if test $ol_cv_db_db_5_dot_m = yes ; then
28283                 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
28284         fi
28285 fi
28286
28287         if test $ol_cv_lib_db = no ; then
28288         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
28289 echo $ECHO_N "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28290 if test "${ol_cv_db_db5m+set}" = set; then
28291   echo $ECHO_N "(cached) $ECHO_C" >&6
28292 else
28293
28294         ol_DB_LIB=-ldb5$ol_cv_bdb_minor
28295         ol_LIBS=$LIBS
28296         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28297
28298         cat >conftest.$ac_ext <<_ACEOF
28299 /* confdefs.h.  */
28300 _ACEOF
28301 cat confdefs.h >>conftest.$ac_ext
28302 cat >>conftest.$ac_ext <<_ACEOF
28303 /* end confdefs.h.  */
28304
28305 #ifdef HAVE_DB_185_H
28306 # include <db_185.h>
28307 #else
28308 # include <db.h>
28309 #endif
28310
28311 #ifndef DB_VERSION_MAJOR
28312 # define DB_VERSION_MAJOR 1
28313 #endif
28314
28315 #ifndef NULL
28316 #define NULL ((void*)0)
28317 #endif
28318
28319 int
28320 main ()
28321 {
28322
28323 #if DB_VERSION_MAJOR > 2
28324         db_env_create( NULL, 0 );
28325 #elif DB_VERSION_MAJOR > 1
28326         db_appexit( NULL );
28327 #else
28328         (void) dbopen( NULL, 0, 0, 0, NULL);
28329 #endif
28330
28331   ;
28332   return 0;
28333 }
28334 _ACEOF
28335 rm -f conftest.$ac_objext conftest$ac_exeext
28336 if { (ac_try="$ac_link"
28337 case "(($ac_try" in
28338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28339   *) ac_try_echo=$ac_try;;
28340 esac
28341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28342   (eval "$ac_link") 2>conftest.er1
28343   ac_status=$?
28344   grep -v '^ *+' conftest.er1 >conftest.err
28345   rm -f conftest.er1
28346   cat conftest.err >&5
28347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348   (exit $ac_status); } && {
28349          test -z "$ac_c_werror_flag" ||
28350          test ! -s conftest.err
28351        } && test -s conftest$ac_exeext &&
28352        $as_test_x conftest$ac_exeext; then
28353   ol_cv_db_db5m=yes
28354 else
28355   echo "$as_me: failed program was:" >&5
28356 sed 's/^/| /' conftest.$ac_ext >&5
28357
28358         ol_cv_db_db5m=no
28359 fi
28360
28361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28362       conftest$ac_exeext conftest.$ac_ext
28363
28364         LIBS="$ol_LIBS"
28365
28366 fi
28367 { echo "$as_me:$LINENO: result: $ol_cv_db_db5m" >&5
28368 echo "${ECHO_T}$ol_cv_db_db5m" >&6; }
28369
28370         if test $ol_cv_db_db5m = yes ; then
28371                 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
28372         fi
28373 fi
28374
28375         if test $ol_cv_lib_db = no ; then
28376         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
28377 echo $ECHO_N "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28378 if test "${ol_cv_db_db_5m+set}" = set; then
28379   echo $ECHO_N "(cached) $ECHO_C" >&6
28380 else
28381
28382         ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
28383         ol_LIBS=$LIBS
28384         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28385
28386         cat >conftest.$ac_ext <<_ACEOF
28387 /* confdefs.h.  */
28388 _ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h.  */
28392
28393 #ifdef HAVE_DB_185_H
28394 # include <db_185.h>
28395 #else
28396 # include <db.h>
28397 #endif
28398
28399 #ifndef DB_VERSION_MAJOR
28400 # define DB_VERSION_MAJOR 1
28401 #endif
28402
28403 #ifndef NULL
28404 #define NULL ((void*)0)
28405 #endif
28406
28407 int
28408 main ()
28409 {
28410
28411 #if DB_VERSION_MAJOR > 2
28412         db_env_create( NULL, 0 );
28413 #elif DB_VERSION_MAJOR > 1
28414         db_appexit( NULL );
28415 #else
28416         (void) dbopen( NULL, 0, 0, 0, NULL);
28417 #endif
28418
28419   ;
28420   return 0;
28421 }
28422 _ACEOF
28423 rm -f conftest.$ac_objext conftest$ac_exeext
28424 if { (ac_try="$ac_link"
28425 case "(($ac_try" in
28426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427   *) ac_try_echo=$ac_try;;
28428 esac
28429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430   (eval "$ac_link") 2>conftest.er1
28431   ac_status=$?
28432   grep -v '^ *+' conftest.er1 >conftest.err
28433   rm -f conftest.er1
28434   cat conftest.err >&5
28435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436   (exit $ac_status); } && {
28437          test -z "$ac_c_werror_flag" ||
28438          test ! -s conftest.err
28439        } && test -s conftest$ac_exeext &&
28440        $as_test_x conftest$ac_exeext; then
28441   ol_cv_db_db_5m=yes
28442 else
28443   echo "$as_me: failed program was:" >&5
28444 sed 's/^/| /' conftest.$ac_ext >&5
28445
28446         ol_cv_db_db_5m=no
28447 fi
28448
28449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28450       conftest$ac_exeext conftest.$ac_ext
28451
28452         LIBS="$ol_LIBS"
28453
28454 fi
28455 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5m" >&5
28456 echo "${ECHO_T}$ol_cv_db_db_5m" >&6; }
28457
28458         if test $ol_cv_db_db_5m = yes ; then
28459                 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
28460         fi
28461 fi
28462
28463         if test $ol_cv_lib_db = no ; then
28464         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
28465 echo $ECHO_N "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28466 if test "${ol_cv_db_db_5_m+set}" = set; then
28467   echo $ECHO_N "(cached) $ECHO_C" >&6
28468 else
28469
28470         ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
28471         ol_LIBS=$LIBS
28472         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28473
28474         cat >conftest.$ac_ext <<_ACEOF
28475 /* confdefs.h.  */
28476 _ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h.  */
28480
28481 #ifdef HAVE_DB_185_H
28482 # include <db_185.h>
28483 #else
28484 # include <db.h>
28485 #endif
28486
28487 #ifndef DB_VERSION_MAJOR
28488 # define DB_VERSION_MAJOR 1
28489 #endif
28490
28491 #ifndef NULL
28492 #define NULL ((void*)0)
28493 #endif
28494
28495 int
28496 main ()
28497 {
28498
28499 #if DB_VERSION_MAJOR > 2
28500         db_env_create( NULL, 0 );
28501 #elif DB_VERSION_MAJOR > 1
28502         db_appexit( NULL );
28503 #else
28504         (void) dbopen( NULL, 0, 0, 0, NULL);
28505 #endif
28506
28507   ;
28508   return 0;
28509 }
28510 _ACEOF
28511 rm -f conftest.$ac_objext conftest$ac_exeext
28512 if { (ac_try="$ac_link"
28513 case "(($ac_try" in
28514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515   *) ac_try_echo=$ac_try;;
28516 esac
28517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518   (eval "$ac_link") 2>conftest.er1
28519   ac_status=$?
28520   grep -v '^ *+' conftest.er1 >conftest.err
28521   rm -f conftest.er1
28522   cat conftest.err >&5
28523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524   (exit $ac_status); } && {
28525          test -z "$ac_c_werror_flag" ||
28526          test ! -s conftest.err
28527        } && test -s conftest$ac_exeext &&
28528        $as_test_x conftest$ac_exeext; then
28529   ol_cv_db_db_5_m=yes
28530 else
28531   echo "$as_me: failed program was:" >&5
28532 sed 's/^/| /' conftest.$ac_ext >&5
28533
28534         ol_cv_db_db_5_m=no
28535 fi
28536
28537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28538       conftest$ac_exeext conftest.$ac_ext
28539
28540         LIBS="$ol_LIBS"
28541
28542 fi
28543 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5_m" >&5
28544 echo "${ECHO_T}$ol_cv_db_db_5_m" >&6; }
28545
28546         if test $ol_cv_db_db_5_m = yes ; then
28547                 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
28548         fi
28549 fi
28550
28551         if test $ol_cv_lib_db = no ; then
28552         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5)" >&5
28553 echo $ECHO_N "checking for Berkeley DB link (-ldb-5)... $ECHO_C" >&6; }
28554 if test "${ol_cv_db_db_5+set}" = set; then
28555   echo $ECHO_N "(cached) $ECHO_C" >&6
28556 else
28557
28558         ol_DB_LIB=-ldb-5
28559         ol_LIBS=$LIBS
28560         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28561
28562         cat >conftest.$ac_ext <<_ACEOF
28563 /* confdefs.h.  */
28564 _ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h.  */
28568
28569 #ifdef HAVE_DB_185_H
28570 # include <db_185.h>
28571 #else
28572 # include <db.h>
28573 #endif
28574
28575 #ifndef DB_VERSION_MAJOR
28576 # define DB_VERSION_MAJOR 1
28577 #endif
28578
28579 #ifndef NULL
28580 #define NULL ((void*)0)
28581 #endif
28582
28583 int
28584 main ()
28585 {
28586
28587 #if DB_VERSION_MAJOR > 2
28588         db_env_create( NULL, 0 );
28589 #elif DB_VERSION_MAJOR > 1
28590         db_appexit( NULL );
28591 #else
28592         (void) dbopen( NULL, 0, 0, 0, NULL);
28593 #endif
28594
28595   ;
28596   return 0;
28597 }
28598 _ACEOF
28599 rm -f conftest.$ac_objext conftest$ac_exeext
28600 if { (ac_try="$ac_link"
28601 case "(($ac_try" in
28602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603   *) ac_try_echo=$ac_try;;
28604 esac
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606   (eval "$ac_link") 2>conftest.er1
28607   ac_status=$?
28608   grep -v '^ *+' conftest.er1 >conftest.err
28609   rm -f conftest.er1
28610   cat conftest.err >&5
28611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612   (exit $ac_status); } && {
28613          test -z "$ac_c_werror_flag" ||
28614          test ! -s conftest.err
28615        } && test -s conftest$ac_exeext &&
28616        $as_test_x conftest$ac_exeext; then
28617   ol_cv_db_db_5=yes
28618 else
28619   echo "$as_me: failed program was:" >&5
28620 sed 's/^/| /' conftest.$ac_ext >&5
28621
28622         ol_cv_db_db_5=no
28623 fi
28624
28625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28626       conftest$ac_exeext conftest.$ac_ext
28627
28628         LIBS="$ol_LIBS"
28629
28630 fi
28631 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5" >&5
28632 echo "${ECHO_T}$ol_cv_db_db_5" >&6; }
28633
28634         if test $ol_cv_db_db_5 = yes ; then
28635                 ol_cv_lib_db=-ldb-5
28636         fi
28637 fi
28638
28639         if test $ol_cv_lib_db = no ; then
28640         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5)" >&5
28641 echo $ECHO_N "checking for Berkeley DB link (-ldb5)... $ECHO_C" >&6; }
28642 if test "${ol_cv_db_db5+set}" = set; then
28643   echo $ECHO_N "(cached) $ECHO_C" >&6
28644 else
28645
28646         ol_DB_LIB=-ldb5
28647         ol_LIBS=$LIBS
28648         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28649
28650         cat >conftest.$ac_ext <<_ACEOF
28651 /* confdefs.h.  */
28652 _ACEOF
28653 cat confdefs.h >>conftest.$ac_ext
28654 cat >>conftest.$ac_ext <<_ACEOF
28655 /* end confdefs.h.  */
28656
28657 #ifdef HAVE_DB_185_H
28658 # include <db_185.h>
28659 #else
28660 # include <db.h>
28661 #endif
28662
28663 #ifndef DB_VERSION_MAJOR
28664 # define DB_VERSION_MAJOR 1
28665 #endif
28666
28667 #ifndef NULL
28668 #define NULL ((void*)0)
28669 #endif
28670
28671 int
28672 main ()
28673 {
28674
28675 #if DB_VERSION_MAJOR > 2
28676         db_env_create( NULL, 0 );
28677 #elif DB_VERSION_MAJOR > 1
28678         db_appexit( NULL );
28679 #else
28680         (void) dbopen( NULL, 0, 0, 0, NULL);
28681 #endif
28682
28683   ;
28684   return 0;
28685 }
28686 _ACEOF
28687 rm -f conftest.$ac_objext conftest$ac_exeext
28688 if { (ac_try="$ac_link"
28689 case "(($ac_try" in
28690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691   *) ac_try_echo=$ac_try;;
28692 esac
28693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28694   (eval "$ac_link") 2>conftest.er1
28695   ac_status=$?
28696   grep -v '^ *+' conftest.er1 >conftest.err
28697   rm -f conftest.er1
28698   cat conftest.err >&5
28699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700   (exit $ac_status); } && {
28701          test -z "$ac_c_werror_flag" ||
28702          test ! -s conftest.err
28703        } && test -s conftest$ac_exeext &&
28704        $as_test_x conftest$ac_exeext; then
28705   ol_cv_db_db5=yes
28706 else
28707   echo "$as_me: failed program was:" >&5
28708 sed 's/^/| /' conftest.$ac_ext >&5
28709
28710         ol_cv_db_db5=no
28711 fi
28712
28713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28714       conftest$ac_exeext conftest.$ac_ext
28715
28716         LIBS="$ol_LIBS"
28717
28718 fi
28719 { echo "$as_me:$LINENO: result: $ol_cv_db_db5" >&5
28720 echo "${ECHO_T}$ol_cv_db_db5" >&6; }
28721
28722         if test $ol_cv_db_db5 = yes ; then
28723                 ol_cv_lib_db=-ldb5
28724         fi
28725 fi
28726
28727 elif test $ol_cv_bdb_major = 4 ; then
28728         if test $ol_cv_lib_db = no ; then
28729         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28730 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28731 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28732   echo $ECHO_N "(cached) $ECHO_C" >&6
28733 else
28734
28735         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28736         ol_LIBS=$LIBS
28737         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28738
28739         cat >conftest.$ac_ext <<_ACEOF
28740 /* confdefs.h.  */
28741 _ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h.  */
28745
28746 #ifdef HAVE_DB_185_H
28747 # include <db_185.h>
28748 #else
28749 # include <db.h>
28750 #endif
28751
28752 #ifndef DB_VERSION_MAJOR
28753 # define DB_VERSION_MAJOR 1
28754 #endif
28755
28756 #ifndef NULL
28757 #define NULL ((void*)0)
28758 #endif
28759
28760 int
28761 main ()
28762 {
28763
28764 #if DB_VERSION_MAJOR > 2
28765         db_env_create( NULL, 0 );
28766 #elif DB_VERSION_MAJOR > 1
28767         db_appexit( NULL );
28768 #else
28769         (void) dbopen( NULL, 0, 0, 0, NULL);
28770 #endif
28771
28772   ;
28773   return 0;
28774 }
28775 _ACEOF
28776 rm -f conftest.$ac_objext conftest$ac_exeext
28777 if { (ac_try="$ac_link"
28778 case "(($ac_try" in
28779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28780   *) ac_try_echo=$ac_try;;
28781 esac
28782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28783   (eval "$ac_link") 2>conftest.er1
28784   ac_status=$?
28785   grep -v '^ *+' conftest.er1 >conftest.err
28786   rm -f conftest.er1
28787   cat conftest.err >&5
28788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789   (exit $ac_status); } && {
28790          test -z "$ac_c_werror_flag" ||
28791          test ! -s conftest.err
28792        } && test -s conftest$ac_exeext &&
28793        $as_test_x conftest$ac_exeext; then
28794   ol_cv_db_db_4_dot_m=yes
28795 else
28796   echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28798
28799         ol_cv_db_db_4_dot_m=no
28800 fi
28801
28802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28803       conftest$ac_exeext conftest.$ac_ext
28804
28805         LIBS="$ol_LIBS"
28806
28807 fi
28808 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28809 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28810
28811         if test $ol_cv_db_db_4_dot_m = yes ; then
28812                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28813         fi
28814 fi
28815
28816         if test $ol_cv_lib_db = no ; then
28817         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28818 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28819 if test "${ol_cv_db_db4m+set}" = set; then
28820   echo $ECHO_N "(cached) $ECHO_C" >&6
28821 else
28822
28823         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28824         ol_LIBS=$LIBS
28825         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28826
28827         cat >conftest.$ac_ext <<_ACEOF
28828 /* confdefs.h.  */
28829 _ACEOF
28830 cat confdefs.h >>conftest.$ac_ext
28831 cat >>conftest.$ac_ext <<_ACEOF
28832 /* end confdefs.h.  */
28833
28834 #ifdef HAVE_DB_185_H
28835 # include <db_185.h>
28836 #else
28837 # include <db.h>
28838 #endif
28839
28840 #ifndef DB_VERSION_MAJOR
28841 # define DB_VERSION_MAJOR 1
28842 #endif
28843
28844 #ifndef NULL
28845 #define NULL ((void*)0)
28846 #endif
28847
28848 int
28849 main ()
28850 {
28851
28852 #if DB_VERSION_MAJOR > 2
28853         db_env_create( NULL, 0 );
28854 #elif DB_VERSION_MAJOR > 1
28855         db_appexit( NULL );
28856 #else
28857         (void) dbopen( NULL, 0, 0, 0, NULL);
28858 #endif
28859
28860   ;
28861   return 0;
28862 }
28863 _ACEOF
28864 rm -f conftest.$ac_objext conftest$ac_exeext
28865 if { (ac_try="$ac_link"
28866 case "(($ac_try" in
28867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868   *) ac_try_echo=$ac_try;;
28869 esac
28870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871   (eval "$ac_link") 2>conftest.er1
28872   ac_status=$?
28873   grep -v '^ *+' conftest.er1 >conftest.err
28874   rm -f conftest.er1
28875   cat conftest.err >&5
28876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877   (exit $ac_status); } && {
28878          test -z "$ac_c_werror_flag" ||
28879          test ! -s conftest.err
28880        } && test -s conftest$ac_exeext &&
28881        $as_test_x conftest$ac_exeext; then
28882   ol_cv_db_db4m=yes
28883 else
28884   echo "$as_me: failed program was:" >&5
28885 sed 's/^/| /' conftest.$ac_ext >&5
28886
28887         ol_cv_db_db4m=no
28888 fi
28889
28890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28891       conftest$ac_exeext conftest.$ac_ext
28892
28893         LIBS="$ol_LIBS"
28894
28895 fi
28896 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28897 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28898
28899         if test $ol_cv_db_db4m = yes ; then
28900                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28901         fi
28902 fi
28903
28904         if test $ol_cv_lib_db = no ; then
28905         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28906 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28907 if test "${ol_cv_db_db_4m+set}" = set; then
28908   echo $ECHO_N "(cached) $ECHO_C" >&6
28909 else
28910
28911         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28912         ol_LIBS=$LIBS
28913         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28914
28915         cat >conftest.$ac_ext <<_ACEOF
28916 /* confdefs.h.  */
28917 _ACEOF
28918 cat confdefs.h >>conftest.$ac_ext
28919 cat >>conftest.$ac_ext <<_ACEOF
28920 /* end confdefs.h.  */
28921
28922 #ifdef HAVE_DB_185_H
28923 # include <db_185.h>
28924 #else
28925 # include <db.h>
28926 #endif
28927
28928 #ifndef DB_VERSION_MAJOR
28929 # define DB_VERSION_MAJOR 1
28930 #endif
28931
28932 #ifndef NULL
28933 #define NULL ((void*)0)
28934 #endif
28935
28936 int
28937 main ()
28938 {
28939
28940 #if DB_VERSION_MAJOR > 2
28941         db_env_create( NULL, 0 );
28942 #elif DB_VERSION_MAJOR > 1
28943         db_appexit( NULL );
28944 #else
28945         (void) dbopen( NULL, 0, 0, 0, NULL);
28946 #endif
28947
28948   ;
28949   return 0;
28950 }
28951 _ACEOF
28952 rm -f conftest.$ac_objext conftest$ac_exeext
28953 if { (ac_try="$ac_link"
28954 case "(($ac_try" in
28955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956   *) ac_try_echo=$ac_try;;
28957 esac
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959   (eval "$ac_link") 2>conftest.er1
28960   ac_status=$?
28961   grep -v '^ *+' conftest.er1 >conftest.err
28962   rm -f conftest.er1
28963   cat conftest.err >&5
28964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965   (exit $ac_status); } && {
28966          test -z "$ac_c_werror_flag" ||
28967          test ! -s conftest.err
28968        } && test -s conftest$ac_exeext &&
28969        $as_test_x conftest$ac_exeext; then
28970   ol_cv_db_db_4m=yes
28971 else
28972   echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28974
28975         ol_cv_db_db_4m=no
28976 fi
28977
28978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28979       conftest$ac_exeext conftest.$ac_ext
28980
28981         LIBS="$ol_LIBS"
28982
28983 fi
28984 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28985 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28986
28987         if test $ol_cv_db_db_4m = yes ; then
28988                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28989         fi
28990 fi
28991
28992         if test $ol_cv_lib_db = no ; then
28993         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28994 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28995 if test "${ol_cv_db_db_4_m+set}" = set; then
28996   echo $ECHO_N "(cached) $ECHO_C" >&6
28997 else
28998
28999         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
29000         ol_LIBS=$LIBS
29001         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29002
29003         cat >conftest.$ac_ext <<_ACEOF
29004 /* confdefs.h.  */
29005 _ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h.  */
29009
29010 #ifdef HAVE_DB_185_H
29011 # include <db_185.h>
29012 #else
29013 # include <db.h>
29014 #endif
29015
29016 #ifndef DB_VERSION_MAJOR
29017 # define DB_VERSION_MAJOR 1
29018 #endif
29019
29020 #ifndef NULL
29021 #define NULL ((void*)0)
29022 #endif
29023
29024 int
29025 main ()
29026 {
29027
29028 #if DB_VERSION_MAJOR > 2
29029         db_env_create( NULL, 0 );
29030 #elif DB_VERSION_MAJOR > 1
29031         db_appexit( NULL );
29032 #else
29033         (void) dbopen( NULL, 0, 0, 0, NULL);
29034 #endif
29035
29036   ;
29037   return 0;
29038 }
29039 _ACEOF
29040 rm -f conftest.$ac_objext conftest$ac_exeext
29041 if { (ac_try="$ac_link"
29042 case "(($ac_try" in
29043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29044   *) ac_try_echo=$ac_try;;
29045 esac
29046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29047   (eval "$ac_link") 2>conftest.er1
29048   ac_status=$?
29049   grep -v '^ *+' conftest.er1 >conftest.err
29050   rm -f conftest.er1
29051   cat conftest.err >&5
29052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053   (exit $ac_status); } && {
29054          test -z "$ac_c_werror_flag" ||
29055          test ! -s conftest.err
29056        } && test -s conftest$ac_exeext &&
29057        $as_test_x conftest$ac_exeext; then
29058   ol_cv_db_db_4_m=yes
29059 else
29060   echo "$as_me: failed program was:" >&5
29061 sed 's/^/| /' conftest.$ac_ext >&5
29062
29063         ol_cv_db_db_4_m=no
29064 fi
29065
29066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29067       conftest$ac_exeext conftest.$ac_ext
29068
29069         LIBS="$ol_LIBS"
29070
29071 fi
29072 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
29073 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
29074
29075         if test $ol_cv_db_db_4_m = yes ; then
29076                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
29077         fi
29078 fi
29079
29080         if test $ol_cv_lib_db = no ; then
29081         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29082 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
29083 if test "${ol_cv_db_db_4+set}" = set; then
29084   echo $ECHO_N "(cached) $ECHO_C" >&6
29085 else
29086
29087         ol_DB_LIB=-ldb-4
29088         ol_LIBS=$LIBS
29089         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29090
29091         cat >conftest.$ac_ext <<_ACEOF
29092 /* confdefs.h.  */
29093 _ACEOF
29094 cat confdefs.h >>conftest.$ac_ext
29095 cat >>conftest.$ac_ext <<_ACEOF
29096 /* end confdefs.h.  */
29097
29098 #ifdef HAVE_DB_185_H
29099 # include <db_185.h>
29100 #else
29101 # include <db.h>
29102 #endif
29103
29104 #ifndef DB_VERSION_MAJOR
29105 # define DB_VERSION_MAJOR 1
29106 #endif
29107
29108 #ifndef NULL
29109 #define NULL ((void*)0)
29110 #endif
29111
29112 int
29113 main ()
29114 {
29115
29116 #if DB_VERSION_MAJOR > 2
29117         db_env_create( NULL, 0 );
29118 #elif DB_VERSION_MAJOR > 1
29119         db_appexit( NULL );
29120 #else
29121         (void) dbopen( NULL, 0, 0, 0, NULL);
29122 #endif
29123
29124   ;
29125   return 0;
29126 }
29127 _ACEOF
29128 rm -f conftest.$ac_objext conftest$ac_exeext
29129 if { (ac_try="$ac_link"
29130 case "(($ac_try" in
29131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132   *) ac_try_echo=$ac_try;;
29133 esac
29134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135   (eval "$ac_link") 2>conftest.er1
29136   ac_status=$?
29137   grep -v '^ *+' conftest.er1 >conftest.err
29138   rm -f conftest.er1
29139   cat conftest.err >&5
29140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141   (exit $ac_status); } && {
29142          test -z "$ac_c_werror_flag" ||
29143          test ! -s conftest.err
29144        } && test -s conftest$ac_exeext &&
29145        $as_test_x conftest$ac_exeext; then
29146   ol_cv_db_db_4=yes
29147 else
29148   echo "$as_me: failed program was:" >&5
29149 sed 's/^/| /' conftest.$ac_ext >&5
29150
29151         ol_cv_db_db_4=no
29152 fi
29153
29154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29155       conftest$ac_exeext conftest.$ac_ext
29156
29157         LIBS="$ol_LIBS"
29158
29159 fi
29160 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29161 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
29162
29163         if test $ol_cv_db_db_4 = yes ; then
29164                 ol_cv_lib_db=-ldb-4
29165         fi
29166 fi
29167
29168         if test $ol_cv_lib_db = no ; then
29169         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29170 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
29171 if test "${ol_cv_db_db4+set}" = set; then
29172   echo $ECHO_N "(cached) $ECHO_C" >&6
29173 else
29174
29175         ol_DB_LIB=-ldb4
29176         ol_LIBS=$LIBS
29177         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29178
29179         cat >conftest.$ac_ext <<_ACEOF
29180 /* confdefs.h.  */
29181 _ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h.  */
29185
29186 #ifdef HAVE_DB_185_H
29187 # include <db_185.h>
29188 #else
29189 # include <db.h>
29190 #endif
29191
29192 #ifndef DB_VERSION_MAJOR
29193 # define DB_VERSION_MAJOR 1
29194 #endif
29195
29196 #ifndef NULL
29197 #define NULL ((void*)0)
29198 #endif
29199
29200 int
29201 main ()
29202 {
29203
29204 #if DB_VERSION_MAJOR > 2
29205         db_env_create( NULL, 0 );
29206 #elif DB_VERSION_MAJOR > 1
29207         db_appexit( NULL );
29208 #else
29209         (void) dbopen( NULL, 0, 0, 0, NULL);
29210 #endif
29211
29212   ;
29213   return 0;
29214 }
29215 _ACEOF
29216 rm -f conftest.$ac_objext conftest$ac_exeext
29217 if { (ac_try="$ac_link"
29218 case "(($ac_try" in
29219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220   *) ac_try_echo=$ac_try;;
29221 esac
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223   (eval "$ac_link") 2>conftest.er1
29224   ac_status=$?
29225   grep -v '^ *+' conftest.er1 >conftest.err
29226   rm -f conftest.er1
29227   cat conftest.err >&5
29228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229   (exit $ac_status); } && {
29230          test -z "$ac_c_werror_flag" ||
29231          test ! -s conftest.err
29232        } && test -s conftest$ac_exeext &&
29233        $as_test_x conftest$ac_exeext; then
29234   ol_cv_db_db4=yes
29235 else
29236   echo "$as_me: failed program was:" >&5
29237 sed 's/^/| /' conftest.$ac_ext >&5
29238
29239         ol_cv_db_db4=no
29240 fi
29241
29242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29243       conftest$ac_exeext conftest.$ac_ext
29244
29245         LIBS="$ol_LIBS"
29246
29247 fi
29248 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29249 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
29250
29251         if test $ol_cv_db_db4 = yes ; then
29252                 ol_cv_lib_db=-ldb4
29253         fi
29254 fi
29255
29256 fi
29257 if test $ol_cv_lib_db = no ; then
29258         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29259 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
29260 if test "${ol_cv_db_db+set}" = set; then
29261   echo $ECHO_N "(cached) $ECHO_C" >&6
29262 else
29263
29264         ol_DB_LIB=-ldb
29265         ol_LIBS=$LIBS
29266         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29267
29268         cat >conftest.$ac_ext <<_ACEOF
29269 /* confdefs.h.  */
29270 _ACEOF
29271 cat confdefs.h >>conftest.$ac_ext
29272 cat >>conftest.$ac_ext <<_ACEOF
29273 /* end confdefs.h.  */
29274
29275 #ifdef HAVE_DB_185_H
29276 # include <db_185.h>
29277 #else
29278 # include <db.h>
29279 #endif
29280
29281 #ifndef DB_VERSION_MAJOR
29282 # define DB_VERSION_MAJOR 1
29283 #endif
29284
29285 #ifndef NULL
29286 #define NULL ((void*)0)
29287 #endif
29288
29289 int
29290 main ()
29291 {
29292
29293 #if DB_VERSION_MAJOR > 2
29294         db_env_create( NULL, 0 );
29295 #elif DB_VERSION_MAJOR > 1
29296         db_appexit( NULL );
29297 #else
29298         (void) dbopen( NULL, 0, 0, 0, NULL);
29299 #endif
29300
29301   ;
29302   return 0;
29303 }
29304 _ACEOF
29305 rm -f conftest.$ac_objext conftest$ac_exeext
29306 if { (ac_try="$ac_link"
29307 case "(($ac_try" in
29308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309   *) ac_try_echo=$ac_try;;
29310 esac
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312   (eval "$ac_link") 2>conftest.er1
29313   ac_status=$?
29314   grep -v '^ *+' conftest.er1 >conftest.err
29315   rm -f conftest.er1
29316   cat conftest.err >&5
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); } && {
29319          test -z "$ac_c_werror_flag" ||
29320          test ! -s conftest.err
29321        } && test -s conftest$ac_exeext &&
29322        $as_test_x conftest$ac_exeext; then
29323   ol_cv_db_db=yes
29324 else
29325   echo "$as_me: failed program was:" >&5
29326 sed 's/^/| /' conftest.$ac_ext >&5
29327
29328         ol_cv_db_db=no
29329 fi
29330
29331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29332       conftest$ac_exeext conftest.$ac_ext
29333
29334         LIBS="$ol_LIBS"
29335
29336 fi
29337 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29338 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29339
29340         if test $ol_cv_db_db = yes ; then
29341                 ol_cv_lib_db=-ldb
29342         fi
29343 fi
29344
29345 if test $ol_cv_lib_db = no ; then
29346         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29347 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29348 if test "${ol_cv_db_none+set}" = set; then
29349   echo $ECHO_N "(cached) $ECHO_C" >&6
29350 else
29351
29352         ol_DB_LIB=
29353         ol_LIBS=$LIBS
29354         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29355
29356         cat >conftest.$ac_ext <<_ACEOF
29357 /* confdefs.h.  */
29358 _ACEOF
29359 cat confdefs.h >>conftest.$ac_ext
29360 cat >>conftest.$ac_ext <<_ACEOF
29361 /* end confdefs.h.  */
29362
29363 #ifdef HAVE_DB_185_H
29364 # include <db_185.h>
29365 #else
29366 # include <db.h>
29367 #endif
29368
29369 #ifndef DB_VERSION_MAJOR
29370 # define DB_VERSION_MAJOR 1
29371 #endif
29372
29373 #ifndef NULL
29374 #define NULL ((void*)0)
29375 #endif
29376
29377 int
29378 main ()
29379 {
29380
29381 #if DB_VERSION_MAJOR > 2
29382         db_env_create( NULL, 0 );
29383 #elif DB_VERSION_MAJOR > 1
29384         db_appexit( NULL );
29385 #else
29386         (void) dbopen( NULL, 0, 0, 0, NULL);
29387 #endif
29388
29389   ;
29390   return 0;
29391 }
29392 _ACEOF
29393 rm -f conftest.$ac_objext conftest$ac_exeext
29394 if { (ac_try="$ac_link"
29395 case "(($ac_try" in
29396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397   *) ac_try_echo=$ac_try;;
29398 esac
29399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400   (eval "$ac_link") 2>conftest.er1
29401   ac_status=$?
29402   grep -v '^ *+' conftest.er1 >conftest.err
29403   rm -f conftest.er1
29404   cat conftest.err >&5
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); } && {
29407          test -z "$ac_c_werror_flag" ||
29408          test ! -s conftest.err
29409        } && test -s conftest$ac_exeext &&
29410        $as_test_x conftest$ac_exeext; then
29411   ol_cv_db_none=yes
29412 else
29413   echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29415
29416         ol_cv_db_none=no
29417 fi
29418
29419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29420       conftest$ac_exeext conftest.$ac_ext
29421
29422         LIBS="$ol_LIBS"
29423
29424 fi
29425 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29426 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29427
29428         if test $ol_cv_db_none = yes ; then
29429                 ol_cv_lib_db=yes
29430         fi
29431 fi
29432
29433
29434         if test "$ol_cv_lib_db" != no ; then
29435                 ol_cv_berkeley_db=yes
29436                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29437 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29438 if test "${ol_cv_berkeley_db_version+set}" = set; then
29439   echo $ECHO_N "(cached) $ECHO_C" >&6
29440 else
29441
29442         ol_LIBS="$LIBS"
29443         LIBS="$LTHREAD_LIBS $LIBS"
29444         if test $ol_cv_lib_db != yes ; then
29445                 LIBS="$ol_cv_lib_db $LIBS"
29446         fi
29447
29448         if test "$cross_compiling" = yes; then
29449   ol_cv_berkeley_db_version=cross
29450 else
29451   cat >conftest.$ac_ext <<_ACEOF
29452 /* confdefs.h.  */
29453 _ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h.  */
29457
29458 #ifdef HAVE_DB_185_H
29459         choke me;
29460 #else
29461 #include <db.h>
29462 #endif
29463 #ifndef DB_VERSION_MAJOR
29464 # define DB_VERSION_MAJOR 1
29465 #endif
29466 #ifndef NULL
29467 #define NULL ((void *)0)
29468 #endif
29469 main()
29470 {
29471 #if DB_VERSION_MAJOR > 1
29472         char *version;
29473         int major, minor, patch;
29474
29475         version = db_version( &major, &minor, &patch );
29476
29477         if( major != DB_VERSION_MAJOR ||
29478                 minor != DB_VERSION_MINOR ||
29479                 patch != DB_VERSION_PATCH )
29480         {
29481                 printf("Berkeley DB version mismatch\n"
29482                         "\theader: %s\n\tlibrary: %s\n",
29483                         DB_VERSION_STRING, version);
29484                 return 1;
29485         }
29486 #endif
29487
29488         return 0;
29489 }
29490 _ACEOF
29491 rm -f conftest$ac_exeext
29492 if { (ac_try="$ac_link"
29493 case "(($ac_try" in
29494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495   *) ac_try_echo=$ac_try;;
29496 esac
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498   (eval "$ac_link") 2>&5
29499   ac_status=$?
29500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29502   { (case "(($ac_try" in
29503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504   *) ac_try_echo=$ac_try;;
29505 esac
29506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29507   (eval "$ac_try") 2>&5
29508   ac_status=$?
29509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); }; }; then
29511   ol_cv_berkeley_db_version=yes
29512 else
29513   echo "$as_me: program exited with status $ac_status" >&5
29514 echo "$as_me: failed program was:" >&5
29515 sed 's/^/| /' conftest.$ac_ext >&5
29516
29517 ( exit $ac_status )
29518 ol_cv_berkeley_db_version=no
29519 fi
29520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29521 fi
29522
29523
29524
29525         LIBS="$ol_LIBS"
29526
29527 fi
29528 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29529 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29530
29531         if test $ol_cv_berkeley_db_version = no ; then
29532                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29533 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29534    { (exit 1); exit 1; }; }
29535         fi
29536
29537                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29538 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29539 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29540   echo $ECHO_N "(cached) $ECHO_C" >&6
29541 else
29542
29543         ol_LIBS="$LIBS"
29544         LIBS="$LTHREAD_LIBS $LIBS"
29545         if test $ol_cv_lib_db != yes ; then
29546                 LIBS="$ol_cv_lib_db $LIBS"
29547         fi
29548
29549         if test "$cross_compiling" = yes; then
29550   ol_cv_berkeley_db_thread=cross
29551 else
29552   cat >conftest.$ac_ext <<_ACEOF
29553 /* confdefs.h.  */
29554 _ACEOF
29555 cat confdefs.h >>conftest.$ac_ext
29556 cat >>conftest.$ac_ext <<_ACEOF
29557 /* end confdefs.h.  */
29558
29559 #ifdef HAVE_DB_185_H
29560         choke me;
29561 #else
29562 #include <db.h>
29563 #endif
29564 #ifndef NULL
29565 #define NULL ((void *)0)
29566 #endif
29567 main()
29568 {
29569         int rc;
29570         u_int32_t flags = DB_CREATE |
29571 #ifdef DB_PRIVATE
29572                 DB_PRIVATE |
29573 #endif
29574                 DB_THREAD;
29575
29576 #if DB_VERSION_MAJOR > 2
29577         DB_ENV *env = NULL;
29578
29579         rc = db_env_create( &env, 0 );
29580
29581         flags |= DB_INIT_MPOOL;
29582 #ifdef DB_MPOOL_PRIVATE
29583         flags |= DB_MPOOL_PRIVATE;
29584 #endif
29585
29586         if( rc ) {
29587                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29588                 return rc;
29589         }
29590
29591 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29592         rc = (env->open)( env, NULL, flags, 0 );
29593 #else
29594         rc = (env->open)( env, NULL, NULL, flags, 0 );
29595 #endif
29596
29597         if ( rc == 0 ) {
29598                 rc = env->close( env, 0 );
29599         }
29600
29601         if( rc ) {
29602                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29603                 return rc;
29604         }
29605
29606 #else
29607         DB_ENV env;
29608         memset( &env, '\0', sizeof(env) );
29609
29610         rc = db_appinit( NULL, NULL, &env, flags );
29611
29612         if( rc == 0 ) {
29613                 db_appexit( &env );
29614         }
29615
29616         unlink("__db_mpool.share");
29617         unlink("__db_lock.share");
29618 #endif
29619
29620         return rc;
29621 }
29622 _ACEOF
29623 rm -f conftest$ac_exeext
29624 if { (ac_try="$ac_link"
29625 case "(($ac_try" in
29626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29627   *) ac_try_echo=$ac_try;;
29628 esac
29629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29630   (eval "$ac_link") 2>&5
29631   ac_status=$?
29632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29634   { (case "(($ac_try" in
29635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29636   *) ac_try_echo=$ac_try;;
29637 esac
29638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29639   (eval "$ac_try") 2>&5
29640   ac_status=$?
29641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642   (exit $ac_status); }; }; then
29643   ol_cv_berkeley_db_thread=yes
29644 else
29645   echo "$as_me: program exited with status $ac_status" >&5
29646 echo "$as_me: failed program was:" >&5
29647 sed 's/^/| /' conftest.$ac_ext >&5
29648
29649 ( exit $ac_status )
29650 ol_cv_berkeley_db_thread=no
29651 fi
29652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29653 fi
29654
29655
29656
29657         LIBS="$ol_LIBS"
29658
29659 fi
29660 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29661 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29662
29663         if test $ol_cv_berkeley_db_thread != no ; then
29664
29665 cat >>confdefs.h <<\_ACEOF
29666 #define HAVE_BERKELEY_DB_THREAD 1
29667 _ACEOF
29668
29669         fi
29670
29671         fi
29672 fi
29673
29674
29675         if test $ol_cv_berkeley_db = no ; then
29676                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29677 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29678    { (exit 1); exit 1; }; }
29679         fi
29680
29681
29682 cat >>confdefs.h <<\_ACEOF
29683 #define HAVE_BERKELEY_DB 1
29684 _ACEOF
29685
29686
29687                         if test $ol_cv_lib_db != yes ; then
29688                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29689         fi
29690
29691         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29692
29693         ol_link_bdb=yes
29694 fi
29695
29696
29697 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29698         BUILD_LIBS_DYNAMIC=shared
29699
29700 cat >>confdefs.h <<\_ACEOF
29701 #define LDAP_LIBS_DYNAMIC 1
29702 _ACEOF
29703
29704         LTSTATIC=""
29705 else
29706         BUILD_LIBS_DYNAMIC=static
29707         LTSTATIC="-static"
29708 fi
29709
29710 if test $ol_enable_wrappers != no ; then
29711
29712 for ac_header in tcpd.h
29713 do
29714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29716   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29719   echo $ECHO_N "(cached) $ECHO_C" >&6
29720 fi
29721 ac_res=`eval echo '${'$as_ac_Header'}'`
29722                { echo "$as_me:$LINENO: result: $ac_res" >&5
29723 echo "${ECHO_T}$ac_res" >&6; }
29724 else
29725   # Is the header compilable?
29726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29728 cat >conftest.$ac_ext <<_ACEOF
29729 /* confdefs.h.  */
29730 _ACEOF
29731 cat confdefs.h >>conftest.$ac_ext
29732 cat >>conftest.$ac_ext <<_ACEOF
29733 /* end confdefs.h.  */
29734 $ac_includes_default
29735 #include <$ac_header>
29736 _ACEOF
29737 rm -f conftest.$ac_objext
29738 if { (ac_try="$ac_compile"
29739 case "(($ac_try" in
29740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741   *) ac_try_echo=$ac_try;;
29742 esac
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744   (eval "$ac_compile") 2>conftest.er1
29745   ac_status=$?
29746   grep -v '^ *+' conftest.er1 >conftest.err
29747   rm -f conftest.er1
29748   cat conftest.err >&5
29749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750   (exit $ac_status); } && {
29751          test -z "$ac_c_werror_flag" ||
29752          test ! -s conftest.err
29753        } && test -s conftest.$ac_objext; then
29754   ac_header_compiler=yes
29755 else
29756   echo "$as_me: failed program was:" >&5
29757 sed 's/^/| /' conftest.$ac_ext >&5
29758
29759         ac_header_compiler=no
29760 fi
29761
29762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29764 echo "${ECHO_T}$ac_header_compiler" >&6; }
29765
29766 # Is the header present?
29767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29769 cat >conftest.$ac_ext <<_ACEOF
29770 /* confdefs.h.  */
29771 _ACEOF
29772 cat confdefs.h >>conftest.$ac_ext
29773 cat >>conftest.$ac_ext <<_ACEOF
29774 /* end confdefs.h.  */
29775 #include <$ac_header>
29776 _ACEOF
29777 if { (ac_try="$ac_cpp conftest.$ac_ext"
29778 case "(($ac_try" in
29779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780   *) ac_try_echo=$ac_try;;
29781 esac
29782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29784   ac_status=$?
29785   grep -v '^ *+' conftest.er1 >conftest.err
29786   rm -f conftest.er1
29787   cat conftest.err >&5
29788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789   (exit $ac_status); } >/dev/null && {
29790          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29791          test ! -s conftest.err
29792        }; then
29793   ac_header_preproc=yes
29794 else
29795   echo "$as_me: failed program was:" >&5
29796 sed 's/^/| /' conftest.$ac_ext >&5
29797
29798   ac_header_preproc=no
29799 fi
29800
29801 rm -f conftest.err conftest.$ac_ext
29802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29803 echo "${ECHO_T}$ac_header_preproc" >&6; }
29804
29805 # So?  What about this header?
29806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29807   yes:no: )
29808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29812     ac_header_preproc=yes
29813     ;;
29814   no:yes:* )
29815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29827     ( cat <<\_ASBOX
29828 ## --------------------------------------------- ##
29829 ## Report this to <http://www.openldap.org/its/> ##
29830 ## --------------------------------------------- ##
29831 _ASBOX
29832      ) | sed "s/^/$as_me: WARNING:     /" >&2
29833     ;;
29834 esac
29835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29838   echo $ECHO_N "(cached) $ECHO_C" >&6
29839 else
29840   eval "$as_ac_Header=\$ac_header_preproc"
29841 fi
29842 ac_res=`eval echo '${'$as_ac_Header'}'`
29843                { echo "$as_me:$LINENO: result: $ac_res" >&5
29844 echo "${ECHO_T}$ac_res" >&6; }
29845
29846 fi
29847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29848   cat >>confdefs.h <<_ACEOF
29849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29850 _ACEOF
29851
29852                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29853 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29854                 save_LIBS="$LIBS"
29855                 LIBS="$LIBS -lwrap"
29856                 cat >conftest.$ac_ext <<_ACEOF
29857 /* confdefs.h.  */
29858 _ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h.  */
29862
29863 #include <tcpd.h>
29864 int allow_severity = 0;
29865 int deny_severity  = 0;
29866
29867 struct request_info *req;
29868
29869 int
29870 main ()
29871 {
29872
29873 hosts_access(req)
29874
29875   ;
29876   return 0;
29877 }
29878 _ACEOF
29879 rm -f conftest.$ac_objext conftest$ac_exeext
29880 if { (ac_try="$ac_link"
29881 case "(($ac_try" in
29882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29883   *) ac_try_echo=$ac_try;;
29884 esac
29885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29886   (eval "$ac_link") 2>conftest.er1
29887   ac_status=$?
29888   grep -v '^ *+' conftest.er1 >conftest.err
29889   rm -f conftest.er1
29890   cat conftest.err >&5
29891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892   (exit $ac_status); } && {
29893          test -z "$ac_c_werror_flag" ||
29894          test ! -s conftest.err
29895        } && test -s conftest$ac_exeext &&
29896        $as_test_x conftest$ac_exeext; then
29897   { echo "$as_me:$LINENO: result: -lwrap" >&5
29898 echo "${ECHO_T}-lwrap" >&6; }
29899                 have_wrappers=yes
29900                 LIBS="$save_LIBS"
29901 else
29902   echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29904
29905
29906                                 LIBS="$LIBS -lnsl"
29907                 cat >conftest.$ac_ext <<_ACEOF
29908 /* confdefs.h.  */
29909 _ACEOF
29910 cat confdefs.h >>conftest.$ac_ext
29911 cat >>conftest.$ac_ext <<_ACEOF
29912 /* end confdefs.h.  */
29913
29914 #include <tcpd.h>
29915 int allow_severity = 0;
29916 int deny_severity  = 0;
29917
29918 struct request_info *req;
29919
29920 int
29921 main ()
29922 {
29923
29924 hosts_access(req)
29925
29926   ;
29927   return 0;
29928 }
29929 _ACEOF
29930 rm -f conftest.$ac_objext conftest$ac_exeext
29931 if { (ac_try="$ac_link"
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_link") 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_exeext &&
29947        $as_test_x conftest$ac_exeext; then
29948   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29949 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29950                 have_wrappers=yes
29951                 LIBS="$save_LIBS -lnsl"
29952 else
29953   echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29955
29956
29957                 { echo "$as_me:$LINENO: result: no" >&5
29958 echo "${ECHO_T}no" >&6; }
29959                 have_wrappers=no
29960                 LIBS=$save_LIBS
29961 fi
29962
29963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29964       conftest$ac_exeext conftest.$ac_ext
29965 fi
29966
29967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29968       conftest$ac_exeext conftest.$ac_ext
29969 else
29970   have_wrappers=no
29971 fi
29972
29973 done
29974
29975
29976         if test $have_wrappers = yes ; then
29977
29978 cat >>confdefs.h <<\_ACEOF
29979 #define HAVE_TCPD 1
29980 _ACEOF
29981
29982                 WRAP_LIBS="-lwrap"
29983         elif test $ol_enable_wrappers = yes ; then
29984                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29985 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29986    { (exit 1); exit 1; }; }
29987         else
29988                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29989 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29990                 WRAP_LIBS=""
29991         fi
29992 fi
29993
29994 if test $ol_enable_syslog != no ; then
29995         { echo "$as_me:$LINENO: checking for openlog" >&5
29996 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29997 if test "${ac_cv_func_openlog+set}" = set; then
29998   echo $ECHO_N "(cached) $ECHO_C" >&6
29999 else
30000   cat >conftest.$ac_ext <<_ACEOF
30001 /* confdefs.h.  */
30002 _ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h.  */
30006 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
30007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30008 #define openlog innocuous_openlog
30009
30010 /* System header to define __stub macros and hopefully few prototypes,
30011     which can conflict with char openlog (); below.
30012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30013     <limits.h> exists even on freestanding compilers.  */
30014
30015 #ifdef __STDC__
30016 # include <limits.h>
30017 #else
30018 # include <assert.h>
30019 #endif
30020
30021 #undef openlog
30022
30023 /* Override any GCC internal prototype to avoid an error.
30024    Use char because int might match the return type of a GCC
30025    builtin and then its argument prototype would still apply.  */
30026 #ifdef __cplusplus
30027 extern "C"
30028 #endif
30029 char openlog ();
30030 /* The GNU C library defines this for functions which it implements
30031     to always fail with ENOSYS.  Some functions are actually named
30032     something starting with __ and the normal name is an alias.  */
30033 #if defined __stub_openlog || defined __stub___openlog
30034 choke me
30035 #endif
30036
30037 int
30038 main ()
30039 {
30040 return openlog ();
30041   ;
30042   return 0;
30043 }
30044 _ACEOF
30045 rm -f conftest.$ac_objext conftest$ac_exeext
30046 if { (ac_try="$ac_link"
30047 case "(($ac_try" in
30048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30049   *) ac_try_echo=$ac_try;;
30050 esac
30051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30052   (eval "$ac_link") 2>conftest.er1
30053   ac_status=$?
30054   grep -v '^ *+' conftest.er1 >conftest.err
30055   rm -f conftest.er1
30056   cat conftest.err >&5
30057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058   (exit $ac_status); } && {
30059          test -z "$ac_c_werror_flag" ||
30060          test ! -s conftest.err
30061        } && test -s conftest$ac_exeext &&
30062        $as_test_x conftest$ac_exeext; then
30063   ac_cv_func_openlog=yes
30064 else
30065   echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30067
30068         ac_cv_func_openlog=no
30069 fi
30070
30071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30072       conftest$ac_exeext conftest.$ac_ext
30073 fi
30074 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
30075 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
30076
30077         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
30078                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
30079 echo "$as_me: error: could not find syslog" >&2;}
30080    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
30081         fi
30082         ol_enable_syslog=$ac_cv_func_openlog
30083 fi
30084
30085 ol_link_sql=no
30086 if test $ol_enable_sql != no ; then
30087
30088
30089 for ac_header in sql.h sqlext.h
30090 do
30091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30093   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30096   echo $ECHO_N "(cached) $ECHO_C" >&6
30097 fi
30098 ac_res=`eval echo '${'$as_ac_Header'}'`
30099                { echo "$as_me:$LINENO: result: $ac_res" >&5
30100 echo "${ECHO_T}$ac_res" >&6; }
30101 else
30102   # Is the header compilable?
30103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30105 cat >conftest.$ac_ext <<_ACEOF
30106 /* confdefs.h.  */
30107 _ACEOF
30108 cat confdefs.h >>conftest.$ac_ext
30109 cat >>conftest.$ac_ext <<_ACEOF
30110 /* end confdefs.h.  */
30111 $ac_includes_default
30112 #include <$ac_header>
30113 _ACEOF
30114 rm -f conftest.$ac_objext
30115 if { (ac_try="$ac_compile"
30116 case "(($ac_try" in
30117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118   *) ac_try_echo=$ac_try;;
30119 esac
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121   (eval "$ac_compile") 2>conftest.er1
30122   ac_status=$?
30123   grep -v '^ *+' conftest.er1 >conftest.err
30124   rm -f conftest.er1
30125   cat conftest.err >&5
30126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127   (exit $ac_status); } && {
30128          test -z "$ac_c_werror_flag" ||
30129          test ! -s conftest.err
30130        } && test -s conftest.$ac_objext; then
30131   ac_header_compiler=yes
30132 else
30133   echo "$as_me: failed program was:" >&5
30134 sed 's/^/| /' conftest.$ac_ext >&5
30135
30136         ac_header_compiler=no
30137 fi
30138
30139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30141 echo "${ECHO_T}$ac_header_compiler" >&6; }
30142
30143 # Is the header present?
30144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30146 cat >conftest.$ac_ext <<_ACEOF
30147 /* confdefs.h.  */
30148 _ACEOF
30149 cat confdefs.h >>conftest.$ac_ext
30150 cat >>conftest.$ac_ext <<_ACEOF
30151 /* end confdefs.h.  */
30152 #include <$ac_header>
30153 _ACEOF
30154 if { (ac_try="$ac_cpp conftest.$ac_ext"
30155 case "(($ac_try" in
30156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30157   *) ac_try_echo=$ac_try;;
30158 esac
30159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30160   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30161   ac_status=$?
30162   grep -v '^ *+' conftest.er1 >conftest.err
30163   rm -f conftest.er1
30164   cat conftest.err >&5
30165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166   (exit $ac_status); } >/dev/null && {
30167          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30168          test ! -s conftest.err
30169        }; then
30170   ac_header_preproc=yes
30171 else
30172   echo "$as_me: failed program was:" >&5
30173 sed 's/^/| /' conftest.$ac_ext >&5
30174
30175   ac_header_preproc=no
30176 fi
30177
30178 rm -f conftest.err conftest.$ac_ext
30179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30180 echo "${ECHO_T}$ac_header_preproc" >&6; }
30181
30182 # So?  What about this header?
30183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30184   yes:no: )
30185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30189     ac_header_preproc=yes
30190     ;;
30191   no:yes:* )
30192     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30194     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30195 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30196     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30198     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30199 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30202     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30204     ( cat <<\_ASBOX
30205 ## --------------------------------------------- ##
30206 ## Report this to <http://www.openldap.org/its/> ##
30207 ## --------------------------------------------- ##
30208 _ASBOX
30209      ) | sed "s/^/$as_me: WARNING:     /" >&2
30210     ;;
30211 esac
30212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30215   echo $ECHO_N "(cached) $ECHO_C" >&6
30216 else
30217   eval "$as_ac_Header=\$ac_header_preproc"
30218 fi
30219 ac_res=`eval echo '${'$as_ac_Header'}'`
30220                { echo "$as_me:$LINENO: result: $ac_res" >&5
30221 echo "${ECHO_T}$ac_res" >&6; }
30222
30223 fi
30224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30225   cat >>confdefs.h <<_ACEOF
30226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30227 _ACEOF
30228
30229 else
30230
30231                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30232 echo "$as_me: error: could not locate SQL headers" >&2;}
30233    { (exit 1); exit 1; }; }
30234
30235 fi
30236
30237 done
30238
30239
30240         sql_LIBS="$LIBS"
30241         LIBS="$LTHREAD_LIBS"
30242
30243         if test $ol_with_odbc = auto ; then
30244                 ol_with_odbc="iodbc unixodbc odbc32"
30245         fi
30246
30247         for odbc in $ol_with_odbc ; do
30248                 if test $ol_link_sql = no ; then
30249                         case $odbc in
30250                         iodbc)
30251                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30252 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
30253 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30254   echo $ECHO_N "(cached) $ECHO_C" >&6
30255 else
30256   ac_check_lib_save_LIBS=$LIBS
30257 LIBS="-liodbc  $LIBS"
30258 cat >conftest.$ac_ext <<_ACEOF
30259 /* confdefs.h.  */
30260 _ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h.  */
30264
30265 /* Override any GCC internal prototype to avoid an error.
30266    Use char because int might match the return type of a GCC
30267    builtin and then its argument prototype would still apply.  */
30268 #ifdef __cplusplus
30269 extern "C"
30270 #endif
30271 char SQLDriverConnect ();
30272 int
30273 main ()
30274 {
30275 return SQLDriverConnect ();
30276   ;
30277   return 0;
30278 }
30279 _ACEOF
30280 rm -f conftest.$ac_objext conftest$ac_exeext
30281 if { (ac_try="$ac_link"
30282 case "(($ac_try" in
30283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30284   *) ac_try_echo=$ac_try;;
30285 esac
30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30287   (eval "$ac_link") 2>conftest.er1
30288   ac_status=$?
30289   grep -v '^ *+' conftest.er1 >conftest.err
30290   rm -f conftest.er1
30291   cat conftest.err >&5
30292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293   (exit $ac_status); } && {
30294          test -z "$ac_c_werror_flag" ||
30295          test ! -s conftest.err
30296        } && test -s conftest$ac_exeext &&
30297        $as_test_x conftest$ac_exeext; then
30298   ac_cv_lib_iodbc_SQLDriverConnect=yes
30299 else
30300   echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30302
30303         ac_cv_lib_iodbc_SQLDriverConnect=no
30304 fi
30305
30306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30307       conftest$ac_exeext conftest.$ac_ext
30308 LIBS=$ac_check_lib_save_LIBS
30309 fi
30310 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30311 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
30312 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30313   have_iodbc=yes
30314 else
30315   have_iodbc=no
30316 fi
30317
30318                                 if test $have_iodbc = yes ; then
30319                                         ol_link_sql="-liodbc"
30320                                 fi
30321                                 ;;
30322
30323                         unixodbc)
30324                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30325 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
30326 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30327   echo $ECHO_N "(cached) $ECHO_C" >&6
30328 else
30329   ac_check_lib_save_LIBS=$LIBS
30330 LIBS="-lodbc  $LIBS"
30331 cat >conftest.$ac_ext <<_ACEOF
30332 /* confdefs.h.  */
30333 _ACEOF
30334 cat confdefs.h >>conftest.$ac_ext
30335 cat >>conftest.$ac_ext <<_ACEOF
30336 /* end confdefs.h.  */
30337
30338 /* Override any GCC internal prototype to avoid an error.
30339    Use char because int might match the return type of a GCC
30340    builtin and then its argument prototype would still apply.  */
30341 #ifdef __cplusplus
30342 extern "C"
30343 #endif
30344 char SQLDriverConnect ();
30345 int
30346 main ()
30347 {
30348 return SQLDriverConnect ();
30349   ;
30350   return 0;
30351 }
30352 _ACEOF
30353 rm -f conftest.$ac_objext conftest$ac_exeext
30354 if { (ac_try="$ac_link"
30355 case "(($ac_try" in
30356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30357   *) ac_try_echo=$ac_try;;
30358 esac
30359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30360   (eval "$ac_link") 2>conftest.er1
30361   ac_status=$?
30362   grep -v '^ *+' conftest.er1 >conftest.err
30363   rm -f conftest.er1
30364   cat conftest.err >&5
30365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366   (exit $ac_status); } && {
30367          test -z "$ac_c_werror_flag" ||
30368          test ! -s conftest.err
30369        } && test -s conftest$ac_exeext &&
30370        $as_test_x conftest$ac_exeext; then
30371   ac_cv_lib_odbc_SQLDriverConnect=yes
30372 else
30373   echo "$as_me: failed program was:" >&5
30374 sed 's/^/| /' conftest.$ac_ext >&5
30375
30376         ac_cv_lib_odbc_SQLDriverConnect=no
30377 fi
30378
30379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30380       conftest$ac_exeext conftest.$ac_ext
30381 LIBS=$ac_check_lib_save_LIBS
30382 fi
30383 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30384 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30385 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30386   have_odbc=yes
30387 else
30388   have_odbc=no
30389 fi
30390
30391                                 if test $have_odbc = yes ; then
30392                                         ol_link_sql="-lodbc"
30393                                 fi
30394                                 ;;
30395
30396                         odbc32)
30397                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30398 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30399 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30400   echo $ECHO_N "(cached) $ECHO_C" >&6
30401 else
30402   ac_check_lib_save_LIBS=$LIBS
30403 LIBS="-lodbc32  $LIBS"
30404 cat >conftest.$ac_ext <<_ACEOF
30405 /* confdefs.h.  */
30406 _ACEOF
30407 cat confdefs.h >>conftest.$ac_ext
30408 cat >>conftest.$ac_ext <<_ACEOF
30409 /* end confdefs.h.  */
30410
30411 /* Override any GCC internal prototype to avoid an error.
30412    Use char because int might match the return type of a GCC
30413    builtin and then its argument prototype would still apply.  */
30414 #ifdef __cplusplus
30415 extern "C"
30416 #endif
30417 char SQLDriverConnect ();
30418 int
30419 main ()
30420 {
30421 return SQLDriverConnect ();
30422   ;
30423   return 0;
30424 }
30425 _ACEOF
30426 rm -f conftest.$ac_objext conftest$ac_exeext
30427 if { (ac_try="$ac_link"
30428 case "(($ac_try" in
30429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30430   *) ac_try_echo=$ac_try;;
30431 esac
30432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30433   (eval "$ac_link") 2>conftest.er1
30434   ac_status=$?
30435   grep -v '^ *+' conftest.er1 >conftest.err
30436   rm -f conftest.er1
30437   cat conftest.err >&5
30438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439   (exit $ac_status); } && {
30440          test -z "$ac_c_werror_flag" ||
30441          test ! -s conftest.err
30442        } && test -s conftest$ac_exeext &&
30443        $as_test_x conftest$ac_exeext; then
30444   ac_cv_lib_odbc32_SQLDriverConnect=yes
30445 else
30446   echo "$as_me: failed program was:" >&5
30447 sed 's/^/| /' conftest.$ac_ext >&5
30448
30449         ac_cv_lib_odbc32_SQLDriverConnect=no
30450 fi
30451
30452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30453       conftest$ac_exeext conftest.$ac_ext
30454 LIBS=$ac_check_lib_save_LIBS
30455 fi
30456 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30457 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30458 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30459   have_odbc32=yes
30460 else
30461   have_odbc32=no
30462 fi
30463
30464                                 if test $have_odbc32 = yes ; then
30465                                         ol_link_sql="-lodbc32"
30466                                 fi
30467                                 ;;
30468
30469                         *)
30470                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30471 echo "$as_me: error: unknown ODBC library" >&2;}
30472    { (exit 1); exit 1; }; }
30473                                 ;;
30474                         esac
30475                 fi
30476         done
30477
30478         LIBS="$sql_LIBS"
30479
30480         if test $ol_link_sql != no ; then
30481                 SLAPD_SQL_LIBS="$ol_link_sql"
30482
30483         elif test $ol_enable_sql != auto ; then
30484                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30485 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30486    { (exit 1); exit 1; }; }
30487         fi
30488 fi
30489
30490 ol_link_ndb=no
30491 if test $ol_enable_ndb != no ; then
30492         # Extract the first word of "mysql_config", so it can be a program name with args.
30493 set dummy mysql_config; ac_word=$2
30494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30496 if test "${ac_cv_prog_MYSQL+set}" = set; then
30497   echo $ECHO_N "(cached) $ECHO_C" >&6
30498 else
30499   if test -n "$MYSQL"; then
30500   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30501 else
30502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30503 for as_dir in $PATH
30504 do
30505   IFS=$as_save_IFS
30506   test -z "$as_dir" && as_dir=.
30507   for ac_exec_ext in '' $ac_executable_extensions; do
30508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30509     ac_cv_prog_MYSQL="yes"
30510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30511     break 2
30512   fi
30513 done
30514 done
30515 IFS=$as_save_IFS
30516
30517 fi
30518 fi
30519 MYSQL=$ac_cv_prog_MYSQL
30520 if test -n "$MYSQL"; then
30521   { echo "$as_me:$LINENO: result: $MYSQL" >&5
30522 echo "${ECHO_T}$MYSQL" >&6; }
30523 else
30524   { echo "$as_me:$LINENO: result: no" >&5
30525 echo "${ECHO_T}no" >&6; }
30526 fi
30527
30528
30529         if test "$MYSQL" != yes ; then
30530                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30531 echo "$as_me: error: could not locate mysql_config" >&2;}
30532    { (exit 1); exit 1; }; }
30533         fi
30534
30535         SQL_INC=`mysql_config --include`
30536         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30537
30538         save_CPPFLAGS="$CPPFLAGS"
30539         CPPFLAGS="$SLAPD_NDB_INCS"
30540         { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30541 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30542         cat >conftest.$ac_ext <<_ACEOF
30543 /* confdefs.h.  */
30544 _ACEOF
30545 cat confdefs.h >>conftest.$ac_ext
30546 cat >>conftest.$ac_ext <<_ACEOF
30547 /* end confdefs.h.  */
30548 #include <NdbApi.hpp>
30549 _ACEOF
30550 if { (ac_try="$ac_cpp conftest.$ac_ext"
30551 case "(($ac_try" in
30552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30553   *) ac_try_echo=$ac_try;;
30554 esac
30555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30557   ac_status=$?
30558   grep -v '^ *+' conftest.er1 >conftest.err
30559   rm -f conftest.er1
30560   cat conftest.err >&5
30561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562   (exit $ac_status); } >/dev/null && {
30563          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30564          test ! -s conftest.err
30565        }; then
30566   { echo "$as_me:$LINENO: result: yes" >&5
30567 echo "${ECHO_T}yes" >&6; }
30568 else
30569   echo "$as_me: failed program was:" >&5
30570 sed 's/^/| /' conftest.$ac_ext >&5
30571
30572   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30573 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30574    { (exit 1); exit 1; }; }
30575
30576 fi
30577
30578 rm -f conftest.err conftest.$ac_ext
30579         CPPFLAGS="$save_CPPFLAGS"
30580
30581         SQL_LIB=`mysql_config --libs_r`
30582         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30583
30584         save_LDFLAGS="$LDFLAGS"
30585         save_LIBS="$LIBS"
30586         LDFLAGS="$SQL_LIB"
30587         { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30588 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30589 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30590   echo $ECHO_N "(cached) $ECHO_C" >&6
30591 else
30592   ac_check_lib_save_LIBS=$LIBS
30593 LIBS="-lndbclient -lstdc++ $LIBS"
30594 cat >conftest.$ac_ext <<_ACEOF
30595 /* confdefs.h.  */
30596 _ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h.  */
30600
30601 /* Override any GCC internal prototype to avoid an error.
30602    Use char because int might match the return type of a GCC
30603    builtin and then its argument prototype would still apply.  */
30604 #ifdef __cplusplus
30605 extern "C"
30606 #endif
30607 char ndb_init ();
30608 int
30609 main ()
30610 {
30611 return ndb_init ();
30612   ;
30613   return 0;
30614 }
30615 _ACEOF
30616 rm -f conftest.$ac_objext conftest$ac_exeext
30617 if { (ac_try="$ac_link"
30618 case "(($ac_try" in
30619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30620   *) ac_try_echo=$ac_try;;
30621 esac
30622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30623   (eval "$ac_link") 2>conftest.er1
30624   ac_status=$?
30625   grep -v '^ *+' conftest.er1 >conftest.err
30626   rm -f conftest.er1
30627   cat conftest.err >&5
30628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629   (exit $ac_status); } && {
30630          test -z "$ac_c_werror_flag" ||
30631          test ! -s conftest.err
30632        } && test -s conftest$ac_exeext &&
30633        $as_test_x conftest$ac_exeext; then
30634   ac_cv_lib_ndbclient_ndb_init=yes
30635 else
30636   echo "$as_me: failed program was:" >&5
30637 sed 's/^/| /' conftest.$ac_ext >&5
30638
30639         ac_cv_lib_ndbclient_ndb_init=no
30640 fi
30641
30642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30643       conftest$ac_exeext conftest.$ac_ext
30644 LIBS=$ac_check_lib_save_LIBS
30645 fi
30646 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30647 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30648 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30649   : ok
30650 else
30651
30652                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30653 echo "$as_me: error: could not locate ndbclient library" >&2;}
30654    { (exit 1); exit 1; }; }
30655
30656 fi
30657
30658         LIBS="$save_LIBS"
30659         LDFLAGS="$save_LDFLAGS"
30660
30661         if test "$ol_enable_ndb" = yes ; then
30662                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30663         fi
30664 fi
30665
30666 ol_icu=no
30667
30668 for ac_header in unicode/utypes.h
30669 do
30670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30672   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30675   echo $ECHO_N "(cached) $ECHO_C" >&6
30676 fi
30677 ac_res=`eval echo '${'$as_ac_Header'}'`
30678                { echo "$as_me:$LINENO: result: $ac_res" >&5
30679 echo "${ECHO_T}$ac_res" >&6; }
30680 else
30681   # Is the header compilable?
30682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30684 cat >conftest.$ac_ext <<_ACEOF
30685 /* confdefs.h.  */
30686 _ACEOF
30687 cat confdefs.h >>conftest.$ac_ext
30688 cat >>conftest.$ac_ext <<_ACEOF
30689 /* end confdefs.h.  */
30690 $ac_includes_default
30691 #include <$ac_header>
30692 _ACEOF
30693 rm -f conftest.$ac_objext
30694 if { (ac_try="$ac_compile"
30695 case "(($ac_try" in
30696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30697   *) ac_try_echo=$ac_try;;
30698 esac
30699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30700   (eval "$ac_compile") 2>conftest.er1
30701   ac_status=$?
30702   grep -v '^ *+' conftest.er1 >conftest.err
30703   rm -f conftest.er1
30704   cat conftest.err >&5
30705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706   (exit $ac_status); } && {
30707          test -z "$ac_c_werror_flag" ||
30708          test ! -s conftest.err
30709        } && test -s conftest.$ac_objext; then
30710   ac_header_compiler=yes
30711 else
30712   echo "$as_me: failed program was:" >&5
30713 sed 's/^/| /' conftest.$ac_ext >&5
30714
30715         ac_header_compiler=no
30716 fi
30717
30718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30720 echo "${ECHO_T}$ac_header_compiler" >&6; }
30721
30722 # Is the header present?
30723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30725 cat >conftest.$ac_ext <<_ACEOF
30726 /* confdefs.h.  */
30727 _ACEOF
30728 cat confdefs.h >>conftest.$ac_ext
30729 cat >>conftest.$ac_ext <<_ACEOF
30730 /* end confdefs.h.  */
30731 #include <$ac_header>
30732 _ACEOF
30733 if { (ac_try="$ac_cpp conftest.$ac_ext"
30734 case "(($ac_try" in
30735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736   *) ac_try_echo=$ac_try;;
30737 esac
30738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30740   ac_status=$?
30741   grep -v '^ *+' conftest.er1 >conftest.err
30742   rm -f conftest.er1
30743   cat conftest.err >&5
30744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745   (exit $ac_status); } >/dev/null && {
30746          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30747          test ! -s conftest.err
30748        }; then
30749   ac_header_preproc=yes
30750 else
30751   echo "$as_me: failed program was:" >&5
30752 sed 's/^/| /' conftest.$ac_ext >&5
30753
30754   ac_header_preproc=no
30755 fi
30756
30757 rm -f conftest.err conftest.$ac_ext
30758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30759 echo "${ECHO_T}$ac_header_preproc" >&6; }
30760
30761 # So?  What about this header?
30762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30763   yes:no: )
30764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30768     ac_header_preproc=yes
30769     ;;
30770   no:yes:* )
30771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30783     ( cat <<\_ASBOX
30784 ## --------------------------------------------- ##
30785 ## Report this to <http://www.openldap.org/its/> ##
30786 ## --------------------------------------------- ##
30787 _ASBOX
30788      ) | sed "s/^/$as_me: WARNING:     /" >&2
30789     ;;
30790 esac
30791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30794   echo $ECHO_N "(cached) $ECHO_C" >&6
30795 else
30796   eval "$as_ac_Header=\$ac_header_preproc"
30797 fi
30798 ac_res=`eval echo '${'$as_ac_Header'}'`
30799                { echo "$as_me:$LINENO: result: $ac_res" >&5
30800 echo "${ECHO_T}$ac_res" >&6; }
30801
30802 fi
30803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30804   cat >>confdefs.h <<_ACEOF
30805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30806 _ACEOF
30807
30808 fi
30809
30810 done
30811
30812 if test $ac_cv_header_unicode_utypes_h = yes ; then
30813                 OL_ICULIBS="-licuuc -licudata"
30814
30815         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30816 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30817 if test "${ol_cv_lib_icu+set}" = set; then
30818   echo $ECHO_N "(cached) $ECHO_C" >&6
30819 else
30820
30821                 ol_LIBS="$LIBS"
30822                 LIBS="$OL_ICULIBS $LIBS"
30823                 cat >conftest.$ac_ext <<_ACEOF
30824 /* confdefs.h.  */
30825 _ACEOF
30826 cat confdefs.h >>conftest.$ac_ext
30827 cat >>conftest.$ac_ext <<_ACEOF
30828 /* end confdefs.h.  */
30829
30830 #include <unicode/utypes.h>
30831
30832 int
30833 main ()
30834 {
30835
30836 (void) u_errorName(0);
30837
30838   ;
30839   return 0;
30840 }
30841 _ACEOF
30842 rm -f conftest.$ac_objext conftest$ac_exeext
30843 if { (ac_try="$ac_link"
30844 case "(($ac_try" in
30845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30846   *) ac_try_echo=$ac_try;;
30847 esac
30848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30849   (eval "$ac_link") 2>conftest.er1
30850   ac_status=$?
30851   grep -v '^ *+' conftest.er1 >conftest.err
30852   rm -f conftest.er1
30853   cat conftest.err >&5
30854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855   (exit $ac_status); } && {
30856          test -z "$ac_c_werror_flag" ||
30857          test ! -s conftest.err
30858        } && test -s conftest$ac_exeext &&
30859        $as_test_x conftest$ac_exeext; then
30860   ol_cv_lib_icu=yes
30861 else
30862   echo "$as_me: failed program was:" >&5
30863 sed 's/^/| /' conftest.$ac_ext >&5
30864
30865         ol_cv_lib_icu=no
30866 fi
30867
30868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30869       conftest$ac_exeext conftest.$ac_ext
30870                 LIBS="$ol_LIBS"
30871
30872 fi
30873 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30874 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30875
30876         if test $ol_cv_lib_icu != no ; then
30877                 ol_icu="$OL_ICULIBS"
30878
30879 cat >>confdefs.h <<\_ACEOF
30880 #define HAVE_ICU 1
30881 _ACEOF
30882
30883         fi
30884 fi
30885
30886 if test "$ol_icu" = no ; then
30887         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30888 echo "$as_me: WARNING: ICU not available" >&2;}
30889 else
30890         ICU_LIBS="$ol_icu"
30891 fi
30892 WITH_SASL=no
30893 ol_link_sasl=no
30894 ol_link_spasswd=no
30895 if test $ol_with_cyrus_sasl != no ; then
30896
30897
30898 for ac_header in sasl/sasl.h sasl.h
30899 do
30900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30902   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30905   echo $ECHO_N "(cached) $ECHO_C" >&6
30906 fi
30907 ac_res=`eval echo '${'$as_ac_Header'}'`
30908                { echo "$as_me:$LINENO: result: $ac_res" >&5
30909 echo "${ECHO_T}$ac_res" >&6; }
30910 else
30911   # Is the header compilable?
30912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30914 cat >conftest.$ac_ext <<_ACEOF
30915 /* confdefs.h.  */
30916 _ACEOF
30917 cat confdefs.h >>conftest.$ac_ext
30918 cat >>conftest.$ac_ext <<_ACEOF
30919 /* end confdefs.h.  */
30920 $ac_includes_default
30921 #include <$ac_header>
30922 _ACEOF
30923 rm -f conftest.$ac_objext
30924 if { (ac_try="$ac_compile"
30925 case "(($ac_try" in
30926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30927   *) ac_try_echo=$ac_try;;
30928 esac
30929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30930   (eval "$ac_compile") 2>conftest.er1
30931   ac_status=$?
30932   grep -v '^ *+' conftest.er1 >conftest.err
30933   rm -f conftest.er1
30934   cat conftest.err >&5
30935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936   (exit $ac_status); } && {
30937          test -z "$ac_c_werror_flag" ||
30938          test ! -s conftest.err
30939        } && test -s conftest.$ac_objext; then
30940   ac_header_compiler=yes
30941 else
30942   echo "$as_me: failed program was:" >&5
30943 sed 's/^/| /' conftest.$ac_ext >&5
30944
30945         ac_header_compiler=no
30946 fi
30947
30948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30950 echo "${ECHO_T}$ac_header_compiler" >&6; }
30951
30952 # Is the header present?
30953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30955 cat >conftest.$ac_ext <<_ACEOF
30956 /* confdefs.h.  */
30957 _ACEOF
30958 cat confdefs.h >>conftest.$ac_ext
30959 cat >>conftest.$ac_ext <<_ACEOF
30960 /* end confdefs.h.  */
30961 #include <$ac_header>
30962 _ACEOF
30963 if { (ac_try="$ac_cpp conftest.$ac_ext"
30964 case "(($ac_try" in
30965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30966   *) ac_try_echo=$ac_try;;
30967 esac
30968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30970   ac_status=$?
30971   grep -v '^ *+' conftest.er1 >conftest.err
30972   rm -f conftest.er1
30973   cat conftest.err >&5
30974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975   (exit $ac_status); } >/dev/null && {
30976          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30977          test ! -s conftest.err
30978        }; then
30979   ac_header_preproc=yes
30980 else
30981   echo "$as_me: failed program was:" >&5
30982 sed 's/^/| /' conftest.$ac_ext >&5
30983
30984   ac_header_preproc=no
30985 fi
30986
30987 rm -f conftest.err conftest.$ac_ext
30988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30989 echo "${ECHO_T}$ac_header_preproc" >&6; }
30990
30991 # So?  What about this header?
30992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30993   yes:no: )
30994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30998     ac_header_preproc=yes
30999     ;;
31000   no:yes:* )
31001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31013     ( cat <<\_ASBOX
31014 ## --------------------------------------------- ##
31015 ## Report this to <http://www.openldap.org/its/> ##
31016 ## --------------------------------------------- ##
31017 _ASBOX
31018      ) | sed "s/^/$as_me: WARNING:     /" >&2
31019     ;;
31020 esac
31021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31024   echo $ECHO_N "(cached) $ECHO_C" >&6
31025 else
31026   eval "$as_ac_Header=\$ac_header_preproc"
31027 fi
31028 ac_res=`eval echo '${'$as_ac_Header'}'`
31029                { echo "$as_me:$LINENO: result: $ac_res" >&5
31030 echo "${ECHO_T}$ac_res" >&6; }
31031
31032 fi
31033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31034   cat >>confdefs.h <<_ACEOF
31035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31036 _ACEOF
31037
31038 fi
31039
31040 done
31041
31042
31043         if test $ac_cv_header_sasl_sasl_h = yes ||
31044            test $ac_cv_header_sasl_h = yes; then
31045                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
31046 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
31047 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
31048   echo $ECHO_N "(cached) $ECHO_C" >&6
31049 else
31050   ac_check_lib_save_LIBS=$LIBS
31051 LIBS="-lsasl2  $LIBS"
31052 cat >conftest.$ac_ext <<_ACEOF
31053 /* confdefs.h.  */
31054 _ACEOF
31055 cat confdefs.h >>conftest.$ac_ext
31056 cat >>conftest.$ac_ext <<_ACEOF
31057 /* end confdefs.h.  */
31058
31059 /* Override any GCC internal prototype to avoid an error.
31060    Use char because int might match the return type of a GCC
31061    builtin and then its argument prototype would still apply.  */
31062 #ifdef __cplusplus
31063 extern "C"
31064 #endif
31065 char sasl_client_init ();
31066 int
31067 main ()
31068 {
31069 return sasl_client_init ();
31070   ;
31071   return 0;
31072 }
31073 _ACEOF
31074 rm -f conftest.$ac_objext conftest$ac_exeext
31075 if { (ac_try="$ac_link"
31076 case "(($ac_try" in
31077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31078   *) ac_try_echo=$ac_try;;
31079 esac
31080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31081   (eval "$ac_link") 2>conftest.er1
31082   ac_status=$?
31083   grep -v '^ *+' conftest.er1 >conftest.err
31084   rm -f conftest.er1
31085   cat conftest.err >&5
31086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087   (exit $ac_status); } && {
31088          test -z "$ac_c_werror_flag" ||
31089          test ! -s conftest.err
31090        } && test -s conftest$ac_exeext &&
31091        $as_test_x conftest$ac_exeext; then
31092   ac_cv_lib_sasl2_sasl_client_init=yes
31093 else
31094   echo "$as_me: failed program was:" >&5
31095 sed 's/^/| /' conftest.$ac_ext >&5
31096
31097         ac_cv_lib_sasl2_sasl_client_init=no
31098 fi
31099
31100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31101       conftest$ac_exeext conftest.$ac_ext
31102 LIBS=$ac_check_lib_save_LIBS
31103 fi
31104 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
31105 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
31106 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
31107   ol_link_sasl="-lsasl2"
31108 else
31109   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
31110 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
31111 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
31112   echo $ECHO_N "(cached) $ECHO_C" >&6
31113 else
31114   ac_check_lib_save_LIBS=$LIBS
31115 LIBS="-lsasl  $LIBS"
31116 cat >conftest.$ac_ext <<_ACEOF
31117 /* confdefs.h.  */
31118 _ACEOF
31119 cat confdefs.h >>conftest.$ac_ext
31120 cat >>conftest.$ac_ext <<_ACEOF
31121 /* end confdefs.h.  */
31122
31123 /* Override any GCC internal prototype to avoid an error.
31124    Use char because int might match the return type of a GCC
31125    builtin and then its argument prototype would still apply.  */
31126 #ifdef __cplusplus
31127 extern "C"
31128 #endif
31129 char sasl_client_init ();
31130 int
31131 main ()
31132 {
31133 return sasl_client_init ();
31134   ;
31135   return 0;
31136 }
31137 _ACEOF
31138 rm -f conftest.$ac_objext conftest$ac_exeext
31139 if { (ac_try="$ac_link"
31140 case "(($ac_try" in
31141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31142   *) ac_try_echo=$ac_try;;
31143 esac
31144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31145   (eval "$ac_link") 2>conftest.er1
31146   ac_status=$?
31147   grep -v '^ *+' conftest.er1 >conftest.err
31148   rm -f conftest.er1
31149   cat conftest.err >&5
31150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151   (exit $ac_status); } && {
31152          test -z "$ac_c_werror_flag" ||
31153          test ! -s conftest.err
31154        } && test -s conftest$ac_exeext &&
31155        $as_test_x conftest$ac_exeext; then
31156   ac_cv_lib_sasl_sasl_client_init=yes
31157 else
31158   echo "$as_me: failed program was:" >&5
31159 sed 's/^/| /' conftest.$ac_ext >&5
31160
31161         ac_cv_lib_sasl_sasl_client_init=no
31162 fi
31163
31164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31165       conftest$ac_exeext conftest.$ac_ext
31166 LIBS=$ac_check_lib_save_LIBS
31167 fi
31168 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
31169 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
31170 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
31171   ol_link_sasl="-lsasl"
31172 fi
31173
31174 fi
31175
31176         fi
31177
31178         if test $ol_link_sasl = no ; then
31179                 if test $ol_with_cyrus_sasl != auto ; then
31180                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
31181 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
31182    { (exit 1); exit 1; }; }
31183                 else
31184                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
31185 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
31186                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31187 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31188                         if test $ol_link_tls = no ; then
31189                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31190 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31191                         fi
31192                 fi
31193         else
31194                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
31195 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
31196 if test "${ol_cv_sasl_compat+set}" = set; then
31197   echo $ECHO_N "(cached) $ECHO_C" >&6
31198 else
31199
31200         cat >conftest.$ac_ext <<_ACEOF
31201 /* confdefs.h.  */
31202 _ACEOF
31203 cat confdefs.h >>conftest.$ac_ext
31204 cat >>conftest.$ac_ext <<_ACEOF
31205 /* end confdefs.h.  */
31206
31207 #ifdef HAVE_SASL_SASL_H
31208 #include <sasl/sasl.h>
31209 #else
31210 #include <sasl.h>
31211 #endif
31212
31213 /* Require 2.1.15+ */
31214 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
31215         char *__sasl_compat = "2.2+ or better okay (we guess)";
31216 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
31217         && SASL_VERSION_STEP >=15
31218         char *__sasl_compat = "2.1.15+ or better okay";
31219 #endif
31220
31221 _ACEOF
31222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31223   $EGREP "__sasl_compat" >/dev/null 2>&1; then
31224   ol_cv_sasl_compat=yes
31225 else
31226   ol_cv_sasl_compat=no
31227 fi
31228 rm -f conftest*
31229
31230 fi
31231 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
31232 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
31233
31234                 if test $ol_cv_sasl_compat = no ; then
31235                         ol_link_sasl=no
31236                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
31237 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
31238    { (exit 1); exit 1; }; }
31239                 fi
31240
31241
31242 cat >>confdefs.h <<\_ACEOF
31243 #define HAVE_CYRUS_SASL 1
31244 _ACEOF
31245
31246                 SASL_LIBS="$ol_link_sasl"
31247                 if test $ol_enable_spasswd != no ; then
31248                         ol_link_spasswd=yes
31249                 fi
31250
31251                 ac_save_LIBS="$LIBS"
31252                 LIBS="$LIBS $ol_link_sasl"
31253                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
31254 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
31255 if test "${ac_cv_func_sasl_version+set}" = set; then
31256   echo $ECHO_N "(cached) $ECHO_C" >&6
31257 else
31258   cat >conftest.$ac_ext <<_ACEOF
31259 /* confdefs.h.  */
31260 _ACEOF
31261 cat confdefs.h >>conftest.$ac_ext
31262 cat >>conftest.$ac_ext <<_ACEOF
31263 /* end confdefs.h.  */
31264 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
31265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31266 #define sasl_version innocuous_sasl_version
31267
31268 /* System header to define __stub macros and hopefully few prototypes,
31269     which can conflict with char sasl_version (); below.
31270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31271     <limits.h> exists even on freestanding compilers.  */
31272
31273 #ifdef __STDC__
31274 # include <limits.h>
31275 #else
31276 # include <assert.h>
31277 #endif
31278
31279 #undef sasl_version
31280
31281 /* Override any GCC internal prototype to avoid an error.
31282    Use char because int might match the return type of a GCC
31283    builtin and then its argument prototype would still apply.  */
31284 #ifdef __cplusplus
31285 extern "C"
31286 #endif
31287 char sasl_version ();
31288 /* The GNU C library defines this for functions which it implements
31289     to always fail with ENOSYS.  Some functions are actually named
31290     something starting with __ and the normal name is an alias.  */
31291 #if defined __stub_sasl_version || defined __stub___sasl_version
31292 choke me
31293 #endif
31294
31295 int
31296 main ()
31297 {
31298 return sasl_version ();
31299   ;
31300   return 0;
31301 }
31302 _ACEOF
31303 rm -f conftest.$ac_objext conftest$ac_exeext
31304 if { (ac_try="$ac_link"
31305 case "(($ac_try" in
31306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31307   *) ac_try_echo=$ac_try;;
31308 esac
31309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31310   (eval "$ac_link") 2>conftest.er1
31311   ac_status=$?
31312   grep -v '^ *+' conftest.er1 >conftest.err
31313   rm -f conftest.er1
31314   cat conftest.err >&5
31315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316   (exit $ac_status); } && {
31317          test -z "$ac_c_werror_flag" ||
31318          test ! -s conftest.err
31319        } && test -s conftest$ac_exeext &&
31320        $as_test_x conftest$ac_exeext; then
31321   ac_cv_func_sasl_version=yes
31322 else
31323   echo "$as_me: failed program was:" >&5
31324 sed 's/^/| /' conftest.$ac_ext >&5
31325
31326         ac_cv_func_sasl_version=no
31327 fi
31328
31329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31330       conftest$ac_exeext conftest.$ac_ext
31331 fi
31332 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31333 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
31334 if test $ac_cv_func_sasl_version = yes; then
31335
31336 cat >>confdefs.h <<\_ACEOF
31337 #define HAVE_SASL_VERSION 1
31338 _ACEOF
31339
31340 fi
31341
31342                 LIBS="$ac_save_LIBS"
31343
31344                 WITH_SASL=yes
31345         fi
31346
31347 else
31348         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31349 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31350         if test $ol_link_tls = no ; then
31351                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31352 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31353         fi
31354 fi
31355
31356 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31357         dev=no
31358         if test -r /dev/urandom ; then
31359                 dev="/dev/urandom";
31360         elif test -r /idev/urandom ; then
31361                 dev="/idev/urandom";
31362         elif test -r /dev/srandom ; then
31363                 dev="/dev/srandom";
31364         elif test -r /dev/random ; then
31365                 dev="/dev/random";
31366         elif test -r /idev/random ; then
31367                 dev="/idev/random";
31368         fi
31369
31370         if test $dev != no ; then
31371
31372 cat >>confdefs.h <<_ACEOF
31373 #define URANDOM_DEVICE "$dev"
31374 _ACEOF
31375
31376         fi
31377 fi
31378
31379 ol_link_fetch=no
31380 if test $ol_with_fetch != no ; then
31381         ol_LIBS=$LIBS
31382 LIBS="-lfetch -lcom_err $LIBS"
31383 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31384 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31385 if test "${ol_cv_lib_fetch+set}" = set; then
31386   echo $ECHO_N "(cached) $ECHO_C" >&6
31387 else
31388
31389         cat >conftest.$ac_ext <<_ACEOF
31390 /* confdefs.h.  */
31391 _ACEOF
31392 cat confdefs.h >>conftest.$ac_ext
31393 cat >>conftest.$ac_ext <<_ACEOF
31394 /* end confdefs.h.  */
31395
31396 #ifdef HAVE_SYS_PARAM_H
31397 #include <sys/param.h>
31398 #endif
31399 #include <stdio.h>
31400 #include <fetch.h>
31401 int
31402 main ()
31403 {
31404 struct url *u = fetchParseURL("file:///");
31405   ;
31406   return 0;
31407 }
31408 _ACEOF
31409 rm -f conftest.$ac_objext conftest$ac_exeext
31410 if { (ac_try="$ac_link"
31411 case "(($ac_try" in
31412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31413   *) ac_try_echo=$ac_try;;
31414 esac
31415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31416   (eval "$ac_link") 2>conftest.er1
31417   ac_status=$?
31418   grep -v '^ *+' conftest.er1 >conftest.err
31419   rm -f conftest.er1
31420   cat conftest.err >&5
31421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422   (exit $ac_status); } && {
31423          test -z "$ac_c_werror_flag" ||
31424          test ! -s conftest.err
31425        } && test -s conftest$ac_exeext &&
31426        $as_test_x conftest$ac_exeext; then
31427   ol_cv_lib_fetch=yes
31428 else
31429   echo "$as_me: failed program was:" >&5
31430 sed 's/^/| /' conftest.$ac_ext >&5
31431
31432         ol_cv_lib_fetch=no
31433 fi
31434
31435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31436       conftest$ac_exeext conftest.$ac_ext
31437 fi
31438 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31439 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31440 LIBS=$ol_LIBS
31441 if test $ol_cv_lib_fetch != no ; then
31442         ol_link_fetch="-lfetch -lcom_err"
31443
31444 cat >>confdefs.h <<\_ACEOF
31445 #define HAVE_FETCH 1
31446 _ACEOF
31447
31448 fi
31449
31450
31451         if test $ol_cv_lib_fetch != no ; then
31452                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31453                 ol_link_fetch=freebsd
31454
31455         elif test $ol_with_fetch != auto ; then
31456                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31457 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31458    { (exit 1); exit 1; }; }
31459         fi
31460 fi
31461
31462 if test $ol_enable_crypt != no ; then
31463         save_LIBS="$LIBS"
31464         LIBS="$TLS_LIBS $LIBS"
31465
31466         { echo "$as_me:$LINENO: checking for crypt" >&5
31467 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31468 if test "${ac_cv_func_crypt+set}" = set; then
31469   echo $ECHO_N "(cached) $ECHO_C" >&6
31470 else
31471   cat >conftest.$ac_ext <<_ACEOF
31472 /* confdefs.h.  */
31473 _ACEOF
31474 cat confdefs.h >>conftest.$ac_ext
31475 cat >>conftest.$ac_ext <<_ACEOF
31476 /* end confdefs.h.  */
31477 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31479 #define crypt innocuous_crypt
31480
31481 /* System header to define __stub macros and hopefully few prototypes,
31482     which can conflict with char crypt (); below.
31483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31484     <limits.h> exists even on freestanding compilers.  */
31485
31486 #ifdef __STDC__
31487 # include <limits.h>
31488 #else
31489 # include <assert.h>
31490 #endif
31491
31492 #undef crypt
31493
31494 /* Override any GCC internal prototype to avoid an error.
31495    Use char because int might match the return type of a GCC
31496    builtin and then its argument prototype would still apply.  */
31497 #ifdef __cplusplus
31498 extern "C"
31499 #endif
31500 char crypt ();
31501 /* The GNU C library defines this for functions which it implements
31502     to always fail with ENOSYS.  Some functions are actually named
31503     something starting with __ and the normal name is an alias.  */
31504 #if defined __stub_crypt || defined __stub___crypt
31505 choke me
31506 #endif
31507
31508 int
31509 main ()
31510 {
31511 return crypt ();
31512   ;
31513   return 0;
31514 }
31515 _ACEOF
31516 rm -f conftest.$ac_objext conftest$ac_exeext
31517 if { (ac_try="$ac_link"
31518 case "(($ac_try" in
31519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31520   *) ac_try_echo=$ac_try;;
31521 esac
31522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31523   (eval "$ac_link") 2>conftest.er1
31524   ac_status=$?
31525   grep -v '^ *+' conftest.er1 >conftest.err
31526   rm -f conftest.er1
31527   cat conftest.err >&5
31528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529   (exit $ac_status); } && {
31530          test -z "$ac_c_werror_flag" ||
31531          test ! -s conftest.err
31532        } && test -s conftest$ac_exeext &&
31533        $as_test_x conftest$ac_exeext; then
31534   ac_cv_func_crypt=yes
31535 else
31536   echo "$as_me: failed program was:" >&5
31537 sed 's/^/| /' conftest.$ac_ext >&5
31538
31539         ac_cv_func_crypt=no
31540 fi
31541
31542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31543       conftest$ac_exeext conftest.$ac_ext
31544 fi
31545 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31546 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31547 if test $ac_cv_func_crypt = yes; then
31548   have_crypt=yes
31549 else
31550
31551                 LIBS="$save_LIBS"
31552                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31553 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31554 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31555   echo $ECHO_N "(cached) $ECHO_C" >&6
31556 else
31557   ac_check_lib_save_LIBS=$LIBS
31558 LIBS="-lcrypt  $LIBS"
31559 cat >conftest.$ac_ext <<_ACEOF
31560 /* confdefs.h.  */
31561 _ACEOF
31562 cat confdefs.h >>conftest.$ac_ext
31563 cat >>conftest.$ac_ext <<_ACEOF
31564 /* end confdefs.h.  */
31565
31566 /* Override any GCC internal prototype to avoid an error.
31567    Use char because int might match the return type of a GCC
31568    builtin and then its argument prototype would still apply.  */
31569 #ifdef __cplusplus
31570 extern "C"
31571 #endif
31572 char crypt ();
31573 int
31574 main ()
31575 {
31576 return crypt ();
31577   ;
31578   return 0;
31579 }
31580 _ACEOF
31581 rm -f conftest.$ac_objext conftest$ac_exeext
31582 if { (ac_try="$ac_link"
31583 case "(($ac_try" in
31584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585   *) ac_try_echo=$ac_try;;
31586 esac
31587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31588   (eval "$ac_link") 2>conftest.er1
31589   ac_status=$?
31590   grep -v '^ *+' conftest.er1 >conftest.err
31591   rm -f conftest.er1
31592   cat conftest.err >&5
31593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594   (exit $ac_status); } && {
31595          test -z "$ac_c_werror_flag" ||
31596          test ! -s conftest.err
31597        } && test -s conftest$ac_exeext &&
31598        $as_test_x conftest$ac_exeext; then
31599   ac_cv_lib_crypt_crypt=yes
31600 else
31601   echo "$as_me: failed program was:" >&5
31602 sed 's/^/| /' conftest.$ac_ext >&5
31603
31604         ac_cv_lib_crypt_crypt=no
31605 fi
31606
31607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31608       conftest$ac_exeext conftest.$ac_ext
31609 LIBS=$ac_check_lib_save_LIBS
31610 fi
31611 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31612 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31613 if test $ac_cv_lib_crypt_crypt = yes; then
31614   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31615                         have_crypt=yes
31616 else
31617   have_crypt=no
31618 fi
31619
31620 fi
31621
31622
31623         LIBS="$save_LIBS"
31624
31625         if test $have_crypt = yes ; then
31626
31627 cat >>confdefs.h <<\_ACEOF
31628 #define HAVE_CRYPT 1
31629 _ACEOF
31630
31631         else
31632                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31633 echo "$as_me: WARNING: could not find crypt" >&2;}
31634                 if test $ol_enable_crypt = yes ; then
31635                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31636 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31637    { (exit 1); exit 1; }; }
31638                 fi
31639
31640                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31641 echo "$as_me: WARNING: disabling crypt support" >&2;}
31642                 ol_enable_crypt=no
31643         fi
31644 fi
31645
31646 if test $ol_enable_proctitle != no ; then
31647         { echo "$as_me:$LINENO: checking for setproctitle" >&5
31648 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31649 if test "${ac_cv_func_setproctitle+set}" = set; then
31650   echo $ECHO_N "(cached) $ECHO_C" >&6
31651 else
31652   cat >conftest.$ac_ext <<_ACEOF
31653 /* confdefs.h.  */
31654 _ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h.  */
31658 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31660 #define setproctitle innocuous_setproctitle
31661
31662 /* System header to define __stub macros and hopefully few prototypes,
31663     which can conflict with char setproctitle (); below.
31664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31665     <limits.h> exists even on freestanding compilers.  */
31666
31667 #ifdef __STDC__
31668 # include <limits.h>
31669 #else
31670 # include <assert.h>
31671 #endif
31672
31673 #undef setproctitle
31674
31675 /* Override any GCC internal prototype to avoid an error.
31676    Use char because int might match the return type of a GCC
31677    builtin and then its argument prototype would still apply.  */
31678 #ifdef __cplusplus
31679 extern "C"
31680 #endif
31681 char setproctitle ();
31682 /* The GNU C library defines this for functions which it implements
31683     to always fail with ENOSYS.  Some functions are actually named
31684     something starting with __ and the normal name is an alias.  */
31685 #if defined __stub_setproctitle || defined __stub___setproctitle
31686 choke me
31687 #endif
31688
31689 int
31690 main ()
31691 {
31692 return setproctitle ();
31693   ;
31694   return 0;
31695 }
31696 _ACEOF
31697 rm -f conftest.$ac_objext conftest$ac_exeext
31698 if { (ac_try="$ac_link"
31699 case "(($ac_try" in
31700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31701   *) ac_try_echo=$ac_try;;
31702 esac
31703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31704   (eval "$ac_link") 2>conftest.er1
31705   ac_status=$?
31706   grep -v '^ *+' conftest.er1 >conftest.err
31707   rm -f conftest.er1
31708   cat conftest.err >&5
31709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710   (exit $ac_status); } && {
31711          test -z "$ac_c_werror_flag" ||
31712          test ! -s conftest.err
31713        } && test -s conftest$ac_exeext &&
31714        $as_test_x conftest$ac_exeext; then
31715   ac_cv_func_setproctitle=yes
31716 else
31717   echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31719
31720         ac_cv_func_setproctitle=no
31721 fi
31722
31723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31724       conftest$ac_exeext conftest.$ac_ext
31725 fi
31726 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31727 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31728 if test $ac_cv_func_setproctitle = yes; then
31729   have_setproctitle=yes
31730 else
31731
31732                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31733 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31734 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31735   echo $ECHO_N "(cached) $ECHO_C" >&6
31736 else
31737   ac_check_lib_save_LIBS=$LIBS
31738 LIBS="-lutil  $LIBS"
31739 cat >conftest.$ac_ext <<_ACEOF
31740 /* confdefs.h.  */
31741 _ACEOF
31742 cat confdefs.h >>conftest.$ac_ext
31743 cat >>conftest.$ac_ext <<_ACEOF
31744 /* end confdefs.h.  */
31745
31746 /* Override any GCC internal prototype to avoid an error.
31747    Use char because int might match the return type of a GCC
31748    builtin and then its argument prototype would still apply.  */
31749 #ifdef __cplusplus
31750 extern "C"
31751 #endif
31752 char setproctitle ();
31753 int
31754 main ()
31755 {
31756 return setproctitle ();
31757   ;
31758   return 0;
31759 }
31760 _ACEOF
31761 rm -f conftest.$ac_objext conftest$ac_exeext
31762 if { (ac_try="$ac_link"
31763 case "(($ac_try" in
31764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765   *) ac_try_echo=$ac_try;;
31766 esac
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768   (eval "$ac_link") 2>conftest.er1
31769   ac_status=$?
31770   grep -v '^ *+' conftest.er1 >conftest.err
31771   rm -f conftest.er1
31772   cat conftest.err >&5
31773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774   (exit $ac_status); } && {
31775          test -z "$ac_c_werror_flag" ||
31776          test ! -s conftest.err
31777        } && test -s conftest$ac_exeext &&
31778        $as_test_x conftest$ac_exeext; then
31779   ac_cv_lib_util_setproctitle=yes
31780 else
31781   echo "$as_me: failed program was:" >&5
31782 sed 's/^/| /' conftest.$ac_ext >&5
31783
31784         ac_cv_lib_util_setproctitle=no
31785 fi
31786
31787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31788       conftest$ac_exeext conftest.$ac_ext
31789 LIBS=$ac_check_lib_save_LIBS
31790 fi
31791 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31792 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31793 if test $ac_cv_lib_util_setproctitle = yes; then
31794   have_setproctitle=yes
31795                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31796 else
31797   have_setproctitle=no
31798                         case " $LIBOBJS " in
31799   *" setproctitle.$ac_objext "* ) ;;
31800   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31801  ;;
31802 esac
31803
31804                         LIBSRCS="$LIBSRCS setproctitle.c"
31805 fi
31806
31807 fi
31808
31809
31810         if test $have_setproctitle = yes ; then
31811
31812 cat >>confdefs.h <<\_ACEOF
31813 #define HAVE_SETPROCTITLE 1
31814 _ACEOF
31815
31816         fi
31817 fi
31818
31819 if test $ol_enable_slp != no ; then
31820
31821 for ac_header in slp.h
31822 do
31823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31825   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31828   echo $ECHO_N "(cached) $ECHO_C" >&6
31829 fi
31830 ac_res=`eval echo '${'$as_ac_Header'}'`
31831                { echo "$as_me:$LINENO: result: $ac_res" >&5
31832 echo "${ECHO_T}$ac_res" >&6; }
31833 else
31834   # Is the header compilable?
31835 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31837 cat >conftest.$ac_ext <<_ACEOF
31838 /* confdefs.h.  */
31839 _ACEOF
31840 cat confdefs.h >>conftest.$ac_ext
31841 cat >>conftest.$ac_ext <<_ACEOF
31842 /* end confdefs.h.  */
31843 $ac_includes_default
31844 #include <$ac_header>
31845 _ACEOF
31846 rm -f conftest.$ac_objext
31847 if { (ac_try="$ac_compile"
31848 case "(($ac_try" in
31849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31850   *) ac_try_echo=$ac_try;;
31851 esac
31852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31853   (eval "$ac_compile") 2>conftest.er1
31854   ac_status=$?
31855   grep -v '^ *+' conftest.er1 >conftest.err
31856   rm -f conftest.er1
31857   cat conftest.err >&5
31858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859   (exit $ac_status); } && {
31860          test -z "$ac_c_werror_flag" ||
31861          test ! -s conftest.err
31862        } && test -s conftest.$ac_objext; then
31863   ac_header_compiler=yes
31864 else
31865   echo "$as_me: failed program was:" >&5
31866 sed 's/^/| /' conftest.$ac_ext >&5
31867
31868         ac_header_compiler=no
31869 fi
31870
31871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31873 echo "${ECHO_T}$ac_header_compiler" >&6; }
31874
31875 # Is the header present?
31876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31878 cat >conftest.$ac_ext <<_ACEOF
31879 /* confdefs.h.  */
31880 _ACEOF
31881 cat confdefs.h >>conftest.$ac_ext
31882 cat >>conftest.$ac_ext <<_ACEOF
31883 /* end confdefs.h.  */
31884 #include <$ac_header>
31885 _ACEOF
31886 if { (ac_try="$ac_cpp conftest.$ac_ext"
31887 case "(($ac_try" in
31888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889   *) ac_try_echo=$ac_try;;
31890 esac
31891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31892   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31893   ac_status=$?
31894   grep -v '^ *+' conftest.er1 >conftest.err
31895   rm -f conftest.er1
31896   cat conftest.err >&5
31897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898   (exit $ac_status); } >/dev/null && {
31899          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31900          test ! -s conftest.err
31901        }; then
31902   ac_header_preproc=yes
31903 else
31904   echo "$as_me: failed program was:" >&5
31905 sed 's/^/| /' conftest.$ac_ext >&5
31906
31907   ac_header_preproc=no
31908 fi
31909
31910 rm -f conftest.err conftest.$ac_ext
31911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31912 echo "${ECHO_T}$ac_header_preproc" >&6; }
31913
31914 # So?  What about this header?
31915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31916   yes:no: )
31917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31921     ac_header_preproc=yes
31922     ;;
31923   no:yes:* )
31924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31936     ( cat <<\_ASBOX
31937 ## --------------------------------------------- ##
31938 ## Report this to <http://www.openldap.org/its/> ##
31939 ## --------------------------------------------- ##
31940 _ASBOX
31941      ) | sed "s/^/$as_me: WARNING:     /" >&2
31942     ;;
31943 esac
31944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31947   echo $ECHO_N "(cached) $ECHO_C" >&6
31948 else
31949   eval "$as_ac_Header=\$ac_header_preproc"
31950 fi
31951 ac_res=`eval echo '${'$as_ac_Header'}'`
31952                { echo "$as_me:$LINENO: result: $ac_res" >&5
31953 echo "${ECHO_T}$ac_res" >&6; }
31954
31955 fi
31956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31957   cat >>confdefs.h <<_ACEOF
31958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31959 _ACEOF
31960
31961 fi
31962
31963 done
31964
31965
31966         if test $ac_cv_header_slp_h = yes ; then
31967                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31968 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31969 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31970   echo $ECHO_N "(cached) $ECHO_C" >&6
31971 else
31972   ac_check_lib_save_LIBS=$LIBS
31973 LIBS="-lslp  $LIBS"
31974 cat >conftest.$ac_ext <<_ACEOF
31975 /* confdefs.h.  */
31976 _ACEOF
31977 cat confdefs.h >>conftest.$ac_ext
31978 cat >>conftest.$ac_ext <<_ACEOF
31979 /* end confdefs.h.  */
31980
31981 /* Override any GCC internal prototype to avoid an error.
31982    Use char because int might match the return type of a GCC
31983    builtin and then its argument prototype would still apply.  */
31984 #ifdef __cplusplus
31985 extern "C"
31986 #endif
31987 char SLPOpen ();
31988 int
31989 main ()
31990 {
31991 return SLPOpen ();
31992   ;
31993   return 0;
31994 }
31995 _ACEOF
31996 rm -f conftest.$ac_objext conftest$ac_exeext
31997 if { (ac_try="$ac_link"
31998 case "(($ac_try" in
31999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32000   *) ac_try_echo=$ac_try;;
32001 esac
32002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32003   (eval "$ac_link") 2>conftest.er1
32004   ac_status=$?
32005   grep -v '^ *+' conftest.er1 >conftest.err
32006   rm -f conftest.er1
32007   cat conftest.err >&5
32008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009   (exit $ac_status); } && {
32010          test -z "$ac_c_werror_flag" ||
32011          test ! -s conftest.err
32012        } && test -s conftest$ac_exeext &&
32013        $as_test_x conftest$ac_exeext; then
32014   ac_cv_lib_slp_SLPOpen=yes
32015 else
32016   echo "$as_me: failed program was:" >&5
32017 sed 's/^/| /' conftest.$ac_ext >&5
32018
32019         ac_cv_lib_slp_SLPOpen=no
32020 fi
32021
32022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32023       conftest$ac_exeext conftest.$ac_ext
32024 LIBS=$ac_check_lib_save_LIBS
32025 fi
32026 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
32027 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
32028 if test $ac_cv_lib_slp_SLPOpen = yes; then
32029   have_slp=yes
32030 else
32031   have_slp=no
32032 fi
32033
32034                 if test $have_slp = yes ; then
32035
32036 cat >>confdefs.h <<\_ACEOF
32037 #define HAVE_SLP 1
32038 _ACEOF
32039
32040                         SLAPD_SLP_LIBS=-lslp
32041                 fi
32042
32043         elif test $ol_enable_slp = yes ; then
32044                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
32045 echo "$as_me: error: SLP not found" >&2;}
32046    { (exit 1); exit 1; }; }
32047         fi
32048 fi
32049
32050
32051 { echo "$as_me:$LINENO: checking for mode_t" >&5
32052 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
32053 if test "${ac_cv_type_mode_t+set}" = set; then
32054   echo $ECHO_N "(cached) $ECHO_C" >&6
32055 else
32056   cat >conftest.$ac_ext <<_ACEOF
32057 /* confdefs.h.  */
32058 _ACEOF
32059 cat confdefs.h >>conftest.$ac_ext
32060 cat >>conftest.$ac_ext <<_ACEOF
32061 /* end confdefs.h.  */
32062 $ac_includes_default
32063 typedef mode_t ac__type_new_;
32064 int
32065 main ()
32066 {
32067 if ((ac__type_new_ *) 0)
32068   return 0;
32069 if (sizeof (ac__type_new_))
32070   return 0;
32071   ;
32072   return 0;
32073 }
32074 _ACEOF
32075 rm -f conftest.$ac_objext
32076 if { (ac_try="$ac_compile"
32077 case "(($ac_try" in
32078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32079   *) ac_try_echo=$ac_try;;
32080 esac
32081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32082   (eval "$ac_compile") 2>conftest.er1
32083   ac_status=$?
32084   grep -v '^ *+' conftest.er1 >conftest.err
32085   rm -f conftest.er1
32086   cat conftest.err >&5
32087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32088   (exit $ac_status); } && {
32089          test -z "$ac_c_werror_flag" ||
32090          test ! -s conftest.err
32091        } && test -s conftest.$ac_objext; then
32092   ac_cv_type_mode_t=yes
32093 else
32094   echo "$as_me: failed program was:" >&5
32095 sed 's/^/| /' conftest.$ac_ext >&5
32096
32097         ac_cv_type_mode_t=no
32098 fi
32099
32100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32101 fi
32102 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32103 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
32104 if test $ac_cv_type_mode_t = yes; then
32105   :
32106 else
32107
32108 cat >>confdefs.h <<_ACEOF
32109 #define mode_t int
32110 _ACEOF
32111
32112 fi
32113
32114 { echo "$as_me:$LINENO: checking for off_t" >&5
32115 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
32116 if test "${ac_cv_type_off_t+set}" = set; then
32117   echo $ECHO_N "(cached) $ECHO_C" >&6
32118 else
32119   cat >conftest.$ac_ext <<_ACEOF
32120 /* confdefs.h.  */
32121 _ACEOF
32122 cat confdefs.h >>conftest.$ac_ext
32123 cat >>conftest.$ac_ext <<_ACEOF
32124 /* end confdefs.h.  */
32125 $ac_includes_default
32126 typedef off_t ac__type_new_;
32127 int
32128 main ()
32129 {
32130 if ((ac__type_new_ *) 0)
32131   return 0;
32132 if (sizeof (ac__type_new_))
32133   return 0;
32134   ;
32135   return 0;
32136 }
32137 _ACEOF
32138 rm -f conftest.$ac_objext
32139 if { (ac_try="$ac_compile"
32140 case "(($ac_try" in
32141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32142   *) ac_try_echo=$ac_try;;
32143 esac
32144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32145   (eval "$ac_compile") 2>conftest.er1
32146   ac_status=$?
32147   grep -v '^ *+' conftest.er1 >conftest.err
32148   rm -f conftest.er1
32149   cat conftest.err >&5
32150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151   (exit $ac_status); } && {
32152          test -z "$ac_c_werror_flag" ||
32153          test ! -s conftest.err
32154        } && test -s conftest.$ac_objext; then
32155   ac_cv_type_off_t=yes
32156 else
32157   echo "$as_me: failed program was:" >&5
32158 sed 's/^/| /' conftest.$ac_ext >&5
32159
32160         ac_cv_type_off_t=no
32161 fi
32162
32163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32164 fi
32165 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32166 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
32167 if test $ac_cv_type_off_t = yes; then
32168   :
32169 else
32170
32171 cat >>confdefs.h <<_ACEOF
32172 #define off_t long
32173 _ACEOF
32174
32175 fi
32176
32177 { echo "$as_me:$LINENO: checking for pid_t" >&5
32178 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
32179 if test "${ac_cv_type_pid_t+set}" = set; then
32180   echo $ECHO_N "(cached) $ECHO_C" >&6
32181 else
32182   cat >conftest.$ac_ext <<_ACEOF
32183 /* confdefs.h.  */
32184 _ACEOF
32185 cat confdefs.h >>conftest.$ac_ext
32186 cat >>conftest.$ac_ext <<_ACEOF
32187 /* end confdefs.h.  */
32188 $ac_includes_default
32189 typedef pid_t ac__type_new_;
32190 int
32191 main ()
32192 {
32193 if ((ac__type_new_ *) 0)
32194   return 0;
32195 if (sizeof (ac__type_new_))
32196   return 0;
32197   ;
32198   return 0;
32199 }
32200 _ACEOF
32201 rm -f conftest.$ac_objext
32202 if { (ac_try="$ac_compile"
32203 case "(($ac_try" in
32204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205   *) ac_try_echo=$ac_try;;
32206 esac
32207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208   (eval "$ac_compile") 2>conftest.er1
32209   ac_status=$?
32210   grep -v '^ *+' conftest.er1 >conftest.err
32211   rm -f conftest.er1
32212   cat conftest.err >&5
32213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214   (exit $ac_status); } && {
32215          test -z "$ac_c_werror_flag" ||
32216          test ! -s conftest.err
32217        } && test -s conftest.$ac_objext; then
32218   ac_cv_type_pid_t=yes
32219 else
32220   echo "$as_me: failed program was:" >&5
32221 sed 's/^/| /' conftest.$ac_ext >&5
32222
32223         ac_cv_type_pid_t=no
32224 fi
32225
32226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32227 fi
32228 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32229 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
32230 if test $ac_cv_type_pid_t = yes; then
32231   :
32232 else
32233
32234 cat >>confdefs.h <<_ACEOF
32235 #define pid_t int
32236 _ACEOF
32237
32238 fi
32239
32240 { echo "$as_me:$LINENO: checking for ssize_t" >&5
32241 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
32242 if test "${ac_cv_type_ssize_t+set}" = set; then
32243   echo $ECHO_N "(cached) $ECHO_C" >&6
32244 else
32245   cat >conftest.$ac_ext <<_ACEOF
32246 /* confdefs.h.  */
32247 _ACEOF
32248 cat confdefs.h >>conftest.$ac_ext
32249 cat >>conftest.$ac_ext <<_ACEOF
32250 /* end confdefs.h.  */
32251 $ac_includes_default
32252 typedef ssize_t ac__type_new_;
32253 int
32254 main ()
32255 {
32256 if ((ac__type_new_ *) 0)
32257   return 0;
32258 if (sizeof (ac__type_new_))
32259   return 0;
32260   ;
32261   return 0;
32262 }
32263 _ACEOF
32264 rm -f conftest.$ac_objext
32265 if { (ac_try="$ac_compile"
32266 case "(($ac_try" in
32267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32268   *) ac_try_echo=$ac_try;;
32269 esac
32270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32271   (eval "$ac_compile") 2>conftest.er1
32272   ac_status=$?
32273   grep -v '^ *+' conftest.er1 >conftest.err
32274   rm -f conftest.er1
32275   cat conftest.err >&5
32276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277   (exit $ac_status); } && {
32278          test -z "$ac_c_werror_flag" ||
32279          test ! -s conftest.err
32280        } && test -s conftest.$ac_objext; then
32281   ac_cv_type_ssize_t=yes
32282 else
32283   echo "$as_me: failed program was:" >&5
32284 sed 's/^/| /' conftest.$ac_ext >&5
32285
32286         ac_cv_type_ssize_t=no
32287 fi
32288
32289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32290 fi
32291 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32292 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
32293 if test $ac_cv_type_ssize_t = yes; then
32294   :
32295 else
32296
32297 cat >>confdefs.h <<_ACEOF
32298 #define ssize_t signed int
32299 _ACEOF
32300
32301 fi
32302
32303 { echo "$as_me:$LINENO: checking for caddr_t" >&5
32304 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
32305 if test "${ac_cv_type_caddr_t+set}" = set; then
32306   echo $ECHO_N "(cached) $ECHO_C" >&6
32307 else
32308   cat >conftest.$ac_ext <<_ACEOF
32309 /* confdefs.h.  */
32310 _ACEOF
32311 cat confdefs.h >>conftest.$ac_ext
32312 cat >>conftest.$ac_ext <<_ACEOF
32313 /* end confdefs.h.  */
32314 $ac_includes_default
32315 typedef caddr_t ac__type_new_;
32316 int
32317 main ()
32318 {
32319 if ((ac__type_new_ *) 0)
32320   return 0;
32321 if (sizeof (ac__type_new_))
32322   return 0;
32323   ;
32324   return 0;
32325 }
32326 _ACEOF
32327 rm -f conftest.$ac_objext
32328 if { (ac_try="$ac_compile"
32329 case "(($ac_try" in
32330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32331   *) ac_try_echo=$ac_try;;
32332 esac
32333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32334   (eval "$ac_compile") 2>conftest.er1
32335   ac_status=$?
32336   grep -v '^ *+' conftest.er1 >conftest.err
32337   rm -f conftest.er1
32338   cat conftest.err >&5
32339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340   (exit $ac_status); } && {
32341          test -z "$ac_c_werror_flag" ||
32342          test ! -s conftest.err
32343        } && test -s conftest.$ac_objext; then
32344   ac_cv_type_caddr_t=yes
32345 else
32346   echo "$as_me: failed program was:" >&5
32347 sed 's/^/| /' conftest.$ac_ext >&5
32348
32349         ac_cv_type_caddr_t=no
32350 fi
32351
32352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32353 fi
32354 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32355 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32356 if test $ac_cv_type_caddr_t = yes; then
32357   :
32358 else
32359
32360 cat >>confdefs.h <<_ACEOF
32361 #define caddr_t char *
32362 _ACEOF
32363
32364 fi
32365
32366 { echo "$as_me:$LINENO: checking for size_t" >&5
32367 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32368 if test "${ac_cv_type_size_t+set}" = set; then
32369   echo $ECHO_N "(cached) $ECHO_C" >&6
32370 else
32371   cat >conftest.$ac_ext <<_ACEOF
32372 /* confdefs.h.  */
32373 _ACEOF
32374 cat confdefs.h >>conftest.$ac_ext
32375 cat >>conftest.$ac_ext <<_ACEOF
32376 /* end confdefs.h.  */
32377 $ac_includes_default
32378 typedef size_t ac__type_new_;
32379 int
32380 main ()
32381 {
32382 if ((ac__type_new_ *) 0)
32383   return 0;
32384 if (sizeof (ac__type_new_))
32385   return 0;
32386   ;
32387   return 0;
32388 }
32389 _ACEOF
32390 rm -f conftest.$ac_objext
32391 if { (ac_try="$ac_compile"
32392 case "(($ac_try" in
32393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394   *) ac_try_echo=$ac_try;;
32395 esac
32396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397   (eval "$ac_compile") 2>conftest.er1
32398   ac_status=$?
32399   grep -v '^ *+' conftest.er1 >conftest.err
32400   rm -f conftest.er1
32401   cat conftest.err >&5
32402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403   (exit $ac_status); } && {
32404          test -z "$ac_c_werror_flag" ||
32405          test ! -s conftest.err
32406        } && test -s conftest.$ac_objext; then
32407   ac_cv_type_size_t=yes
32408 else
32409   echo "$as_me: failed program was:" >&5
32410 sed 's/^/| /' conftest.$ac_ext >&5
32411
32412         ac_cv_type_size_t=no
32413 fi
32414
32415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32416 fi
32417 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32418 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32419 if test $ac_cv_type_size_t = yes; then
32420   :
32421 else
32422
32423 cat >>confdefs.h <<_ACEOF
32424 #define size_t unsigned
32425 _ACEOF
32426
32427 fi
32428
32429
32430 { echo "$as_me:$LINENO: checking for long long" >&5
32431 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32432 if test "${ac_cv_type_long_long+set}" = set; then
32433   echo $ECHO_N "(cached) $ECHO_C" >&6
32434 else
32435   cat >conftest.$ac_ext <<_ACEOF
32436 /* confdefs.h.  */
32437 _ACEOF
32438 cat confdefs.h >>conftest.$ac_ext
32439 cat >>conftest.$ac_ext <<_ACEOF
32440 /* end confdefs.h.  */
32441 $ac_includes_default
32442 typedef long long ac__type_new_;
32443 int
32444 main ()
32445 {
32446 if ((ac__type_new_ *) 0)
32447   return 0;
32448 if (sizeof (ac__type_new_))
32449   return 0;
32450   ;
32451   return 0;
32452 }
32453 _ACEOF
32454 rm -f conftest.$ac_objext
32455 if { (ac_try="$ac_compile"
32456 case "(($ac_try" in
32457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32458   *) ac_try_echo=$ac_try;;
32459 esac
32460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32461   (eval "$ac_compile") 2>conftest.er1
32462   ac_status=$?
32463   grep -v '^ *+' conftest.er1 >conftest.err
32464   rm -f conftest.er1
32465   cat conftest.err >&5
32466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32467   (exit $ac_status); } && {
32468          test -z "$ac_c_werror_flag" ||
32469          test ! -s conftest.err
32470        } && test -s conftest.$ac_objext; then
32471   ac_cv_type_long_long=yes
32472 else
32473   echo "$as_me: failed program was:" >&5
32474 sed 's/^/| /' conftest.$ac_ext >&5
32475
32476         ac_cv_type_long_long=no
32477 fi
32478
32479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32480 fi
32481 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32482 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32483 if test $ac_cv_type_long_long = yes; then
32484
32485 cat >>confdefs.h <<_ACEOF
32486 #define HAVE_LONG_LONG 1
32487 _ACEOF
32488
32489
32490 fi
32491
32492 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32493 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32494 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32495   echo $ECHO_N "(cached) $ECHO_C" >&6
32496 else
32497   cat >conftest.$ac_ext <<_ACEOF
32498 /* confdefs.h.  */
32499 _ACEOF
32500 cat confdefs.h >>conftest.$ac_ext
32501 cat >>conftest.$ac_ext <<_ACEOF
32502 /* end confdefs.h.  */
32503 $ac_includes_default
32504 typedef ptrdiff_t ac__type_new_;
32505 int
32506 main ()
32507 {
32508 if ((ac__type_new_ *) 0)
32509   return 0;
32510 if (sizeof (ac__type_new_))
32511   return 0;
32512   ;
32513   return 0;
32514 }
32515 _ACEOF
32516 rm -f conftest.$ac_objext
32517 if { (ac_try="$ac_compile"
32518 case "(($ac_try" in
32519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32520   *) ac_try_echo=$ac_try;;
32521 esac
32522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32523   (eval "$ac_compile") 2>conftest.er1
32524   ac_status=$?
32525   grep -v '^ *+' conftest.er1 >conftest.err
32526   rm -f conftest.er1
32527   cat conftest.err >&5
32528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529   (exit $ac_status); } && {
32530          test -z "$ac_c_werror_flag" ||
32531          test ! -s conftest.err
32532        } && test -s conftest.$ac_objext; then
32533   ac_cv_type_ptrdiff_t=yes
32534 else
32535   echo "$as_me: failed program was:" >&5
32536 sed 's/^/| /' conftest.$ac_ext >&5
32537
32538         ac_cv_type_ptrdiff_t=no
32539 fi
32540
32541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32542 fi
32543 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32544 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32545 if test $ac_cv_type_ptrdiff_t = yes; then
32546
32547 cat >>confdefs.h <<_ACEOF
32548 #define HAVE_PTRDIFF_T 1
32549 _ACEOF
32550
32551
32552 fi
32553
32554
32555
32556 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32557 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32558 if test "${ac_cv_type_socklen_t+set}" = set; then
32559   echo $ECHO_N "(cached) $ECHO_C" >&6
32560 else
32561   cat >conftest.$ac_ext <<_ACEOF
32562 /* confdefs.h.  */
32563 _ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h.  */
32567 $ac_includes_default
32568 #ifdef HAVE_SYS_SOCKET_H
32569 #include <sys/socket.h>
32570 #endif
32571
32572 typedef socklen_t ac__type_new_;
32573 int
32574 main ()
32575 {
32576 if ((ac__type_new_ *) 0)
32577   return 0;
32578 if (sizeof (ac__type_new_))
32579   return 0;
32580   ;
32581   return 0;
32582 }
32583 _ACEOF
32584 rm -f conftest.$ac_objext
32585 if { (ac_try="$ac_compile"
32586 case "(($ac_try" in
32587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32588   *) ac_try_echo=$ac_try;;
32589 esac
32590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32591   (eval "$ac_compile") 2>conftest.er1
32592   ac_status=$?
32593   grep -v '^ *+' conftest.er1 >conftest.err
32594   rm -f conftest.er1
32595   cat conftest.err >&5
32596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597   (exit $ac_status); } && {
32598          test -z "$ac_c_werror_flag" ||
32599          test ! -s conftest.err
32600        } && test -s conftest.$ac_objext; then
32601   ac_cv_type_socklen_t=yes
32602 else
32603   echo "$as_me: failed program was:" >&5
32604 sed 's/^/| /' conftest.$ac_ext >&5
32605
32606         ac_cv_type_socklen_t=no
32607 fi
32608
32609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32610 fi
32611 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32612 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32613
32614
32615 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32616 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32617 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32618   echo $ECHO_N "(cached) $ECHO_C" >&6
32619 else
32620
32621         set socklen_t int unsigned "unsigned long" long size_t
32622         test "$ac_cv_type_socklen_t" = yes || shift
32623         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32624         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32625                 cat >conftest.$ac_ext <<_ACEOF
32626 /* confdefs.h.  */
32627 _ACEOF
32628 cat confdefs.h >>conftest.$ac_ext
32629 cat >>conftest.$ac_ext <<_ACEOF
32630 /* end confdefs.h.  */
32631 $ac_includes_default
32632 #ifdef HAVE_SYS_SOCKET_H
32633 #include <sys/socket.h>
32634 #endif
32635 extern int accept(int s, $addrtype *ap, $lentype *lp);
32636
32637 int
32638 main ()
32639 {
32640
32641 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32642
32643   ;
32644   return 0;
32645 }
32646 _ACEOF
32647 rm -f conftest.$ac_objext
32648 if { (ac_try="$ac_compile"
32649 case "(($ac_try" in
32650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32651   *) ac_try_echo=$ac_try;;
32652 esac
32653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32654   (eval "$ac_compile") 2>conftest.er1
32655   ac_status=$?
32656   grep -v '^ *+' conftest.er1 >conftest.err
32657   rm -f conftest.er1
32658   cat conftest.err >&5
32659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660   (exit $ac_status); } && {
32661          test -z "$ac_c_werror_flag" ||
32662          test ! -s conftest.err
32663        } && test -s conftest.$ac_objext; then
32664   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32665 else
32666   echo "$as_me: failed program was:" >&5
32667 sed 's/^/| /' conftest.$ac_ext >&5
32668
32669
32670 fi
32671
32672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32673         done ; done
32674 fi
32675
32676 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32677 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32678
32679 cat >>confdefs.h <<_ACEOF
32680 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32681 _ACEOF
32682
32683
32684 if test "$ac_cv_type_socklen_t" != yes; then
32685
32686 cat >>confdefs.h <<_ACEOF
32687 #define socklen_t $ol_cv_type_ber_socklen_t
32688 _ACEOF
32689
32690 fi
32691
32692
32693 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32694 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32695 if test "${ac_cv_type_signal+set}" = set; then
32696   echo $ECHO_N "(cached) $ECHO_C" >&6
32697 else
32698   cat >conftest.$ac_ext <<_ACEOF
32699 /* confdefs.h.  */
32700 _ACEOF
32701 cat confdefs.h >>conftest.$ac_ext
32702 cat >>conftest.$ac_ext <<_ACEOF
32703 /* end confdefs.h.  */
32704 #include <sys/types.h>
32705 #include <signal.h>
32706
32707 int
32708 main ()
32709 {
32710 return *(signal (0, 0)) (0) == 1;
32711   ;
32712   return 0;
32713 }
32714 _ACEOF
32715 rm -f conftest.$ac_objext
32716 if { (ac_try="$ac_compile"
32717 case "(($ac_try" in
32718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719   *) ac_try_echo=$ac_try;;
32720 esac
32721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722   (eval "$ac_compile") 2>conftest.er1
32723   ac_status=$?
32724   grep -v '^ *+' conftest.er1 >conftest.err
32725   rm -f conftest.er1
32726   cat conftest.err >&5
32727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728   (exit $ac_status); } && {
32729          test -z "$ac_c_werror_flag" ||
32730          test ! -s conftest.err
32731        } && test -s conftest.$ac_objext; then
32732   ac_cv_type_signal=int
32733 else
32734   echo "$as_me: failed program was:" >&5
32735 sed 's/^/| /' conftest.$ac_ext >&5
32736
32737         ac_cv_type_signal=void
32738 fi
32739
32740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32741 fi
32742 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32743 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32744
32745 cat >>confdefs.h <<_ACEOF
32746 #define RETSIGTYPE $ac_cv_type_signal
32747 _ACEOF
32748
32749
32750
32751 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32752 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32753 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32754   echo $ECHO_N "(cached) $ECHO_C" >&6
32755 else
32756   cat >conftest.$ac_ext <<_ACEOF
32757 /* confdefs.h.  */
32758 _ACEOF
32759 cat confdefs.h >>conftest.$ac_ext
32760 cat >>conftest.$ac_ext <<_ACEOF
32761 /* end confdefs.h.  */
32762 $ac_includes_default
32763 #include <signal.h>
32764
32765
32766 typedef sig_atomic_t ac__type_new_;
32767 int
32768 main ()
32769 {
32770 if ((ac__type_new_ *) 0)
32771   return 0;
32772 if (sizeof (ac__type_new_))
32773   return 0;
32774   ;
32775   return 0;
32776 }
32777 _ACEOF
32778 rm -f conftest.$ac_objext
32779 if { (ac_try="$ac_compile"
32780 case "(($ac_try" in
32781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782   *) ac_try_echo=$ac_try;;
32783 esac
32784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785   (eval "$ac_compile") 2>conftest.er1
32786   ac_status=$?
32787   grep -v '^ *+' conftest.er1 >conftest.err
32788   rm -f conftest.er1
32789   cat conftest.err >&5
32790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791   (exit $ac_status); } && {
32792          test -z "$ac_c_werror_flag" ||
32793          test ! -s conftest.err
32794        } && test -s conftest.$ac_objext; then
32795   ac_cv_type_sig_atomic_t=yes
32796 else
32797   echo "$as_me: failed program was:" >&5
32798 sed 's/^/| /' conftest.$ac_ext >&5
32799
32800         ac_cv_type_sig_atomic_t=no
32801 fi
32802
32803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32804 fi
32805 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32806 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32807 if test $ac_cv_type_sig_atomic_t = yes; then
32808   :
32809 else
32810
32811 cat >>confdefs.h <<_ACEOF
32812 #define sig_atomic_t int
32813 _ACEOF
32814
32815 fi
32816
32817
32818 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32819 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32820 if test "${ac_cv_type_uid_t+set}" = set; then
32821   echo $ECHO_N "(cached) $ECHO_C" >&6
32822 else
32823   cat >conftest.$ac_ext <<_ACEOF
32824 /* confdefs.h.  */
32825 _ACEOF
32826 cat confdefs.h >>conftest.$ac_ext
32827 cat >>conftest.$ac_ext <<_ACEOF
32828 /* end confdefs.h.  */
32829 #include <sys/types.h>
32830
32831 _ACEOF
32832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32833   $EGREP "uid_t" >/dev/null 2>&1; then
32834   ac_cv_type_uid_t=yes
32835 else
32836   ac_cv_type_uid_t=no
32837 fi
32838 rm -f conftest*
32839
32840 fi
32841 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32842 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32843 if test $ac_cv_type_uid_t = no; then
32844
32845 cat >>confdefs.h <<\_ACEOF
32846 #define uid_t int
32847 _ACEOF
32848
32849
32850 cat >>confdefs.h <<\_ACEOF
32851 #define gid_t int
32852 _ACEOF
32853
32854 fi
32855
32856
32857 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32858 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32859 if test "${ac_cv_header_time+set}" = set; then
32860   echo $ECHO_N "(cached) $ECHO_C" >&6
32861 else
32862   cat >conftest.$ac_ext <<_ACEOF
32863 /* confdefs.h.  */
32864 _ACEOF
32865 cat confdefs.h >>conftest.$ac_ext
32866 cat >>conftest.$ac_ext <<_ACEOF
32867 /* end confdefs.h.  */
32868 #include <sys/types.h>
32869 #include <sys/time.h>
32870 #include <time.h>
32871
32872 int
32873 main ()
32874 {
32875 if ((struct tm *) 0)
32876 return 0;
32877   ;
32878   return 0;
32879 }
32880 _ACEOF
32881 rm -f conftest.$ac_objext
32882 if { (ac_try="$ac_compile"
32883 case "(($ac_try" in
32884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885   *) ac_try_echo=$ac_try;;
32886 esac
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888   (eval "$ac_compile") 2>conftest.er1
32889   ac_status=$?
32890   grep -v '^ *+' conftest.er1 >conftest.err
32891   rm -f conftest.er1
32892   cat conftest.err >&5
32893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894   (exit $ac_status); } && {
32895          test -z "$ac_c_werror_flag" ||
32896          test ! -s conftest.err
32897        } && test -s conftest.$ac_objext; then
32898   ac_cv_header_time=yes
32899 else
32900   echo "$as_me: failed program was:" >&5
32901 sed 's/^/| /' conftest.$ac_ext >&5
32902
32903         ac_cv_header_time=no
32904 fi
32905
32906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32907 fi
32908 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32909 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32910 if test $ac_cv_header_time = yes; then
32911
32912 cat >>confdefs.h <<\_ACEOF
32913 #define TIME_WITH_SYS_TIME 1
32914 _ACEOF
32915
32916 fi
32917
32918 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32919 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32920 if test "${ac_cv_struct_tm+set}" = set; then
32921   echo $ECHO_N "(cached) $ECHO_C" >&6
32922 else
32923   cat >conftest.$ac_ext <<_ACEOF
32924 /* confdefs.h.  */
32925 _ACEOF
32926 cat confdefs.h >>conftest.$ac_ext
32927 cat >>conftest.$ac_ext <<_ACEOF
32928 /* end confdefs.h.  */
32929 #include <sys/types.h>
32930 #include <time.h>
32931
32932 int
32933 main ()
32934 {
32935 struct tm tm;
32936                                      int *p = &tm.tm_sec;
32937                                      return !p;
32938   ;
32939   return 0;
32940 }
32941 _ACEOF
32942 rm -f conftest.$ac_objext
32943 if { (ac_try="$ac_compile"
32944 case "(($ac_try" in
32945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32946   *) ac_try_echo=$ac_try;;
32947 esac
32948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32949   (eval "$ac_compile") 2>conftest.er1
32950   ac_status=$?
32951   grep -v '^ *+' conftest.er1 >conftest.err
32952   rm -f conftest.er1
32953   cat conftest.err >&5
32954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955   (exit $ac_status); } && {
32956          test -z "$ac_c_werror_flag" ||
32957          test ! -s conftest.err
32958        } && test -s conftest.$ac_objext; then
32959   ac_cv_struct_tm=time.h
32960 else
32961   echo "$as_me: failed program was:" >&5
32962 sed 's/^/| /' conftest.$ac_ext >&5
32963
32964         ac_cv_struct_tm=sys/time.h
32965 fi
32966
32967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32968 fi
32969 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32970 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32971 if test $ac_cv_struct_tm = sys/time.h; then
32972
32973 cat >>confdefs.h <<\_ACEOF
32974 #define TM_IN_SYS_TIME 1
32975 _ACEOF
32976
32977 fi
32978
32979 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32980 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32981 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32982   echo $ECHO_N "(cached) $ECHO_C" >&6
32983 else
32984   cat >conftest.$ac_ext <<_ACEOF
32985 /* confdefs.h.  */
32986 _ACEOF
32987 cat confdefs.h >>conftest.$ac_ext
32988 cat >>conftest.$ac_ext <<_ACEOF
32989 /* end confdefs.h.  */
32990 $ac_includes_default
32991 int
32992 main ()
32993 {
32994 static struct stat ac_aggr;
32995 if (ac_aggr.st_blksize)
32996 return 0;
32997   ;
32998   return 0;
32999 }
33000 _ACEOF
33001 rm -f conftest.$ac_objext
33002 if { (ac_try="$ac_compile"
33003 case "(($ac_try" in
33004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005   *) ac_try_echo=$ac_try;;
33006 esac
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008   (eval "$ac_compile") 2>conftest.er1
33009   ac_status=$?
33010   grep -v '^ *+' conftest.er1 >conftest.err
33011   rm -f conftest.er1
33012   cat conftest.err >&5
33013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014   (exit $ac_status); } && {
33015          test -z "$ac_c_werror_flag" ||
33016          test ! -s conftest.err
33017        } && test -s conftest.$ac_objext; then
33018   ac_cv_member_struct_stat_st_blksize=yes
33019 else
33020   echo "$as_me: failed program was:" >&5
33021 sed 's/^/| /' conftest.$ac_ext >&5
33022
33023         cat >conftest.$ac_ext <<_ACEOF
33024 /* confdefs.h.  */
33025 _ACEOF
33026 cat confdefs.h >>conftest.$ac_ext
33027 cat >>conftest.$ac_ext <<_ACEOF
33028 /* end confdefs.h.  */
33029 $ac_includes_default
33030 int
33031 main ()
33032 {
33033 static struct stat ac_aggr;
33034 if (sizeof ac_aggr.st_blksize)
33035 return 0;
33036   ;
33037   return 0;
33038 }
33039 _ACEOF
33040 rm -f conftest.$ac_objext
33041 if { (ac_try="$ac_compile"
33042 case "(($ac_try" in
33043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044   *) ac_try_echo=$ac_try;;
33045 esac
33046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047   (eval "$ac_compile") 2>conftest.er1
33048   ac_status=$?
33049   grep -v '^ *+' conftest.er1 >conftest.err
33050   rm -f conftest.er1
33051   cat conftest.err >&5
33052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053   (exit $ac_status); } && {
33054          test -z "$ac_c_werror_flag" ||
33055          test ! -s conftest.err
33056        } && test -s conftest.$ac_objext; then
33057   ac_cv_member_struct_stat_st_blksize=yes
33058 else
33059   echo "$as_me: failed program was:" >&5
33060 sed 's/^/| /' conftest.$ac_ext >&5
33061
33062         ac_cv_member_struct_stat_st_blksize=no
33063 fi
33064
33065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33066 fi
33067
33068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33069 fi
33070 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33071 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
33072 if test $ac_cv_member_struct_stat_st_blksize = yes; then
33073
33074 cat >>confdefs.h <<_ACEOF
33075 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33076 _ACEOF
33077
33078
33079 fi
33080
33081 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
33082 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
33083 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
33084   echo $ECHO_N "(cached) $ECHO_C" >&6
33085 else
33086   cat >conftest.$ac_ext <<_ACEOF
33087 /* confdefs.h.  */
33088 _ACEOF
33089 cat confdefs.h >>conftest.$ac_ext
33090 cat >>conftest.$ac_ext <<_ACEOF
33091 /* end confdefs.h.  */
33092 $ac_includes_default
33093 #include <pwd.h>
33094
33095 int
33096 main ()
33097 {
33098 static struct passwd ac_aggr;
33099 if (ac_aggr.pw_gecos)
33100 return 0;
33101   ;
33102   return 0;
33103 }
33104 _ACEOF
33105 rm -f conftest.$ac_objext
33106 if { (ac_try="$ac_compile"
33107 case "(($ac_try" in
33108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109   *) ac_try_echo=$ac_try;;
33110 esac
33111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112   (eval "$ac_compile") 2>conftest.er1
33113   ac_status=$?
33114   grep -v '^ *+' conftest.er1 >conftest.err
33115   rm -f conftest.er1
33116   cat conftest.err >&5
33117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118   (exit $ac_status); } && {
33119          test -z "$ac_c_werror_flag" ||
33120          test ! -s conftest.err
33121        } && test -s conftest.$ac_objext; then
33122   ac_cv_member_struct_passwd_pw_gecos=yes
33123 else
33124   echo "$as_me: failed program was:" >&5
33125 sed 's/^/| /' conftest.$ac_ext >&5
33126
33127         cat >conftest.$ac_ext <<_ACEOF
33128 /* confdefs.h.  */
33129 _ACEOF
33130 cat confdefs.h >>conftest.$ac_ext
33131 cat >>conftest.$ac_ext <<_ACEOF
33132 /* end confdefs.h.  */
33133 $ac_includes_default
33134 #include <pwd.h>
33135
33136 int
33137 main ()
33138 {
33139 static struct passwd ac_aggr;
33140 if (sizeof ac_aggr.pw_gecos)
33141 return 0;
33142   ;
33143   return 0;
33144 }
33145 _ACEOF
33146 rm -f conftest.$ac_objext
33147 if { (ac_try="$ac_compile"
33148 case "(($ac_try" in
33149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33150   *) ac_try_echo=$ac_try;;
33151 esac
33152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33153   (eval "$ac_compile") 2>conftest.er1
33154   ac_status=$?
33155   grep -v '^ *+' conftest.er1 >conftest.err
33156   rm -f conftest.er1
33157   cat conftest.err >&5
33158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159   (exit $ac_status); } && {
33160          test -z "$ac_c_werror_flag" ||
33161          test ! -s conftest.err
33162        } && test -s conftest.$ac_objext; then
33163   ac_cv_member_struct_passwd_pw_gecos=yes
33164 else
33165   echo "$as_me: failed program was:" >&5
33166 sed 's/^/| /' conftest.$ac_ext >&5
33167
33168         ac_cv_member_struct_passwd_pw_gecos=no
33169 fi
33170
33171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33172 fi
33173
33174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33175 fi
33176 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
33177 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
33178 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
33179
33180 cat >>confdefs.h <<_ACEOF
33181 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
33182 _ACEOF
33183
33184
33185 fi
33186
33187 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
33188 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
33189 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
33190   echo $ECHO_N "(cached) $ECHO_C" >&6
33191 else
33192   cat >conftest.$ac_ext <<_ACEOF
33193 /* confdefs.h.  */
33194 _ACEOF
33195 cat confdefs.h >>conftest.$ac_ext
33196 cat >>conftest.$ac_ext <<_ACEOF
33197 /* end confdefs.h.  */
33198 $ac_includes_default
33199 #include <pwd.h>
33200
33201 int
33202 main ()
33203 {
33204 static struct passwd ac_aggr;
33205 if (ac_aggr.pw_passwd)
33206 return 0;
33207   ;
33208   return 0;
33209 }
33210 _ACEOF
33211 rm -f conftest.$ac_objext
33212 if { (ac_try="$ac_compile"
33213 case "(($ac_try" in
33214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33215   *) ac_try_echo=$ac_try;;
33216 esac
33217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33218   (eval "$ac_compile") 2>conftest.er1
33219   ac_status=$?
33220   grep -v '^ *+' conftest.er1 >conftest.err
33221   rm -f conftest.er1
33222   cat conftest.err >&5
33223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224   (exit $ac_status); } && {
33225          test -z "$ac_c_werror_flag" ||
33226          test ! -s conftest.err
33227        } && test -s conftest.$ac_objext; then
33228   ac_cv_member_struct_passwd_pw_passwd=yes
33229 else
33230   echo "$as_me: failed program was:" >&5
33231 sed 's/^/| /' conftest.$ac_ext >&5
33232
33233         cat >conftest.$ac_ext <<_ACEOF
33234 /* confdefs.h.  */
33235 _ACEOF
33236 cat confdefs.h >>conftest.$ac_ext
33237 cat >>conftest.$ac_ext <<_ACEOF
33238 /* end confdefs.h.  */
33239 $ac_includes_default
33240 #include <pwd.h>
33241
33242 int
33243 main ()
33244 {
33245 static struct passwd ac_aggr;
33246 if (sizeof ac_aggr.pw_passwd)
33247 return 0;
33248   ;
33249   return 0;
33250 }
33251 _ACEOF
33252 rm -f conftest.$ac_objext
33253 if { (ac_try="$ac_compile"
33254 case "(($ac_try" in
33255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33256   *) ac_try_echo=$ac_try;;
33257 esac
33258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33259   (eval "$ac_compile") 2>conftest.er1
33260   ac_status=$?
33261   grep -v '^ *+' conftest.er1 >conftest.err
33262   rm -f conftest.er1
33263   cat conftest.err >&5
33264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265   (exit $ac_status); } && {
33266          test -z "$ac_c_werror_flag" ||
33267          test ! -s conftest.err
33268        } && test -s conftest.$ac_objext; then
33269   ac_cv_member_struct_passwd_pw_passwd=yes
33270 else
33271   echo "$as_me: failed program was:" >&5
33272 sed 's/^/| /' conftest.$ac_ext >&5
33273
33274         ac_cv_member_struct_passwd_pw_passwd=no
33275 fi
33276
33277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33278 fi
33279
33280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33281 fi
33282 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33283 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
33284 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33285
33286 cat >>confdefs.h <<_ACEOF
33287 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33288 _ACEOF
33289
33290
33291 fi
33292
33293
33294 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33295 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
33296 if test "${ol_cv_c_upper_lower+set}" = set; then
33297   echo $ECHO_N "(cached) $ECHO_C" >&6
33298 else
33299
33300         if test "$cross_compiling" = yes; then
33301   ol_cv_c_upper_lower=safe
33302 else
33303   cat >conftest.$ac_ext <<_ACEOF
33304 /* confdefs.h.  */
33305 _ACEOF
33306 cat confdefs.h >>conftest.$ac_ext
33307 cat >>conftest.$ac_ext <<_ACEOF
33308 /* end confdefs.h.  */
33309
33310 #include <ctype.h>
33311 main()
33312 {
33313         if ('C' == toupper('C'))
33314                 exit(0);
33315         else
33316                 exit(1);
33317 }
33318 _ACEOF
33319 rm -f conftest$ac_exeext
33320 if { (ac_try="$ac_link"
33321 case "(($ac_try" in
33322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33323   *) ac_try_echo=$ac_try;;
33324 esac
33325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33326   (eval "$ac_link") 2>&5
33327   ac_status=$?
33328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33330   { (case "(($ac_try" in
33331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33332   *) ac_try_echo=$ac_try;;
33333 esac
33334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33335   (eval "$ac_try") 2>&5
33336   ac_status=$?
33337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338   (exit $ac_status); }; }; then
33339   ol_cv_c_upper_lower=no
33340 else
33341   echo "$as_me: program exited with status $ac_status" >&5
33342 echo "$as_me: failed program was:" >&5
33343 sed 's/^/| /' conftest.$ac_ext >&5
33344
33345 ( exit $ac_status )
33346 ol_cv_c_upper_lower=yes
33347 fi
33348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33349 fi
33350
33351
33352 fi
33353 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33354 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33355 if test $ol_cv_c_upper_lower != no ; then
33356
33357 cat >>confdefs.h <<\_ACEOF
33358 #define C_UPPER_LOWER 1
33359 _ACEOF
33360
33361 fi
33362
33363 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33364 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33365 if test "${ac_cv_c_const+set}" = set; then
33366   echo $ECHO_N "(cached) $ECHO_C" >&6
33367 else
33368   cat >conftest.$ac_ext <<_ACEOF
33369 /* confdefs.h.  */
33370 _ACEOF
33371 cat confdefs.h >>conftest.$ac_ext
33372 cat >>conftest.$ac_ext <<_ACEOF
33373 /* end confdefs.h.  */
33374
33375 int
33376 main ()
33377 {
33378 /* FIXME: Include the comments suggested by Paul. */
33379 #ifndef __cplusplus
33380   /* Ultrix mips cc rejects this.  */
33381   typedef int charset[2];
33382   const charset cs;
33383   /* SunOS 4.1.1 cc rejects this.  */
33384   char const *const *pcpcc;
33385   char **ppc;
33386   /* NEC SVR4.0.2 mips cc rejects this.  */
33387   struct point {int x, y;};
33388   static struct point const zero = {0,0};
33389   /* AIX XL C 1.02.0.0 rejects this.
33390      It does not let you subtract one const X* pointer from another in
33391      an arm of an if-expression whose if-part is not a constant
33392      expression */
33393   const char *g = "string";
33394   pcpcc = &g + (g ? g-g : 0);
33395   /* HPUX 7.0 cc rejects these. */
33396   ++pcpcc;
33397   ppc = (char**) pcpcc;
33398   pcpcc = (char const *const *) ppc;
33399   { /* SCO 3.2v4 cc rejects this.  */
33400     char *t;
33401     char const *s = 0 ? (char *) 0 : (char const *) 0;
33402
33403     *t++ = 0;
33404     if (s) return 0;
33405   }
33406   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33407     int x[] = {25, 17};
33408     const int *foo = &x[0];
33409     ++foo;
33410   }
33411   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33412     typedef const int *iptr;
33413     iptr p = 0;
33414     ++p;
33415   }
33416   { /* AIX XL C 1.02.0.0 rejects this saying
33417        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33418     struct s { int j; const int *ap[3]; };
33419     struct s *b; b->j = 5;
33420   }
33421   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33422     const int foo = 10;
33423     if (!foo) return 0;
33424   }
33425   return !cs[0] && !zero.x;
33426 #endif
33427
33428   ;
33429   return 0;
33430 }
33431 _ACEOF
33432 rm -f conftest.$ac_objext
33433 if { (ac_try="$ac_compile"
33434 case "(($ac_try" in
33435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436   *) ac_try_echo=$ac_try;;
33437 esac
33438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439   (eval "$ac_compile") 2>conftest.er1
33440   ac_status=$?
33441   grep -v '^ *+' conftest.er1 >conftest.err
33442   rm -f conftest.er1
33443   cat conftest.err >&5
33444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445   (exit $ac_status); } && {
33446          test -z "$ac_c_werror_flag" ||
33447          test ! -s conftest.err
33448        } && test -s conftest.$ac_objext; then
33449   ac_cv_c_const=yes
33450 else
33451   echo "$as_me: failed program was:" >&5
33452 sed 's/^/| /' conftest.$ac_ext >&5
33453
33454         ac_cv_c_const=no
33455 fi
33456
33457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33458 fi
33459 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33460 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33461 if test $ac_cv_c_const = no; then
33462
33463 cat >>confdefs.h <<\_ACEOF
33464 #define const
33465 _ACEOF
33466
33467 fi
33468
33469 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33470 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33471 if test "${ol_cv_c_volatile+set}" = set; then
33472   echo $ECHO_N "(cached) $ECHO_C" >&6
33473 else
33474   cat >conftest.$ac_ext <<_ACEOF
33475 /* confdefs.h.  */
33476 _ACEOF
33477 cat confdefs.h >>conftest.$ac_ext
33478 cat >>conftest.$ac_ext <<_ACEOF
33479 /* end confdefs.h.  */
33480 int x, y, z;
33481 int
33482 main ()
33483 {
33484 volatile int a; int * volatile b = x ? &y : &z;
33485       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33486       *b = 0;
33487   ;
33488   return 0;
33489 }
33490 _ACEOF
33491 rm -f conftest.$ac_objext
33492 if { (ac_try="$ac_compile"
33493 case "(($ac_try" in
33494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33495   *) ac_try_echo=$ac_try;;
33496 esac
33497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33498   (eval "$ac_compile") 2>conftest.er1
33499   ac_status=$?
33500   grep -v '^ *+' conftest.er1 >conftest.err
33501   rm -f conftest.er1
33502   cat conftest.err >&5
33503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504   (exit $ac_status); } && {
33505          test -z "$ac_c_werror_flag" ||
33506          test ! -s conftest.err
33507        } && test -s conftest.$ac_objext; then
33508   ol_cv_c_volatile=yes
33509 else
33510   echo "$as_me: failed program was:" >&5
33511 sed 's/^/| /' conftest.$ac_ext >&5
33512
33513         ol_cv_c_volatile=no
33514 fi
33515
33516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33517 fi
33518 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33519 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33520   if test $ol_cv_c_volatile = yes; then
33521     :
33522   else
33523
33524 cat >>confdefs.h <<\_ACEOF
33525 #define volatile
33526 _ACEOF
33527
33528   fi
33529
33530
33531 if test $cross_compiling = yes ; then
33532         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33533 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33534
33535 cat >>confdefs.h <<\_ACEOF
33536 #define CROSS_COMPILING 1
33537 _ACEOF
33538
33539 else
33540         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33541 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33542 if test "${ac_cv_c_bigendian+set}" = set; then
33543   echo $ECHO_N "(cached) $ECHO_C" >&6
33544 else
33545   # See if sys/param.h defines the BYTE_ORDER macro.
33546 cat >conftest.$ac_ext <<_ACEOF
33547 /* confdefs.h.  */
33548 _ACEOF
33549 cat confdefs.h >>conftest.$ac_ext
33550 cat >>conftest.$ac_ext <<_ACEOF
33551 /* end confdefs.h.  */
33552 #include <sys/types.h>
33553 #include <sys/param.h>
33554
33555 int
33556 main ()
33557 {
33558 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33559         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33560  bogus endian macros
33561 #endif
33562
33563   ;
33564   return 0;
33565 }
33566 _ACEOF
33567 rm -f conftest.$ac_objext
33568 if { (ac_try="$ac_compile"
33569 case "(($ac_try" in
33570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33571   *) ac_try_echo=$ac_try;;
33572 esac
33573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33574   (eval "$ac_compile") 2>conftest.er1
33575   ac_status=$?
33576   grep -v '^ *+' conftest.er1 >conftest.err
33577   rm -f conftest.er1
33578   cat conftest.err >&5
33579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580   (exit $ac_status); } && {
33581          test -z "$ac_c_werror_flag" ||
33582          test ! -s conftest.err
33583        } && test -s conftest.$ac_objext; then
33584   # It does; now see whether it defined to BIG_ENDIAN or not.
33585 cat >conftest.$ac_ext <<_ACEOF
33586 /* confdefs.h.  */
33587 _ACEOF
33588 cat confdefs.h >>conftest.$ac_ext
33589 cat >>conftest.$ac_ext <<_ACEOF
33590 /* end confdefs.h.  */
33591 #include <sys/types.h>
33592 #include <sys/param.h>
33593
33594 int
33595 main ()
33596 {
33597 #if BYTE_ORDER != BIG_ENDIAN
33598  not big endian
33599 #endif
33600
33601   ;
33602   return 0;
33603 }
33604 _ACEOF
33605 rm -f conftest.$ac_objext
33606 if { (ac_try="$ac_compile"
33607 case "(($ac_try" in
33608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33609   *) ac_try_echo=$ac_try;;
33610 esac
33611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33612   (eval "$ac_compile") 2>conftest.er1
33613   ac_status=$?
33614   grep -v '^ *+' conftest.er1 >conftest.err
33615   rm -f conftest.er1
33616   cat conftest.err >&5
33617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618   (exit $ac_status); } && {
33619          test -z "$ac_c_werror_flag" ||
33620          test ! -s conftest.err
33621        } && test -s conftest.$ac_objext; then
33622   ac_cv_c_bigendian=yes
33623 else
33624   echo "$as_me: failed program was:" >&5
33625 sed 's/^/| /' conftest.$ac_ext >&5
33626
33627         ac_cv_c_bigendian=no
33628 fi
33629
33630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33631 else
33632   echo "$as_me: failed program was:" >&5
33633 sed 's/^/| /' conftest.$ac_ext >&5
33634
33635         # It does not; compile a test program.
33636 if test "$cross_compiling" = yes; then
33637   # try to guess the endianness by grepping values into an object file
33638   ac_cv_c_bigendian=unknown
33639   cat >conftest.$ac_ext <<_ACEOF
33640 /* confdefs.h.  */
33641 _ACEOF
33642 cat confdefs.h >>conftest.$ac_ext
33643 cat >>conftest.$ac_ext <<_ACEOF
33644 /* end confdefs.h.  */
33645 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33646 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33647 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33648 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33649 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33650 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33651 int
33652 main ()
33653 {
33654  _ascii (); _ebcdic ();
33655   ;
33656   return 0;
33657 }
33658 _ACEOF
33659 rm -f conftest.$ac_objext
33660 if { (ac_try="$ac_compile"
33661 case "(($ac_try" in
33662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33663   *) ac_try_echo=$ac_try;;
33664 esac
33665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33666   (eval "$ac_compile") 2>conftest.er1
33667   ac_status=$?
33668   grep -v '^ *+' conftest.er1 >conftest.err
33669   rm -f conftest.er1
33670   cat conftest.err >&5
33671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672   (exit $ac_status); } && {
33673          test -z "$ac_c_werror_flag" ||
33674          test ! -s conftest.err
33675        } && test -s conftest.$ac_objext; then
33676   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33677   ac_cv_c_bigendian=yes
33678 fi
33679 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33680   if test "$ac_cv_c_bigendian" = unknown; then
33681     ac_cv_c_bigendian=no
33682   else
33683     # finding both strings is unlikely to happen, but who knows?
33684     ac_cv_c_bigendian=unknown
33685   fi
33686 fi
33687 else
33688   echo "$as_me: failed program was:" >&5
33689 sed 's/^/| /' conftest.$ac_ext >&5
33690
33691
33692 fi
33693
33694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33695 else
33696   cat >conftest.$ac_ext <<_ACEOF
33697 /* confdefs.h.  */
33698 _ACEOF
33699 cat confdefs.h >>conftest.$ac_ext
33700 cat >>conftest.$ac_ext <<_ACEOF
33701 /* end confdefs.h.  */
33702 $ac_includes_default
33703 int
33704 main ()
33705 {
33706
33707   /* Are we little or big endian?  From Harbison&Steele.  */
33708   union
33709   {
33710     long int l;
33711     char c[sizeof (long int)];
33712   } u;
33713   u.l = 1;
33714   return u.c[sizeof (long int) - 1] == 1;
33715
33716   ;
33717   return 0;
33718 }
33719 _ACEOF
33720 rm -f conftest$ac_exeext
33721 if { (ac_try="$ac_link"
33722 case "(($ac_try" in
33723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33724   *) ac_try_echo=$ac_try;;
33725 esac
33726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33727   (eval "$ac_link") 2>&5
33728   ac_status=$?
33729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33731   { (case "(($ac_try" in
33732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33733   *) ac_try_echo=$ac_try;;
33734 esac
33735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33736   (eval "$ac_try") 2>&5
33737   ac_status=$?
33738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739   (exit $ac_status); }; }; then
33740   ac_cv_c_bigendian=no
33741 else
33742   echo "$as_me: program exited with status $ac_status" >&5
33743 echo "$as_me: failed program was:" >&5
33744 sed 's/^/| /' conftest.$ac_ext >&5
33745
33746 ( exit $ac_status )
33747 ac_cv_c_bigendian=yes
33748 fi
33749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33750 fi
33751
33752
33753 fi
33754
33755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33756 fi
33757 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33758 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33759 case $ac_cv_c_bigendian in
33760   yes)
33761
33762 cat >>confdefs.h <<\_ACEOF
33763 #define WORDS_BIGENDIAN 1
33764 _ACEOF
33765  ;;
33766   no)
33767      ;;
33768   *)
33769     { { echo "$as_me:$LINENO: error: unknown endianness
33770 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33771 echo "$as_me: error: unknown endianness
33772 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33773    { (exit 1); exit 1; }; } ;;
33774 esac
33775
33776 fi
33777
33778 { echo "$as_me:$LINENO: checking for short" >&5
33779 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33780 if test "${ac_cv_type_short+set}" = set; then
33781   echo $ECHO_N "(cached) $ECHO_C" >&6
33782 else
33783   cat >conftest.$ac_ext <<_ACEOF
33784 /* confdefs.h.  */
33785 _ACEOF
33786 cat confdefs.h >>conftest.$ac_ext
33787 cat >>conftest.$ac_ext <<_ACEOF
33788 /* end confdefs.h.  */
33789 $ac_includes_default
33790 typedef short ac__type_new_;
33791 int
33792 main ()
33793 {
33794 if ((ac__type_new_ *) 0)
33795   return 0;
33796 if (sizeof (ac__type_new_))
33797   return 0;
33798   ;
33799   return 0;
33800 }
33801 _ACEOF
33802 rm -f conftest.$ac_objext
33803 if { (ac_try="$ac_compile"
33804 case "(($ac_try" in
33805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33806   *) ac_try_echo=$ac_try;;
33807 esac
33808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33809   (eval "$ac_compile") 2>conftest.er1
33810   ac_status=$?
33811   grep -v '^ *+' conftest.er1 >conftest.err
33812   rm -f conftest.er1
33813   cat conftest.err >&5
33814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815   (exit $ac_status); } && {
33816          test -z "$ac_c_werror_flag" ||
33817          test ! -s conftest.err
33818        } && test -s conftest.$ac_objext; then
33819   ac_cv_type_short=yes
33820 else
33821   echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33823
33824         ac_cv_type_short=no
33825 fi
33826
33827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33828 fi
33829 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33830 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33831
33832 # The cast to long int works around a bug in the HP C Compiler
33833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33835 # This bug is HP SR number 8606223364.
33836 { echo "$as_me:$LINENO: checking size of short" >&5
33837 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33838 if test "${ac_cv_sizeof_short+set}" = set; then
33839   echo $ECHO_N "(cached) $ECHO_C" >&6
33840 else
33841   if test "$cross_compiling" = yes; then
33842   # Depending upon the size, compute the lo and hi bounds.
33843 cat >conftest.$ac_ext <<_ACEOF
33844 /* confdefs.h.  */
33845 _ACEOF
33846 cat confdefs.h >>conftest.$ac_ext
33847 cat >>conftest.$ac_ext <<_ACEOF
33848 /* end confdefs.h.  */
33849 $ac_includes_default
33850    typedef short ac__type_sizeof_;
33851 int
33852 main ()
33853 {
33854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33855 test_array [0] = 0
33856
33857   ;
33858   return 0;
33859 }
33860 _ACEOF
33861 rm -f conftest.$ac_objext
33862 if { (ac_try="$ac_compile"
33863 case "(($ac_try" in
33864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33865   *) ac_try_echo=$ac_try;;
33866 esac
33867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33868   (eval "$ac_compile") 2>conftest.er1
33869   ac_status=$?
33870   grep -v '^ *+' conftest.er1 >conftest.err
33871   rm -f conftest.er1
33872   cat conftest.err >&5
33873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874   (exit $ac_status); } && {
33875          test -z "$ac_c_werror_flag" ||
33876          test ! -s conftest.err
33877        } && test -s conftest.$ac_objext; then
33878   ac_lo=0 ac_mid=0
33879   while :; do
33880     cat >conftest.$ac_ext <<_ACEOF
33881 /* confdefs.h.  */
33882 _ACEOF
33883 cat confdefs.h >>conftest.$ac_ext
33884 cat >>conftest.$ac_ext <<_ACEOF
33885 /* end confdefs.h.  */
33886 $ac_includes_default
33887    typedef short ac__type_sizeof_;
33888 int
33889 main ()
33890 {
33891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33892 test_array [0] = 0
33893
33894   ;
33895   return 0;
33896 }
33897 _ACEOF
33898 rm -f conftest.$ac_objext
33899 if { (ac_try="$ac_compile"
33900 case "(($ac_try" in
33901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902   *) ac_try_echo=$ac_try;;
33903 esac
33904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905   (eval "$ac_compile") 2>conftest.er1
33906   ac_status=$?
33907   grep -v '^ *+' conftest.er1 >conftest.err
33908   rm -f conftest.er1
33909   cat conftest.err >&5
33910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911   (exit $ac_status); } && {
33912          test -z "$ac_c_werror_flag" ||
33913          test ! -s conftest.err
33914        } && test -s conftest.$ac_objext; then
33915   ac_hi=$ac_mid; break
33916 else
33917   echo "$as_me: failed program was:" >&5
33918 sed 's/^/| /' conftest.$ac_ext >&5
33919
33920         ac_lo=`expr $ac_mid + 1`
33921                         if test $ac_lo -le $ac_mid; then
33922                           ac_lo= ac_hi=
33923                           break
33924                         fi
33925                         ac_mid=`expr 2 '*' $ac_mid + 1`
33926 fi
33927
33928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33929   done
33930 else
33931   echo "$as_me: failed program was:" >&5
33932 sed 's/^/| /' conftest.$ac_ext >&5
33933
33934         cat >conftest.$ac_ext <<_ACEOF
33935 /* confdefs.h.  */
33936 _ACEOF
33937 cat confdefs.h >>conftest.$ac_ext
33938 cat >>conftest.$ac_ext <<_ACEOF
33939 /* end confdefs.h.  */
33940 $ac_includes_default
33941    typedef short ac__type_sizeof_;
33942 int
33943 main ()
33944 {
33945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33946 test_array [0] = 0
33947
33948   ;
33949   return 0;
33950 }
33951 _ACEOF
33952 rm -f conftest.$ac_objext
33953 if { (ac_try="$ac_compile"
33954 case "(($ac_try" in
33955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33956   *) ac_try_echo=$ac_try;;
33957 esac
33958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33959   (eval "$ac_compile") 2>conftest.er1
33960   ac_status=$?
33961   grep -v '^ *+' conftest.er1 >conftest.err
33962   rm -f conftest.er1
33963   cat conftest.err >&5
33964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965   (exit $ac_status); } && {
33966          test -z "$ac_c_werror_flag" ||
33967          test ! -s conftest.err
33968        } && test -s conftest.$ac_objext; then
33969   ac_hi=-1 ac_mid=-1
33970   while :; do
33971     cat >conftest.$ac_ext <<_ACEOF
33972 /* confdefs.h.  */
33973 _ACEOF
33974 cat confdefs.h >>conftest.$ac_ext
33975 cat >>conftest.$ac_ext <<_ACEOF
33976 /* end confdefs.h.  */
33977 $ac_includes_default
33978    typedef short ac__type_sizeof_;
33979 int
33980 main ()
33981 {
33982 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33983 test_array [0] = 0
33984
33985   ;
33986   return 0;
33987 }
33988 _ACEOF
33989 rm -f conftest.$ac_objext
33990 if { (ac_try="$ac_compile"
33991 case "(($ac_try" in
33992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33993   *) ac_try_echo=$ac_try;;
33994 esac
33995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996   (eval "$ac_compile") 2>conftest.er1
33997   ac_status=$?
33998   grep -v '^ *+' conftest.er1 >conftest.err
33999   rm -f conftest.er1
34000   cat conftest.err >&5
34001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002   (exit $ac_status); } && {
34003          test -z "$ac_c_werror_flag" ||
34004          test ! -s conftest.err
34005        } && test -s conftest.$ac_objext; then
34006   ac_lo=$ac_mid; break
34007 else
34008   echo "$as_me: failed program was:" >&5
34009 sed 's/^/| /' conftest.$ac_ext >&5
34010
34011         ac_hi=`expr '(' $ac_mid ')' - 1`
34012                         if test $ac_mid -le $ac_hi; then
34013                           ac_lo= ac_hi=
34014                           break
34015                         fi
34016                         ac_mid=`expr 2 '*' $ac_mid`
34017 fi
34018
34019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34020   done
34021 else
34022   echo "$as_me: failed program was:" >&5
34023 sed 's/^/| /' conftest.$ac_ext >&5
34024
34025         ac_lo= ac_hi=
34026 fi
34027
34028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34029 fi
34030
34031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34032 # Binary search between lo and hi bounds.
34033 while test "x$ac_lo" != "x$ac_hi"; do
34034   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34035   cat >conftest.$ac_ext <<_ACEOF
34036 /* confdefs.h.  */
34037 _ACEOF
34038 cat confdefs.h >>conftest.$ac_ext
34039 cat >>conftest.$ac_ext <<_ACEOF
34040 /* end confdefs.h.  */
34041 $ac_includes_default
34042    typedef short ac__type_sizeof_;
34043 int
34044 main ()
34045 {
34046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34047 test_array [0] = 0
34048
34049   ;
34050   return 0;
34051 }
34052 _ACEOF
34053 rm -f conftest.$ac_objext
34054 if { (ac_try="$ac_compile"
34055 case "(($ac_try" in
34056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057   *) ac_try_echo=$ac_try;;
34058 esac
34059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34060   (eval "$ac_compile") 2>conftest.er1
34061   ac_status=$?
34062   grep -v '^ *+' conftest.er1 >conftest.err
34063   rm -f conftest.er1
34064   cat conftest.err >&5
34065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066   (exit $ac_status); } && {
34067          test -z "$ac_c_werror_flag" ||
34068          test ! -s conftest.err
34069        } && test -s conftest.$ac_objext; then
34070   ac_hi=$ac_mid
34071 else
34072   echo "$as_me: failed program was:" >&5
34073 sed 's/^/| /' conftest.$ac_ext >&5
34074
34075         ac_lo=`expr '(' $ac_mid ')' + 1`
34076 fi
34077
34078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34079 done
34080 case $ac_lo in
34081 ?*) ac_cv_sizeof_short=$ac_lo;;
34082 '') if test "$ac_cv_type_short" = yes; then
34083      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
34084 See \`config.log' for more details." >&5
34085 echo "$as_me: error: cannot compute sizeof (short)
34086 See \`config.log' for more details." >&2;}
34087    { (exit 77); exit 77; }; }
34088    else
34089      ac_cv_sizeof_short=0
34090    fi ;;
34091 esac
34092 else
34093   cat >conftest.$ac_ext <<_ACEOF
34094 /* confdefs.h.  */
34095 _ACEOF
34096 cat confdefs.h >>conftest.$ac_ext
34097 cat >>conftest.$ac_ext <<_ACEOF
34098 /* end confdefs.h.  */
34099 $ac_includes_default
34100    typedef short ac__type_sizeof_;
34101 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34102 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34103 #include <stdio.h>
34104 #include <stdlib.h>
34105 int
34106 main ()
34107 {
34108
34109   FILE *f = fopen ("conftest.val", "w");
34110   if (! f)
34111     return 1;
34112   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34113     {
34114       long int i = longval ();
34115       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34116         return 1;
34117       fprintf (f, "%ld\n", i);
34118     }
34119   else
34120     {
34121       unsigned long int i = ulongval ();
34122       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34123         return 1;
34124       fprintf (f, "%lu\n", i);
34125     }
34126   return ferror (f) || fclose (f) != 0;
34127
34128   ;
34129   return 0;
34130 }
34131 _ACEOF
34132 rm -f conftest$ac_exeext
34133 if { (ac_try="$ac_link"
34134 case "(($ac_try" in
34135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136   *) ac_try_echo=$ac_try;;
34137 esac
34138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34139   (eval "$ac_link") 2>&5
34140   ac_status=$?
34141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34143   { (case "(($ac_try" in
34144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34145   *) ac_try_echo=$ac_try;;
34146 esac
34147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34148   (eval "$ac_try") 2>&5
34149   ac_status=$?
34150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151   (exit $ac_status); }; }; then
34152   ac_cv_sizeof_short=`cat conftest.val`
34153 else
34154   echo "$as_me: program exited with status $ac_status" >&5
34155 echo "$as_me: failed program was:" >&5
34156 sed 's/^/| /' conftest.$ac_ext >&5
34157
34158 ( exit $ac_status )
34159 if test "$ac_cv_type_short" = yes; then
34160      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
34161 See \`config.log' for more details." >&5
34162 echo "$as_me: error: cannot compute sizeof (short)
34163 See \`config.log' for more details." >&2;}
34164    { (exit 77); exit 77; }; }
34165    else
34166      ac_cv_sizeof_short=0
34167    fi
34168 fi
34169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34170 fi
34171 rm -f conftest.val
34172 fi
34173 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
34174 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
34175
34176
34177
34178 cat >>confdefs.h <<_ACEOF
34179 #define SIZEOF_SHORT $ac_cv_sizeof_short
34180 _ACEOF
34181
34182
34183 { echo "$as_me:$LINENO: checking for int" >&5
34184 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34185 if test "${ac_cv_type_int+set}" = set; then
34186   echo $ECHO_N "(cached) $ECHO_C" >&6
34187 else
34188   cat >conftest.$ac_ext <<_ACEOF
34189 /* confdefs.h.  */
34190 _ACEOF
34191 cat confdefs.h >>conftest.$ac_ext
34192 cat >>conftest.$ac_ext <<_ACEOF
34193 /* end confdefs.h.  */
34194 $ac_includes_default
34195 typedef int ac__type_new_;
34196 int
34197 main ()
34198 {
34199 if ((ac__type_new_ *) 0)
34200   return 0;
34201 if (sizeof (ac__type_new_))
34202   return 0;
34203   ;
34204   return 0;
34205 }
34206 _ACEOF
34207 rm -f conftest.$ac_objext
34208 if { (ac_try="$ac_compile"
34209 case "(($ac_try" in
34210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34211   *) ac_try_echo=$ac_try;;
34212 esac
34213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34214   (eval "$ac_compile") 2>conftest.er1
34215   ac_status=$?
34216   grep -v '^ *+' conftest.er1 >conftest.err
34217   rm -f conftest.er1
34218   cat conftest.err >&5
34219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220   (exit $ac_status); } && {
34221          test -z "$ac_c_werror_flag" ||
34222          test ! -s conftest.err
34223        } && test -s conftest.$ac_objext; then
34224   ac_cv_type_int=yes
34225 else
34226   echo "$as_me: failed program was:" >&5
34227 sed 's/^/| /' conftest.$ac_ext >&5
34228
34229         ac_cv_type_int=no
34230 fi
34231
34232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34233 fi
34234 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
34235 echo "${ECHO_T}$ac_cv_type_int" >&6; }
34236
34237 # The cast to long int works around a bug in the HP C Compiler
34238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34240 # This bug is HP SR number 8606223364.
34241 { echo "$as_me:$LINENO: checking size of int" >&5
34242 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
34243 if test "${ac_cv_sizeof_int+set}" = set; then
34244   echo $ECHO_N "(cached) $ECHO_C" >&6
34245 else
34246   if test "$cross_compiling" = yes; then
34247   # Depending upon the size, compute the lo and hi bounds.
34248 cat >conftest.$ac_ext <<_ACEOF
34249 /* confdefs.h.  */
34250 _ACEOF
34251 cat confdefs.h >>conftest.$ac_ext
34252 cat >>conftest.$ac_ext <<_ACEOF
34253 /* end confdefs.h.  */
34254 $ac_includes_default
34255    typedef int ac__type_sizeof_;
34256 int
34257 main ()
34258 {
34259 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34260 test_array [0] = 0
34261
34262   ;
34263   return 0;
34264 }
34265 _ACEOF
34266 rm -f conftest.$ac_objext
34267 if { (ac_try="$ac_compile"
34268 case "(($ac_try" in
34269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34270   *) ac_try_echo=$ac_try;;
34271 esac
34272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34273   (eval "$ac_compile") 2>conftest.er1
34274   ac_status=$?
34275   grep -v '^ *+' conftest.er1 >conftest.err
34276   rm -f conftest.er1
34277   cat conftest.err >&5
34278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34279   (exit $ac_status); } && {
34280          test -z "$ac_c_werror_flag" ||
34281          test ! -s conftest.err
34282        } && test -s conftest.$ac_objext; then
34283   ac_lo=0 ac_mid=0
34284   while :; do
34285     cat >conftest.$ac_ext <<_ACEOF
34286 /* confdefs.h.  */
34287 _ACEOF
34288 cat confdefs.h >>conftest.$ac_ext
34289 cat >>conftest.$ac_ext <<_ACEOF
34290 /* end confdefs.h.  */
34291 $ac_includes_default
34292    typedef int ac__type_sizeof_;
34293 int
34294 main ()
34295 {
34296 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34297 test_array [0] = 0
34298
34299   ;
34300   return 0;
34301 }
34302 _ACEOF
34303 rm -f conftest.$ac_objext
34304 if { (ac_try="$ac_compile"
34305 case "(($ac_try" in
34306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34307   *) ac_try_echo=$ac_try;;
34308 esac
34309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34310   (eval "$ac_compile") 2>conftest.er1
34311   ac_status=$?
34312   grep -v '^ *+' conftest.er1 >conftest.err
34313   rm -f conftest.er1
34314   cat conftest.err >&5
34315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34316   (exit $ac_status); } && {
34317          test -z "$ac_c_werror_flag" ||
34318          test ! -s conftest.err
34319        } && test -s conftest.$ac_objext; then
34320   ac_hi=$ac_mid; break
34321 else
34322   echo "$as_me: failed program was:" >&5
34323 sed 's/^/| /' conftest.$ac_ext >&5
34324
34325         ac_lo=`expr $ac_mid + 1`
34326                         if test $ac_lo -le $ac_mid; then
34327                           ac_lo= ac_hi=
34328                           break
34329                         fi
34330                         ac_mid=`expr 2 '*' $ac_mid + 1`
34331 fi
34332
34333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34334   done
34335 else
34336   echo "$as_me: failed program was:" >&5
34337 sed 's/^/| /' conftest.$ac_ext >&5
34338
34339         cat >conftest.$ac_ext <<_ACEOF
34340 /* confdefs.h.  */
34341 _ACEOF
34342 cat confdefs.h >>conftest.$ac_ext
34343 cat >>conftest.$ac_ext <<_ACEOF
34344 /* end confdefs.h.  */
34345 $ac_includes_default
34346    typedef int ac__type_sizeof_;
34347 int
34348 main ()
34349 {
34350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34351 test_array [0] = 0
34352
34353   ;
34354   return 0;
34355 }
34356 _ACEOF
34357 rm -f conftest.$ac_objext
34358 if { (ac_try="$ac_compile"
34359 case "(($ac_try" in
34360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34361   *) ac_try_echo=$ac_try;;
34362 esac
34363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34364   (eval "$ac_compile") 2>conftest.er1
34365   ac_status=$?
34366   grep -v '^ *+' conftest.er1 >conftest.err
34367   rm -f conftest.er1
34368   cat conftest.err >&5
34369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370   (exit $ac_status); } && {
34371          test -z "$ac_c_werror_flag" ||
34372          test ! -s conftest.err
34373        } && test -s conftest.$ac_objext; then
34374   ac_hi=-1 ac_mid=-1
34375   while :; do
34376     cat >conftest.$ac_ext <<_ACEOF
34377 /* confdefs.h.  */
34378 _ACEOF
34379 cat confdefs.h >>conftest.$ac_ext
34380 cat >>conftest.$ac_ext <<_ACEOF
34381 /* end confdefs.h.  */
34382 $ac_includes_default
34383    typedef int ac__type_sizeof_;
34384 int
34385 main ()
34386 {
34387 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34388 test_array [0] = 0
34389
34390   ;
34391   return 0;
34392 }
34393 _ACEOF
34394 rm -f conftest.$ac_objext
34395 if { (ac_try="$ac_compile"
34396 case "(($ac_try" in
34397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34398   *) ac_try_echo=$ac_try;;
34399 esac
34400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34401   (eval "$ac_compile") 2>conftest.er1
34402   ac_status=$?
34403   grep -v '^ *+' conftest.er1 >conftest.err
34404   rm -f conftest.er1
34405   cat conftest.err >&5
34406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34407   (exit $ac_status); } && {
34408          test -z "$ac_c_werror_flag" ||
34409          test ! -s conftest.err
34410        } && test -s conftest.$ac_objext; then
34411   ac_lo=$ac_mid; break
34412 else
34413   echo "$as_me: failed program was:" >&5
34414 sed 's/^/| /' conftest.$ac_ext >&5
34415
34416         ac_hi=`expr '(' $ac_mid ')' - 1`
34417                         if test $ac_mid -le $ac_hi; then
34418                           ac_lo= ac_hi=
34419                           break
34420                         fi
34421                         ac_mid=`expr 2 '*' $ac_mid`
34422 fi
34423
34424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34425   done
34426 else
34427   echo "$as_me: failed program was:" >&5
34428 sed 's/^/| /' conftest.$ac_ext >&5
34429
34430         ac_lo= ac_hi=
34431 fi
34432
34433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34434 fi
34435
34436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34437 # Binary search between lo and hi bounds.
34438 while test "x$ac_lo" != "x$ac_hi"; do
34439   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34440   cat >conftest.$ac_ext <<_ACEOF
34441 /* confdefs.h.  */
34442 _ACEOF
34443 cat confdefs.h >>conftest.$ac_ext
34444 cat >>conftest.$ac_ext <<_ACEOF
34445 /* end confdefs.h.  */
34446 $ac_includes_default
34447    typedef int ac__type_sizeof_;
34448 int
34449 main ()
34450 {
34451 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34452 test_array [0] = 0
34453
34454   ;
34455   return 0;
34456 }
34457 _ACEOF
34458 rm -f conftest.$ac_objext
34459 if { (ac_try="$ac_compile"
34460 case "(($ac_try" in
34461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34462   *) ac_try_echo=$ac_try;;
34463 esac
34464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34465   (eval "$ac_compile") 2>conftest.er1
34466   ac_status=$?
34467   grep -v '^ *+' conftest.er1 >conftest.err
34468   rm -f conftest.er1
34469   cat conftest.err >&5
34470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471   (exit $ac_status); } && {
34472          test -z "$ac_c_werror_flag" ||
34473          test ! -s conftest.err
34474        } && test -s conftest.$ac_objext; then
34475   ac_hi=$ac_mid
34476 else
34477   echo "$as_me: failed program was:" >&5
34478 sed 's/^/| /' conftest.$ac_ext >&5
34479
34480         ac_lo=`expr '(' $ac_mid ')' + 1`
34481 fi
34482
34483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34484 done
34485 case $ac_lo in
34486 ?*) ac_cv_sizeof_int=$ac_lo;;
34487 '') if test "$ac_cv_type_int" = yes; then
34488      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34489 See \`config.log' for more details." >&5
34490 echo "$as_me: error: cannot compute sizeof (int)
34491 See \`config.log' for more details." >&2;}
34492    { (exit 77); exit 77; }; }
34493    else
34494      ac_cv_sizeof_int=0
34495    fi ;;
34496 esac
34497 else
34498   cat >conftest.$ac_ext <<_ACEOF
34499 /* confdefs.h.  */
34500 _ACEOF
34501 cat confdefs.h >>conftest.$ac_ext
34502 cat >>conftest.$ac_ext <<_ACEOF
34503 /* end confdefs.h.  */
34504 $ac_includes_default
34505    typedef int ac__type_sizeof_;
34506 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34507 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34508 #include <stdio.h>
34509 #include <stdlib.h>
34510 int
34511 main ()
34512 {
34513
34514   FILE *f = fopen ("conftest.val", "w");
34515   if (! f)
34516     return 1;
34517   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34518     {
34519       long int i = longval ();
34520       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34521         return 1;
34522       fprintf (f, "%ld\n", i);
34523     }
34524   else
34525     {
34526       unsigned long int i = ulongval ();
34527       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34528         return 1;
34529       fprintf (f, "%lu\n", i);
34530     }
34531   return ferror (f) || fclose (f) != 0;
34532
34533   ;
34534   return 0;
34535 }
34536 _ACEOF
34537 rm -f conftest$ac_exeext
34538 if { (ac_try="$ac_link"
34539 case "(($ac_try" in
34540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34541   *) ac_try_echo=$ac_try;;
34542 esac
34543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34544   (eval "$ac_link") 2>&5
34545   ac_status=$?
34546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34547   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34548   { (case "(($ac_try" in
34549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34550   *) ac_try_echo=$ac_try;;
34551 esac
34552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34553   (eval "$ac_try") 2>&5
34554   ac_status=$?
34555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556   (exit $ac_status); }; }; then
34557   ac_cv_sizeof_int=`cat conftest.val`
34558 else
34559   echo "$as_me: program exited with status $ac_status" >&5
34560 echo "$as_me: failed program was:" >&5
34561 sed 's/^/| /' conftest.$ac_ext >&5
34562
34563 ( exit $ac_status )
34564 if test "$ac_cv_type_int" = yes; then
34565      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34566 See \`config.log' for more details." >&5
34567 echo "$as_me: error: cannot compute sizeof (int)
34568 See \`config.log' for more details." >&2;}
34569    { (exit 77); exit 77; }; }
34570    else
34571      ac_cv_sizeof_int=0
34572    fi
34573 fi
34574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34575 fi
34576 rm -f conftest.val
34577 fi
34578 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34579 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34580
34581
34582
34583 cat >>confdefs.h <<_ACEOF
34584 #define SIZEOF_INT $ac_cv_sizeof_int
34585 _ACEOF
34586
34587
34588 { echo "$as_me:$LINENO: checking for long" >&5
34589 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34590 if test "${ac_cv_type_long+set}" = set; then
34591   echo $ECHO_N "(cached) $ECHO_C" >&6
34592 else
34593   cat >conftest.$ac_ext <<_ACEOF
34594 /* confdefs.h.  */
34595 _ACEOF
34596 cat confdefs.h >>conftest.$ac_ext
34597 cat >>conftest.$ac_ext <<_ACEOF
34598 /* end confdefs.h.  */
34599 $ac_includes_default
34600 typedef long ac__type_new_;
34601 int
34602 main ()
34603 {
34604 if ((ac__type_new_ *) 0)
34605   return 0;
34606 if (sizeof (ac__type_new_))
34607   return 0;
34608   ;
34609   return 0;
34610 }
34611 _ACEOF
34612 rm -f conftest.$ac_objext
34613 if { (ac_try="$ac_compile"
34614 case "(($ac_try" in
34615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34616   *) ac_try_echo=$ac_try;;
34617 esac
34618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34619   (eval "$ac_compile") 2>conftest.er1
34620   ac_status=$?
34621   grep -v '^ *+' conftest.er1 >conftest.err
34622   rm -f conftest.er1
34623   cat conftest.err >&5
34624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625   (exit $ac_status); } && {
34626          test -z "$ac_c_werror_flag" ||
34627          test ! -s conftest.err
34628        } && test -s conftest.$ac_objext; then
34629   ac_cv_type_long=yes
34630 else
34631   echo "$as_me: failed program was:" >&5
34632 sed 's/^/| /' conftest.$ac_ext >&5
34633
34634         ac_cv_type_long=no
34635 fi
34636
34637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34638 fi
34639 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34640 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34641
34642 # The cast to long int works around a bug in the HP C Compiler
34643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34645 # This bug is HP SR number 8606223364.
34646 { echo "$as_me:$LINENO: checking size of long" >&5
34647 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34648 if test "${ac_cv_sizeof_long+set}" = set; then
34649   echo $ECHO_N "(cached) $ECHO_C" >&6
34650 else
34651   if test "$cross_compiling" = yes; then
34652   # Depending upon the size, compute the lo and hi bounds.
34653 cat >conftest.$ac_ext <<_ACEOF
34654 /* confdefs.h.  */
34655 _ACEOF
34656 cat confdefs.h >>conftest.$ac_ext
34657 cat >>conftest.$ac_ext <<_ACEOF
34658 /* end confdefs.h.  */
34659 $ac_includes_default
34660    typedef long ac__type_sizeof_;
34661 int
34662 main ()
34663 {
34664 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34665 test_array [0] = 0
34666
34667   ;
34668   return 0;
34669 }
34670 _ACEOF
34671 rm -f conftest.$ac_objext
34672 if { (ac_try="$ac_compile"
34673 case "(($ac_try" in
34674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34675   *) ac_try_echo=$ac_try;;
34676 esac
34677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34678   (eval "$ac_compile") 2>conftest.er1
34679   ac_status=$?
34680   grep -v '^ *+' conftest.er1 >conftest.err
34681   rm -f conftest.er1
34682   cat conftest.err >&5
34683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34684   (exit $ac_status); } && {
34685          test -z "$ac_c_werror_flag" ||
34686          test ! -s conftest.err
34687        } && test -s conftest.$ac_objext; then
34688   ac_lo=0 ac_mid=0
34689   while :; do
34690     cat >conftest.$ac_ext <<_ACEOF
34691 /* confdefs.h.  */
34692 _ACEOF
34693 cat confdefs.h >>conftest.$ac_ext
34694 cat >>conftest.$ac_ext <<_ACEOF
34695 /* end confdefs.h.  */
34696 $ac_includes_default
34697    typedef long ac__type_sizeof_;
34698 int
34699 main ()
34700 {
34701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34702 test_array [0] = 0
34703
34704   ;
34705   return 0;
34706 }
34707 _ACEOF
34708 rm -f conftest.$ac_objext
34709 if { (ac_try="$ac_compile"
34710 case "(($ac_try" in
34711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34712   *) ac_try_echo=$ac_try;;
34713 esac
34714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34715   (eval "$ac_compile") 2>conftest.er1
34716   ac_status=$?
34717   grep -v '^ *+' conftest.er1 >conftest.err
34718   rm -f conftest.er1
34719   cat conftest.err >&5
34720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721   (exit $ac_status); } && {
34722          test -z "$ac_c_werror_flag" ||
34723          test ! -s conftest.err
34724        } && test -s conftest.$ac_objext; then
34725   ac_hi=$ac_mid; break
34726 else
34727   echo "$as_me: failed program was:" >&5
34728 sed 's/^/| /' conftest.$ac_ext >&5
34729
34730         ac_lo=`expr $ac_mid + 1`
34731                         if test $ac_lo -le $ac_mid; then
34732                           ac_lo= ac_hi=
34733                           break
34734                         fi
34735                         ac_mid=`expr 2 '*' $ac_mid + 1`
34736 fi
34737
34738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34739   done
34740 else
34741   echo "$as_me: failed program was:" >&5
34742 sed 's/^/| /' conftest.$ac_ext >&5
34743
34744         cat >conftest.$ac_ext <<_ACEOF
34745 /* confdefs.h.  */
34746 _ACEOF
34747 cat confdefs.h >>conftest.$ac_ext
34748 cat >>conftest.$ac_ext <<_ACEOF
34749 /* end confdefs.h.  */
34750 $ac_includes_default
34751    typedef long ac__type_sizeof_;
34752 int
34753 main ()
34754 {
34755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34756 test_array [0] = 0
34757
34758   ;
34759   return 0;
34760 }
34761 _ACEOF
34762 rm -f conftest.$ac_objext
34763 if { (ac_try="$ac_compile"
34764 case "(($ac_try" in
34765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34766   *) ac_try_echo=$ac_try;;
34767 esac
34768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34769   (eval "$ac_compile") 2>conftest.er1
34770   ac_status=$?
34771   grep -v '^ *+' conftest.er1 >conftest.err
34772   rm -f conftest.er1
34773   cat conftest.err >&5
34774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775   (exit $ac_status); } && {
34776          test -z "$ac_c_werror_flag" ||
34777          test ! -s conftest.err
34778        } && test -s conftest.$ac_objext; then
34779   ac_hi=-1 ac_mid=-1
34780   while :; do
34781     cat >conftest.$ac_ext <<_ACEOF
34782 /* confdefs.h.  */
34783 _ACEOF
34784 cat confdefs.h >>conftest.$ac_ext
34785 cat >>conftest.$ac_ext <<_ACEOF
34786 /* end confdefs.h.  */
34787 $ac_includes_default
34788    typedef long ac__type_sizeof_;
34789 int
34790 main ()
34791 {
34792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34793 test_array [0] = 0
34794
34795   ;
34796   return 0;
34797 }
34798 _ACEOF
34799 rm -f conftest.$ac_objext
34800 if { (ac_try="$ac_compile"
34801 case "(($ac_try" in
34802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34803   *) ac_try_echo=$ac_try;;
34804 esac
34805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34806   (eval "$ac_compile") 2>conftest.er1
34807   ac_status=$?
34808   grep -v '^ *+' conftest.er1 >conftest.err
34809   rm -f conftest.er1
34810   cat conftest.err >&5
34811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34812   (exit $ac_status); } && {
34813          test -z "$ac_c_werror_flag" ||
34814          test ! -s conftest.err
34815        } && test -s conftest.$ac_objext; then
34816   ac_lo=$ac_mid; break
34817 else
34818   echo "$as_me: failed program was:" >&5
34819 sed 's/^/| /' conftest.$ac_ext >&5
34820
34821         ac_hi=`expr '(' $ac_mid ')' - 1`
34822                         if test $ac_mid -le $ac_hi; then
34823                           ac_lo= ac_hi=
34824                           break
34825                         fi
34826                         ac_mid=`expr 2 '*' $ac_mid`
34827 fi
34828
34829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34830   done
34831 else
34832   echo "$as_me: failed program was:" >&5
34833 sed 's/^/| /' conftest.$ac_ext >&5
34834
34835         ac_lo= ac_hi=
34836 fi
34837
34838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34839 fi
34840
34841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34842 # Binary search between lo and hi bounds.
34843 while test "x$ac_lo" != "x$ac_hi"; do
34844   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34845   cat >conftest.$ac_ext <<_ACEOF
34846 /* confdefs.h.  */
34847 _ACEOF
34848 cat confdefs.h >>conftest.$ac_ext
34849 cat >>conftest.$ac_ext <<_ACEOF
34850 /* end confdefs.h.  */
34851 $ac_includes_default
34852    typedef long ac__type_sizeof_;
34853 int
34854 main ()
34855 {
34856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34857 test_array [0] = 0
34858
34859   ;
34860   return 0;
34861 }
34862 _ACEOF
34863 rm -f conftest.$ac_objext
34864 if { (ac_try="$ac_compile"
34865 case "(($ac_try" in
34866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34867   *) ac_try_echo=$ac_try;;
34868 esac
34869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34870   (eval "$ac_compile") 2>conftest.er1
34871   ac_status=$?
34872   grep -v '^ *+' conftest.er1 >conftest.err
34873   rm -f conftest.er1
34874   cat conftest.err >&5
34875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34876   (exit $ac_status); } && {
34877          test -z "$ac_c_werror_flag" ||
34878          test ! -s conftest.err
34879        } && test -s conftest.$ac_objext; then
34880   ac_hi=$ac_mid
34881 else
34882   echo "$as_me: failed program was:" >&5
34883 sed 's/^/| /' conftest.$ac_ext >&5
34884
34885         ac_lo=`expr '(' $ac_mid ')' + 1`
34886 fi
34887
34888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34889 done
34890 case $ac_lo in
34891 ?*) ac_cv_sizeof_long=$ac_lo;;
34892 '') if test "$ac_cv_type_long" = yes; then
34893      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34894 See \`config.log' for more details." >&5
34895 echo "$as_me: error: cannot compute sizeof (long)
34896 See \`config.log' for more details." >&2;}
34897    { (exit 77); exit 77; }; }
34898    else
34899      ac_cv_sizeof_long=0
34900    fi ;;
34901 esac
34902 else
34903   cat >conftest.$ac_ext <<_ACEOF
34904 /* confdefs.h.  */
34905 _ACEOF
34906 cat confdefs.h >>conftest.$ac_ext
34907 cat >>conftest.$ac_ext <<_ACEOF
34908 /* end confdefs.h.  */
34909 $ac_includes_default
34910    typedef long ac__type_sizeof_;
34911 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34912 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34913 #include <stdio.h>
34914 #include <stdlib.h>
34915 int
34916 main ()
34917 {
34918
34919   FILE *f = fopen ("conftest.val", "w");
34920   if (! f)
34921     return 1;
34922   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34923     {
34924       long int i = longval ();
34925       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34926         return 1;
34927       fprintf (f, "%ld\n", i);
34928     }
34929   else
34930     {
34931       unsigned long int i = ulongval ();
34932       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34933         return 1;
34934       fprintf (f, "%lu\n", i);
34935     }
34936   return ferror (f) || fclose (f) != 0;
34937
34938   ;
34939   return 0;
34940 }
34941 _ACEOF
34942 rm -f conftest$ac_exeext
34943 if { (ac_try="$ac_link"
34944 case "(($ac_try" in
34945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34946   *) ac_try_echo=$ac_try;;
34947 esac
34948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34949   (eval "$ac_link") 2>&5
34950   ac_status=$?
34951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34953   { (case "(($ac_try" in
34954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34955   *) ac_try_echo=$ac_try;;
34956 esac
34957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34958   (eval "$ac_try") 2>&5
34959   ac_status=$?
34960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34961   (exit $ac_status); }; }; then
34962   ac_cv_sizeof_long=`cat conftest.val`
34963 else
34964   echo "$as_me: program exited with status $ac_status" >&5
34965 echo "$as_me: failed program was:" >&5
34966 sed 's/^/| /' conftest.$ac_ext >&5
34967
34968 ( exit $ac_status )
34969 if test "$ac_cv_type_long" = yes; then
34970      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34971 See \`config.log' for more details." >&5
34972 echo "$as_me: error: cannot compute sizeof (long)
34973 See \`config.log' for more details." >&2;}
34974    { (exit 77); exit 77; }; }
34975    else
34976      ac_cv_sizeof_long=0
34977    fi
34978 fi
34979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34980 fi
34981 rm -f conftest.val
34982 fi
34983 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34984 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34985
34986
34987
34988 cat >>confdefs.h <<_ACEOF
34989 #define SIZEOF_LONG $ac_cv_sizeof_long
34990 _ACEOF
34991
34992
34993 { echo "$as_me:$LINENO: checking for long long" >&5
34994 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34995 if test "${ac_cv_type_long_long+set}" = set; then
34996   echo $ECHO_N "(cached) $ECHO_C" >&6
34997 else
34998   cat >conftest.$ac_ext <<_ACEOF
34999 /* confdefs.h.  */
35000 _ACEOF
35001 cat confdefs.h >>conftest.$ac_ext
35002 cat >>conftest.$ac_ext <<_ACEOF
35003 /* end confdefs.h.  */
35004 $ac_includes_default
35005 typedef long long ac__type_new_;
35006 int
35007 main ()
35008 {
35009 if ((ac__type_new_ *) 0)
35010   return 0;
35011 if (sizeof (ac__type_new_))
35012   return 0;
35013   ;
35014   return 0;
35015 }
35016 _ACEOF
35017 rm -f conftest.$ac_objext
35018 if { (ac_try="$ac_compile"
35019 case "(($ac_try" in
35020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35021   *) ac_try_echo=$ac_try;;
35022 esac
35023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35024   (eval "$ac_compile") 2>conftest.er1
35025   ac_status=$?
35026   grep -v '^ *+' conftest.er1 >conftest.err
35027   rm -f conftest.er1
35028   cat conftest.err >&5
35029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030   (exit $ac_status); } && {
35031          test -z "$ac_c_werror_flag" ||
35032          test ! -s conftest.err
35033        } && test -s conftest.$ac_objext; then
35034   ac_cv_type_long_long=yes
35035 else
35036   echo "$as_me: failed program was:" >&5
35037 sed 's/^/| /' conftest.$ac_ext >&5
35038
35039         ac_cv_type_long_long=no
35040 fi
35041
35042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35043 fi
35044 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
35045 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
35046
35047 # The cast to long int works around a bug in the HP C Compiler
35048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35050 # This bug is HP SR number 8606223364.
35051 { echo "$as_me:$LINENO: checking size of long long" >&5
35052 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
35053 if test "${ac_cv_sizeof_long_long+set}" = set; then
35054   echo $ECHO_N "(cached) $ECHO_C" >&6
35055 else
35056   if test "$cross_compiling" = yes; then
35057   # Depending upon the size, compute the lo and hi bounds.
35058 cat >conftest.$ac_ext <<_ACEOF
35059 /* confdefs.h.  */
35060 _ACEOF
35061 cat confdefs.h >>conftest.$ac_ext
35062 cat >>conftest.$ac_ext <<_ACEOF
35063 /* end confdefs.h.  */
35064 $ac_includes_default
35065    typedef long long ac__type_sizeof_;
35066 int
35067 main ()
35068 {
35069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35070 test_array [0] = 0
35071
35072   ;
35073   return 0;
35074 }
35075 _ACEOF
35076 rm -f conftest.$ac_objext
35077 if { (ac_try="$ac_compile"
35078 case "(($ac_try" in
35079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35080   *) ac_try_echo=$ac_try;;
35081 esac
35082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35083   (eval "$ac_compile") 2>conftest.er1
35084   ac_status=$?
35085   grep -v '^ *+' conftest.er1 >conftest.err
35086   rm -f conftest.er1
35087   cat conftest.err >&5
35088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089   (exit $ac_status); } && {
35090          test -z "$ac_c_werror_flag" ||
35091          test ! -s conftest.err
35092        } && test -s conftest.$ac_objext; then
35093   ac_lo=0 ac_mid=0
35094   while :; do
35095     cat >conftest.$ac_ext <<_ACEOF
35096 /* confdefs.h.  */
35097 _ACEOF
35098 cat confdefs.h >>conftest.$ac_ext
35099 cat >>conftest.$ac_ext <<_ACEOF
35100 /* end confdefs.h.  */
35101 $ac_includes_default
35102    typedef long long ac__type_sizeof_;
35103 int
35104 main ()
35105 {
35106 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35107 test_array [0] = 0
35108
35109   ;
35110   return 0;
35111 }
35112 _ACEOF
35113 rm -f conftest.$ac_objext
35114 if { (ac_try="$ac_compile"
35115 case "(($ac_try" in
35116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35117   *) ac_try_echo=$ac_try;;
35118 esac
35119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35120   (eval "$ac_compile") 2>conftest.er1
35121   ac_status=$?
35122   grep -v '^ *+' conftest.er1 >conftest.err
35123   rm -f conftest.er1
35124   cat conftest.err >&5
35125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126   (exit $ac_status); } && {
35127          test -z "$ac_c_werror_flag" ||
35128          test ! -s conftest.err
35129        } && test -s conftest.$ac_objext; then
35130   ac_hi=$ac_mid; break
35131 else
35132   echo "$as_me: failed program was:" >&5
35133 sed 's/^/| /' conftest.$ac_ext >&5
35134
35135         ac_lo=`expr $ac_mid + 1`
35136                         if test $ac_lo -le $ac_mid; then
35137                           ac_lo= ac_hi=
35138                           break
35139                         fi
35140                         ac_mid=`expr 2 '*' $ac_mid + 1`
35141 fi
35142
35143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35144   done
35145 else
35146   echo "$as_me: failed program was:" >&5
35147 sed 's/^/| /' conftest.$ac_ext >&5
35148
35149         cat >conftest.$ac_ext <<_ACEOF
35150 /* confdefs.h.  */
35151 _ACEOF
35152 cat confdefs.h >>conftest.$ac_ext
35153 cat >>conftest.$ac_ext <<_ACEOF
35154 /* end confdefs.h.  */
35155 $ac_includes_default
35156    typedef long long ac__type_sizeof_;
35157 int
35158 main ()
35159 {
35160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35161 test_array [0] = 0
35162
35163   ;
35164   return 0;
35165 }
35166 _ACEOF
35167 rm -f conftest.$ac_objext
35168 if { (ac_try="$ac_compile"
35169 case "(($ac_try" in
35170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35171   *) ac_try_echo=$ac_try;;
35172 esac
35173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35174   (eval "$ac_compile") 2>conftest.er1
35175   ac_status=$?
35176   grep -v '^ *+' conftest.er1 >conftest.err
35177   rm -f conftest.er1
35178   cat conftest.err >&5
35179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180   (exit $ac_status); } && {
35181          test -z "$ac_c_werror_flag" ||
35182          test ! -s conftest.err
35183        } && test -s conftest.$ac_objext; then
35184   ac_hi=-1 ac_mid=-1
35185   while :; do
35186     cat >conftest.$ac_ext <<_ACEOF
35187 /* confdefs.h.  */
35188 _ACEOF
35189 cat confdefs.h >>conftest.$ac_ext
35190 cat >>conftest.$ac_ext <<_ACEOF
35191 /* end confdefs.h.  */
35192 $ac_includes_default
35193    typedef long long ac__type_sizeof_;
35194 int
35195 main ()
35196 {
35197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35198 test_array [0] = 0
35199
35200   ;
35201   return 0;
35202 }
35203 _ACEOF
35204 rm -f conftest.$ac_objext
35205 if { (ac_try="$ac_compile"
35206 case "(($ac_try" in
35207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35208   *) ac_try_echo=$ac_try;;
35209 esac
35210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35211   (eval "$ac_compile") 2>conftest.er1
35212   ac_status=$?
35213   grep -v '^ *+' conftest.er1 >conftest.err
35214   rm -f conftest.er1
35215   cat conftest.err >&5
35216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217   (exit $ac_status); } && {
35218          test -z "$ac_c_werror_flag" ||
35219          test ! -s conftest.err
35220        } && test -s conftest.$ac_objext; then
35221   ac_lo=$ac_mid; break
35222 else
35223   echo "$as_me: failed program was:" >&5
35224 sed 's/^/| /' conftest.$ac_ext >&5
35225
35226         ac_hi=`expr '(' $ac_mid ')' - 1`
35227                         if test $ac_mid -le $ac_hi; then
35228                           ac_lo= ac_hi=
35229                           break
35230                         fi
35231                         ac_mid=`expr 2 '*' $ac_mid`
35232 fi
35233
35234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35235   done
35236 else
35237   echo "$as_me: failed program was:" >&5
35238 sed 's/^/| /' conftest.$ac_ext >&5
35239
35240         ac_lo= ac_hi=
35241 fi
35242
35243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35244 fi
35245
35246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35247 # Binary search between lo and hi bounds.
35248 while test "x$ac_lo" != "x$ac_hi"; do
35249   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35250   cat >conftest.$ac_ext <<_ACEOF
35251 /* confdefs.h.  */
35252 _ACEOF
35253 cat confdefs.h >>conftest.$ac_ext
35254 cat >>conftest.$ac_ext <<_ACEOF
35255 /* end confdefs.h.  */
35256 $ac_includes_default
35257    typedef long long ac__type_sizeof_;
35258 int
35259 main ()
35260 {
35261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35262 test_array [0] = 0
35263
35264   ;
35265   return 0;
35266 }
35267 _ACEOF
35268 rm -f conftest.$ac_objext
35269 if { (ac_try="$ac_compile"
35270 case "(($ac_try" in
35271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35272   *) ac_try_echo=$ac_try;;
35273 esac
35274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35275   (eval "$ac_compile") 2>conftest.er1
35276   ac_status=$?
35277   grep -v '^ *+' conftest.er1 >conftest.err
35278   rm -f conftest.er1
35279   cat conftest.err >&5
35280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35281   (exit $ac_status); } && {
35282          test -z "$ac_c_werror_flag" ||
35283          test ! -s conftest.err
35284        } && test -s conftest.$ac_objext; then
35285   ac_hi=$ac_mid
35286 else
35287   echo "$as_me: failed program was:" >&5
35288 sed 's/^/| /' conftest.$ac_ext >&5
35289
35290         ac_lo=`expr '(' $ac_mid ')' + 1`
35291 fi
35292
35293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35294 done
35295 case $ac_lo in
35296 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35297 '') if test "$ac_cv_type_long_long" = yes; then
35298      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35299 See \`config.log' for more details." >&5
35300 echo "$as_me: error: cannot compute sizeof (long long)
35301 See \`config.log' for more details." >&2;}
35302    { (exit 77); exit 77; }; }
35303    else
35304      ac_cv_sizeof_long_long=0
35305    fi ;;
35306 esac
35307 else
35308   cat >conftest.$ac_ext <<_ACEOF
35309 /* confdefs.h.  */
35310 _ACEOF
35311 cat confdefs.h >>conftest.$ac_ext
35312 cat >>conftest.$ac_ext <<_ACEOF
35313 /* end confdefs.h.  */
35314 $ac_includes_default
35315    typedef long long ac__type_sizeof_;
35316 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35317 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35318 #include <stdio.h>
35319 #include <stdlib.h>
35320 int
35321 main ()
35322 {
35323
35324   FILE *f = fopen ("conftest.val", "w");
35325   if (! f)
35326     return 1;
35327   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35328     {
35329       long int i = longval ();
35330       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35331         return 1;
35332       fprintf (f, "%ld\n", i);
35333     }
35334   else
35335     {
35336       unsigned long int i = ulongval ();
35337       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35338         return 1;
35339       fprintf (f, "%lu\n", i);
35340     }
35341   return ferror (f) || fclose (f) != 0;
35342
35343   ;
35344   return 0;
35345 }
35346 _ACEOF
35347 rm -f conftest$ac_exeext
35348 if { (ac_try="$ac_link"
35349 case "(($ac_try" in
35350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35351   *) ac_try_echo=$ac_try;;
35352 esac
35353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35354   (eval "$ac_link") 2>&5
35355   ac_status=$?
35356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35358   { (case "(($ac_try" in
35359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35360   *) ac_try_echo=$ac_try;;
35361 esac
35362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35363   (eval "$ac_try") 2>&5
35364   ac_status=$?
35365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366   (exit $ac_status); }; }; then
35367   ac_cv_sizeof_long_long=`cat conftest.val`
35368 else
35369   echo "$as_me: program exited with status $ac_status" >&5
35370 echo "$as_me: failed program was:" >&5
35371 sed 's/^/| /' conftest.$ac_ext >&5
35372
35373 ( exit $ac_status )
35374 if test "$ac_cv_type_long_long" = yes; then
35375      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35376 See \`config.log' for more details." >&5
35377 echo "$as_me: error: cannot compute sizeof (long long)
35378 See \`config.log' for more details." >&2;}
35379    { (exit 77); exit 77; }; }
35380    else
35381      ac_cv_sizeof_long_long=0
35382    fi
35383 fi
35384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35385 fi
35386 rm -f conftest.val
35387 fi
35388 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35389 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35390
35391
35392
35393 cat >>confdefs.h <<_ACEOF
35394 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35395 _ACEOF
35396
35397
35398 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35399 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35400 if test "${ac_cv_type_wchar_t+set}" = set; then
35401   echo $ECHO_N "(cached) $ECHO_C" >&6
35402 else
35403   cat >conftest.$ac_ext <<_ACEOF
35404 /* confdefs.h.  */
35405 _ACEOF
35406 cat confdefs.h >>conftest.$ac_ext
35407 cat >>conftest.$ac_ext <<_ACEOF
35408 /* end confdefs.h.  */
35409 $ac_includes_default
35410 typedef wchar_t ac__type_new_;
35411 int
35412 main ()
35413 {
35414 if ((ac__type_new_ *) 0)
35415   return 0;
35416 if (sizeof (ac__type_new_))
35417   return 0;
35418   ;
35419   return 0;
35420 }
35421 _ACEOF
35422 rm -f conftest.$ac_objext
35423 if { (ac_try="$ac_compile"
35424 case "(($ac_try" in
35425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35426   *) ac_try_echo=$ac_try;;
35427 esac
35428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35429   (eval "$ac_compile") 2>conftest.er1
35430   ac_status=$?
35431   grep -v '^ *+' conftest.er1 >conftest.err
35432   rm -f conftest.er1
35433   cat conftest.err >&5
35434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435   (exit $ac_status); } && {
35436          test -z "$ac_c_werror_flag" ||
35437          test ! -s conftest.err
35438        } && test -s conftest.$ac_objext; then
35439   ac_cv_type_wchar_t=yes
35440 else
35441   echo "$as_me: failed program was:" >&5
35442 sed 's/^/| /' conftest.$ac_ext >&5
35443
35444         ac_cv_type_wchar_t=no
35445 fi
35446
35447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35448 fi
35449 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35450 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35451
35452 # The cast to long int works around a bug in the HP C Compiler
35453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35455 # This bug is HP SR number 8606223364.
35456 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35457 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35458 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35459   echo $ECHO_N "(cached) $ECHO_C" >&6
35460 else
35461   if test "$cross_compiling" = yes; then
35462   # Depending upon the size, compute the lo and hi bounds.
35463 cat >conftest.$ac_ext <<_ACEOF
35464 /* confdefs.h.  */
35465 _ACEOF
35466 cat confdefs.h >>conftest.$ac_ext
35467 cat >>conftest.$ac_ext <<_ACEOF
35468 /* end confdefs.h.  */
35469 $ac_includes_default
35470    typedef wchar_t ac__type_sizeof_;
35471 int
35472 main ()
35473 {
35474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35475 test_array [0] = 0
35476
35477   ;
35478   return 0;
35479 }
35480 _ACEOF
35481 rm -f conftest.$ac_objext
35482 if { (ac_try="$ac_compile"
35483 case "(($ac_try" in
35484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35485   *) ac_try_echo=$ac_try;;
35486 esac
35487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35488   (eval "$ac_compile") 2>conftest.er1
35489   ac_status=$?
35490   grep -v '^ *+' conftest.er1 >conftest.err
35491   rm -f conftest.er1
35492   cat conftest.err >&5
35493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35494   (exit $ac_status); } && {
35495          test -z "$ac_c_werror_flag" ||
35496          test ! -s conftest.err
35497        } && test -s conftest.$ac_objext; then
35498   ac_lo=0 ac_mid=0
35499   while :; do
35500     cat >conftest.$ac_ext <<_ACEOF
35501 /* confdefs.h.  */
35502 _ACEOF
35503 cat confdefs.h >>conftest.$ac_ext
35504 cat >>conftest.$ac_ext <<_ACEOF
35505 /* end confdefs.h.  */
35506 $ac_includes_default
35507    typedef wchar_t ac__type_sizeof_;
35508 int
35509 main ()
35510 {
35511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35512 test_array [0] = 0
35513
35514   ;
35515   return 0;
35516 }
35517 _ACEOF
35518 rm -f conftest.$ac_objext
35519 if { (ac_try="$ac_compile"
35520 case "(($ac_try" in
35521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35522   *) ac_try_echo=$ac_try;;
35523 esac
35524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35525   (eval "$ac_compile") 2>conftest.er1
35526   ac_status=$?
35527   grep -v '^ *+' conftest.er1 >conftest.err
35528   rm -f conftest.er1
35529   cat conftest.err >&5
35530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35531   (exit $ac_status); } && {
35532          test -z "$ac_c_werror_flag" ||
35533          test ! -s conftest.err
35534        } && test -s conftest.$ac_objext; then
35535   ac_hi=$ac_mid; break
35536 else
35537   echo "$as_me: failed program was:" >&5
35538 sed 's/^/| /' conftest.$ac_ext >&5
35539
35540         ac_lo=`expr $ac_mid + 1`
35541                         if test $ac_lo -le $ac_mid; then
35542                           ac_lo= ac_hi=
35543                           break
35544                         fi
35545                         ac_mid=`expr 2 '*' $ac_mid + 1`
35546 fi
35547
35548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35549   done
35550 else
35551   echo "$as_me: failed program was:" >&5
35552 sed 's/^/| /' conftest.$ac_ext >&5
35553
35554         cat >conftest.$ac_ext <<_ACEOF
35555 /* confdefs.h.  */
35556 _ACEOF
35557 cat confdefs.h >>conftest.$ac_ext
35558 cat >>conftest.$ac_ext <<_ACEOF
35559 /* end confdefs.h.  */
35560 $ac_includes_default
35561    typedef wchar_t ac__type_sizeof_;
35562 int
35563 main ()
35564 {
35565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35566 test_array [0] = 0
35567
35568   ;
35569   return 0;
35570 }
35571 _ACEOF
35572 rm -f conftest.$ac_objext
35573 if { (ac_try="$ac_compile"
35574 case "(($ac_try" in
35575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35576   *) ac_try_echo=$ac_try;;
35577 esac
35578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35579   (eval "$ac_compile") 2>conftest.er1
35580   ac_status=$?
35581   grep -v '^ *+' conftest.er1 >conftest.err
35582   rm -f conftest.er1
35583   cat conftest.err >&5
35584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585   (exit $ac_status); } && {
35586          test -z "$ac_c_werror_flag" ||
35587          test ! -s conftest.err
35588        } && test -s conftest.$ac_objext; then
35589   ac_hi=-1 ac_mid=-1
35590   while :; do
35591     cat >conftest.$ac_ext <<_ACEOF
35592 /* confdefs.h.  */
35593 _ACEOF
35594 cat confdefs.h >>conftest.$ac_ext
35595 cat >>conftest.$ac_ext <<_ACEOF
35596 /* end confdefs.h.  */
35597 $ac_includes_default
35598    typedef wchar_t ac__type_sizeof_;
35599 int
35600 main ()
35601 {
35602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35603 test_array [0] = 0
35604
35605   ;
35606   return 0;
35607 }
35608 _ACEOF
35609 rm -f conftest.$ac_objext
35610 if { (ac_try="$ac_compile"
35611 case "(($ac_try" in
35612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35613   *) ac_try_echo=$ac_try;;
35614 esac
35615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35616   (eval "$ac_compile") 2>conftest.er1
35617   ac_status=$?
35618   grep -v '^ *+' conftest.er1 >conftest.err
35619   rm -f conftest.er1
35620   cat conftest.err >&5
35621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35622   (exit $ac_status); } && {
35623          test -z "$ac_c_werror_flag" ||
35624          test ! -s conftest.err
35625        } && test -s conftest.$ac_objext; then
35626   ac_lo=$ac_mid; break
35627 else
35628   echo "$as_me: failed program was:" >&5
35629 sed 's/^/| /' conftest.$ac_ext >&5
35630
35631         ac_hi=`expr '(' $ac_mid ')' - 1`
35632                         if test $ac_mid -le $ac_hi; then
35633                           ac_lo= ac_hi=
35634                           break
35635                         fi
35636                         ac_mid=`expr 2 '*' $ac_mid`
35637 fi
35638
35639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35640   done
35641 else
35642   echo "$as_me: failed program was:" >&5
35643 sed 's/^/| /' conftest.$ac_ext >&5
35644
35645         ac_lo= ac_hi=
35646 fi
35647
35648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35649 fi
35650
35651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35652 # Binary search between lo and hi bounds.
35653 while test "x$ac_lo" != "x$ac_hi"; do
35654   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35655   cat >conftest.$ac_ext <<_ACEOF
35656 /* confdefs.h.  */
35657 _ACEOF
35658 cat confdefs.h >>conftest.$ac_ext
35659 cat >>conftest.$ac_ext <<_ACEOF
35660 /* end confdefs.h.  */
35661 $ac_includes_default
35662    typedef wchar_t ac__type_sizeof_;
35663 int
35664 main ()
35665 {
35666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35667 test_array [0] = 0
35668
35669   ;
35670   return 0;
35671 }
35672 _ACEOF
35673 rm -f conftest.$ac_objext
35674 if { (ac_try="$ac_compile"
35675 case "(($ac_try" in
35676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35677   *) ac_try_echo=$ac_try;;
35678 esac
35679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35680   (eval "$ac_compile") 2>conftest.er1
35681   ac_status=$?
35682   grep -v '^ *+' conftest.er1 >conftest.err
35683   rm -f conftest.er1
35684   cat conftest.err >&5
35685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686   (exit $ac_status); } && {
35687          test -z "$ac_c_werror_flag" ||
35688          test ! -s conftest.err
35689        } && test -s conftest.$ac_objext; then
35690   ac_hi=$ac_mid
35691 else
35692   echo "$as_me: failed program was:" >&5
35693 sed 's/^/| /' conftest.$ac_ext >&5
35694
35695         ac_lo=`expr '(' $ac_mid ')' + 1`
35696 fi
35697
35698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35699 done
35700 case $ac_lo in
35701 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35702 '') if test "$ac_cv_type_wchar_t" = yes; then
35703      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35704 See \`config.log' for more details." >&5
35705 echo "$as_me: error: cannot compute sizeof (wchar_t)
35706 See \`config.log' for more details." >&2;}
35707    { (exit 77); exit 77; }; }
35708    else
35709      ac_cv_sizeof_wchar_t=0
35710    fi ;;
35711 esac
35712 else
35713   cat >conftest.$ac_ext <<_ACEOF
35714 /* confdefs.h.  */
35715 _ACEOF
35716 cat confdefs.h >>conftest.$ac_ext
35717 cat >>conftest.$ac_ext <<_ACEOF
35718 /* end confdefs.h.  */
35719 $ac_includes_default
35720    typedef wchar_t ac__type_sizeof_;
35721 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35722 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35723 #include <stdio.h>
35724 #include <stdlib.h>
35725 int
35726 main ()
35727 {
35728
35729   FILE *f = fopen ("conftest.val", "w");
35730   if (! f)
35731     return 1;
35732   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35733     {
35734       long int i = longval ();
35735       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35736         return 1;
35737       fprintf (f, "%ld\n", i);
35738     }
35739   else
35740     {
35741       unsigned long int i = ulongval ();
35742       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35743         return 1;
35744       fprintf (f, "%lu\n", i);
35745     }
35746   return ferror (f) || fclose (f) != 0;
35747
35748   ;
35749   return 0;
35750 }
35751 _ACEOF
35752 rm -f conftest$ac_exeext
35753 if { (ac_try="$ac_link"
35754 case "(($ac_try" in
35755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35756   *) ac_try_echo=$ac_try;;
35757 esac
35758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35759   (eval "$ac_link") 2>&5
35760   ac_status=$?
35761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35763   { (case "(($ac_try" in
35764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35765   *) ac_try_echo=$ac_try;;
35766 esac
35767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35768   (eval "$ac_try") 2>&5
35769   ac_status=$?
35770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771   (exit $ac_status); }; }; then
35772   ac_cv_sizeof_wchar_t=`cat conftest.val`
35773 else
35774   echo "$as_me: program exited with status $ac_status" >&5
35775 echo "$as_me: failed program was:" >&5
35776 sed 's/^/| /' conftest.$ac_ext >&5
35777
35778 ( exit $ac_status )
35779 if test "$ac_cv_type_wchar_t" = yes; then
35780      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35781 See \`config.log' for more details." >&5
35782 echo "$as_me: error: cannot compute sizeof (wchar_t)
35783 See \`config.log' for more details." >&2;}
35784    { (exit 77); exit 77; }; }
35785    else
35786      ac_cv_sizeof_wchar_t=0
35787    fi
35788 fi
35789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35790 fi
35791 rm -f conftest.val
35792 fi
35793 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35794 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35795
35796
35797
35798 cat >>confdefs.h <<_ACEOF
35799 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35800 _ACEOF
35801
35802
35803
35804 if test "$ac_cv_sizeof_int" -lt 4 ; then
35805         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35806 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35807
35808
35809 cat >>confdefs.h <<\_ACEOF
35810 #define LBER_INT_T long
35811 _ACEOF
35812
35813 else
35814
35815 cat >>confdefs.h <<\_ACEOF
35816 #define LBER_INT_T int
35817 _ACEOF
35818
35819 fi
35820
35821
35822 cat >>confdefs.h <<\_ACEOF
35823 #define LBER_LEN_T long
35824 _ACEOF
35825
35826
35827 cat >>confdefs.h <<\_ACEOF
35828 #define LBER_SOCKET_T int
35829 _ACEOF
35830
35831
35832 cat >>confdefs.h <<\_ACEOF
35833 #define LBER_TAG_T long
35834 _ACEOF
35835
35836
35837 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35838         if test $ac_cv_sizeof_long_long -gt 4 ; then
35839                 ol_with_mp=longlong
35840
35841 cat >>confdefs.h <<\_ACEOF
35842 #define USE_MP_LONG_LONG 1
35843 _ACEOF
35844
35845         elif test $ol_with_mp = longlong ; then
35846                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35847 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35848    { (exit 1); exit 1; }; }
35849         fi
35850 fi
35851 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35852         if test $ac_cv_sizeof_long -gt 4 ; then
35853                 ol_with_mp=long
35854
35855 cat >>confdefs.h <<\_ACEOF
35856 #define USE_MP_LONG 1
35857 _ACEOF
35858
35859         elif test $ol_with_mp = long ; then
35860                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35861 echo "$as_me: error: long unusable for multiple precision" >&2;}
35862    { (exit 1); exit 1; }; }
35863         fi
35864 fi
35865 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35866
35867 for ac_header in openssl/bn.h
35868 do
35869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35871   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35874   echo $ECHO_N "(cached) $ECHO_C" >&6
35875 fi
35876 ac_res=`eval echo '${'$as_ac_Header'}'`
35877                { echo "$as_me:$LINENO: result: $ac_res" >&5
35878 echo "${ECHO_T}$ac_res" >&6; }
35879 else
35880   # Is the header compilable?
35881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35882 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
35890 #include <$ac_header>
35891 _ACEOF
35892 rm -f conftest.$ac_objext
35893 if { (ac_try="$ac_compile"
35894 case "(($ac_try" in
35895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35896   *) ac_try_echo=$ac_try;;
35897 esac
35898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35899   (eval "$ac_compile") 2>conftest.er1
35900   ac_status=$?
35901   grep -v '^ *+' conftest.er1 >conftest.err
35902   rm -f conftest.er1
35903   cat conftest.err >&5
35904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35905   (exit $ac_status); } && {
35906          test -z "$ac_c_werror_flag" ||
35907          test ! -s conftest.err
35908        } && test -s conftest.$ac_objext; then
35909   ac_header_compiler=yes
35910 else
35911   echo "$as_me: failed program was:" >&5
35912 sed 's/^/| /' conftest.$ac_ext >&5
35913
35914         ac_header_compiler=no
35915 fi
35916
35917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35919 echo "${ECHO_T}$ac_header_compiler" >&6; }
35920
35921 # Is the header present?
35922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35924 cat >conftest.$ac_ext <<_ACEOF
35925 /* confdefs.h.  */
35926 _ACEOF
35927 cat confdefs.h >>conftest.$ac_ext
35928 cat >>conftest.$ac_ext <<_ACEOF
35929 /* end confdefs.h.  */
35930 #include <$ac_header>
35931 _ACEOF
35932 if { (ac_try="$ac_cpp conftest.$ac_ext"
35933 case "(($ac_try" in
35934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35935   *) ac_try_echo=$ac_try;;
35936 esac
35937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35939   ac_status=$?
35940   grep -v '^ *+' conftest.er1 >conftest.err
35941   rm -f conftest.er1
35942   cat conftest.err >&5
35943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35944   (exit $ac_status); } >/dev/null && {
35945          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35946          test ! -s conftest.err
35947        }; then
35948   ac_header_preproc=yes
35949 else
35950   echo "$as_me: failed program was:" >&5
35951 sed 's/^/| /' conftest.$ac_ext >&5
35952
35953   ac_header_preproc=no
35954 fi
35955
35956 rm -f conftest.err conftest.$ac_ext
35957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35958 echo "${ECHO_T}$ac_header_preproc" >&6; }
35959
35960 # So?  What about this header?
35961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35962   yes:no: )
35963     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35967     ac_header_preproc=yes
35968     ;;
35969   no:yes:* )
35970     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35972     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35973 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35974     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35976     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35977 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35980     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35982     ( cat <<\_ASBOX
35983 ## --------------------------------------------- ##
35984 ## Report this to <http://www.openldap.org/its/> ##
35985 ## --------------------------------------------- ##
35986 _ASBOX
35987      ) | sed "s/^/$as_me: WARNING:     /" >&2
35988     ;;
35989 esac
35990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35993   echo $ECHO_N "(cached) $ECHO_C" >&6
35994 else
35995   eval "$as_ac_Header=\$ac_header_preproc"
35996 fi
35997 ac_res=`eval echo '${'$as_ac_Header'}'`
35998                { echo "$as_me:$LINENO: result: $ac_res" >&5
35999 echo "${ECHO_T}$ac_res" >&6; }
36000
36001 fi
36002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36003   cat >>confdefs.h <<_ACEOF
36004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36005 _ACEOF
36006
36007 fi
36008
36009 done
36010
36011
36012 for ac_header in openssl/crypto.h
36013 do
36014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36016   { echo "$as_me:$LINENO: checking for $ac_header" >&5
36017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36019   echo $ECHO_N "(cached) $ECHO_C" >&6
36020 fi
36021 ac_res=`eval echo '${'$as_ac_Header'}'`
36022                { echo "$as_me:$LINENO: result: $ac_res" >&5
36023 echo "${ECHO_T}$ac_res" >&6; }
36024 else
36025   # Is the header compilable?
36026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36028 cat >conftest.$ac_ext <<_ACEOF
36029 /* confdefs.h.  */
36030 _ACEOF
36031 cat confdefs.h >>conftest.$ac_ext
36032 cat >>conftest.$ac_ext <<_ACEOF
36033 /* end confdefs.h.  */
36034 $ac_includes_default
36035 #include <$ac_header>
36036 _ACEOF
36037 rm -f conftest.$ac_objext
36038 if { (ac_try="$ac_compile"
36039 case "(($ac_try" in
36040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36041   *) ac_try_echo=$ac_try;;
36042 esac
36043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36044   (eval "$ac_compile") 2>conftest.er1
36045   ac_status=$?
36046   grep -v '^ *+' conftest.er1 >conftest.err
36047   rm -f conftest.er1
36048   cat conftest.err >&5
36049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050   (exit $ac_status); } && {
36051          test -z "$ac_c_werror_flag" ||
36052          test ! -s conftest.err
36053        } && test -s conftest.$ac_objext; then
36054   ac_header_compiler=yes
36055 else
36056   echo "$as_me: failed program was:" >&5
36057 sed 's/^/| /' conftest.$ac_ext >&5
36058
36059         ac_header_compiler=no
36060 fi
36061
36062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36064 echo "${ECHO_T}$ac_header_compiler" >&6; }
36065
36066 # Is the header present?
36067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36069 cat >conftest.$ac_ext <<_ACEOF
36070 /* confdefs.h.  */
36071 _ACEOF
36072 cat confdefs.h >>conftest.$ac_ext
36073 cat >>conftest.$ac_ext <<_ACEOF
36074 /* end confdefs.h.  */
36075 #include <$ac_header>
36076 _ACEOF
36077 if { (ac_try="$ac_cpp conftest.$ac_ext"
36078 case "(($ac_try" in
36079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36080   *) ac_try_echo=$ac_try;;
36081 esac
36082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36083   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36084   ac_status=$?
36085   grep -v '^ *+' conftest.er1 >conftest.err
36086   rm -f conftest.er1
36087   cat conftest.err >&5
36088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089   (exit $ac_status); } >/dev/null && {
36090          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36091          test ! -s conftest.err
36092        }; then
36093   ac_header_preproc=yes
36094 else
36095   echo "$as_me: failed program was:" >&5
36096 sed 's/^/| /' conftest.$ac_ext >&5
36097
36098   ac_header_preproc=no
36099 fi
36100
36101 rm -f conftest.err conftest.$ac_ext
36102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36103 echo "${ECHO_T}$ac_header_preproc" >&6; }
36104
36105 # So?  What about this header?
36106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36107   yes:no: )
36108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36112     ac_header_preproc=yes
36113     ;;
36114   no:yes:* )
36115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36117     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36118 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36119     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36121     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36122 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36125     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36127     ( cat <<\_ASBOX
36128 ## --------------------------------------------- ##
36129 ## Report this to <http://www.openldap.org/its/> ##
36130 ## --------------------------------------------- ##
36131 _ASBOX
36132      ) | sed "s/^/$as_me: WARNING:     /" >&2
36133     ;;
36134 esac
36135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36138   echo $ECHO_N "(cached) $ECHO_C" >&6
36139 else
36140   eval "$as_ac_Header=\$ac_header_preproc"
36141 fi
36142 ac_res=`eval echo '${'$as_ac_Header'}'`
36143                { echo "$as_me:$LINENO: result: $ac_res" >&5
36144 echo "${ECHO_T}$ac_res" >&6; }
36145
36146 fi
36147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36148   cat >>confdefs.h <<_ACEOF
36149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36150 _ACEOF
36151
36152 fi
36153
36154 done
36155
36156         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
36157                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
36158                 test "$ol_with_tls" = "found" ; then
36159                 ol_with_mp=bignum
36160
36161 cat >>confdefs.h <<\_ACEOF
36162 #define USE_MP_BIGNUM 1
36163 _ACEOF
36164
36165         elif test $ol_with_mp = bignum ; then
36166                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
36167 echo "$as_me: error: bignum not available" >&2;}
36168    { (exit 1); exit 1; }; }
36169         fi
36170 fi
36171 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
36172
36173 for ac_header in gmp.h
36174 do
36175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36177   { echo "$as_me:$LINENO: checking for $ac_header" >&5
36178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36180   echo $ECHO_N "(cached) $ECHO_C" >&6
36181 fi
36182 ac_res=`eval echo '${'$as_ac_Header'}'`
36183                { echo "$as_me:$LINENO: result: $ac_res" >&5
36184 echo "${ECHO_T}$ac_res" >&6; }
36185 else
36186   # Is the header compilable?
36187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36189 cat >conftest.$ac_ext <<_ACEOF
36190 /* confdefs.h.  */
36191 _ACEOF
36192 cat confdefs.h >>conftest.$ac_ext
36193 cat >>conftest.$ac_ext <<_ACEOF
36194 /* end confdefs.h.  */
36195 $ac_includes_default
36196 #include <$ac_header>
36197 _ACEOF
36198 rm -f conftest.$ac_objext
36199 if { (ac_try="$ac_compile"
36200 case "(($ac_try" in
36201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36202   *) ac_try_echo=$ac_try;;
36203 esac
36204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36205   (eval "$ac_compile") 2>conftest.er1
36206   ac_status=$?
36207   grep -v '^ *+' conftest.er1 >conftest.err
36208   rm -f conftest.er1
36209   cat conftest.err >&5
36210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211   (exit $ac_status); } && {
36212          test -z "$ac_c_werror_flag" ||
36213          test ! -s conftest.err
36214        } && test -s conftest.$ac_objext; then
36215   ac_header_compiler=yes
36216 else
36217   echo "$as_me: failed program was:" >&5
36218 sed 's/^/| /' conftest.$ac_ext >&5
36219
36220         ac_header_compiler=no
36221 fi
36222
36223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36225 echo "${ECHO_T}$ac_header_compiler" >&6; }
36226
36227 # Is the header present?
36228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36230 cat >conftest.$ac_ext <<_ACEOF
36231 /* confdefs.h.  */
36232 _ACEOF
36233 cat confdefs.h >>conftest.$ac_ext
36234 cat >>conftest.$ac_ext <<_ACEOF
36235 /* end confdefs.h.  */
36236 #include <$ac_header>
36237 _ACEOF
36238 if { (ac_try="$ac_cpp conftest.$ac_ext"
36239 case "(($ac_try" in
36240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36241   *) ac_try_echo=$ac_try;;
36242 esac
36243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36245   ac_status=$?
36246   grep -v '^ *+' conftest.er1 >conftest.err
36247   rm -f conftest.er1
36248   cat conftest.err >&5
36249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250   (exit $ac_status); } >/dev/null && {
36251          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36252          test ! -s conftest.err
36253        }; then
36254   ac_header_preproc=yes
36255 else
36256   echo "$as_me: failed program was:" >&5
36257 sed 's/^/| /' conftest.$ac_ext >&5
36258
36259   ac_header_preproc=no
36260 fi
36261
36262 rm -f conftest.err conftest.$ac_ext
36263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36264 echo "${ECHO_T}$ac_header_preproc" >&6; }
36265
36266 # So?  What about this header?
36267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36268   yes:no: )
36269     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36273     ac_header_preproc=yes
36274     ;;
36275   no:yes:* )
36276     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36278     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36279 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36280     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36282     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36283 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36286     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36288     ( cat <<\_ASBOX
36289 ## --------------------------------------------- ##
36290 ## Report this to <http://www.openldap.org/its/> ##
36291 ## --------------------------------------------- ##
36292 _ASBOX
36293      ) | sed "s/^/$as_me: WARNING:     /" >&2
36294     ;;
36295 esac
36296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36299   echo $ECHO_N "(cached) $ECHO_C" >&6
36300 else
36301   eval "$as_ac_Header=\$ac_header_preproc"
36302 fi
36303 ac_res=`eval echo '${'$as_ac_Header'}'`
36304                { echo "$as_me:$LINENO: result: $ac_res" >&5
36305 echo "${ECHO_T}$ac_res" >&6; }
36306
36307 fi
36308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36309   cat >>confdefs.h <<_ACEOF
36310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36311 _ACEOF
36312
36313 fi
36314
36315 done
36316
36317
36318 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36319 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
36320 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36321   echo $ECHO_N "(cached) $ECHO_C" >&6
36322 else
36323   ac_check_lib_save_LIBS=$LIBS
36324 LIBS="-lgmp  $LIBS"
36325 cat >conftest.$ac_ext <<_ACEOF
36326 /* confdefs.h.  */
36327 _ACEOF
36328 cat confdefs.h >>conftest.$ac_ext
36329 cat >>conftest.$ac_ext <<_ACEOF
36330 /* end confdefs.h.  */
36331
36332 /* Override any GCC internal prototype to avoid an error.
36333    Use char because int might match the return type of a GCC
36334    builtin and then its argument prototype would still apply.  */
36335 #ifdef __cplusplus
36336 extern "C"
36337 #endif
36338 char __gmpz_add_ui ();
36339 int
36340 main ()
36341 {
36342 return __gmpz_add_ui ();
36343   ;
36344   return 0;
36345 }
36346 _ACEOF
36347 rm -f conftest.$ac_objext conftest$ac_exeext
36348 if { (ac_try="$ac_link"
36349 case "(($ac_try" in
36350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36351   *) ac_try_echo=$ac_try;;
36352 esac
36353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36354   (eval "$ac_link") 2>conftest.er1
36355   ac_status=$?
36356   grep -v '^ *+' conftest.er1 >conftest.err
36357   rm -f conftest.er1
36358   cat conftest.err >&5
36359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36360   (exit $ac_status); } && {
36361          test -z "$ac_c_werror_flag" ||
36362          test ! -s conftest.err
36363        } && test -s conftest$ac_exeext &&
36364        $as_test_x conftest$ac_exeext; then
36365   ac_cv_lib_gmp___gmpz_add_ui=yes
36366 else
36367   echo "$as_me: failed program was:" >&5
36368 sed 's/^/| /' conftest.$ac_ext >&5
36369
36370         ac_cv_lib_gmp___gmpz_add_ui=no
36371 fi
36372
36373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36374       conftest$ac_exeext conftest.$ac_ext
36375 LIBS=$ac_check_lib_save_LIBS
36376 fi
36377 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36378 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36379 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36380   cat >>confdefs.h <<_ACEOF
36381 #define HAVE_LIBGMP 1
36382 _ACEOF
36383
36384   LIBS="-lgmp $LIBS"
36385
36386 fi
36387
36388         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36389
36390 cat >>confdefs.h <<\_ACEOF
36391 #define USE_MP_GMP 1
36392 _ACEOF
36393
36394                 ol_with_mp=gmp
36395         elif test $ol_with_mp = gmp ; then
36396                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36397 echo "$as_me: error: gmp not available" >&2;}
36398    { (exit 1); exit 1; }; }
36399         fi
36400 fi
36401 if test $ol_with_mp = auto ; then
36402         ol_with_mp=no
36403 fi
36404
36405 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36406 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36407 if test "${ac_cv_func_memcmp_working+set}" = set; then
36408   echo $ECHO_N "(cached) $ECHO_C" >&6
36409 else
36410   if test "$cross_compiling" = yes; then
36411   ac_cv_func_memcmp_working=no
36412 else
36413   cat >conftest.$ac_ext <<_ACEOF
36414 /* confdefs.h.  */
36415 _ACEOF
36416 cat confdefs.h >>conftest.$ac_ext
36417 cat >>conftest.$ac_ext <<_ACEOF
36418 /* end confdefs.h.  */
36419 $ac_includes_default
36420 int
36421 main ()
36422 {
36423
36424   /* Some versions of memcmp are not 8-bit clean.  */
36425   char c0 = '\100', c1 = '\200', c2 = '\201';
36426   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36427     return 1;
36428
36429   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36430      or more and with at least one buffer not starting on a 4-byte boundary.
36431      William Lewis provided this test program.   */
36432   {
36433     char foo[21];
36434     char bar[21];
36435     int i;
36436     for (i = 0; i < 4; i++)
36437       {
36438         char *a = foo + i;
36439         char *b = bar + i;
36440         strcpy (a, "--------01111111");
36441         strcpy (b, "--------10000000");
36442         if (memcmp (a, b, 16) >= 0)
36443           return 1;
36444       }
36445     return 0;
36446   }
36447
36448   ;
36449   return 0;
36450 }
36451 _ACEOF
36452 rm -f conftest$ac_exeext
36453 if { (ac_try="$ac_link"
36454 case "(($ac_try" in
36455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36456   *) ac_try_echo=$ac_try;;
36457 esac
36458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36459   (eval "$ac_link") 2>&5
36460   ac_status=$?
36461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36463   { (case "(($ac_try" in
36464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36465   *) ac_try_echo=$ac_try;;
36466 esac
36467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36468   (eval "$ac_try") 2>&5
36469   ac_status=$?
36470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471   (exit $ac_status); }; }; then
36472   ac_cv_func_memcmp_working=yes
36473 else
36474   echo "$as_me: program exited with status $ac_status" >&5
36475 echo "$as_me: failed program was:" >&5
36476 sed 's/^/| /' conftest.$ac_ext >&5
36477
36478 ( exit $ac_status )
36479 ac_cv_func_memcmp_working=no
36480 fi
36481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36482 fi
36483
36484
36485 fi
36486 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36487 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36488 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36489   *" memcmp.$ac_objext "* ) ;;
36490   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36491  ;;
36492 esac
36493
36494
36495
36496 if test $ac_cv_func_memcmp_working = no ; then
36497
36498 cat >>confdefs.h <<\_ACEOF
36499 #define NEED_MEMCMP_REPLACEMENT 1
36500 _ACEOF
36501
36502 fi
36503
36504
36505 for ac_func in strftime
36506 do
36507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36511   echo $ECHO_N "(cached) $ECHO_C" >&6
36512 else
36513   cat >conftest.$ac_ext <<_ACEOF
36514 /* confdefs.h.  */
36515 _ACEOF
36516 cat confdefs.h >>conftest.$ac_ext
36517 cat >>conftest.$ac_ext <<_ACEOF
36518 /* end confdefs.h.  */
36519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36521 #define $ac_func innocuous_$ac_func
36522
36523 /* System header to define __stub macros and hopefully few prototypes,
36524     which can conflict with char $ac_func (); below.
36525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36526     <limits.h> exists even on freestanding compilers.  */
36527
36528 #ifdef __STDC__
36529 # include <limits.h>
36530 #else
36531 # include <assert.h>
36532 #endif
36533
36534 #undef $ac_func
36535
36536 /* Override any GCC internal prototype to avoid an error.
36537    Use char because int might match the return type of a GCC
36538    builtin and then its argument prototype would still apply.  */
36539 #ifdef __cplusplus
36540 extern "C"
36541 #endif
36542 char $ac_func ();
36543 /* The GNU C library defines this for functions which it implements
36544     to always fail with ENOSYS.  Some functions are actually named
36545     something starting with __ and the normal name is an alias.  */
36546 #if defined __stub_$ac_func || defined __stub___$ac_func
36547 choke me
36548 #endif
36549
36550 int
36551 main ()
36552 {
36553 return $ac_func ();
36554   ;
36555   return 0;
36556 }
36557 _ACEOF
36558 rm -f conftest.$ac_objext conftest$ac_exeext
36559 if { (ac_try="$ac_link"
36560 case "(($ac_try" in
36561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36562   *) ac_try_echo=$ac_try;;
36563 esac
36564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36565   (eval "$ac_link") 2>conftest.er1
36566   ac_status=$?
36567   grep -v '^ *+' conftest.er1 >conftest.err
36568   rm -f conftest.er1
36569   cat conftest.err >&5
36570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36571   (exit $ac_status); } && {
36572          test -z "$ac_c_werror_flag" ||
36573          test ! -s conftest.err
36574        } && test -s conftest$ac_exeext &&
36575        $as_test_x conftest$ac_exeext; then
36576   eval "$as_ac_var=yes"
36577 else
36578   echo "$as_me: failed program was:" >&5
36579 sed 's/^/| /' conftest.$ac_ext >&5
36580
36581         eval "$as_ac_var=no"
36582 fi
36583
36584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36585       conftest$ac_exeext conftest.$ac_ext
36586 fi
36587 ac_res=`eval echo '${'$as_ac_var'}'`
36588                { echo "$as_me:$LINENO: result: $ac_res" >&5
36589 echo "${ECHO_T}$ac_res" >&6; }
36590 if test `eval echo '${'$as_ac_var'}'` = yes; then
36591   cat >>confdefs.h <<_ACEOF
36592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36593 _ACEOF
36594
36595 else
36596   # strftime is in -lintl on SCO UNIX.
36597 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36598 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36599 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36600   echo $ECHO_N "(cached) $ECHO_C" >&6
36601 else
36602   ac_check_lib_save_LIBS=$LIBS
36603 LIBS="-lintl  $LIBS"
36604 cat >conftest.$ac_ext <<_ACEOF
36605 /* confdefs.h.  */
36606 _ACEOF
36607 cat confdefs.h >>conftest.$ac_ext
36608 cat >>conftest.$ac_ext <<_ACEOF
36609 /* end confdefs.h.  */
36610
36611 /* Override any GCC internal prototype to avoid an error.
36612    Use char because int might match the return type of a GCC
36613    builtin and then its argument prototype would still apply.  */
36614 #ifdef __cplusplus
36615 extern "C"
36616 #endif
36617 char strftime ();
36618 int
36619 main ()
36620 {
36621 return strftime ();
36622   ;
36623   return 0;
36624 }
36625 _ACEOF
36626 rm -f conftest.$ac_objext conftest$ac_exeext
36627 if { (ac_try="$ac_link"
36628 case "(($ac_try" in
36629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36630   *) ac_try_echo=$ac_try;;
36631 esac
36632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36633   (eval "$ac_link") 2>conftest.er1
36634   ac_status=$?
36635   grep -v '^ *+' conftest.er1 >conftest.err
36636   rm -f conftest.er1
36637   cat conftest.err >&5
36638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36639   (exit $ac_status); } && {
36640          test -z "$ac_c_werror_flag" ||
36641          test ! -s conftest.err
36642        } && test -s conftest$ac_exeext &&
36643        $as_test_x conftest$ac_exeext; then
36644   ac_cv_lib_intl_strftime=yes
36645 else
36646   echo "$as_me: failed program was:" >&5
36647 sed 's/^/| /' conftest.$ac_ext >&5
36648
36649         ac_cv_lib_intl_strftime=no
36650 fi
36651
36652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36653       conftest$ac_exeext conftest.$ac_ext
36654 LIBS=$ac_check_lib_save_LIBS
36655 fi
36656 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36657 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36658 if test $ac_cv_lib_intl_strftime = yes; then
36659   cat >>confdefs.h <<\_ACEOF
36660 #define HAVE_STRFTIME 1
36661 _ACEOF
36662
36663 LIBS="-lintl $LIBS"
36664 fi
36665
36666 fi
36667 done
36668
36669
36670 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36671 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36672 if test "${ol_cv_func_inet_aton+set}" = set; then
36673   echo $ECHO_N "(cached) $ECHO_C" >&6
36674 else
36675   cat >conftest.$ac_ext <<_ACEOF
36676 /* confdefs.h.  */
36677 _ACEOF
36678 cat confdefs.h >>conftest.$ac_ext
36679 cat >>conftest.$ac_ext <<_ACEOF
36680 /* end confdefs.h.  */
36681
36682 #ifdef HAVE_SYS_TYPES_H
36683 #       include <sys/types.h>
36684 #endif
36685 #ifdef HAVE_SYS_SOCKET_H
36686 #       include <sys/socket.h>
36687 #       ifdef HAVE_SYS_SELECT_H
36688 #               include <sys/select.h>
36689 #       endif
36690 #       include <netinet/in.h>
36691 #       ifdef HAVE_ARPA_INET_H
36692 #               include <arpa/inet.h>
36693 #       endif
36694 #endif
36695
36696 int
36697 main ()
36698 {
36699 struct in_addr in;
36700 int rc = inet_aton( "255.255.255.255", &in );
36701   ;
36702   return 0;
36703 }
36704 _ACEOF
36705 rm -f conftest.$ac_objext conftest$ac_exeext
36706 if { (ac_try="$ac_link"
36707 case "(($ac_try" in
36708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36709   *) ac_try_echo=$ac_try;;
36710 esac
36711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36712   (eval "$ac_link") 2>conftest.er1
36713   ac_status=$?
36714   grep -v '^ *+' conftest.er1 >conftest.err
36715   rm -f conftest.er1
36716   cat conftest.err >&5
36717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718   (exit $ac_status); } && {
36719          test -z "$ac_c_werror_flag" ||
36720          test ! -s conftest.err
36721        } && test -s conftest$ac_exeext &&
36722        $as_test_x conftest$ac_exeext; then
36723   ol_cv_func_inet_aton=yes
36724 else
36725   echo "$as_me: failed program was:" >&5
36726 sed 's/^/| /' conftest.$ac_ext >&5
36727
36728         ol_cv_func_inet_aton=no
36729 fi
36730
36731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36732       conftest$ac_exeext conftest.$ac_ext
36733 fi
36734 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36735 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36736   if test $ol_cv_func_inet_aton != no; then
36737
36738 cat >>confdefs.h <<\_ACEOF
36739 #define HAVE_INET_ATON 1
36740 _ACEOF
36741
36742   fi
36743
36744
36745 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36746 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36747 if test "${ac_cv_func__spawnlp+set}" = set; then
36748   echo $ECHO_N "(cached) $ECHO_C" >&6
36749 else
36750   cat >conftest.$ac_ext <<_ACEOF
36751 /* confdefs.h.  */
36752 _ACEOF
36753 cat confdefs.h >>conftest.$ac_ext
36754 cat >>conftest.$ac_ext <<_ACEOF
36755 /* end confdefs.h.  */
36756 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36758 #define _spawnlp innocuous__spawnlp
36759
36760 /* System header to define __stub macros and hopefully few prototypes,
36761     which can conflict with char _spawnlp (); below.
36762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36763     <limits.h> exists even on freestanding compilers.  */
36764
36765 #ifdef __STDC__
36766 # include <limits.h>
36767 #else
36768 # include <assert.h>
36769 #endif
36770
36771 #undef _spawnlp
36772
36773 /* Override any GCC internal prototype to avoid an error.
36774    Use char because int might match the return type of a GCC
36775    builtin and then its argument prototype would still apply.  */
36776 #ifdef __cplusplus
36777 extern "C"
36778 #endif
36779 char _spawnlp ();
36780 /* The GNU C library defines this for functions which it implements
36781     to always fail with ENOSYS.  Some functions are actually named
36782     something starting with __ and the normal name is an alias.  */
36783 #if defined __stub__spawnlp || defined __stub____spawnlp
36784 choke me
36785 #endif
36786
36787 int
36788 main ()
36789 {
36790 return _spawnlp ();
36791   ;
36792   return 0;
36793 }
36794 _ACEOF
36795 rm -f conftest.$ac_objext conftest$ac_exeext
36796 if { (ac_try="$ac_link"
36797 case "(($ac_try" in
36798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36799   *) ac_try_echo=$ac_try;;
36800 esac
36801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36802   (eval "$ac_link") 2>conftest.er1
36803   ac_status=$?
36804   grep -v '^ *+' conftest.er1 >conftest.err
36805   rm -f conftest.er1
36806   cat conftest.err >&5
36807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36808   (exit $ac_status); } && {
36809          test -z "$ac_c_werror_flag" ||
36810          test ! -s conftest.err
36811        } && test -s conftest$ac_exeext &&
36812        $as_test_x conftest$ac_exeext; then
36813   ac_cv_func__spawnlp=yes
36814 else
36815   echo "$as_me: failed program was:" >&5
36816 sed 's/^/| /' conftest.$ac_ext >&5
36817
36818         ac_cv_func__spawnlp=no
36819 fi
36820
36821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36822       conftest$ac_exeext conftest.$ac_ext
36823 fi
36824 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36825 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36826 if test $ac_cv_func__spawnlp = yes; then
36827
36828 cat >>confdefs.h <<\_ACEOF
36829 #define HAVE_SPAWNLP 1
36830 _ACEOF
36831
36832 fi
36833
36834
36835 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36836 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36837 if test "${ac_cv_func__snprintf+set}" = set; then
36838   echo $ECHO_N "(cached) $ECHO_C" >&6
36839 else
36840   cat >conftest.$ac_ext <<_ACEOF
36841 /* confdefs.h.  */
36842 _ACEOF
36843 cat confdefs.h >>conftest.$ac_ext
36844 cat >>conftest.$ac_ext <<_ACEOF
36845 /* end confdefs.h.  */
36846 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36848 #define _snprintf innocuous__snprintf
36849
36850 /* System header to define __stub macros and hopefully few prototypes,
36851     which can conflict with char _snprintf (); below.
36852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36853     <limits.h> exists even on freestanding compilers.  */
36854
36855 #ifdef __STDC__
36856 # include <limits.h>
36857 #else
36858 # include <assert.h>
36859 #endif
36860
36861 #undef _snprintf
36862
36863 /* Override any GCC internal prototype to avoid an error.
36864    Use char because int might match the return type of a GCC
36865    builtin and then its argument prototype would still apply.  */
36866 #ifdef __cplusplus
36867 extern "C"
36868 #endif
36869 char _snprintf ();
36870 /* The GNU C library defines this for functions which it implements
36871     to always fail with ENOSYS.  Some functions are actually named
36872     something starting with __ and the normal name is an alias.  */
36873 #if defined __stub__snprintf || defined __stub____snprintf
36874 choke me
36875 #endif
36876
36877 int
36878 main ()
36879 {
36880 return _snprintf ();
36881   ;
36882   return 0;
36883 }
36884 _ACEOF
36885 rm -f conftest.$ac_objext conftest$ac_exeext
36886 if { (ac_try="$ac_link"
36887 case "(($ac_try" in
36888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36889   *) ac_try_echo=$ac_try;;
36890 esac
36891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36892   (eval "$ac_link") 2>conftest.er1
36893   ac_status=$?
36894   grep -v '^ *+' conftest.er1 >conftest.err
36895   rm -f conftest.er1
36896   cat conftest.err >&5
36897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36898   (exit $ac_status); } && {
36899          test -z "$ac_c_werror_flag" ||
36900          test ! -s conftest.err
36901        } && test -s conftest$ac_exeext &&
36902        $as_test_x conftest$ac_exeext; then
36903   ac_cv_func__snprintf=yes
36904 else
36905   echo "$as_me: failed program was:" >&5
36906 sed 's/^/| /' conftest.$ac_ext >&5
36907
36908         ac_cv_func__snprintf=no
36909 fi
36910
36911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36912       conftest$ac_exeext conftest.$ac_ext
36913 fi
36914 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36915 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36916 if test $ac_cv_func__snprintf = yes; then
36917   ac_cv_func_snprintf=yes
36918
36919 cat >>confdefs.h <<\_ACEOF
36920 #define snprintf _snprintf
36921 _ACEOF
36922
36923
36924 fi
36925
36926
36927
36928
36929 for ac_func in vsnprintf _vsnprintf
36930 do
36931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36935   echo $ECHO_N "(cached) $ECHO_C" >&6
36936 else
36937   cat >conftest.$ac_ext <<_ACEOF
36938 /* confdefs.h.  */
36939 _ACEOF
36940 cat confdefs.h >>conftest.$ac_ext
36941 cat >>conftest.$ac_ext <<_ACEOF
36942 /* end confdefs.h.  */
36943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36945 #define $ac_func innocuous_$ac_func
36946
36947 /* System header to define __stub macros and hopefully few prototypes,
36948     which can conflict with char $ac_func (); below.
36949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36950     <limits.h> exists even on freestanding compilers.  */
36951
36952 #ifdef __STDC__
36953 # include <limits.h>
36954 #else
36955 # include <assert.h>
36956 #endif
36957
36958 #undef $ac_func
36959
36960 /* Override any GCC internal prototype to avoid an error.
36961    Use char because int might match the return type of a GCC
36962    builtin and then its argument prototype would still apply.  */
36963 #ifdef __cplusplus
36964 extern "C"
36965 #endif
36966 char $ac_func ();
36967 /* The GNU C library defines this for functions which it implements
36968     to always fail with ENOSYS.  Some functions are actually named
36969     something starting with __ and the normal name is an alias.  */
36970 #if defined __stub_$ac_func || defined __stub___$ac_func
36971 choke me
36972 #endif
36973
36974 int
36975 main ()
36976 {
36977 return $ac_func ();
36978   ;
36979   return 0;
36980 }
36981 _ACEOF
36982 rm -f conftest.$ac_objext conftest$ac_exeext
36983 if { (ac_try="$ac_link"
36984 case "(($ac_try" in
36985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36986   *) ac_try_echo=$ac_try;;
36987 esac
36988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36989   (eval "$ac_link") 2>conftest.er1
36990   ac_status=$?
36991   grep -v '^ *+' conftest.er1 >conftest.err
36992   rm -f conftest.er1
36993   cat conftest.err >&5
36994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36995   (exit $ac_status); } && {
36996          test -z "$ac_c_werror_flag" ||
36997          test ! -s conftest.err
36998        } && test -s conftest$ac_exeext &&
36999        $as_test_x conftest$ac_exeext; then
37000   eval "$as_ac_var=yes"
37001 else
37002   echo "$as_me: failed program was:" >&5
37003 sed 's/^/| /' conftest.$ac_ext >&5
37004
37005         eval "$as_ac_var=no"
37006 fi
37007
37008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37009       conftest$ac_exeext conftest.$ac_ext
37010 fi
37011 ac_res=`eval echo '${'$as_ac_var'}'`
37012                { echo "$as_me:$LINENO: result: $ac_res" >&5
37013 echo "${ECHO_T}$ac_res" >&6; }
37014 if test `eval echo '${'$as_ac_var'}'` = yes; then
37015   cat >>confdefs.h <<_ACEOF
37016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37017 _ACEOF
37018
37019 fi
37020 done
37021
37022
37023 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
37024         ac_cv_func_vsnprintf=yes
37025
37026 cat >>confdefs.h <<\_ACEOF
37027 #define vsnprintf _vsnprintf
37028 _ACEOF
37029
37030 fi
37031
37032
37033 for ac_func in vprintf
37034 do
37035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37039   echo $ECHO_N "(cached) $ECHO_C" >&6
37040 else
37041   cat >conftest.$ac_ext <<_ACEOF
37042 /* confdefs.h.  */
37043 _ACEOF
37044 cat confdefs.h >>conftest.$ac_ext
37045 cat >>conftest.$ac_ext <<_ACEOF
37046 /* end confdefs.h.  */
37047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37049 #define $ac_func innocuous_$ac_func
37050
37051 /* System header to define __stub macros and hopefully few prototypes,
37052     which can conflict with char $ac_func (); below.
37053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37054     <limits.h> exists even on freestanding compilers.  */
37055
37056 #ifdef __STDC__
37057 # include <limits.h>
37058 #else
37059 # include <assert.h>
37060 #endif
37061
37062 #undef $ac_func
37063
37064 /* Override any GCC internal prototype to avoid an error.
37065    Use char because int might match the return type of a GCC
37066    builtin and then its argument prototype would still apply.  */
37067 #ifdef __cplusplus
37068 extern "C"
37069 #endif
37070 char $ac_func ();
37071 /* The GNU C library defines this for functions which it implements
37072     to always fail with ENOSYS.  Some functions are actually named
37073     something starting with __ and the normal name is an alias.  */
37074 #if defined __stub_$ac_func || defined __stub___$ac_func
37075 choke me
37076 #endif
37077
37078 int
37079 main ()
37080 {
37081 return $ac_func ();
37082   ;
37083   return 0;
37084 }
37085 _ACEOF
37086 rm -f conftest.$ac_objext conftest$ac_exeext
37087 if { (ac_try="$ac_link"
37088 case "(($ac_try" in
37089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37090   *) ac_try_echo=$ac_try;;
37091 esac
37092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37093   (eval "$ac_link") 2>conftest.er1
37094   ac_status=$?
37095   grep -v '^ *+' conftest.er1 >conftest.err
37096   rm -f conftest.er1
37097   cat conftest.err >&5
37098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099   (exit $ac_status); } && {
37100          test -z "$ac_c_werror_flag" ||
37101          test ! -s conftest.err
37102        } && test -s conftest$ac_exeext &&
37103        $as_test_x conftest$ac_exeext; then
37104   eval "$as_ac_var=yes"
37105 else
37106   echo "$as_me: failed program was:" >&5
37107 sed 's/^/| /' conftest.$ac_ext >&5
37108
37109         eval "$as_ac_var=no"
37110 fi
37111
37112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37113       conftest$ac_exeext conftest.$ac_ext
37114 fi
37115 ac_res=`eval echo '${'$as_ac_var'}'`
37116                { echo "$as_me:$LINENO: result: $ac_res" >&5
37117 echo "${ECHO_T}$ac_res" >&6; }
37118 if test `eval echo '${'$as_ac_var'}'` = yes; then
37119   cat >>confdefs.h <<_ACEOF
37120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37121 _ACEOF
37122
37123 { echo "$as_me:$LINENO: checking for _doprnt" >&5
37124 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
37125 if test "${ac_cv_func__doprnt+set}" = set; then
37126   echo $ECHO_N "(cached) $ECHO_C" >&6
37127 else
37128   cat >conftest.$ac_ext <<_ACEOF
37129 /* confdefs.h.  */
37130 _ACEOF
37131 cat confdefs.h >>conftest.$ac_ext
37132 cat >>conftest.$ac_ext <<_ACEOF
37133 /* end confdefs.h.  */
37134 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
37135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37136 #define _doprnt innocuous__doprnt
37137
37138 /* System header to define __stub macros and hopefully few prototypes,
37139     which can conflict with char _doprnt (); below.
37140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37141     <limits.h> exists even on freestanding compilers.  */
37142
37143 #ifdef __STDC__
37144 # include <limits.h>
37145 #else
37146 # include <assert.h>
37147 #endif
37148
37149 #undef _doprnt
37150
37151 /* Override any GCC internal prototype to avoid an error.
37152    Use char because int might match the return type of a GCC
37153    builtin and then its argument prototype would still apply.  */
37154 #ifdef __cplusplus
37155 extern "C"
37156 #endif
37157 char _doprnt ();
37158 /* The GNU C library defines this for functions which it implements
37159     to always fail with ENOSYS.  Some functions are actually named
37160     something starting with __ and the normal name is an alias.  */
37161 #if defined __stub__doprnt || defined __stub____doprnt
37162 choke me
37163 #endif
37164
37165 int
37166 main ()
37167 {
37168 return _doprnt ();
37169   ;
37170   return 0;
37171 }
37172 _ACEOF
37173 rm -f conftest.$ac_objext conftest$ac_exeext
37174 if { (ac_try="$ac_link"
37175 case "(($ac_try" in
37176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37177   *) ac_try_echo=$ac_try;;
37178 esac
37179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37180   (eval "$ac_link") 2>conftest.er1
37181   ac_status=$?
37182   grep -v '^ *+' conftest.er1 >conftest.err
37183   rm -f conftest.er1
37184   cat conftest.err >&5
37185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37186   (exit $ac_status); } && {
37187          test -z "$ac_c_werror_flag" ||
37188          test ! -s conftest.err
37189        } && test -s conftest$ac_exeext &&
37190        $as_test_x conftest$ac_exeext; then
37191   ac_cv_func__doprnt=yes
37192 else
37193   echo "$as_me: failed program was:" >&5
37194 sed 's/^/| /' conftest.$ac_ext >&5
37195
37196         ac_cv_func__doprnt=no
37197 fi
37198
37199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37200       conftest$ac_exeext conftest.$ac_ext
37201 fi
37202 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37203 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
37204 if test $ac_cv_func__doprnt = yes; then
37205
37206 cat >>confdefs.h <<\_ACEOF
37207 #define HAVE_DOPRNT 1
37208 _ACEOF
37209
37210 fi
37211
37212 fi
37213 done
37214
37215
37216
37217 if test $ac_cv_func_vprintf = yes ; then
37218
37219
37220 for ac_func in snprintf vsnprintf
37221 do
37222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37226   echo $ECHO_N "(cached) $ECHO_C" >&6
37227 else
37228   cat >conftest.$ac_ext <<_ACEOF
37229 /* confdefs.h.  */
37230 _ACEOF
37231 cat confdefs.h >>conftest.$ac_ext
37232 cat >>conftest.$ac_ext <<_ACEOF
37233 /* end confdefs.h.  */
37234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37236 #define $ac_func innocuous_$ac_func
37237
37238 /* System header to define __stub macros and hopefully few prototypes,
37239     which can conflict with char $ac_func (); below.
37240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37241     <limits.h> exists even on freestanding compilers.  */
37242
37243 #ifdef __STDC__
37244 # include <limits.h>
37245 #else
37246 # include <assert.h>
37247 #endif
37248
37249 #undef $ac_func
37250
37251 /* Override any GCC internal prototype to avoid an error.
37252    Use char because int might match the return type of a GCC
37253    builtin and then its argument prototype would still apply.  */
37254 #ifdef __cplusplus
37255 extern "C"
37256 #endif
37257 char $ac_func ();
37258 /* The GNU C library defines this for functions which it implements
37259     to always fail with ENOSYS.  Some functions are actually named
37260     something starting with __ and the normal name is an alias.  */
37261 #if defined __stub_$ac_func || defined __stub___$ac_func
37262 choke me
37263 #endif
37264
37265 int
37266 main ()
37267 {
37268 return $ac_func ();
37269   ;
37270   return 0;
37271 }
37272 _ACEOF
37273 rm -f conftest.$ac_objext conftest$ac_exeext
37274 if { (ac_try="$ac_link"
37275 case "(($ac_try" in
37276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37277   *) ac_try_echo=$ac_try;;
37278 esac
37279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37280   (eval "$ac_link") 2>conftest.er1
37281   ac_status=$?
37282   grep -v '^ *+' conftest.er1 >conftest.err
37283   rm -f conftest.er1
37284   cat conftest.err >&5
37285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286   (exit $ac_status); } && {
37287          test -z "$ac_c_werror_flag" ||
37288          test ! -s conftest.err
37289        } && test -s conftest$ac_exeext &&
37290        $as_test_x conftest$ac_exeext; then
37291   eval "$as_ac_var=yes"
37292 else
37293   echo "$as_me: failed program was:" >&5
37294 sed 's/^/| /' conftest.$ac_ext >&5
37295
37296         eval "$as_ac_var=no"
37297 fi
37298
37299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37300       conftest$ac_exeext conftest.$ac_ext
37301 fi
37302 ac_res=`eval echo '${'$as_ac_var'}'`
37303                { echo "$as_me:$LINENO: result: $ac_res" >&5
37304 echo "${ECHO_T}$ac_res" >&6; }
37305 if test `eval echo '${'$as_ac_var'}'` = yes; then
37306   cat >>confdefs.h <<_ACEOF
37307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37308 _ACEOF
37309
37310 fi
37311 done
37312
37313 fi
37314
37315
37316
37317
37318
37319
37320
37321
37322
37323
37324
37325
37326
37327
37328
37329
37330
37331
37332
37333
37334
37335
37336
37337
37338
37339
37340
37341
37342
37343
37344
37345
37346
37347
37348
37349
37350
37351
37352
37353
37354
37355
37356
37357
37358
37359
37360
37361
37362
37363
37364
37365
37366
37367
37368
37369
37370
37371 for ac_func in \
37372         bcopy                   \
37373         closesocket             \
37374         chroot                  \
37375         endgrent                \
37376         endpwent                \
37377         fcntl                   \
37378         flock                   \
37379         fstat                   \
37380         getdtablesize           \
37381         geteuid                 \
37382         getgrgid                \
37383         gethostname             \
37384         getpassphrase           \
37385         getpwuid                \
37386         getpwnam                \
37387         getspnam                \
37388         gettimeofday            \
37389         initgroups              \
37390         inet_ntoa_b             \
37391         ioctl                   \
37392         lockf                   \
37393         memcpy                  \
37394         memmove                 \
37395         memrchr                 \
37396         mkstemp                 \
37397         mktemp                  \
37398         pipe                    \
37399         read                    \
37400         recv                    \
37401         recvfrom                \
37402         setpwfile               \
37403         setgid                  \
37404         setegid                 \
37405         setsid                  \
37406         setuid                  \
37407         seteuid                 \
37408         signal                  \
37409         strdup                  \
37410         strpbrk                 \
37411         strrchr                 \
37412         strsep                  \
37413         strstr                  \
37414         strtol                  \
37415         strtoul                 \
37416         strtoq                  \
37417         strtouq                 \
37418         strtoll                 \
37419         strtoull                \
37420         strspn                  \
37421         sysconf                 \
37422         waitpid                 \
37423         wait4                   \
37424         write                   \
37425         send                    \
37426         sendmsg                 \
37427         sendto                  \
37428
37429 do
37430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37434   echo $ECHO_N "(cached) $ECHO_C" >&6
37435 else
37436   cat >conftest.$ac_ext <<_ACEOF
37437 /* confdefs.h.  */
37438 _ACEOF
37439 cat confdefs.h >>conftest.$ac_ext
37440 cat >>conftest.$ac_ext <<_ACEOF
37441 /* end confdefs.h.  */
37442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37444 #define $ac_func innocuous_$ac_func
37445
37446 /* System header to define __stub macros and hopefully few prototypes,
37447     which can conflict with char $ac_func (); below.
37448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37449     <limits.h> exists even on freestanding compilers.  */
37450
37451 #ifdef __STDC__
37452 # include <limits.h>
37453 #else
37454 # include <assert.h>
37455 #endif
37456
37457 #undef $ac_func
37458
37459 /* Override any GCC internal prototype to avoid an error.
37460    Use char because int might match the return type of a GCC
37461    builtin and then its argument prototype would still apply.  */
37462 #ifdef __cplusplus
37463 extern "C"
37464 #endif
37465 char $ac_func ();
37466 /* The GNU C library defines this for functions which it implements
37467     to always fail with ENOSYS.  Some functions are actually named
37468     something starting with __ and the normal name is an alias.  */
37469 #if defined __stub_$ac_func || defined __stub___$ac_func
37470 choke me
37471 #endif
37472
37473 int
37474 main ()
37475 {
37476 return $ac_func ();
37477   ;
37478   return 0;
37479 }
37480 _ACEOF
37481 rm -f conftest.$ac_objext conftest$ac_exeext
37482 if { (ac_try="$ac_link"
37483 case "(($ac_try" in
37484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37485   *) ac_try_echo=$ac_try;;
37486 esac
37487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37488   (eval "$ac_link") 2>conftest.er1
37489   ac_status=$?
37490   grep -v '^ *+' conftest.er1 >conftest.err
37491   rm -f conftest.er1
37492   cat conftest.err >&5
37493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494   (exit $ac_status); } && {
37495          test -z "$ac_c_werror_flag" ||
37496          test ! -s conftest.err
37497        } && test -s conftest$ac_exeext &&
37498        $as_test_x conftest$ac_exeext; then
37499   eval "$as_ac_var=yes"
37500 else
37501   echo "$as_me: failed program was:" >&5
37502 sed 's/^/| /' conftest.$ac_ext >&5
37503
37504         eval "$as_ac_var=no"
37505 fi
37506
37507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37508       conftest$ac_exeext conftest.$ac_ext
37509 fi
37510 ac_res=`eval echo '${'$as_ac_var'}'`
37511                { echo "$as_me:$LINENO: result: $ac_res" >&5
37512 echo "${ECHO_T}$ac_res" >&6; }
37513 if test `eval echo '${'$as_ac_var'}'` = yes; then
37514   cat >>confdefs.h <<_ACEOF
37515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37516 _ACEOF
37517
37518 fi
37519 done
37520
37521
37522
37523
37524 for ac_func in getopt getpeereid
37525 do
37526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37530   echo $ECHO_N "(cached) $ECHO_C" >&6
37531 else
37532   cat >conftest.$ac_ext <<_ACEOF
37533 /* confdefs.h.  */
37534 _ACEOF
37535 cat confdefs.h >>conftest.$ac_ext
37536 cat >>conftest.$ac_ext <<_ACEOF
37537 /* end confdefs.h.  */
37538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37540 #define $ac_func innocuous_$ac_func
37541
37542 /* System header to define __stub macros and hopefully few prototypes,
37543     which can conflict with char $ac_func (); below.
37544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37545     <limits.h> exists even on freestanding compilers.  */
37546
37547 #ifdef __STDC__
37548 # include <limits.h>
37549 #else
37550 # include <assert.h>
37551 #endif
37552
37553 #undef $ac_func
37554
37555 /* Override any GCC internal prototype to avoid an error.
37556    Use char because int might match the return type of a GCC
37557    builtin and then its argument prototype would still apply.  */
37558 #ifdef __cplusplus
37559 extern "C"
37560 #endif
37561 char $ac_func ();
37562 /* The GNU C library defines this for functions which it implements
37563     to always fail with ENOSYS.  Some functions are actually named
37564     something starting with __ and the normal name is an alias.  */
37565 #if defined __stub_$ac_func || defined __stub___$ac_func
37566 choke me
37567 #endif
37568
37569 int
37570 main ()
37571 {
37572 return $ac_func ();
37573   ;
37574   return 0;
37575 }
37576 _ACEOF
37577 rm -f conftest.$ac_objext conftest$ac_exeext
37578 if { (ac_try="$ac_link"
37579 case "(($ac_try" in
37580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37581   *) ac_try_echo=$ac_try;;
37582 esac
37583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37584   (eval "$ac_link") 2>conftest.er1
37585   ac_status=$?
37586   grep -v '^ *+' conftest.er1 >conftest.err
37587   rm -f conftest.er1
37588   cat conftest.err >&5
37589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590   (exit $ac_status); } && {
37591          test -z "$ac_c_werror_flag" ||
37592          test ! -s conftest.err
37593        } && test -s conftest$ac_exeext &&
37594        $as_test_x conftest$ac_exeext; then
37595   eval "$as_ac_var=yes"
37596 else
37597   echo "$as_me: failed program was:" >&5
37598 sed 's/^/| /' conftest.$ac_ext >&5
37599
37600         eval "$as_ac_var=no"
37601 fi
37602
37603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37604       conftest$ac_exeext conftest.$ac_ext
37605 fi
37606 ac_res=`eval echo '${'$as_ac_var'}'`
37607                { echo "$as_me:$LINENO: result: $ac_res" >&5
37608 echo "${ECHO_T}$ac_res" >&6; }
37609 if test `eval echo '${'$as_ac_var'}'` = yes; then
37610   cat >>confdefs.h <<_ACEOF
37611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37612 _ACEOF
37613
37614 else
37615   case " $LIBOBJS " in
37616   *" $ac_func.$ac_objext "* ) ;;
37617   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37618  ;;
37619 esac
37620
37621 fi
37622 done
37623
37624
37625
37626 if test "$ac_cv_func_getopt" != yes; then
37627         LIBSRCS="$LIBSRCS getopt.c"
37628 fi
37629
37630 if test "$ac_cv_func_getpeereid" != yes; then
37631
37632 for ac_func in getpeerucred
37633 do
37634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37638   echo $ECHO_N "(cached) $ECHO_C" >&6
37639 else
37640   cat >conftest.$ac_ext <<_ACEOF
37641 /* confdefs.h.  */
37642 _ACEOF
37643 cat confdefs.h >>conftest.$ac_ext
37644 cat >>conftest.$ac_ext <<_ACEOF
37645 /* end confdefs.h.  */
37646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37648 #define $ac_func innocuous_$ac_func
37649
37650 /* System header to define __stub macros and hopefully few prototypes,
37651     which can conflict with char $ac_func (); below.
37652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37653     <limits.h> exists even on freestanding compilers.  */
37654
37655 #ifdef __STDC__
37656 # include <limits.h>
37657 #else
37658 # include <assert.h>
37659 #endif
37660
37661 #undef $ac_func
37662
37663 /* Override any GCC internal prototype to avoid an error.
37664    Use char because int might match the return type of a GCC
37665    builtin and then its argument prototype would still apply.  */
37666 #ifdef __cplusplus
37667 extern "C"
37668 #endif
37669 char $ac_func ();
37670 /* The GNU C library defines this for functions which it implements
37671     to always fail with ENOSYS.  Some functions are actually named
37672     something starting with __ and the normal name is an alias.  */
37673 #if defined __stub_$ac_func || defined __stub___$ac_func
37674 choke me
37675 #endif
37676
37677 int
37678 main ()
37679 {
37680 return $ac_func ();
37681   ;
37682   return 0;
37683 }
37684 _ACEOF
37685 rm -f conftest.$ac_objext conftest$ac_exeext
37686 if { (ac_try="$ac_link"
37687 case "(($ac_try" in
37688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37689   *) ac_try_echo=$ac_try;;
37690 esac
37691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37692   (eval "$ac_link") 2>conftest.er1
37693   ac_status=$?
37694   grep -v '^ *+' conftest.er1 >conftest.err
37695   rm -f conftest.er1
37696   cat conftest.err >&5
37697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698   (exit $ac_status); } && {
37699          test -z "$ac_c_werror_flag" ||
37700          test ! -s conftest.err
37701        } && test -s conftest$ac_exeext &&
37702        $as_test_x conftest$ac_exeext; then
37703   eval "$as_ac_var=yes"
37704 else
37705   echo "$as_me: failed program was:" >&5
37706 sed 's/^/| /' conftest.$ac_ext >&5
37707
37708         eval "$as_ac_var=no"
37709 fi
37710
37711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37712       conftest$ac_exeext conftest.$ac_ext
37713 fi
37714 ac_res=`eval echo '${'$as_ac_var'}'`
37715                { echo "$as_me:$LINENO: result: $ac_res" >&5
37716 echo "${ECHO_T}$ac_res" >&6; }
37717 if test `eval echo '${'$as_ac_var'}'` = yes; then
37718   cat >>confdefs.h <<_ACEOF
37719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37720 _ACEOF
37721
37722 fi
37723 done
37724
37725         if test "$ac_cv_func_getpeerucred" != yes ; then
37726                 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37727 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37728 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37729   echo $ECHO_N "(cached) $ECHO_C" >&6
37730 else
37731   cat >conftest.$ac_ext <<_ACEOF
37732 /* confdefs.h.  */
37733 _ACEOF
37734 cat confdefs.h >>conftest.$ac_ext
37735 cat >>conftest.$ac_ext <<_ACEOF
37736 /* end confdefs.h.  */
37737 $ac_includes_default
37738 #ifdef HAVE_SYS_SOCKET_H
37739 #include <sys/socket.h>
37740 #endif
37741
37742 int
37743 main ()
37744 {
37745 static struct msghdr ac_aggr;
37746 if (ac_aggr.msg_accrightslen)
37747 return 0;
37748   ;
37749   return 0;
37750 }
37751 _ACEOF
37752 rm -f conftest.$ac_objext
37753 if { (ac_try="$ac_compile"
37754 case "(($ac_try" in
37755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37756   *) ac_try_echo=$ac_try;;
37757 esac
37758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37759   (eval "$ac_compile") 2>conftest.er1
37760   ac_status=$?
37761   grep -v '^ *+' conftest.er1 >conftest.err
37762   rm -f conftest.er1
37763   cat conftest.err >&5
37764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37765   (exit $ac_status); } && {
37766          test -z "$ac_c_werror_flag" ||
37767          test ! -s conftest.err
37768        } && test -s conftest.$ac_objext; then
37769   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37770 else
37771   echo "$as_me: failed program was:" >&5
37772 sed 's/^/| /' conftest.$ac_ext >&5
37773
37774         cat >conftest.$ac_ext <<_ACEOF
37775 /* confdefs.h.  */
37776 _ACEOF
37777 cat confdefs.h >>conftest.$ac_ext
37778 cat >>conftest.$ac_ext <<_ACEOF
37779 /* end confdefs.h.  */
37780 $ac_includes_default
37781 #ifdef HAVE_SYS_SOCKET_H
37782 #include <sys/socket.h>
37783 #endif
37784
37785 int
37786 main ()
37787 {
37788 static struct msghdr ac_aggr;
37789 if (sizeof ac_aggr.msg_accrightslen)
37790 return 0;
37791   ;
37792   return 0;
37793 }
37794 _ACEOF
37795 rm -f conftest.$ac_objext
37796 if { (ac_try="$ac_compile"
37797 case "(($ac_try" in
37798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37799   *) ac_try_echo=$ac_try;;
37800 esac
37801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37802   (eval "$ac_compile") 2>conftest.er1
37803   ac_status=$?
37804   grep -v '^ *+' conftest.er1 >conftest.err
37805   rm -f conftest.er1
37806   cat conftest.err >&5
37807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808   (exit $ac_status); } && {
37809          test -z "$ac_c_werror_flag" ||
37810          test ! -s conftest.err
37811        } && test -s conftest.$ac_objext; then
37812   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37813 else
37814   echo "$as_me: failed program was:" >&5
37815 sed 's/^/| /' conftest.$ac_ext >&5
37816
37817         ac_cv_member_struct_msghdr_msg_accrightslen=no
37818 fi
37819
37820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37821 fi
37822
37823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37824 fi
37825 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37826 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37827 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37828
37829 cat >>confdefs.h <<_ACEOF
37830 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37831 _ACEOF
37832
37833
37834 fi
37835
37836                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37837                         { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37838 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37839 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37840   echo $ECHO_N "(cached) $ECHO_C" >&6
37841 else
37842   cat >conftest.$ac_ext <<_ACEOF
37843 /* confdefs.h.  */
37844 _ACEOF
37845 cat confdefs.h >>conftest.$ac_ext
37846 cat >>conftest.$ac_ext <<_ACEOF
37847 /* end confdefs.h.  */
37848 $ac_includes_default
37849 #ifdef HAVE_SYS_SOCKET_H
37850 #include <sys/socket.h>
37851 #endif
37852
37853 int
37854 main ()
37855 {
37856 static struct msghdr ac_aggr;
37857 if (ac_aggr.msg_control)
37858 return 0;
37859   ;
37860   return 0;
37861 }
37862 _ACEOF
37863 rm -f conftest.$ac_objext
37864 if { (ac_try="$ac_compile"
37865 case "(($ac_try" in
37866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37867   *) ac_try_echo=$ac_try;;
37868 esac
37869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37870   (eval "$ac_compile") 2>conftest.er1
37871   ac_status=$?
37872   grep -v '^ *+' conftest.er1 >conftest.err
37873   rm -f conftest.er1
37874   cat conftest.err >&5
37875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876   (exit $ac_status); } && {
37877          test -z "$ac_c_werror_flag" ||
37878          test ! -s conftest.err
37879        } && test -s conftest.$ac_objext; then
37880   ac_cv_member_struct_msghdr_msg_control=yes
37881 else
37882   echo "$as_me: failed program was:" >&5
37883 sed 's/^/| /' conftest.$ac_ext >&5
37884
37885         cat >conftest.$ac_ext <<_ACEOF
37886 /* confdefs.h.  */
37887 _ACEOF
37888 cat confdefs.h >>conftest.$ac_ext
37889 cat >>conftest.$ac_ext <<_ACEOF
37890 /* end confdefs.h.  */
37891 $ac_includes_default
37892 #ifdef HAVE_SYS_SOCKET_H
37893 #include <sys/socket.h>
37894 #endif
37895
37896 int
37897 main ()
37898 {
37899 static struct msghdr ac_aggr;
37900 if (sizeof ac_aggr.msg_control)
37901 return 0;
37902   ;
37903   return 0;
37904 }
37905 _ACEOF
37906 rm -f conftest.$ac_objext
37907 if { (ac_try="$ac_compile"
37908 case "(($ac_try" in
37909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37910   *) ac_try_echo=$ac_try;;
37911 esac
37912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37913   (eval "$ac_compile") 2>conftest.er1
37914   ac_status=$?
37915   grep -v '^ *+' conftest.er1 >conftest.err
37916   rm -f conftest.er1
37917   cat conftest.err >&5
37918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37919   (exit $ac_status); } && {
37920          test -z "$ac_c_werror_flag" ||
37921          test ! -s conftest.err
37922        } && test -s conftest.$ac_objext; then
37923   ac_cv_member_struct_msghdr_msg_control=yes
37924 else
37925   echo "$as_me: failed program was:" >&5
37926 sed 's/^/| /' conftest.$ac_ext >&5
37927
37928         ac_cv_member_struct_msghdr_msg_control=no
37929 fi
37930
37931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37932 fi
37933
37934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37935 fi
37936 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37937 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37938 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37939
37940 cat >>confdefs.h <<_ACEOF
37941 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37942 _ACEOF
37943
37944
37945 fi
37946
37947                 fi
37948                 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37949 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37950 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37951   echo $ECHO_N "(cached) $ECHO_C" >&6
37952 else
37953   cat >conftest.$ac_ext <<_ACEOF
37954 /* confdefs.h.  */
37955 _ACEOF
37956 cat confdefs.h >>conftest.$ac_ext
37957 cat >>conftest.$ac_ext <<_ACEOF
37958 /* end confdefs.h.  */
37959 $ac_includes_default
37960 int
37961 main ()
37962 {
37963 static struct stat ac_aggr;
37964 if (ac_aggr.st_fstype)
37965 return 0;
37966   ;
37967   return 0;
37968 }
37969 _ACEOF
37970 rm -f conftest.$ac_objext
37971 if { (ac_try="$ac_compile"
37972 case "(($ac_try" in
37973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37974   *) ac_try_echo=$ac_try;;
37975 esac
37976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37977   (eval "$ac_compile") 2>conftest.er1
37978   ac_status=$?
37979   grep -v '^ *+' conftest.er1 >conftest.err
37980   rm -f conftest.er1
37981   cat conftest.err >&5
37982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37983   (exit $ac_status); } && {
37984          test -z "$ac_c_werror_flag" ||
37985          test ! -s conftest.err
37986        } && test -s conftest.$ac_objext; then
37987   ac_cv_member_struct_stat_st_fstype=yes
37988 else
37989   echo "$as_me: failed program was:" >&5
37990 sed 's/^/| /' conftest.$ac_ext >&5
37991
37992         cat >conftest.$ac_ext <<_ACEOF
37993 /* confdefs.h.  */
37994 _ACEOF
37995 cat confdefs.h >>conftest.$ac_ext
37996 cat >>conftest.$ac_ext <<_ACEOF
37997 /* end confdefs.h.  */
37998 $ac_includes_default
37999 int
38000 main ()
38001 {
38002 static struct stat ac_aggr;
38003 if (sizeof ac_aggr.st_fstype)
38004 return 0;
38005   ;
38006   return 0;
38007 }
38008 _ACEOF
38009 rm -f conftest.$ac_objext
38010 if { (ac_try="$ac_compile"
38011 case "(($ac_try" in
38012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38013   *) ac_try_echo=$ac_try;;
38014 esac
38015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38016   (eval "$ac_compile") 2>conftest.er1
38017   ac_status=$?
38018   grep -v '^ *+' conftest.er1 >conftest.err
38019   rm -f conftest.er1
38020   cat conftest.err >&5
38021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38022   (exit $ac_status); } && {
38023          test -z "$ac_c_werror_flag" ||
38024          test ! -s conftest.err
38025        } && test -s conftest.$ac_objext; then
38026   ac_cv_member_struct_stat_st_fstype=yes
38027 else
38028   echo "$as_me: failed program was:" >&5
38029 sed 's/^/| /' conftest.$ac_ext >&5
38030
38031         ac_cv_member_struct_stat_st_fstype=no
38032 fi
38033
38034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38035 fi
38036
38037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38038 fi
38039 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
38040 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
38041 if test $ac_cv_member_struct_stat_st_fstype = yes; then
38042
38043 cat >>confdefs.h <<_ACEOF
38044 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
38045 _ACEOF
38046
38047
38048 fi
38049 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
38050 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
38051 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
38052   echo $ECHO_N "(cached) $ECHO_C" >&6
38053 else
38054   cat >conftest.$ac_ext <<_ACEOF
38055 /* confdefs.h.  */
38056 _ACEOF
38057 cat confdefs.h >>conftest.$ac_ext
38058 cat >>conftest.$ac_ext <<_ACEOF
38059 /* end confdefs.h.  */
38060 $ac_includes_default
38061 int
38062 main ()
38063 {
38064 static struct stat ac_aggr;
38065 if (ac_aggr.st_vfstype)
38066 return 0;
38067   ;
38068   return 0;
38069 }
38070 _ACEOF
38071 rm -f conftest.$ac_objext
38072 if { (ac_try="$ac_compile"
38073 case "(($ac_try" in
38074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38075   *) ac_try_echo=$ac_try;;
38076 esac
38077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38078   (eval "$ac_compile") 2>conftest.er1
38079   ac_status=$?
38080   grep -v '^ *+' conftest.er1 >conftest.err
38081   rm -f conftest.er1
38082   cat conftest.err >&5
38083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38084   (exit $ac_status); } && {
38085          test -z "$ac_c_werror_flag" ||
38086          test ! -s conftest.err
38087        } && test -s conftest.$ac_objext; then
38088   ac_cv_member_struct_stat_st_vfstype=yes
38089 else
38090   echo "$as_me: failed program was:" >&5
38091 sed 's/^/| /' conftest.$ac_ext >&5
38092
38093         cat >conftest.$ac_ext <<_ACEOF
38094 /* confdefs.h.  */
38095 _ACEOF
38096 cat confdefs.h >>conftest.$ac_ext
38097 cat >>conftest.$ac_ext <<_ACEOF
38098 /* end confdefs.h.  */
38099 $ac_includes_default
38100 int
38101 main ()
38102 {
38103 static struct stat ac_aggr;
38104 if (sizeof ac_aggr.st_vfstype)
38105 return 0;
38106   ;
38107   return 0;
38108 }
38109 _ACEOF
38110 rm -f conftest.$ac_objext
38111 if { (ac_try="$ac_compile"
38112 case "(($ac_try" in
38113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38114   *) ac_try_echo=$ac_try;;
38115 esac
38116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38117   (eval "$ac_compile") 2>conftest.er1
38118   ac_status=$?
38119   grep -v '^ *+' conftest.er1 >conftest.err
38120   rm -f conftest.er1
38121   cat conftest.err >&5
38122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38123   (exit $ac_status); } && {
38124          test -z "$ac_c_werror_flag" ||
38125          test ! -s conftest.err
38126        } && test -s conftest.$ac_objext; then
38127   ac_cv_member_struct_stat_st_vfstype=yes
38128 else
38129   echo "$as_me: failed program was:" >&5
38130 sed 's/^/| /' conftest.$ac_ext >&5
38131
38132         ac_cv_member_struct_stat_st_vfstype=no
38133 fi
38134
38135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38136 fi
38137
38138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38139 fi
38140 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
38141 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
38142 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
38143
38144 cat >>confdefs.h <<_ACEOF
38145 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
38146 _ACEOF
38147
38148
38149 fi
38150
38151                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
38152                         cat >conftest.$ac_ext <<_ACEOF
38153 struct stat st; char *ptr=st.st_fstype;
38154 _ACEOF
38155 rm -f conftest.$ac_objext
38156 if { (ac_try="$ac_compile"
38157 case "(($ac_try" in
38158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38159   *) ac_try_echo=$ac_try;;
38160 esac
38161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38162   (eval "$ac_compile") 2>conftest.er1
38163   ac_status=$?
38164   grep -v '^ *+' conftest.er1 >conftest.err
38165   rm -f conftest.er1
38166   cat conftest.err >&5
38167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168   (exit $ac_status); } && {
38169          test -z "$ac_c_werror_flag" ||
38170          test ! -s conftest.err
38171        } && test -s conftest.$ac_objext; then
38172
38173 cat >>confdefs.h <<\_ACEOF
38174 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
38175 _ACEOF
38176
38177 else
38178   echo "$as_me: failed program was:" >&5
38179 sed 's/^/| /' conftest.$ac_ext >&5
38180
38181
38182 cat >>confdefs.h <<\_ACEOF
38183 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
38184 _ACEOF
38185
38186 fi
38187
38188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38189                 fi
38190         fi
38191         LIBSRCS="$LIBSRCS getpeereid.c"
38192 fi
38193
38194 if test "$ac_cv_func_snprintf" != yes ||
38195    test "$ac_cv_func_vsnprintf" != yes; then
38196         if test "$ac_cv_func_snprintf" != yes; then
38197
38198 cat >>confdefs.h <<\_ACEOF
38199 #define snprintf ber_pvt_snprintf
38200 _ACEOF
38201
38202         fi
38203         if test "$ac_cv_func_vsnprintf" != yes; then
38204
38205 cat >>confdefs.h <<\_ACEOF
38206 #define vsnprintf ber_pvt_vsnprintf
38207 _ACEOF
38208
38209         fi
38210 fi
38211
38212
38213 if test "$ol_enable_slapi" != no ; then
38214
38215 for ac_header in ltdl.h
38216 do
38217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38219   { echo "$as_me:$LINENO: checking for $ac_header" >&5
38220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38222   echo $ECHO_N "(cached) $ECHO_C" >&6
38223 fi
38224 ac_res=`eval echo '${'$as_ac_Header'}'`
38225                { echo "$as_me:$LINENO: result: $ac_res" >&5
38226 echo "${ECHO_T}$ac_res" >&6; }
38227 else
38228   # Is the header compilable?
38229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38231 cat >conftest.$ac_ext <<_ACEOF
38232 /* confdefs.h.  */
38233 _ACEOF
38234 cat confdefs.h >>conftest.$ac_ext
38235 cat >>conftest.$ac_ext <<_ACEOF
38236 /* end confdefs.h.  */
38237 $ac_includes_default
38238 #include <$ac_header>
38239 _ACEOF
38240 rm -f conftest.$ac_objext
38241 if { (ac_try="$ac_compile"
38242 case "(($ac_try" in
38243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38244   *) ac_try_echo=$ac_try;;
38245 esac
38246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38247   (eval "$ac_compile") 2>conftest.er1
38248   ac_status=$?
38249   grep -v '^ *+' conftest.er1 >conftest.err
38250   rm -f conftest.er1
38251   cat conftest.err >&5
38252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38253   (exit $ac_status); } && {
38254          test -z "$ac_c_werror_flag" ||
38255          test ! -s conftest.err
38256        } && test -s conftest.$ac_objext; then
38257   ac_header_compiler=yes
38258 else
38259   echo "$as_me: failed program was:" >&5
38260 sed 's/^/| /' conftest.$ac_ext >&5
38261
38262         ac_header_compiler=no
38263 fi
38264
38265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38267 echo "${ECHO_T}$ac_header_compiler" >&6; }
38268
38269 # Is the header present?
38270 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38272 cat >conftest.$ac_ext <<_ACEOF
38273 /* confdefs.h.  */
38274 _ACEOF
38275 cat confdefs.h >>conftest.$ac_ext
38276 cat >>conftest.$ac_ext <<_ACEOF
38277 /* end confdefs.h.  */
38278 #include <$ac_header>
38279 _ACEOF
38280 if { (ac_try="$ac_cpp conftest.$ac_ext"
38281 case "(($ac_try" in
38282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38283   *) ac_try_echo=$ac_try;;
38284 esac
38285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38286   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38287   ac_status=$?
38288   grep -v '^ *+' conftest.er1 >conftest.err
38289   rm -f conftest.er1
38290   cat conftest.err >&5
38291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292   (exit $ac_status); } >/dev/null && {
38293          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38294          test ! -s conftest.err
38295        }; then
38296   ac_header_preproc=yes
38297 else
38298   echo "$as_me: failed program was:" >&5
38299 sed 's/^/| /' conftest.$ac_ext >&5
38300
38301   ac_header_preproc=no
38302 fi
38303
38304 rm -f conftest.err conftest.$ac_ext
38305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38306 echo "${ECHO_T}$ac_header_preproc" >&6; }
38307
38308 # So?  What about this header?
38309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38310   yes:no: )
38311     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38315     ac_header_preproc=yes
38316     ;;
38317   no:yes:* )
38318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38320     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38321 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38322     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38324     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38325 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38328     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38330     ( cat <<\_ASBOX
38331 ## --------------------------------------------- ##
38332 ## Report this to <http://www.openldap.org/its/> ##
38333 ## --------------------------------------------- ##
38334 _ASBOX
38335      ) | sed "s/^/$as_me: WARNING:     /" >&2
38336     ;;
38337 esac
38338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38341   echo $ECHO_N "(cached) $ECHO_C" >&6
38342 else
38343   eval "$as_ac_Header=\$ac_header_preproc"
38344 fi
38345 ac_res=`eval echo '${'$as_ac_Header'}'`
38346                { echo "$as_me:$LINENO: result: $ac_res" >&5
38347 echo "${ECHO_T}$ac_res" >&6; }
38348
38349 fi
38350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38351   cat >>confdefs.h <<_ACEOF
38352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38353 _ACEOF
38354
38355 fi
38356
38357 done
38358
38359
38360         if test $ac_cv_header_ltdl_h != yes ; then
38361                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38362 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38363    { (exit 1); exit 1; }; }
38364         fi
38365         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38366 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38367 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38368   echo $ECHO_N "(cached) $ECHO_C" >&6
38369 else
38370   ac_check_lib_save_LIBS=$LIBS
38371 LIBS="-lltdl  $LIBS"
38372 cat >conftest.$ac_ext <<_ACEOF
38373 /* confdefs.h.  */
38374 _ACEOF
38375 cat confdefs.h >>conftest.$ac_ext
38376 cat >>conftest.$ac_ext <<_ACEOF
38377 /* end confdefs.h.  */
38378
38379 /* Override any GCC internal prototype to avoid an error.
38380    Use char because int might match the return type of a GCC
38381    builtin and then its argument prototype would still apply.  */
38382 #ifdef __cplusplus
38383 extern "C"
38384 #endif
38385 char lt_dlinit ();
38386 int
38387 main ()
38388 {
38389 return lt_dlinit ();
38390   ;
38391   return 0;
38392 }
38393 _ACEOF
38394 rm -f conftest.$ac_objext conftest$ac_exeext
38395 if { (ac_try="$ac_link"
38396 case "(($ac_try" in
38397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38398   *) ac_try_echo=$ac_try;;
38399 esac
38400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38401   (eval "$ac_link") 2>conftest.er1
38402   ac_status=$?
38403   grep -v '^ *+' conftest.er1 >conftest.err
38404   rm -f conftest.er1
38405   cat conftest.err >&5
38406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38407   (exit $ac_status); } && {
38408          test -z "$ac_c_werror_flag" ||
38409          test ! -s conftest.err
38410        } && test -s conftest$ac_exeext &&
38411        $as_test_x conftest$ac_exeext; then
38412   ac_cv_lib_ltdl_lt_dlinit=yes
38413 else
38414   echo "$as_me: failed program was:" >&5
38415 sed 's/^/| /' conftest.$ac_ext >&5
38416
38417         ac_cv_lib_ltdl_lt_dlinit=no
38418 fi
38419
38420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38421       conftest$ac_exeext conftest.$ac_ext
38422 LIBS=$ac_check_lib_save_LIBS
38423 fi
38424 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38425 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38426 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38427
38428                 SLAPI_LIBS=-lltdl
38429                 LIBSLAPI=libslapi.a
38430                 LIBSLAPITOOLS=../libslapi.a
38431
38432 cat >>confdefs.h <<\_ACEOF
38433 #define HAVE_LIBLTDL 1
38434 _ACEOF
38435
38436
38437 else
38438   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38439 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38440    { (exit 1); exit 1; }; }
38441 fi
38442
38443
38444
38445 cat >>confdefs.h <<\_ACEOF
38446 #define LDAP_SLAPI 1
38447 _ACEOF
38448
38449 fi
38450
38451 if test "$ol_enable_debug" != no ; then
38452         if test "$ol_enable_debug" = traditional; then
38453
38454 cat >>confdefs.h <<\_ACEOF
38455 #define OLD_DEBUG 1
38456 _ACEOF
38457
38458         fi
38459
38460 cat >>confdefs.h <<\_ACEOF
38461 #define LDAP_DEBUG 1
38462 _ACEOF
38463
38464 fi
38465 if test "$ol_enable_syslog" = yes ; then
38466
38467 cat >>confdefs.h <<\_ACEOF
38468 #define LDAP_SYSLOG 1
38469 _ACEOF
38470
38471 fi
38472 if test "$ol_enable_proctitle" != no ; then
38473
38474 cat >>confdefs.h <<\_ACEOF
38475 #define LDAP_PROCTITLE 1
38476 _ACEOF
38477
38478 fi
38479 if test "$ol_enable_referrals" != no ; then
38480
38481 cat >>confdefs.h <<\_ACEOF
38482 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38483 _ACEOF
38484
38485 fi
38486 if test "$ol_enable_local" != no; then
38487
38488 cat >>confdefs.h <<\_ACEOF
38489 #define LDAP_PF_LOCAL 1
38490 _ACEOF
38491
38492 fi
38493 if test "$ol_link_ipv6" != no; then
38494
38495 cat >>confdefs.h <<\_ACEOF
38496 #define LDAP_PF_INET6 1
38497 _ACEOF
38498
38499 fi
38500 if test "$ol_enable_cleartext" != no ; then
38501
38502 cat >>confdefs.h <<\_ACEOF
38503 #define SLAPD_CLEARTEXT 1
38504 _ACEOF
38505
38506 fi
38507 if test "$ol_enable_crypt" != no ; then
38508
38509 cat >>confdefs.h <<\_ACEOF
38510 #define SLAPD_CRYPT 1
38511 _ACEOF
38512
38513 fi
38514 if test "$ol_link_spasswd" != no ; then
38515
38516 cat >>confdefs.h <<\_ACEOF
38517 #define SLAPD_SPASSWD 1
38518 _ACEOF
38519
38520 fi
38521 if test "$ol_enable_rlookups" != no ; then
38522
38523 cat >>confdefs.h <<\_ACEOF
38524 #define SLAPD_RLOOKUPS 1
38525 _ACEOF
38526
38527 fi
38528 if test "$ol_enable_aci" != no ; then
38529         if test $ol_enable_dynacl = no ; then
38530                 ol_enable_dynacl=yes
38531                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38532 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38533         fi
38534         if test "$ol_enable_aci" = mod ; then
38535                 MFLAG=SLAPD_MOD_DYNAMIC
38536                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38537 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38538    { (exit 1); exit 1; }; }
38539         else
38540                 MFLAG=SLAPD_MOD_STATIC
38541         fi
38542         WITH_ACI_ENABLED=$ol_enable_aci
38543
38544 cat >>confdefs.h <<_ACEOF
38545 #define SLAPD_ACI_ENABLED $MFLAG
38546 _ACEOF
38547
38548 else
38549         WITH_ACI_ENABLED=no
38550 fi
38551 if test "$ol_enable_dynacl" != no ; then
38552
38553 cat >>confdefs.h <<\_ACEOF
38554 #define SLAP_DYNACL 1
38555 _ACEOF
38556
38557 fi
38558
38559 if test "$ol_link_modules" != no ; then
38560
38561 cat >>confdefs.h <<\_ACEOF
38562 #define SLAPD_MODULES 1
38563 _ACEOF
38564
38565         BUILD_SLAPD=yes
38566         SLAPD_MODULES_LDFLAGS="-dlopen self"
38567 fi
38568
38569
38570 cat >>confdefs.h <<\_ACEOF
38571 #define SLAPD_MOD_STATIC 1
38572 _ACEOF
38573
38574
38575 cat >>confdefs.h <<\_ACEOF
38576 #define SLAPD_MOD_DYNAMIC 2
38577 _ACEOF
38578
38579
38580 if test "$ol_enable_monitor" != no ; then
38581         BUILD_SLAPD=yes
38582         BUILD_MONITOR=$ol_enable_monitor
38583         if test "$ol_enable_monitor" = mod ; then
38584                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38585                 MFLAG=SLAPD_MOD_DYNAMIC
38586         else
38587                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38588                 MFLAG=SLAPD_MOD_STATIC
38589         fi
38590
38591 cat >>confdefs.h <<_ACEOF
38592 #define SLAPD_MONITOR $MFLAG
38593 _ACEOF
38594
38595 fi
38596
38597 if test "$ol_enable_bdb" != no ; then
38598         BUILD_SLAPD=yes
38599         BUILD_BDB=$ol_enable_bdb
38600         if test "$ol_enable_bdb" = mod ; then
38601                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38602                 MFLAG=SLAPD_MOD_DYNAMIC
38603         else
38604                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38605                 MFLAG=SLAPD_MOD_STATIC
38606         fi
38607
38608 cat >>confdefs.h <<_ACEOF
38609 #define SLAPD_BDB $MFLAG
38610 _ACEOF
38611
38612 fi
38613
38614 if test "$ol_enable_dnssrv" != no ; then
38615         BUILD_SLAPD=yes
38616         BUILD_DNSSRV=$ol_enable_dnssrv
38617         if test "$ol_enable_dnssrv" = mod ; then
38618                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38619                 MFLAG=SLAPD_MOD_DYNAMIC
38620         else
38621                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38622                 MFLAG=SLAPD_MOD_STATIC
38623         fi
38624
38625 cat >>confdefs.h <<_ACEOF
38626 #define SLAPD_DNSSRV $MFLAG
38627 _ACEOF
38628
38629 fi
38630
38631 if test "$ol_enable_hdb" != no ; then
38632         BUILD_SLAPD=yes
38633         BUILD_HDB=$ol_enable_hdb
38634         if test "$ol_enable_hdb" = mod ; then
38635                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38636                 MFLAG=SLAPD_MOD_DYNAMIC
38637         else
38638                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38639                 MFLAG=SLAPD_MOD_STATIC
38640         fi
38641
38642 cat >>confdefs.h <<_ACEOF
38643 #define SLAPD_HDB $MFLAG
38644 _ACEOF
38645
38646 fi
38647
38648 if test "$ol_enable_ldap" != no ; then
38649         BUILD_SLAPD=yes
38650         BUILD_LDAP=$ol_enable_ldap
38651         if test "$ol_enable_ldap" = mod ; then
38652                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38653                 MFLAG=SLAPD_MOD_DYNAMIC
38654         else
38655                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38656                 MFLAG=SLAPD_MOD_STATIC
38657         fi
38658
38659 cat >>confdefs.h <<_ACEOF
38660 #define SLAPD_LDAP $MFLAG
38661 _ACEOF
38662
38663 fi
38664
38665 if test "$ol_enable_meta" != no ; then
38666         BUILD_SLAPD=yes
38667         BUILD_META=$ol_enable_meta
38668         BUILD_REWRITE=yes
38669         if test "$ol_enable_meta" = mod ; then
38670                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38671                 MFLAG=SLAPD_MOD_DYNAMIC
38672         else
38673                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38674                 MFLAG=SLAPD_MOD_STATIC
38675         fi
38676
38677 cat >>confdefs.h <<_ACEOF
38678 #define SLAPD_META $MFLAG
38679 _ACEOF
38680
38681 fi
38682
38683 if test "$ol_enable_ndb" != no ; then
38684         BUILD_SLAPD=yes
38685         BUILD_NDB=$ol_enable_ndb
38686         if test "$ol_enable_ndb" = mod ; then
38687                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38688                 MFLAG=SLAPD_MOD_DYNAMIC
38689         else
38690                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38691                 MFLAG=SLAPD_MOD_STATIC
38692         fi
38693
38694 cat >>confdefs.h <<_ACEOF
38695 #define SLAPD_NDB $MFLAG
38696 _ACEOF
38697
38698 fi
38699
38700 if test "$ol_enable_null" != no ; then
38701         BUILD_SLAPD=yes
38702         BUILD_NULL=$ol_enable_null
38703         if test "$ol_enable_null" = mod ; then
38704                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38705                 MFLAG=SLAPD_MOD_DYNAMIC
38706         else
38707                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38708                 MFLAG=SLAPD_MOD_STATIC
38709         fi
38710
38711 cat >>confdefs.h <<_ACEOF
38712 #define SLAPD_NULL $MFLAG
38713 _ACEOF
38714
38715 fi
38716
38717 if test "$ol_enable_passwd" != no ; then
38718         BUILD_SLAPD=yes
38719         BUILD_PASSWD=$ol_enable_passwd
38720         if test "$ol_enable_passwd" = mod ; then
38721                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38722                 MFLAG=SLAPD_MOD_DYNAMIC
38723         else
38724                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38725                 MFLAG=SLAPD_MOD_STATIC
38726         fi
38727
38728 cat >>confdefs.h <<_ACEOF
38729 #define SLAPD_PASSWD $MFLAG
38730 _ACEOF
38731
38732 fi
38733
38734 if test "$ol_link_perl" != no ; then
38735         BUILD_SLAPD=yes
38736         BUILD_PERL=$ol_enable_perl
38737         if test "$ol_enable_perl" = mod ; then
38738                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38739                 MFLAG=SLAPD_MOD_DYNAMIC
38740         else
38741                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38742                 MFLAG=SLAPD_MOD_STATIC
38743         fi
38744
38745 cat >>confdefs.h <<_ACEOF
38746 #define SLAPD_PERL $MFLAG
38747 _ACEOF
38748
38749 fi
38750
38751 if test "$ol_enable_relay" != no ; then
38752         BUILD_SLAPD=yes
38753         BUILD_RELAY=$ol_enable_relay
38754         if test "$ol_enable_relay" = mod ; then
38755                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38756                 MFLAG=SLAPD_MOD_DYNAMIC
38757         else
38758                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38759                 MFLAG=SLAPD_MOD_STATIC
38760         fi
38761
38762 cat >>confdefs.h <<_ACEOF
38763 #define SLAPD_RELAY $MFLAG
38764 _ACEOF
38765
38766 fi
38767
38768 if test "$ol_enable_shell" != no ; then
38769         if test "$ol_link_threads" != no ; then
38770                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38771 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38772         fi
38773         BUILD_SLAPD=yes
38774         BUILD_SHELL=$ol_enable_shell
38775         if test "$ol_enable_shell" = mod ; then
38776                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38777                 MFLAG=SLAPD_MOD_DYNAMIC
38778         else
38779                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38780                 MFLAG=SLAPD_MOD_STATIC
38781         fi
38782
38783 cat >>confdefs.h <<_ACEOF
38784 #define SLAPD_SHELL $MFLAG
38785 _ACEOF
38786
38787 fi
38788
38789 if test "$ol_enable_sock" != no ; then
38790         BUILD_SLAPD=yes
38791         BUILD_SOCK=$ol_enable_sock
38792         if test "$ol_enable_sock" = mod ; then
38793                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38794                 MFLAG=SLAPD_MOD_DYNAMIC
38795         else
38796                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38797                 MFLAG=SLAPD_MOD_STATIC
38798         fi
38799
38800 cat >>confdefs.h <<_ACEOF
38801 #define SLAPD_SOCK $MFLAG
38802 _ACEOF
38803
38804 fi
38805
38806 if test "$ol_link_sql" != no ; then
38807         BUILD_SLAPD=yes
38808         BUILD_SQL=$ol_enable_sql
38809         if test "$ol_enable_sql" = mod; then
38810                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38811                 MFLAG=SLAPD_MOD_DYNAMIC
38812         else
38813                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38814                 MFLAG=SLAPD_MOD_STATIC
38815         fi
38816
38817 cat >>confdefs.h <<_ACEOF
38818 #define SLAPD_SQL $MFLAG
38819 _ACEOF
38820
38821 fi
38822
38823 if test "$ol_enable_accesslog" != no ; then
38824         BUILD_ACCESSLOG=$ol_enable_accesslog
38825         if test "$ol_enable_accesslog" = mod ; then
38826                 MFLAG=SLAPD_MOD_DYNAMIC
38827                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38828         else
38829                 MFLAG=SLAPD_MOD_STATIC
38830                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38831         fi
38832
38833 cat >>confdefs.h <<_ACEOF
38834 #define SLAPD_OVER_ACCESSLOG $MFLAG
38835 _ACEOF
38836
38837 fi
38838
38839 if test "$ol_enable_auditlog" != no ; then
38840         BUILD_AUDITLOG=$ol_enable_auditlog
38841         if test "$ol_enable_auditlog" = mod ; then
38842                 MFLAG=SLAPD_MOD_DYNAMIC
38843                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38844         else
38845                 MFLAG=SLAPD_MOD_STATIC
38846                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38847         fi
38848
38849 cat >>confdefs.h <<_ACEOF
38850 #define SLAPD_OVER_AUDITLOG $MFLAG
38851 _ACEOF
38852
38853 fi
38854
38855 if test "$ol_enable_collect" != no ; then
38856         BUILD_COLLECT=$ol_enable_collect
38857         if test "$ol_enable_collect" = mod ; then
38858                 MFLAG=SLAPD_MOD_DYNAMIC
38859                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38860         else
38861                 MFLAG=SLAPD_MOD_STATIC
38862                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38863         fi
38864
38865 cat >>confdefs.h <<_ACEOF
38866 #define SLAPD_OVER_COLLECT $MFLAG
38867 _ACEOF
38868
38869 fi
38870
38871 if test "$ol_enable_constraint" != no ; then
38872         BUILD_CONSTRAINT=$ol_enable_constraint
38873         if test "$ol_enable_constraint" = mod ; then
38874                 MFLAG=SLAPD_MOD_DYNAMIC
38875                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38876         else
38877                 MFLAG=SLAPD_MOD_STATIC
38878                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38879         fi
38880
38881 cat >>confdefs.h <<_ACEOF
38882 #define SLAPD_OVER_CONSTRAINT $MFLAG
38883 _ACEOF
38884
38885 fi
38886
38887 if test "$ol_enable_dds" != no ; then
38888         BUILD_DDS=$ol_enable_dds
38889         if test "$ol_enable_dds" = mod ; then
38890                 MFLAG=SLAPD_MOD_DYNAMIC
38891                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38892         else
38893                 MFLAG=SLAPD_MOD_STATIC
38894                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38895         fi
38896
38897 cat >>confdefs.h <<_ACEOF
38898 #define SLAPD_OVER_DDS $MFLAG
38899 _ACEOF
38900
38901 fi
38902
38903 if test "$ol_enable_deref" != no ; then
38904         BUILD_DEREF=$ol_enable_deref
38905         if test "$ol_enable_deref" = mod ; then
38906                 MFLAG=SLAPD_MOD_DYNAMIC
38907                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38908         else
38909                 MFLAG=SLAPD_MOD_STATIC
38910                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38911         fi
38912
38913 cat >>confdefs.h <<_ACEOF
38914 #define SLAPD_OVER_DEREF $MFLAG
38915 _ACEOF
38916
38917 fi
38918
38919 if test "$ol_enable_dyngroup" != no ; then
38920         BUILD_DYNGROUP=$ol_enable_dyngroup
38921         if test "$ol_enable_dyngroup" = mod ; then
38922                 MFLAG=SLAPD_MOD_DYNAMIC
38923                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38924         else
38925                 MFLAG=SLAPD_MOD_STATIC
38926                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38927         fi
38928
38929 cat >>confdefs.h <<_ACEOF
38930 #define SLAPD_OVER_DYNGROUP $MFLAG
38931 _ACEOF
38932
38933 fi
38934
38935 if test "$ol_enable_dynlist" != no ; then
38936         BUILD_DYNLIST=$ol_enable_dynlist
38937         if test "$ol_enable_dynlist" = mod ; then
38938                 MFLAG=SLAPD_MOD_DYNAMIC
38939                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38940         else
38941                 MFLAG=SLAPD_MOD_STATIC
38942                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38943         fi
38944
38945 cat >>confdefs.h <<_ACEOF
38946 #define SLAPD_OVER_DYNLIST $MFLAG
38947 _ACEOF
38948
38949 fi
38950
38951 if test "$ol_enable_memberof" != no ; then
38952         BUILD_MEMBEROF=$ol_enable_memberof
38953         if test "$ol_enable_memberof" = mod ; then
38954                 MFLAG=SLAPD_MOD_DYNAMIC
38955                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38956         else
38957                 MFLAG=SLAPD_MOD_STATIC
38958                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38959         fi
38960
38961 cat >>confdefs.h <<_ACEOF
38962 #define SLAPD_OVER_MEMBEROF $MFLAG
38963 _ACEOF
38964
38965 fi
38966
38967 if test "$ol_enable_ppolicy" != no ; then
38968         BUILD_PPOLICY=$ol_enable_ppolicy
38969         if test "$ol_enable_ppolicy" = mod ; then
38970                 MFLAG=SLAPD_MOD_DYNAMIC
38971                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38972         else
38973                 MFLAG=SLAPD_MOD_STATIC
38974                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38975         fi
38976
38977 cat >>confdefs.h <<_ACEOF
38978 #define SLAPD_OVER_PPOLICY $MFLAG
38979 _ACEOF
38980
38981 fi
38982
38983 if test "$ol_enable_proxycache" != no ; then
38984         BUILD_PROXYCACHE=$ol_enable_proxycache
38985         if test "$ol_enable_proxycache" = mod ; then
38986                 MFLAG=SLAPD_MOD_DYNAMIC
38987                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38988         else
38989                 MFLAG=SLAPD_MOD_STATIC
38990                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38991         fi
38992
38993 cat >>confdefs.h <<_ACEOF
38994 #define SLAPD_OVER_PROXYCACHE $MFLAG
38995 _ACEOF
38996
38997 fi
38998
38999 if test "$ol_enable_refint" != no ; then
39000         BUILD_REFINT=$ol_enable_refint
39001         if test "$ol_enable_refint" = mod ; then
39002                 MFLAG=SLAPD_MOD_DYNAMIC
39003                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
39004         else
39005                 MFLAG=SLAPD_MOD_STATIC
39006                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
39007         fi
39008
39009 cat >>confdefs.h <<_ACEOF
39010 #define SLAPD_OVER_REFINT $MFLAG
39011 _ACEOF
39012
39013 fi
39014
39015 if test "$ol_enable_retcode" != no ; then
39016         BUILD_RETCODE=$ol_enable_retcode
39017         if test "$ol_enable_retcode" = mod ; then
39018                 MFLAG=SLAPD_MOD_DYNAMIC
39019                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
39020         else
39021                 MFLAG=SLAPD_MOD_STATIC
39022                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
39023         fi
39024
39025 cat >>confdefs.h <<_ACEOF
39026 #define SLAPD_OVER_RETCODE $MFLAG
39027 _ACEOF
39028
39029 fi
39030
39031 if test "$ol_enable_rwm" != no ; then
39032         BUILD_REWRITE=yes
39033         BUILD_RWM=$ol_enable_rwm
39034         if test "$ol_enable_rwm" = mod ; then
39035                 MFLAG=SLAPD_MOD_DYNAMIC
39036                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
39037         else
39038                 MFLAG=SLAPD_MOD_STATIC
39039                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
39040         fi
39041
39042 cat >>confdefs.h <<_ACEOF
39043 #define SLAPD_OVER_RWM $MFLAG
39044 _ACEOF
39045
39046 fi
39047
39048 if test "$ol_enable_seqmod" != no ; then
39049         BUILD_SEQMOD=$ol_enable_seqmod
39050         if test "$ol_enable_seqmod" = mod ; then
39051                 MFLAG=SLAPD_MOD_DYNAMIC
39052                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
39053         else
39054                 MFLAG=SLAPD_MOD_STATIC
39055                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
39056         fi
39057
39058 cat >>confdefs.h <<_ACEOF
39059 #define SLAPD_OVER_SEQMOD $MFLAG
39060 _ACEOF
39061
39062 fi
39063
39064 if test "$ol_enable_sssvlv" != no ; then
39065         BUILD_SSSVLV=$ol_enable_sssvlv
39066         if test "$ol_enable_sssvlv" = mod ; then
39067                 MFLAG=SLAPD_MOD_DYNAMIC
39068                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
39069         else
39070                 MFLAG=SLAPD_MOD_STATIC
39071                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
39072         fi
39073
39074 cat >>confdefs.h <<_ACEOF
39075 #define SLAPD_OVER_SSSVLV $MFLAG
39076 _ACEOF
39077
39078 fi
39079
39080 if test "$ol_enable_syncprov" != no ; then
39081         BUILD_SYNCPROV=$ol_enable_syncprov
39082         if test "$ol_enable_syncprov" = mod ; then
39083                 MFLAG=SLAPD_MOD_DYNAMIC
39084                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
39085         else
39086                 MFLAG=SLAPD_MOD_STATIC
39087                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
39088         fi
39089
39090 cat >>confdefs.h <<_ACEOF
39091 #define SLAPD_OVER_SYNCPROV $MFLAG
39092 _ACEOF
39093
39094 fi
39095
39096 if test "$ol_enable_translucent" != no ; then
39097         BUILD_TRANSLUCENT=$ol_enable_translucent
39098         if test "$ol_enable_translucent" = mod ; then
39099                 MFLAG=SLAPD_MOD_DYNAMIC
39100                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
39101         else
39102                 MFLAG=SLAPD_MOD_STATIC
39103                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
39104         fi
39105
39106 cat >>confdefs.h <<_ACEOF
39107 #define SLAPD_OVER_TRANSLUCENT $MFLAG
39108 _ACEOF
39109
39110 fi
39111
39112 if test "$ol_enable_unique" != no ; then
39113         BUILD_UNIQUE=$ol_enable_unique
39114         if test "$ol_enable_unique" = mod ; then
39115                 MFLAG=SLAPD_MOD_DYNAMIC
39116                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
39117         else
39118                 MFLAG=SLAPD_MOD_STATIC
39119                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
39120         fi
39121
39122 cat >>confdefs.h <<_ACEOF
39123 #define SLAPD_OVER_UNIQUE $MFLAG
39124 _ACEOF
39125
39126 fi
39127
39128 if test "$ol_enable_valsort" != no ; then
39129         BUILD_VALSORT=$ol_enable_valsort
39130         if test "$ol_enable_valsort" = mod ; then
39131                 MFLAG=SLAPD_MOD_DYNAMIC
39132                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
39133         else
39134                 MFLAG=SLAPD_MOD_STATIC
39135                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
39136         fi
39137
39138 cat >>confdefs.h <<_ACEOF
39139 #define SLAPD_OVER_VALSORT $MFLAG
39140 _ACEOF
39141
39142 fi
39143
39144 if test "$ol_enable_rewrite" != no ; then
39145
39146 cat >>confdefs.h <<\_ACEOF
39147 #define ENABLE_REWRITE 1
39148 _ACEOF
39149
39150         BUILD_REWRITE=yes
39151 fi
39152
39153 if test "$ol_enable_slapi" != no ; then
39154
39155 cat >>confdefs.h <<\_ACEOF
39156 #define ENABLE_SLAPI 1
39157 _ACEOF
39158
39159         BUILD_SLAPI=yes
39160         SLAPD_SLAPI_DEPEND=libslapi.a
39161 fi
39162
39163
39164
39165 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
39166         PLAT=NT
39167         SLAPD_MODULES_LDFLAGS=
39168 else
39169         PLAT=UNIX
39170 fi
39171
39172
39173
39174
39175
39176
39177
39178
39179
39180
39181
39182
39183
39184
39185
39186
39187
39188
39189
39190
39191
39192
39193
39194
39195
39196
39197
39198
39199
39200
39201
39202
39203
39204
39205
39206
39207
39208
39209
39210
39211
39212
39213
39214
39215
39216
39217
39218
39219
39220
39221
39222
39223
39224
39225
39226
39227
39228
39229
39230
39231
39232
39233
39234
39235
39236
39237
39238
39239
39240
39241
39242
39243
39244
39245
39246
39247
39248
39249
39250
39251
39252
39253
39254
39255
39256
39257
39258
39259
39260
39261
39262 # Check whether --with-xxinstall was given.
39263 if test "${with_xxinstall+set}" = set; then
39264   withval=$with_xxinstall;
39265 fi
39266
39267
39268
39269 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"
39270
39271
39272 ac_config_commands="$ac_config_commands default"
39273
39274
39275
39276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39277 # Let make expand exec_prefix.
39278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39279
39280 DEFS=-DHAVE_CONFIG_H
39281
39282 ac_libobjs=
39283 ac_ltlibobjs=
39284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39285   # 1. Remove the extension, and $U if already installed.
39286   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39287   ac_i=`echo "$ac_i" | sed "$ac_script"`
39288   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39289   #    will be set to the directory where LIBOBJS objects are built.
39290   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39291   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39292 done
39293 LIBOBJS=$ac_libobjs
39294
39295 LTLIBOBJS=$ac_ltlibobjs
39296
39297
39298 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39299   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39300 Usually this means the macro was only invoked conditionally." >&5
39301 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39302 Usually this means the macro was only invoked conditionally." >&2;}
39303    { (exit 1); exit 1; }; }
39304 fi
39305 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39306   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39307 Usually this means the macro was only invoked conditionally." >&5
39308 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39309 Usually this means the macro was only invoked conditionally." >&2;}
39310    { (exit 1); exit 1; }; }
39311 fi
39312 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39313   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39314 Usually this means the macro was only invoked conditionally." >&5
39315 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39316 Usually this means the macro was only invoked conditionally." >&2;}
39317    { (exit 1); exit 1; }; }
39318 fi
39319
39320 : ${CONFIG_STATUS=./config.status}
39321 ac_clean_files_save=$ac_clean_files
39322 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39323 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39324 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39325 cat >$CONFIG_STATUS <<_ACEOF
39326 #! $SHELL
39327 # Generated by $as_me.
39328 # Run this file to recreate the current configuration.
39329 # Compiler output produced by configure, useful for debugging
39330 # configure, is in config.log if it exists.
39331
39332 debug=false
39333 ac_cs_recheck=false
39334 ac_cs_silent=false
39335 SHELL=\${CONFIG_SHELL-$SHELL}
39336 _ACEOF
39337
39338 cat >>$CONFIG_STATUS <<\_ACEOF
39339 ## --------------------- ##
39340 ## M4sh Initialization.  ##
39341 ## --------------------- ##
39342
39343 # Be more Bourne compatible
39344 DUALCASE=1; export DUALCASE # for MKS sh
39345 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39346   emulate sh
39347   NULLCMD=:
39348   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39349   # is contrary to our usage.  Disable this feature.
39350   alias -g '${1+"$@"}'='"$@"'
39351   setopt NO_GLOB_SUBST
39352 else
39353   case `(set -o) 2>/dev/null` in
39354   *posix*) set -o posix ;;
39355 esac
39356
39357 fi
39358
39359
39360
39361
39362 # PATH needs CR
39363 # Avoid depending upon Character Ranges.
39364 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39365 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39366 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39367 as_cr_digits='0123456789'
39368 as_cr_alnum=$as_cr_Letters$as_cr_digits
39369
39370 # The user is always right.
39371 if test "${PATH_SEPARATOR+set}" != set; then
39372   echo "#! /bin/sh" >conf$$.sh
39373   echo  "exit 0"   >>conf$$.sh
39374   chmod +x conf$$.sh
39375   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39376     PATH_SEPARATOR=';'
39377   else
39378     PATH_SEPARATOR=:
39379   fi
39380   rm -f conf$$.sh
39381 fi
39382
39383 # Support unset when possible.
39384 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39385   as_unset=unset
39386 else
39387   as_unset=false
39388 fi
39389
39390
39391 # IFS
39392 # We need space, tab and new line, in precisely that order.  Quoting is
39393 # there to prevent editors from complaining about space-tab.
39394 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39395 # splitting by setting IFS to empty value.)
39396 as_nl='
39397 '
39398 IFS=" ""        $as_nl"
39399
39400 # Find who we are.  Look in the path if we contain no directory separator.
39401 case $0 in
39402   *[\\/]* ) as_myself=$0 ;;
39403   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39404 for as_dir in $PATH
39405 do
39406   IFS=$as_save_IFS
39407   test -z "$as_dir" && as_dir=.
39408   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39409 done
39410 IFS=$as_save_IFS
39411
39412      ;;
39413 esac
39414 # We did not find ourselves, most probably we were run as `sh COMMAND'
39415 # in which case we are not to be found in the path.
39416 if test "x$as_myself" = x; then
39417   as_myself=$0
39418 fi
39419 if test ! -f "$as_myself"; then
39420   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39421   { (exit 1); exit 1; }
39422 fi
39423
39424 # Work around bugs in pre-3.0 UWIN ksh.
39425 for as_var in ENV MAIL MAILPATH
39426 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39427 done
39428 PS1='$ '
39429 PS2='> '
39430 PS4='+ '
39431
39432 # NLS nuisances.
39433 for as_var in \
39434   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39435   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39436   LC_TELEPHONE LC_TIME
39437 do
39438   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39439     eval $as_var=C; export $as_var
39440   else
39441     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39442   fi
39443 done
39444
39445 # Required to use basename.
39446 if expr a : '\(a\)' >/dev/null 2>&1 &&
39447    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39448   as_expr=expr
39449 else
39450   as_expr=false
39451 fi
39452
39453 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39454   as_basename=basename
39455 else
39456   as_basename=false
39457 fi
39458
39459
39460 # Name of the executable.
39461 as_me=`$as_basename -- "$0" ||
39462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39463          X"$0" : 'X\(//\)$' \| \
39464          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39465 echo X/"$0" |
39466     sed '/^.*\/\([^/][^/]*\)\/*$/{
39467             s//\1/
39468             q
39469           }
39470           /^X\/\(\/\/\)$/{
39471             s//\1/
39472             q
39473           }
39474           /^X\/\(\/\).*/{
39475             s//\1/
39476             q
39477           }
39478           s/.*/./; q'`
39479
39480 # CDPATH.
39481 $as_unset CDPATH
39482
39483
39484
39485   as_lineno_1=$LINENO
39486   as_lineno_2=$LINENO
39487   test "x$as_lineno_1" != "x$as_lineno_2" &&
39488   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39489
39490   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39491   # uniformly replaced by the line number.  The first 'sed' inserts a
39492   # line-number line after each line using $LINENO; the second 'sed'
39493   # does the real work.  The second script uses 'N' to pair each
39494   # line-number line with the line containing $LINENO, and appends
39495   # trailing '-' during substitution so that $LINENO is not a special
39496   # case at line end.
39497   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39498   # scripts with optimization help from Paolo Bonzini.  Blame Lee
39499   # E. McMahon (1931-1989) for sed's syntax.  :-)
39500   sed -n '
39501     p
39502     /[$]LINENO/=
39503   ' <$as_myself |
39504     sed '
39505       s/[$]LINENO.*/&-/
39506       t lineno
39507       b
39508       :lineno
39509       N
39510       :loop
39511       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39512       t loop
39513       s/-\n.*//
39514     ' >$as_me.lineno &&
39515   chmod +x "$as_me.lineno" ||
39516     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39517    { (exit 1); exit 1; }; }
39518
39519   # Don't try to exec as it changes $[0], causing all sort of problems
39520   # (the dirname of $[0] is not the place where we might find the
39521   # original and so on.  Autoconf is especially sensitive to this).
39522   . "./$as_me.lineno"
39523   # Exit status is that of the last command.
39524   exit
39525 }
39526
39527
39528 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39529   as_dirname=dirname
39530 else
39531   as_dirname=false
39532 fi
39533
39534 ECHO_C= ECHO_N= ECHO_T=
39535 case `echo -n x` in
39536 -n*)
39537   case `echo 'x\c'` in
39538   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
39539   *)   ECHO_C='\c';;
39540   esac;;
39541 *)
39542   ECHO_N='-n';;
39543 esac
39544
39545 if expr a : '\(a\)' >/dev/null 2>&1 &&
39546    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39547   as_expr=expr
39548 else
39549   as_expr=false
39550 fi
39551
39552 rm -f conf$$ conf$$.exe conf$$.file
39553 if test -d conf$$.dir; then
39554   rm -f conf$$.dir/conf$$.file
39555 else
39556   rm -f conf$$.dir
39557   mkdir conf$$.dir
39558 fi
39559 echo >conf$$.file
39560 if ln -s conf$$.file conf$$ 2>/dev/null; then
39561   as_ln_s='ln -s'
39562   # ... but there are two gotchas:
39563   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39564   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39565   # In both cases, we have to default to `cp -p'.
39566   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39567     as_ln_s='cp -p'
39568 elif ln conf$$.file conf$$ 2>/dev/null; then
39569   as_ln_s=ln
39570 else
39571   as_ln_s='cp -p'
39572 fi
39573 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39574 rmdir conf$$.dir 2>/dev/null
39575
39576 if mkdir -p . 2>/dev/null; then
39577   as_mkdir_p=:
39578 else
39579   test -d ./-p && rmdir ./-p
39580   as_mkdir_p=false
39581 fi
39582
39583 if test -x / >/dev/null 2>&1; then
39584   as_test_x='test -x'
39585 else
39586   if ls -dL / >/dev/null 2>&1; then
39587     as_ls_L_option=L
39588   else
39589     as_ls_L_option=
39590   fi
39591   as_test_x='
39592     eval sh -c '\''
39593       if test -d "$1"; then
39594         test -d "$1/.";
39595       else
39596         case $1 in
39597         -*)set "./$1";;
39598         esac;
39599         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39600         ???[sx]*):;;*)false;;esac;fi
39601     '\'' sh
39602   '
39603 fi
39604 as_executable_p=$as_test_x
39605
39606 # Sed expression to map a string onto a valid CPP name.
39607 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39608
39609 # Sed expression to map a string onto a valid variable name.
39610 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39611
39612
39613 exec 6>&1
39614
39615 # Save the log message, to keep $[0] and so on meaningful, and to
39616 # report actual input values of CONFIG_FILES etc. instead of their
39617 # values after options handling.
39618 ac_log="
39619 This file was extended by $as_me, which was
39620 generated by GNU Autoconf 2.61.  Invocation command line was
39621
39622   CONFIG_FILES    = $CONFIG_FILES
39623   CONFIG_HEADERS  = $CONFIG_HEADERS
39624   CONFIG_LINKS    = $CONFIG_LINKS
39625   CONFIG_COMMANDS = $CONFIG_COMMANDS
39626   $ $0 $@
39627
39628 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39629 "
39630
39631 _ACEOF
39632
39633 cat >>$CONFIG_STATUS <<_ACEOF
39634 # Files that config.status was made for.
39635 config_files="$ac_config_files"
39636 config_headers="$ac_config_headers"
39637 config_commands="$ac_config_commands"
39638
39639 _ACEOF
39640
39641 cat >>$CONFIG_STATUS <<\_ACEOF
39642 ac_cs_usage="\
39643 \`$as_me' instantiates files from templates according to the
39644 current configuration.
39645
39646 Usage: $0 [OPTIONS] [FILE]...
39647
39648   -h, --help       print this help, then exit
39649   -V, --version    print version number and configuration settings, then exit
39650   -q, --quiet      do not print progress messages
39651   -d, --debug      don't remove temporary files
39652       --recheck    update $as_me by reconfiguring in the same conditions
39653   --file=FILE[:TEMPLATE]
39654                    instantiate the configuration file FILE
39655   --header=FILE[:TEMPLATE]
39656                    instantiate the configuration header FILE
39657
39658 Configuration files:
39659 $config_files
39660
39661 Configuration headers:
39662 $config_headers
39663
39664 Configuration commands:
39665 $config_commands
39666
39667 Report bugs to <bug-autoconf@gnu.org>."
39668
39669 _ACEOF
39670 cat >>$CONFIG_STATUS <<_ACEOF
39671 ac_cs_version="\\
39672 config.status
39673 configured by $0, generated by GNU Autoconf 2.61,
39674   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39675
39676 Copyright (C) 2006 Free Software Foundation, Inc.
39677 This config.status script is free software; the Free Software Foundation
39678 gives unlimited permission to copy, distribute and modify it."
39679
39680 ac_pwd='$ac_pwd'
39681 srcdir='$srcdir'
39682 INSTALL='$INSTALL'
39683 MKDIR_P='$MKDIR_P'
39684 _ACEOF
39685
39686 cat >>$CONFIG_STATUS <<\_ACEOF
39687 # If no file are specified by the user, then we need to provide default
39688 # value.  By we need to know if files were specified by the user.
39689 ac_need_defaults=:
39690 while test $# != 0
39691 do
39692   case $1 in
39693   --*=*)
39694     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39695     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39696     ac_shift=:
39697     ;;
39698   *)
39699     ac_option=$1
39700     ac_optarg=$2
39701     ac_shift=shift
39702     ;;
39703   esac
39704
39705   case $ac_option in
39706   # Handling of the options.
39707   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39708     ac_cs_recheck=: ;;
39709   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39710     echo "$ac_cs_version"; exit ;;
39711   --debug | --debu | --deb | --de | --d | -d )
39712     debug=: ;;
39713   --file | --fil | --fi | --f )
39714     $ac_shift
39715     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39716     ac_need_defaults=false;;
39717   --header | --heade | --head | --hea )
39718     $ac_shift
39719     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39720     ac_need_defaults=false;;
39721   --he | --h)
39722     # Conflict between --help and --header
39723     { echo "$as_me: error: ambiguous option: $1
39724 Try \`$0 --help' for more information." >&2
39725    { (exit 1); exit 1; }; };;
39726   --help | --hel | -h )
39727     echo "$ac_cs_usage"; exit ;;
39728   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39729   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39730     ac_cs_silent=: ;;
39731
39732   # This is an error.
39733   -*) { echo "$as_me: error: unrecognized option: $1
39734 Try \`$0 --help' for more information." >&2
39735    { (exit 1); exit 1; }; } ;;
39736
39737   *) ac_config_targets="$ac_config_targets $1"
39738      ac_need_defaults=false ;;
39739
39740   esac
39741   shift
39742 done
39743
39744 ac_configure_extra_args=
39745
39746 if $ac_cs_silent; then
39747   exec 6>/dev/null
39748   ac_configure_extra_args="$ac_configure_extra_args --silent"
39749 fi
39750
39751 _ACEOF
39752 cat >>$CONFIG_STATUS <<_ACEOF
39753 if \$ac_cs_recheck; then
39754   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39755   CONFIG_SHELL=$SHELL
39756   export CONFIG_SHELL
39757   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39758 fi
39759
39760 _ACEOF
39761 cat >>$CONFIG_STATUS <<\_ACEOF
39762 exec 5>>config.log
39763 {
39764   echo
39765   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39766 ## Running $as_me. ##
39767 _ASBOX
39768   echo "$ac_log"
39769 } >&5
39770
39771 _ACEOF
39772 cat >>$CONFIG_STATUS <<_ACEOF
39773 #
39774 # INIT-COMMANDS
39775 #
39776 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39777
39778 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39779 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39780
39781
39782 _ACEOF
39783
39784 cat >>$CONFIG_STATUS <<\_ACEOF
39785
39786 # Handling of arguments.
39787 for ac_config_target in $ac_config_targets
39788 do
39789   case $ac_config_target in
39790     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39791     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39792     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39793     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39794     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39795     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39796     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39797     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39798     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39799     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39800     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39801     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39802     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39803     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39804     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39805     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39806     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39807     "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" ;;
39808     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39809     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39810     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39811     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39812     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39813     "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" ;;
39814     "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" ;;
39815     "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" ;;
39816     "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" ;;
39817     "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" ;;
39818     "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" ;;
39819     "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" ;;
39820     "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" ;;
39821     "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" ;;
39822     "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" ;;
39823     "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" ;;
39824     "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" ;;
39825     "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" ;;
39826     "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" ;;
39827     "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" ;;
39828     "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" ;;
39829     "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" ;;
39830     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39831     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39832     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39833     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39834     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39835
39836   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39837 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39838    { (exit 1); exit 1; }; };;
39839   esac
39840 done
39841
39842
39843 # If the user did not use the arguments to specify the items to instantiate,
39844 # then the envvar interface is used.  Set only those that are not.
39845 # We use the long form for the default assignment because of an extremely
39846 # bizarre bug on SunOS 4.1.3.
39847 if $ac_need_defaults; then
39848   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39849   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39850   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39851 fi
39852
39853 # Have a temporary directory for convenience.  Make it in the build tree
39854 # simply because there is no reason against having it here, and in addition,
39855 # creating and moving files from /tmp can sometimes cause problems.
39856 # Hook for its removal unless debugging.
39857 # Note that there is a small window in which the directory will not be cleaned:
39858 # after its creation but before its name has been assigned to `$tmp'.
39859 $debug ||
39860 {
39861   tmp=
39862   trap 'exit_status=$?
39863   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39864 ' 0
39865   trap '{ (exit 1); exit 1; }' 1 2 13 15
39866 }
39867 # Create a (secure) tmp directory for tmp files.
39868
39869 {
39870   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39871   test -n "$tmp" && test -d "$tmp"
39872 }  ||
39873 {
39874   tmp=./conf$$-$RANDOM
39875   (umask 077 && mkdir "$tmp")
39876 } ||
39877 {
39878    echo "$me: cannot create a temporary directory in ." >&2
39879    { (exit 1); exit 1; }
39880 }
39881
39882 #
39883 # Set up the sed scripts for CONFIG_FILES section.
39884 #
39885
39886 # No need to generate the scripts if there are no CONFIG_FILES.
39887 # This happens for instance when ./config.status config.h
39888 if test -n "$CONFIG_FILES"; then
39889
39890 _ACEOF
39891
39892
39893
39894 ac_delim='%!_!# '
39895 for ac_last_try in false false false false false :; do
39896   cat >conf$$subs.sed <<_ACEOF
39897 SHELL!$SHELL$ac_delim
39898 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39899 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39900 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39901 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39902 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39903 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39904 exec_prefix!$exec_prefix$ac_delim
39905 prefix!$prefix$ac_delim
39906 program_transform_name!$program_transform_name$ac_delim
39907 bindir!$bindir$ac_delim
39908 sbindir!$sbindir$ac_delim
39909 libexecdir!$libexecdir$ac_delim
39910 datarootdir!$datarootdir$ac_delim
39911 datadir!$datadir$ac_delim
39912 sysconfdir!$sysconfdir$ac_delim
39913 sharedstatedir!$sharedstatedir$ac_delim
39914 localstatedir!$localstatedir$ac_delim
39915 includedir!$includedir$ac_delim
39916 oldincludedir!$oldincludedir$ac_delim
39917 docdir!$docdir$ac_delim
39918 infodir!$infodir$ac_delim
39919 htmldir!$htmldir$ac_delim
39920 dvidir!$dvidir$ac_delim
39921 pdfdir!$pdfdir$ac_delim
39922 psdir!$psdir$ac_delim
39923 libdir!$libdir$ac_delim
39924 localedir!$localedir$ac_delim
39925 mandir!$mandir$ac_delim
39926 DEFS!$DEFS$ac_delim
39927 ECHO_C!$ECHO_C$ac_delim
39928 ECHO_N!$ECHO_N$ac_delim
39929 ECHO_T!$ECHO_T$ac_delim
39930 LIBS!$LIBS$ac_delim
39931 build_alias!$build_alias$ac_delim
39932 host_alias!$host_alias$ac_delim
39933 target_alias!$target_alias$ac_delim
39934 build!$build$ac_delim
39935 build_cpu!$build_cpu$ac_delim
39936 build_vendor!$build_vendor$ac_delim
39937 build_os!$build_os$ac_delim
39938 host!$host$ac_delim
39939 host_cpu!$host_cpu$ac_delim
39940 host_vendor!$host_vendor$ac_delim
39941 host_os!$host_os$ac_delim
39942 target!$target$ac_delim
39943 target_cpu!$target_cpu$ac_delim
39944 target_vendor!$target_vendor$ac_delim
39945 target_os!$target_os$ac_delim
39946 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39947 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39948 INSTALL_DATA!$INSTALL_DATA$ac_delim
39949 am__isrc!$am__isrc$ac_delim
39950 CYGPATH_W!$CYGPATH_W$ac_delim
39951 PACKAGE!$PACKAGE$ac_delim
39952 VERSION!$VERSION$ac_delim
39953 ACLOCAL!$ACLOCAL$ac_delim
39954 AUTOCONF!$AUTOCONF$ac_delim
39955 AUTOMAKE!$AUTOMAKE$ac_delim
39956 AUTOHEADER!$AUTOHEADER$ac_delim
39957 MAKEINFO!$MAKEINFO$ac_delim
39958 install_sh!$install_sh$ac_delim
39959 STRIP!$STRIP$ac_delim
39960 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39961 mkdir_p!$mkdir_p$ac_delim
39962 AWK!$AWK$ac_delim
39963 SET_MAKE!$SET_MAKE$ac_delim
39964 am__leading_dot!$am__leading_dot$ac_delim
39965 AMTAR!$AMTAR$ac_delim
39966 am__tar!$am__tar$ac_delim
39967 am__untar!$am__untar$ac_delim
39968 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39969 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39970 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39971 top_builddir!$top_builddir$ac_delim
39972 ldap_subdir!$ldap_subdir$ac_delim
39973 CC!$CC$ac_delim
39974 AR!$AR$ac_delim
39975 CFLAGS!$CFLAGS$ac_delim
39976 LDFLAGS!$LDFLAGS$ac_delim
39977 CPPFLAGS!$CPPFLAGS$ac_delim
39978 ac_ct_CC!$ac_ct_CC$ac_delim
39979 EXEEXT!$EXEEXT$ac_delim
39980 OBJEXT!$OBJEXT$ac_delim
39981 DEPDIR!$DEPDIR$ac_delim
39982 am__include!$am__include$ac_delim
39983 am__quote!$am__quote$ac_delim
39984 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39985 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39986 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39987 CCDEPMODE!$CCDEPMODE$ac_delim
39988 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39989 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39990 GREP!$GREP$ac_delim
39991 EGREP!$EGREP$ac_delim
39992 LN_S!$LN_S$ac_delim
39993 ECHO!$ECHO$ac_delim
39994 _ACEOF
39995
39996   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39997     break
39998   elif $ac_last_try; then
39999     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40000 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40001    { (exit 1); exit 1; }; }
40002   else
40003     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40004   fi
40005 done
40006
40007 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40008 if test -n "$ac_eof"; then
40009   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40010   ac_eof=`expr $ac_eof + 1`
40011 fi
40012
40013 cat >>$CONFIG_STATUS <<_ACEOF
40014 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
40015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40016 _ACEOF
40017 sed '
40018 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40019 s/^/s,@/; s/!/@,|#_!!_#|/
40020 :n
40021 t n
40022 s/'"$ac_delim"'$/,g/; t
40023 s/$/\\/; p
40024 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40025 ' >>$CONFIG_STATUS <conf$$subs.sed
40026 rm -f conf$$subs.sed
40027 cat >>$CONFIG_STATUS <<_ACEOF
40028 CEOF$ac_eof
40029 _ACEOF
40030
40031
40032 ac_delim='%!_!# '
40033 for ac_last_try in false false false false false :; do
40034   cat >conf$$subs.sed <<_ACEOF
40035 RANLIB!$RANLIB$ac_delim
40036 DLLTOOL!$DLLTOOL$ac_delim
40037 AS!$AS$ac_delim
40038 OBJDUMP!$OBJDUMP$ac_delim
40039 CPP!$CPP$ac_delim
40040 LIBTOOL!$LIBTOOL$ac_delim
40041 PERLBIN!$PERLBIN$ac_delim
40042 OL_MKDEP!$OL_MKDEP$ac_delim
40043 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
40044 LTSTATIC!$LTSTATIC$ac_delim
40045 MYSQL!$MYSQL$ac_delim
40046 LIBOBJS!$LIBOBJS$ac_delim
40047 LIBSRCS!$LIBSRCS$ac_delim
40048 PLAT!$PLAT$ac_delim
40049 WITH_SASL!$WITH_SASL$ac_delim
40050 WITH_TLS!$WITH_TLS$ac_delim
40051 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
40052 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
40053 BUILD_THREAD!$BUILD_THREAD$ac_delim
40054 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
40055 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
40056 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
40057 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
40058 BUILD_BDB!$BUILD_BDB$ac_delim
40059 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
40060 BUILD_HDB!$BUILD_HDB$ac_delim
40061 BUILD_LDAP!$BUILD_LDAP$ac_delim
40062 BUILD_META!$BUILD_META$ac_delim
40063 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
40064 BUILD_NDB!$BUILD_NDB$ac_delim
40065 BUILD_NULL!$BUILD_NULL$ac_delim
40066 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
40067 BUILD_RELAY!$BUILD_RELAY$ac_delim
40068 BUILD_PERL!$BUILD_PERL$ac_delim
40069 BUILD_SHELL!$BUILD_SHELL$ac_delim
40070 BUILD_SOCK!$BUILD_SOCK$ac_delim
40071 BUILD_SQL!$BUILD_SQL$ac_delim
40072 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
40073 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
40074 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
40075 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
40076 BUILD_DDS!$BUILD_DDS$ac_delim
40077 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
40078 BUILD_DEREF!$BUILD_DEREF$ac_delim
40079 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
40080 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
40081 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
40082 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
40083 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
40084 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
40085 BUILD_REFINT!$BUILD_REFINT$ac_delim
40086 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
40087 BUILD_RWM!$BUILD_RWM$ac_delim
40088 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
40089 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
40090 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
40091 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
40092 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
40093 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
40094 LDAP_LIBS!$LDAP_LIBS$ac_delim
40095 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
40096 BDB_LIBS!$BDB_LIBS$ac_delim
40097 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
40098 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
40099 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
40100 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
40101 WRAP_LIBS!$WRAP_LIBS$ac_delim
40102 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
40103 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
40104 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
40105 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
40106 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
40107 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
40108 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
40109 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
40110 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
40111 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
40112 KRB4_LIBS!$KRB4_LIBS$ac_delim
40113 KRB5_LIBS!$KRB5_LIBS$ac_delim
40114 SASL_LIBS!$SASL_LIBS$ac_delim
40115 TLS_LIBS!$TLS_LIBS$ac_delim
40116 MODULES_LIBS!$MODULES_LIBS$ac_delim
40117 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
40118 LIBSLAPI!$LIBSLAPI$ac_delim
40119 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
40120 AUTH_LIBS!$AUTH_LIBS$ac_delim
40121 ICU_LIBS!$ICU_LIBS$ac_delim
40122 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
40123 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
40124 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
40125 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
40126 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
40127 LTLIBOBJS!$LTLIBOBJS$ac_delim
40128 _ACEOF
40129
40130   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
40131     break
40132   elif $ac_last_try; then
40133     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40134 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40135    { (exit 1); exit 1; }; }
40136   else
40137     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40138   fi
40139 done
40140
40141 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40142 if test -n "$ac_eof"; then
40143   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40144   ac_eof=`expr $ac_eof + 1`
40145 fi
40146
40147 cat >>$CONFIG_STATUS <<_ACEOF
40148 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
40150 _ACEOF
40151 sed '
40152 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40153 s/^/s,@/; s/!/@,|#_!!_#|/
40154 :n
40155 t n
40156 s/'"$ac_delim"'$/,g/; t
40157 s/$/\\/; p
40158 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40159 ' >>$CONFIG_STATUS <conf$$subs.sed
40160 rm -f conf$$subs.sed
40161 cat >>$CONFIG_STATUS <<_ACEOF
40162 :end
40163 s/|#_!!_#|//g
40164 CEOF$ac_eof
40165 _ACEOF
40166
40167
40168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40170 # trailing colons and then remove the whole line if VPATH becomes empty
40171 # (actually we leave an empty line to preserve line numbers).
40172 if test "x$srcdir" = x.; then
40173   ac_vpsub='/^[  ]*VPATH[        ]*=/{
40174 s/:*\$(srcdir):*/:/
40175 s/:*\${srcdir}:*/:/
40176 s/:*@srcdir@:*/:/
40177 s/^\([^=]*=[     ]*\):*/\1/
40178 s/:*$//
40179 s/^[^=]*=[       ]*$//
40180 }'
40181 fi
40182
40183 cat >>$CONFIG_STATUS <<\_ACEOF
40184 fi # test -n "$CONFIG_FILES"
40185
40186
40187 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
40188 do
40189   case $ac_tag in
40190   :[FHLC]) ac_mode=$ac_tag; continue;;
40191   esac
40192   case $ac_mode$ac_tag in
40193   :[FHL]*:*);;
40194   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
40195 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
40196    { (exit 1); exit 1; }; };;
40197   :[FH]-) ac_tag=-:-;;
40198   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40199   esac
40200   ac_save_IFS=$IFS
40201   IFS=:
40202   set x $ac_tag
40203   IFS=$ac_save_IFS
40204   shift
40205   ac_file=$1
40206   shift
40207
40208   case $ac_mode in
40209   :L) ac_source=$1;;
40210   :[FH])
40211     ac_file_inputs=
40212     for ac_f
40213     do
40214       case $ac_f in
40215       -) ac_f="$tmp/stdin";;
40216       *) # Look for the file first in the build tree, then in the source tree
40217          # (if the path is not absolute).  The absolute path cannot be DOS-style,
40218          # because $ac_f cannot contain `:'.
40219          test -f "$ac_f" ||
40220            case $ac_f in
40221            [\\/$]*) false;;
40222            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40223            esac ||
40224            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40225 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40226    { (exit 1); exit 1; }; };;
40227       esac
40228       ac_file_inputs="$ac_file_inputs $ac_f"
40229     done
40230
40231     # Let's still pretend it is `configure' which instantiates (i.e., don't
40232     # use $as_me), people would be surprised to read:
40233     #    /* config.h.  Generated by config.status.  */
40234     configure_input="Generated from "`IFS=:
40235           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40236     if test x"$ac_file" != x-; then
40237       configure_input="$ac_file.  $configure_input"
40238       { echo "$as_me:$LINENO: creating $ac_file" >&5
40239 echo "$as_me: creating $ac_file" >&6;}
40240     fi
40241
40242     case $ac_tag in
40243     *:-:* | *:-) cat >"$tmp/stdin";;
40244     esac
40245     ;;
40246   esac
40247
40248   ac_dir=`$as_dirname -- "$ac_file" ||
40249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40250          X"$ac_file" : 'X\(//\)[^/]' \| \
40251          X"$ac_file" : 'X\(//\)$' \| \
40252          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40253 echo X"$ac_file" |
40254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40255             s//\1/
40256             q
40257           }
40258           /^X\(\/\/\)[^/].*/{
40259             s//\1/
40260             q
40261           }
40262           /^X\(\/\/\)$/{
40263             s//\1/
40264             q
40265           }
40266           /^X\(\/\).*/{
40267             s//\1/
40268             q
40269           }
40270           s/.*/./; q'`
40271   { as_dir="$ac_dir"
40272   case $as_dir in #(
40273   -*) as_dir=./$as_dir;;
40274   esac
40275   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40276     as_dirs=
40277     while :; do
40278       case $as_dir in #(
40279       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40280       *) as_qdir=$as_dir;;
40281       esac
40282       as_dirs="'$as_qdir' $as_dirs"
40283       as_dir=`$as_dirname -- "$as_dir" ||
40284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40285          X"$as_dir" : 'X\(//\)[^/]' \| \
40286          X"$as_dir" : 'X\(//\)$' \| \
40287          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40288 echo X"$as_dir" |
40289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40290             s//\1/
40291             q
40292           }
40293           /^X\(\/\/\)[^/].*/{
40294             s//\1/
40295             q
40296           }
40297           /^X\(\/\/\)$/{
40298             s//\1/
40299             q
40300           }
40301           /^X\(\/\).*/{
40302             s//\1/
40303             q
40304           }
40305           s/.*/./; q'`
40306       test -d "$as_dir" && break
40307     done
40308     test -z "$as_dirs" || eval "mkdir $as_dirs"
40309   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40310 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40311    { (exit 1); exit 1; }; }; }
40312   ac_builddir=.
40313
40314 case "$ac_dir" in
40315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40316 *)
40317   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40318   # A ".." for each directory in $ac_dir_suffix.
40319   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40320   case $ac_top_builddir_sub in
40321   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40322   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40323   esac ;;
40324 esac
40325 ac_abs_top_builddir=$ac_pwd
40326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40327 # for backward compatibility:
40328 ac_top_builddir=$ac_top_build_prefix
40329
40330 case $srcdir in
40331   .)  # We are building in place.
40332     ac_srcdir=.
40333     ac_top_srcdir=$ac_top_builddir_sub
40334     ac_abs_top_srcdir=$ac_pwd ;;
40335   [\\/]* | ?:[\\/]* )  # Absolute name.
40336     ac_srcdir=$srcdir$ac_dir_suffix;
40337     ac_top_srcdir=$srcdir
40338     ac_abs_top_srcdir=$srcdir ;;
40339   *) # Relative name.
40340     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40341     ac_top_srcdir=$ac_top_build_prefix$srcdir
40342     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40343 esac
40344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40345
40346
40347   case $ac_mode in
40348   :F)
40349   #
40350   # CONFIG_FILE
40351   #
40352
40353   case $INSTALL in
40354   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40355   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40356   esac
40357   ac_MKDIR_P=$MKDIR_P
40358   case $MKDIR_P in
40359   [\\/$]* | ?:[\\/]* ) ;;
40360   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
40361   esac
40362 _ACEOF
40363
40364 cat >>$CONFIG_STATUS <<\_ACEOF
40365 # If the template does not know about datarootdir, expand it.
40366 # FIXME: This hack should be removed a few years after 2.60.
40367 ac_datarootdir_hack=; ac_datarootdir_seen=
40368
40369 case `sed -n '/datarootdir/ {
40370   p
40371   q
40372 }
40373 /@datadir@/p
40374 /@docdir@/p
40375 /@infodir@/p
40376 /@localedir@/p
40377 /@mandir@/p
40378 ' $ac_file_inputs` in
40379 *datarootdir*) ac_datarootdir_seen=yes;;
40380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40381   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40382 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40383 _ACEOF
40384 cat >>$CONFIG_STATUS <<_ACEOF
40385   ac_datarootdir_hack='
40386   s&@datadir@&$datadir&g
40387   s&@docdir@&$docdir&g
40388   s&@infodir@&$infodir&g
40389   s&@localedir@&$localedir&g
40390   s&@mandir@&$mandir&g
40391     s&\\\${datarootdir}&$datarootdir&g' ;;
40392 esac
40393 _ACEOF
40394
40395 # Neutralize VPATH when `$srcdir' = `.'.
40396 # Shell code in configure.ac might set extrasub.
40397 # FIXME: do we really want to maintain this feature?
40398 cat >>$CONFIG_STATUS <<_ACEOF
40399   sed "$ac_vpsub
40400 $extrasub
40401 _ACEOF
40402 cat >>$CONFIG_STATUS <<\_ACEOF
40403 :t
40404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40405 s&@configure_input@&$configure_input&;t t
40406 s&@top_builddir@&$ac_top_builddir_sub&;t t
40407 s&@srcdir@&$ac_srcdir&;t t
40408 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40409 s&@top_srcdir@&$ac_top_srcdir&;t t
40410 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40411 s&@builddir@&$ac_builddir&;t t
40412 s&@abs_builddir@&$ac_abs_builddir&;t t
40413 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40414 s&@INSTALL@&$ac_INSTALL&;t t
40415 s&@MKDIR_P@&$ac_MKDIR_P&;t t
40416 $ac_datarootdir_hack
40417 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40418
40419 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40420   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40421   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40422   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40423 which seems to be undefined.  Please make sure it is defined." >&5
40424 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40425 which seems to be undefined.  Please make sure it is defined." >&2;}
40426
40427   rm -f "$tmp/stdin"
40428   case $ac_file in
40429   -) cat "$tmp/out"; rm -f "$tmp/out";;
40430   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40431   esac
40432  ;;
40433   :H)
40434   #
40435   # CONFIG_HEADER
40436   #
40437 _ACEOF
40438
40439 # Transform confdefs.h into a sed script `conftest.defines', that
40440 # substitutes the proper values into config.h.in to produce config.h.
40441 rm -f conftest.defines conftest.tail
40442 # First, append a space to every undef/define line, to ease matching.
40443 echo 's/$/ /' >conftest.defines
40444 # Then, protect against being on the right side of a sed subst, or in
40445 # an unquoted here document, in config.status.  If some macros were
40446 # called several times there might be several #defines for the same
40447 # symbol, which is useless.  But do not sort them, since the last
40448 # AC_DEFINE must be honored.
40449 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40450 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40451 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40452 # PARAMS is the parameter list in the macro definition--in most cases, it's
40453 # just an empty string.
40454 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
40455 ac_dB='\\)[      (].*,\\1define\\2'
40456 ac_dC=' '
40457 ac_dD=' ,'
40458
40459 uniq confdefs.h |
40460   sed -n '
40461         t rset
40462         :rset
40463         s/^[     ]*#[    ]*define[       ][      ]*//
40464         t ok
40465         d
40466         :ok
40467         s/[\\&,]/\\&/g
40468         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40469         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40470   ' >>conftest.defines
40471
40472 # Remove the space that was appended to ease matching.
40473 # Then replace #undef with comments.  This is necessary, for
40474 # example, in the case of _POSIX_SOURCE, which is predefined and required
40475 # on some systems where configure will not decide to define it.
40476 # (The regexp can be short, since the line contains either #define or #undef.)
40477 echo 's/ $//
40478 s,^[     #]*u.*,/* & */,' >>conftest.defines
40479
40480 # Break up conftest.defines:
40481 ac_max_sed_lines=50
40482
40483 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40484 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40485 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40486 # et cetera.
40487 ac_in='$ac_file_inputs'
40488 ac_out='"$tmp/out1"'
40489 ac_nxt='"$tmp/out2"'
40490
40491 while :
40492 do
40493   # Write a here document:
40494     cat >>$CONFIG_STATUS <<_ACEOF
40495     # First, check the format of the line:
40496     cat >"\$tmp/defines.sed" <<\\CEOF
40497 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
40498 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
40499 b
40500 :def
40501 _ACEOF
40502   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40503   echo 'CEOF
40504     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40505   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40506   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40507   grep . conftest.tail >/dev/null || break
40508   rm -f conftest.defines
40509   mv conftest.tail conftest.defines
40510 done
40511 rm -f conftest.defines conftest.tail
40512
40513 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40514 cat >>$CONFIG_STATUS <<\_ACEOF
40515   if test x"$ac_file" != x-; then
40516     echo "/* $configure_input  */" >"$tmp/config.h"
40517     cat "$ac_result" >>"$tmp/config.h"
40518     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40519       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40520 echo "$as_me: $ac_file is unchanged" >&6;}
40521     else
40522       rm -f $ac_file
40523       mv "$tmp/config.h" $ac_file
40524     fi
40525   else
40526     echo "/* $configure_input  */"
40527     cat "$ac_result"
40528   fi
40529   rm -f "$tmp/out12"
40530 # Compute $ac_file's index in $config_headers.
40531 _am_stamp_count=1
40532 for _am_header in $config_headers :; do
40533   case $_am_header in
40534     $ac_file | $ac_file:* )
40535       break ;;
40536     * )
40537       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40538   esac
40539 done
40540 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40541 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40542          X$ac_file : 'X\(//\)[^/]' \| \
40543          X$ac_file : 'X\(//\)$' \| \
40544          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40545 echo X$ac_file |
40546     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40547             s//\1/
40548             q
40549           }
40550           /^X\(\/\/\)[^/].*/{
40551             s//\1/
40552             q
40553           }
40554           /^X\(\/\/\)$/{
40555             s//\1/
40556             q
40557           }
40558           /^X\(\/\).*/{
40559             s//\1/
40560             q
40561           }
40562           s/.*/./; q'`/stamp-h$_am_stamp_count
40563  ;;
40564
40565   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40566 echo "$as_me: executing $ac_file commands" >&6;}
40567  ;;
40568   esac
40569
40570
40571   case $ac_file$ac_mode in
40572     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40573   # Strip MF so we end up with the name of the file.
40574   mf=`echo "$mf" | sed -e 's/:.*$//'`
40575   # Check whether this is an Automake generated Makefile or not.
40576   # We used to match only the files named `Makefile.in', but
40577   # some people rename them; so instead we look at the file content.
40578   # Grep'ing the first line is not enough: some people post-process
40579   # each Makefile.in and add a new line on top of each file to say so.
40580   # Grep'ing the whole file is not good either: AIX grep has a line
40581   # limit of 2048, but all sed's we know have understand at least 4000.
40582   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
40583     dirpart=`$as_dirname -- "$mf" ||
40584 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40585          X"$mf" : 'X\(//\)[^/]' \| \
40586          X"$mf" : 'X\(//\)$' \| \
40587          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40588 echo X"$mf" |
40589     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40590             s//\1/
40591             q
40592           }
40593           /^X\(\/\/\)[^/].*/{
40594             s//\1/
40595             q
40596           }
40597           /^X\(\/\/\)$/{
40598             s//\1/
40599             q
40600           }
40601           /^X\(\/\).*/{
40602             s//\1/
40603             q
40604           }
40605           s/.*/./; q'`
40606   else
40607     continue
40608   fi
40609   # Extract the definition of DEPDIR, am__include, and am__quote
40610   # from the Makefile without running `make'.
40611   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40612   test -z "$DEPDIR" && continue
40613   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40614   test -z "am__include" && continue
40615   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40616   # When using ansi2knr, U may be empty or an underscore; expand it
40617   U=`sed -n 's/^U = //p' < "$mf"`
40618   # Find all dependency output files, they are included files with
40619   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40620   # simplest approach to changing $(DEPDIR) to its actual value in the
40621   # expansion.
40622   for file in `sed -n "
40623     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40624        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40625     # Make sure the directory exists.
40626     test -f "$dirpart/$file" && continue
40627     fdir=`$as_dirname -- "$file" ||
40628 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40629          X"$file" : 'X\(//\)[^/]' \| \
40630          X"$file" : 'X\(//\)$' \| \
40631          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40632 echo X"$file" |
40633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40634             s//\1/
40635             q
40636           }
40637           /^X\(\/\/\)[^/].*/{
40638             s//\1/
40639             q
40640           }
40641           /^X\(\/\/\)$/{
40642             s//\1/
40643             q
40644           }
40645           /^X\(\/\).*/{
40646             s//\1/
40647             q
40648           }
40649           s/.*/./; q'`
40650     { as_dir=$dirpart/$fdir
40651   case $as_dir in #(
40652   -*) as_dir=./$as_dir;;
40653   esac
40654   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40655     as_dirs=
40656     while :; do
40657       case $as_dir in #(
40658       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40659       *) as_qdir=$as_dir;;
40660       esac
40661       as_dirs="'$as_qdir' $as_dirs"
40662       as_dir=`$as_dirname -- "$as_dir" ||
40663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40664          X"$as_dir" : 'X\(//\)[^/]' \| \
40665          X"$as_dir" : 'X\(//\)$' \| \
40666          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40667 echo X"$as_dir" |
40668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40669             s//\1/
40670             q
40671           }
40672           /^X\(\/\/\)[^/].*/{
40673             s//\1/
40674             q
40675           }
40676           /^X\(\/\/\)$/{
40677             s//\1/
40678             q
40679           }
40680           /^X\(\/\).*/{
40681             s//\1/
40682             q
40683           }
40684           s/.*/./; q'`
40685       test -d "$as_dir" && break
40686     done
40687     test -z "$as_dirs" || eval "mkdir $as_dirs"
40688   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40689 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40690    { (exit 1); exit 1; }; }; }
40691     # echo "creating $dirpart/$file"
40692     echo '# dummy' > "$dirpart/$file"
40693   done
40694 done
40695  ;;
40696     "default":C)
40697 chmod +x tests/run
40698 date > stamp-h
40699 BACKENDSC="servers/slapd/backends.c"
40700 echo "Making $BACKENDSC"
40701 rm -f $BACKENDSC
40702 cat > $BACKENDSC << ENDX
40703 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40704  *
40705  * Copyright 1998-2010 The OpenLDAP Foundation.
40706  * All rights reserved.
40707  *
40708  * Redistribution and use in source and binary forms, with or without
40709  * modification, are permitted only as authorized by the OpenLDAP
40710  * Public License.
40711  *
40712  * A copy of this license is available in the file LICENSE in the
40713  * top-level directory of the distribution or, alternatively, at
40714  * <http://www.OpenLDAP.org/license.html>.
40715  */
40716 /* This file is automatically generated by configure; please do not edit. */
40717
40718 #include "portable.h"
40719 #include "slap.h"
40720
40721 ENDX
40722 if test "${STATIC_BACKENDS}"; then
40723         for b in config ${STATIC_BACKENDS}; do
40724                 bb=`echo "${b}" | sed -e 's/back-//'`
40725                 cat >> $BACKENDSC << ENDX
40726 extern BI_init ${bb}_back_initialize;
40727 ENDX
40728         done
40729
40730         cat >> $BACKENDSC << ENDX
40731
40732 BackendInfo slap_binfo[] = {
40733 ENDX
40734
40735         for b in config ${STATIC_BACKENDS}; do
40736                 bb=`echo "${b}" | sed -e 's/back-//'`
40737                 echo "    Add ${bb} ..."
40738                 cat >> $BACKENDSC << ENDX
40739         { "${bb}", ${bb}_back_initialize },
40740 ENDX
40741         done
40742
40743         cat >> $BACKENDSC << ENDX
40744         { NULL, NULL },
40745 };
40746
40747 /* end of generated file */
40748 ENDX
40749 fi
40750 OVERLAYSC="servers/slapd/overlays/statover.c"
40751 echo "Making $OVERLAYSC"
40752 rm -f $OVERLAYSC
40753 cat > $OVERLAYSC << ENDX
40754 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40755  *
40756  * Copyright 1998-2010 The OpenLDAP Foundation.
40757  * All rights reserved.
40758  *
40759  * Redistribution and use in source and binary forms, with or without
40760  * modification, are permitted only as authorized by the OpenLDAP
40761  * Public License.
40762  *
40763  * A copy of this license is available in the file LICENSE in the
40764  * top-level directory of the distribution or, alternatively, at
40765  * <http://www.OpenLDAP.org/license.html>.
40766  */
40767 /* This file is automatically generated by configure; please do not edit. */
40768
40769 #include "portable.h"
40770 #include "slap.h"
40771
40772 ENDX
40773 if test "${STATIC_OVERLAYS}"; then
40774         for o in ${STATIC_OVERLAYS}; do
40775                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40776                 cat >> $OVERLAYSC << ENDX
40777 extern OV_init ${oo}_initialize;
40778 ENDX
40779         done
40780 fi
40781
40782 cat >> $OVERLAYSC << ENDX
40783
40784 OverlayInit slap_oinfo[] = {
40785 ENDX
40786
40787 if test "${STATIC_OVERLAYS}"; then
40788         for o in ${STATIC_OVERLAYS}; do
40789                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40790                 echo "    Add ${oo} ..."
40791                 cat >> $OVERLAYSC << ENDX
40792         { "${oo}", ${oo}_initialize },
40793 ENDX
40794         done
40795 fi
40796
40797         cat >> $OVERLAYSC << ENDX
40798         { NULL, NULL },
40799 };
40800
40801 /* end of generated file */
40802 ENDX
40803
40804 if test "${ol_cv_mkdep}" = no; then
40805         echo '(Do not "make depend"; we do not know how to build dependencies)'
40806 else
40807         echo 'Please run "make depend" to build dependencies'
40808 fi
40809  ;;
40810
40811   esac
40812 done # for ac_tag
40813
40814
40815 { (exit 0); exit 0; }
40816 _ACEOF
40817 chmod +x $CONFIG_STATUS
40818 ac_clean_files=$ac_clean_files_save
40819
40820
40821 # configure is writing to config.log, and then calls config.status.
40822 # config.status does its own redirection, appending to config.log.
40823 # Unfortunately, on DOS this fails, as config.log is still kept open
40824 # by configure, so config.status won't be able to write to it; its
40825 # output is simply discarded.  So we exec the FD to /dev/null,
40826 # effectively closing config.log, so it can be properly (re)opened and
40827 # appended to by config.status.  When coming back to configure, we
40828 # need to make the FD available again.
40829 if test "$no_create" != yes; then
40830   ac_cs_success=:
40831   ac_config_status_args=
40832   test "$silent" = yes &&
40833     ac_config_status_args="$ac_config_status_args --quiet"
40834   exec 5>/dev/null
40835   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40836   exec 5>>config.log
40837   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40838   # would make configure fail if this is the last instruction.
40839   $ac_cs_success || { (exit 1); exit 1; }
40840 fi
40841